r3ui-lib 1.3.2 → 1.3.4
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/CHANGELOG.md +6 -0
- package/dist/r3ui-lib.es.js +138 -138
- package/dist/r3ui-lib.umd.js +1 -1
- package/dist/types/components/DefaultButton.vue.d.ts.map +1 -1
- package/nuxt-errors/nuxt.config.ts +1 -1
- package/package.json +3 -1
- package/useBreadcrumbs.ts +33 -0
package/dist/r3ui-lib.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(W,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(W=typeof globalThis<"u"?globalThis:W||self,a(W.R3uiLib={},W.Vue))})(this,(function(W,a){"use strict";const In={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["spinner-border",{"spinner-border-sm":n.isSmall}]),role:"status"},null,2))}},Gr={__name:"Icon",props:{name:{type:String,required:!0}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("i",{class:a.normalizeClass(`bi bi-${n.name}`)},null,2))}},Hh=["aria-label"],zh={class:"d-inline-flex align-items-center justify-content-center"},jh={key:2},Bi={__name:"DefaultButton",props:{label:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator(n){return["right","left"].includes(n)}},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1},customClasses:{type:Array,default:()=>[]},ariaLabel:{type:String,default:""},styles:{type:String,default:"primary",validator(n){return["primary","light","secondary","success","danger","warning","info"].includes(n)}}},emits:["submit"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>`btn-${t.styles}`);function s(){t.isLoading||t.isDisabled||i("submit")}return(o,l)=>(a.openBlock(),a.createElementBlock("button",{"data-test":"DefaultButton",class:a.normalizeClass(["btn",[n.isLoading||n.isDisabled?"disabled":"",n.isFullWidth?"w-100":"",n.styles?r.value:"",...n.customClasses]]),"aria-label":n.ariaLabel||void 0,onClick:a.withModifiers(s,["prevent"])},[a.createElementVNode("div",zh,[n.icon&&n.iconPosition==="left"?(a.openBlock(),a.createBlock(Gr,{key:0,name:n.icon,class:a.normalizeClass(n.label?"me-2":"")},null,8,["name","class"])):a.createCommentVNode("",!0),n.isLoading?(a.openBlock(),a.createBlock(In,{key:1,isSmall:!0,class:"pe-2"})):a.createCommentVNode("",!0),n.label?(a.openBlock(),a.createElementBlock("span",jh,a.toDisplayString(n.label),1)):a.createCommentVNode("",!0),n.icon&&n.iconPosition==="right"?(a.openBlock(),a.createBlock(Gr,{key:3,name:n.icon,class:a.normalizeClass(n.label?"ms-2":"")},null,8,["name","class"])):a.createCommentVNode("",!0)])],10,Hh))}},Wh=a.defineComponent({__name:"AddButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},iconClass:{default:"bi bi-plus-circle-fill pe-2"}},emits:["click"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("click")};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["d-flex add-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"AddButton",onClick:r},[a.createElementVNode("i",{class:a.normalizeClass(s.iconClass)},null,2),a.createTextVNode(" "+a.toDisplayString(s.label||s.text||"Добавить"),1)],2))}}),Ne=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},_l=Ne(Wh,[["__scopeId","data-v-cf07042b"]]),Uh={"data-test":"CollapseButton"},Gh=["id"],Yh=["id"],Qh=Ne(a.defineComponent({__name:"CollapseButton",props:{isCollapsed:{type:Boolean,default:!0},expandText:{default:"Развернуть все"},collapseText:{default:"Свернуть все"},expandId:{default:"expand-filters-btn"},collapseId:{default:"collapse-filters-btn"},buttonStyle:{default:"padding: 8px 24px; margin-bottom: 32px"},iconStyle:{default:"font-size: 10px"},expandLabel:{default:"Развернуть все"},collapseLabel:{default:"Свернуть все"},isColapsed:{type:Boolean}},emits:["emitCollapseToggle","emitColapsed","expand","collapse"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>t.isCollapsed),s=a.computed(()=>t.expandText),o=a.computed(()=>t.collapseText),l=()=>{i("emitCollapseToggle",!1),i("emitColapsed",!1),i("expand")},c=()=>{i("emitCollapseToggle",!0),i("emitColapsed",!0),i("collapse")};return(u,d)=>(a.openBlock(),a.createElementBlock("div",Uh,[r.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",id:u.expandId,class:"btn btn-light collapse-button",onClick:l,style:a.normalizeStyle(u.buttonStyle)},[a.createTextVNode(a.toDisplayString(s.value)+" ",1),a.createElementVNode("i",{class:"bi bi-caret-down-fill",style:a.normalizeStyle(u.iconStyle)},null,4)],12,Gh)):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",id:u.collapseId,class:"btn btn-light collapse-button",onClick:c,style:a.normalizeStyle(u.buttonStyle)},[a.createTextVNode(a.toDisplayString(o.value)+" ",1),a.createElementVNode("i",{class:"bi bi-caret-up-fill",style:a.normalizeStyle(u.iconStyle)},null,4)],12,Yh))]))}}),[["__scopeId","data-v-1a9468da"]]),Kh=Ne(a.defineComponent({__name:"ExportButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},exportType:{default:"default"}},emits:["export"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("export",t.exportType)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["col-auto export-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"ExportButton",onClick:r},[a.createTextVNode(a.toDisplayString(s.label||s.text||"Экспорт")+" ",1),o[0]||(o[0]=a.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],2))}}),[["__scopeId","data-v-20f08c06"]]),Jh=Ne(a.defineComponent({__name:"PrintButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1}},emits:["print"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||(window.print(),i("print"))};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["col-auto print-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"PrintButton",onClick:r},[a.createTextVNode(a.toDisplayString(s.label||s.text||"Печать")+" ",1),o[0]||(o[0]=a.createElementVNode("i",{class:"ps-2 bi bi-printer-fill"},null,-1))],2))}}),[["__scopeId","data-v-52020521"]]),qh=["disabled"],$h={class:"clear-form-button__label"},Zh=Ne(a.defineComponent({__name:"ClearFormButton",props:{label:{default:"Очистить"},disabled:{type:Boolean,default:!1}},emits:["clear"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("clear",!0)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["clear-form-button",{"clear-form-button--disabled":s.disabled}]),disabled:s.disabled,"data-test":"ClearFormButton",onClick:r},[o[0]||(o[0]=a.createElementVNode("div",{class:"clear-form-button__icon"},[a.createElementVNode("i",{class:"bi bi-trash-fill"})],-1)),a.createElementVNode("div",$h,a.toDisplayString(s.label),1)],10,qh))}}),[["__scopeId","data-v-ed163ff4"]]),Xh={class:"toggle-buttons","data-test":"ToggleButtons"},ef=["onClick"],tf=Ne(a.defineComponent({__name:"ToggleButtons",props:{options:{},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=r=>{t("update:modelValue",r.name)};return(r,s)=>(a.openBlock(),a.createElementBlock("div",Xh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.options,o=>(a.openBlock(),a.createElementBlock("button",{key:o.name,type:"button",class:a.normalizeClass(["toggle-buttons__button",{"toggle-buttons__button--active":r.modelValue===o.name}]),onClick:l=>i(o)},a.toDisplayString(o.title),11,ef))),128))]))}}),[["__scopeId","data-v-4eae7f5d"]]);var Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function nf(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var Yr,Il;function Fi(){return Il||(Il=1,Yr=TypeError),Yr}const rf=nf(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Qr,Vl;function Vn(){if(Vl)return Qr;Vl=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,i=n&&Map.prototype.forEach,r=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=r&&s&&typeof s.get=="function"?s.get:null,l=r&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,u=c?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,h=d?WeakSet.prototype.has:null,m=typeof WeakRef=="function"&&WeakRef.prototype,p=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,A=Object.prototype.toString,R=Function.prototype.toString,v=String.prototype.match,f=String.prototype.slice,T=String.prototype.replace,b=String.prototype.toUpperCase,M=String.prototype.toLowerCase,w=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,k=Array.prototype.slice,y=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,I=typeof Symbol=="function"&&typeof Symbol.iterator=="object",j=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||!0)?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,V=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ne){return ne.__proto__}:null);function H(ne,ae){if(ne===1/0||ne===-1/0||ne!==ne||ne&&ne>-1e3&&ne<1e3||w.call(/e/,ae))return ae;var Pe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ne=="number"){var ze=ne<0?-y(-ne):y(ne);if(ze!==ne){var Le=String(ze),xe=f.call(ae,Le.length+1);return T.call(Le,Pe,"$&_")+"."+T.call(T.call(xe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(ae,Pe,"$&_")}var q=rf,F=q.custom,N=ee(F)?F:null,K={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Qr=function ne(ae,Pe,ze,Le){var xe=Pe||{};if(Ae(xe,"quoteStyle")&&!Ae(K,xe.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ae(xe,"maxStringLength")&&(typeof xe.maxStringLength=="number"?xe.maxStringLength<0&&xe.maxStringLength!==1/0:xe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ut=Ae(xe,"customInspect")?xe.customInspect:!0;if(typeof ut!="boolean"&&ut!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ae(xe,"indent")&&xe.indent!==null&&xe.indent!==" "&&!(parseInt(xe.indent,10)===xe.indent&&xe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ae(xe,"numericSeparator")&&typeof xe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ge=xe.numericSeparator;if(typeof ae>"u")return"undefined";if(ae===null)return"null";if(typeof ae=="boolean")return ae?"true":"false";if(typeof ae=="string")return Me(ae,xe);if(typeof ae=="number"){if(ae===0)return 1/0/ae>0?"0":"-0";var B=String(ae);return ge?H(ae,B):B}if(typeof ae=="bigint"){var E=String(ae)+"n";return ge?H(ae,E):E}var L=typeof xe.depth>"u"?5:xe.depth;if(typeof ze>"u"&&(ze=0),ze>=L&&L>0&&typeof ae=="object")return ce(ae)?"[Array]":"[Object]";var _=xt(xe,ze);if(typeof Le>"u")Le=[];else if(Ie(Le,ae)>=0)return"[Circular]";function G(jt,$t,rn){if($t&&(Le=k.call(Le),Le.push($t)),rn){var Oi={depth:xe.depth};return Ae(xe,"quoteStyle")&&(Oi.quoteStyle=xe.quoteStyle),ne(jt,Oi,ze+1,Le)}return ne(jt,xe,ze+1,Le)}if(typeof ae=="function"&&!ie(ae)){var se=_e(ae),ue=Ge(ae,G);return"[Function"+(se?": "+se:" (anonymous)")+"]"+(ue.length>0?" { "+C.call(ue,", ")+" }":"")}if(ee(ae)){var fe=I?T.call(String(ae),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(ae);return typeof ae=="object"&&!I?Re(fe):fe}if(Se(ae)){for(var pe="<"+M.call(String(ae.nodeName)),ve=ae.attributes||[],Ce=0;Ce<ve.length;Ce++)pe+=" "+ve[Ce].name+"="+$(te(ve[Ce].value),"double",xe);return pe+=">",ae.childNodes&&ae.childNodes.length&&(pe+="..."),pe+="</"+M.call(String(ae.nodeName))+">",pe}if(ce(ae)){if(ae.length===0)return"[]";var De=Ge(ae,G);return _&&!je(De)?"["+At(De,_)+"]":"[ "+C.call(De,", ")+" ]"}if(Z(ae)){var We=Ge(ae,G);return!("cause"in Error.prototype)&&"cause"in ae&&!U.call(ae,"cause")?"{ ["+String(ae)+"] "+C.call(S.call("[cause]: "+G(ae.cause),We),", ")+" }":We.length===0?"["+String(ae)+"]":"{ ["+String(ae)+"] "+C.call(We,", ")+" }"}if(typeof ae=="object"&&ut){if(N&&typeof ae[N]=="function"&&q)return q(ae,{depth:L-ze});if(ut!=="symbol"&&typeof ae.inspect=="function")return ae.inspect()}if(de(ae)){var Be=[];return i&&i.call(ae,function(jt,$t){Be.push(G($t,ae,!0)+" => "+G(jt,ae))}),et("Map",t.call(ae),Be,_)}if(me(ae)){var qe=[];return l&&l.call(ae,function(jt){qe.push(G(jt,ae))}),et("Set",o.call(ae),qe,_)}if(X(ae))return Oe("WeakMap");if(he(ae))return Oe("WeakSet");if(re(ae))return Oe("WeakRef");if(P(ae))return Re(G(Number(ae)));if(be(ae))return Re(G(D.call(ae)));if(J(ae))return Re(g.call(ae));if(Q(ae))return Re(G(String(ae)));if(typeof window<"u"&&ae===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ae===globalThis||typeof Pl<"u"&&ae===Pl)return"{ [object globalThis] }";if(!Y(ae)&&!ie(ae)){var Xe=Ge(ae,G),at=V?V(ae)===Object.prototype:ae instanceof Object||ae.constructor===Object,nt=ae instanceof Object?"":"null prototype",wi=!at&&j&&Object(ae)===ae&&j in ae?f.call(Fe(ae),8,-1):nt?"Object":"",Li=at||typeof ae.constructor!="function"?"":ae.constructor.name?ae.constructor.name+" ":"",di=Li+(wi||nt?"["+C.call(S.call([],wi||[],nt||[]),": ")+"] ":"");return Xe.length===0?di+"{}":_?di+"{"+At(Xe,_)+"}":di+"{ "+C.call(Xe,", ")+" }"}return String(ae)};function $(ne,ae,Pe){var ze=Pe.quoteStyle||ae,Le=K[ze];return Le+ne+Le}function te(ne){return T.call(String(ne),/"/g,""")}function le(ne){return!j||!(typeof ne=="object"&&(j in ne||typeof ne[j]<"u"))}function ce(ne){return Fe(ne)==="[object Array]"&&le(ne)}function Y(ne){return Fe(ne)==="[object Date]"&&le(ne)}function ie(ne){return Fe(ne)==="[object RegExp]"&&le(ne)}function Z(ne){return Fe(ne)==="[object Error]"&&le(ne)}function Q(ne){return Fe(ne)==="[object String]"&&le(ne)}function P(ne){return Fe(ne)==="[object Number]"&&le(ne)}function J(ne){return Fe(ne)==="[object Boolean]"&&le(ne)}function ee(ne){if(I)return ne&&typeof ne=="object"&&ne instanceof Symbol;if(typeof ne=="symbol")return!0;if(!ne||typeof ne!="object"||!O)return!1;try{return O.call(ne),!0}catch{}return!1}function be(ne){if(!ne||typeof ne!="object"||!D)return!1;try{return D.call(ne),!0}catch{}return!1}var we=Object.prototype.hasOwnProperty||function(ne){return ne in this};function Ae(ne,ae){return we.call(ne,ae)}function Fe(ne){return A.call(ne)}function _e(ne){if(ne.name)return ne.name;var ae=v.call(R.call(ne),/^function\s*([\w$]+)/);return ae?ae[1]:null}function Ie(ne,ae){if(ne.indexOf)return ne.indexOf(ae);for(var Pe=0,ze=ne.length;Pe<ze;Pe++)if(ne[Pe]===ae)return Pe;return-1}function de(ne){if(!t||!ne||typeof ne!="object")return!1;try{t.call(ne);try{o.call(ne)}catch{return!0}return ne instanceof Map}catch{}return!1}function X(ne){if(!u||!ne||typeof ne!="object")return!1;try{u.call(ne,u);try{h.call(ne,h)}catch{return!0}return ne instanceof WeakMap}catch{}return!1}function re(ne){if(!p||!ne||typeof ne!="object")return!1;try{return p.call(ne),!0}catch{}return!1}function me(ne){if(!o||!ne||typeof ne!="object")return!1;try{o.call(ne);try{t.call(ne)}catch{return!0}return ne instanceof Set}catch{}return!1}function he(ne){if(!h||!ne||typeof ne!="object")return!1;try{h.call(ne,h);try{u.call(ne,u)}catch{return!0}return ne instanceof WeakSet}catch{}return!1}function Se(ne){return!ne||typeof ne!="object"?!1:typeof HTMLElement<"u"&&ne instanceof HTMLElement?!0:typeof ne.nodeName=="string"&&typeof ne.getAttribute=="function"}function Me(ne,ae){if(ne.length>ae.maxStringLength){var Pe=ne.length-ae.maxStringLength,ze="... "+Pe+" more character"+(Pe>1?"s":"");return Me(f.call(ne,0,ae.maxStringLength),ae)+ze}var Le=z[ae.quoteStyle||"single"];Le.lastIndex=0;var xe=T.call(T.call(ne,Le,"\\$1"),/[\x00-\x1f]/g,oe);return $(xe,"single",ae)}function oe(ne){var ae=ne.charCodeAt(0),Pe={8:"b",9:"t",10:"n",12:"f",13:"r"}[ae];return Pe?"\\"+Pe:"\\x"+(ae<16?"0":"")+b.call(ae.toString(16))}function Re(ne){return"Object("+ne+")"}function Oe(ne){return ne+" { ? }"}function et(ne,ae,Pe,ze){var Le=ze?At(Pe,ze):C.call(Pe,", ");return ne+" ("+ae+") {"+Le+"}"}function je(ne){for(var ae=0;ae<ne.length;ae++)if(Ie(ne[ae],`
|
|
1
|
+
(function(W,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(W=typeof globalThis<"u"?globalThis:W||self,a(W.R3uiLib={},W.Vue))})(this,(function(W,a){"use strict";const In={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["spinner-border",{"spinner-border-sm":n.isSmall}]),role:"status"},null,2))}},Gr={__name:"Icon",props:{name:{type:String,required:!0}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("i",{class:a.normalizeClass(`bi bi-${n.name}`)},null,2))}},Hh=["aria-label"],zh={class:"d-inline-flex align-items-center justify-content-center"},jh={key:2},Bi={__name:"DefaultButton",props:{label:{type:String,default:""},icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator(n){return["right","left"].includes(n)}},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isFullWidth:{type:Boolean,default:!1},customClasses:{type:Array,default:()=>[]},ariaLabel:{type:String,default:""},styles:{type:String,default:"primary",validator(n){return["primary","light","secondary","success","danger","warning","info"].includes(n)}}},emits:["submit"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>`btn-${t.styles}`);function s(){t.isLoading||t.isDisabled||i("submit")}return(o,l)=>(a.openBlock(),a.createElementBlock("button",{"data-test":"DefaultButton",class:a.normalizeClass(["btn",[n.isLoading||n.isDisabled?"disabled":"",n.isFullWidth?"w-100":"",n.styles?r.value:"",...n.customClasses]]),"aria-label":n.ariaLabel||void 0,onClick:a.withModifiers(s,["prevent"])},[a.createElementVNode("div",zh,[n.icon&&n.iconPosition==="left"?(a.openBlock(),a.createBlock(Gr,{key:0,name:n.icon,class:a.normalizeClass(n.label?"me-2":"")},null,8,["name","class"])):a.createCommentVNode("",!0),n.isLoading?(a.openBlock(),a.createBlock(In,{key:1,isSmall:!0,class:a.normalizeClass(n.label?"me-2":"")},null,8,["class"])):a.createCommentVNode("",!0),n.label?(a.openBlock(),a.createElementBlock("span",jh,a.toDisplayString(n.label),1)):a.createCommentVNode("",!0),n.icon&&n.iconPosition==="right"?(a.openBlock(),a.createBlock(Gr,{key:3,name:n.icon,class:a.normalizeClass(n.label?"ms-2":"")},null,8,["name","class"])):a.createCommentVNode("",!0)])],10,Hh))}},Wh=a.defineComponent({__name:"AddButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},iconClass:{default:"bi bi-plus-circle-fill pe-2"}},emits:["click"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("click")};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["d-flex add-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"AddButton",onClick:r},[a.createElementVNode("i",{class:a.normalizeClass(s.iconClass)},null,2),a.createTextVNode(" "+a.toDisplayString(s.label||s.text||"Добавить"),1)],2))}}),Ne=(n,e)=>{const t=n.__vccOpts||n;for(const[i,r]of e)t[i]=r;return t},_l=Ne(Wh,[["__scopeId","data-v-cf07042b"]]),Uh={"data-test":"CollapseButton"},Gh=["id"],Yh=["id"],Qh=Ne(a.defineComponent({__name:"CollapseButton",props:{isCollapsed:{type:Boolean,default:!0},expandText:{default:"Развернуть все"},collapseText:{default:"Свернуть все"},expandId:{default:"expand-filters-btn"},collapseId:{default:"collapse-filters-btn"},buttonStyle:{default:"padding: 8px 24px; margin-bottom: 32px"},iconStyle:{default:"font-size: 10px"},expandLabel:{default:"Развернуть все"},collapseLabel:{default:"Свернуть все"},isColapsed:{type:Boolean}},emits:["emitCollapseToggle","emitColapsed","expand","collapse"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>t.isCollapsed),s=a.computed(()=>t.expandText),o=a.computed(()=>t.collapseText),l=()=>{i("emitCollapseToggle",!1),i("emitColapsed",!1),i("expand")},c=()=>{i("emitCollapseToggle",!0),i("emitColapsed",!0),i("collapse")};return(u,d)=>(a.openBlock(),a.createElementBlock("div",Uh,[r.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",id:u.expandId,class:"btn btn-light collapse-button",onClick:l,style:a.normalizeStyle(u.buttonStyle)},[a.createTextVNode(a.toDisplayString(s.value)+" ",1),a.createElementVNode("i",{class:"bi bi-caret-down-fill",style:a.normalizeStyle(u.iconStyle)},null,4)],12,Gh)):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",id:u.collapseId,class:"btn btn-light collapse-button",onClick:c,style:a.normalizeStyle(u.buttonStyle)},[a.createTextVNode(a.toDisplayString(o.value)+" ",1),a.createElementVNode("i",{class:"bi bi-caret-up-fill",style:a.normalizeStyle(u.iconStyle)},null,4)],12,Yh))]))}}),[["__scopeId","data-v-1a9468da"]]),Kh=Ne(a.defineComponent({__name:"ExportButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1},exportType:{default:"default"}},emits:["export"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("export",t.exportType)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["col-auto export-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"ExportButton",onClick:r},[a.createTextVNode(a.toDisplayString(s.label||s.text||"Экспорт")+" ",1),o[0]||(o[0]=a.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],2))}}),[["__scopeId","data-v-20f08c06"]]),Jh=Ne(a.defineComponent({__name:"PrintButton",props:{label:{default:""},text:{default:""},disabled:{type:Boolean,default:!1}},emits:["print"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||(window.print(),i("print"))};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["col-auto print-button",{"opacity-75 disabled":s.disabled}]),style:{cursor:"pointer"},"data-test":"PrintButton",onClick:r},[a.createTextVNode(a.toDisplayString(s.label||s.text||"Печать")+" ",1),o[0]||(o[0]=a.createElementVNode("i",{class:"ps-2 bi bi-printer-fill"},null,-1))],2))}}),[["__scopeId","data-v-52020521"]]),qh=["disabled"],$h={class:"clear-form-button__label"},Zh=Ne(a.defineComponent({__name:"ClearFormButton",props:{label:{default:"Очистить"},disabled:{type:Boolean,default:!1}},emits:["clear"],setup(n,{emit:e}){const t=n,i=e,r=()=>{t.disabled||i("clear",!0)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["clear-form-button",{"clear-form-button--disabled":s.disabled}]),disabled:s.disabled,"data-test":"ClearFormButton",onClick:r},[o[0]||(o[0]=a.createElementVNode("div",{class:"clear-form-button__icon"},[a.createElementVNode("i",{class:"bi bi-trash-fill"})],-1)),a.createElementVNode("div",$h,a.toDisplayString(s.label),1)],10,qh))}}),[["__scopeId","data-v-ed163ff4"]]),Xh={class:"toggle-buttons","data-test":"ToggleButtons"},ef=["onClick"],tf=Ne(a.defineComponent({__name:"ToggleButtons",props:{options:{},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=r=>{t("update:modelValue",r.name)};return(r,s)=>(a.openBlock(),a.createElementBlock("div",Xh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.options,o=>(a.openBlock(),a.createElementBlock("button",{key:o.name,type:"button",class:a.normalizeClass(["toggle-buttons__button",{"toggle-buttons__button--active":r.modelValue===o.name}]),onClick:l=>i(o)},a.toDisplayString(o.title),11,ef))),128))]))}}),[["__scopeId","data-v-4eae7f5d"]]);var Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function nf(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var Yr,Il;function Fi(){return Il||(Il=1,Yr=TypeError),Yr}const rf=nf(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Qr,Vl;function Vn(){if(Vl)return Qr;Vl=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,i=n&&Map.prototype.forEach,r=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=r&&s&&typeof s.get=="function"?s.get:null,l=r&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,u=c?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,h=d?WeakSet.prototype.has:null,m=typeof WeakRef=="function"&&WeakRef.prototype,p=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,A=Object.prototype.toString,R=Function.prototype.toString,v=String.prototype.match,f=String.prototype.slice,T=String.prototype.replace,b=String.prototype.toUpperCase,M=String.prototype.toLowerCase,w=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,k=Array.prototype.slice,y=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,I=typeof Symbol=="function"&&typeof Symbol.iterator=="object",j=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||!0)?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,V=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ne){return ne.__proto__}:null);function H(ne,ae){if(ne===1/0||ne===-1/0||ne!==ne||ne&&ne>-1e3&&ne<1e3||w.call(/e/,ae))return ae;var Pe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ne=="number"){var ze=ne<0?-y(-ne):y(ne);if(ze!==ne){var Le=String(ze),xe=f.call(ae,Le.length+1);return T.call(Le,Pe,"$&_")+"."+T.call(T.call(xe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(ae,Pe,"$&_")}var q=rf,F=q.custom,N=ee(F)?F:null,K={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Qr=function ne(ae,Pe,ze,Le){var xe=Pe||{};if(Ae(xe,"quoteStyle")&&!Ae(K,xe.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ae(xe,"maxStringLength")&&(typeof xe.maxStringLength=="number"?xe.maxStringLength<0&&xe.maxStringLength!==1/0:xe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ut=Ae(xe,"customInspect")?xe.customInspect:!0;if(typeof ut!="boolean"&&ut!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ae(xe,"indent")&&xe.indent!==null&&xe.indent!==" "&&!(parseInt(xe.indent,10)===xe.indent&&xe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ae(xe,"numericSeparator")&&typeof xe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ge=xe.numericSeparator;if(typeof ae>"u")return"undefined";if(ae===null)return"null";if(typeof ae=="boolean")return ae?"true":"false";if(typeof ae=="string")return Me(ae,xe);if(typeof ae=="number"){if(ae===0)return 1/0/ae>0?"0":"-0";var B=String(ae);return ge?H(ae,B):B}if(typeof ae=="bigint"){var E=String(ae)+"n";return ge?H(ae,E):E}var L=typeof xe.depth>"u"?5:xe.depth;if(typeof ze>"u"&&(ze=0),ze>=L&&L>0&&typeof ae=="object")return ce(ae)?"[Array]":"[Object]";var _=xt(xe,ze);if(typeof Le>"u")Le=[];else if(Ie(Le,ae)>=0)return"[Circular]";function G(jt,$t,rn){if($t&&(Le=k.call(Le),Le.push($t)),rn){var Oi={depth:xe.depth};return Ae(xe,"quoteStyle")&&(Oi.quoteStyle=xe.quoteStyle),ne(jt,Oi,ze+1,Le)}return ne(jt,xe,ze+1,Le)}if(typeof ae=="function"&&!ie(ae)){var se=_e(ae),ue=Ge(ae,G);return"[Function"+(se?": "+se:" (anonymous)")+"]"+(ue.length>0?" { "+C.call(ue,", ")+" }":"")}if(ee(ae)){var fe=I?T.call(String(ae),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(ae);return typeof ae=="object"&&!I?Re(fe):fe}if(Se(ae)){for(var pe="<"+M.call(String(ae.nodeName)),ve=ae.attributes||[],Ce=0;Ce<ve.length;Ce++)pe+=" "+ve[Ce].name+"="+$(te(ve[Ce].value),"double",xe);return pe+=">",ae.childNodes&&ae.childNodes.length&&(pe+="..."),pe+="</"+M.call(String(ae.nodeName))+">",pe}if(ce(ae)){if(ae.length===0)return"[]";var De=Ge(ae,G);return _&&!je(De)?"["+At(De,_)+"]":"[ "+C.call(De,", ")+" ]"}if(Z(ae)){var We=Ge(ae,G);return!("cause"in Error.prototype)&&"cause"in ae&&!U.call(ae,"cause")?"{ ["+String(ae)+"] "+C.call(S.call("[cause]: "+G(ae.cause),We),", ")+" }":We.length===0?"["+String(ae)+"]":"{ ["+String(ae)+"] "+C.call(We,", ")+" }"}if(typeof ae=="object"&&ut){if(N&&typeof ae[N]=="function"&&q)return q(ae,{depth:L-ze});if(ut!=="symbol"&&typeof ae.inspect=="function")return ae.inspect()}if(de(ae)){var Be=[];return i&&i.call(ae,function(jt,$t){Be.push(G($t,ae,!0)+" => "+G(jt,ae))}),et("Map",t.call(ae),Be,_)}if(me(ae)){var qe=[];return l&&l.call(ae,function(jt){qe.push(G(jt,ae))}),et("Set",o.call(ae),qe,_)}if(X(ae))return Oe("WeakMap");if(he(ae))return Oe("WeakSet");if(re(ae))return Oe("WeakRef");if(P(ae))return Re(G(Number(ae)));if(be(ae))return Re(G(D.call(ae)));if(J(ae))return Re(g.call(ae));if(Q(ae))return Re(G(String(ae)));if(typeof window<"u"&&ae===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ae===globalThis||typeof Pl<"u"&&ae===Pl)return"{ [object globalThis] }";if(!Y(ae)&&!ie(ae)){var Xe=Ge(ae,G),at=V?V(ae)===Object.prototype:ae instanceof Object||ae.constructor===Object,nt=ae instanceof Object?"":"null prototype",wi=!at&&j&&Object(ae)===ae&&j in ae?f.call(Fe(ae),8,-1):nt?"Object":"",Li=at||typeof ae.constructor!="function"?"":ae.constructor.name?ae.constructor.name+" ":"",di=Li+(wi||nt?"["+C.call(S.call([],wi||[],nt||[]),": ")+"] ":"");return Xe.length===0?di+"{}":_?di+"{"+At(Xe,_)+"}":di+"{ "+C.call(Xe,", ")+" }"}return String(ae)};function $(ne,ae,Pe){var ze=Pe.quoteStyle||ae,Le=K[ze];return Le+ne+Le}function te(ne){return T.call(String(ne),/"/g,""")}function le(ne){return!j||!(typeof ne=="object"&&(j in ne||typeof ne[j]<"u"))}function ce(ne){return Fe(ne)==="[object Array]"&&le(ne)}function Y(ne){return Fe(ne)==="[object Date]"&&le(ne)}function ie(ne){return Fe(ne)==="[object RegExp]"&&le(ne)}function Z(ne){return Fe(ne)==="[object Error]"&&le(ne)}function Q(ne){return Fe(ne)==="[object String]"&&le(ne)}function P(ne){return Fe(ne)==="[object Number]"&&le(ne)}function J(ne){return Fe(ne)==="[object Boolean]"&&le(ne)}function ee(ne){if(I)return ne&&typeof ne=="object"&&ne instanceof Symbol;if(typeof ne=="symbol")return!0;if(!ne||typeof ne!="object"||!O)return!1;try{return O.call(ne),!0}catch{}return!1}function be(ne){if(!ne||typeof ne!="object"||!D)return!1;try{return D.call(ne),!0}catch{}return!1}var we=Object.prototype.hasOwnProperty||function(ne){return ne in this};function Ae(ne,ae){return we.call(ne,ae)}function Fe(ne){return A.call(ne)}function _e(ne){if(ne.name)return ne.name;var ae=v.call(R.call(ne),/^function\s*([\w$]+)/);return ae?ae[1]:null}function Ie(ne,ae){if(ne.indexOf)return ne.indexOf(ae);for(var Pe=0,ze=ne.length;Pe<ze;Pe++)if(ne[Pe]===ae)return Pe;return-1}function de(ne){if(!t||!ne||typeof ne!="object")return!1;try{t.call(ne);try{o.call(ne)}catch{return!0}return ne instanceof Map}catch{}return!1}function X(ne){if(!u||!ne||typeof ne!="object")return!1;try{u.call(ne,u);try{h.call(ne,h)}catch{return!0}return ne instanceof WeakMap}catch{}return!1}function re(ne){if(!p||!ne||typeof ne!="object")return!1;try{return p.call(ne),!0}catch{}return!1}function me(ne){if(!o||!ne||typeof ne!="object")return!1;try{o.call(ne);try{t.call(ne)}catch{return!0}return ne instanceof Set}catch{}return!1}function he(ne){if(!h||!ne||typeof ne!="object")return!1;try{h.call(ne,h);try{u.call(ne,u)}catch{return!0}return ne instanceof WeakSet}catch{}return!1}function Se(ne){return!ne||typeof ne!="object"?!1:typeof HTMLElement<"u"&&ne instanceof HTMLElement?!0:typeof ne.nodeName=="string"&&typeof ne.getAttribute=="function"}function Me(ne,ae){if(ne.length>ae.maxStringLength){var Pe=ne.length-ae.maxStringLength,ze="... "+Pe+" more character"+(Pe>1?"s":"");return Me(f.call(ne,0,ae.maxStringLength),ae)+ze}var Le=z[ae.quoteStyle||"single"];Le.lastIndex=0;var xe=T.call(T.call(ne,Le,"\\$1"),/[\x00-\x1f]/g,oe);return $(xe,"single",ae)}function oe(ne){var ae=ne.charCodeAt(0),Pe={8:"b",9:"t",10:"n",12:"f",13:"r"}[ae];return Pe?"\\"+Pe:"\\x"+(ae<16?"0":"")+b.call(ae.toString(16))}function Re(ne){return"Object("+ne+")"}function Oe(ne){return ne+" { ? }"}function et(ne,ae,Pe,ze){var Le=ze?At(Pe,ze):C.call(Pe,", ");return ne+" ("+ae+") {"+Le+"}"}function je(ne){for(var ae=0;ae<ne.length;ae++)if(Ie(ne[ae],`
|
|
2
2
|
`)>=0)return!1;return!0}function xt(ne,ae){var Pe;if(ne.indent===" ")Pe=" ";else if(typeof ne.indent=="number"&&ne.indent>0)Pe=C.call(Array(ne.indent+1)," ");else return null;return{base:Pe,prev:C.call(Array(ae+1),Pe)}}function At(ne,ae){if(ne.length===0)return"";var Pe=`
|
|
3
3
|
`+ae.prev+ae.base;return Pe+C.call(ne,","+Pe)+`
|
|
4
4
|
`+ae.prev}function Ge(ne,ae){var Pe=ce(ne),ze=[];if(Pe){ze.length=ne.length;for(var Le=0;Le<ne.length;Le++)ze[Le]=Ae(ne,Le)?ae(ne[Le],ne):""}var xe=typeof x=="function"?x(ne):[],ut;if(I){ut={};for(var ge=0;ge<xe.length;ge++)ut["$"+xe[ge]]=xe[ge]}for(var B in ne)Ae(ne,B)&&(Pe&&String(Number(B))===B&&B<ne.length||I&&ut["$"+B]instanceof Symbol||(w.call(/[^\w$]/,B)?ze.push(ae(B,ne)+": "+ae(ne[B],ne)):ze.push(B+": "+ae(ne[B],ne))));if(typeof x=="function")for(var E=0;E<xe.length;E++)U.call(ne,xe[E])&&ze.push("["+ae(xe[E])+"]: "+ae(ne[xe[E]],ne));return ze}return Qr}var Kr,Hl;function sf(){if(Hl)return Kr;Hl=1;var n=Vn(),e=Fi(),t=function(l,c,u){for(var d=l,h;(h=d.next)!=null;d=h)if(h.key===c)return d.next=h.next,u||(h.next=l.next,l.next=h),h},i=function(l,c){if(l){var u=t(l,c);return u&&u.value}},r=function(l,c,u){var d=t(l,c);d?d.value=u:l.next={key:c,next:l.next,value:u}},s=function(l,c){return l?!!t(l,c):!1},o=function(l,c){if(l)return t(l,c,!0)};return Kr=function(){var c,u={assert:function(d){if(!u.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var h=c&&c.next,m=o(c,d);return m&&h&&h===m&&(c=void 0),!!m},get:function(d){return i(c,d)},has:function(d){return s(c,d)},set:function(d,h){c||(c={next:void 0}),r(c,d,h)}};return u},Kr}var Jr,zl;function jl(){return zl||(zl=1,Jr=Object),Jr}var qr,Wl;function af(){return Wl||(Wl=1,qr=Error),qr}var $r,Ul;function of(){return Ul||(Ul=1,$r=EvalError),$r}var Zr,Gl;function lf(){return Gl||(Gl=1,Zr=RangeError),Zr}var Xr,Yl;function cf(){return Yl||(Yl=1,Xr=ReferenceError),Xr}var es,Ql;function uf(){return Ql||(Ql=1,es=SyntaxError),es}var ts,Kl;function df(){return Kl||(Kl=1,ts=URIError),ts}var is,Jl;function hf(){return Jl||(Jl=1,is=Math.abs),is}var ns,ql;function ff(){return ql||(ql=1,ns=Math.floor),ns}var rs,$l;function pf(){return $l||($l=1,rs=Math.max),rs}var ss,Zl;function mf(){return Zl||(Zl=1,ss=Math.min),ss}var as,Xl;function gf(){return Xl||(Xl=1,as=Math.pow),as}var os,ec;function bf(){return ec||(ec=1,os=Math.round),os}var ls,tc;function vf(){return tc||(tc=1,ls=Number.isNaN||function(e){return e!==e}),ls}var cs,ic;function yf(){if(ic)return cs;ic=1;var n=vf();return cs=function(t){return n(t)||t===0?t:t<0?-1:1},cs}var us,nc;function wf(){return nc||(nc=1,us=Object.getOwnPropertyDescriptor),us}var ds,rc;function sc(){if(rc)return ds;rc=1;var n=wf();if(n)try{n([],"length")}catch{n=null}return ds=n,ds}var hs,ac;function Cf(){if(ac)return hs;ac=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return hs=n,hs}var fs,oc;function Af(){return oc||(oc=1,fs=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==r||l.enumerable!==!0)return!1}return!0}),fs}var ps,lc;function Ef(){if(lc)return ps;lc=1;var n=typeof Symbol<"u"&&Symbol,e=Af();return ps=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ps}var ms,cc;function uc(){return cc||(cc=1,ms=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ms}var gs,dc;function hc(){if(dc)return gs;dc=1;var n=jl();return gs=n.getPrototypeOf||null,gs}var bs,fc;function kf(){if(fc)return bs;fc=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(c,u){for(var d=[],h=0;h<c.length;h+=1)d[h]=c[h];for(var m=0;m<u.length;m+=1)d[m+c.length]=u[m];return d},s=function(c,u){for(var d=[],h=u,m=0;h<c.length;h+=1,m+=1)d[m]=c[h];return d},o=function(l,c){for(var u="",d=0;d<l.length;d+=1)u+=l[d],d+1<l.length&&(u+=c);return u};return bs=function(c){var u=this;if(typeof u!="function"||e.apply(u)!==i)throw new TypeError(n+u);for(var d=s(arguments,1),h,m=function(){if(this instanceof h){var v=u.apply(this,r(d,arguments));return Object(v)===v?v:this}return u.apply(c,r(d,arguments))},p=t(0,u.length-d.length),g=[],A=0;A<p;A++)g[A]="$"+A;if(h=Function("binder","return function ("+o(g,",")+"){ return binder.apply(this,arguments); }")(m),u.prototype){var R=function(){};R.prototype=u.prototype,h.prototype=new R,R.prototype=null}return h},bs}var vs,pc;function Hn(){if(pc)return vs;pc=1;var n=kf();return vs=Function.prototype.bind||n,vs}var ys,mc;function ws(){return mc||(mc=1,ys=Function.prototype.call),ys}var Cs,gc;function bc(){return gc||(gc=1,Cs=Function.prototype.apply),Cs}var As,vc;function Sf(){return vc||(vc=1,As=typeof Reflect<"u"&&Reflect&&Reflect.apply),As}var Es,yc;function Rf(){if(yc)return Es;yc=1;var n=Hn(),e=bc(),t=ws(),i=Sf();return Es=i||n.call(t,e),Es}var ks,wc;function Cc(){if(wc)return ks;wc=1;var n=Hn(),e=Fi(),t=ws(),i=Rf();return ks=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return i(n,t,s)},ks}var Ss,Ac;function xf(){if(Ac)return Ss;Ac=1;var n=Cc(),e=sc(),t;try{t=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var i=!!t&&e&&e(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return Ss=i&&typeof i.get=="function"?n([i.get]):typeof s=="function"?function(l){return s(l==null?l:r(l))}:!1,Ss}var Rs,Ec;function Mf(){if(Ec)return Rs;Ec=1;var n=uc(),e=hc(),t=xf();return Rs=n?function(r){return n(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:t?function(r){return t(r)}:null,Rs}var xs,kc;function Tf(){if(kc)return xs;kc=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Hn();return xs=t.call(n,e),xs}var Ms,Sc;function Ts(){if(Sc)return Ms;Sc=1;var n,e=jl(),t=af(),i=of(),r=lf(),s=cf(),o=uf(),l=Fi(),c=df(),u=hf(),d=ff(),h=pf(),m=mf(),p=gf(),g=bf(),A=yf(),R=Function,v=function(ie){try{return R('"use strict"; return ('+ie+").constructor;")()}catch{}},f=sc(),T=Cf(),b=function(){throw new l},M=f?(function(){try{return arguments.callee,b}catch{try{return f(arguments,"callee").get}catch{return b}}})():b,w=Ef()(),S=Mf(),C=hc(),k=uc(),y=bc(),D=ws(),x={},O=typeof Uint8Array>"u"||!S?n:S(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&S?S([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&S?S(S([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!S?n:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":f,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":r,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!S?n:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&S?S(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":M,"%TypedArray%":O,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":y,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":C,"%Math.abs%":u,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":p,"%Math.round%":g,"%Math.sign%":A,"%Reflect.getPrototypeOf%":k};if(S)try{null.error}catch(ie){var j=S(S(ie));I["%Error.prototype%"]=j}var U=function ie(Z){var Q;if(Z==="%AsyncFunction%")Q=v("async function () {}");else if(Z==="%GeneratorFunction%")Q=v("function* () {}");else if(Z==="%AsyncGeneratorFunction%")Q=v("async function* () {}");else if(Z==="%AsyncGenerator%"){var P=ie("%AsyncGeneratorFunction%");P&&(Q=P.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var J=ie("%AsyncGenerator%");J&&S&&(Q=S(J.prototype))}return I[Z]=Q,Q},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=Hn(),q=Tf(),F=H.call(D,Array.prototype.concat),N=H.call(y,Array.prototype.splice),K=H.call(D,String.prototype.replace),z=H.call(D,String.prototype.slice),$=H.call(D,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,le=/\\(\\)?/g,ce=function(Z){var Q=z(Z,0,1),P=z(Z,-1);if(Q==="%"&&P!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(P==="%"&&Q!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var J=[];return K(Z,te,function(ee,be,we,Ae){J[J.length]=we?K(Ae,le,"$1"):be||ee}),J},Y=function(Z,Q){var P=Z,J;if(q(V,P)&&(J=V[P],P="%"+J[0]+"%"),q(I,P)){var ee=I[P];if(ee===x&&(ee=U(P)),typeof ee>"u"&&!Q)throw new l("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:J,name:P,value:ee}}throw new o("intrinsic "+Z+" does not exist!")};return Ms=function(Z,Q){if(typeof Z!="string"||Z.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new l('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,Z)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=ce(Z),J=P.length>0?P[0]:"",ee=Y("%"+J+"%",Q),be=ee.name,we=ee.value,Ae=!1,Fe=ee.alias;Fe&&(J=Fe[0],N(P,F([0,1],Fe)));for(var _e=1,Ie=!0;_e<P.length;_e+=1){var de=P[_e],X=z(de,0,1),re=z(de,-1);if((X==='"'||X==="'"||X==="`"||re==='"'||re==="'"||re==="`")&&X!==re)throw new o("property names with quotes must have matching quotes");if((de==="constructor"||!Ie)&&(Ae=!0),J+="."+de,be="%"+J+"%",q(I,be))we=I[be];else if(we!=null){if(!(de in we)){if(!Q)throw new l("base intrinsic for "+Z+" exists, but the property is not available.");return}if(f&&_e+1>=P.length){var me=f(we,de);Ie=!!me,Ie&&"get"in me&&!("originalValue"in me.get)?we=me.get:we=we[de]}else Ie=q(we,de),we=we[de];Ie&&!Ae&&(I[be]=we)}}return we},Ms}var Ds,Rc;function xc(){if(Rc)return Ds;Rc=1;var n=Ts(),e=Cc(),t=e([n("%String.prototype.indexOf%")]);return Ds=function(r,s){var o=n(r,!!s);return typeof o=="function"&&t(r,".prototype.")>-1?e([o]):o},Ds}var Ls,Mc;function Tc(){if(Mc)return Ls;Mc=1;var n=Ts(),e=xc(),t=Vn(),i=Fi(),r=n("%Map%",!0),s=e("Map.prototype.get",!0),o=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),c=e("Map.prototype.delete",!0),u=e("Map.prototype.size",!0);return Ls=!!r&&function(){var h,m={assert:function(p){if(!m.has(p))throw new i("Side channel does not contain "+t(p))},delete:function(p){if(h){var g=c(h,p);return u(h)===0&&(h=void 0),g}return!1},get:function(p){if(h)return s(h,p)},has:function(p){return h?l(h,p):!1},set:function(p,g){h||(h=new r),o(h,p,g)}};return m},Ls}var Os,Dc;function Df(){if(Dc)return Os;Dc=1;var n=Ts(),e=xc(),t=Vn(),i=Tc(),r=Fi(),s=n("%WeakMap%",!0),o=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),c=e("WeakMap.prototype.has",!0),u=e("WeakMap.prototype.delete",!0);return Os=s?function(){var h,m,p={assert:function(g){if(!p.has(g))throw new r("Side channel does not contain "+t(g))},delete:function(g){if(s&&g&&(typeof g=="object"||typeof g=="function")){if(h)return u(h,g)}else if(i&&m)return m.delete(g);return!1},get:function(g){return s&&g&&(typeof g=="object"||typeof g=="function")&&h?o(h,g):m&&m.get(g)},has:function(g){return s&&g&&(typeof g=="object"||typeof g=="function")&&h?c(h,g):!!m&&m.has(g)},set:function(g,A){s&&g&&(typeof g=="object"||typeof g=="function")?(h||(h=new s),l(h,g,A)):i&&(m||(m=i()),m.set(g,A))}};return p}:i,Os}var Bs,Lc;function Lf(){if(Lc)return Bs;Lc=1;var n=Fi(),e=Vn(),t=sf(),i=Tc(),r=Df(),s=r||i||t;return Bs=function(){var l,c={assert:function(u){if(!c.has(u))throw new n("Side channel does not contain "+e(u))},delete:function(u){return!!l&&l.delete(u)},get:function(u){return l&&l.get(u)},has:function(u){return!!l&&l.has(u)},set:function(u,d){l||(l=s()),l.set(u,d)}};return c},Bs}var Fs,Oc;function _s(){if(Oc)return Fs;Oc=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Fs={default:t.RFC3986,formatters:{RFC1738:function(i){return n.call(i,e,"+")},RFC3986:function(i){return String(i)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Fs}var Ps,Bc;function Fc(){if(Bc)return Ps;Bc=1;var n=_s(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i=(function(){for(var R=[],v=0;v<256;++v)R.push("%"+((v<16?"0":"")+v.toString(16)).toUpperCase());return R})(),r=function(v){for(;v.length>1;){var f=v.pop(),T=f.obj[f.prop];if(t(T)){for(var b=[],M=0;M<T.length;++M)typeof T[M]<"u"&&b.push(T[M]);f.obj[f.prop]=b}}},s=function(v,f){for(var T=f&&f.plainObjects?{__proto__:null}:{},b=0;b<v.length;++b)typeof v[b]<"u"&&(T[b]=v[b]);return T},o=function R(v,f,T){if(!f)return v;if(typeof f!="object"&&typeof f!="function"){if(t(v))v.push(f);else if(v&&typeof v=="object")(T&&(T.plainObjects||T.allowPrototypes)||!e.call(Object.prototype,f))&&(v[f]=!0);else return[v,f];return v}if(!v||typeof v!="object")return[v].concat(f);var b=v;return t(v)&&!t(f)&&(b=s(v,T)),t(v)&&t(f)?(f.forEach(function(M,w){if(e.call(v,w)){var S=v[w];S&&typeof S=="object"&&M&&typeof M=="object"?v[w]=R(S,M,T):v.push(M)}else v[w]=M}),v):Object.keys(f).reduce(function(M,w){var S=f[w];return e.call(M,w)?M[w]=R(M[w],S,T):M[w]=S,M},b)},l=function(v,f){return Object.keys(f).reduce(function(T,b){return T[b]=f[b],T},v)},c=function(R,v,f){var T=R.replace(/\+/g," ");if(f==="iso-8859-1")return T.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(T)}catch{return T}},u=1024,d=function(v,f,T,b,M){if(v.length===0)return v;var w=v;if(typeof v=="symbol"?w=Symbol.prototype.toString.call(v):typeof v!="string"&&(w=String(v)),T==="iso-8859-1")return escape(w).replace(/%u[0-9a-f]{4}/gi,function(O){return"%26%23"+parseInt(O.slice(2),16)+"%3B"});for(var S="",C=0;C<w.length;C+=u){for(var k=w.length>=u?w.slice(C,C+u):w,y=[],D=0;D<k.length;++D){var x=k.charCodeAt(D);if(x===45||x===46||x===95||x===126||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||M===n.RFC1738&&(x===40||x===41)){y[y.length]=k.charAt(D);continue}if(x<128){y[y.length]=i[x];continue}if(x<2048){y[y.length]=i[192|x>>6]+i[128|x&63];continue}if(x<55296||x>=57344){y[y.length]=i[224|x>>12]+i[128|x>>6&63]+i[128|x&63];continue}D+=1,x=65536+((x&1023)<<10|k.charCodeAt(D)&1023),y[y.length]=i[240|x>>18]+i[128|x>>12&63]+i[128|x>>6&63]+i[128|x&63]}S+=y.join("")}return S},h=function(v){for(var f=[{obj:{o:v},prop:"o"}],T=[],b=0;b<f.length;++b)for(var M=f[b],w=M.obj[M.prop],S=Object.keys(w),C=0;C<S.length;++C){var k=S[C],y=w[k];typeof y=="object"&&y!==null&&T.indexOf(y)===-1&&(f.push({obj:w,prop:k}),T.push(y))}return r(f),v},m=function(v){return Object.prototype.toString.call(v)==="[object RegExp]"},p=function(v){return!v||typeof v!="object"?!1:!!(v.constructor&&v.constructor.isBuffer&&v.constructor.isBuffer(v))},g=function(v,f){return[].concat(v,f)},A=function(v,f){if(t(v)){for(var T=[],b=0;b<v.length;b+=1)T.push(f(v[b]));return T}return f(v)};return Ps={arrayToObject:s,assign:l,combine:g,compact:h,decode:c,encode:d,isBuffer:p,isRegExp:m,maybeMap:A,merge:o},Ps}var Ns,_c;function Of(){if(_c)return Ns;_c=1;var n=Lf(),e=Fc(),t=_s(),i=Object.prototype.hasOwnProperty,r={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,v){return R+"["+v+"]"},repeat:function(R){return R}},s=Array.isArray,o=Array.prototype.push,l=function(A,R){o.apply(A,s(R)?R:[R])},c=Date.prototype.toISOString,u=t.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:t.formatters[u],indices:!1,serializeDate:function(R){return c.call(R)},skipNulls:!1,strictNullHandling:!1},h=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},m={},p=function A(R,v,f,T,b,M,w,S,C,k,y,D,x,O,I,j,U,V){for(var H=R,q=V,F=0,N=!1;(q=q.get(m))!==void 0&&!N;){var K=q.get(R);if(F+=1,typeof K<"u"){if(K===F)throw new RangeError("Cyclic object value");N=!0}typeof q.get(m)>"u"&&(F=0)}if(typeof k=="function"?H=k(v,H):H instanceof Date?H=x(H):f==="comma"&&s(H)&&(H=e.maybeMap(H,function(be){return be instanceof Date?x(be):be})),H===null){if(M)return C&&!j?C(v,d.encoder,U,"key",O):v;H=""}if(h(H)||e.isBuffer(H)){if(C){var z=j?v:C(v,d.encoder,U,"key",O);return[I(z)+"="+I(C(H,d.encoder,U,"value",O))]}return[I(v)+"="+I(String(H))]}var $=[];if(typeof H>"u")return $;var te;if(f==="comma"&&s(H))j&&C&&(H=e.maybeMap(H,C)),te=[{value:H.length>0?H.join(",")||null:void 0}];else if(s(k))te=k;else{var le=Object.keys(H);te=y?le.sort(y):le}var ce=S?String(v).replace(/\./g,"%2E"):String(v),Y=T&&s(H)&&H.length===1?ce+"[]":ce;if(b&&s(H)&&H.length===0)return Y+"[]";for(var ie=0;ie<te.length;++ie){var Z=te[ie],Q=typeof Z=="object"&&Z&&typeof Z.value<"u"?Z.value:H[Z];if(!(w&&Q===null)){var P=D&&S?String(Z).replace(/\./g,"%2E"):String(Z),J=s(H)?typeof f=="function"?f(Y,P):Y:Y+(D?"."+P:"["+P+"]");V.set(R,F);var ee=n();ee.set(m,V),l($,A(Q,J,f,T,b,M,w,S,f==="comma"&&j&&s(H)?null:C,k,y,D,x,O,I,j,U,ee))}}return $},g=function(R){if(!R)return d;if(typeof R.allowEmptyArrays<"u"&&typeof R.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof R.encodeDotInKeys<"u"&&typeof R.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(R.encoder!==null&&typeof R.encoder<"u"&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var v=R.charset||d.charset;if(typeof R.charset<"u"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var f=t.default;if(typeof R.format<"u"){if(!i.call(t.formatters,R.format))throw new TypeError("Unknown format option provided.");f=R.format}var T=t.formatters[f],b=d.filter;(typeof R.filter=="function"||s(R.filter))&&(b=R.filter);var M;if(R.arrayFormat in r?M=R.arrayFormat:"indices"in R?M=R.indices?"indices":"repeat":M=d.arrayFormat,"commaRoundTrip"in R&&typeof R.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var w=typeof R.allowDots>"u"?R.encodeDotInKeys===!0?!0:d.allowDots:!!R.allowDots;return{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:d.addQueryPrefix,allowDots:w,allowEmptyArrays:typeof R.allowEmptyArrays=="boolean"?!!R.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:M,charset:v,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!R.commaRoundTrip,delimiter:typeof R.delimiter>"u"?d.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:d.encode,encodeDotInKeys:typeof R.encodeDotInKeys=="boolean"?R.encodeDotInKeys:d.encodeDotInKeys,encoder:typeof R.encoder=="function"?R.encoder:d.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:d.encodeValuesOnly,filter:b,format:f,formatter:T,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:d.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:d.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:d.strictNullHandling}};return Ns=function(A,R){var v=A,f=g(R),T,b;typeof f.filter=="function"?(b=f.filter,v=b("",v)):s(f.filter)&&(b=f.filter,T=b);var M=[];if(typeof v!="object"||v===null)return"";var w=r[f.arrayFormat],S=w==="comma"&&f.commaRoundTrip;T||(T=Object.keys(v)),f.sort&&T.sort(f.sort);for(var C=n(),k=0;k<T.length;++k){var y=T[k],D=v[y];f.skipNulls&&D===null||l(M,p(D,y,w,S,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,C))}var x=M.join(f.delimiter),O=f.addQueryPrefix===!0?"?":"";return f.charsetSentinel&&(f.charset==="iso-8859-1"?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),x.length>0?O+x:""},Ns}var Is,Pc;function Bf(){if(Pc)return Is;Pc=1;var n=Fc(),e=Object.prototype.hasOwnProperty,t=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},r=function(m){return m.replace(/&#(\d+);/g,function(p,g){return String.fromCharCode(parseInt(g,10))})},s=function(m,p,g){if(m&&typeof m=="string"&&p.comma&&m.indexOf(",")>-1)return m.split(",");if(p.throwOnLimitExceeded&&g>=p.arrayLimit)throw new RangeError("Array limit exceeded. Only "+p.arrayLimit+" element"+(p.arrayLimit===1?"":"s")+" allowed in an array.");return m},o="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",c=function(p,g){var A={__proto__:null},R=g.ignoreQueryPrefix?p.replace(/^\?/,""):p;R=R.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var v=g.parameterLimit===1/0?void 0:g.parameterLimit,f=R.split(g.delimiter,g.throwOnLimitExceeded?v+1:v);if(g.throwOnLimitExceeded&&f.length>v)throw new RangeError("Parameter limit exceeded. Only "+v+" parameter"+(v===1?"":"s")+" allowed.");var T=-1,b,M=g.charset;if(g.charsetSentinel)for(b=0;b<f.length;++b)f[b].indexOf("utf8=")===0&&(f[b]===l?M="utf-8":f[b]===o&&(M="iso-8859-1"),T=b,b=f.length);for(b=0;b<f.length;++b)if(b!==T){var w=f[b],S=w.indexOf("]="),C=S===-1?w.indexOf("="):S+1,k,y;C===-1?(k=g.decoder(w,i.decoder,M,"key"),y=g.strictNullHandling?null:""):(k=g.decoder(w.slice(0,C),i.decoder,M,"key"),y=n.maybeMap(s(w.slice(C+1),g,t(A[k])?A[k].length:0),function(x){return g.decoder(x,i.decoder,M,"value")})),y&&g.interpretNumericEntities&&M==="iso-8859-1"&&(y=r(String(y))),w.indexOf("[]=")>-1&&(y=t(y)?[y]:y);var D=e.call(A,k);D&&g.duplicates==="combine"?A[k]=n.combine(A[k],y):(!D||g.duplicates==="last")&&(A[k]=y)}return A},u=function(m,p,g,A){var R=0;if(m.length>0&&m[m.length-1]==="[]"){var v=m.slice(0,-1).join("");R=Array.isArray(p)&&p[v]?p[v].length:0}for(var f=A?p:s(p,g,R),T=m.length-1;T>=0;--T){var b,M=m[T];if(M==="[]"&&g.parseArrays)b=g.allowEmptyArrays&&(f===""||g.strictNullHandling&&f===null)?[]:n.combine([],f);else{b=g.plainObjects?{__proto__:null}:{};var w=M.charAt(0)==="["&&M.charAt(M.length-1)==="]"?M.slice(1,-1):M,S=g.decodeDotInKeys?w.replace(/%2E/g,"."):w,C=parseInt(S,10);!g.parseArrays&&S===""?b={0:f}:!isNaN(C)&&M!==S&&String(C)===S&&C>=0&&g.parseArrays&&C<=g.arrayLimit?(b=[],b[C]=f):S!=="__proto__"&&(b[S]=f)}f=b}return f},d=function(p,g,A,R){if(p){var v=A.allowDots?p.replace(/\.([^.[]+)/g,"[$1]"):p,f=/(\[[^[\]]*])/,T=/(\[[^[\]]*])/g,b=A.depth>0&&f.exec(v),M=b?v.slice(0,b.index):v,w=[];if(M){if(!A.plainObjects&&e.call(Object.prototype,M)&&!A.allowPrototypes)return;w.push(M)}for(var S=0;A.depth>0&&(b=T.exec(v))!==null&&S<A.depth;){if(S+=1,!A.plainObjects&&e.call(Object.prototype,b[1].slice(1,-1))&&!A.allowPrototypes)return;w.push(b[1])}if(b){if(A.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+A.depth+" and strictDepth is true");w.push("["+v.slice(b.index)+"]")}return u(w,g,A,R)}},h=function(p){if(!p)return i;if(typeof p.allowEmptyArrays<"u"&&typeof p.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof p.decodeDotInKeys<"u"&&typeof p.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(p.decoder!==null&&typeof p.decoder<"u"&&typeof p.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof p.charset<"u"&&p.charset!=="utf-8"&&p.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof p.throwOnLimitExceeded<"u"&&typeof p.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var g=typeof p.charset>"u"?i.charset:p.charset,A=typeof p.duplicates>"u"?i.duplicates:p.duplicates;if(A!=="combine"&&A!=="first"&&A!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var R=typeof p.allowDots>"u"?p.decodeDotInKeys===!0?!0:i.allowDots:!!p.allowDots;return{allowDots:R,allowEmptyArrays:typeof p.allowEmptyArrays=="boolean"?!!p.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:typeof p.allowPrototypes=="boolean"?p.allowPrototypes:i.allowPrototypes,allowSparse:typeof p.allowSparse=="boolean"?p.allowSparse:i.allowSparse,arrayLimit:typeof p.arrayLimit=="number"?p.arrayLimit:i.arrayLimit,charset:g,charsetSentinel:typeof p.charsetSentinel=="boolean"?p.charsetSentinel:i.charsetSentinel,comma:typeof p.comma=="boolean"?p.comma:i.comma,decodeDotInKeys:typeof p.decodeDotInKeys=="boolean"?p.decodeDotInKeys:i.decodeDotInKeys,decoder:typeof p.decoder=="function"?p.decoder:i.decoder,delimiter:typeof p.delimiter=="string"||n.isRegExp(p.delimiter)?p.delimiter:i.delimiter,depth:typeof p.depth=="number"||p.depth===!1?+p.depth:i.depth,duplicates:A,ignoreQueryPrefix:p.ignoreQueryPrefix===!0,interpretNumericEntities:typeof p.interpretNumericEntities=="boolean"?p.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:typeof p.parameterLimit=="number"?p.parameterLimit:i.parameterLimit,parseArrays:p.parseArrays!==!1,plainObjects:typeof p.plainObjects=="boolean"?p.plainObjects:i.plainObjects,strictDepth:typeof p.strictDepth=="boolean"?!!p.strictDepth:i.strictDepth,strictNullHandling:typeof p.strictNullHandling=="boolean"?p.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:typeof p.throwOnLimitExceeded=="boolean"?p.throwOnLimitExceeded:!1}};return Is=function(m,p){var g=h(p);if(m===""||m===null||typeof m>"u")return g.plainObjects?{__proto__:null}:{};for(var A=typeof m=="string"?c(m,g):m,R=g.plainObjects?{__proto__:null}:{},v=Object.keys(A),f=0;f<v.length;++f){var T=v[f],b=d(T,A[T],g,typeof m=="string");R=n.merge(R,b,g)}return g.allowSparse===!0?R:n.compact(R)},Is}var Vs,Nc;function Ff(){if(Nc)return Vs;Nc=1;var n=Of(),e=Bf(),t=_s();return Vs={formats:t,parse:e,stringify:n},Vs}var _f=Ff();const Ic=Nl(_f),Pf=["action"],Nf=["value"],If=["name","value"],Vf=["value"],Hf=["disabled"],zf=Ne(a.defineComponent({__name:"ExportComponent",props:{type:{},action:{},filters:{},buttonText:{},csrfToken:{}},setup(n){const e=n,t=a.ref(),i=a.ref([]),r=a.computed(()=>e.csrfToken),s=async()=>{t.value&&t.value.submit()},o=()=>{if(!e.filters)return!1;if(typeof e.filters=="string")return l(),!0;u()},l=()=>{i.value=[];const d=/^.*\?/gm,h=e.filters.replace(d,""),m=Ic.parse(h);i.value=c(m)},c=d=>Ic.stringify(d,{encode:!1}).split("&").map(h=>{const m=h.split("=");return{key:m[0],value:m[1]}}).filter(({key:h,value:m})=>h.length&&m.length),u=()=>{if(i.value=[],!e.filters)return!1;i.value=c(e.filters)};return a.watch(()=>e.filters,()=>{o()},{deep:!1}),a.onMounted(()=>{o()}),(d,h)=>(a.openBlock(),a.createElementBlock("form",{target:"_blank",action:d.action,method:"POST",ref_key:"reportForm",ref:t},[d.type?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:"type",value:d.type},null,8,Nf)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,m=>(a.openBlock(),a.createElementBlock("input",{key:m.key,type:"hidden",name:m.key,value:m.value},null,8,If))),128)),a.createElementVNode("input",{type:"hidden",name:"_token",value:r.value},null,8,Vf),a.createElementVNode("button",{type:"button",class:a.normalizeClass(["col-auto export-button",{disabled:!d.action}]),onClick:s,disabled:!d.action},[a.createTextVNode(a.toDisplayString(d.buttonText)+" ",1),h[0]||(h[0]=a.createElementVNode("i",{class:"ps-2 bi bi-file-earmark-arrow-down-fill"},null,-1))],10,Hf)],8,Pf))}}),[["__scopeId","data-v-db74d2e3"]]);var zn={exports:{}};/*!
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DefaultButton.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DefaultButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DefaultButton.vue"],"names":[],"mappings":";WAsRkB,OAAO,IAAI;YADV,OAAO,CAAC,OAAO,KAAK,CAAC;;;;;;;;;;;;AAzHxC,8DAAqC;AArDrC;;;;;;;;;;EAmDG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineNuxtConfig } from 'nuxt/config';
|
|
2
2
|
|
|
3
3
|
export default defineNuxtConfig({
|
|
4
|
-
// Layer
|
|
4
|
+
// Layer: extends: ['r3ui-lib/nuxt-errors'] — error.vue, plugin, utils.
|
|
5
5
|
// Runtime-зависимости (vue, nuxt) предоставляет host app.
|
|
6
6
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "r3ui-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.4",
|
|
5
5
|
"description": "Modern Vue 3 UI component library with TypeScript support",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"import": "./dist/login.es.js",
|
|
38
38
|
"require": "./dist/login.umd.js"
|
|
39
39
|
},
|
|
40
|
+
"./useBreadcrumbs": "./useBreadcrumbs.ts",
|
|
40
41
|
"./nuxt-errors": "./nuxt-errors/nuxt.config.ts",
|
|
41
42
|
"./nuxt-errors/*": "./nuxt-errors/*",
|
|
42
43
|
"./styles": "./dist/r3ui-lib.css",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"dist",
|
|
47
48
|
"assets",
|
|
48
49
|
"nuxt-errors",
|
|
50
|
+
"useBreadcrumbs.ts",
|
|
49
51
|
"README.md",
|
|
50
52
|
"LICENSE",
|
|
51
53
|
"CHANGELOG.md"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { navigateTo, useI18n, useRouter, watch } from '#imports';
|
|
2
|
+
import { useBreadcrumbs as useBreadcrumbsBase } from 'r3ui-lib';
|
|
3
|
+
|
|
4
|
+
export function useBreadcrumbs() {
|
|
5
|
+
const router = useRouter();
|
|
6
|
+
const { t } = useI18n();
|
|
7
|
+
|
|
8
|
+
const breadcrumbsComposable = useBreadcrumbsBase({
|
|
9
|
+
navigate: (path: string) => navigateTo(path),
|
|
10
|
+
translate: (key: string) => t(key),
|
|
11
|
+
getCurrentRoute: () => {
|
|
12
|
+
const route = router.currentRoute.value;
|
|
13
|
+
const name =
|
|
14
|
+
typeof route.name === 'string' && route.name ? route.name : 'home';
|
|
15
|
+
return { path: route.path, name };
|
|
16
|
+
},
|
|
17
|
+
maxItems: 5,
|
|
18
|
+
storageKey: 'breadcrumbs',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
watch(
|
|
22
|
+
() => {
|
|
23
|
+
const route = router.currentRoute.value;
|
|
24
|
+
const name = typeof route.name === 'string' ? route.name : '';
|
|
25
|
+
return `${route.path}\0${name}`;
|
|
26
|
+
},
|
|
27
|
+
() => {
|
|
28
|
+
breadcrumbsComposable.updateBreadcrumbs();
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
return breadcrumbsComposable;
|
|
33
|
+
}
|