@vtj/pro 0.15.1 → 0.16.0
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/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +4 -4
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +3 -3
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +44 -32
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/__devtools__/assets/{IconTitle.vue_vue_type_script_setup_true_lang-CZMqpyXE.js → IconTitle.vue_vue_type_script_setup_true_lang-CpX2D0eB.js} +1 -1
- package/dist/__devtools__/assets/{SectionBlock-BSuGDm7s.js → SectionBlock-AVyx7eI3.js} +1 -1
- package/dist/__devtools__/assets/{assets-BoMHV8O-.js → assets-DQ5t0Lyv.js} +1 -1
- package/dist/__devtools__/assets/{components-7VuIBWJA.js → components-D5nEERiq.js} +1 -1
- package/dist/__devtools__/assets/{custom-inspector-tab-view-B5LB_kcZ.js → custom-inspector-tab-view--xvNl1tr.js} +1 -1
- package/dist/__devtools__/assets/{custom-tab-view-BZBfeauf.js → custom-tab-view-Dj55ko4k.js} +1 -1
- package/dist/__devtools__/assets/{graph-CyWkycf4.js → graph-OcNja-b1.js} +1 -1
- package/dist/__devtools__/assets/{index-C8hFs1GM.js → index-BSzMGd0T.js} +2 -2
- package/dist/__devtools__/assets/index-DVOrYgP_.css +1 -0
- package/dist/__devtools__/assets/{overview-UGcO1fsl.js → overview-Db00jfdl.js} +1 -1
- package/dist/__devtools__/assets/{pages-CDARBtn3.js → pages-D8jrLM3L.js} +1 -1
- package/dist/__devtools__/assets/{pinia-0IbFM1TZ.js → pinia-CkkNceK-.js} +1 -1
- package/dist/__devtools__/assets/{router-BkwlZeKx.js → router-B_oZ_D-R.js} +1 -1
- package/dist/__devtools__/assets/{settings-CljpRPty.js → settings-CE60W7is.js} +1 -1
- package/dist/__devtools__/assets/{timeline-l7ZovCcC.js → timeline-DLJJg6FW.js} +1 -1
- package/dist/__devtools__/index.html +2 -2
- package/dist/assets/{@element-plus-icons-vue-B8vF-Sga.js → @element-plus-icons-vue-Cpi46I3H.js} +1 -1
- package/dist/assets/{@vueuse-D07nk1O7.js → @vueuse-DBbmvAan.js} +1 -1
- package/dist/assets/{Editor-CXrxSb1D-BV1biGXj.css → Editor-CeRX4KMd-DMkAB_XD.css} +1 -1
- package/dist/assets/Editor-CeRX4KMd-DmEUCrZb.js +655 -0
- package/dist/assets/auth-DYh0lrn6.js +1 -0
- package/dist/assets/element-plus-Cnk22g0r.js +12 -0
- package/dist/assets/element-plus-Mn1i2Uda.css +1 -0
- package/dist/assets/index-CKQ9RJh7.js +2 -0
- package/dist/assets/index-Cziv5DvM.js +1 -0
- package/dist/assets/{mockjs-Bq37pDLb.js → mockjs-D39zwwe_.js} +5 -5
- package/dist/assets/page-CkAPfZ2P.js +2 -0
- package/dist/assets/preview-CftOip2W.js +2 -0
- package/dist/assets/shared-ClTq60Az.js +12 -0
- package/dist/assets/{uni-page-eAjmISBP.js → uni-page-DZxZ96XP.js} +1 -1
- package/dist/assets/utils-CcizdYFq.js +1 -0
- package/dist/assets/{vue-coNYQPXX.js → vue-C7aOYzfv.js} +1 -1
- package/dist/assets/{vue-router-BTytXxkB.js → vue-router-BEDJn_dq.js} +3 -3
- package/dist/assets/{vxe-UXyNshp-.js → vxe-4LaZMynM.js} +4 -4
- package/dist/index.html +10 -10
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-CQcoi6u8.js → @dcloudio-uni-h5-vue-Bz74xAG0.js} +1 -1
- package/dist/uni/assets/{index-wniJ8utL.js → index-KOWVpVRa.js} +26 -26
- package/dist/uni/assets/{vue-router-DfiwASwJ.js → vue-router-JeNoEIlG.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +11 -11
- package/dist/__devtools__/assets/index-C5qqC9jB.css +0 -1
- package/dist/assets/Editor-CXrxSb1D-B-bVFTyg.js +0 -349
- package/dist/assets/auth-ByoWylQQ.js +0 -1
- package/dist/assets/element-plus-B7XQxB2s.js +0 -12
- package/dist/assets/element-plus-BwqxpCyV.css +0 -1
- package/dist/assets/index-DhG6V9jW.js +0 -1
- package/dist/assets/index-DjGe_h24.js +0 -2
- package/dist/assets/page-B2rOKBiF.js +0 -2
- package/dist/assets/preview-BY-K-XTz.js +0 -2
- package/dist/assets/shared-Bn1t4B45.js +0 -12
- package/dist/assets/utils-C1oWvM_C.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BEDJn_dq.js","./vue-C7aOYzfv.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var g=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var R=(o,t,e)=>t in o?g(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,E=(o,t)=>{for(var e in t||(t={}))A.call(t,e)&&R(o,e,t[e]);if(y)for(var e of y(t))h.call(t,e)&&R(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-BEDJn_dq.js";import"./element-plus-Cnk22g0r.js";import"./vxe-4LaZMynM.js";import{M as k,k as I,R as V,I as B,w as T,Y as D,E as L}from"./Editor-CeRX4KMd-DmEUCrZb.js";import{a as M,n as x,l as O,E as S}from"./utils-CcizdYFq.js";import{x as Y}from"./@vueuse-DBbmvAan.js";import{j,az as C,K as z,l as H,A as K,B as N,r as b,o as q,g as F}from"./vue-C7aOYzfv.js";import"./shared-ClTq60Az.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cpi46I3H.js";import"./lodash-es-B2U1jVvD.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D39zwwe_.js";import"./marked-Dt4xUbva.js";const it=j({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new k(I(x)),s=([t,e]=C(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:O,notify:x,useTitle:Y,alert:M,access:s==null?void 0:s.access}),d=s?([t,e]=C(()=>new S(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=B({mode:T.Runtime,service:_,materialPath:p,adapter:E(E({},u),d.adapter),dependencies:{Vue:()=>w(()=>import("./vue-C7aOYzfv.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-BEDJn_dq.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=b(),n=F(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{L(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(D),a.use(r),v(a))})),z(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;v(m)}})),(a,m)=>f.value?(q(),H(K(f.value),{key:0})):N("",!0)})}});export{it as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BEDJn_dq.js","./vue-C7aOYzfv.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var A=Object.defineProperty;var E=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?A(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))C.call(e,t)&&w(o,t,e[t]);if(E)for(var t of E(e))g.call(e,t)&&w(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(p){s(p)}},n=a=>{try{i(t.throw(a))}catch(p){s(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as R}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as k}from"./vue-router-BEDJn_dq.js";import"./element-plus-Cnk22g0r.js";import"./vxe-4LaZMynM.js";import{M as I,k as P,R as V,I as B,w as T,F as D,Y as F,E as L}from"./Editor-CeRX4KMd-DmEUCrZb.js";import{a as M,n as h,l as O,E as S}from"./utils-CcizdYFq.js";import{x as Y}from"./@vueuse-DBbmvAan.js";import{j,az as x,l as z,A as H,B as N,r as b,o as q,g as G}from"./vue-C7aOYzfv.js";import"./shared-ClTq60Az.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-Cpi46I3H.js";import"./lodash-es-B2U1jVvD.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D39zwwe_.js";import"./marked-Dt4xUbva.js";const pe=j({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new I(P(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:O,notify:h,useTitle:Y,alert:M,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new S(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=B({mode:T.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>R(()=>import("./vue-C7aOYzfv.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-BEDJn_dq.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=k(),u=b(),l=G();return p(()=>f(null,null,function*(){const m=yield D(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(F),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),y=>{L(r,v,y)}))})),(m,r)=>u.value?(q(),z(H(u.value),{key:0})):N("",!0)})}});export{pe as default};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var jr=Object.defineProperty,Lr=Object.defineProperties;var Hr=Object.getOwnPropertyDescriptors;var ne=Object.getOwnPropertySymbols;var gn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable;var pn=(e,t,n)=>t in e?jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W=(e,t)=>{for(var n in t||(t={}))gn.call(t,n)&&pn(e,n,t[n]);if(ne)for(var n of ne(t))mn.call(t,n)&&pn(e,n,t[n]);return e},at=(e,t)=>Lr(e,Hr(t));var Ae=(e,t)=>{var n={};for(var r in e)gn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ne)for(var r of ne(e))t.indexOf(r)<0&&mn.call(e,r)&&(n[r]=e[r]);return n};var st=(e,t,n)=>new Promise((r,i)=>{var o=f=>{try{s(n.next(f))}catch(c){i(c)}},a=f=>{try{s(n.throw(f))}catch(c){i(c)}},s=f=>f.done?r(f.value):Promise.resolve(f.value).then(o,a);s((n=n.apply(e,t)).next())});var V="top",Z="bottom",J="right",_="left",Ve="auto",Yt=[V,Z,J,_],Tt="start",It="end",kr="clippingParents",$n="viewport",Nt="popper",Cr="reference",vn=Yt.reduce(function(e,t){return e.concat([t+"-"+Tt,t+"-"+It])},[]),zn=[].concat(Yt,[Ve]).reduce(function(e,t){return e.concat([t,t+"-"+Tt,t+"-"+It])},[]),Nr="beforeRead",Br="read",Wr="afterRead",Vr="beforeMain",_r="main",Ir="afterMain",$r="beforeWrite",zr="write",Ur="afterWrite",Gr=[Nr,Br,Wr,Vr,_r,Ir,$r,zr,Ur];function nt(e){return e?(e.nodeName||"").toLowerCase():null}function U(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function At(e){var t=U(e).Element;return e instanceof t||e instanceof Element}function Y(e){var t=U(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _e(e){if(typeof ShadowRoot=="undefined")return!1;var t=U(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Yr(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Y(o)||!nt(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Zr(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(f,c){return f[c]="",f},{});!Y(i)||!nt(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}var Un={name:"applyStyles",enabled:!0,phase:"write",fn:Yr,effect:Zr,requires:["computeStyles"]};function tt(e){return e.split("-")[0]}var wt=Math.max,ue=Math.min,qt=Math.round;function Te(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Gn(){return!/^((?!chrome|android).)*safari/i.test(Te())}function Dt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Y(e)&&(i=e.offsetWidth>0&&qt(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&qt(r.height)/e.offsetHeight||1);var a=At(e)?U(e):window,s=a.visualViewport,f=!Gn()&&n,c=(r.left+(f&&s?s.offsetLeft:0))/i,l=(r.top+(f&&s?s.offsetTop:0))/o,p=r.width/i,g=r.height/o;return{width:p,height:g,top:l,right:c+p,bottom:l+g,left:c,x:c,y:l}}function Ie(e){var t=Dt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Yn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_e(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ct(e){return U(e).getComputedStyle(e)}function Jr(e){return["table","td","th"].indexOf(nt(e))>=0}function pt(e){return((At(e)?e.ownerDocument:e.document)||window.document).documentElement}function pe(e){return nt(e)==="html"?e:e.assignedSlot||e.parentNode||(_e(e)?e.host:null)||pt(e)}function yn(e){return!Y(e)||ct(e).position==="fixed"?null:e.offsetParent}function Qr(e){var t=/firefox/i.test(Te()),n=/Trident/i.test(Te());if(n&&Y(e)){var r=ct(e);if(r.position==="fixed")return null}var i=pe(e);for(_e(i)&&(i=i.host);Y(i)&&["html","body"].indexOf(nt(i))<0;){var o=ct(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Zt(e){for(var t=U(e),n=yn(e);n&&Jr(n)&&ct(n).position==="static";)n=yn(n);return n&&(nt(n)==="html"||nt(n)==="body"&&ct(n).position==="static")?t:n||Qr(e)||t}function $e(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wt(e,t,n){return wt(e,ue(t,n))}function Xr(e,t,n){var r=Wt(e,t,n);return r>n?n:r}function Zn(){return{top:0,right:0,bottom:0,left:0}}function Jn(e){return Object.assign({},Zn(),e)}function Qn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Kr=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Jn(typeof e!="number"?e:Qn(e,Yt))};function ti(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=tt(n.placement),f=$e(s),c=[_,J].indexOf(s)>=0,l=c?"height":"width";if(!(!o||!a)){var p=Kr(i.padding,n),g=Ie(o),h=f==="y"?V:_,y=f==="y"?Z:J,u=n.rects.reference[l]+n.rects.reference[f]-a[f]-n.rects.popper[l],m=a[f]-n.rects.reference[f],d=Zt(o),O=d?f==="y"?d.clientHeight||0:d.clientWidth||0:0,v=u/2-m/2,b=p[h],x=O-g[l]-p[y],w=O/2-g[l]/2+v,A=Wt(b,w,x),E=f;n.modifiersData[r]=(t={},t[E]=A,t.centerOffset=A-w,t)}}function ei(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Yn(t.elements.popper,i)&&(t.elements.arrow=i))}var ni={name:"arrow",enabled:!0,phase:"main",fn:ti,effect:ei,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jt(e){return e.split("-")[1]}var ri={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ii(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:qt(n*i)/i||0,y:qt(r*i)/i||0}}function bn(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,p=e.isFixed,g=a.x,h=g===void 0?0:g,y=a.y,u=y===void 0?0:y,m=typeof l=="function"?l({x:h,y:u}):{x:h,y:u};h=m.x,u=m.y;var d=a.hasOwnProperty("x"),O=a.hasOwnProperty("y"),v=_,b=V,x=window;if(c){var w=Zt(n),A="clientHeight",E="clientWidth";if(w===U(n)&&(w=pt(n),ct(w).position!=="static"&&s==="absolute"&&(A="scrollHeight",E="scrollWidth")),w=w,i===V||(i===_||i===J)&&o===It){b=Z;var M=p&&w===x&&x.visualViewport?x.visualViewport.height:w[A];u-=M-r.height,u*=f?1:-1}if(i===_||(i===V||i===Z)&&o===It){v=J;var P=p&&w===x&&x.visualViewport?x.visualViewport.width:w[E];h-=P-r.width,h*=f?1:-1}}var F=Object.assign({position:s},c&&ri),T=l===!0?ii({x:h,y:u},U(n)):{x:h,y:u};if(h=T.x,u=T.y,f){var S;return Object.assign({},F,(S={},S[b]=O?"0":"",S[v]=d?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+u+"px)":"translate3d("+h+"px, "+u+"px, 0)",S))}return Object.assign({},F,(t={},t[b]=O?u+"px":"",t[v]=d?h+"px":"",t.transform="",t))}function oi(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,f=s===void 0?!0:s,c={placement:tt(t.placement),variation:jt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bn(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bn(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Xn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oi,data:{}},re={passive:!0};function ai(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,f=U(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(l){l.addEventListener("scroll",n.update,re)}),s&&f.addEventListener("resize",n.update,re),function(){o&&c.forEach(function(l){l.removeEventListener("scroll",n.update,re)}),s&&f.removeEventListener("resize",n.update,re)}}var Kn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ai,data:{}},si={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e){return e.replace(/left|right|bottom|top/g,function(t){return si[t]})}var fi={start:"end",end:"start"};function xn(e){return e.replace(/start|end/g,function(t){return fi[t]})}function ze(e){var t=U(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ue(e){return Dt(pt(e)).left+ze(e).scrollLeft}function ci(e,t){var n=U(e),r=pt(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,f=0;if(i){o=i.width,a=i.height;var c=Gn();(c||!c&&t==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:s+Ue(e),y:f}}function ui(e){var t,n=pt(e),r=ze(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=wt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=wt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Ue(e),f=-r.scrollTop;return ct(i||n).direction==="rtl"&&(s+=wt(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:f}}function Ge(e){var t=ct(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function tr(e){return["html","body","#document"].indexOf(nt(e))>=0?e.ownerDocument.body:Y(e)&&Ge(e)?e:tr(pe(e))}function Vt(e,t){var n;t===void 0&&(t=[]);var r=tr(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=U(r),a=i?[o].concat(o.visualViewport||[],Ge(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Vt(pe(a)))}function qe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function li(e,t){var n=Dt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function wn(e,t,n){return t===$n?qe(ci(e,n)):At(t)?li(t,n):qe(ui(pt(e)))}function di(e){var t=Vt(pe(e)),n=["absolute","fixed"].indexOf(ct(e).position)>=0,r=n&&Y(e)?Zt(e):e;return At(r)?t.filter(function(i){return At(i)&&Yn(i,r)&&nt(i)!=="body"}):[]}function hi(e,t,n,r){var i=t==="clippingParents"?di(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(f,c){var l=wn(e,c,r);return f.top=wt(l.top,f.top),f.right=ue(l.right,f.right),f.bottom=ue(l.bottom,f.bottom),f.left=wt(l.left,f.left),f},wn(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function er(e){var t=e.reference,n=e.element,r=e.placement,i=r?tt(r):null,o=r?jt(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,f;switch(i){case V:f={x:a,y:t.y-n.height};break;case Z:f={x:a,y:t.y+t.height};break;case J:f={x:t.x+t.width,y:s};break;case _:f={x:t.x-n.width,y:s};break;default:f={x:t.x,y:t.y}}var c=i?$e(i):null;if(c!=null){var l=c==="y"?"height":"width";switch(o){case Tt:f[c]=f[c]-(t[l]/2-n[l]/2);break;case It:f[c]=f[c]+(t[l]/2-n[l]/2);break}}return f}function $t(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,f=s===void 0?kr:s,c=n.rootBoundary,l=c===void 0?$n:c,p=n.elementContext,g=p===void 0?Nt:p,h=n.altBoundary,y=h===void 0?!1:h,u=n.padding,m=u===void 0?0:u,d=Jn(typeof m!="number"?m:Qn(m,Yt)),O=g===Nt?Cr:Nt,v=e.rects.popper,b=e.elements[y?O:g],x=hi(At(b)?b:b.contextElement||pt(e.elements.popper),f,l,a),w=Dt(e.elements.reference),A=er({reference:w,element:v,placement:i}),E=qe(Object.assign({},v,A)),M=g===Nt?E:w,P={top:x.top-M.top+d.top,bottom:M.bottom-x.bottom+d.bottom,left:x.left-M.left+d.left,right:M.right-x.right+d.right},F=e.modifiersData.offset;if(g===Nt&&F){var T=F[i];Object.keys(P).forEach(function(S){var C=[J,Z].indexOf(S)>=0?1:-1,L=[V,Z].indexOf(S)>=0?"y":"x";P[S]+=T[L]*C})}return P}function pi(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?zn:f,l=jt(r),p=l?s?vn:vn.filter(function(y){return jt(y)===l}):Yt,g=p.filter(function(y){return c.indexOf(y)>=0});g.length===0&&(g=p);var h=g.reduce(function(y,u){return y[u]=$t(e,{placement:u,boundary:i,rootBoundary:o,padding:a})[tt(u)],y},{});return Object.keys(h).sort(function(y,u){return h[y]-h[u]})}function gi(e){if(tt(e)===Ve)return[];var t=fe(e);return[xn(e),t,xn(t)]}function mi(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,f=n.fallbackPlacements,c=n.padding,l=n.boundary,p=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,u=n.allowedAutoPlacements,m=t.options.placement,d=tt(m),O=d===m,v=f||(O||!y?[fe(m)]:gi(m)),b=[m].concat(v).reduce(function(mt,ot){return mt.concat(tt(ot)===Ve?pi(t,{placement:ot,boundary:l,rootBoundary:p,padding:c,flipVariations:y,allowedAutoPlacements:u}):ot)},[]),x=t.rects.reference,w=t.rects.popper,A=new Map,E=!0,M=b[0],P=0;P<b.length;P++){var F=b[P],T=tt(F),S=jt(F)===Tt,C=[V,Z].indexOf(T)>=0,L=C?"width":"height",q=$t(t,{placement:F,boundary:l,rootBoundary:p,altBoundary:g,padding:c}),D=C?S?J:_:S?Z:V;x[L]>w[L]&&(D=fe(D));var B=fe(D),N=[];if(o&&N.push(q[T]<=0),s&&N.push(q[D]<=0,q[B]<=0),N.every(function(mt){return mt})){M=F,E=!1;break}A.set(F,N)}if(E)for(var k=y?3:1,G=function(mt){var ot=b.find(function(te){var Ct=A.get(te);if(Ct)return Ct.slice(0,mt).every(function(St){return St})});if(ot)return M=ot,"break"},gt=k;gt>0;gt--){var Kt=G(gt);if(Kt==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var vi={name:"flip",enabled:!0,phase:"main",fn:mi,requiresIfExists:["offset"],data:{_skip:!1}};function On(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function An(e){return[V,J,Z,_].some(function(t){return e[t]>=0})}function yi(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=$t(t,{elementContext:"reference"}),s=$t(t,{altBoundary:!0}),f=On(a,r),c=On(s,i,o),l=An(f),p=An(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}var bi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yi};function xi(e,t,n){var r=tt(e),i=[_,V].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[_,J].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function wi(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=zn.reduce(function(l,p){return l[p]=xi(p,t.rects,o),l},{}),s=a[t.placement],f=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}var Oi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wi};function Ai(e){var t=e.state,n=e.name;t.modifiersData[n]=er({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var nr={name:"popperOffsets",enabled:!0,phase:"read",fn:Ai,data:{}};function Ei(e){return e==="x"?"y":"x"}function Ri(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,f=n.boundary,c=n.rootBoundary,l=n.altBoundary,p=n.padding,g=n.tether,h=g===void 0?!0:g,y=n.tetherOffset,u=y===void 0?0:y,m=$t(t,{boundary:f,rootBoundary:c,padding:p,altBoundary:l}),d=tt(t.placement),O=jt(t.placement),v=!O,b=$e(d),x=Ei(b),w=t.modifiersData.popperOffsets,A=t.rects.reference,E=t.rects.popper,M=typeof u=="function"?u(Object.assign({},t.rects,{placement:t.placement})):u,P=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(o){var S,C=b==="y"?V:_,L=b==="y"?Z:J,q=b==="y"?"height":"width",D=w[b],B=D+m[C],N=D-m[L],k=h?-E[q]/2:0,G=O===Tt?A[q]:E[q],gt=O===Tt?-E[q]:-A[q],Kt=t.elements.arrow,mt=h&&Kt?Ie(Kt):{width:0,height:0},ot=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zn(),te=ot[C],Ct=ot[L],St=Wt(0,A[q],mt[q]),Sr=v?A[q]/2-k-St-te-P.mainAxis:G-St-te-P.mainAxis,Fr=v?-A[q]/2+k+St+Ct+P.mainAxis:gt+St+Ct+P.mainAxis,we=t.elements.arrow&&Zt(t.elements.arrow),Mr=we?b==="y"?we.clientTop||0:we.clientLeft||0:0,on=(S=F==null?void 0:F[b])!=null?S:0,Pr=D+Sr-on-Mr,Tr=D+Fr-on,an=Wt(h?ue(B,Pr):B,D,h?wt(N,Tr):N);w[b]=an,T[b]=an-D}if(s){var sn,qr=b==="x"?V:_,Dr=b==="x"?Z:J,vt=w[x],ee=x==="y"?"height":"width",fn=vt+m[qr],cn=vt-m[Dr],Oe=[V,_].indexOf(d)!==-1,un=(sn=F==null?void 0:F[x])!=null?sn:0,ln=Oe?fn:vt-A[ee]-E[ee]-un+P.altAxis,dn=Oe?vt+A[ee]+E[ee]-un-P.altAxis:cn,hn=h&&Oe?Xr(ln,vt,dn):Wt(h?ln:fn,vt,h?dn:cn);w[x]=hn,T[x]=hn-vt}t.modifiersData[r]=T}}var Si={name:"preventOverflow",enabled:!0,phase:"main",fn:Ri,requiresIfExists:["offset"]};function Fi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mi(e){return e===U(e)||!Y(e)?ze(e):Fi(e)}function Pi(e){var t=e.getBoundingClientRect(),n=qt(t.width)/e.offsetWidth||1,r=qt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ti(e,t,n){n===void 0&&(n=!1);var r=Y(t),i=Y(t)&&Pi(t),o=pt(t),a=Dt(e,i,n),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((nt(t)!=="body"||Ge(o))&&(s=Mi(t)),Y(t)?(f=Dt(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=Ue(o))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height}}function qi(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var f=t.get(s);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Di(e){var t=qi(e);return Gr.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function ji(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Li(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var En={placement:"bottom",modifiers:[],strategy:"absolute"};function Rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Ye(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?En:i;return function(a,s,f){f===void 0&&(f=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},En,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},l=[],p=!1,g={state:c,setOptions:function(u){var m=typeof u=="function"?u(c.options):u;y(),c.options=Object.assign({},o,c.options,m),c.scrollParents={reference:At(a)?Vt(a):a.contextElement?Vt(a.contextElement):[],popper:Vt(s)};var d=Di(Li([].concat(r,c.options.modifiers)));return c.orderedModifiers=d.filter(function(O){return O.enabled}),h(),g.update()},forceUpdate:function(){if(!p){var u=c.elements,m=u.reference,d=u.popper;if(Rn(m,d)){c.rects={reference:Ti(m,Zt(d),c.options.strategy==="fixed"),popper:Ie(d)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(E){return c.modifiersData[E.name]=Object.assign({},E.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var v=c.orderedModifiers[O],b=v.fn,x=v.options,w=x===void 0?{}:x,A=v.name;typeof b=="function"&&(c=b({state:c,options:w,name:A,instance:g})||c)}}}},update:ji(function(){return new Promise(function(u){g.forceUpdate(),u(c)})}),destroy:function(){y(),p=!0}};if(!Rn(a,s))return g;g.setOptions(f).then(function(u){!p&&f.onFirstUpdate&&f.onFirstUpdate(u)});function h(){c.orderedModifiers.forEach(function(u){var m=u.name,d=u.options,O=d===void 0?{}:d,v=u.effect;if(typeof v=="function"){var b=v({state:c,name:m,instance:g,options:O}),x=function(){};l.push(b||x)}})}function y(){l.forEach(function(u){return u()}),l=[]}return g}}Ye();var Hi=[Kn,nr,Xn,Un];Ye({defaultModifiers:Hi});var ki=[Kn,nr,Xn,Un,Oi,vi,Si,ni,bi],ba=Ye({defaultModifiers:ki});function H(e,t){Ci(e)&&(e="100%");var n=Ni(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ie(e){return Math.min(1,Math.max(0,e))}function Ci(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ni(e){return typeof e=="string"&&e.indexOf("%")!==-1}function rr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function oe(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bt(e){return e.length===1?"0"+e:String(e)}function Bi(e,t,n){return{r:H(e,255)*255,g:H(t,255)*255,b:H(n,255)*255}}function Sn(e,t,n){e=H(e,255),t=H(t,255),n=H(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var f=r-i;switch(a=s>.5?f/(2-r-i):f/(r+i),r){case e:o=(t-n)/f+(t<n?6:0);break;case t:o=(n-e)/f+2;break;case n:o=(e-t)/f+4;break}o/=6}return{h:o,s:a,l:s}}function Ee(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Wi(e,t,n){var r,i,o;if(e=H(e,360),t=H(t,100),n=H(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Ee(s,a,e+1/3),i=Ee(s,a,e),o=Ee(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Fn(e,t,n){e=H(e,255),t=H(t,255),n=H(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,f=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:f,v:a}}function Vi(e,t,n){e=H(e,360)*6,t=H(t,100),n=H(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),f=r%6,c=[n,a,o,o,s,n][f],l=[s,n,n,a,o,o][f],p=[o,o,s,n,n,a][f];return{r:c*255,g:l*255,b:p*255}}function Mn(e,t,n,r){var i=[bt(Math.round(e).toString(16)),bt(Math.round(t).toString(16)),bt(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function _i(e,t,n,r,i){var o=[bt(Math.round(e).toString(16)),bt(Math.round(t).toString(16)),bt(Math.round(n).toString(16)),bt(Ii(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Ii(e){return Math.round(parseFloat(e)*255).toString(16)}function Pn(e){return I(e)/255}function I(e){return parseInt(e,16)}function $i(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var De={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function zi(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=Yi(e)),typeof e=="object"&&(ft(e.r)&&ft(e.g)&&ft(e.b)?(t=Bi(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ft(e.h)&&ft(e.s)&&ft(e.v)?(r=oe(e.s),i=oe(e.v),t=Vi(e.h,r,i),a=!0,s="hsv"):ft(e.h)&&ft(e.s)&&ft(e.l)&&(r=oe(e.s),o=oe(e.l),t=Wi(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=rr(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ui="[-\\+]?\\d+%?",Gi="[-\\+]?\\d*\\.\\d+%?",lt="(?:".concat(Gi,")|(?:").concat(Ui,")"),Re="[\\s|\\(]+(".concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")\\s*\\)?"),Se="[\\s|\\(]+(".concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")\\s*\\)?"),Q={CSS_UNIT:new RegExp(lt),rgb:new RegExp("rgb"+Re),rgba:new RegExp("rgba"+Se),hsl:new RegExp("hsl"+Re),hsla:new RegExp("hsla"+Se),hsv:new RegExp("hsv"+Re),hsva:new RegExp("hsva"+Se),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Yi(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(De[e])e=De[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Q.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Q.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Q.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Q.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Q.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Q.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Q.hex8.exec(e),n?{r:I(n[1]),g:I(n[2]),b:I(n[3]),a:Pn(n[4]),format:t?"name":"hex8"}:(n=Q.hex6.exec(e),n?{r:I(n[1]),g:I(n[2]),b:I(n[3]),format:t?"name":"hex"}:(n=Q.hex4.exec(e),n?{r:I(n[1]+n[1]),g:I(n[2]+n[2]),b:I(n[3]+n[3]),a:Pn(n[4]+n[4]),format:t?"name":"hex8"}:(n=Q.hex3.exec(e),n?{r:I(n[1]+n[1]),g:I(n[2]+n[2]),b:I(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ft(e){return!!Q.CSS_UNIT.exec(String(e))}var xa=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=$i(t)),this.originalInput=t;var i=zi(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=rr(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Fn(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Fn(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Sn(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Sn(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Mn(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),_i(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(H(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(H(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Mn(this.r,this.g,this.b,!1),n=0,r=Object.entries(De);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t!=null?t:this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ie(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ie(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ie(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ie(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xt.apply(this,arguments)}function Zi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zt(e,t)}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},je(e)}function zt(e,t){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zt(e,t)}function Ji(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ce(e,t,n){return Ji()?ce=Reflect.construct.bind():ce=function(i,o,a){var s=[null];s.push.apply(s,o);var f=Function.bind.apply(i,s),c=new f;return a&&zt(c,a.prototype),c},ce.apply(null,arguments)}function Qi(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Le(e){var t=typeof Map=="function"?new Map:void 0;return Le=function(r){if(r===null||!Qi(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return ce(r,arguments,je(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zt(i,r)},Le(e)}var Xi=/%[sdj%]/g,Ki=function(){};function He(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function $(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(Xi,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(f){return"[Circular]"}break;default:return s}});return a}return e}function to(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function j(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||to(t)&&typeof e=="string"&&!e)}function eo(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Tn(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?t(e[s],o):n([])}o([])}function no(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var qn=(function(e){Zi(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t})(Le(Error));function ro(e,t,n,r,i){if(t.first){var o=new Promise(function(g,h){var y=function(d){return r(d),d.length?h(new qn(d,He(d))):g(i)},u=no(e);Tn(u,n,y)});return o.catch(function(g){return g}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),f=s.length,c=0,l=[],p=new Promise(function(g,h){var y=function(m){if(l.push.apply(l,m),c++,c===f)return r(l),l.length?h(new qn(l,He(l))):g(i)};s.length||(r(l),g(i)),s.forEach(function(u){var m=e[u];a.indexOf(u)!==-1?Tn(m,n,y):eo(m,n,y)})});return p.catch(function(g){return g}),p}function io(e){return!!(e&&e.message!==void 0)}function oo(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Dn(e,t){return function(n){var r;return e.fullFields?r=oo(t,e.fullFields):r=t[n.field||e.fullField],io(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function jn(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=xt({},e[n],r):e[n]=r}}return e}var ir=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||j(n,a||t.type))&&i.push($(o.messages.required,t.fullField))},ao=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push($(o.messages.whitespace,t.fullField))},ae,so=(function(){if(ae)return ae;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
|
|
2
|
+
(?:
|
|
3
|
+
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
4
|
+
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
5
|
+
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
6
|
+
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
7
|
+
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
8
|
+
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
9
|
+
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
10
|
+
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
11
|
+
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
12
|
+
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),f=function(b){return b&&b.exact?o:new RegExp("(?:"+t(b)+n+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};f.v4=function(v){return v&&v.exact?a:new RegExp(""+t(v)+n+t(v),"g")},f.v6=function(v){return v&&v.exact?s:new RegExp(""+t(v)+i+t(v),"g")};var c="(?:(?:[a-z]+:)?//)",l="(?:\\S+(?::\\S*)?@)?",p=f.v4().source,g=f.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",u="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",d='(?:[/?#][^\\s"]*)?',O="(?:"+c+"|www\\.)"+l+"(?:localhost|"+p+"|"+g+"|"+h+y+u+")"+m+d;return ae=new RegExp("(?:^"+O+"$)","i"),ae}),Ln={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Bt={integer:function(t){return Bt.number(t)&&parseInt(t,10)===t},float:function(t){return Bt.number(t)&&!Bt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Bt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ln.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(so())},hex:function(t){return typeof t=="string"&&!!t.match(Ln.hex)}},fo=function(t,n,r,i,o){if(t.required&&n===void 0){ir(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Bt[s](n)||i.push($(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&i.push($(o.messages.types[s],t.fullField,t.type))},co=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",f=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=n,p=null,g=typeof n=="number",h=typeof n=="string",y=Array.isArray(n);if(g?p="number":h?p="string":y&&(p="array"),!p)return!1;y&&(l=n.length),h&&(l=n.replace(c,"_").length),a?l!==t.len&&i.push($(o.messages[p].len,t.fullField,t.len)):s&&!f&&l<t.min?i.push($(o.messages[p].min,t.fullField,t.min)):f&&!s&&l>t.max?i.push($(o.messages[p].max,t.fullField,t.max)):s&&f&&(l<t.min||l>t.max)&&i.push($(o.messages[p].range,t.fullField,t.min,t.max))},Ft="enum",uo=function(t,n,r,i,o){t[Ft]=Array.isArray(t[Ft])?t[Ft]:[],t[Ft].indexOf(n)===-1&&i.push($(o.messages[Ft],t.fullField,t[Ft].join(", ")))},lo=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push($(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push($(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},R={required:ir,whitespace:ao,type:fo,range:co,enum:uo,pattern:lo},ho=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n,"string")&&!t.required)return r();R.required(t,n,i,a,o,"string"),j(n,"string")||(R.type(t,n,i,a,o),R.range(t,n,i,a,o),R.pattern(t,n,i,a,o),t.whitespace===!0&&R.whitespace(t,n,i,a,o))}r(a)},po=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&R.type(t,n,i,a,o)}r(a)},go=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),j(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&(R.type(t,n,i,a,o),R.range(t,n,i,a,o))}r(a)},mo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&R.type(t,n,i,a,o)}r(a)},vo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n)&&!t.required)return r();R.required(t,n,i,a,o),j(n)||R.type(t,n,i,a,o)}r(a)},yo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&(R.type(t,n,i,a,o),R.range(t,n,i,a,o))}r(a)},bo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&(R.type(t,n,i,a,o),R.range(t,n,i,a,o))}r(a)},xo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();R.required(t,n,i,a,o,"array"),n!=null&&(R.type(t,n,i,a,o),R.range(t,n,i,a,o))}r(a)},wo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&R.type(t,n,i,a,o)}r(a)},Oo="enum",Ao=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&R[Oo](t,n,i,a,o)}r(a)},Eo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n,"string")&&!t.required)return r();R.required(t,n,i,a,o),j(n,"string")||R.pattern(t,n,i,a,o)}r(a)},Ro=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n,"date")&&!t.required)return r();if(R.required(t,n,i,a,o),!j(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),R.type(t,f,i,a,o),f&&R.range(t,f.getTime(),i,a,o)}}r(a)},So=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;R.required(t,n,i,a,o,s),r(a)},Fe=function(t,n,r,i,o){var a=t.type,s=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(j(n,a)&&!t.required)return r();R.required(t,n,i,s,o,a),j(n,a)||R.type(t,n,i,s,o)}r(s)},Fo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(j(n)&&!t.required)return r();R.required(t,n,i,a,o)}r(a)},_t={string:ho,method:po,number:go,boolean:mo,regexp:vo,integer:yo,float:bo,array:xo,object:wo,enum:Ao,pattern:Eo,date:Ro,url:Fe,hex:Fe,email:Fe,required:So,any:Fo};function ke(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ce=ke(),ge=(function(){function e(n){this.rules=null,this._messages=Ce,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=jn(ke(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,f=i,c=o;if(typeof f=="function"&&(c=f,f={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function l(u){var m=[],d={};function O(b){if(Array.isArray(b)){var x;m=(x=m).concat.apply(x,b)}else m.push(b)}for(var v=0;v<u.length;v++)O(u[v]);m.length?(d=He(m),c(m,d)):c(null,s)}if(f.messages){var p=this.messages();p===Ce&&(p=ke()),jn(p,f.messages),f.messages=p}else f.messages=this.messages();var g={},h=f.keys||Object.keys(this.rules);h.forEach(function(u){var m=a.rules[u],d=s[u];m.forEach(function(O){var v=O;typeof v.transform=="function"&&(s===r&&(s=xt({},s)),d=s[u]=v.transform(d)),typeof v=="function"?v={validator:v}:v=xt({},v),v.validator=a.getValidationMethod(v),v.validator&&(v.field=u,v.fullField=v.fullField||u,v.type=a.getType(v),g[u]=g[u]||[],g[u].push({rule:v,value:d,source:s,field:u}))})});var y={};return ro(g,f,function(u,m){var d=u.rule,O=(d.type==="object"||d.type==="array")&&(typeof d.fields=="object"||typeof d.defaultField=="object");O=O&&(d.required||!d.required&&u.value),d.field=u.field;function v(w,A){return xt({},A,{fullField:d.fullField+"."+w,fullFields:d.fullFields?[].concat(d.fullFields,[w]):[w]})}function b(w){w===void 0&&(w=[]);var A=Array.isArray(w)?w:[w];!f.suppressWarning&&A.length&&e.warning("async-validator:",A),A.length&&d.message!==void 0&&(A=[].concat(d.message));var E=A.map(Dn(d,s));if(f.first&&E.length)return y[d.field]=1,m(E);if(!O)m(E);else{if(d.required&&!u.value)return d.message!==void 0?E=[].concat(d.message).map(Dn(d,s)):f.error&&(E=[f.error(d,$(f.messages.required,d.field))]),m(E);var M={};d.defaultField&&Object.keys(u.value).map(function(T){M[T]=d.defaultField}),M=xt({},M,u.rule.fields);var P={};Object.keys(M).forEach(function(T){var S=M[T],C=Array.isArray(S)?S:[S];P[T]=C.map(v.bind(null,T))});var F=new e(P);F.messages(f.messages),u.rule.options&&(u.rule.options.messages=f.messages,u.rule.options.error=f.error),F.validate(u.value,u.rule.options||f,function(T){var S=[];E&&E.length&&S.push.apply(S,E),T&&T.length&&S.push.apply(S,T),m(S.length?S:null)})}}var x;if(d.asyncValidator)x=d.asyncValidator(d,u.value,b,u.source,f);else if(d.validator){try{x=d.validator(d,u.value,b,u.source,f)}catch(w){console.error==null||console.error(w),f.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}x===!0?b():x===!1?b(typeof d.message=="function"?d.message(d.fullField||d.field):d.message||(d.fullField||d.field)+" fails"):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(w){return b(w)})},function(u){l(u)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!_t.hasOwnProperty(r.type))throw new Error($("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?_t.required:_t[this.getType(r)]||void 0},e})();ge.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");_t[t]=n};ge.warning=Ki;ge.messages=Ce;ge.validators=_t;const Lt=Math.min,Ot=Math.max,le=Math.round,se=Math.floor,et=e=>({x:e,y:e}),Mo={left:"right",right:"left",bottom:"top",top:"bottom"},Po={start:"end",end:"start"};function Ne(e,t,n){return Ot(e,Lt(t,n))}function Jt(e,t){return typeof e=="function"?e(t):e}function Et(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function or(e){return e==="x"?"y":"x"}function Ze(e){return e==="y"?"height":"width"}const To=new Set(["top","bottom"]);function dt(e){return To.has(Et(e))?"y":"x"}function Je(e){return or(dt(e))}function qo(e,t,n){n===void 0&&(n=!1);const r=Qt(e),i=Je(e),o=Ze(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=de(a)),[a,de(a)]}function Do(e){const t=de(e);return[Be(e),t,Be(t)]}function Be(e){return e.replace(/start|end/g,t=>Po[t])}const Hn=["left","right"],kn=["right","left"],jo=["top","bottom"],Lo=["bottom","top"];function Ho(e,t,n){switch(e){case"top":case"bottom":return n?t?kn:Hn:t?Hn:kn;case"left":case"right":return t?jo:Lo;default:return[]}}function ko(e,t,n,r){const i=Qt(e);let o=Ho(Et(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Be)))),o}function de(e){return e.replace(/left|right|bottom|top/g,t=>Mo[t])}function Co(e){return W({top:0,right:0,bottom:0,left:0},e)}function ar(e){return typeof e!="number"?Co(e):{top:e,right:e,bottom:e,left:e}}function he(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Cn(e,t,n){let{reference:r,floating:i}=e;const o=dt(t),a=Je(t),s=Ze(a),f=Et(t),c=o==="y",l=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,g=r[s]/2-i[s]/2;let h;switch(f){case"top":h={x:l,y:r.y-i.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Qt(t)){case"start":h[a]-=g*(n&&c?-1:1);break;case"end":h[a]+=g*(n&&c?-1:1);break}return h}function sr(e,t){return st(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=Jt(t,e),y=ar(h),m=s[g?p==="floating"?"reference":"floating":p],d=he(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(m))==null||n?m:m.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:f})),O=p==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),b=(yield o.isElement==null?void 0:o.isElement(v))?(yield o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},x=he(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:O,offsetParent:v,strategy:f}):O);return{top:(d.top-x.top+y.top)/b.y,bottom:(x.bottom-d.bottom+y.bottom)/b.y,left:(d.left-x.left+y.left)/b.x,right:(x.right-d.right+y.right)/b.x}})}const No=(e,t,n)=>st(null,null,function*(){const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),f=yield a.isRTL==null?void 0:a.isRTL(t);let c=yield a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:p}=Cn(c,r,f),g=r,h={},y=0;for(let m=0;m<s.length;m++){var u;const{name:d,fn:O}=s[m],{x:v,y:b,data:x,reset:w}=yield O({x:l,y:p,initialPlacement:r,placement:g,strategy:i,middlewareData:h,rects:c,platform:at(W({},a),{detectOverflow:(u=a.detectOverflow)!=null?u:sr}),elements:{reference:e,floating:t}});l=v!=null?v:l,p=b!=null?b:p,h=at(W({},h),{[d]:W(W({},h[d]),x)}),w&&y<=50&&(y++,typeof w=="object"&&(w.placement&&(g=w.placement),w.rects&&(c=w.rects===!0?yield a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:l,y:p}=Cn(c,g,f)),m=-1)}return{x:l,y:p,placement:g,strategy:i,middlewareData:h}}),Bo=e=>({name:"arrow",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o,rects:a,platform:s,elements:f,middlewareData:c}=n,{element:l,padding:p=0}=Jt(e,n)||{};if(l==null)return{};const g=ar(p),h={x:r,y:i},y=Je(o),u=Ze(y),m=yield s.getDimensions(l),d=y==="y",O=d?"top":"left",v=d?"bottom":"right",b=d?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[y]-h[y]-a.floating[u],w=h[y]-a.reference[y],A=yield s.getOffsetParent==null?void 0:s.getOffsetParent(l);let E=A?A[b]:0;(!E||!(yield s.isElement==null?void 0:s.isElement(A)))&&(E=f.floating[b]||a.floating[u]);const M=x/2-w/2,P=E/2-m[u]/2-1,F=Lt(g[O],P),T=Lt(g[v],P),S=F,C=E-m[u]-T,L=E/2-m[u]/2+M,q=Ne(S,L,C),D=!c.arrow&&Qt(o)!=null&&L!==q&&a.reference[u]/2-(L<S?F:T)-m[u]/2<0,B=D?L<S?L-S:L-C:0;return{[y]:h[y]+B,data:W({[y]:q,centerOffset:L-q-B},D&&{alignmentOffset:B}),reset:D}})}}),Wo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return st(this,null,function*(){var r,i;const{placement:o,middlewareData:a,rects:s,initialPlacement:f,platform:c,elements:l}=n,L=Jt(e,n),{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:m=!0}=L,d=Ae(L,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const O=Et(o),v=dt(f),b=Et(f)===f,x=yield c.isRTL==null?void 0:c.isRTL(l.floating),w=h||(b||!m?[de(f)]:Do(f)),A=u!=="none";!h&&A&&w.push(...ko(f,m,u,x));const E=[f,...w],M=yield c.detectOverflow(n,d),P=[];let F=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&P.push(M[O]),g){const q=qo(o,s,x);P.push(M[q[0]],M[q[1]])}if(F=[...F,{placement:o,overflows:P}],!P.every(q=>q<=0)){var T,S;const q=(((T=a.flip)==null?void 0:T.index)||0)+1,D=E[q];if(D&&(!(g==="alignment"?v!==dt(D):!1)||F.every(k=>dt(k.placement)===v?k.overflows[0]>0:!0)))return{data:{index:q,overflows:F},reset:{placement:D}};let B=(S=F.filter(N=>N.overflows[0]<=0).sort((N,k)=>N.overflows[1]-k.overflows[1])[0])==null?void 0:S.placement;if(!B)switch(y){case"bestFit":{var C;const N=(C=F.filter(k=>{if(A){const G=dt(k.placement);return G===v||G==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(G=>G>0).reduce((G,gt)=>G+gt,0)]).sort((k,G)=>k[1]-G[1])[0])==null?void 0:C[0];N&&(B=N);break}case"initialPlacement":B=f;break}if(o!==B)return{reset:{placement:B}}}return{}})}}},Vo=new Set(["left","top"]);function _o(e,t){return st(this,null,function*(){const{placement:n,platform:r,elements:i}=e,o=yield r.isRTL==null?void 0:r.isRTL(i.floating),a=Et(n),s=Qt(n),f=dt(n)==="y",c=Vo.has(a)?-1:1,l=o&&f?-1:1,p=Jt(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof y=="number"&&(h=s==="end"?y*-1:y),f?{x:h*l,y:g*c}:{x:g*c,y:h*l}})}const Io=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return st(this,null,function*(){var r,i;const{x:o,y:a,placement:s,middlewareData:f}=n,c=yield _o(n,e);return s===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:at(W({},c),{placement:s})}})}}},$o=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o,platform:a}=n,O=Jt(e,n),{mainAxis:s=!0,crossAxis:f=!1,limiter:c={fn:v=>{let{x:b,y:x}=v;return{x:b,y:x}}}}=O,l=Ae(O,["mainAxis","crossAxis","limiter"]),p={x:r,y:i},g=yield a.detectOverflow(n,l),h=dt(Et(o)),y=or(h);let u=p[y],m=p[h];if(s){const v=y==="y"?"top":"left",b=y==="y"?"bottom":"right",x=u+g[v],w=u-g[b];u=Ne(x,u,w)}if(f){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+g[v],w=m-g[b];m=Ne(x,m,w)}const d=c.fn(at(W({},n),{[y]:u,[h]:m}));return at(W({},d),{data:{x:d.x-r,y:d.y-i,enabled:{[y]:s,[h]:f}}})})}}};function me(){return typeof window!="undefined"}function kt(e){return fr(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function it(e){var t;return(t=(fr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fr(e){return me()?e instanceof Node||e instanceof z(e).Node:!1}function X(e){return me()?e instanceof Element||e instanceof z(e).Element:!1}function rt(e){return me()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function Nn(e){return!me()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}const zo=new Set(["inline","contents"]);function Xt(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!zo.has(i)}const Uo=new Set(["table","td","th"]);function Go(e){return Uo.has(kt(e))}const Yo=[":popover-open",":modal"];function ve(e){return Yo.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Zo=["transform","translate","scale","rotate","perspective"],Jo=["transform","translate","scale","rotate","perspective","filter"],Qo=["paint","layout","strict","content"];function Qe(e){const t=Xe(),n=X(e)?K(e):e;return Zo.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Jo.some(r=>(n.willChange||"").includes(r))||Qo.some(r=>(n.contain||"").includes(r))}function Xo(e){let t=ht(e);for(;rt(t)&&!Ht(t);){if(Qe(t))return t;if(ve(t))return null;t=ht(t)}return null}function Xe(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ko=new Set(["html","body","#document"]);function Ht(e){return Ko.has(kt(e))}function K(e){return z(e).getComputedStyle(e)}function ye(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if(kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nn(e)&&e.host||it(e);return Nn(t)?t.host:t}function cr(e){const t=ht(e);return Ht(t)?e.ownerDocument?e.ownerDocument.body:e.body:rt(t)&&Xt(t)?t:cr(t)}function Ut(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=cr(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=z(i);if(o){const s=We(a);return t.concat(a,a.visualViewport||[],Xt(i)?i:[],s&&n?Ut(s):[])}return t.concat(i,Ut(i,[],n))}function We(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ur(e){const t=K(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=rt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=le(n)!==o||le(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Ke(e){return X(e)?e:e.contextElement}function Mt(e){const t=Ke(e);if(!rt(t))return et(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ur(t);let a=(o?le(n.width):n.width)/r,s=(o?le(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const ta=et(0);function lr(e){const t=z(e);return!Xe()||!t.visualViewport?ta:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ea(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function Rt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ke(e);let a=et(1);t&&(r?X(r)&&(a=Mt(r)):a=Mt(e));const s=ea(o,n,r)?lr(o):et(0);let f=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,p=i.height/a.y;if(o){const g=z(o),h=r&&X(r)?z(r):r;let y=g,u=We(y);for(;u&&r&&h!==y;){const m=Mt(u),d=u.getBoundingClientRect(),O=K(u),v=d.left+(u.clientLeft+parseFloat(O.paddingLeft))*m.x,b=d.top+(u.clientTop+parseFloat(O.paddingTop))*m.y;f*=m.x,c*=m.y,l*=m.x,p*=m.y,f+=v,c+=b,y=z(u),u=We(y)}}return he({width:l,height:p,x:f,y:c})}function be(e,t){const n=ye(e).scrollLeft;return t?t.left+n:Rt(it(e)).left+n}function dr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-be(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function na(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=it(r),s=t?ve(t.floating):!1;if(r===a||s&&o)return n;let f={scrollLeft:0,scrollTop:0},c=et(1);const l=et(0),p=rt(r);if((p||!p&&!o)&&((kt(r)!=="body"||Xt(a))&&(f=ye(r)),rt(r))){const h=Rt(r);c=Mt(r),l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}const g=a&&!p&&!o?dr(a,f):et(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+l.x+g.x,y:n.y*c.y-f.scrollTop*c.y+l.y+g.y}}function ra(e){return Array.from(e.getClientRects())}function ia(e){const t=it(e),n=ye(e),r=e.ownerDocument.body,i=Ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+be(e);const s=-n.scrollTop;return K(r).direction==="rtl"&&(a+=Ot(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}const Bn=25;function oa(e,t){const n=z(e),r=it(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,f=0;if(i){o=i.width,a=i.height;const l=Xe();(!l||l&&t==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}const c=be(r);if(c<=0){const l=r.ownerDocument,p=l.body,g=getComputedStyle(p),h=l.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(r.clientWidth-p.clientWidth-h);y<=Bn&&(o-=y)}else c<=Bn&&(o+=c);return{width:o,height:a,x:s,y:f}}const aa=new Set(["absolute","fixed"]);function sa(e,t){const n=Rt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=rt(e)?Mt(e):et(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:a,height:s,x:f,y:c}}function Wn(e,t,n){let r;if(t==="viewport")r=oa(e,n);else if(t==="document")r=ia(it(e));else if(X(t))r=sa(t,n);else{const i=lr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return he(r)}function hr(e,t){const n=ht(e);return n===t||!X(n)||Ht(n)?!1:K(n).position==="fixed"||hr(n,t)}function fa(e,t){const n=t.get(e);if(n)return n;let r=Ut(e,[],!1).filter(s=>X(s)&&kt(s)!=="body"),i=null;const o=K(e).position==="fixed";let a=o?ht(e):e;for(;X(a)&&!Ht(a);){const s=K(a),f=Qe(a);!f&&s.position==="fixed"&&(i=null),(o?!f&&!i:!f&&s.position==="static"&&!!i&&aa.has(i.position)||Xt(a)&&!f&&hr(e,a))?r=r.filter(l=>l!==a):i=s,a=ht(a)}return t.set(e,r),r}function ca(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?ve(t)?[]:fa(t,this._c):[].concat(n),r],s=a[0],f=a.reduce((c,l)=>{const p=Wn(t,l,i);return c.top=Ot(p.top,c.top),c.right=Lt(p.right,c.right),c.bottom=Lt(p.bottom,c.bottom),c.left=Ot(p.left,c.left),c},Wn(t,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function ua(e){const{width:t,height:n}=ur(e);return{width:t,height:n}}function la(e,t,n){const r=rt(t),i=it(t),o=n==="fixed",a=Rt(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const f=et(0);function c(){f.x=be(i)}if(r||!r&&!o)if((kt(t)!=="body"||Xt(i))&&(s=ye(t)),r){const h=Rt(t,!0,o,t);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else i&&c();o&&!r&&i&&c();const l=i&&!r&&!o?dr(i,s):et(0),p=a.left+s.scrollLeft-f.x-l.x,g=a.top+s.scrollTop-f.y-l.y;return{x:p,y:g,width:a.width,height:a.height}}function Me(e){return K(e).position==="static"}function Vn(e,t){if(!rt(e)||K(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return it(e)===n&&(n=n.ownerDocument.body),n}function pr(e,t){const n=z(e);if(ve(e))return n;if(!rt(e)){let i=ht(e);for(;i&&!Ht(i);){if(X(i)&&!Me(i))return i;i=ht(i)}return n}let r=Vn(e,t);for(;r&&Go(r)&&Me(r);)r=Vn(r,t);return r&&Ht(r)&&Me(r)&&!Qe(r)?n:r||Xo(e)||n}const da=function(e){return st(this,null,function*(){const t=this.getOffsetParent||pr,n=this.getDimensions,r=yield n(e.floating);return{reference:la(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function ha(e){return K(e).direction==="rtl"}const pa={convertOffsetParentRelativeRectToViewportRelativeRect:na,getDocumentElement:it,getClippingRect:ca,getOffsetParent:pr,getElementRects:da,getClientRects:ra,getDimensions:ua,getScale:Mt,isElement:X,isRTL:ha};function gr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ga(e,t){let n=null,r;const i=it(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),o();const c=e.getBoundingClientRect(),{left:l,top:p,width:g,height:h}=c;if(s||t(),!g||!h)return;const y=se(p),u=se(i.clientWidth-(l+g)),m=se(i.clientHeight-(p+h)),d=se(l),v={rootMargin:-y+"px "+-u+"px "+-m+"px "+-d+"px",threshold:Ot(0,Lt(1,f))||1};let b=!0;function x(w){const A=w[0].intersectionRatio;if(A!==f){if(!b)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!gr(c,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(x,at(W({},v),{root:i.ownerDocument}))}catch(w){n=new IntersectionObserver(x,v)}n.observe(e)}return a(!0),o}function wa(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=Ke(e),l=i||o?[...c?Ut(c):[],...Ut(t)]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const p=c&&s?ga(c,n):null;let g=-1,h=null;a&&(h=new ResizeObserver(d=>{let[O]=d;O&&O.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),c&&!f&&h.observe(c),h.observe(t));let y,u=f?Rt(e):null;f&&m();function m(){const d=Rt(e);u&&!gr(u,d)&&n(),u=d,y=requestAnimationFrame(m)}return n(),()=>{var d;l.forEach(O=>{i&&O.removeEventListener("scroll",n),o&&O.removeEventListener("resize",n)}),p==null||p(),(d=h)==null||d.disconnect(),h=null,f&&cancelAnimationFrame(y)}}const Oa=sr,Aa=Io,Ea=$o,Ra=Wo,Sa=Bo,Fa=(e,t,n)=>{const r=new Map,i=W({platform:pa},n),o=at(W({},i.platform),{_c:r});return No(e,t,at(W({},i),{platform:o}))};var Pt=null,Pe=null,ut=null,_n="z-index-manage",yt=null,In="z-index-style",mr="m",vr="s",Gt={m:1e3,s:1e3};function tn(){return Pt||typeof document!="undefined"&&(Pt=document),Pt}function yr(){return Pt&&!Pe&&(Pe=Pt.body||Pt.getElementsByTagName("body")[0]),Pe}function ma(){var e=0,t=tn();if(t){var n=yr();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&o.nodeType===1){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(e=Math.max(e,Number(a)))}}}return e}function va(){if(!yt){var e=tn();e&&(yt=e.getElementById(In),yt||(yt=e.createElement("style"),yt.id=In,e.getElementsByTagName("head")[0].appendChild(yt)))}return yt}function br(){var e=va();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+xe()+";"+t+"sub"+n+":"+rn()+"}"}}function xr(){if(!ut){var e=tn();if(e&&(ut=e.getElementById(_n),!ut)){var t=yr();t&&(ut=e.createElement("div"),ut.id=_n,ut.style.display="none",t.appendChild(ut),en(Gt.m),nn(Gt.s))}}return ut}function wr(e){return function(t){if(t){t=Number(t),Gt[e]=t;var n=xr();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return br(),Gt[e]}}var en=wr(mr);function Or(e,t){return function(r){var i,o=xr();if(o){var a=o.dataset?o.dataset[e]:o.getAttribute("data-"+e);a&&(i=Number(a))}return i||(i=Gt[e]),r?Number(r)<i?t():r:i}}var xe=Or(mr,Ar);function Ar(){return en(xe()+1)}var nn=wr(vr),Er=Or(vr,Rr);function rn(){return xe()+Er()}function Rr(){return nn(Er()+1),rn()}var Ma={setCurrent:en,getCurrent:xe,getNext:Ar,setSubCurrent:nn,getSubCurrent:rn,getSubNext:Rr,getMax:ma};br();export{Ma as D,zn as E,ge as S,xa as T,wa as a,Sa as b,Fa as c,Oa as d,Ra as f,Aa as o,Ea as s,ba as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRoute as o}from"./vue-router-
|
|
1
|
+
import{useRoute as o}from"./vue-router-BEDJn_dq.js";import{j as s,n as a,y as c,c as r,o as n}from"./vue-C7aOYzfv.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";const i={class:"uni-iframe"},p=["src"],u=s({__name:"uni-page",setup(m){const e=o(),t=r(()=>`http://localhost:8010/uni/#${e.path}`);return(f,l)=>(n(),a("div",i,[c("iframe",{src:t.value},null,8,p)]))}}),x=_(u,[["__scopeId","data-v-6cf4ecbe"]]);export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var g=Object.defineProperty;var S=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var T=(t,a,s)=>a in t?g(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,l=(t,a)=>{for(var s in a||(a={}))m.call(a,s)&&T(t,s,a[s]);if(S)for(var s of S(a))u.call(a,s)&&T(t,s,a[s]);return t};var E=(t,a,s)=>T(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(_){n(_)}},c=r=>{try{i(s.throw(r))}catch(_){n(_)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as d}from"./vue-C7aOYzfv.js";import{J as A,S as I,a as f,b as V,c as h,V as b,O as P,x as R,G as y,e as B,D,f as M,q as N,Q as L,v as k,g as x,H as K,T as w,U as H,h as U,A as Y,K as C,i as G,z as v,j as W,W as F,l as j,m as $,n as J,o as Z,B as z,p as X,r as q,s as Q,t as aa,u as sa,y as ea,C as ta,L as ra,N as na,X as ia,_ as oa,$ as _a,a0 as Ea,a1 as la,a2 as ca,a3 as Ta,a4 as Sa,a5 as pa,a6 as Oa,a7 as ga,a8 as ma,a9 as ua,aa as da,ab as Aa,ac as Ia,ad as fa,ae as Va,af as ha,ag as ba,ah as Pa,ai as Ra,aj as ya,ak as Ba,al as Da,am as Ma,an as Na,ao as La,ap as ka,aq as xa,ar as Ka,as as wa,at as Ha,au as Ua,av as Ya,Z as Ca,aw as Ga,ax as va,ay as Wa,az as Fa,aA as ja,aB as $a,aC as Ja,aD as Za}from"./Editor-CeRX4KMd-DmEUCrZb.js";import{E as za,a as Xa,b as qa}from"./element-plus-Cnk22g0r.js";const Qa=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:h,CodeIncrementalUpdater:b,DEVTOOLS_DEP:P,Designer:R,EVENT_MODIFIERS:y,Editor:B,Engine:D,EventBinder:M,GET_TOKENS_LINK:N,HOT_KEYS_DEP:L,Icon:k,Item:x,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:w,MOBILE_SIZE:H,MOUSE_EVENT_LIST:U,NAME_REGEX:Y,NPM_REGISTRY_URL:C,OpenApi:G,PAD_SIZE:v,Panel:W,REPORT_API:F,RegionType:j,RegionWrapper:$,Renderer:J,SAVE_BLOCK_FILE_FINISH:Z,SESSION_ID_KEY:z,STATE_KEY:X,SetterView:q,SetterWrapper:Q,Simulator:aa,Skeleton:sa,SkeletonWrapper:ea,SlotsPicker:ta,State:ra,TOOL_CONFIGS:na,Tabs:ia,ToolRegistry:oa,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:Ea,VUE_DEVTOOLS_FRAME_STATE_KEY:la,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:Ta,VariableBinder:Sa,Viewer:pa,Viewport:Oa,WidgetGroup:ga,WidgetWrapper:ma,alert:ua,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:ha,createSlotsPicker:ba,defaultSetter:Pa,depsManager:Ra,engineKey:ya,expressionValidate:Ba,getClassProperties:Da,loading:Ma,message:Na,normalizedStyle:La,notify:ka,proxyContext:xa,readJsonFile:Ka,regions:wa,setterManager:Ha,setters:Ua,useEngine:Ya,widgetManager:Ca,widgets:Ga},Symbol.toStringTag,{value:"Module"}));class rs{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},Wa),Qa),va),o={Vue:d,__VTJ_PRO__:s};for(const[_,O]of Object.entries(o))window[_]=O;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return p(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Fa(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`);if($a(o),n.length){const e=yield Ja(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return Za(this.config,a)}}function ns(){return qa.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function is(t,a="",s="warning"){Xa({title:a,message:t,type:s})}function os(t,a){return za.alert(t,a)}export{rs as E,os as a,ns as l,is as n};
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
* @vue/shared v3.4.21
|
|
33
33
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
34
34
|
* @license MIT
|
|
35
|
-
**/const Mh=()=>{},wh=Object.prototype.hasOwnProperty,Ih=(e,t)=>wh.call(e,t),Fh=Array.isArray,$h=e=>oc(e)==="[object Date]",zs=e=>typeof e=="function",Lh=e=>typeof e=="string",Ah=e=>e!==null&&typeof e=="object",Dh=e=>(Ah(e)||zs(e))&&zs(e.then)&&zs(e.catch),Oh=Object.prototype.toString,oc=e=>Oh.call(e),Hh=e=>oc(e)==="[object Object]",Qr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ph=/-(\w)/g,kh=Qr(e=>e.replace(Ph,(t,n)=>n?n.toUpperCase():"")),Rh=/\B([A-Z])/g,Vh=Qr(e=>e.replace(Rh,"-$1").toLowerCase()),jh=Qr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{
|
|
35
|
+
**/const Mh=()=>{},wh=Object.prototype.hasOwnProperty,Ih=(e,t)=>wh.call(e,t),Fh=Array.isArray,$h=e=>oc(e)==="[object Date]",zs=e=>typeof e=="function",Lh=e=>typeof e=="string",Ah=e=>e!==null&&typeof e=="object",Dh=e=>(Ah(e)||zs(e))&&zs(e.then)&&zs(e.catch),Oh=Object.prototype.toString,oc=e=>Oh.call(e),Hh=e=>oc(e)==="[object Object]",Qr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ph=/-(\w)/g,kh=Qr(e=>e.replace(Ph,(t,n)=>n?n.toUpperCase():"")),Rh=/\B([A-Z])/g,Vh=Qr(e=>e.replace(Rh,"-$1").toLowerCase()),jh=Qr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{Wo as $,lu as A,ia as B,oe as C,Wr as D,Co as E,ue as F,ie as G,Ul as H,Ua as I,fo as J,Dt as K,uo as L,Nn as M,Mh as N,Is as O,Qc as P,As as Q,Cu as R,vh as S,kf as T,An as U,Ms as V,Uo as W,Ns as X,vs as Y,Ke as Z,dt as _,ce as a,Bo as a0,es as a1,$h as a2,jh as a3,Z as a4,Jc as a5,$f as a6,Hh as a7,ou as a8,cu as a9,Nh as aA,Ju as aB,Fu as aC,xu as aD,tu as aE,su as aF,Bc as aG,fu as aa,on as ab,Pl as ac,Wc as ad,Zr as ae,Xr as af,Lr as ag,uu as ah,Ch as ai,ps as aj,Dh as ak,hu as al,Tc as am,Cf as an,Tl as ao,ah as ap,vc as aq,Tr as ar,Vh as as,co as at,nc as au,Gi as av,ho as aw,Gc as ax,Ff as ay,wu as az,Fh as b,Ol as c,Ah as d,Lh as e,zs as f,Se as g,Ih as h,cn as i,Fr as j,au as k,cs as l,kh as m,ta as n,Cn as o,Po as p,Cl as q,rn as r,st as s,Tu as t,wn as u,Nr as v,ga as w,If as x,Kr as y,On as z};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{i as M,
|
|
1
|
+
import{i as M,O as dt,a0 as pt,W as mt,u as $,at as gt,L as Rt,j as Fe,Q as vt,c as B,Y as Et,ac as Qe,K as At,r as yt,p as pe}from"./vue-C7aOYzfv.js";/*!
|
|
2
2
|
* vue-router v4.6.4
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const F=typeof document!="undefined";function ze(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function
|
|
5
|
+
*/const F=typeof document!="undefined";function ze(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ye(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ze(e.default)}const N=Object.assign;function me(e,t){const n={};for(const r in t){const o=t[r];n[r]=k(o)?o.map(e):e(o)}return n}const ee=()=>{},k=Array.isArray;function be(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Je=/#/g,Ot=/&/g,Nt=/\//g,Ct=/=/g,_t=/\?/g,Xe=/\+/g,Pt=/%5B/g,It=/%5D/g,Ze=/%5E/g,wt=/%60/g,$e=/%7B/g,St=/%7C/g,et=/%7D/g,bt=/%20/g;function Oe(e){return e==null?"":encodeURI(""+e).replace(St,"|").replace(Pt,"[").replace(It,"]")}function Tt(e){return Oe(e).replace($e,"{").replace(et,"}").replace(Ze,"^")}function Ee(e){return Oe(e).replace(Xe,"%2B").replace(bt,"+").replace(Je,"%23").replace(Ot,"%26").replace(wt,"`").replace($e,"{").replace(et,"}").replace(Ze,"^")}function xt(e){return Ee(e).replace(Ct,"%3D")}function Dt(e){return Oe(e).replace(Je,"%23").replace(_t,"%3F")}function Gt(e){return Dt(e).replace(Nt,"%2F")}function ne(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Lt=/\/$/,kt=e=>e.replace(Lt,"");function ge(e,t,n="/"){let r,o={},u="",h="";const d=t.indexOf("#");let i=t.indexOf("?");return i=d>=0&&i>d?-1:i,i>=0&&(r=t.slice(0,i),u=t.slice(i,d>0?d:t.length),o=e(u.slice(1))),d>=0&&(r=r||t.slice(0,d),h=t.slice(d,t.length)),r=Ut(r!=null?r:t,n),{fullPath:r+u+h,path:r,query:o,hash:ne(h)}}function Bt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Te(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Q(t.matched[r],n.matched[o])&&tt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Mt(e[n],t[n]))return!1;return!0}function Mt(e,t){return k(e)?xe(e,t):k(t)?xe(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function xe(e,t){return k(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ut(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,h,d;for(h=0;h<r.length;h++)if(d=r[h],d!==".")if(d==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(h).join("/")}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let se=(function(e){return e.pop="pop",e.push="push",e})({}),te=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});const Re="";function nt(e){if(!e)if(F){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kt(e)}const Ht=/^[^#]+#/;function rt(e,t){return e.replace(Ht,"#")+t}function jt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ie=()=>({left:window.scrollX,top:window.scrollY});function qt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=jt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function De(e,t){return(history.state?history.state.position-t:-1)+e}const Ae=new Map;function Kt(e,t){Ae.set(e,t)}function Wt(e){const t=Ae.get(e);return Ae.delete(e),t}function Ft(e){return typeof e=="string"||e&&typeof e=="object"}function ot(e){return typeof e=="string"||typeof e=="symbol"}let w=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const st=Symbol("");let _n=(function(e){return e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated",e})({});w.MATCHER_NOT_FOUND+"",w.NAVIGATION_GUARD_REDIRECT+"",w.NAVIGATION_ABORTED+"",w.NAVIGATION_CANCELLED+"",w.NAVIGATION_DUPLICATED+"";function z(e,t){return N(new Error,{type:e,[st]:!0},t)}function V(e,t){return e instanceof Error&&st in e&&(t==null||!!(e.type&t))}const Qt=["params","query","hash"];function zt(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Qt)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Yt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(Xe," "),u=o.indexOf("="),h=ne(u<0?o:o.slice(0,u)),d=u<0?null:ne(o.slice(u+1));if(h in t){let i=t[h];k(i)||(i=t[h]=[i]),i.push(d)}else t[h]=d}return t}function Ge(e){let t="";for(let n in e){const r=e[n];if(n=xt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(k(r)?r.map(o=>o&&Ee(o)):[r&&Ee(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jt(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=k(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Ne=Symbol(""),Le=Symbol(""),ae=Symbol(""),Ce=Symbol(""),ye=Symbol("");function Z(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function it(e,t,n){const r=()=>{e[t].delete(n)};dt(r),pt(r),mt(()=>{e[t].add(n)}),e[t].add(n)}function Pn(e){const t=M(Ne,{}).value;t&&it(t,"leaveGuards",e)}function In(e){const t=M(Ne,{}).value;t&&it(t,"updateGuards",e)}function j(e,t,n,r,o,u=h=>h()){const h=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,i)=>{const l=c=>{c===!1?i(z(w.NAVIGATION_ABORTED,{from:n,to:t})):c instanceof Error?i(c):Ft(c)?i(z(w.NAVIGATION_GUARD_REDIRECT,{from:t,to:c})):(h&&r.enterCallbacks[o]===h&&typeof c=="function"&&h.push(c),d())},p=u(()=>e.call(r&&r.instances[o],t,n,l));let a=Promise.resolve(p);e.length<3&&(a=a.then(l)),a.catch(c=>i(c))})}function ve(e,t,n,r,o=u=>u()){const u=[];for(const h of e)for(const d in h.components){let i=h.components[d];if(!(t!=="beforeRouteEnter"&&!h.instances[d]))if(ze(i)){const l=(i.__vccOpts||i)[t];l&&u.push(j(l,n,r,h,d,o))}else{let l=i();u.push(()=>l.then(p=>{if(!p)throw new Error(`Couldn't resolve component "${d}" at "${h.path}"`);const a=Ye(p)?p.default:p;h.mods[d]=p,h.components[d]=a;const c=(a.__vccOpts||a)[t];return c&&j(c,n,r,h,d,o)()}))}}return u}function wn(e){return e.matched.every(t=>t.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(t=>t.components&&Promise.all(Object.keys(t.components).reduce((n,r)=>{const o=t.components[r];return typeof o=="function"&&!("displayName"in o)&&n.push(o().then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const h=Ye(u)?u.default:u;t.mods[r]=u,t.components[r]=h})),n},[])))).then(()=>e)}function Xt(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const d=t.matched[h];d&&(e.matched.find(l=>Q(l,d))?r.push(d):n.push(d));const i=e.matched[h];i&&(t.matched.find(l=>Q(l,i))||o.push(i))}return[n,r,o]}/*!
|
|
6
6
|
* vue-router v4.6.4
|
|
7
7
|
* (c) 2025 Eduardo San Martin Morote
|
|
8
8
|
* @license MIT
|
|
9
|
-
*/let Zt=()=>location.protocol+"//"+location.host;function at(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let h=o.includes(e.slice(u))?e.slice(u).length:1,d=o.slice(h);return d[0]!=="/"&&(d="/"+d),Te(d,"")}return Te(n,e)+r+o}function $t(e,t,n,r){let o=[],u=[],h=null;const d=({state:c})=>{const f=at(e,location),O=n.value,C=t.value;let _=0;if(c){if(n.value=f,t.value=c,h&&h===O){h=null;return}_=C?c.position-C.position:0}else r(f);o.forEach(I=>{I(n.value,O,{delta:_,type:se.pop,direction:_?_>0?te.forward:te.back:te.unknown})})};function i(){h=n.value}function l(c){o.push(c);const f=()=>{const O=o.indexOf(c);O>-1&&o.splice(O,1)};return u.push(f),f}function p(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(N({},c.state,{scroll:ie()}),"")}}function a(){for(const c of u)c();u=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",p),document.removeEventListener("visibilitychange",p)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",p),document.addEventListener("visibilitychange",p),{pauseListeners:i,listen:l,destroy:a}}function ke(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ie():null}}function en(e){const{history:t,location:n}=window,r={value:at(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(i,l,p){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:Zt()+e+i;try{t[p?"replaceState":"pushState"](l,"",c),o.value=l}catch(f){console.error(f),n[p?"replace":"assign"](c)}}function h(i,l){u(i,N({},t.state,ke(o.value.back,i,o.value.forward,!0),l,{position:o.value.position}),!0),r.value=i}function d(i,l){const p=N({},o.value,t.state,{forward:i,scroll:ie()});u(p.current,p,!0),u(i,N({},ke(r.value,i,null),{position:p.position+1},l),!1),r.value=i}return{location:r,state:o,push:d,replace:h}}function tn(e){e=nt(e);const t=en(e),n=$t(e,t.state,t.location,t.replace);function r(u,h=!0){h||n.pauseListeners(),history.go(u)}const o=N({location:"",base:e,go:r,createHref:rt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Sn(e=""){let t=[],n=[[Re,{}]],r=0;e=nt(e);function o(d,i={}){r++,r!==n.length&&n.splice(r),n.push([d,i])}function u(d,i,{direction:l,delta:p}){const a={direction:l,delta:p,type:se.pop};for(const c of t)c(d,i,a)}const h={location:Re,state:{},base:e,createHref:rt.bind(null,e),replace(d,i){n.splice(r--,1),o(d,i)},push(d,i){o(d,i)},listen(d){return t.push(d),()=>{const i=t.indexOf(d);i>-1&&t.splice(i,1)}},destroy(){t=[],n=[[Re,{}]],r=0},go(d,i=!0){const l=this.location,p=d<0?te.back:te.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&u(this.location,l,{direction:p,delta:d})}};return Object.defineProperty(h,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(h,"state",{enumerable:!0,get:()=>n[r][1]}),h}function bn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tn(e)}let K=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var T=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(T||{});const nn={type:K.Static,value:""},rn=/[a-zA-Z0-9_]/;function on(e){if(!e)return[[]];if(e==="/")return[[nn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=T.Static,r=n;const o=[];let u;function h(){u&&o.push(u),u=[]}let d=0,i,l="",p="";function a(){l&&(n===T.Static?u.push({type:K.Static,value:l}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),u.push({type:K.Param,value:l,regexp:p,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==T.ParamRegExp){r=n,n=T.EscapeNext;continue}switch(n){case T.Static:i==="/"?(l&&a(),h()):i===":"?(a(),n=T.Param):c();break;case T.EscapeNext:c(),n=r;break;case T.Param:i==="("?n=T.ParamRegExp:rn.test(i)?c():(a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--);break;case T.ParamRegExp:i===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+i:n=T.ParamRegExpEnd:p+=i;break;case T.ParamRegExpEnd:a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--,p="";break;default:t("Unknown state");break}}return n===T.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),a(),h(),o}const Be="[^/]+?",sn={sensitive:!1,strict:!1,start:!0,end:!0};var x=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(x||{});const an=/[.+*?^${}()[\]/\\]/g;function cn(e,t){const n=N({},sn,t),r=[];let o=n.start?"^":"";const u=[];for(const l of e){const p=l.length?[]:[x.Root];n.strict&&!l.length&&(o+="/");for(let a=0;a<l.length;a++){const c=l[a];let f=x.Segment+(n.sensitive?x.BonusCaseSensitive:0);if(c.type===K.Static)a||(o+="/"),o+=c.value.replace(an,"\\$&"),f+=x.Static;else if(c.type===K.Param){const{value:O,repeatable:C,optional:_,regexp:I}=c;u.push({name:O,repeatable:C,optional:_});const y=I||Be;if(y!==Be){f+=x.BonusCustomRegExp;try{`${y}`}catch(L){throw new Error(`Invalid custom RegExp for param "${O}" (${y}): `+L.message)}}let P=C?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;a||(P=_&&l.length<2?`(?:/${P})`:"/"+P),_&&(P+="?"),o+=P,f+=x.Dynamic,_&&(f+=x.BonusOptional),C&&(f+=x.BonusRepeatable),y===".*"&&(f+=x.BonusWildcard)}p.push(f)}r.push(p)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=x.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const h=new RegExp(o,n.sensitive?"":"i");function d(l){const p=l.match(h),a={};if(!p)return null;for(let c=1;c<p.length;c++){const f=p[c]||"",O=u[c-1];a[O.name]=f&&O.repeatable?f.split("/"):f}return a}function i(l){let p="",a=!1;for(const c of e){(!a||!p.endsWith("/"))&&(p+="/"),a=!1;for(const f of c)if(f.type===K.Static)p+=f.value;else if(f.type===K.Param){const{value:O,repeatable:C,optional:_}=f,I=O in l?l[O]:"";if(k(I)&&!C)throw new Error(`Provided param "${O}" is an array but it is not repeatable (* or + modifiers)`);const y=k(I)?I.join("/"):I;if(!y)if(_)c.length<2&&(p.endsWith("/")?p=p.slice(0,-1):a=!0);else throw new Error(`Missing required param "${O}"`);p+=y}}return p||"/"}return{re:h,score:r,keys:u,parse:d,stringify:i}}function un(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===x.Static+x.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===x.Static+x.Segment?1:-1:0}function ct(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=un(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Ve(r))return 1;if(Ve(o))return-1}return o.length-r.length}function Ve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ln={strict:!1,end:!0,sensitive:!1};function fn(e,t,n){const r=cn(on(e.path),n),o=N(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function hn(e,t){const n=[],r=new Map;t=be(ln,t);function o(a){return r.get(a)}function u(a,c,f){const O=!f,C=Ue(a);C.aliasOf=f&&f.record;const _=be(t,a),I=[C];if("alias"in a){const L=typeof a.alias=="string"?[a.alias]:a.alias;for(const q of L)I.push(Ue(N({},C,{components:f?f.record.components:C.components,path:q,aliasOf:f?f.record:C})))}let y,P;for(const L of I){const{path:q}=L;if(c&&q[0]!=="/"){const U=c.record.path,G=U[U.length-1]==="/"?"":"/";L.path=c.record.path+(q&&G+q)}if(y=fn(L,c,_),f?f.alias.push(y):(P=P||y,P!==y&&P.alias.push(y),O&&a.name&&!He(y)&&h(a.name)),ut(y)&&i(y),C.children){const U=C.children;for(let G=0;G<U.length;G++)u(U[G],y,f&&f.children[G])}f=f||y}return P?()=>{h(P)}:ee}function h(a){if(ot(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(h),a.alias.forEach(h))}}function d(){return n}function i(a){const c=mn(a,n);n.splice(c,0,a),a.record.name&&!He(a)&&r.set(a.record.name,a)}function l(a,c){let f,O={},C,_;if("name"in a&&a.name){if(f=r.get(a.name),!f)throw z(w.MATCHER_NOT_FOUND,{location:a});_=f.record.name,O=N(Me(c.params,f.keys.filter(P=>!P.optional).concat(f.parent?f.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),a.params&&Me(a.params,f.keys.map(P=>P.name))),C=f.stringify(O)}else if(a.path!=null)C=a.path,f=n.find(P=>P.re.test(C)),f&&(O=f.parse(C),_=f.record.name);else{if(f=c.name?r.get(c.name):n.find(P=>P.re.test(c.path)),!f)throw z(w.MATCHER_NOT_FOUND,{location:a,currentLocation:c});_=f.record.name,O=N({},c.params,a.params),C=f.stringify(O)}const I=[];let y=f;for(;y;)I.unshift(y.record),y=y.parent;return{name:_,path:C,params:O,matched:I,meta:pn(I)}}e.forEach(a=>u(a));function p(){n.length=0,r.clear()}return{addRoute:u,resolve:l,removeRoute:h,clearRoutes:p,getRoutes:d,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ue(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function dn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function He(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pn(e){return e.reduce((t,n)=>N(t,n.meta),{})}function mn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;ct(e,t[u])<0?r=u:n=u+1}const o=gn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function gn(e){let t=e;for(;t=t.parent;)if(ut(t)&&ct(e,t)===0)return t}function ut({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function je(e){const t=M(ae),n=M(Ce),r=B(()=>{const i=$(e.to);return t.resolve(i)}),o=B(()=>{const{matched:i}=r.value,{length:l}=i,p=i[l-1],a=n.matched;if(!p||!a.length)return-1;const c=a.findIndex(Q.bind(null,p));if(c>-1)return c;const f=qe(i[l-2]);return l>1&&qe(p)===f&&a[a.length-1].path!==f?a.findIndex(Q.bind(null,i[l-2])):c}),u=B(()=>o.value>-1&&yn(n.params,r.value.params)),h=B(()=>o.value>-1&&o.value===n.matched.length-1&&tt(n.params,r.value.params));function d(i={}){if(An(i)){const l=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ee);return e.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:u,isExactActive:h,navigate:d}}function Rn(e){return e.length===1?e[0]:e}const vn=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:je,setup(e,{slots:t}){const n=Et(je(e)),{options:r}=M(ae),o=B(()=>({[Ke(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ke(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&Rn(t.default(n));return e.custom?u:Qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),En=vn;function An(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function yn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!k(o)||o.length!==r.length||r.some((u,h)=>u.valueOf()!==o[h].valueOf()))return!1}return!0}function qe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ke=(e,t,n)=>e!=null?e:t!=null?t:n,On=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=M(ye),o=B(()=>e.route||r.value),u=M(Le,0),h=B(()=>{let l=$(u);const{matched:p}=o.value;let a;for(;(a=p[l])&&!a.components;)l++;return l}),d=B(()=>o.value.matched[h.value]);pe(Le,B(()=>h.value+1)),pe(Ne,d),pe(ye,o);const i=yt();return At(()=>[i.value,d.value,e.name],([l,p,a],[c,f,O])=>{p&&(p.instances[a]=l,f&&f!==p&&l&&l===c&&(p.leaveGuards.size||(p.leaveGuards=f.leaveGuards),p.updateGuards.size||(p.updateGuards=f.updateGuards))),l&&p&&(!f||!Q(p,f)||!c)&&(p.enterCallbacks[a]||[]).forEach(C=>C(l))},{flush:"post"}),()=>{const l=o.value,p=e.name,a=d.value,c=a&&a.components[p];if(!c)return We(n.default,{Component:c,route:l});const f=a.props[p],O=f?f===!0?l.params:typeof f=="function"?f(l):f:null,_=Qe(c,N({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(a.instances[p]=null)},ref:i}));return We(n.default,{Component:_,route:l})||_}}});function We(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Nn=On;function Tn(e){const t=hn(e.routes,e),n=e.parseQuery||Xt,r=e.stringifyQuery||Ge,o=e.history,u=Z(),h=Z(),d=Z(),i=Rt(H);let l=H;F&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=me.bind(null,s=>""+s),a=me.bind(null,Gt),c=me.bind(null,ne);function f(s,g){let m,R;return ot(s)?(m=t.getRecordMatcher(s),R=g):R=s,t.addRoute(R,m)}function O(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function C(){return t.getRoutes().map(s=>s.record)}function _(s){return!!t.getRecordMatcher(s)}function I(s,g){if(g=N({},g||i.value),typeof s=="string"){const v=ge(n,s,g.path),b=t.resolve({path:v.path},g),J=o.createHref(v.fullPath);return N(v,b,{params:c(b.params),hash:ne(v.hash),redirectedFrom:void 0,href:J})}let m;if(s.path!=null)m=N({},s,{path:ge(n,s.path,g.path).path});else{const v=N({},s.params);for(const b in v)v[b]==null&&delete v[b];m=N({},s,{params:a(v)}),g.params=a(g.params)}const R=t.resolve(m,g),A=s.hash||"";R.params=p(c(R.params));const S=Bt(r,N({},s,{hash:Tt(A),path:R.path})),E=o.createHref(S);return N({fullPath:S,hash:A,query:r===Ge?Yt(s.query):s.query||{}},R,{redirectedFrom:void 0,href:E})}function y(s){return typeof s=="string"?ge(n,s,i.value.path):N({},s)}function P(s,g){if(l!==s)return z(w.NAVIGATION_CANCELLED,{from:g,to:s})}function L(s){return G(s)}function q(s){return L(N(y(s),{replace:!0}))}function U(s,g){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:R}=m;let A=typeof R=="function"?R(s,g):R;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=y(A):{path:A},A.params={}),N({query:s.query,hash:s.hash,params:A.path!=null?{}:s.params},A)}}function G(s,g){const m=l=I(s),R=i.value,A=s.state,S=s.force,E=s.replace===!0,v=U(m,R);if(v)return G(N(y(v),{state:typeof v=="object"?N({},A,v.state):A,force:S,replace:E}),g||m);const b=m;b.redirectedFrom=g;let J;return!S&&Vt(r,R,m)&&(J=z(w.NAVIGATION_DUPLICATED,{to:b,from:R}),Se(R,R,!0,!1)),(J?Promise.resolve(J):Pe(b,R)).catch(D=>V(D)?V(D,w.NAVIGATION_GUARD_REDIRECT)?D:fe(D):le(D,b,R)).then(D=>{if(D){if(V(D,w.NAVIGATION_GUARD_REDIRECT))return G(N({replace:E},y(D.to),{state:typeof D.to=="object"?N({},A,D.to.state):A,force:S}),g||b)}else D=Ie(b,R,!0,E,A);return _e(b,R,D),D})}function lt(s,g){const m=P(s,g);return m?Promise.reject(m):Promise.resolve()}function ce(s){const g=oe.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function Pe(s,g){let m;const[R,A,S]=Jt(s,g);m=ve(R.reverse(),"beforeRouteLeave",s,g);for(const v of R)v.leaveGuards.forEach(b=>{m.push(j(b,s,g))});const E=lt.bind(null,s,g);return m.push(E),W(m).then(()=>{m=[];for(const v of u.list())m.push(j(v,s,g));return m.push(E),W(m)}).then(()=>{m=ve(A,"beforeRouteUpdate",s,g);for(const v of A)v.updateGuards.forEach(b=>{m.push(j(b,s,g))});return m.push(E),W(m)}).then(()=>{m=[];for(const v of S)if(v.beforeEnter)if(k(v.beforeEnter))for(const b of v.beforeEnter)m.push(j(b,s,g));else m.push(j(v.beforeEnter,s,g));return m.push(E),W(m)}).then(()=>(s.matched.forEach(v=>v.enterCallbacks={}),m=ve(S,"beforeRouteEnter",s,g,ce),m.push(E),W(m))).then(()=>{m=[];for(const v of h.list())m.push(j(v,s,g));return m.push(E),W(m)}).catch(v=>V(v,w.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function _e(s,g,m){d.list().forEach(R=>ce(()=>R(s,g,m)))}function Ie(s,g,m,R,A){const S=P(s,g);if(S)return S;const E=g===H,v=F?history.state:{};m&&(R||E?o.replace(s.fullPath,N({scroll:E&&v&&v.scroll},A)):o.push(s.fullPath,A)),i.value=s,Se(s,g,m,E),fe()}let X;function ft(){X||(X=o.listen((s,g,m)=>{if(!Y.listening)return;const R=I(s),A=U(R,Y.currentRoute.value);if(A){G(N(A,{replace:!0,force:!0}),R).catch(ee);return}l=R;const S=i.value;F&&Kt(De(S.fullPath,m.delta),ie()),Pe(R,S).catch(E=>V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_CANCELLED)?E:V(E,w.NAVIGATION_GUARD_REDIRECT)?(G(N(y(E.to),{force:!0}),R).then(v=>{V(v,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&!m.delta&&m.type===se.pop&&o.go(-1,!1)}).catch(ee),Promise.reject()):(m.delta&&o.go(-m.delta,!1),le(E,R,S))).then(E=>{E=E||Ie(R,S,!1),E&&(m.delta&&!V(E,w.NAVIGATION_CANCELLED)?o.go(-m.delta,!1):m.type===se.pop&&V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),_e(R,S,E)}).catch(ee)}))}let ue=Z(),we=Z(),re;function le(s,g,m){fe(s);const R=we.list();return R.length?R.forEach(A=>A(s,g,m)):console.error(s),Promise.reject(s)}function ht(){return re&&i.value!==H?Promise.resolve():new Promise((s,g)=>{ue.add([s,g])})}function fe(s){return re||(re=!s,ft(),ue.list().forEach(([g,m])=>s?m(s):g()),ue.reset()),s}function Se(s,g,m,R){const{scrollBehavior:A}=e;if(!F||!A)return Promise.resolve();const S=!m&&Wt(De(s.fullPath,0))||(R||!m)&&history.state&&history.state.scroll||null;return vt().then(()=>A(s,g,S)).then(E=>E&&qt(E)).catch(E=>le(E,s,g))}const he=s=>o.go(s);let de;const oe=new Set,Y={currentRoute:i,listening:!0,addRoute:f,removeRoute:O,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:C,resolve:I,options:e,push:L,replace:q,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:u.add,beforeResolve:h.add,afterEach:d.add,onError:we.add,isReady:ht,install(s){s.component("RouterLink",En),s.component("RouterView",Nn),s.config.globalProperties.$router=Y,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>$(i)}),F&&!de&&i.value===H&&(de=!0,L(o.location).catch(R=>{}));const g={};for(const R in H)Object.defineProperty(g,R,{get:()=>i.value[R],enumerable:!0});s.provide(ae,Y),s.provide(Ce,gt(g)),s.provide(ye,i);const m=s.unmount;oe.add(s),s.unmount=function(){oe.delete(s),oe.size<1&&(l=H,X&&X(),X=null,i.value=H,de=!1,re=!1),m()}}};function W(s){return s.reduce((g,m)=>g.then(()=>ce(m)),Promise.resolve())}return Y}function xn(){return M(ae)}function Dn(e){return M(Ce)}export{Pn as NavigationFailureType,En as RouterLink,Nn as RouterView,H as START_LOCATION,Sn as createMemoryHistory,Tn as createRouter,hn as createRouterMatcher,bn as createWebHashHistory,tn as createWebHistory,V as isNavigationFailure,wn as loadRouteLocation,Ne as matchedRouteKey,_n as onBeforeRouteLeave,In as onBeforeRouteUpdate,Xt as parseQuery,Ce as routeLocationKey,ae as routerKey,ye as routerViewLocationKey,Ge as stringifyQuery,je as useLink,Dn as useRoute,xn as useRouter,Le as viewDepthKey};
|
|
9
|
+
*/let Zt=()=>location.protocol+"//"+location.host;function at(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let h=o.includes(e.slice(u))?e.slice(u).length:1,d=o.slice(h);return d[0]!=="/"&&(d="/"+d),Te(d,"")}return Te(n,e)+r+o}function $t(e,t,n,r){let o=[],u=[],h=null;const d=({state:c})=>{const f=at(e,location),O=n.value,C=t.value;let P=0;if(c){if(n.value=f,t.value=c,h&&h===O){h=null;return}P=C?c.position-C.position:0}else r(f);o.forEach(I=>{I(n.value,O,{delta:P,type:se.pop,direction:P?P>0?te.forward:te.back:te.unknown})})};function i(){h=n.value}function l(c){o.push(c);const f=()=>{const O=o.indexOf(c);O>-1&&o.splice(O,1)};return u.push(f),f}function p(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(N({},c.state,{scroll:ie()}),"")}}function a(){for(const c of u)c();u=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",p),document.removeEventListener("visibilitychange",p)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",p),document.addEventListener("visibilitychange",p),{pauseListeners:i,listen:l,destroy:a}}function ke(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ie():null}}function en(e){const{history:t,location:n}=window,r={value:at(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(i,l,p){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:Zt()+e+i;try{t[p?"replaceState":"pushState"](l,"",c),o.value=l}catch(f){console.error(f),n[p?"replace":"assign"](c)}}function h(i,l){u(i,N({},t.state,ke(o.value.back,i,o.value.forward,!0),l,{position:o.value.position}),!0),r.value=i}function d(i,l){const p=N({},o.value,t.state,{forward:i,scroll:ie()});u(p.current,p,!0),u(i,N({},ke(r.value,i,null),{position:p.position+1},l),!1),r.value=i}return{location:r,state:o,push:d,replace:h}}function tn(e){e=nt(e);const t=en(e),n=$t(e,t.state,t.location,t.replace);function r(u,h=!0){h||n.pauseListeners(),history.go(u)}const o=N({location:"",base:e,go:r,createHref:rt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Sn(e=""){let t=[],n=[[Re,{}]],r=0;e=nt(e);function o(d,i={}){r++,r!==n.length&&n.splice(r),n.push([d,i])}function u(d,i,{direction:l,delta:p}){const a={direction:l,delta:p,type:se.pop};for(const c of t)c(d,i,a)}const h={location:Re,state:{},base:e,createHref:rt.bind(null,e),replace(d,i){n.splice(r--,1),o(d,i)},push(d,i){o(d,i)},listen(d){return t.push(d),()=>{const i=t.indexOf(d);i>-1&&t.splice(i,1)}},destroy(){t=[],n=[[Re,{}]],r=0},go(d,i=!0){const l=this.location,p=d<0?te.back:te.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&u(this.location,l,{direction:p,delta:d})}};return Object.defineProperty(h,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(h,"state",{enumerable:!0,get:()=>n[r][1]}),h}function bn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tn(e)}let K=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var T=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(T||{});const nn={type:K.Static,value:""},rn=/[a-zA-Z0-9_]/;function on(e){if(!e)return[[]];if(e==="/")return[[nn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=T.Static,r=n;const o=[];let u;function h(){u&&o.push(u),u=[]}let d=0,i,l="",p="";function a(){l&&(n===T.Static?u.push({type:K.Static,value:l}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),u.push({type:K.Param,value:l,regexp:p,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==T.ParamRegExp){r=n,n=T.EscapeNext;continue}switch(n){case T.Static:i==="/"?(l&&a(),h()):i===":"?(a(),n=T.Param):c();break;case T.EscapeNext:c(),n=r;break;case T.Param:i==="("?n=T.ParamRegExp:rn.test(i)?c():(a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--);break;case T.ParamRegExp:i===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+i:n=T.ParamRegExpEnd:p+=i;break;case T.ParamRegExpEnd:a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--,p="";break;default:t("Unknown state");break}}return n===T.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),a(),h(),o}const Be="[^/]+?",sn={sensitive:!1,strict:!1,start:!0,end:!0};var x=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(x||{});const an=/[.+*?^${}()[\]/\\]/g;function cn(e,t){const n=N({},sn,t),r=[];let o=n.start?"^":"";const u=[];for(const l of e){const p=l.length?[]:[x.Root];n.strict&&!l.length&&(o+="/");for(let a=0;a<l.length;a++){const c=l[a];let f=x.Segment+(n.sensitive?x.BonusCaseSensitive:0);if(c.type===K.Static)a||(o+="/"),o+=c.value.replace(an,"\\$&"),f+=x.Static;else if(c.type===K.Param){const{value:O,repeatable:C,optional:P,regexp:I}=c;u.push({name:O,repeatable:C,optional:P});const y=I||Be;if(y!==Be){f+=x.BonusCustomRegExp;try{`${y}`}catch(L){throw new Error(`Invalid custom RegExp for param "${O}" (${y}): `+L.message)}}let _=C?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;a||(_=P&&l.length<2?`(?:/${_})`:"/"+_),P&&(_+="?"),o+=_,f+=x.Dynamic,P&&(f+=x.BonusOptional),C&&(f+=x.BonusRepeatable),y===".*"&&(f+=x.BonusWildcard)}p.push(f)}r.push(p)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=x.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const h=new RegExp(o,n.sensitive?"":"i");function d(l){const p=l.match(h),a={};if(!p)return null;for(let c=1;c<p.length;c++){const f=p[c]||"",O=u[c-1];a[O.name]=f&&O.repeatable?f.split("/"):f}return a}function i(l){let p="",a=!1;for(const c of e){(!a||!p.endsWith("/"))&&(p+="/"),a=!1;for(const f of c)if(f.type===K.Static)p+=f.value;else if(f.type===K.Param){const{value:O,repeatable:C,optional:P}=f,I=O in l?l[O]:"";if(k(I)&&!C)throw new Error(`Provided param "${O}" is an array but it is not repeatable (* or + modifiers)`);const y=k(I)?I.join("/"):I;if(!y)if(P)c.length<2&&(p.endsWith("/")?p=p.slice(0,-1):a=!0);else throw new Error(`Missing required param "${O}"`);p+=y}}return p||"/"}return{re:h,score:r,keys:u,parse:d,stringify:i}}function un(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===x.Static+x.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===x.Static+x.Segment?1:-1:0}function ct(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=un(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Ve(r))return 1;if(Ve(o))return-1}return o.length-r.length}function Ve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ln={strict:!1,end:!0,sensitive:!1};function fn(e,t,n){const r=cn(on(e.path),n),o=N(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function hn(e,t){const n=[],r=new Map;t=be(ln,t);function o(a){return r.get(a)}function u(a,c,f){const O=!f,C=Ue(a);C.aliasOf=f&&f.record;const P=be(t,a),I=[C];if("alias"in a){const L=typeof a.alias=="string"?[a.alias]:a.alias;for(const q of L)I.push(Ue(N({},C,{components:f?f.record.components:C.components,path:q,aliasOf:f?f.record:C})))}let y,_;for(const L of I){const{path:q}=L;if(c&&q[0]!=="/"){const U=c.record.path,G=U[U.length-1]==="/"?"":"/";L.path=c.record.path+(q&&G+q)}if(y=fn(L,c,P),f?f.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),O&&a.name&&!He(y)&&h(a.name)),ut(y)&&i(y),C.children){const U=C.children;for(let G=0;G<U.length;G++)u(U[G],y,f&&f.children[G])}f=f||y}return _?()=>{h(_)}:ee}function h(a){if(ot(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(h),a.alias.forEach(h))}}function d(){return n}function i(a){const c=mn(a,n);n.splice(c,0,a),a.record.name&&!He(a)&&r.set(a.record.name,a)}function l(a,c){let f,O={},C,P;if("name"in a&&a.name){if(f=r.get(a.name),!f)throw z(w.MATCHER_NOT_FOUND,{location:a});P=f.record.name,O=N(Me(c.params,f.keys.filter(_=>!_.optional).concat(f.parent?f.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),a.params&&Me(a.params,f.keys.map(_=>_.name))),C=f.stringify(O)}else if(a.path!=null)C=a.path,f=n.find(_=>_.re.test(C)),f&&(O=f.parse(C),P=f.record.name);else{if(f=c.name?r.get(c.name):n.find(_=>_.re.test(c.path)),!f)throw z(w.MATCHER_NOT_FOUND,{location:a,currentLocation:c});P=f.record.name,O=N({},c.params,a.params),C=f.stringify(O)}const I=[];let y=f;for(;y;)I.unshift(y.record),y=y.parent;return{name:P,path:C,params:O,matched:I,meta:pn(I)}}e.forEach(a=>u(a));function p(){n.length=0,r.clear()}return{addRoute:u,resolve:l,removeRoute:h,clearRoutes:p,getRoutes:d,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ue(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function dn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function He(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pn(e){return e.reduce((t,n)=>N(t,n.meta),{})}function mn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;ct(e,t[u])<0?r=u:n=u+1}const o=gn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function gn(e){let t=e;for(;t=t.parent;)if(ut(t)&&ct(e,t)===0)return t}function ut({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function je(e){const t=M(ae),n=M(Ce),r=B(()=>{const i=$(e.to);return t.resolve(i)}),o=B(()=>{const{matched:i}=r.value,{length:l}=i,p=i[l-1],a=n.matched;if(!p||!a.length)return-1;const c=a.findIndex(Q.bind(null,p));if(c>-1)return c;const f=qe(i[l-2]);return l>1&&qe(p)===f&&a[a.length-1].path!==f?a.findIndex(Q.bind(null,i[l-2])):c}),u=B(()=>o.value>-1&&yn(n.params,r.value.params)),h=B(()=>o.value>-1&&o.value===n.matched.length-1&&tt(n.params,r.value.params));function d(i={}){if(An(i)){const l=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ee);return e.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:u,isExactActive:h,navigate:d}}function Rn(e){return e.length===1?e[0]:e}const vn=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:je,setup(e,{slots:t}){const n=Et(je(e)),{options:r}=M(ae),o=B(()=>({[Ke(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ke(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&Rn(t.default(n));return e.custom?u:Qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),En=vn;function An(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function yn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!k(o)||o.length!==r.length||r.some((u,h)=>u.valueOf()!==o[h].valueOf()))return!1}return!0}function qe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ke=(e,t,n)=>e!=null?e:t!=null?t:n,On=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=M(ye),o=B(()=>e.route||r.value),u=M(Le,0),h=B(()=>{let l=$(u);const{matched:p}=o.value;let a;for(;(a=p[l])&&!a.components;)l++;return l}),d=B(()=>o.value.matched[h.value]);pe(Le,B(()=>h.value+1)),pe(Ne,d),pe(ye,o);const i=yt();return At(()=>[i.value,d.value,e.name],([l,p,a],[c,f,O])=>{p&&(p.instances[a]=l,f&&f!==p&&l&&l===c&&(p.leaveGuards.size||(p.leaveGuards=f.leaveGuards),p.updateGuards.size||(p.updateGuards=f.updateGuards))),l&&p&&(!f||!Q(p,f)||!c)&&(p.enterCallbacks[a]||[]).forEach(C=>C(l))},{flush:"post"}),()=>{const l=o.value,p=e.name,a=d.value,c=a&&a.components[p];if(!c)return We(n.default,{Component:c,route:l});const f=a.props[p],O=f?f===!0?l.params:typeof f=="function"?f(l):f:null,P=Qe(c,N({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(a.instances[p]=null)},ref:i}));return We(n.default,{Component:P,route:l})||P}}});function We(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Nn=On;function Tn(e){const t=hn(e.routes,e),n=e.parseQuery||Yt,r=e.stringifyQuery||Ge,o=e.history,u=Z(),h=Z(),d=Z(),i=Rt(H);let l=H;F&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=me.bind(null,s=>""+s),a=me.bind(null,Gt),c=me.bind(null,ne);function f(s,g){let m,R;return ot(s)?(m=t.getRecordMatcher(s),R=g):R=s,t.addRoute(R,m)}function O(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function C(){return t.getRoutes().map(s=>s.record)}function P(s){return!!t.getRecordMatcher(s)}function I(s,g){if(g=N({},g||i.value),typeof s=="string"){const v=ge(n,s,g.path),b=t.resolve({path:v.path},g),X=o.createHref(v.fullPath);return N(v,b,{params:c(b.params),hash:ne(v.hash),redirectedFrom:void 0,href:X})}let m;if(s.path!=null)m=N({},s,{path:ge(n,s.path,g.path).path});else{const v=N({},s.params);for(const b in v)v[b]==null&&delete v[b];m=N({},s,{params:a(v)}),g.params=a(g.params)}const R=t.resolve(m,g),A=s.hash||"";R.params=p(c(R.params));const S=Bt(r,N({},s,{hash:Tt(A),path:R.path})),E=o.createHref(S);return N({fullPath:S,hash:A,query:r===Ge?Jt(s.query):s.query||{}},R,{redirectedFrom:void 0,href:E})}function y(s){return typeof s=="string"?ge(n,s,i.value.path):N({},s)}function _(s,g){if(l!==s)return z(w.NAVIGATION_CANCELLED,{from:g,to:s})}function L(s){return G(s)}function q(s){return L(N(y(s),{replace:!0}))}function U(s,g){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:R}=m;let A=typeof R=="function"?R(s,g):R;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=y(A):{path:A},A.params={}),N({query:s.query,hash:s.hash,params:A.path!=null?{}:s.params},A)}}function G(s,g){const m=l=I(s),R=i.value,A=s.state,S=s.force,E=s.replace===!0,v=U(m,R);if(v)return G(N(y(v),{state:typeof v=="object"?N({},A,v.state):A,force:S,replace:E}),g||m);const b=m;b.redirectedFrom=g;let X;return!S&&Vt(r,R,m)&&(X=z(w.NAVIGATION_DUPLICATED,{to:b,from:R}),Se(R,R,!0,!1)),(X?Promise.resolve(X):_e(b,R)).catch(D=>V(D)?V(D,w.NAVIGATION_GUARD_REDIRECT)?D:fe(D):le(D,b,R)).then(D=>{if(D){if(V(D,w.NAVIGATION_GUARD_REDIRECT))return G(N({replace:E},y(D.to),{state:typeof D.to=="object"?N({},A,D.to.state):A,force:S}),g||b)}else D=Ie(b,R,!0,E,A);return Pe(b,R,D),D})}function lt(s,g){const m=_(s,g);return m?Promise.reject(m):Promise.resolve()}function ce(s){const g=oe.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function _e(s,g){let m;const[R,A,S]=Xt(s,g);m=ve(R.reverse(),"beforeRouteLeave",s,g);for(const v of R)v.leaveGuards.forEach(b=>{m.push(j(b,s,g))});const E=lt.bind(null,s,g);return m.push(E),W(m).then(()=>{m=[];for(const v of u.list())m.push(j(v,s,g));return m.push(E),W(m)}).then(()=>{m=ve(A,"beforeRouteUpdate",s,g);for(const v of A)v.updateGuards.forEach(b=>{m.push(j(b,s,g))});return m.push(E),W(m)}).then(()=>{m=[];for(const v of S)if(v.beforeEnter)if(k(v.beforeEnter))for(const b of v.beforeEnter)m.push(j(b,s,g));else m.push(j(v.beforeEnter,s,g));return m.push(E),W(m)}).then(()=>(s.matched.forEach(v=>v.enterCallbacks={}),m=ve(S,"beforeRouteEnter",s,g,ce),m.push(E),W(m))).then(()=>{m=[];for(const v of h.list())m.push(j(v,s,g));return m.push(E),W(m)}).catch(v=>V(v,w.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function Pe(s,g,m){d.list().forEach(R=>ce(()=>R(s,g,m)))}function Ie(s,g,m,R,A){const S=_(s,g);if(S)return S;const E=g===H,v=F?history.state:{};m&&(R||E?o.replace(s.fullPath,N({scroll:E&&v&&v.scroll},A)):o.push(s.fullPath,A)),i.value=s,Se(s,g,m,E),fe()}let Y;function ft(){Y||(Y=o.listen((s,g,m)=>{if(!J.listening)return;const R=I(s),A=U(R,J.currentRoute.value);if(A){G(N(A,{replace:!0,force:!0}),R).catch(ee);return}l=R;const S=i.value;F&&Kt(De(S.fullPath,m.delta),ie()),_e(R,S).catch(E=>V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_CANCELLED)?E:V(E,w.NAVIGATION_GUARD_REDIRECT)?(G(N(y(E.to),{force:!0}),R).then(v=>{V(v,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&!m.delta&&m.type===se.pop&&o.go(-1,!1)}).catch(ee),Promise.reject()):(m.delta&&o.go(-m.delta,!1),le(E,R,S))).then(E=>{E=E||Ie(R,S,!1),E&&(m.delta&&!V(E,w.NAVIGATION_CANCELLED)?o.go(-m.delta,!1):m.type===se.pop&&V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Pe(R,S,E)}).catch(ee)}))}let ue=Z(),we=Z(),re;function le(s,g,m){fe(s);const R=we.list();return R.length?R.forEach(A=>A(s,g,m)):console.error(s),Promise.reject(s)}function ht(){return re&&i.value!==H?Promise.resolve():new Promise((s,g)=>{ue.add([s,g])})}function fe(s){return re||(re=!s,ft(),ue.list().forEach(([g,m])=>s?m(s):g()),ue.reset()),s}function Se(s,g,m,R){const{scrollBehavior:A}=e;if(!F||!A)return Promise.resolve();const S=!m&&Wt(De(s.fullPath,0))||(R||!m)&&history.state&&history.state.scroll||null;return vt().then(()=>A(s,g,S)).then(E=>E&&qt(E)).catch(E=>le(E,s,g))}const he=s=>o.go(s);let de;const oe=new Set,J={currentRoute:i,listening:!0,addRoute:f,removeRoute:O,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:C,resolve:I,options:e,push:L,replace:q,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:u.add,beforeResolve:h.add,afterEach:d.add,onError:we.add,isReady:ht,install(s){s.component("RouterLink",En),s.component("RouterView",Nn),s.config.globalProperties.$router=J,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>$(i)}),F&&!de&&i.value===H&&(de=!0,L(o.location).catch(R=>{}));const g={};for(const R in H)Object.defineProperty(g,R,{get:()=>i.value[R],enumerable:!0});s.provide(ae,J),s.provide(Ce,gt(g)),s.provide(ye,i);const m=s.unmount;oe.add(s),s.unmount=function(){oe.delete(s),oe.size<1&&(l=H,Y&&Y(),Y=null,i.value=H,de=!1,re=!1),m()}}};function W(s){return s.reduce((g,m)=>g.then(()=>ce(m)),Promise.resolve())}return J}function xn(){return M(ae)}function Dn(e){return M(Ce)}export{_n as NavigationFailureType,En as RouterLink,Nn as RouterView,H as START_LOCATION,Sn as createMemoryHistory,Tn as createRouter,hn as createRouterMatcher,bn as createWebHashHistory,tn as createWebHistory,V as isNavigationFailure,wn as loadRouteLocation,Ne as matchedRouteKey,Pn as onBeforeRouteLeave,In as onBeforeRouteUpdate,Yt as parseQuery,Ce as routeLocationKey,ae as routerKey,ye as routerViewLocationKey,Ge as stringifyQuery,je as useLink,Dn as useRoute,xn as useRouter,Le as viewDepthKey};
|