@gkd-kit/docs 0.0.1730895910754 → 0.0.1730897048473
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 -5
- package/.vitepress/dist/api/index.html +10 -9
- package/.vitepress/dist/api/interfaces/RawApp.html +10 -9
- package/.vitepress/dist/api/interfaces/RawAppGroup.html +11 -10
- package/.vitepress/dist/api/interfaces/RawAppRule.html +11 -10
- package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +10 -9
- package/.vitepress/dist/api/interfaces/RawCategory.html +10 -9
- package/.vitepress/dist/api/interfaces/RawCommonProps.html +11 -10
- package/.vitepress/dist/api/interfaces/RawGlobalApp.html +10 -9
- package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +11 -10
- package/.vitepress/dist/api/interfaces/RawGlobalRule.html +11 -10
- package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +10 -9
- package/.vitepress/dist/api/interfaces/RawGroupProps.html +11 -10
- package/.vitepress/dist/api/interfaces/RawRuleProps.html +11 -10
- package/.vitepress/dist/api/interfaces/RawSubscription.html +11 -10
- package/.vitepress/dist/api/type-aliases/IArray.html +11 -10
- package/.vitepress/dist/api/type-aliases/Integer.html +11 -10
- package/.vitepress/dist/api/type-aliases/Position.html +11 -10
- package/.vitepress/dist/assets/{api_index.md.C0dnYTbT.js → api_index.md.DS6dBvoV.js} +1 -1
- package/.vitepress/dist/assets/{api_index.md.C0dnYTbT.lean.js → api_index.md.DS6dBvoV.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawApp.md.MaMr82Du.js → api_interfaces_RawApp.md.CpknFkm7.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawApp.md.MaMr82Du.lean.js → api_interfaces_RawApp.md.CpknFkm7.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.DZIwMwbH.js → api_interfaces_RawAppGroup.md.CXhqv6_u.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.DZIwMwbH.lean.js → api_interfaces_RawAppGroup.md.CXhqv6_u.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRule.md.CljODym8.js → api_interfaces_RawAppRule.md.C2hyO61N.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRule.md.CljODym8.lean.js → api_interfaces_RawAppRule.md.C2hyO61N.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRuleProps.md.Dx3dRepU.js → api_interfaces_RawAppRuleProps.md.Do2vlPPZ.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRuleProps.md.Dx3dRepU.lean.js → api_interfaces_RawAppRuleProps.md.Do2vlPPZ.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCategory.md.DJsQeHUo.js → api_interfaces_RawCategory.md.Me9mrXB7.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCategory.md.DJsQeHUo.lean.js → api_interfaces_RawCategory.md.Me9mrXB7.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCommonProps.md.I8D5vrT4.js → api_interfaces_RawCommonProps.md.B9vtsapU.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCommonProps.md.I8D5vrT4.lean.js → api_interfaces_RawCommonProps.md.B9vtsapU.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalApp.md.xvmtsdhY.js → api_interfaces_RawGlobalApp.md.CTiCUSP8.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalApp.md.xvmtsdhY.lean.js → api_interfaces_RawGlobalApp.md.CTiCUSP8.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.C5JzQskY.js → api_interfaces_RawGlobalGroup.md.Bql9GvRc.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.C5JzQskY.lean.js → api_interfaces_RawGlobalGroup.md.Bql9GvRc.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRule.md.Bv8NXgxh.js → api_interfaces_RawGlobalRule.md.CWLsP24n.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRule.md.Bv8NXgxh.lean.js → api_interfaces_RawGlobalRule.md.CWLsP24n.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRuleProps.md.BWagpDC5.js → api_interfaces_RawGlobalRuleProps.md.BkKzFslW.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRuleProps.md.BWagpDC5.lean.js → api_interfaces_RawGlobalRuleProps.md.BkKzFslW.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGroupProps.md.C4ysBXVt.js → api_interfaces_RawGroupProps.md.CmE75FSq.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGroupProps.md.C4ysBXVt.lean.js → api_interfaces_RawGroupProps.md.CmE75FSq.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawRuleProps.md.BEF9vTmP.js → api_interfaces_RawRuleProps.md.DKbfxAp-.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawRuleProps.md.BEF9vTmP.lean.js → api_interfaces_RawRuleProps.md.DKbfxAp-.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawSubscription.md.Dj1NPd2Z.js → api_interfaces_RawSubscription.md.B0P5Q5dm.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawSubscription.md.Dj1NPd2Z.lean.js → api_interfaces_RawSubscription.md.B0P5Q5dm.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_IArray.md.DTY6r7JQ.js → api_type-aliases_IArray.md.B7KsINAB.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_IArray.md.DTY6r7JQ.lean.js → api_type-aliases_IArray.md.B7KsINAB.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Integer.md.CnRoBE6C.js → api_type-aliases_Integer.md.BCPlNIEF.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Integer.md.CnRoBE6C.lean.js → api_type-aliases_Integer.md.BCPlNIEF.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Position.md.CAY4tq9J.js → api_type-aliases_Position.md.DM2ZCDDF.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Position.md.CAY4tq9J.lean.js → api_type-aliases_Position.md.DM2ZCDDF.lean.js} +1 -1
- package/.vitepress/dist/assets/{app.DNVtiKBC.js → app.0Nh1IfB0.js} +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.BEjqWFbR.js +1 -0
- package/.vitepress/dist/assets/chunks/VPLocalSearchBox.DMzHz6bI.js +7 -0
- package/.vitepress/dist/assets/chunks/framework.F1MJa8FF.js +18 -0
- package/.vitepress/dist/assets/chunks/index.BK928a5-.js +263 -0
- package/.vitepress/dist/assets/chunks/theme.D0IgFeP9.js +1 -0
- package/.vitepress/dist/assets/{guide_example.md.D7P8FSPh.js → guide_example.md.BAtHxrY8.js} +1 -1
- package/.vitepress/dist/assets/{guide_example.md.D7P8FSPh.lean.js → guide_example.md.BAtHxrY8.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_external.md.BOhriVcO.js → guide_external.md.Blf_3tZ-.js} +1 -1
- package/.vitepress/dist/assets/{guide_external.md.BOhriVcO.lean.js → guide_external.md.Blf_3tZ-.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_faq.md.CFjOXlRT.js → guide_faq.md.BOvp-isM.js} +2 -2
- package/.vitepress/dist/assets/{guide_faq.md.CFjOXlRT.lean.js → guide_faq.md.BOvp-isM.lean.js} +2 -2
- package/.vitepress/dist/assets/{guide_index.md.BpMngV78.js → guide_index.md.z9xnJ4bP.js} +1 -1
- package/.vitepress/dist/assets/{guide_index.md.BpMngV78.lean.js → guide_index.md.z9xnJ4bP.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_node.md.aT2macb8.js → guide_node.md.BV0VGFp7.js} +1 -1
- package/.vitepress/dist/assets/{guide_node.md.aT2macb8.lean.js → guide_node.md.BV0VGFp7.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_optimize.md.CVLAFtQT.js → guide_optimize.md.BRCJcu54.js} +1 -1
- package/.vitepress/dist/assets/{guide_optimize.md.CVLAFtQT.lean.js → guide_optimize.md.BRCJcu54.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_selector.md.BUknNaVj.js → guide_selector.md.suOINyvh.js} +1 -1
- package/.vitepress/dist/assets/{guide_selector.md.BUknNaVj.lean.js → guide_selector.md.suOINyvh.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_snapshot.md.4dBzGN9v.js → guide_snapshot.md.BaRBwY-1.js} +1 -1
- package/.vitepress/dist/assets/{guide_snapshot.md.4dBzGN9v.lean.js → guide_snapshot.md.BaRBwY-1.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_subscription.md.CJ4AP_Bi.js → guide_subscription.md.DAPn-kL6.js} +1 -1
- package/.vitepress/dist/assets/{guide_subscription.md.CJ4AP_Bi.lean.js → guide_subscription.md.DAPn-kL6.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.DqZmLmp9.js → guide_what-is-gkd.md.pCyddgcF.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.DqZmLmp9.lean.js → guide_what-is-gkd.md.pCyddgcF.lean.js} +1 -1
- package/.vitepress/dist/assets/{index.md.D_UMLl-X.js → index.md.BN0ypr4M.js} +1 -1
- package/.vitepress/dist/assets/{index.md.D_UMLl-X.lean.js → index.md.BN0ypr4M.lean.js} +1 -1
- package/.vitepress/dist/assets/style.CzHLUY2l.css +1 -0
- package/.vitepress/dist/guide/example.html +10 -9
- package/.vitepress/dist/guide/external.html +10 -9
- package/.vitepress/dist/guide/faq.html +11 -10
- package/.vitepress/dist/guide/index.html +10 -9
- package/.vitepress/dist/guide/node.html +10 -9
- package/.vitepress/dist/guide/optimize.html +10 -9
- package/.vitepress/dist/guide/selector.html +11 -10
- package/.vitepress/dist/guide/snapshot.html +10 -9
- package/.vitepress/dist/guide/subscription.html +11 -10
- package/.vitepress/dist/guide/what-is-gkd.html +10 -9
- package/.vitepress/dist/hashmap.json +1 -1
- package/.vitepress/dist/index.html +10 -9
- package/.vitepress/dist/vp-icons.css +1 -0
- package/package.json +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot._GF3PaGm.js +0 -1
- package/.vitepress/dist/assets/chunks/VPLocalSearchBox.BUpEvX0R.js +0 -7
- package/.vitepress/dist/assets/chunks/framework.BvIb6WYF.js +0 -17
- package/.vitepress/dist/assets/chunks/index.CIgExcTQ.js +0 -257
- package/.vitepress/dist/assets/chunks/theme.CZEXvK7G.js +0 -1
- package/.vitepress/dist/assets/style.Bsl9YifO.css +0 -1
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import{a as _o,F as Ae,ak as Jn,al as sa,d as ie,p as z,S as Dn,q as Se,h as F,v as ze,$ as Te,L as oe,X as Xe,am as Qn,a4 as ut,an as ge,a2 as w,ao as la,P as ua,r as ca,ap as da,aq as fa,ar as er,D as ha,s as qe,T as at,K as Ro,as as Bo,at as va,au as pa,N as ga}from"./framework.BvIb6WYF.js";const ma=typeof document<"u"&&typeof window<"u",ba=ma&&"loading"in document.createElement("img");function wa(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Ln(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(_o(String(r)));return}if(Array.isArray(r)){Ln(r,t,n);return}if(r.type===Ae){if(r.children===null)return;Array.isArray(r.children)&&Ln(r.children,t,n)}else{if(r.type===Jn&&t)return;n.push(r)}}}),n}function Ct(e,...t){if(Array.isArray(e))e.forEach(n=>Ct(n,...t));else return e(...t)}function Tr(e,t){console.error(`[naive/${e}]: ${t}`)}function ya(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Or(e,t="default",n=void 0){const r=e[t];if(!r)return Tr("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ln(r(n));return o.length===1?o[0]:(Tr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function tr(e){return e.some(t=>sa(t)?!(t.type===Jn||t.type===Ae&&!tr(t.children)):!0)?e:null}function wn(e,t){const n=e&&tr(e());return t(n||null)}function Mr(e){return!(e&&tr(e()))}const Pr=ie({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),xa=/^(\d|\.)+$/,Er=/(\d|\.)+/;function yn(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(xa.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Er.exec(e);return o?e.replace(Er,String((Number(o[0])+n)*t)):e}return e}let en=[];const Io=new WeakMap;function Ca(){en.forEach(e=>e(...Io.get(e))),en=[]}function Do(e,...t){Io.set(e,t),!en.includes(e)&&en.push(e)===1&&requestAnimationFrame(Ca)}function tn(e){return e.composedPath()[0]||null}function Ar(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Sa(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 zr={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"},ft="^\\s*",ht="\\s*$",je="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",We="([0-9A-Fa-f])",Ne="([0-9A-Fa-f]{2})",$a=new RegExp(`${ft}rgb\\s*\\(${je},${je},${je}\\)${ht}`),Ta=new RegExp(`${ft}rgba\\s*\\(${je},${je},${je},${je}\\)${ht}`),Oa=new RegExp(`${ft}#${We}${We}${We}${ht}`),Ma=new RegExp(`${ft}#${Ne}${Ne}${Ne}${ht}`),Pa=new RegExp(`${ft}#${We}${We}${We}${We}${ht}`),Ea=new RegExp(`${ft}#${Ne}${Ne}${Ne}${Ne}${ht}`);function de(e){return parseInt(e,16)}function ct(e){try{let t;if(t=Ma.exec(e))return[de(t[1]),de(t[2]),de(t[3]),1];if(t=$a.exec(e))return[le(t[1]),le(t[5]),le(t[9]),1];if(t=Ta.exec(e))return[le(t[1]),le(t[5]),le(t[9]),St(t[13])];if(t=Oa.exec(e))return[de(t[1]+t[1]),de(t[2]+t[2]),de(t[3]+t[3]),1];if(t=Ea.exec(e))return[de(t[1]),de(t[2]),de(t[3]),St(de(t[4])/255)];if(t=Pa.exec(e))return[de(t[1]+t[1]),de(t[2]+t[2]),de(t[3]+t[3]),St(de(t[4]+t[4])/255)];if(e in zr)return ct(zr[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Aa(e){return e>1?1:e<0?0:e}function za(e,t,n,r){return`rgba(${le(e)}, ${le(t)}, ${le(n)}, ${Aa(r)})`}function xn(e,t,n,r,o){return le((e*t*(1-r)+n*r)/o)}function Lo(e,t){Array.isArray(e)||(e=ct(e)),Array.isArray(t)||(t=ct(t));const n=e[3],r=t[3],o=St(n+r-n*r);return za(xn(e[0],n,t[0],r,o),xn(e[1],n,t[1],r,o),xn(e[2],n,t[2],r,o),o)}function kt(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:ct(e),{lightness:a=1,alpha:s=1}=t;return _a([n*a,r*a,o*a,i*s])}function St(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 _a(e){const[t,n,r]=e;return 3 in e?`rgba(${le(t)}, ${le(n)}, ${le(r)}, ${St(e[3])})`:`rgba(${le(t)}, ${le(n)}, ${le(r)}, 1)`}function Ho(e=8){return Math.random().toString(16).slice(2,2+e)}function Ra(e){const{left:t,right:n,top:r,bottom:o}=Sa(e);return`${r} ${n} ${o} ${t}`}function Ba(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Fo=/\s*,(?![^(]*\))\s*/g,Ia=/\s+/g;function Da(e,t){const n=[];return t.split(Fo).forEach(r=>{let o=Ba(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 La(e,t){const n=[];return t.split(Fo).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Ha(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Da(t,n):t=La(t,n))}),t.join(", ").replace(Ia," ")}function _r(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 Fa(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function jt(e){return e?/^\s*@(s|m)/.test(e):!1}const ka=/[A-Z]/g;function ko(e){return e.replace(ka,t=>"-"+t.toLowerCase())}function ja(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
2
|
-
`+Object.entries(e).map(n=>t+` ${ko(n[0])}: ${n[1]};`).join(`
|
|
3
|
-
`)+`
|
|
4
|
-
`+t+"}":`: ${e};`}function Wa(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Rr(e,t,n,r){if(!t)return"";const o=Wa(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
|
|
5
|
-
${o}
|
|
6
|
-
}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` {
|
|
7
|
-
}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=o[s];if(s==="raw"){a.push(`
|
|
8
|
-
`+l+`
|
|
9
|
-
`);return}s=ko(s),l!=null&&a.push(` ${s}${ja(l)}`)}),e&&a.push("}"),a.join(`
|
|
10
|
-
`)}function Hn(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Hn(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Hn(o,t,n):o&&n(o)}else r&&n(r)})}function jo(e,t,n,r,o){const i=e.$;let a="";if(!i||typeof i=="string")jt(i)?a=i:t.push(i);else if(typeof i=="function"){const u=i({context:r.context,props:o});jt(u)?a=u:t.push(u)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")jt(i.$)?a=i.$:t.push(i.$);else if(i.$){const u=i.$({context:r.context,props:o});jt(u)?a=u:t.push(u)}const s=Ha(t),l=Rr(s,e.props,r,o);a?n.push(`${a} {`):l.length&&n.push(l),e.children&&Hn(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const c=Rr(s,{raw:u},r,o);n.push(c)}else jo(u,t,n,r,o)}),t.pop(),a&&n.push("}"),i&&i.after&&i.after(r.context)}function Na(e,t,n){const r=[];return jo(e,[],r,t,n),r.join(`
|
|
11
|
-
|
|
12
|
-
`)}function Fn(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 Ua(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(_r),t.els=[];else{const i=ln(n,r);i&&o.includes(i)&&(_r(i),t.els=o.filter(a=>a!==i))}}function Br(e,t){e.push(t)}function Xa(e,t,n,r,o,i,a,s,l){let u;if(n===void 0&&(u=t.render(r),n=Fn(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 h=c??Fa(n);if(u===void 0&&(u=t.render(r)),h.textContent=u,c!==null)return c;if(a){const v=s.querySelector(`meta[name="${a}"]`);if(v)return s.insertBefore(h,v),Br(t.els,h),h}return o?s.insertBefore(h,s.querySelector("style, link")):s.appendChild(h),Br(t.els,h),h}function Va(e){return Na(this,this.instance,e)}function Ya(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:i=!1,anchorMetaName:a,parent:s}=e;return Xa(this.instance,this,t,r,o,i,a,s,n)}function Za(e={}){const{id:t,parent:n}=e;Ua(this.instance,this,t,n)}const Wt=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Va,mount:Ya,unmount:Za}},qa=function(e,t,n,r){return Array.isArray(t)?Wt(e,{$:null},null,t):Array.isArray(n)?Wt(e,t,null,n):Array.isArray(r)?Wt(e,t,n,r):Wt(e,t,n,null)};function Wo(e={}){const t={c:(...n)=>qa(t,...n),use:(n,...r)=>n.install(t,...r),find:ln,context:{},config:e};return t}function Ga(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return ln(e)!==null}function Ka(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 b=d.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(d){let b,g;return{before(f){b=f.bem.b,g=f.bem.els,f.bem.els=null},after(f){f.bem.b=b,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 b;return{before(g){b=g.bem.els},after(g){g.bem.els=b},$({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:b,props:g}){d=typeof d=="string"?d:d({context:b,props:g});const f=d.split(",").map(L=>L.trim());function T(L){return f.map(W=>`&${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${L!==void 0?`${n}${L}`:""}${r}${W}`).join(", ")}const D=b.bem.els;return D!==null?T(D[0]):T()}}}function u(d){return{$({context:b,props:g}){d=typeof d=="string"?d:d({context:b,props:g});const f=b.bem.els;return`&:not(${(g==null?void 0:g.bPrefix)||t}${b.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 Ja="n",Qa=`.${Ja}-`,es="__",ts="--",No=Wo(),Uo=Ka({blockPrefix:Qa,elementPrefix:es,modifierPrefix:ts});No.use(Uo);const{c:H,find:ep}=No,{cB:G,cE:Ue,cM:Ve,cNotM:Kt}=Uo,ns=(...e)=>H(">",[G(...e)]);let Cn;function rs(){return Cn===void 0&&(Cn=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Cn}function os(e){const t=z(!!e.value);if(t.value)return Dn(t);const n=Se(e,r=>{r&&(t.value=!0,n())});return Dn(t)}function Mt(e){const t=F(e),n=z(t.value);return Se(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}const is=typeof window<"u";let st,$t;const as=()=>{var e,t;st=is?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,$t=!1,st!==void 0?st.then(()=>{$t=!0}):$t=!0};as();function ss(e){if($t)return;let t=!1;ze(()=>{$t||st==null||st.then(()=>{t||e()})}),Te(()=>{t=!0})}function Jt(e){return e.composedPath()[0]}const ls={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function us(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Jt(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Jt(a))},i=a=>{r&&(t.contains(Jt(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 Xo(e,t,n){const r=ls[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=us(e,t,n)),i}function cs(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Xo(e,t,n);return Object.keys(o).forEach(i=>{ne(i,document,o[i],r)}),!0}return!1}function ds(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Xo(e,t,n);return Object.keys(o).forEach(i=>{K(i,document,o[i],r)}),!0}return!1}function fs(){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:{}},h={};function v(){const p=function(m){const{type:O,eventPhase:$,bubbles:B}=m,R=Jt(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],X=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 re=S[J],Q=I.get(re);if(Q!==void 0){a.set(m,re);for(const fe of Q){if(t.has(m))break;fe(m)}}if(J===0&&!B&&X!==void 0){const fe=X.get(re);if(fe!==void 0)for(const et of fe){if(t.has(m))break;et(m)}}}}else if(k==="bubble"){if(X===void 0)return;for(let J=0;J<S.length&&!e.has(m);++J){const re=S[J],Q=X.get(re);if(Q!==void 0){a.set(m,re);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 y(){const p=function(m){const{type:O,eventPhase:$}=m;if($!==2)return;const B=h[O];B!==void 0&&B.forEach(R=>R(m))};return p.displayName="evtdUnifiedWindowEventHandler",p}const d=v(),b=y();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 h[p]===void 0&&(h[p]=new Set,window.addEventListener(p,b)),h[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=h[p];return!!(O!==void 0&&O.has(m))}function W(p,m,O,$){let B;if(typeof $=="object"&&$.once===!0?B=I=>{j(p,m,B,$),O(I)}:B=O,cs(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 j(p,m,O,$){if(ds(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 X=h[p];X.delete(O),X.size===0&&(window.removeEventListener(p,b),h[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:W,off:j}}const{on:ne,off:K}=fs();function hs(e,t){return Se(e,n=>{n!==void 0&&(t.value=n)}),F(()=>e.value===void 0?t.value:e.value)}function nr(){const e=z(!1);return ze(()=>{e.value=!0}),Dn(e)}function vs(e,t){return F(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const ps=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function gs(){return ps}const ms="n-internal-select-menu-body",Vo="n-modal-body",Yo="n-drawer-body",Zo="n-popover-body",qo="__disabled__";function dt(e){const t=oe(Vo,null),n=oe(Yo,null),r=oe(Zo,null),o=oe(ms,null),i=z();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};ze(()=>{ne("fullscreenchange",document,a)}),Te(()=>{K("fullscreenchange",document,a)})}return Mt(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?qo: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")})}dt.tdkey=qo;dt.propTo={type:[String,Object,Boolean],default:void 0};function kn(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function jn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(_o(String(r)));return}if(Array.isArray(r)){jn(r,t,n);return}if(r.type===Ae){if(r.children===null)return;Array.isArray(r.children)&&jn(r.children,t,n)}else r.type!==Jn&&n.push(r)}}),n}function Ir(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=jn(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Ie=null;function Go(){if(Ie===null&&(Ie=document.getElementById("v-binder-view-measurer"),Ie===null)){Ie=document.createElement("div"),Ie.id="v-binder-view-measurer";const{style:e}=Ie;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ie)}return Ie.getBoundingClientRect()}function bs(e,t){const n=Go();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Sn(e){const t=e.getBoundingClientRect(),n=Go();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 ws(e){return e.nodeType===9?null:e.parentNode}function Ko(e){if(e===null)return null;const t=ws(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 Ko(t)}const ys=ie({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Xe("VBinder",(t=Qn())===null||t===void 0?void 0:t.proxy);const n=oe("VBinder",null),r=z(null),o=f=>{r.value=f,n&&e.syncTargetWithParent&&n.setTargetRef(f)};let i=[];const a=()=>{let f=r.value;for(;f=Ko(f),f!==null;)i.push(f);for(const T of i)ne("scroll",T,h,!0)},s=()=>{for(const f of i)K("scroll",f,h,!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()},h=()=>{Do(v)},v=()=>{l.forEach(f=>f())},y=new Set,d=f=>{y.size===0&&ne("resize",window,g),y.has(f)||y.add(f)},b=f=>{y.has(f)&&y.delete(f),y.size===0&&K("resize",window,g)},g=()=>{y.forEach(f=>f())};return Te(()=>{K("resize",window,g),s()}),{targetRef:r,setTargetRef:o,addScrollListener:u,removeScrollListener:c,addResizeListener:d,removeResizeListener:b}},render(){return kn("binder",this.$slots)}}),xs=ie({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=oe("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?ut(Ir("follower",this.$slots),[[t]]):Ir("follower",this.$slots)}}),nt="@@mmoContext",Cs={mounted(e,{value:t}){e[nt]={handler:void 0},typeof t=="function"&&(e[nt].handler=t,ne("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[nt];typeof t=="function"?n.handler?n.handler!==t&&(K("mousemoveoutside",e,n.handler),n.handler=t,ne("mousemoveoutside",e,t)):(e[nt].handler=t,ne("mousemoveoutside",e,t)):n.handler&&(K("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[nt];t&&K("mousemoveoutside",e,t),e[nt].handler=void 0}},rt="@@coContext",Dr={mounted(e,{value:t,modifiers:n}){e[rt]={handler:void 0},typeof t=="function"&&(e[rt].handler=t,ne("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[rt];typeof t=="function"?r.handler?r.handler!==t&&(K("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,ne("clickoutside",e,t,{capture:n.capture})):(e[rt].handler=t,ne("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[rt];n&&K("clickoutside",e,n,{capture:t.capture}),e[rt].handler=void 0}};function Ss(e,t){console.error(`[vdirs/${e}]: ${t}`)}class $s{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&&Ss("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 $n=new $s,ot="@@ziContext",rr={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[ot]={enabled:!!o,initialized:!1},o&&($n.ensureZIndex(e,r),e[ot].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[ot].enabled;o&&!i&&($n.ensureZIndex(e,r),e[ot].initialized=!0),e[ot].enabled=!!o},unmounted(e,t){if(!e[ot].initialized)return;const{value:n={}}=t,{zIndex:r}=n;$n.unregister(e,r)}},Ts="@css-render/vue3-ssr";function Os(e,t){return`<style cssr-id="${e}">
|
|
13
|
-
${t}
|
|
14
|
-
</style>`}function Ms(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(Os(e,t)))}const Ps=typeof document<"u";function _t(){if(Ps)return;const e=oe(Ts,null);if(e!==null)return{adapter:(t,n)=>Ms(t,n,e),context:e}}function Lr(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Nt}=Wo(),Es="vueuc-style";function Hr(e){return typeof e=="string"?document.querySelector(e):e()}const Jo=ie({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:os(ge(e,"show")),mergedTo:F(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?kn("lazy-teleport",this.$slots):w(la,{disabled:this.disabled,to:this.mergedTo},kn("lazy-teleport",this.$slots)):null}}),Ut={top:"bottom",bottom:"top",left:"right",right:"left"},Fr={start:"end",center:"center",end:"start"},Tn={top:"height",bottom:"height",left:"width",right:"width"},As={"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"},zs={"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"},_s={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},kr={top:!0,bottom:!1,left:!0,right:!1},jr={top:"end",bottom:"start",left:"end",right:"start"};function Rs(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=(y,d,b)=>{let g=0,f=0;const T=n[y]-t[d]-t[y];return T>0&&r&&(b?f=kr[d]?T:-T:g=kr[d]?T:-T),{left:g,top:f}},h=a==="left"||a==="right";if(l!=="center"){const y=_s[e],d=Ut[y],b=Tn[y];if(n[b]>t[b]){if(t[y]+t[b]<n[b]){const g=(n[b]-t[b])/2;t[y]<g||t[d]<g?t[y]<t[d]?(l=Fr[s],u=c(b,d,h)):u=c(b,y,h):l="center"}}else n[b]<t[b]&&t[d]<0&&t[y]>t[d]&&(l=Fr[s])}else{const y=a==="bottom"||a==="top"?"left":"top",d=Ut[y],b=Tn[y],g=(n[b]-t[b])/2;(t[y]<g||t[d]<g)&&(t[y]>t[d]?(l=jr[y],u=c(b,y,h)):(l=jr[d],u=c(b,d,h)))}let v=a;return t[a]<n[Tn[a]]&&t[a]<t[Ut[a]]&&(v=Ut[a]),{placement:l!=="center"?`${v}-${l}`:v,left:u.left,top:u.top}}function Bs(e,t){return t?zs[e]:As[e]}function Is(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 Ds=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"})])]),Ls=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=oe("VBinder"),n=Mt(()=>e.enabled!==void 0?e.enabled:e.show),r=z(null),o=z(null),i=()=>{const{syncTrigger:v}=e;v.includes("scroll")&&t.addScrollListener(l),v.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};ze(()=>{n.value&&(l(),i())});const s=_t();Ds.mount({id:"vueuc/binder",head:!0,anchorMetaName:Es,ssr:s}),Te(()=>{a()}),ss(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const v=r.value;if(v===null)return;const y=t.targetRef,{x:d,y:b,overlap:g}=e,f=d!==void 0&&b!==void 0?bs(d,b):Sn(y);v.style.setProperty("--v-target-width",`${Math.round(f.width)}px`),v.style.setProperty("--v-target-height",`${Math.round(f.height)}px`);const{width:T,minWidth:D,placement:L,internalShift:W,flip:j}=e;v.setAttribute("v-placement",L),g?v.setAttribute("v-overlap",""):v.removeAttribute("v-overlap");const{style:p}=v;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=Sn(v),O=Sn(o.value),{left:$,top:B,placement:R}=Rs(L,f,m,W,j,g),k=Bs(R,g),{left:U,top:S,transform:I}=Is(R,O,f,B,$,g);v.setAttribute("v-placement",R),v.style.setProperty("--v-offset-left",`${Math.round($)}px`),v.style.setProperty("--v-offset-top",`${Math.round(B)}px`),v.style.transform=`translateX(${U}) translateY(${S}) ${I}`,v.style.setProperty("--v-transform-origin",k),v.style.transformOrigin=k};Se(n,v=>{v?(i(),u()):a()});const u=()=>{ua().then(l).catch(v=>console.error(v))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(v=>{Se(ge(e,v),l)}),["teleportDisabled"].forEach(v=>{Se(ge(e,v),u)}),Se(ge(e,"syncTrigger"),v=>{v.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),v.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const c=nr(),h=Mt(()=>{const{to:v}=e;if(v!==void 0)return v;c.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:h,syncPosition:l}},render(){return w(Jo,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=w("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[w("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?ut(n,[[rr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Ye=[],Hs=function(){return Ye.some(function(e){return e.activeTargets.length>0})},Fs=function(){return Ye.some(function(e){return e.skippedTargets.length>0})},Wr="ResizeObserver loop completed with undelivered notifications.",ks=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Wr}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Wr),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 Ze=function(e){return Object.freeze(e)},js=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ze(this)}return e}(),Qo=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,Ze(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},ei=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)},Nr=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)},Ws=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:{},Xt=new WeakMap,Ur=/auto|scroll/,Ns=/^tb|vertical/,Us=/msie|trident/i.test(Tt.navigator&&Tt.navigator.userAgent),Ce=function(e){return parseFloat(e||"0")},lt=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new js((n?t:e)||0,(n?e:t)||0)},Xr=Ze({devicePixelContentBoxSize:lt(),borderBoxSize:lt(),contentBoxSize:lt(),contentRect:new Qo(0,0,0,0)}),ti=function(e,t){if(t===void 0&&(t=!1),Xt.has(e)&&!t)return Xt.get(e);if(ei(e))return Xt.set(e,Xr),Xr;var n=getComputedStyle(e),r=or(e)&&e.ownerSVGElement&&e.getBBox(),o=!Us&&n.boxSizing==="border-box",i=Ns.test(n.writingMode||""),a=!r&&Ur.test(n.overflowY||""),s=!r&&Ur.test(n.overflowX||""),l=r?0:Ce(n.paddingTop),u=r?0:Ce(n.paddingRight),c=r?0:Ce(n.paddingBottom),h=r?0:Ce(n.paddingLeft),v=r?0:Ce(n.borderTopWidth),y=r?0:Ce(n.borderRightWidth),d=r?0:Ce(n.borderBottomWidth),b=r?0:Ce(n.borderLeftWidth),g=h+u,f=l+c,T=b+y,D=v+d,L=s?e.offsetHeight-D-e.clientHeight:0,W=a?e.offsetWidth-T-e.clientWidth:0,j=o?g+T:0,p=o?f+D:0,m=r?r.width:Ce(n.width)-j-W,O=r?r.height:Ce(n.height)-p-L,$=m+g+W+T,B=O+f+L+D,R=Ze({devicePixelContentBoxSize:lt(Math.round(m*devicePixelRatio),Math.round(O*devicePixelRatio),i),borderBoxSize:lt($,B,i),contentBoxSize:lt(m,O,i),contentRect:new Qo(h,l,m,O)});return Xt.set(e,R),R},ni=function(e,t,n){var r=ti(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}},Xs=function(){function e(t){var n=ti(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ze([n.borderBoxSize]),this.contentBoxSize=Ze([n.contentBoxSize]),this.devicePixelContentBoxSize=Ze([n.devicePixelContentBoxSize])}return e}(),ri=function(e){if(ei(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Vs=function(){var e=1/0,t=[];Ye.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var c=new Xs(u.target),h=ri(u.target);s.push(c),u.lastReportedSize=ni(u.target,u.observedBox),h<e&&(e=h)}),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},Vr=function(e){Ye.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(ri(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Ys=function(){var e=0;for(Vr(e);Hs();)e=Vs(),Vr(e);return Fs()&&ks(),e>0},On,oi=[],Zs=function(){return oi.splice(0).forEach(function(e){return e()})},qs=function(e){if(!On){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Zs()}).observe(n,r),On=function(){n.textContent="".concat(t?t--:t++)}}oi.push(e),On()},Gs=function(e){qs(function(){requestAnimationFrame(e)})},Qt=0,Ks=function(){return!!Qt},Js=250,Qs={attributes:!0,characterData:!0,childList:!0,subtree:!0},Yr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zr=function(e){return e===void 0&&(e=0),Date.now()+e},Mn=!1,el=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=Js),!Mn){Mn=!0;var r=Zr(t);Gs(function(){var o=!1;try{o=Ys()}finally{if(Mn=!1,t=r-Zr(),!Ks())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,Qs)};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(),Yr.forEach(function(n){return Tt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Yr.forEach(function(n){return Tt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Wn=new el,qr=function(e){!Qt&&e>0&&Wn.start(),Qt+=e,!Qt&&Wn.stop()},tl=function(e){return!or(e)&&!Ws(e)&&getComputedStyle(e).display==="inline"},nl=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=ni(this.target,this.observedBox,!0);return tl(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),rl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Vt=new WeakMap,Gr=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 rl(t,n);Vt.set(t,r)},e.observe=function(t,n,r){var o=Vt.get(t),i=o.observationTargets.length===0;Gr(o.observationTargets,n)<0&&(i&&Ye.push(o),o.observationTargets.push(new nl(n,r&&r.box)),qr(1),Wn.schedule())},e.unobserve=function(t,n){var r=Vt.get(t),o=Gr(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Ye.splice(Ye.indexOf(r),1),r.observationTargets.splice(o,1),qr(-1))},e.disconnect=function(t){var n=this,r=Vt.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),ol=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(!Nr(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(!Nr(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 il{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||ol)(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 Kr=new il,Jr=ie({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Qn().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}ze(()=>{const o=n.$el;if(o===void 0){Lr("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Lr("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Kr.registerHandler(o.nextElementSibling,r),t=!0)}),Te(()=>{t&&Kr.unregisterHandler(n.$el.nextElementSibling)})},render(){return ca(this.$slots,"default")}});function ii(e){return e instanceof HTMLElement}function ai(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(ii(n)&&(li(n)||ai(n)))return!0}return!1}function si(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(ii(n)&&(li(n)||si(n)))return!0}return!1}function li(e){if(!al(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function al(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 sl=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=Ho(),n=z(null),r=z(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))}ze(()=>{Se(()=>e.active,g=>{g?(h(),ne("keydown",document,l)):(K("keydown",document,l),o&&v())},{immediate:!0})}),Te(()=>{K("keydown",document,l),o&&v()});function u(g){if(!i&&s()){const f=c();if(f===null||f.contains(tn(g)))return;y("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 h(){var g;if(!e.disabled){if(bt.push(t),e.autoFocus){const{initialFocusTo:f}=e;f===void 0?y("first"):(g=Hr(f))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}}function v(){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=Hr(f))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function y(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"?ai(D):si(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)?y("last"):y("first"))}function b(g){i||(g.relatedTarget!==null&&g.relatedTarget===n.value?y("last"):y("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:d,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return w(Ae,null,[w("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),w("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function ll(e){const t={isDeactivated:!1};let n=!1;return da(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),fa(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function ul(e,t){if(!e)return;const n=document.createElement("a");n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}var ui=typeof global=="object"&&global&&global.Object===Object&&global,cl=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ui||cl||Function("return this")(),Le=Oe.Symbol,ci=Object.prototype,dl=ci.hasOwnProperty,fl=ci.toString,wt=Le?Le.toStringTag:void 0;function hl(e){var t=dl.call(e,wt),n=e[wt];try{e[wt]=void 0;var r=!0}catch{}var o=fl.call(e);return r&&(t?e[wt]=n:delete e[wt]),o}var vl=Object.prototype,pl=vl.toString;function gl(e){return pl.call(e)}var ml="[object Null]",bl="[object Undefined]",Qr=Le?Le.toStringTag:void 0;function Ke(e){return e==null?e===void 0?bl:ml:Qr&&Qr in Object(e)?hl(e):gl(e)}function He(e){return e!=null&&typeof e=="object"}var wl="[object Symbol]";function ir(e){return typeof e=="symbol"||He(e)&&Ke(e)==wl}function di(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 me=Array.isArray,yl=1/0,eo=Le?Le.prototype:void 0,to=eo?eo.toString:void 0;function fi(e){if(typeof e=="string")return e;if(me(e))return di(e,fi)+"";if(ir(e))return to?to.call(e):"";var t=e+"";return t=="0"&&1/e==-yl?"-0":t}function Fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ar(e){return e}var xl="[object AsyncFunction]",Cl="[object Function]",Sl="[object GeneratorFunction]",$l="[object Proxy]";function sr(e){if(!Fe(e))return!1;var t=Ke(e);return t==Cl||t==Sl||t==xl||t==$l}var Pn=Oe["__core-js_shared__"],no=function(){var e=/[^.]+$/.exec(Pn&&Pn.keys&&Pn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Tl(e){return!!no&&no in e}var Ol=Function.prototype,Ml=Ol.toString;function Je(e){if(e!=null){try{return Ml.call(e)}catch{}try{return e+""}catch{}}return""}var Pl=/[\\^$.*+?()[\]{}|]/g,El=/^\[object .+?Constructor\]$/,Al=Function.prototype,zl=Object.prototype,_l=Al.toString,Rl=zl.hasOwnProperty,Bl=RegExp("^"+_l.call(Rl).replace(Pl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Il(e){if(!Fe(e)||Tl(e))return!1;var t=sr(e)?Bl:El;return t.test(Je(e))}function Dl(e,t){return e==null?void 0:e[t]}function Qe(e,t){var n=Dl(e,t);return Il(n)?n:void 0}var Nn=Qe(Oe,"WeakMap"),ro=Object.create,Ll=function(){function e(){}return function(t){if(!Fe(t))return{};if(ro)return ro(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Hl(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 Fl(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kl=800,jl=16,Wl=Date.now;function Nl(e){var t=0,n=0;return function(){var r=Wl(),o=jl-(r-n);if(n=r,o>0){if(++t>=kl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ul(e){return function(){return e}}var nn=function(){try{var e=Qe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Xl=nn?function(e,t){return nn(e,"toString",{configurable:!0,enumerable:!1,value:Ul(t),writable:!0})}:ar,Vl=Nl(Xl),Yl=9007199254740991,Zl=/^(?:0|[1-9]\d*)$/;function lr(e,t){var n=typeof e;return t=t??Yl,!!t&&(n=="number"||n!="symbol"&&Zl.test(e))&&e>-1&&e%1==0&&e<t}function ur(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 ql=Object.prototype,Gl=ql.hasOwnProperty;function Kl(e,t,n){var r=e[t];(!(Gl.call(e,t)&&Rt(r,n))||n===void 0&&!(t in e))&&ur(e,t,n)}function Jl(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?ur(n,s,l):Kl(n,s,l)}return n}var oo=Math.max;function Ql(e,t,n){return t=oo(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=oo(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),Hl(e,this,s)}}function eu(e,t){return Vl(Ql(e,t,ar),e+"")}var tu=9007199254740991;function cr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tu}function vt(e){return e!=null&&cr(e.length)&&!sr(e)}function nu(e,t,n){if(!Fe(n))return!1;var r=typeof t;return(r=="number"?vt(n)&&lr(t,n.length):r=="string"&&t in n)?Rt(n[t],e):!1}function ru(e){return eu(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&&nu(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 ou=Object.prototype;function dr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ou;return e===n}function iu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var au="[object Arguments]";function io(e){return He(e)&&Ke(e)==au}var hi=Object.prototype,su=hi.hasOwnProperty,lu=hi.propertyIsEnumerable,rn=io(function(){return arguments}())?io:function(e){return He(e)&&su.call(e,"callee")&&!lu.call(e,"callee")};function uu(){return!1}var vi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ao=vi&&typeof module=="object"&&module&&!module.nodeType&&module,cu=ao&&ao.exports===vi,so=cu?Oe.Buffer:void 0,du=so?so.isBuffer:void 0,on=du||uu,fu="[object Arguments]",hu="[object Array]",vu="[object Boolean]",pu="[object Date]",gu="[object Error]",mu="[object Function]",bu="[object Map]",wu="[object Number]",yu="[object Object]",xu="[object RegExp]",Cu="[object Set]",Su="[object String]",$u="[object WeakMap]",Tu="[object ArrayBuffer]",Ou="[object DataView]",Mu="[object Float32Array]",Pu="[object Float64Array]",Eu="[object Int8Array]",Au="[object Int16Array]",zu="[object Int32Array]",_u="[object Uint8Array]",Ru="[object Uint8ClampedArray]",Bu="[object Uint16Array]",Iu="[object Uint32Array]",Z={};Z[Mu]=Z[Pu]=Z[Eu]=Z[Au]=Z[zu]=Z[_u]=Z[Ru]=Z[Bu]=Z[Iu]=!0;Z[fu]=Z[hu]=Z[Tu]=Z[vu]=Z[Ou]=Z[pu]=Z[gu]=Z[mu]=Z[bu]=Z[wu]=Z[yu]=Z[xu]=Z[Cu]=Z[Su]=Z[$u]=!1;function Du(e){return He(e)&&cr(e.length)&&!!Z[Ke(e)]}function Lu(e){return function(t){return e(t)}}var pi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ot=pi&&typeof module=="object"&&module&&!module.nodeType&&module,Hu=Ot&&Ot.exports===pi,En=Hu&&ui.process,lo=function(){try{var e=Ot&&Ot.require&&Ot.require("util").types;return e||En&&En.binding&&En.binding("util")}catch{}}(),uo=lo&&lo.isTypedArray,fr=uo?Lu(uo):Du,Fu=Object.prototype,ku=Fu.hasOwnProperty;function gi(e,t){var n=me(e),r=!n&&rn(e),o=!n&&!r&&on(e),i=!n&&!r&&!o&&fr(e),a=n||r||o||i,s=a?iu(e.length,String):[],l=s.length;for(var u in e)(t||ku.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lr(u,l)))&&s.push(u);return s}function mi(e,t){return function(n){return e(t(n))}}var ju=mi(Object.keys,Object),Wu=Object.prototype,Nu=Wu.hasOwnProperty;function Uu(e){if(!dr(e))return ju(e);var t=[];for(var n in Object(e))Nu.call(e,n)&&n!="constructor"&&t.push(n);return t}function hr(e){return vt(e)?gi(e):Uu(e)}function Xu(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Vu=Object.prototype,Yu=Vu.hasOwnProperty;function Zu(e){if(!Fe(e))return Xu(e);var t=dr(e),n=[];for(var r in e)r=="constructor"&&(t||!Yu.call(e,r))||n.push(r);return n}function bi(e){return vt(e)?gi(e,!0):Zu(e)}var qu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gu=/^\w*$/;function vr(e,t){if(me(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ir(e)?!0:Gu.test(e)||!qu.test(e)||t!=null&&e in Object(t)}var Et=Qe(Object,"create");function Ku(){this.__data__=Et?Et(null):{},this.size=0}function Ju(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Qu="__lodash_hash_undefined__",ec=Object.prototype,tc=ec.hasOwnProperty;function nc(e){var t=this.__data__;if(Et){var n=t[e];return n===Qu?void 0:n}return tc.call(t,e)?t[e]:void 0}var rc=Object.prototype,oc=rc.hasOwnProperty;function ic(e){var t=this.__data__;return Et?t[e]!==void 0:oc.call(t,e)}var ac="__lodash_hash_undefined__";function sc(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Et&&t===void 0?ac:t,this}function Ge(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])}}Ge.prototype.clear=Ku;Ge.prototype.delete=Ju;Ge.prototype.get=nc;Ge.prototype.has=ic;Ge.prototype.set=sc;function lc(){this.__data__=[],this.size=0}function un(e,t){for(var n=e.length;n--;)if(Rt(e[n][0],t))return n;return-1}var uc=Array.prototype,cc=uc.splice;function dc(e){var t=this.__data__,n=un(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():cc.call(t,n,1),--this.size,!0}function fc(e){var t=this.__data__,n=un(t,e);return n<0?void 0:t[n][1]}function hc(e){return un(this.__data__,e)>-1}function vc(e,t){var n=this.__data__,r=un(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _e(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])}}_e.prototype.clear=lc;_e.prototype.delete=dc;_e.prototype.get=fc;_e.prototype.has=hc;_e.prototype.set=vc;var At=Qe(Oe,"Map");function pc(){this.size=0,this.__data__={hash:new Ge,map:new(At||_e),string:new Ge}}function gc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cn(e,t){var n=e.__data__;return gc(t)?n[typeof t=="string"?"string":"hash"]:n.map}function mc(e){var t=cn(this,e).delete(e);return this.size-=t?1:0,t}function bc(e){return cn(this,e).get(e)}function wc(e){return cn(this,e).has(e)}function yc(e,t){var n=cn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,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=pc;Re.prototype.delete=mc;Re.prototype.get=bc;Re.prototype.has=wc;Re.prototype.set=yc;var xc="Expected a function";function pr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xc);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(pr.Cache||Re),n}pr.Cache=Re;var Cc=500;function Sc(e){var t=pr(e,function(r){return n.size===Cc&&n.clear(),r}),n=t.cache;return t}var $c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tc=/\\(\\)?/g,Oc=Sc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($c,function(n,r,o,i){t.push(o?i.replace(Tc,"$1"):r||n)}),t});function dn(e){return e==null?"":fi(e)}function wi(e,t){return me(e)?e:vr(e,t)?[e]:Oc(dn(e))}var Mc=1/0;function fn(e){if(typeof e=="string"||ir(e))return e;var t=e+"";return t=="0"&&1/e==-Mc?"-0":t}function yi(e,t){t=wi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[fn(t[n++])];return n&&n==r?e:void 0}function Pc(e,t,n){var r=e==null?void 0:yi(e,t);return r===void 0?n:r}function Ec(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var xi=mi(Object.getPrototypeOf,Object),Ac="[object Object]",zc=Function.prototype,_c=Object.prototype,Ci=zc.toString,Rc=_c.hasOwnProperty,Bc=Ci.call(Object);function Ic(e){if(!He(e)||Ke(e)!=Ac)return!1;var t=xi(e);if(t===null)return!0;var n=Rc.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ci.call(n)==Bc}function Dc(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 Lc(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Dc(e,t,n)}var Hc="\\ud800-\\udfff",Fc="\\u0300-\\u036f",kc="\\ufe20-\\ufe2f",jc="\\u20d0-\\u20ff",Wc=Fc+kc+jc,Nc="\\ufe0e\\ufe0f",Uc="\\u200d",Xc=RegExp("["+Uc+Hc+Wc+Nc+"]");function Si(e){return Xc.test(e)}function Vc(e){return e.split("")}var $i="\\ud800-\\udfff",Yc="\\u0300-\\u036f",Zc="\\ufe20-\\ufe2f",qc="\\u20d0-\\u20ff",Gc=Yc+Zc+qc,Kc="\\ufe0e\\ufe0f",Jc="["+$i+"]",Un="["+Gc+"]",Xn="\\ud83c[\\udffb-\\udfff]",Qc="(?:"+Un+"|"+Xn+")",Ti="[^"+$i+"]",Oi="(?:\\ud83c[\\udde6-\\uddff]){2}",Mi="[\\ud800-\\udbff][\\udc00-\\udfff]",ed="\\u200d",Pi=Qc+"?",Ei="["+Kc+"]?",td="(?:"+ed+"(?:"+[Ti,Oi,Mi].join("|")+")"+Ei+Pi+")*",nd=Ei+Pi+td,rd="(?:"+[Ti+Un+"?",Un,Oi,Mi,Jc].join("|")+")",od=RegExp(Xn+"(?="+Xn+")|"+rd+nd,"g");function id(e){return e.match(od)||[]}function ad(e){return Si(e)?id(e):Vc(e)}function sd(e){return function(t){t=dn(t);var n=Si(t)?ad(t):void 0,r=n?n[0]:t.charAt(0),o=n?Lc(n,1).join(""):t.slice(1);return r[e]()+o}}var ld=sd("toUpperCase");function ud(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 cd(e){return function(t){return e==null?void 0:e[t]}}var dd={À:"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"},fd=cd(dd),hd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vd="\\u0300-\\u036f",pd="\\ufe20-\\ufe2f",gd="\\u20d0-\\u20ff",md=vd+pd+gd,bd="["+md+"]",wd=RegExp(bd,"g");function yd(e){return e=dn(e),e&&e.replace(hd,fd).replace(wd,"")}var xd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Cd(e){return e.match(xd)||[]}var Sd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function $d(e){return Sd.test(e)}var Ai="\\ud800-\\udfff",Td="\\u0300-\\u036f",Od="\\ufe20-\\ufe2f",Md="\\u20d0-\\u20ff",Pd=Td+Od+Md,zi="\\u2700-\\u27bf",_i="a-z\\xdf-\\xf6\\xf8-\\xff",Ed="\\xac\\xb1\\xd7\\xf7",Ad="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zd="\\u2000-\\u206f",_d=" \\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",Ri="A-Z\\xc0-\\xd6\\xd8-\\xde",Rd="\\ufe0e\\ufe0f",Bi=Ed+Ad+zd+_d,Ii="['’]",co="["+Bi+"]",Bd="["+Pd+"]",Di="\\d+",Id="["+zi+"]",Li="["+_i+"]",Hi="[^"+Ai+Bi+Di+zi+_i+Ri+"]",Dd="\\ud83c[\\udffb-\\udfff]",Ld="(?:"+Bd+"|"+Dd+")",Hd="[^"+Ai+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",ki="[\\ud800-\\udbff][\\udc00-\\udfff]",it="["+Ri+"]",Fd="\\u200d",fo="(?:"+Li+"|"+Hi+")",kd="(?:"+it+"|"+Hi+")",ho="(?:"+Ii+"(?:d|ll|m|re|s|t|ve))?",vo="(?:"+Ii+"(?:D|LL|M|RE|S|T|VE))?",ji=Ld+"?",Wi="["+Rd+"]?",jd="(?:"+Fd+"(?:"+[Hd,Fi,ki].join("|")+")"+Wi+ji+")*",Wd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ud=Wi+ji+jd,Xd="(?:"+[Id,Fi,ki].join("|")+")"+Ud,Vd=RegExp([it+"?"+Li+"+"+ho+"(?="+[co,it,"$"].join("|")+")",kd+"+"+vo+"(?="+[co,it+fo,"$"].join("|")+")",it+"?"+fo+"+"+ho,it+"+"+vo,Nd,Wd,Di,Xd].join("|"),"g");function Yd(e){return e.match(Vd)||[]}function Zd(e,t,n){return e=dn(e),t=t,t===void 0?$d(e)?Yd(e):Cd(e):e.match(t)||[]}var qd="['’]",Gd=RegExp(qd,"g");function Kd(e){return function(t){return ud(Zd(yd(t).replace(Gd,"")),e,"")}}function Jd(){this.__data__=new _e,this.size=0}function Qd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ef(e){return this.__data__.get(e)}function tf(e){return this.__data__.has(e)}var nf=200;function rf(e,t){var n=this.__data__;if(n instanceof _e){var r=n.__data__;if(!At||r.length<nf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Re(r)}return n.set(e,t),this.size=n.size,this}function $e(e){var t=this.__data__=new _e(e);this.size=t.size}$e.prototype.clear=Jd;$e.prototype.delete=Qd;$e.prototype.get=ef;$e.prototype.has=tf;$e.prototype.set=rf;var Ni=typeof exports=="object"&&exports&&!exports.nodeType&&exports,po=Ni&&typeof module=="object"&&module&&!module.nodeType&&module,of=po&&po.exports===Ni,go=of?Oe.Buffer:void 0;go&&go.allocUnsafe;function af(e,t){return e.slice()}function sf(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 lf(){return[]}var uf=Object.prototype,cf=uf.propertyIsEnumerable,mo=Object.getOwnPropertySymbols,df=mo?function(e){return e==null?[]:(e=Object(e),sf(mo(e),function(t){return cf.call(e,t)}))}:lf;function ff(e,t,n){var r=t(e);return me(e)?r:Ec(r,n(e))}function bo(e){return ff(e,hr,df)}var Vn=Qe(Oe,"DataView"),Yn=Qe(Oe,"Promise"),Zn=Qe(Oe,"Set"),wo="[object Map]",hf="[object Object]",yo="[object Promise]",xo="[object Set]",Co="[object WeakMap]",So="[object DataView]",vf=Je(Vn),pf=Je(At),gf=Je(Yn),mf=Je(Zn),bf=Je(Nn),De=Ke;(Vn&&De(new Vn(new ArrayBuffer(1)))!=So||At&&De(new At)!=wo||Yn&&De(Yn.resolve())!=yo||Zn&&De(new Zn)!=xo||Nn&&De(new Nn)!=Co)&&(De=function(e){var t=Ke(e),n=t==hf?e.constructor:void 0,r=n?Je(n):"";if(r)switch(r){case vf:return So;case pf:return wo;case gf:return yo;case mf:return xo;case bf:return Co}return t});var an=Oe.Uint8Array;function wf(e){var t=new e.constructor(e.byteLength);return new an(t).set(new an(e)),t}function yf(e,t){var n=wf(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function xf(e){return typeof e.constructor=="function"&&!dr(e)?Ll(xi(e)):{}}var Cf="__lodash_hash_undefined__";function Sf(e){return this.__data__.set(e,Cf),this}function $f(e){return this.__data__.has(e)}function sn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Re;++t<n;)this.add(e[t])}sn.prototype.add=sn.prototype.push=Sf;sn.prototype.has=$f;function Tf(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 Of(e,t){return e.has(t)}var Mf=1,Pf=2;function Ui(e,t,n,r,o,i){var a=n&Mf,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 h=-1,v=!0,y=n&Pf?new sn:void 0;for(i.set(e,t),i.set(t,e);++h<s;){var d=e[h],b=t[h];if(r)var g=a?r(b,d,h,t,e,i):r(d,b,h,e,t,i);if(g!==void 0){if(g)continue;v=!1;break}if(y){if(!Tf(t,function(f,T){if(!Of(y,T)&&(d===f||o(d,f,n,r,i)))return y.push(T)})){v=!1;break}}else if(!(d===b||o(d,b,n,r,i))){v=!1;break}}return i.delete(e),i.delete(t),v}function Ef(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Af(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var zf=1,_f=2,Rf="[object Boolean]",Bf="[object Date]",If="[object Error]",Df="[object Map]",Lf="[object Number]",Hf="[object RegExp]",Ff="[object Set]",kf="[object String]",jf="[object Symbol]",Wf="[object ArrayBuffer]",Nf="[object DataView]",$o=Le?Le.prototype:void 0,An=$o?$o.valueOf:void 0;function Uf(e,t,n,r,o,i,a){switch(n){case Nf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wf:return!(e.byteLength!=t.byteLength||!i(new an(e),new an(t)));case Rf:case Bf:case Lf:return Rt(+e,+t);case If:return e.name==t.name&&e.message==t.message;case Hf:case kf:return e==t+"";case Df:var s=Ef;case Ff:var l=r&zf;if(s||(s=Af),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=_f,a.set(e,t);var c=Ui(s(e),s(t),r,o,i,a);return a.delete(e),c;case jf:if(An)return An.call(e)==An.call(t)}return!1}var Xf=1,Vf=Object.prototype,Yf=Vf.hasOwnProperty;function Zf(e,t,n,r,o,i){var a=n&Xf,s=bo(e),l=s.length,u=bo(t),c=u.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var v=s[h];if(!(a?v in t:Yf.call(t,v)))return!1}var y=i.get(e),d=i.get(t);if(y&&d)return y==t&&d==e;var b=!0;i.set(e,t),i.set(t,e);for(var g=a;++h<l;){v=s[h];var f=e[v],T=t[v];if(r)var D=a?r(T,f,v,t,e,i):r(f,T,v,e,t,i);if(!(D===void 0?f===T||o(f,T,n,r,i):D)){b=!1;break}g||(g=v=="constructor")}if(b&&!g){var L=e.constructor,W=t.constructor;L!=W&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof W=="function"&&W instanceof W)&&(b=!1)}return i.delete(e),i.delete(t),b}var qf=1,To="[object Arguments]",Oo="[object Array]",Zt="[object Object]",Gf=Object.prototype,Mo=Gf.hasOwnProperty;function Kf(e,t,n,r,o,i){var a=me(e),s=me(t),l=a?Oo:De(e),u=s?Oo:De(t);l=l==To?Zt:l,u=u==To?Zt:u;var c=l==Zt,h=u==Zt,v=l==u;if(v&&on(e)){if(!on(t))return!1;a=!0,c=!1}if(v&&!c)return i||(i=new $e),a||fr(e)?Ui(e,t,n,r,o,i):Uf(e,t,l,n,r,o,i);if(!(n&qf)){var y=c&&Mo.call(e,"__wrapped__"),d=h&&Mo.call(t,"__wrapped__");if(y||d){var b=y?e.value():e,g=d?t.value():t;return i||(i=new $e),o(b,g,n,r,i)}}return v?(i||(i=new $e),Zf(e,t,n,r,o,i)):!1}function gr(e,t,n,r,o){return e===t?!0:e==null||t==null||!He(e)&&!He(t)?e!==e&&t!==t:Kf(e,t,n,r,gr,o)}var Jf=1,Qf=2;function eh(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 $e,h;if(!(h===void 0?gr(u,l,Jf|Qf,r,c):h))return!1}}return!0}function Xi(e){return e===e&&!Fe(e)}function th(e){for(var t=hr(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Xi(o)]}return t}function Vi(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function nh(e){var t=th(e);return t.length==1&&t[0][2]?Vi(t[0][0],t[0][1]):function(n){return n===e||eh(n,e,t)}}function rh(e,t){return e!=null&&t in Object(e)}function oh(e,t,n){t=wi(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=fn(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&&cr(o)&&lr(a,o)&&(me(e)||rn(e)))}function ih(e,t){return e!=null&&oh(e,t,rh)}var ah=1,sh=2;function lh(e,t){return vr(e)&&Xi(t)?Vi(fn(e),t):function(n){var r=Pc(n,e);return r===void 0&&r===t?ih(n,e):gr(t,r,ah|sh)}}function uh(e){return function(t){return t==null?void 0:t[e]}}function ch(e){return function(t){return yi(t,e)}}function dh(e){return vr(e)?uh(fn(e)):ch(e)}function fh(e){return typeof e=="function"?e:e==null?ar:typeof e=="object"?me(e)?lh(e[0],e[1]):nh(e):dh(e)}function hh(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 Yi=hh();function vh(e,t){return e&&Yi(e,t,hr)}function ph(e,t){return function(n,r){if(n==null)return n;if(!vt(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 gh=ph(vh);function qn(e,t,n){(n!==void 0&&!Rt(e[t],n)||n===void 0&&!(t in e))&&ur(e,t,n)}function mh(e){return He(e)&&vt(e)}function Gn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function bh(e){return Jl(e,bi(e))}function wh(e,t,n,r,o,i,a){var s=Gn(e,n),l=Gn(t,n),u=a.get(l);if(u){qn(e,n,u);return}var c=i?i(s,l,n+"",e,t,a):void 0,h=c===void 0;if(h){var v=me(l),y=!v&&on(l),d=!v&&!y&&fr(l);c=l,v||y||d?me(s)?c=s:mh(s)?c=Fl(s):y?(h=!1,c=af(l)):d?(h=!1,c=yf(l)):c=[]:Ic(l)||rn(l)?(c=s,rn(s)?c=bh(s):(!Fe(s)||sr(s))&&(c=xf(l))):h=!1}h&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),qn(e,n,c)}function Zi(e,t,n,r,o){e!==t&&Yi(t,function(i,a){if(o||(o=new $e),Fe(i))wh(e,t,a,n,Zi,r,o);else{var s=r?r(Gn(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),qn(e,a,s)}},bi)}function yh(e,t){var n=-1,r=vt(e)?Array(e.length):[];return gh(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function xh(e,t){var n=me(e)?di:yh;return n(e,fh(t))}var Ch=Kd(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qt=ru(function(e,t,n){Zi(e,t,n)});const hn={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:Sh,fontFamily:$h,lineHeight:Th}=hn,qi=H("body",`
|
|
15
|
-
margin: 0;
|
|
16
|
-
font-size: ${Sh};
|
|
17
|
-
font-family: ${$h};
|
|
18
|
-
line-height: ${Th};
|
|
19
|
-
-webkit-text-size-adjust: 100%;
|
|
20
|
-
-webkit-tap-highlight-color: transparent;
|
|
21
|
-
`,[H("input",`
|
|
22
|
-
font-family: inherit;
|
|
23
|
-
font-size: inherit;
|
|
24
|
-
`)]),pt="n-config-provider",zt="naive-ui-style";function Me(e,t,n,r,o,i){const a=_t(),s=oe(pt,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:zt,ssr:a}),s!=null&&s.preflightStyleDisabled||qi.mount({id:"n-global",head:!0,anchorMetaName:zt,ssr:a})};a?u():er(u)}return F(()=>{var u;const{theme:{common:c,self:h,peers:v={}}={},themeOverrides:y={},builtinThemeOverrides:d={}}=o,{common:b,peers:g}=y,{common:f=void 0,[e]:{common:T=void 0,self:D=void 0,peers:L={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:W=void 0,[e]:j={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:p,peers:m={}}=j,O=qt({},c||T||f||r.common,W,p,b),$=qt((u=h||D||r.self)===null||u===void 0?void 0:u(O),d,j,y);return{common:O,self:$,peers:qt({},r.peers,L,v),peerOverrides:qt({},d.peers,m,g)}})}Me.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Oh="n";function gt(e={},t={defaultBordered:!0}){const n=oe(pt,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:ha(Oh),namespaceRef:F(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const Mh={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:"RRRR-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 zn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function yt(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}function xt(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Eh(s,function(h){return h.test(a)}):Ph(s,function(h){return h.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(a.length);return{value:u,rest:c}}}function Ph(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Eh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Ah(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var zh={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"}},_h=function(t,n,r){var o,i=zh[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o},Rh={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Bh={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ih={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dh={date:zn({formats:Rh,defaultWidth:"full"}),time:zn({formats:Bh,defaultWidth:"full"}),dateTime:zn({formats:Ih,defaultWidth:"full"})},Lh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Hh=function(t,n,r,o){return Lh[t]},Fh={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jh={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"]},Wh={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"]},Nh={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"}},Uh={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"}},Xh=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Vh={ordinalNumber:Xh,era:yt({values:Fh,defaultWidth:"wide"}),quarter:yt({values:kh,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yt({values:jh,defaultWidth:"wide"}),day:yt({values:Wh,defaultWidth:"wide"}),dayPeriod:yt({values:Nh,defaultWidth:"wide",formattingValues:Uh,defaultFormattingWidth:"wide"})},Yh=/^(\d+)(th|st|nd|rd)?/i,Zh=/\d+/i,qh={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},Gh={any:[/^b/i,/^(a|c)/i]},Kh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Jh={any:[/1/i,/2/i,/3/i,/4/i]},Qh={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},ev={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]},tv={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},nv={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]},rv={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},ov={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}},iv={ordinalNumber:Ah({matchPattern:Yh,parsePattern:Zh,valueCallback:function(t){return parseInt(t,10)}}),era:xt({matchPatterns:qh,defaultMatchWidth:"wide",parsePatterns:Gh,defaultParseWidth:"any"}),quarter:xt({matchPatterns:Kh,defaultMatchWidth:"wide",parsePatterns:Jh,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:xt({matchPatterns:Qh,defaultMatchWidth:"wide",parsePatterns:ev,defaultParseWidth:"any"}),day:xt({matchPatterns:tv,defaultMatchWidth:"wide",parsePatterns:nv,defaultParseWidth:"any"}),dayPeriod:xt({matchPatterns:rv,defaultMatchWidth:"any",parsePatterns:ov,defaultParseWidth:"any"})},av={code:"en-US",formatDistance:_h,formatLong:Dh,formatRelative:Hh,localize:Vh,match:iv,options:{weekStartsOn:0,firstWeekContainsDate:1}};const sv={name:"en-US",locale:av};function lv(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=oe(pt,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:Mh[e]});return{dateLocaleRef:F(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:sv}),localeRef:r}}function uv(e,t,n){if(!t)return;const r=_t(),o=oe(pt,null),i=()=>{const a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:zt,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||qi.mount({id:"n-global",head:!0,anchorMetaName:zt,ssr:r})};r?i():er(i)}function mr(e,t,n,r){var o;n||ya("useThemeClass","cssVarsRef is not passed");const i=(o=oe(pt,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=z(""),s=_t();let l;const u=`__${e}`,c=()=>{let h=u;const v=i==null?void 0:i.value;v&&(h+=`-${v}`);const{themeOverrides:y,builtinThemeOverrides:d}=r;y&&(h+=`-${Fn(JSON.stringify(y))}`),d&&(h+=`-${Fn(JSON.stringify(d))}`),a.value=h,l=()=>{const b=n.value;let g="";for(const f in b)g+=`${f}: ${b[f]};`;H(`.${h}`,g).mount({id:h,ssr:s}),l=void 0}};return qe(()=>{c()}),{themeClass:a,onRender:()=>{l==null||l()}}}function cv(e,t,n){if(!t)return;const r=_t(),o=F(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{qe(()=>{const{value:a}=n,s=`${a}${e}Rtl`;if(Ga(s,r))return;const{value:l}=o;l&&l.style.mount({id:s,head:!0,anchorMetaName:zt,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():er(i),o}const br=Object.assign(Object.assign({},Me.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Gi="n-image";function dv(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 _n=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,fv=(e,t,n)=>{if(!e)return()=>{};const r=dv(t),{root:o}=r.options;let i;const a=_n.get(o);a?i=a:(i=new Map,_n.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(h=>{h.forEach(v=>{if(v.isIntersecting){const y=Rn.get(v.target),d=Bn.get(v.target);y&&y(),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||(Rn.delete(e),Bn.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||_n.delete(o))};return Rn.set(e,c),Bn.set(e,n),c};function Bt(e,t){return ie({name:ld(e),setup(){var n;const r=(n=oe(pt,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 hv=Bt("download",w("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},w("g",{fill:"currentColor","fill-rule":"nonzero"},w("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"}))))),vv=Bt("rotateClockwise",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("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"}),w("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"}))),pv=Bt("rotateClockwise",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("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"}),w("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"}))),gv=Bt("zoomIn",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("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"}),w("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"}))),mv=Bt("zoomOut",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("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"}),w("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"}))),bv=ie({name:"ResizeSmall",render(){return w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},w("g",{fill:"none"},w("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"})))}}),wv=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
|
-
`)]),Pe=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){uv("-base-icon",wv,ge(e,"clsPrefix"))},render(){return w("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)}}),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=ct(E.neutralBase),Ki=ct(E.neutralInvertBase),xv=`rgba(${Ki.slice(0,3).join(", ")}, `;function Po(e){return`${xv+String(e)})`}function se(e){const t=Array.from(Ki);return t[3]=Number(e),Lo(yv,t)}const vn=Object.assign(Object.assign({name:"common"},hn),{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:Po(E.alphaScrollbar),scrollbarColorHover:Po(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={railInsetHorizontal:"auto 2px 4px 2px",railInsetVertical:"2px 4px 2px auto",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:vn,self:Sv},{cubicBezierEaseInOut:Eo}=hn;function Kn({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 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
|
-
`,[Ve("horizontal",`
|
|
63
|
-
inset: var(--n-scrollbar-rail-inset-horizontal);
|
|
64
|
-
height: var(--n-scrollbar-height);
|
|
65
|
-
`,[H(">",[Ue("scrollbar",`
|
|
66
|
-
height: var(--n-scrollbar-height);
|
|
67
|
-
border-radius: var(--n-scrollbar-border-radius);
|
|
68
|
-
right: 0;
|
|
69
|
-
`)])]),Ve("vertical",`
|
|
70
|
-
inset: var(--n-scrollbar-rail-inset-vertical);
|
|
71
|
-
width: var(--n-scrollbar-width);
|
|
72
|
-
`,[H(">",[Ue("scrollbar",`
|
|
73
|
-
width: var(--n-scrollbar-width);
|
|
74
|
-
border-radius: var(--n-scrollbar-border-radius);
|
|
75
|
-
bottom: 0;
|
|
76
|
-
`)])]),Ve("disabled",[H(">",[Ue("scrollbar","pointer-events: none;")])]),H(">",[Ue("scrollbar",`
|
|
77
|
-
z-index: 1;
|
|
78
|
-
position: absolute;
|
|
79
|
-
cursor: pointer;
|
|
80
|
-
pointer-events: all;
|
|
81
|
-
background-color: var(--n-scrollbar-color);
|
|
82
|
-
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
83
|
-
`,[Kn(),H("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),Ov=Object.assign(Object.assign({},Me.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}),Mv=ie({name:"Scrollbar",props:Ov,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=gt(e),o=cv("Scrollbar",r,t),i=z(null),a=z(null),s=z(null),l=z(null),u=z(null),c=z(null),h=z(null),v=z(null),y=z(null),d=z(null),b=z(null),g=z(0),f=z(0),T=z(!1),D=z(!1);let L=!1,W=!1,j,p,m=0,O=0,$=0,B=0;const R=gs(),k=Me("Scrollbar","-scrollbar",Tv,$v,e,t),U=F(()=>{const{value:x}=v,{value:P}=c,{value:_}=d;return x===null||P===null||_===null?0:Math.min(x,_*x/P+Ar(k.value.self.width)*1.5)}),S=F(()=>`${U.value}px`),I=F(()=>{const{value:x}=y,{value:P}=h,{value:_}=b;return x===null||P===null||_===null?0:_*x/P+Ar(k.value.self.height)*1.5}),X=F(()=>`${I.value}px`),J=F(()=>{const{value:x}=v,{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}}),re=F(()=>`${J.value}px`),Q=F(()=>{const{value:x}=y,{value:P}=f,{value:_}=h,{value:Y}=b;if(x===null||_===null||Y===null)return 0;{const ee=_-x;return ee?P/ee*(Y-I.value):0}}),fe=F(()=>`${Q.value}px`),et=F(()=>{const{value:x}=v,{value:P}=c;return x!==null&&P!==null&&P>x}),It=F(()=>{const{value:x}=y,{value:P}=h;return x!==null&&P!==null&&P>x}),pn=F(()=>{const{trigger:x}=e;return x==="none"||T.value}),he=F(()=>{const{trigger:x}=e;return x==="none"||D.value}),ye=F(()=>{const{container:x}=e;return x?x():a.value}),gn=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:be,behavior:q,el:we,debounce:mt=!0}=x;(_!==void 0||Y!==void 0)&&C(_??0,Y??0,0,!1,q),we!==void 0?C(0,we.offsetTop,we.offsetHeight,mt,q):ee!==void 0&&ce!==void 0?C(0,ee*ce,ce,mt,q):be==="bottom"?C(0,Number.MAX_SAFE_INTEGER,0,!1,q):be==="top"&&C(0,0,0,!1,q)},Lt=ll(()=>{e.container||Dt({top:g.value,left:f.value})}),Ht=()=>{Lt.isDeactivated||ke()},Ft=x=>{if(Lt.isDeactivated)return;const{onResize:P}=e;P&&P(x),ke()},Be=(x,P)=>{if(!e.scrollable)return;const{value:_}=ye;_&&(typeof x=="object"?_.scrollBy(x):_.scrollBy(x,P||0))};function C(x,P,_,Y,ee){const{value:ce}=ye;if(ce){if(Y){const{scrollTop:be,offsetHeight:q}=ce;if(P>be){P+_<=be+q||ce.scrollTo({left:x,top:P+_-q,behavior:ee});return}}ce.scrollTo({left:x,top:P,behavior:ee})}}function A(){ue(),ve(),ke()}function M(){N()}function N(){V(),ae()}function V(){p!==void 0&&window.clearTimeout(p),p=window.setTimeout(()=>{D.value=!1},e.duration)}function ae(){j!==void 0&&window.clearTimeout(j),j=window.setTimeout(()=>{T.value=!1},e.duration)}function ue(){j!==void 0&&window.clearTimeout(j),T.value=!0}function ve(){p!==void 0&&window.clearTimeout(p),D.value=!0}function xe(x){const{onScroll:P}=e;P&&P(x),wr()}function wr(){const{value:x}=ye;x&&(g.value=x.scrollTop,f.value=x.scrollLeft*(o!=null&&o.value?-1:1))}function oa(){const{value:x}=gn;x&&(c.value=x.offsetHeight,h.value=x.offsetWidth);const{value:P}=ye;P&&(v.value=P.offsetHeight,y.value=P.offsetWidth);const{value:_}=u,{value:Y}=l;_&&(b.value=_.offsetWidth),Y&&(d.value=Y.offsetHeight)}function yr(){const{value:x}=ye;x&&(g.value=x.scrollTop,f.value=x.scrollLeft*(o!=null&&o.value?-1:1),v.value=x.offsetHeight,y.value=x.offsetWidth,c.value=x.scrollHeight,h.value=x.scrollWidth);const{value:P}=u,{value:_}=l;P&&(b.value=P.offsetWidth),_&&(d.value=_.offsetHeight)}function ke(){e.scrollable&&(e.useUnifiedContainer?yr():(oa(),wr()))}function xr(x){var P;return!(!((P=i.value)===null||P===void 0)&&P.contains(tn(x)))}function ia(x){x.preventDefault(),x.stopPropagation(),W=!0,ne("mousemove",window,Cr,!0),ne("mouseup",window,Sr,!0),O=f.value,$=o!=null&&o.value?window.innerWidth-x.clientX:x.clientX}function Cr(x){if(!W)return;j!==void 0&&window.clearTimeout(j),p!==void 0&&window.clearTimeout(p);const{value:P}=y,{value:_}=h,{value:Y}=I;if(P===null||_===null)return;const ce=(o!=null&&o.value?window.innerWidth-x.clientX-$:x.clientX-$)*(_-P)/(P-Y),be=_-P;let q=O+ce;q=Math.min(be,q),q=Math.max(q,0);const{value:we}=ye;if(we){we.scrollLeft=q*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:mt}=e;mt&&mt(q)}}function Sr(x){x.preventDefault(),x.stopPropagation(),K("mousemove",window,Cr,!0),K("mouseup",window,Sr,!0),W=!1,ke(),xr(x)&&N()}function aa(x){x.preventDefault(),x.stopPropagation(),L=!0,ne("mousemove",window,mn,!0),ne("mouseup",window,bn,!0),m=g.value,B=x.clientY}function mn(x){if(!L)return;j!==void 0&&window.clearTimeout(j),p!==void 0&&window.clearTimeout(p);const{value:P}=v,{value:_}=c,{value:Y}=U;if(P===null||_===null)return;const ce=(x.clientY-B)*(_-P)/(P-Y),be=_-P;let q=m+ce;q=Math.min(be,q),q=Math.max(q,0);const{value:we}=ye;we&&(we.scrollTop=q)}function bn(x){x.preventDefault(),x.stopPropagation(),K("mousemove",window,mn,!0),K("mouseup",window,bn,!0),L=!1,ke(),xr(x)&&N()}qe(()=>{const{value:x}=It,{value:P}=et,{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`))}),ze(()=>{e.container||ke()}),Te(()=>{j!==void 0&&window.clearTimeout(j),p!==void 0&&window.clearTimeout(p),K("mousemove",window,mn,!0),K("mouseup",window,bn,!0)});const $r=F(()=>{const{common:{cubicBezierEaseInOut:x},self:{color:P,colorHover:_,height:Y,width:ee,borderRadius:ce,railInsetHorizontal:be,railInsetVertical:q,railColor:we}}=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":be,"--n-scrollbar-rail-inset-vertical":o!=null&&o.value?Ra(q):q,"--n-scrollbar-rail-color":we}}),tt=n?mr("scrollbar",void 0,$r,e):void 0;return Object.assign(Object.assign({},{scrollTo:Dt,scrollBy:Be,sync:ke,syncUnifiedContainer:yr,handleMouseEnterWrapper:A,handleMouseLeaveWrapper:M}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:u,needYBar:et,needXBar:It,yBarSizePx:S,xBarSizePx:X,yBarTopPx:re,xBarLeftPx:fe,isShowXBar:pn,isShowYBar:he,isIos:R,handleScroll:xe,handleContentResize:Ht,handleContainerResize:Ft,handleYScrollMouseDown:aa,handleXScrollMouseDown:ia,cssVars:n?void 0:$r,themeClass:tt==null?void 0:tt.themeClass,onRender:tt==null?void 0:tt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=(c,h)=>w("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,c],"data-scrollbar-rail":!0,style:[h||"",this.verticalRailStyle],"aria-hidden":!0},w(a?Pr:at,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?w("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var c,h;return(c=this.onRender)===null||c===void 0||c.call(this),w("div",Ro(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?(h=t.default)===null||h===void 0?void 0:h.call(t):w("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},w(Jr,{onResize:this.handleContentResize},{default:()=>w("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&w("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},w(a?Pr:at,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?w("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}))])},u=this.container?l():w(Jr,{onResize:this.handleContainerResize},{default:l});return i?w(Ae,null,u,s(this.themeClass,this.cssVars)):u}}),Pv=Mv,{cubicBezierEaseIn:Ao,cubicBezierEaseOut:zo}=hn;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} ${zo}, transform ${t} ${zo} ${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 Av={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function zv(e){const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},Av),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}const Ji={name:"Popover",common:vn,self:zv},In={top:"bottom",bottom:"top",left:"right",right:"left"},te="var(--n-arrow-height) * 1.414",_v=H([G("popover",`
|
|
84
|
-
transition:
|
|
85
|
-
box-shadow .3s var(--n-bezier),
|
|
86
|
-
background-color .3s var(--n-bezier),
|
|
87
|
-
color .3s var(--n-bezier);
|
|
88
|
-
position: relative;
|
|
89
|
-
font-size: var(--n-font-size);
|
|
90
|
-
color: var(--n-text-color);
|
|
91
|
-
box-shadow: var(--n-box-shadow);
|
|
92
|
-
word-break: break-word;
|
|
93
|
-
`,[H(">",[G("scrollbar",`
|
|
94
|
-
height: inherit;
|
|
95
|
-
max-height: inherit;
|
|
96
|
-
`)]),Kt("raw",`
|
|
97
|
-
background-color: var(--n-color);
|
|
98
|
-
border-radius: var(--n-border-radius);
|
|
99
|
-
`,[Kt("scrollable",[Kt("show-header-or-footer","padding: var(--n-padding);")])]),Ue("header",`
|
|
100
|
-
padding: var(--n-padding);
|
|
101
|
-
border-bottom: 1px solid var(--n-divider-color);
|
|
102
|
-
transition: border-color .3s var(--n-bezier);
|
|
103
|
-
`),Ue("footer",`
|
|
104
|
-
padding: var(--n-padding);
|
|
105
|
-
border-top: 1px solid var(--n-divider-color);
|
|
106
|
-
transition: border-color .3s var(--n-bezier);
|
|
107
|
-
`),Ve("scrollable, show-header-or-footer",[Ue("content",`
|
|
108
|
-
padding: var(--n-padding);
|
|
109
|
-
`)])]),G("popover-shared",`
|
|
110
|
-
transform-origin: inherit;
|
|
111
|
-
`,[G("popover-arrow-wrapper",`
|
|
112
|
-
position: absolute;
|
|
113
|
-
overflow: hidden;
|
|
114
|
-
pointer-events: none;
|
|
115
|
-
`,[G("popover-arrow",`
|
|
116
|
-
transition: background-color .3s var(--n-bezier);
|
|
117
|
-
position: absolute;
|
|
118
|
-
display: block;
|
|
119
|
-
width: calc(${te});
|
|
120
|
-
height: calc(${te});
|
|
121
|
-
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|
122
|
-
transform: rotate(45deg);
|
|
123
|
-
background-color: var(--n-color);
|
|
124
|
-
pointer-events: all;
|
|
125
|
-
`)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
|
126
|
-
opacity: 0;
|
|
127
|
-
transform: scale(.85);
|
|
128
|
-
`),H("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
|
129
|
-
transform: scale(1);
|
|
130
|
-
opacity: 1;
|
|
131
|
-
`),H("&.popover-transition-enter-active",`
|
|
132
|
-
transition:
|
|
133
|
-
box-shadow .3s var(--n-bezier),
|
|
134
|
-
background-color .3s var(--n-bezier),
|
|
135
|
-
color .3s var(--n-bezier),
|
|
136
|
-
opacity .15s var(--n-bezier-ease-out),
|
|
137
|
-
transform .15s var(--n-bezier-ease-out);
|
|
138
|
-
`),H("&.popover-transition-leave-active",`
|
|
139
|
-
transition:
|
|
140
|
-
box-shadow .3s var(--n-bezier),
|
|
141
|
-
background-color .3s var(--n-bezier),
|
|
142
|
-
color .3s var(--n-bezier),
|
|
143
|
-
opacity .15s var(--n-bezier-ease-in),
|
|
144
|
-
transform .15s var(--n-bezier-ease-in);
|
|
145
|
-
`)]),pe("top-start",`
|
|
146
|
-
top: calc(${te} / -2);
|
|
147
|
-
left: calc(${Ee("top-start")} - var(--v-offset-left));
|
|
148
|
-
`),pe("top",`
|
|
149
|
-
top: calc(${te} / -2);
|
|
150
|
-
transform: translateX(calc(${te} / -2)) rotate(45deg);
|
|
151
|
-
left: 50%;
|
|
152
|
-
`),pe("top-end",`
|
|
153
|
-
top: calc(${te} / -2);
|
|
154
|
-
right: calc(${Ee("top-end")} + var(--v-offset-left));
|
|
155
|
-
`),pe("bottom-start",`
|
|
156
|
-
bottom: calc(${te} / -2);
|
|
157
|
-
left: calc(${Ee("bottom-start")} - var(--v-offset-left));
|
|
158
|
-
`),pe("bottom",`
|
|
159
|
-
bottom: calc(${te} / -2);
|
|
160
|
-
transform: translateX(calc(${te} / -2)) rotate(45deg);
|
|
161
|
-
left: 50%;
|
|
162
|
-
`),pe("bottom-end",`
|
|
163
|
-
bottom: calc(${te} / -2);
|
|
164
|
-
right: calc(${Ee("bottom-end")} + var(--v-offset-left));
|
|
165
|
-
`),pe("left-start",`
|
|
166
|
-
left: calc(${te} / -2);
|
|
167
|
-
top: calc(${Ee("left-start")} - var(--v-offset-top));
|
|
168
|
-
`),pe("left",`
|
|
169
|
-
left: calc(${te} / -2);
|
|
170
|
-
transform: translateY(calc(${te} / -2)) rotate(45deg);
|
|
171
|
-
top: 50%;
|
|
172
|
-
`),pe("left-end",`
|
|
173
|
-
left: calc(${te} / -2);
|
|
174
|
-
bottom: calc(${Ee("left-end")} + var(--v-offset-top));
|
|
175
|
-
`),pe("right-start",`
|
|
176
|
-
right: calc(${te} / -2);
|
|
177
|
-
top: calc(${Ee("right-start")} - var(--v-offset-top));
|
|
178
|
-
`),pe("right",`
|
|
179
|
-
right: calc(${te} / -2);
|
|
180
|
-
transform: translateY(calc(${te} / -2)) rotate(45deg);
|
|
181
|
-
top: 50%;
|
|
182
|
-
`),pe("right-end",`
|
|
183
|
-
right: calc(${te} / -2);
|
|
184
|
-
bottom: calc(${Ee("right-end")} + var(--v-offset-top));
|
|
185
|
-
`),...xh({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=Ee(o);return H(`[v-placement="${o}"] >`,[G("popover-shared",[Ve("center-arrow",[G("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Ee(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function pe(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",`
|
|
186
|
-
margin-${In[n]}: var(--n-space);
|
|
187
|
-
`,[Ve("show-arrow",`
|
|
188
|
-
margin-${In[n]}: var(--n-space-arrow);
|
|
189
|
-
`),Ve("overlap",`
|
|
190
|
-
margin: 0;
|
|
191
|
-
`),ns("popover-arrow-wrapper",`
|
|
192
|
-
right: 0;
|
|
193
|
-
left: 0;
|
|
194
|
-
top: 0;
|
|
195
|
-
bottom: 0;
|
|
196
|
-
${n}: 100%;
|
|
197
|
-
${In[n]}: auto;
|
|
198
|
-
${r}
|
|
199
|
-
`,[G("popover-arrow",t)])])])}const Qi=Object.assign(Object.assign({},Me.props),{to:dt.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 w("div",{key:"__popover-arrow__",style:r,class:[`${o}-popover-arrow-wrapper`,n]},w("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=Me("Popover","-popover",_v,Ji,e,o),s=z(null),l=oe("NPopover"),u=z(null),c=z(e.show),h=z(!1);qe(()=>{const{show:p}=e;p&&!rs()&&!e.internalDeactivateImmediately&&(h.value=!0)});const v=F(()=>{const{trigger:p,onClickoutside:m}=e,O=[],{positionManuallyRef:{value:$}}=l;return $||(p==="click"&&!m&&O.push([Dr,L,void 0,{capture:!0}]),p==="hover"&&O.push([Cs,D])),m&&O.push([Dr,L,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&h.value)&&O.push([Bo,e.show]),O}),y=F(()=>{const{common:{cubicBezierEaseInOut:p,cubicBezierEaseIn:m,cubicBezierEaseOut:O},self:{space:$,spaceArrow:B,padding:R,fontSize:k,textColor:U,dividerColor:S,color:I,boxShadow:X,borderRadius:J,arrowHeight:re,arrowOffset:Q,arrowOffsetVertical:fe}}=a.value;return{"--n-box-shadow":X,"--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":re,"--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:yn(e.width),m=[];p&&m.push({width:p});const{maxWidth:O,minWidth:$}=e;return O&&m.push({maxWidth:yn(O)}),$&&m.push({maxWidth:yn($)}),i||m.push(y.value),m}),b=i?mr("popover",void 0,y,e):void 0;l.setBodyInstance({syncPosition:g}),Te(()=>{l.setBodyInstance(null)}),Se(ge(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"&&!W().contains(tn(p))&&l.handleMouseMoveOutside(p)}function L(p){(e.trigger==="click"&&!W().contains(tn(p))||e.onClickoutside)&&l.handleClickOutside(p)}function W(){return l.getTriggerElement()}Xe(Zo,u),Xe(Yo,null),Xe(Vo,null);function j(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&h.value))return null;let m;const O=l.internalRenderBodyRef.value,{value:$}=o;if(O)m=O([`${$}-popover-shared`,b==null?void 0:b.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=!Mr(t.header)||!Mr(t.footer),U=()=>{var S,I;const X=k?w(Ae,null,wn(t.header,Q=>Q?w("div",{class:[`${$}-popover__header`,e.headerClass],style:e.headerStyle},Q):null),wn(t.default,Q=>Q?w("div",{class:[`${$}-popover__content`,e.contentClass],style:e.contentStyle},t):null),wn(t.footer,Q=>Q?w("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):w("div",{class:[`${$}-popover__content`,e.contentClass],style:e.contentStyle},t),J=e.scrollable?w(Pv,{contentClass:k?void 0:`${$}-popover__content ${(I=e.contentClass)!==null&&I!==void 0?I:""}`,contentStyle:k?void 0:e.contentStyle},{default:()=>X}):X,re=e.showArrow?Rv({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:$}):null;return[J,re]};m=w("div",Ro({class:[`${$}-popover`,`${$}-popover-shared`,b==null?void 0:b.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?w(sl,{active:e.show,autoFocus:!0},{default:U}):U())}return ut(m,v.value)}return{displayed:h,namespace:r,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:dt(e),followerEnabled:c,renderContentNode:j}},render(){return w(Ls,{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===dt.tdkey},{default:()=>this.animated?w(at,{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:dt.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({},Me.props),ea),{internalOnAfterLeave:Function,internalRenderBody:Function}),Fv=ie({name:"Popover",inheritAttrs:!1,props:Hv,__popover__:!0,setup(e){const t=nr(),n=z(null),r=F(()=>e.show),o=z(e.defaultShow),i=hs(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=vs(e,["arrow","showArrow"]),c=F(()=>e.overlap?!1:u.value);let h=null;const v=z(null),y=z(null),d=Mt(()=>e.x!==void 0&&e.y!==void 0);function b(S){const{"onUpdate:show":I,onUpdateShow:X,onShow:J,onHide:re}=e;o.value=S,I&&Ct(I,S),X&&Ct(X,S),S&&J&&Ct(J,!0),S&&re&&Ct(re,!1)}function g(){h&&h.syncPosition()}function f(){const{value:S}=v;S&&(window.clearTimeout(S),v.value=null)}function T(){const{value:S}=y;S&&(window.clearTimeout(S),y.value=null)}function D(){const S=s();if(e.trigger==="focus"&&!S){if(l())return;b(!0)}}function L(){const S=s();if(e.trigger==="focus"&&!S){if(!l())return;b(!1)}}function W(){const S=s();if(e.trigger==="hover"&&!S){if(T(),v.value!==null||l())return;const I=()=>{b(!0),v.value=null},{delay:X}=e;X===0?I():v.value=window.setTimeout(I,X)}}function j(){const S=s();if(e.trigger==="hover"&&!S){if(f(),y.value!==null||!l())return;const I=()=>{b(!1),y.value=null},{duration:X}=e;X===0?I():y.value=window.setTimeout(I,X)}}function p(){j()}function m(S){var I;l()&&(e.trigger==="click"&&(f(),T(),b(!1)),(I=e.onClickoutside)===null||I===void 0||I.call(e,S))}function O(){if(e.trigger==="click"&&!s()){f(),T();const S=!l();b(S)}}function $(S){e.internalTrapFocus&&S.key==="Escape"&&(f(),T(),b(!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){h=S}return Xe("NPopover",{getTriggerElement:R,handleKeydown:$,handleMouseEnter:W,handleMouseLeave:j,handleClickOutside:m,handleMouseMoveOutside:p,setBodyInstance:k,positionManuallyRef:d,isMountedRef:t,zIndexRef:ge(e,"zIndex"),extraClassRef:ge(e,"internalExtraClass"),internalRenderBodyRef:ge(e,"internalRenderBody")}),qe(()=>{i.value&&s()&&b(!1)}),{binderInstRef:n,positionManually:d,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:l,setShow:B,handleClick:O,handleMouseEnter:W,handleMouseLeave:j,handleFocus:D,handleBlur:L,syncPosition:g}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Or(n,"activator"):r=Or(n,"trigger"),r)){r=va(r),r=r.type===pa?w("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 w(ys,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?ut(w("div",{style:{position:"fixed",inset:0}}),[[rr,{enabled:i,zIndex:this.zIndex}]]):null,t?null:w(xs,null,{default:()=>r}),w(Bv,wa(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 jv(e){const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},kv),{borderRadius:t,boxShadow:n,color:Lo(r,"rgba(0, 0, 0, .85)"),textColor:r})}const ta={name:"Tooltip",common:vn,peers:{Popover:Ji},self:jv},Wv=Object.assign(Object.assign({},ea),Me.props),Nv=ie({name:"Tooltip",props:Wv,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=gt(e),n=Me("Tooltip","-tooltip",void 0,ta,e,t),r=z(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 w(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 Xv={name:"Image",common:vn,peers:{Tooltip:ta},self:Uv},Vv=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("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=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("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=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("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"})),qv=H([H("body >",[G("image-container","position: fixed;")]),G("image-preview-container",`
|
|
200
|
-
position: fixed;
|
|
201
|
-
left: 0;
|
|
202
|
-
right: 0;
|
|
203
|
-
top: 0;
|
|
204
|
-
bottom: 0;
|
|
205
|
-
display: flex;
|
|
206
|
-
`),G("image-preview-overlay",`
|
|
207
|
-
z-index: -1;
|
|
208
|
-
position: absolute;
|
|
209
|
-
left: 0;
|
|
210
|
-
right: 0;
|
|
211
|
-
top: 0;
|
|
212
|
-
bottom: 0;
|
|
213
|
-
background: rgba(0, 0, 0, .3);
|
|
214
|
-
`,[Kn()]),G("image-preview-toolbar",`
|
|
215
|
-
z-index: 1;
|
|
216
|
-
position: absolute;
|
|
217
|
-
left: 50%;
|
|
218
|
-
transform: translateX(-50%);
|
|
219
|
-
border-radius: var(--n-toolbar-border-radius);
|
|
220
|
-
height: 48px;
|
|
221
|
-
bottom: 40px;
|
|
222
|
-
padding: 0 12px;
|
|
223
|
-
background: var(--n-toolbar-color);
|
|
224
|
-
box-shadow: var(--n-toolbar-box-shadow);
|
|
225
|
-
color: var(--n-toolbar-icon-color);
|
|
226
|
-
transition: color .3s var(--n-bezier);
|
|
227
|
-
display: flex;
|
|
228
|
-
align-items: center;
|
|
229
|
-
`,[G("base-icon",`
|
|
230
|
-
padding: 0 8px;
|
|
231
|
-
font-size: 28px;
|
|
232
|
-
cursor: pointer;
|
|
233
|
-
`),Kn()]),G("image-preview-wrapper",`
|
|
234
|
-
position: absolute;
|
|
235
|
-
left: 0;
|
|
236
|
-
right: 0;
|
|
237
|
-
top: 0;
|
|
238
|
-
bottom: 0;
|
|
239
|
-
display: flex;
|
|
240
|
-
pointer-events: none;
|
|
241
|
-
`,[Ev()]),G("image-preview",`
|
|
242
|
-
user-select: none;
|
|
243
|
-
-webkit-user-select: none;
|
|
244
|
-
pointer-events: all;
|
|
245
|
-
margin: auto;
|
|
246
|
-
max-height: calc(100vh - 32px);
|
|
247
|
-
max-width: calc(100vw - 32px);
|
|
248
|
-
transition: transform .3s var(--n-bezier);
|
|
249
|
-
`),G("image",`
|
|
250
|
-
display: inline-flex;
|
|
251
|
-
max-height: 100%;
|
|
252
|
-
max-width: 100%;
|
|
253
|
-
`,[Kt("preview-disabled",`
|
|
254
|
-
cursor: pointer;
|
|
255
|
-
`),H("img",`
|
|
256
|
-
border-radius: inherit;
|
|
257
|
-
`)])]),Gt=32,na=ie({name:"ImagePreview",props:Object.assign(Object.assign({},br),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Me("Image","-image",qv,Xv,e,ge(e,"clsPrefix"));let n=null;const r=z(null),o=z(null),i=z(void 0),a=z(!1),s=z(!1),{localeRef:l}=lv("Image");function u(){const{value:C}=o;if(!n||!C)return;const{style:A}=C,M=n.getBoundingClientRect(),N=M.left+M.width/2,V=M.top+M.height/2;A.transformOrigin=`${N}px ${V}px`}function c(C){var A,M;switch(C.key){case" ":C.preventDefault();break;case"ArrowLeft":(A=e.onPrev)===null||A===void 0||A.call(e);break;case"ArrowRight":(M=e.onNext)===null||M===void 0||M.call(e);break;case"Escape":ye();break}}Se(a,C=>{C?ne("keydown",document,c):K("keydown",document,c)}),Te(()=>{K("keydown",document,c)});let h=0,v=0,y=0,d=0,b=0,g=0,f=0,T=0,D=!1;function L(C){const{clientX:A,clientY:M}=C;y=A-h,d=M-v,Do(he)}function W(C){const{mouseUpClientX:A,mouseUpClientY:M,mouseDownClientX:N,mouseDownClientY:V}=C,ae=N-A,ue=V-M,ve=`vertical${ue>0?"Top":"Bottom"}`,xe=`horizontal${ae>0?"Left":"Right"}`;return{moveVerticalDirection:ve,moveHorizontalDirection:xe,deltaHorizontal:ae,deltaVertical:ue}}function j(C){const{value:A}=r;if(!A)return{offsetX:0,offsetY:0};const M=A.getBoundingClientRect(),{moveVerticalDirection:N,moveHorizontalDirection:V,deltaHorizontal:ae,deltaVertical:ue}=C||{};let ve=0,xe=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:V==="horizontalRight"?ve=Math.min((M.width-window.innerWidth)/2,b-(ae??0)):ve=Math.max(-((M.width-window.innerWidth)/2),b-(ae??0)),M.height<=window.innerHeight?xe=0:M.top>0?xe=(M.height-window.innerHeight)/2:M.bottom<window.innerHeight?xe=-(M.height-window.innerHeight)/2:N==="verticalBottom"?xe=Math.min((M.height-window.innerHeight)/2,g-(ue??0)):xe=Math.max(-((M.height-window.innerHeight)/2),g-(ue??0)),{offsetX:ve,offsetY:xe}}function p(C){K("mousemove",document,L),K("mouseup",document,p);const{clientX:A,clientY:M}=C;D=!1;const N=W({mouseUpClientX:A,mouseUpClientY:M,mouseDownClientX:f,mouseDownClientY:T}),V=j(N);y=V.offsetX,d=V.offsetY,he()}const m=oe(Gi,null);function O(C){var A,M;if((M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onMousedown)===null||M===void 0||M.call(A,C),C.button!==0)return;const{clientX:N,clientY:V}=C;D=!0,h=N-y,v=V-d,b=y,g=d,f=N,T=V,he(),ne("mousemove",document,L),ne("mouseup",document,p)}const $=1.5;let B=0,R=1,k=0;function U(C){var A,M;(M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onDblclick)===null||M===void 0||M.call(A,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 X(){var C;S(),k=0,(C=e.onNext)===null||C===void 0||C.call(e)}function J(){k-=90,he()}function re(){k+=90,he()}function Q(){const{value:C}=r;if(!C)return 1;const{innerWidth:A,innerHeight:M}=window,N=Math.max(1,C.naturalHeight/(M-Gt)),V=Math.max(1,C.naturalWidth/(A-Gt));return Math.max(3,N*2,V*2)}function fe(){const{value:C}=r;if(!C)return 1;const{innerWidth:A,innerHeight:M}=window,N=C.naturalHeight/(M-Gt),V=C.naturalWidth/(A-Gt);return N<1&&V<1?1:Math.max(N,V)}function et(){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 A=C-R;he(!1);const M=j();R+=A,he(!1),R-=A,y=M.offsetX,d=M.offsetY,he()}}function pn(){const C=i.value;C&&ul(C)}function he(C=!0){var A;const{value:M}=r;if(!M)return;const{style:N}=M,V=ga((A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.style);let ae="";if(typeof V=="string")ae=`${V};`;else for(const ve in V)ae+=`${Ch(ve)}: ${V[ve]};`;const ue=`transform-origin: center; transform: translateX(${y}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 ye(){a.value=!a.value,s.value=!0}function gn(){R=fe(),B=Math.ceil(Math.log(R)/Math.log($)),y=0,d=0,he()}const Dt={setPreviewSrc:C=>{i.value=C},setThumbnailEl:C=>{n=C},toggleShow:ye};function Lt(C,A){if(e.showToolbarTooltip){const{value:M}=t;return w(Nv,{to:!1,theme:M.peers.Tooltip,themeOverrides:M.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[A],trigger:()=>C})}else return C}const Ht=F(()=>{const{common:{cubicBezierEaseInOut:C},self:{toolbarIconColor:A,toolbarBorderRadius:M,toolbarBoxShadow:N,toolbarColor:V}}=t.value;return{"--n-bezier":C,"--n-toolbar-icon-color":A,"--n-toolbar-color":V,"--n-toolbar-border-radius":M,"--n-toolbar-box-shadow":N}}),{inlineThemeDisabled:Ft}=gt(),Be=Ft?mr("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 A,M;(M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onDragstart)===null||M===void 0||M.call(A,C),C.preventDefault()},zoomIn:et,zoomOut:It,handleDownloadClick:pn,rotateCounterclockwise:J,rotateClockwise:re,handleSwitchPrev:I,handleSwitchNext:X,withTooltip:Lt,resizeToOrignalImageSize:gn,cssVars:Ft?void 0:Ht,themeClass:Be==null?void 0:Be.themeClass,onRender:Be==null?void 0:Be.onRender},Dt)},render(){var e,t;const{clsPrefix:n,renderToolbar:r,withTooltip:o}=this,i=o(w(Pe,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Vv}),"tipPrevious"),a=o(w(Pe,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>Yv}),"tipNext"),s=o(w(Pe,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>w(pv,null)}),"tipCounterclockwise"),l=o(w(Pe,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>w(vv,null)}),"tipClockwise"),u=o(w(Pe,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>w(bv,null)}),"tipOriginalSize"),c=o(w(Pe,{clsPrefix:n,onClick:this.zoomOut},{default:()=>w(mv,null)}),"tipZoomOut"),h=o(w(Pe,{clsPrefix:n,onClick:this.handleDownloadClick},{default:()=>w(hv,null)}),"tipDownload"),v=o(w(Pe,{clsPrefix:n,onClick:this.toggleShow},{default:()=>Zv}),"tipClose"),y=o(w(Pe,{clsPrefix:n,onClick:this.zoomIn},{default:()=>w(gv,null)}),"tipZoomIn");return w(Ae,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),w(Jo,{show:this.show},{default:()=>{var d;return this.show||this.displayed?((d=this.onRender)===null||d===void 0||d.call(this),ut(w("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},w(at,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?w("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?w(at,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?w("div",{class:`${n}-image-preview-toolbar`},r?r({nodes:{prev:i,next:a,rotateCounterclockwise:s,rotateClockwise:l,resizeToOriginalSize:u,zoomOut:c,zoomIn:y,download:h,close:v}}):w(Ae,null,this.onPrev?w(Ae,null,i,a):null,s,l,u,c,y,h,v)):null}):null,w(at,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:b={}}=this;return ut(w("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},w("img",Object.assign({},b,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,b.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[Bo,this.show]])}})),[[rr,{enabled:this.show}]])):null}}))}}),ra="n-image-group",Gv=br,tp=ie({name:"ImageGroup",props:Gv,setup(e){let t;const{mergedClsPrefixRef:n}=gt(e),r=`c${Ho()}`,o=Qn(),i=z(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 v=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!v.length)return;const y=Array.from(v).findIndex(d=>d.dataset.previewSrc===t);~y?a(v[(y+l+v.length)%v.length].dataset.previewSrc):a(v[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 Xe(ra,{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:ge(e,"renderToolbar")}),{mergedClsPrefix:n,previewInstRef:i,next:()=>{s(1)},prev:()=>{s(-1)}}},render(){return w(na,{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)}}),Kv=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),np=ie({name:"Image",props:Kv,inheritAttrs:!1,setup(e){const t=z(null),n=z(!1),r=z(null),o=oe(ra,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=z(!e.lazy);ze(()=>{var u;(u=t.value)===null||u===void 0||u.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),ze(()=>{if(e.lazy&&e.intersectionObserverOptions){let u;const c=qe(()=>{u==null||u(),u=void 0,u=fv(t.value,e.intersectionObserverOptions,s)});Te(()=>{c(),u==null||u()})}}),qe(()=>{var u;e.src||((u=e.imgProps)===null||u===void 0||u.src),n.value=!1});const l=z(!1);return Xe(Gi,{previewedImgPropsRef:ge(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,h;a.click(),(h=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||h===void 0||h.call(c,u)},mergedOnError:u=>{if(!s.value)return;n.value=!0;const{onError:c,imgProps:{onError:h}={}}=e;c==null||c(u),h==null||h(u)},mergedOnLoad:u=>{const{onLoad:c,imgProps:{onLoad:h}={}}=e;c==null||c(u),h==null||h(u),l.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),l=this.src||r.src,u=w("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?l:void 0:l,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:ba&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return w("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?u:w(na,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>u,toolbar:()=>{var c,h;return(h=(c=this.$slots).toolbar)===null||h===void 0?void 0:h.call(c)}}),!o&&s)}});export{np as NImage,tp as NImageGroup,Gv as imageGroupProps,Kv as imageProps};
|