pangea-lib 4.0.407 → 4.0.409
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/main.cjs.js +2 -2
- package/dist/main.css +1 -1
- package/dist/main.es.js +11 -11
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -8628,7 +8628,7 @@ X1.version="2.30.1";xT1(E3);X1.fn=j1;X1.min=lD1;X1.max=fD1;X1.now=uD1;X1.utc=Ct;
|
|
|
8628
8628
|
`),p1}function u1(i1,p1){if(A(i1)&&i1.nextElementSibling!=null&&!Y(p1,`
|
|
8629
8629
|
|
|
8630
8630
|
`)){var b1=i1.offsetHeight+parseFloat(W(i1).marginTop)+parseFloat(W(i1).marginBottom);i1.nextElementSibling.offsetTop>i1.offsetTop+b1*1.5&&p1.insert(`
|
|
8631
|
-
`)}return p1}function t1(i1,p1){var b1={},v1=i1.style||{};return v1.fontStyle&&W(i1).fontStyle==="italic"&&(b1.italic=!0),v1.fontWeight&&(W(i1).fontWeight.startsWith("bold")||parseInt(W(i1).fontWeight)>=700)&&(b1.bold=!0),Object.keys(b1).length>0&&(p1=S(p1,b1)),parseFloat(v1.textIndent||0)>0&&(p1=new d.default().insert(" ").concat(p1)),p1}function l1(i1,p1){var b1=i1.data;if(i1.parentNode.tagName==="O:P")return p1.insert(b1.trim());if(b1.trim().length===0&&i1.parentNode.classList.contains("ql-clipboard"))return p1;if(!W(i1.parentNode).whiteSpace.startsWith("pre")){var v1=function(D1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&D1?" ":R1};b1=b1.replace(/\r\n/g," ").replace(/\n/g," "),b1=b1.replace(/\s\s+/g,v1.bind(v1,!0)),(i1.previousSibling==null&&A(i1.parentNode)||i1.previousSibling!=null&&A(i1.previousSibling))&&(b1=b1.replace(/^\s+/,v1.bind(v1,!1))),(i1.nextSibling==null&&A(i1.parentNode)||i1.nextSibling!=null&&A(i1.nextSibling))&&(b1=b1.replace(/\s+$/,v1.bind(v1,!1)))}return p1.insert(b1)}c.default=T,c.matchAttributor=a1,c.matchBlot=e1,c.matchNewline=k1,c.matchSpacing=u1,c.matchText=l1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"optimize",value:function(g){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);p.blotName="bold",p.tagName=["STRONG","B"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function L(w,P){var j=[],E=!0,F=!1,R=void 0;try{for(var K=w[Symbol.iterator](),Z;!(E=(Z=K.next()).done)&&(j.push(Z.value),!(P&&j.length===P));E=!0);}catch(U){F=!0,R=U}finally{try{!E&&K.return&&K.return()}finally{if(F)throw R}}return j}return function(w,P){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return L(w,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function L(w,P){for(var j=0;j<P.length;j++){var E=P[j];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,P,j){return P&&L(w.prototype,P),j&&L(w,j),w}}(),o=n(2),l=g(o),f=n(0),u=g(f),d=n(5),h=g(d),p=n(10),v=g(p),m=n(9),y=g(m);function g(L){return L&&L.__esModule?L:{default:L}}function M(L,w,P){return w in L?Object.defineProperty(L,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):L[w]=P,L}function x(L,w){if(!(L instanceof w))throw new TypeError("Cannot call a class as a function")}function k(L,w){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:L}function b(L,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);L.prototype=Object.create(w&&w.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(L,w):L.__proto__=w)}var _=(0,v.default)("quill:toolbar"),C=function(L){b(w,L);function w(P,j){x(this,w);var E=k(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,P,j));if(Array.isArray(E.options.container)){var F=document.createElement("div");V(F,E.options.container),P.container.parentNode.insertBefore(F,P.container),E.container=F}else typeof E.options.container=="string"?E.container=document.querySelector(E.options.container):E.container=E.options.container;if(!(E.container instanceof HTMLElement)){var R;return R=_.error("Container required for toolbar",E.options),k(E,R)}return E.container.classList.add("ql-toolbar"),E.controls=[],E.handlers={},Object.keys(E.options.handlers).forEach(function(K){E.addHandler(K,E.options.handlers[K])}),[].forEach.call(E.container.querySelectorAll("button, select"),function(K){E.attach(K)}),E.quill.on(h.default.events.EDITOR_CHANGE,function(K,Z){K===h.default.events.SELECTION_CHANGE&&E.update(Z)}),E.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){var K=E.quill.selection.getRange(),Z=r(K,1),U=Z[0];E.update(U)}),E}return i(w,[{key:"addHandler",value:function(j,E){this.handlers[j]=E}},{key:"attach",value:function(j){var E=this,F=[].find.call(j.classList,function(K){return K.indexOf("ql-")===0});if(F){if(F=F.slice(3),j.tagName==="BUTTON"&&j.setAttribute("type","button"),this.handlers[F]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[F]==null){_.warn("ignoring attaching to disabled format",F,j);return}if(u.default.query(F)==null){_.warn("ignoring attaching to nonexistent format",F,j);return}}var R=j.tagName==="SELECT"?"change":"click";j.addEventListener(R,function(K){var Z=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var U=j.options[j.selectedIndex];U.hasAttribute("selected")?Z=!1:Z=U.value||!1}else j.classList.contains("ql-active")?Z=!1:Z=j.value||!j.hasAttribute("value"),K.preventDefault();E.quill.focus();var I=E.quill.selection.getRange(),T=r(I,1),S=T[0];if(E.handlers[F]!=null)E.handlers[F].call(E,Z);else if(u.default.query(F).prototype instanceof u.default.Embed){if(Z=prompt("Enter "+F),!Z)return;E.quill.updateContents(new l.default().retain(S.index).delete(S.length).insert(M({},F,Z)),h.default.sources.USER)}else E.quill.format(F,Z,h.default.sources.USER);E.update(S)}),this.controls.push([F,j])}}},{key:"update",value:function(j){var E=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(F){var R=r(F,2),K=R[0],Z=R[1];if(Z.tagName==="SELECT"){var U=void 0;if(j==null)U=null;else if(E[K]==null)U=Z.querySelector("option[selected]");else if(!Array.isArray(E[K])){var I=E[K];typeof I=="string"&&(I=I.replace(/\"/g,'\\"')),U=Z.querySelector('option[value="'+I+'"]')}U==null?(Z.value="",Z.selectedIndex=-1):U.selected=!0}else if(j==null)Z.classList.remove("ql-active");else if(Z.hasAttribute("value")){var T=E[K]===Z.getAttribute("value")||E[K]!=null&&E[K].toString()===Z.getAttribute("value")||E[K]==null&&!Z.getAttribute("value");Z.classList.toggle("ql-active",T)}else Z.classList.toggle("ql-active",E[K]!=null)})}}]),w}(y.default);C.DEFAULTS={};function H(L,w,P){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+w),P!=null&&(j.value=P),L.appendChild(j)}function V(L,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(P){var j=document.createElement("span");j.classList.add("ql-formats"),P.forEach(function(E){if(typeof E=="string")H(j,E);else{var F=Object.keys(E)[0],R=E[F];Array.isArray(R)?N(j,F,R):H(j,F,R)}}),L.appendChild(j)})}function N(L,w,P){var j=document.createElement("select");j.classList.add("ql-"+w),P.forEach(function(E){var F=document.createElement("option");E!==!1?F.setAttribute("value",E):F.setAttribute("selected","selected"),j.appendChild(F)}),L.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var w=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(E){u.default.query(E,u.default.Scope.INLINE)!=null&&w.quill.format(E,!1)})}else this.quill.removeFormat(P,h.default.sources.USER)},direction:function(w){var P=this.quill.getFormat().align;w==="rtl"&&P==null?this.quill.format("align","right",h.default.sources.USER):!w&&P==="right"&&this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",w,h.default.sources.USER)},indent:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P),E=parseInt(j.indent||0);if(w==="+1"||w==="-1"){var F=w==="+1"?1:-1;j.direction==="rtl"&&(F*=-1),this.quill.format("indent",E+F,h.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,h.default.sources.USER)},list:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P);w==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",w,h.default.sources.USER)}}},c.default=C,c.addControls=V},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.label.innerHTML=g,M.container.classList.add("ql-color-picker"),[].slice.call(M.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),M}return r(m,[{key:"buildItem",value:function(g){var M=i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,g);return M.style.backgroundColor=g.getAttribute("value")||"",M}},{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M);var x=this.label.querySelector(".ql-color-label"),k=g&&g.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=k:x.style.fill=k)}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.container.classList.add("ql-icon-picker"),[].forEach.call(M.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=g[x.getAttribute("data-value")||""]}),M.defaultItem=M.container.querySelector(".ql-selected"),M.selectItem(M.defaultItem),M}return r(m,[{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var d=0;d<u.length;d++){var h=u[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,u,d){return u&&l(f.prototype,u),d&&l(f,d),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(f,u){var d=this;i(this,l),this.quill=f,this.boundsContainer=u||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var d=u.left+u.width/2-this.root.offsetWidth/2,h=u.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=h+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>p.right&&(m=p.right-v.right,this.root.style.left=d+m+"px"),v.left<p.left&&(m=p.left-v.left,this.root.style.left=d+m+"px"),v.bottom>p.bottom){var y=v.bottom-v.top,g=u.bottom-u.top+y;this.root.style.top=h-g+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=o},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function N(L,w){var P=[],j=!0,E=!1,F=void 0;try{for(var R=L[Symbol.iterator](),K;!(j=(K=R.next()).done)&&(P.push(K.value),!(w&&P.length===w));j=!0);}catch(Z){E=!0,F=Z}finally{try{!j&&R.return&&R.return()}finally{if(E)throw F}}return P}return function(L,w){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return N(L,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function N(L,w,P){L===null&&(L=Function.prototype);var j=Object.getOwnPropertyDescriptor(L,w);if(j===void 0){var E=Object.getPrototypeOf(L);return E===null?void 0:N(E,w,P)}else{if("value"in j)return j.value;var F=j.get;return F===void 0?void 0:F.call(P)}},o=function(){function N(L,w){for(var P=0;P<w.length;P++){var j=w[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(L,j.key,j)}}return function(L,w,P){return w&&N(L.prototype,w),P&&N(L,P),L}}(),l=n(3),f=x(l),u=n(8),d=x(u),h=n(43),p=x(h),v=n(27),m=x(v),y=n(15),g=n(41),M=x(g);function x(N){return N&&N.__esModule?N:{default:N}}function k(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function b(N,L){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:N}function _(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(N,L):N.__proto__=L)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],H=function(N){_(L,N);function L(w,P){k(this,L),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=C);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.quill.container.classList.add("ql-snow"),j}return o(L,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),M.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),M.default),this.tooltip=new V(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,E){P.handlers.link.call(P,!E.format.link)})}}]),L}(p.default);H.DEFAULTS=(0,f.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(L){if(L){var w=this.quill.getSelection();if(w==null||w.length==0)return;var P=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var j=this.quill.theme.tooltip;j.edit("link",P)}else this.quill.format("link",!1)}}}}});var V=function(N){_(L,N);function L(w,P){k(this,L);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.preview=j.root.querySelector("a.ql-preview"),j}return o(L,[{key:"listen",value:function(){var P=this;i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(P.linkRange!=null){var E=P.linkRange;P.restoreFocus(),P.quill.formatText(E,"link",!1,d.default.sources.USER),delete P.linkRange}j.preventDefault(),P.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(j,E,F){if(j!=null){if(j.length===0&&F===d.default.sources.USER){var R=P.quill.scroll.descendant(m.default,j.index),K=r(R,2),Z=K[0],U=K[1];if(Z!=null){P.linkRange=new y.Range(j.index-U,Z.length());var I=m.default.formats(Z.domNode);P.preview.textContent=I,P.preview.setAttribute("href",I),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),L}(h.BaseTooltip);V.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),c.default=H},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),o=n(36),l=n(38),f=n(64),u=n(65),d=C1(u),h=n(66),p=C1(h),v=n(67),m=C1(v),y=n(37),g=n(26),M=n(39),x=n(40),k=n(56),b=C1(k),_=n(68),C=C1(_),H=n(27),V=C1(H),N=n(69),L=C1(N),w=n(70),P=C1(w),j=n(71),E=C1(j),F=n(72),R=C1(F),K=n(73),Z=C1(K),U=n(13),I=C1(U),T=n(74),S=C1(T),W=n(75),Y=C1(W),A=n(57),B=C1(A),Q=n(41),a1=C1(Q),e1=n(28),s1=C1(e1),G=n(59),f1=C1(G),k1=n(60),u1=C1(k1),t1=n(61),l1=C1(t1),i1=n(108),p1=C1(i1),b1=n(62),v1=C1(b1);function C1(D1){return D1&&D1.__esModule?D1:{default:D1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":M.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":M.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":M.FontClass,"formats/size":x.SizeClass,"formats/blockquote":d.default,"formats/code-block":I.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":b.default,"formats/code":U.Code,"formats/italic":C.default,"formats/link":V.default,"formats/script":L.default,"formats/strike":P.default,"formats/underline":E.default,"formats/image":R.default,"formats/video":Z.default,"formats/list/item":v.ListItem,"modules/formula":S.default,"modules/syntax":Y.default,"modules/toolbar":B.default,"themes/bubble":p1.default,"themes/snow":v1.default,"ui/icons":a1.default,"ui/picker":s1.default,"ui/icon-picker":u1.default,"ui/color-picker":f1.default,"ui/tooltip":l1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function m(y,g){for(var M=0;M<g.length;M++){var x=g[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,M){return g&&m(y.prototype,g),M&&m(y,M),y}}(),i=function m(y,g,M){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,g,M)}else{if("value"in x)return x.value;var b=x.get;return b===void 0?void 0:b.call(M)}},o=n(0),l=f(o);function f(m){return m&&m.__esModule?m:{default:m}}function u(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function d(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p=function(m){h(y,m);function y(){return u(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"add",value:function(M,x){if(x==="+1"||x==="-1"){var k=this.value(M)||0;x=x==="+1"?k+1:k-1}return x===0?(this.remove(M),!0):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,M,x)}},{key:"canAdd",value:function(M,x){return i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,x)||i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,parseInt(x))}},{key:"value",value:function(M){return parseInt(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,M))||void 0}}]),y}(l.default.Attributor.Class),v=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});c.IndentClass=v},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(4),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="blockquote",d.tagName="blockquote",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function p(v,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,m,y){return m&&p(v.prototype,m),y&&p(v,y),v}}(),i=n(4),o=l(i);function l(p){return p&&p.__esModule?p:{default:p}}function f(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function u(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function d(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var h=function(p){d(v,p);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),v}(o.default);h.blotName="header",h.tagName=["H1","H2","H3","H4","H5","H6"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function k(b,_){for(var C=0;C<_.length;C++){var H=_[C];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(b,H.key,H)}}return function(b,_,C){return _&&k(b.prototype,_),C&&k(b,C),b}}(),i=function k(b,_,C){b===null&&(b=Function.prototype);var H=Object.getOwnPropertyDescriptor(b,_);if(H===void 0){var V=Object.getPrototypeOf(b);return V===null?void 0:k(V,_,C)}else{if("value"in H)return H.value;var N=H.get;return N===void 0?void 0:N.call(C)}},o=n(0),l=p(o),f=n(4),u=p(f),d=n(25),h=p(d);function p(k){return k&&k.__esModule?k:{default:k}}function v(k,b,_){return b in k?Object.defineProperty(k,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):k[b]=_,k}function m(k,b){if(!(k instanceof b))throw new TypeError("Cannot call a class as a function")}function y(k,b){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:k}function g(k,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);k.prototype=Object.create(b&&b.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(k,b):k.__proto__=b)}var M=function(k){g(b,k);function b(){return m(this,b),y(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(C,H){C===x.blotName&&!H?this.replaceWith(l.default.create(this.statics.scope)):i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,C,H)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,H){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,H),this):(this.parent.unwrap(),i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,C,H))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(b.__proto__||Object.getPrototypeOf(b),"formats",this).call(this,C)}}]),b}(u.default);M.blotName="list-item",M.tagName="LI";var x=function(k){g(b,k),r(b,null,[{key:"create",value:function(C){var H=C==="ordered"?"OL":"UL",V=i(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,H);return(C==="checked"||C==="unchecked")&&V.setAttribute("data-checked",C==="checked"),V}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function b(_){m(this,b);var C=y(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_)),H=function(N){if(N.target.parentNode===_){var L=C.statics.formats(_),w=l.default.find(N.target);L==="checked"?w.format("list","unchecked"):L==="unchecked"&&w.format("list","checked")}};return _.addEventListener("touchstart",H),_.addEventListener("mousedown",H),C}return r(b,[{key:"format",value:function(C,H){this.children.length>0&&this.children.tail.format(C,H)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,H){if(C instanceof M)i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,C,H);else{var V=H==null?this.length():H.offset(this),N=this.split(V);N.parent.insertBefore(C,N)}}},{key:"optimize",value:function(C){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,C);var H=this.next;H!=null&&H.prev===this&&H.statics.blotName===this.statics.blotName&&H.domNode.tagName===this.domNode.tagName&&H.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(H.moveChildren(this),H.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var H=l.default.create(this.statics.defaultChild);C.moveChildren(H),this.appendChild(H)}i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,C)}}]),b}(h.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[M],c.ListItem=M,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="italic",d.tagName=["EM","I"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),m}(l.default);p.blotName="script",p.tagName=["SUB","SUP"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="strike",d.tagName="S",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="underline",d.tagName="U",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(0),l=u(o),f=n(27);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["alt","height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return typeof x=="string"&&k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,f.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(l.default.Embed);m.blotName="image",m.tagName="IMG",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(4),l=n(27),f=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(o.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(k,b){for(var _=0;_<b.length;_++){var C=b[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(k,C.key,C)}}return function(k,b,_){return b&&x(k.prototype,b),_&&x(k,_),k}}(),i=function x(k,b,_){k===null&&(k=Function.prototype);var C=Object.getOwnPropertyDescriptor(k,b);if(C===void 0){var H=Object.getPrototypeOf(k);return H===null?void 0:x(H,b,_)}else{if("value"in C)return C.value;var V=C.get;return V===void 0?void 0:V.call(_)}},o=n(35),l=p(o),f=n(5),u=p(f),d=n(9),h=p(d);function p(x){return x&&x.__esModule?x:{default:x}}function v(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function m(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function y(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var g=function(x){y(k,x);function k(){return v(this,k),m(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,null,[{key:"create",value:function(_){var C=i(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",_)),C}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),k}(l.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var M=function(x){y(k,x),r(k,null,[{key:"register",value:function(){u.default.register(g,!0)}}]);function k(){v(this,k);var b=m(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return b}return k}(h.default);c.FormulaBlot=g,c.default=M},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function _(C,H){for(var V=0;V<H.length;V++){var N=H[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(C,N.key,N)}}return function(C,H,V){return H&&_(C.prototype,H),V&&_(C,V),C}}(),i=function _(C,H,V){C===null&&(C=Function.prototype);var N=Object.getOwnPropertyDescriptor(C,H);if(N===void 0){var L=Object.getPrototypeOf(C);return L===null?void 0:_(L,H,V)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(V)}},o=n(0),l=m(o),f=n(5),u=m(f),d=n(9),h=m(d),p=n(13),v=m(p);function m(_){return _&&_.__esModule?_:{default:_}}function y(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function g(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function M(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var x=function(_){M(C,_);function C(){return y(this,C),g(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(V){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,V)}},{key:"highlight",value:function(V){var N=this.domNode.textContent;this.cachedText!==N&&((N.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=V(N),this.domNode.normalize(),this.attach()),this.cachedText=N)}}]),C}(v.default);x.className="ql-syntax";var k=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),b=function(_){M(C,_),r(C,null,[{key:"register",value:function(){u.default.register(k,!0),u.default.register(x,!0)}}]);function C(H,V){y(this,C);var N=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,H,V));if(typeof N.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return N.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){N.highlight(),L=null},N.options.interval)}),N.highlight(),N}return r(C,[{key:"highlight",value:function(){var V=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var N=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(L){L.highlight(V.options.highlight)}),this.quill.update(u.default.sources.SILENT),N!=null&&this.quill.setSelection(N,u.default.sources.SILENT)}}}]),C}(h.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(_){var C=window.hljs.highlightAuto(_);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=k,c.default=b},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.BubbleTooltip=void 0;var r=function C(H,V,N){H===null&&(H=Function.prototype);var L=Object.getOwnPropertyDescriptor(H,V);if(L===void 0){var w=Object.getPrototypeOf(H);return w===null?void 0:C(w,V,N)}else{if("value"in L)return L.value;var P=L.get;return P===void 0?void 0:P.call(N)}},i=function(){function C(H,V){for(var N=0;N<V.length;N++){var L=V[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(H,L.key,L)}}return function(H,V,N){return V&&C(H.prototype,V),N&&C(H,N),H}}(),o=n(3),l=y(o),f=n(8),u=y(f),d=n(43),h=y(d),p=n(15),v=n(41),m=y(v);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,H){if(!(C instanceof H))throw new TypeError("Cannot call a class as a function")}function M(C,H){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:C}function x(C,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);C.prototype=Object.create(H&&H.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(C,H):C.__proto__=H)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(C){x(H,C);function H(V,N){g(this,H),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=k);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.container.classList.add("ql-bubble"),L}return i(H,[{key:"extendToolbar",value:function(N){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(N.container),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),m.default)}}]),H}(h.default);b.DEFAULTS=(0,l.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(H){H?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(C){x(H,C);function H(V,N){g(this,H);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.on(u.default.events.EDITOR_CHANGE,function(w,P,j,E){if(w===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&E===u.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var F=L.quill.getLines(P.index,P.length);if(F.length===1)L.position(L.quill.getBounds(P));else{var R=F[F.length-1],K=L.quill.getIndex(R),Z=Math.min(R.length()-1,P.index+P.length-K),U=L.quill.getBounds(new p.Range(K,Z));L.position(U)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return i(H,[{key:"listen",value:function(){var N=this;r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){N.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!N.root.classList.contains("ql-hidden")){var L=N.quill.getSelection();L!=null&&N.position(N.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(N){var L=r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"position",this).call(this,N),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",L===0)return L;w.style.marginLeft=-1*L-w.offsetWidth/2+"px"}}]),H}(d.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),c.BubbleTooltip=_,c.default=b},function(a,c,n){a.exports=n(63)}]).default})})(Pn1);var us2=Pn1.exports;const ds2=JS1(us2);const hs2={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},ps2={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const a={editorOption:{},quill:null};let c="";s.watch(()=>e.value,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.content,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.disabled,o=>{a.quill&&a.quill.enable(!o)});const n=s.ref(null),r=(o,l)=>{for(const f in l)!o[f]||f!=="modules"?o[f]=l[f]:r(o[f],l[f]);return o},i=()=>{n.value&&(a.editorOption=r(hs2,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new ds2(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",o=>{o?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let o=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();o==="<p><br></p>"&&(o=""),c=o,t.emit("update:value",c),t.emit("change",{html:o,text:f,quill:l})}),t.emit("ready",a.quill))};return s.onBeforeUnmount(()=>{const o=n.value.previousSibling;o&&o.nodeType===1&&o.className.indexOf("ql-toolbar")>-1&&o.parentNode.removeChild(o)}),s.onMounted(()=>{i()}),s.onUnmounted(()=>{a.quill=null}),{editor:n}}},ms2={ref:"editor"};function vs2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("section",ms2,null,512)}const NR=Q1(ps2,[["render",vs2]]);NR.install=function(e){e.component(NR.name,NR)};const ys2=s.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=s.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=s.computed(()=>a.value>t.maxLength);return(n,r)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},s.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const LX=Q1(ys2,[["__scopeId","data-v-b4f7d8d8"]]),gs2={class:"editor__container"},Ms2={class:"editor__footer"},ks2={class:"editor__status"},xs2=s.defineComponent({__name:"PgaEditor",props:s.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=Te.getConfig(),n=$2("pgaEditor"),r={placeholder:"",modules:{toolbar:[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]}},i=s.ref(t.value),o=s.ref(!1);let l;const f=s.ref(!1),u=s.ref(!1),d=s.computed(()=>a.maxContentLength||c.stringLengths.hyperLong),h=s.computed(()=>lc1(t.value)),p=s.computed(()=>h.value.length),v=s.computed(()=>p.value>d.value);s.watch(t,()=>{f.value=!1,u.value=!1,clearTimeout(l),l=setTimeout(()=>m(),1e3*3)});async function m(){if(i.value!==t.value){if(v.value){u.value=!0;return}try{o.value=!0,i.value=await a.saveFn(t.value),f.value=!0,setTimeout(()=>f.value=!1,1e3*3)}finally{o.value=!1}}}return(y,g)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-editor",{"pga-editor--loading":o.value}])},[s.createElementVNode("div",gs2,[s.createVNode(s.unref(NR),{value:t.value,"onUpdate:value":g[0]||(g[0]=M=>t.value=M),options:r},null,8,["value"])]),s.createElementVNode("div",Ms2,[s.createVNode(LX,{content:h.value,maxLength:d.value},null,8,["content","maxLength"]),s.createElementVNode("div",ks2,[o.value?(s.openBlock(),s.createBlock(w8,{key:0,size:"s",noCenter:""})):f.value?(s.openBlock(),s.createBlock(D3,{key:1,icon:"save",text:s.unref(n)("savedMsg"),color:"success"},null,8,["text"])):u.value?(s.openBlock(),s.createBlock(D3,{key:2,icon:"circle-x",text:s.unref(n)("saveErrorMsg"),color:"danger"},null,8,["text"])):s.createCommentVNode("",!0)])])],2))}});const bs2=Q1(xs2,[["__scopeId","data-v-265fe9ad"]]),zs2={class:"pga-info-card"},Cs2={key:1,class:"info-card__content"},_s2=s.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",zs2,[t.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock("div",Cs2,[s.createVNode(U3,{icon:t.type==="success"?"circle-check":"circle-x",color:t.type,size:"1.9rem"},null,8,["icon","color"]),s.createVNode(D3,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(s.openBlock(),s.createBlock(D3,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const ws2=Q1(_s2,[["__scopeId","data-v-7b42833e"]]),rq=s.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=s.computed(()=>X3(t.info));return(c,n)=>{const r=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createBlock(U3,{key:0,icon:"circle-help",size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):s.createCommentVNode("",!0)}}}),Hs2=s.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(s.openBlock(),s.createBlock(U3,{icon:t.isEnabled?"circle-check":"circle-x",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Ls2=s.defineComponent({__name:"PgaItemSelected",props:s.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=s.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=s.computed({get(){if(c.item)return!!a.value.find(o=>o.id===c.item.id);for(const i of c.items)if(!a.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?a.value.push(c.item):a.value=a.value.filter(o=>o.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["item-selected",{"item-selected--selected":n.value}]),onClick:o[0]||(o[0]=l=>r())},[n.value?(s.openBlock(),s.createBlock(U3,{key:0,class:"item-selected__check-icon",icon:"check"})):s.createCommentVNode("",!0)],2))}});const IY=Q1(Ls2,[["__scopeId","data-v-4c2eea9f"]]),Vs2={class:"modal__header"},Ss2=["textContent"],Ns2={class:"modal__body"},As2={key:0,class:"modal__footer"},Ts2=s.defineComponent({__name:"PgaModal",props:s.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(r=>({"06ae9bd8":r.width}));const a=s.useModel(e,"modelValue"),c=t,n=$2("pgaModal");return s.watch(a,r=>If(!r)),(r,i)=>a.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pga-modal",onMousedown:i[4]||(i[4]=o=>a.value=!1)},[s.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",Vs2,[s.createElementVNode("span",{class:"modal__title",textContent:s.toDisplayString(r.title)},null,8,Ss2),s.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=o=>a.value=!1)},[s.createVNode(U3,{icon:"x"})])]),s.createElementVNode("div",Ns2,[s.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(s.openBlock(),s.createElementBlock("div",As2,[r.isLoading?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(V2,{key:0,text:r.cancelText||s.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=o=>a.value=!1)},null,8,["text"])),s.createVNode(V2,{icon:r.acceptIcon,text:r.acceptText||s.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=o=>c("accept"))},null,8,["icon","text","isLoading"])])):s.createCommentVNode("",!0)],32)],32)):s.createCommentVNode("",!0)}});const Es2=Q1(Ts2,[["__scopeId","data-v-57c9b33b"]]),Ds2={class:"pga-flex-row"},Ps2=s.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=s.computed({get(){return{year:t.value.datetimeFrom.getFullYear(),month:t.value.datetimeFrom.getMonth()}},set(r){const i=new Date(r.year,r.month,1);t.value={datetimeFrom:i,datetimeTo:c4.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:c4.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:c4.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const o=s.resolveComponent("PgaButton"),l=s.resolveComponent("PgaMonthPicker");return s.openBlock(),s.createElementBlock("div",Ds2,[s.createVNode(o,{icon:"chevron-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),s.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),s.createVNode(o,{icon:"chevron-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),Os2=s.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["separator",{"separator--vertical":t.vertical}])},null,2))}});const Is2=Q1(Os2,[["__scopeId","data-v-cf62e441"]]),Bs2={class:"pga-tabs"},Rs2={class:"tabs__nav",role:"tablist"},Fs2=["onClick"],$s2={class:"tabs__panel",role:"tabpanel"},qs2=s.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){const t=s.ref(0);return(a,c)=>{const n=s.resolveComponent("PgaIcon"),r=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createElementBlock("div",Bs2,[s.createElementVNode("nav",Rs2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.tabs,(i,o)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["tabs__card",{"tabs__card--active":t.value===o}]),key:`tab-${o}`,role:"tab",onClick:l=>t.value=o},[i.icon?(s.openBlock(),s.createBlock(n,{key:0,class:"tabs__icon",icon:i.icon},null,8,["icon"])):s.createCommentVNode("",!0),s.createVNode(r,{class:"tabs__label",text:i.label},null,8,["text"])],10,Fs2))),128))]),s.createElementVNode("section",$s2,[s.renderSlot(a.$slots,`panel${t.value+1}`,{},void 0,!0)])])}}});const js2=Q1(qs2,[["__scopeId","data-v-34f26d05"]]),Us2=["accept","multiple","disabled"],Ws2={class:"input-file__label-container"},Ys2=s.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){s.useCssVars(b=>({"13af3e9c":s.unref(r).input.borderColor,"309935ba":s.unref(r).input.borderRadius,"404a4b70":s.unref(r).input.backgroundColor,"1cb633ac":s.unref(r).input.backgroundColorHover,"54c07a0c":s.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:M,resetInput:x});const{form:r}=O4(),i=$2("pgaForm"),o=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=o.map(b=>`.${b}`).join(","),f=s.ref(),u=s.ref([]),d=s.ref(!1),h=s.ref(!1),p=s.computed(()=>c.disabled||c.isLoading),v=s.computed(()=>!!u.value.length),m=s.computed(()=>{for(const b of u.value){const _=b.name.split(".").pop();if(!o.includes(_))return!1}return!0}),y=s.computed(()=>{const b={icon:"upload"};return!v.value||d.value&&!h.value&&!p.value?b:m.value?{icon:"circle-check",color:"success"}:{icon:"circle-x",color:"danger"}}),g=s.computed(()=>v.value?u.value.map(b=>b.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function M(){var b;(b=f.value)==null||b.click()}function x(){u.value=[],f.value&&(f.value.value="")}function k(b){d.value=!1;const C=b.target.files;if(C.length){if(u.value=[...C],!m.value){W4.Add("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(b,_)=>(s.openBlock(),s.createElementBlock("label",{class:s.normalizeClass(["pga-input-file",{"pga-input-file--disabled":p.value}]),onMouseenter:_[4]||(_[4]=C=>d.value=!0),onMouseleave:_[5]||(_[5]=C=>d.value=!1)},[b.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:s.unref(l),multiple:b.multiple,disabled:p.value,onChange:_[0]||(_[0]=C=>k(C))},null,40,Us2),s.createVNode(U3,{class:"input-file__icon",icon:y.value.icon,color:y.value.color},null,8,["icon","color"]),s.createElementVNode("div",Ws2,[s.createVNode(D3,{text:g.value},null,8,["text"])]),v.value?(s.openBlock(),s.createBlock(V2,{key:0,text:s.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:p.value,onMouseenter:_[1]||(_[1]=C=>h.value=!0),onMouseleave:_[2]||(_[2]=C=>h.value=!1),onClick:_[3]||(_[3]=s.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):s.createCommentVNode("",!0)],64))],34))}});const Wf=Q1(Ys2,[["__scopeId","data-v-0a46f5a2"]]),Gs2={class:"pga-videos"},Zs2={class:"videos"},Xs2=["src"],Ks2={key:0,class:"videos__input-container"},Qs2=s.defineComponent({__name:"PgaVideos",props:s.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=$2("pgaFile"),n=s.ref(),r=s.ref(!1),i=s.ref(-1),o=s.computed(()=>t.value.length),l=s.computed(()=>t.value.map(d=>typeof d=="string"?d:URL.createObjectURL(d)));async function f(d){var h;if((h=n.value)==null||h.resetInput(),o.value+d.length>a.maxVideosQuantity&&(d=d.slice(0,a.maxVideosQuantity-o.value),W4.Add("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...d);return}try{r.value=!0,t.value=await a.uploadFn({file:d})}finally{r.value=!1}}async function u(d){if(a.deleteFn)try{i.value=d,await a.deleteFn({index:d})}finally{i.value=-1}t.value.splice(d,1)}return(d,h)=>{const p=s.resolveComponent("PgaDeleteButton");return s.openBlock(),s.createElementBlock("div",Gs2,[s.createElementVNode("div",Zs2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(v,m)=>(s.openBlock(),s.createElementBlock("div",{key:v,class:"videos__video-container"},[s.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,Xs2),s.createVNode(p,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===m,onDeleteConfirmed:y=>u(m)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),o.value<d.maxVideosQuantity?(s.openBlock(),s.createElementBlock("div",Ks2,[s.createVNode(Wf,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:s.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:h[0]||(h[0]=v=>f(v))},null,8,["label","isLoading"])])):s.createCommentVNode("",!0)]),s.createElementVNode("span",null,s.toDisplayString(`${o.value} / ${d.maxVideosQuantity}`),1)])}}});const Js2=Q1(Qs2,[["__scopeId","data-v-f8515444"]]),e92=s.defineComponent({__name:"PgaBackButton",setup(e){const t=$2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(V2,{text:s.unref(t)("backBtn"),icon:"chevron-left",color:"first",size:"s"},null,8,["text"]))}}),t92={class:"button-link",type:"button"},a92=s.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},noUnderline:{type:Boolean}},setup(e){s.useCssVars(n=>({"370b3d02":n.size,"0aa3ccc4":a.value,"3d02123e":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-08)`);return(n,r)=>(s.openBlock(),s.createElementBlock("button",t92,[n.text?(s.openBlock(),s.createBlock(D3,{key:0,class:s.normalizeClass(["button-link__text",{"button-link__text--with-underline":!n.noUnderline}]),text:n.text,icon:n.icon},null,8,["class","text","icon"])):s.renderSlot(n.$slots,"default",{key:1},void 0,!0)]))}});const On1=Q1(a92,[["__scopeId","data-v-7193770d"]]),c92={class:"pga-copy"},n92=s.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=$2("pgaButton"),c=s.ref(!1),n=s.computed(()=>X3(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("div",c92,[s.createElementVNode("span",null,s.toDisplayString(n.value),1),c.value?(s.openBlock(),s.createBlock(U3,{key:1,icon:"circle-check",color:"success"})):s.withDirectives((s.openBlock(),s.createBlock(V2,{key:0,color:"first",icon:"copy",size:"s",onClick:o[0]||(o[0]=f=>r())},null,512)),[[l,s.unref(a)("copyBtn")]])])}}});const r92=Q1(n92,[["__scopeId","data-v-64962c4d"]]),i92=s.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=$2("pgaButton"),c=s.computed(()=>X3(t.text)),n=s.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),W4.Add("success",()=>a("textCopied"))}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(V2,{color:"first",icon:"copy",text:n.value,onClick:o[0]||(o[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}});class In1{static Show(t,a){AY.value=t,rn1.value=a,uo.value=!0}}const iq=s.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash-2"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=$2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");In1.Show(i,()=>c("deleteConfirmed"))}return(i,o)=>(s.openBlock(),s.createBlock(V2,{class:"delete-button",variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||s.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:o[0]||(o[0]=l=>r())},null,8,["variant","icon","text"]))}}),BY=s.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>{const n=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(V2,{class:"edit-button",variant:"flat",color:"sky",icon:"square-pen",text:a.withoutText?void 0:s.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?s.unref(t)("editBtn"):""]])}}}),o92=["href","target"],s92=s.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("a",{class:"hyperlink",href:t.href,target:t.target},[s.createVNode(D3,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,o92))}});const Bn1=Q1(s92,[["__scopeId","data-v-ec435fa7"]]),l92=s.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=$2("pgaButton");return(n,r)=>(s.openBlock(),s.createBlock(V2,{icon:"log-out",text:s.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),f92=s.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){s.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=s.resolveComponent("RouterLink");return s.openBlock(),s.createBlock(i,{class:s.normalizeClass(["pga-router-link",{"pga-router-link--fit-content":!n.noFitContent,"pga-router-link--underline":n.underline,"pga-router-link--underline-on-hover":!n.noUnderlineOnHover}]),to:{name:n.name,params:n.params,query:n.query},onClick:r[0]||(r[0]=o=>s.unref(If)(!0))},{default:s.withCtx(()=>[s.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const Yf=Q1(f92,[["__scopeId","data-v-6046ce2c"]]),Rn1=s.defineComponent({__name:"PgaRouterLinkButton",props:{name:{},params:{},query:{},type:{},icon:{},text:{},variant:{},size:{},align:{},color:{},heightAndWidth:{},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{},noFitContent:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(Yf,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:s.withCtx(()=>[t.$slots.default?s.renderSlot(t.$slots,"default",{key:0}):(s.openBlock(),s.createBlock(V2,{key:1,type:t.type,icon:t.icon,text:t.text,variant:t.variant,size:t.size,align:t.align,color:t.color,fullWidth:!t.heightAndWidth,heightAndWidth:t.heightAndWidth,borderRadius:t.borderRadius,rounded:t.rounded,disabled:t.disabled,isLoading:t.isLoading,numberToDisplay:t.numberToDisplay},null,8,["type","icon","text","variant","size","align","color","fullWidth","heightAndWidth","borderRadius","rounded","disabled","isLoading","numberToDisplay"]))]),_:3},8,["name","params","query","noFitContent"]))}}),Fn1=s.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>a.toName?(s.openBlock(),s.createBlock(Rn1,{key:0,name:a.toName,params:{id:a.id},icon:"external-link",text:a.withoutText?void 0:s.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):s.createCommentVNode("",!0)}}),u92=s.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(V2,{variant:"flat",icon:"x",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),d92=s.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(V2,{class:"edit-button",variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:s.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),h92=s.defineComponent({__name:"PgaToggleButton",props:s.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=t,n=s.computed(()=>a.value?"outlined":"flat"),r=s.computed(()=>a.value?"primary":"grey");return s.watch(a,i=>c("change",i)),(i,o)=>(s.openBlock(),s.createBlock(V2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:o[0]||(o[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var p92=Object.defineProperty,m92=(e,t,a)=>t in e?p92(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Wt=(e,t,a)=>m92(e,typeof t!="symbol"?t+"":t,a);const v92=(e,t,a)=>{const c=e[t];return c?typeof c=="function"?c():Promise.resolve(c):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==a?". Note that variables only represent file names one level deep.":""))))})};let Ys,j31,U31,M0,Gs={},Xi={};class y92{constructor(t,a=!1){Wt(this,"texts",{}),Wt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),M0=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return M0.addDays(this,t)},Date.prototype.subtractDays=function(t){return M0.subtractDays(this,t)},Date.prototype.addHours=function(t){return M0.addHours(this,t)},Date.prototype.subtractHours=function(t){return M0.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return M0.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return M0.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return M0.getWeek(this)},Date.prototype.isToday=function(){return M0.isToday(this)},Date.prototype.isLeapYear=function(){return M0.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return M0.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return M0.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return j31!==new Date().getDate()&&(Ys=new Date,j31=Ys.getDate(),U31=`${Ys.getFullYear()}-${Ys.getMonth()}-${Ys.getDate()}`),U31}addDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()+a),c}subtractDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()-a),c}addHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()+a),c}subtractHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()-a),c}addMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()+a),c}subtractMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()-a),c}getWeek(t){const a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),c=a.getUTCDay()||7;a.setUTCDate(a.getUTCDate()+4-c);const n=new Date(Date.UTC(a.getUTCFullYear(),0,1));return Math.ceil(((a-n)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const a=t.getFullYear();return!(a%400)||a%100&&!(a%4)}getPreviousFirstDayOfWeek(t=null,a){const c=t&&new Date(t.valueOf())||new Date,n=a?7:6;return c.setDate(c.getDate()-(c.getDay()+n)%7),c}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,a){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof a=="string"&&(a=a.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),a=new Date(a).setHours(0,0,1,0);const c=(new Date(a).getTimezoneOffset()-new Date(t).getTimezoneOffset())*60*1e3;return Math.ceil((a-t-c)/(24*3600*1e3))}datesInSameTimeStep(t,a,c){return Math.abs(t.getTime()-a.getTime())<=c*60*1e3}formatDate(t,a="YYYY-MM-DD",c=null){if(c||(c=this._texts),a||(a="YYYY-MM-DD"),a==="YYYY-MM-DD")return this.formatDateLite(t);Gs={},Xi={};const n={YYYY:()=>this._hydrateDateObject(t,c).YYYY,YY:()=>this._hydrateDateObject(t,c).YY(),M:()=>this._hydrateDateObject(t,c).M,MM:()=>this._hydrateDateObject(t,c).MM(),MMM:()=>this._hydrateDateObject(t,c).MMM(),MMMM:()=>this._hydrateDateObject(t,c).MMMM(),MMMMG:()=>this._hydrateDateObject(t,c).MMMMG(),D:()=>this._hydrateDateObject(t,c).D,DD:()=>this._hydrateDateObject(t,c).DD(),S:()=>this._hydrateDateObject(t,c).S(),d:()=>this._hydrateDateObject(t,c).d,dd:()=>this._hydrateDateObject(t,c).dd(),ddd:()=>this._hydrateDateObject(t,c).ddd(),dddd:()=>this._hydrateDateObject(t,c).dddd(),HH:()=>this._hydrateTimeObject(t,c).HH,H:()=>this._hydrateTimeObject(t,c).H,hh:()=>this._hydrateTimeObject(t,c).hh,h:()=>this._hydrateTimeObject(t,c).h,am:()=>this._hydrateTimeObject(t,c).am,AM:()=>this._hydrateTimeObject(t,c).AM,mm:()=>this._hydrateTimeObject(t,c).mm,m:()=>this._hydrateTimeObject(t,c).m};return a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,i)=>{const o=n[i.replace(/\{|\}/g,"")];return o!==void 0?o():i})}formatDateLite(t){const a=t.getMonth()+1,c=t.getDate();return`${t.getFullYear()}-${a<10?"0":""}${a}-${c<10?"0":""}${c}`}formatTime(t,a="HH:mm",c=null,n=!1){let r=!1;if(n){const[l,f,u]=[t.getHours(),t.getMinutes(),t.getSeconds()];l+f+u===23+59+59&&(r=!0)}if(t instanceof Date&&a==="HH:mm")return r?"24:00":this.formatTimeLite(t);Xi={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),o=a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(l,f)=>{const u=i[f.replace(/\{|\}/g,"")];return u!==void 0?u:f});return r?o.replace("23:59","24:00"):o}formatTimeLite(t){const a=t.getHours(),c=t.getMinutes();return`${(a<10?"0":"")+a}:${(c<10?"0":"")+c}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,a){if(Gs.D)return Gs;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),o=(t.getDay()-1+7)%7;return Gs={YYYY:c,YY:()=>c.toString().substring(2),M:n,MM:()=>(n<10?"0":"")+n,MMM:()=>a.months[n-1].substring(0,3),MMMM:()=>a.months[n-1],MMMMG:()=>(a.monthsGenitive||a.months)[n-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:o+1,dd:()=>a.weekDays[o][0],ddd:()=>a.weekDays[o].substr(0,3),dddd:()=>a.weekDays[o]},Gs}_hydrateTimeObject(t,a){if(Xi.am)return Xi;let c,n;t instanceof Date?(c=t.getHours(),n=t.getMinutes()):(c=Math.floor(t/60),n=Math.floor(t%60));const r=c%12?c%12:12,i=(a||{am:"am",pm:"pm"})[c===24||c<12?"am":"pm"];return Xi={H:c,h:r,HH:(c<10?"0":"")+c,hh:(r<10?"0":"")+r,am:i,AM:i.toUpperCase(),m:n,mm:(n<10?"0":"")+n},Xi}}const g92=24*60;class M92{constructor(t){Wt(this,"_vuecal",null),Wt(this,"selectCell",(a=!1,c,n)=>{this._vuecal.$emit("cell-click",n?{date:c,split:n}:c),this._vuecal.clickToNavigate||a?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",n?{date:c,split:n}:c)))}),Wt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Wt(this,"getPosition",a=>{const{left:c,top:n}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&a.touches?a.touches[0]:a;return{x:r-c,y:i-n}}),Wt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:o}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+o)),{minutes:Math.max(Math.min(c,g92),0),cursorCoords:n}}),this._vuecal=t}}const k92=2,pU=24*60;let W3,Y3,mU;class x92{constructor(t,a){Wt(this,"_vuecal",null),Wt(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,W3=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=W3.stringToDate(t)),!(t instanceof Date))return!1;const n=W3.dateToMinutes(t);a=a*1||k92*60;const r=n+a,i=W3.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=W3.stringToDate(c.end)),c.endTimeMinutes=W3.dateToMinutes(c.end));const o={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:n,end:i,endTimeMinutes:r,segments:null,...c};if(!(typeof this._vuecal.onEventCreate=="function"&&!this._vuecal.onEventCreate(o,()=>this.deleteAnEvent(o))))return o.startDateF!==o.endDateF&&(o.daysCount=W3.countDays(o.start,o.end)),this._vuecal.mutableEvents.push(o),this._vuecal.addEventsToView([o]),this._vuecal.emitWithEvent("event-create",o),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(o),originalEvent:null}),o}addEventSegment(t){t.segments||(t.segments={},t.segments[W3.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:pU,isFirstDay:!0,isLastDay:!1});const a=t.segments[W3.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=pU);const c=W3.addDays(t.end,1),n=W3.formatDateLite(c);return c.setHours(0,0,0,0),t.segments[n]={start:c,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=W3.addMinutes(c,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,n}removeEventSegment(t){let a=Object.keys(t.segments).length;if(a<=1)return W3.formatDateLite(t.end);delete t.segments[W3.formatDateLite(t.end)],a--;const c=W3.subtractDays(t.end,1),n=W3.formatDateLite(c),r=t.segments[n];return a?r&&(r.isLastDay=!0,r.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=a||1,t.end=c,n}createEventSegments(t,a,c){const n=a.getTime(),r=c.getTime();let i=t.start.getTime(),o=t.end.getTime(),l=!1,f,u,d;for(!t.end.getHours()&&!t.end.getMinutes()&&(o-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?W3.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,o));f<=u;){let h=!1;const p=W3.addDays(new Date(f),1).setHours(0,0,0,0);let v,m,y,g;if(t.repeat){const M=new Date(f),x=W3.formatDateLite(M);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,d=new Date(i).setHours(0,0,0,0),o=t.occurrences[x].end),l=!0,h=!0),v=f===d,m=x===W3.formatDateLite(new Date(o)),y=new Date(v?i:f),g=W3.formatDateLite(y),m&&(l=!1)}else h=!0,v=f===i,m=u===o&&p>u,y=v?t.start:new Date(f),g=W3.formatDateLite(v?t.start:y);h&&(t.segments[g]={start:y,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:m?t.endTimeMinutes:pU,isFirstDay:v,isLastDay:m}),f=p}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(a=>a._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(a=>a._eid!==t._eid)}checkCellOverlappingEvents(t,a){mU=t.slice(0),Y3={},t.forEach(n=>{mU.shift(),Y3[n._eid]||(Y3[n._eid]={overlaps:[],start:n.start,position:0}),Y3[n._eid].position=0,mU.forEach(r=>{Y3[r._eid]||(Y3[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),o=a.overlapsPerTimeStep?W3.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&o)Y3[n._eid].overlaps.push(r._eid),Y3[n._eid].overlaps=[...new Set(Y3[n._eid].overlaps)],Y3[r._eid].overlaps.push(n._eid),Y3[r._eid].overlaps=[...new Set(Y3[r._eid].overlaps)],Y3[r._eid].position++;else{let l,f;(l=(Y3[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&Y3[n._eid].overlaps.splice(l,1),(f=(Y3[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&Y3[r._eid].overlaps.splice(f,1),Y3[r._eid].position--}})});let c=0;for(const n in Y3){const r=Y3[n],i=r.overlaps.map(o=>({id:o,start:Y3[o].start}));i.push({id:n,start:r.start}),i.sort((o,l)=>o.start<l.start?-1:o.start>l.start?1:o.id>l.id?-1:1),r.position=i.findIndex(o=>o.id===n),c=Math.max(this.getOverlapsStreak(r,Y3),c)}return[Y3,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(o=>o!==r).forEach(o=>{a[o].overlaps.includes(r)||n.push(o)})}),n=[...new Set(n)],c-=n.length,c}eventInRange(t,a,c){if(t.allDay||!this._vuecal.time){const i=new Date(t.start).setHours(0,0,0,0);return new Date(t.end).setHours(23,59,0,0)>=new Date(a).setHours(0,0,0,0)&&i<=new Date(c).setHours(0,0,0,0)}const n=t.start.getTime(),r=t.end.getTime();return n<c.getTime()&&r>a.getTime()}}const b92={class:"vuecal__flex vuecal__weekdays-headings"},z92=["onClick"],C92={class:"vuecal__flex weekday-label",grow:""},_92={class:"full"},w92={class:"small"},H92={class:"xsmall"},L92={key:0},V92={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function S92(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",b92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.headings,(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:o},[i.hide?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:s.normalizeStyle(r.weekdayCellStyles),onClick:l=>r.view.id==="week"&&r.selectCell(i.date,l),onDblclick:t[0]||(t[0]=l=>r.view.id==="week"&&r.vuecal.dblclickToNavigate&&a.switchToNarrowerView())},[s.createVNode(s.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${o}-${i.dayOfMonth}`:!1},[s.createElementVNode("div",C92,[s.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[s.createElementVNode("span",_92,s.toDisplayString(i.full),1),s.createElementVNode("span",w92,s.toDisplayString(i.small),1),s.createElementVNode("span",H92,s.toDisplayString(i.xsmall),1),i.dayOfMonth?(s.openBlock(),s.createElementBlock("span",L92," "+s.toDisplayString(i.dayOfMonth),1)):s.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",V92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.daySplits,(l,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",l.class||!1]),key:f},[s.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[s.createTextVNode(s.toDisplayString(l.label),1)])],2))),128))])):s.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,z92))],64))),128))])}const _s=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},N92={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,...e.today?{today:e.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;return this.weekDays.map((a,c)=>{const n=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday&&this.vuecal.hideWeekends?c-1:c);return{hide:a.hide,full:a.label,small:a.short||a.label.substr(0,3),xsmall:a.short||a.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:n.getDate(),date:n,today:!e&&this.utils.date.isToday(n)&&!e++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((e,t)=>e+t.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},$n1=_s(N92,[["render",S92]]),A92={class:"vuecal__header"},T92={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},E92=["onDragenter","onDragleave","onClick","aria-label"],D92={key:1,class:"vuecal__title-bar"},P92=["aria-label"],O92={class:"vuecal__flex vuecal__title",grow:""},I92=["aria-label"],B92={key:0,class:"vuecal__flex vuecal__split-days-headers"};function R92(e,t,a,c,n,r){const i=s.resolveComponent("weekdays-headings");return s.openBlock(),s.createElementBlock("div",A92,[a.options.hideViewSelector?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",T92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.viewProps.views,(o,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:l},[o.enabled?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__view-btn",{"vuecal__view-btn--active":r.view.id===l,"vuecal__view-btn--highlighted":e.highlightedControl===l}]),type:"button",onDragenter:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(f,l,e.$data),onDragleave:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(f,l,e.$data),onClick:f=>r.switchView(l,null,!0),"aria-label":`${o.label} view`},s.toDisplayString(o.label),43,E92)):s.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",D92,[s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...o)=>r.previous&&r.previous(...o)),onDragenter:t[1]||(t[1]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"previous",e.$data)),onDragleave:t[2]||(t[2]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-prev")],42,P92),s.createElementVNode("div",O92,[s.createVNode(s.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=o=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...o)=>r.goToToday&&r.goToToday(...o)),onDragenter:t[5]||(t[5]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"today",e.$data)),onDragleave:t[6]||(t[6]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"today",e.$data)),"aria-label":"Today"},[s.renderSlot(e.$slots,"today-button")],34)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...o)=>r.next&&r.next(...o)),onDragenter:t[8]||(t[8]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"next",e.$data)),onDragleave:t[9]||(t[9]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-next")],42,I92)])),a.viewProps.weekDaysInHeader?(s.openBlock(),s.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:o,view:l})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:o,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:o})=>[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:s.withCtx(()=>[r.showDaySplits?(s.openBlock(),s.createElementBlock("div",B92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.daySplits,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",o.class||!1]),key:l},[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view.id},()=>[s.createTextVNode(s.toDisplayString(o.label),1)])],2))),128))])):s.createCommentVNode("",!0)]),_:3},8,["name"])])}const F92={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:$n1},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},$92=_s(F92,[["render",R92]]),q92=["draggable"];function j92(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__event",r.eventClasses]),style:s.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=s.withKeys(s.withModifiers((...i)=>r.onEnterKeypress&&r.onEnterKeypress(...i),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...i)=>r.onMouseEnter&&r.onMouseEnter(...i)),onMouseleave:t[7]||(t[7]=(...i)=>r.onMouseLeave&&r.onMouseLeave(...i)),onTouchstart:t[8]||(t[8]=s.withModifiers((...i)=>r.onTouchStart&&r.onTouchStart(...i),["stop"])),onMousedown:t[9]||(t[9]=i=>r.onMouseDown(i)),onMouseup:t[10]||(t[10]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchend:t[11]||(t[11]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchmove:t[12]||(t[12]=(...i)=>r.onTouchMove&&r.onTouchMove(...i)),onDblclick:t[13]||(t[13]=(...i)=>r.onDblClick&&r.onDblClick(...i)),draggable:r.draggable,onDragstart:t[14]||(t[14]=i=>r.draggable&&r.onDragStart(i)),onDragend:t[15]||(t[15]=i=>r.draggable&&r.onDragEnd())},[r.vuecal.editEvents.delete&&a.event.deletable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=s.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=s.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},s.toDisplayString(r.vuecal.texts.deleteEvent),33)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):s.createCommentVNode("",!0)],46,q92)}const U92={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:a,focusAnEvent:c,resizeAnEvent:n,dragAnEvent:r}=this.domEvents;if(c._eid===this.event._eid&&a._eid===this.event._eid)return!0;this.focusEvent(),a._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(a.timeoutId=setTimeout(()=>{!n._eid&&!r._eid&&(a._eid=this.event._eid,this.event.deleting=!0)},a.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid===this.event._eid&&!this.touch.dragged&&(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:t,clientY:a}=e.touches[0],{startX:c,startY:n,dragThreshold:r}=this.touch;(Math.abs(t-c)>r||Math.abs(a-n)>r)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){this.dnd&&this.dnd.eventDragStart(e,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const a=this.view.events.find(c=>c._eid===t);a&&(a.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let a=e-this.vuecal.timeFrom;const c=Math.max(Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);a=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const n=Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),r=Math.max(n-c,5);return{top:c,height:r}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let e=100/Math.min(this.overlaps.length+1,this.overlapsStreak),t=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&e<this.vuecal.minEventWidth&&(e=this.vuecal.minEventWidth,t=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:a,height:c}=this.eventDimensions;return{top:`${a}px`,height:`${c}px`,width:`${e}%`,left:this.event.left&&`${this.event.left}px`||`${t}%`}},eventClasses(){const{isFirstDay:e,isLastDay:t}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&e&&!t,"event-middle":this.segment&&!e&&!t,"event-end":this.segment&&t&&!e}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:e,background:t,daysCount:a}=this.event;return this.vuecal.editEvents.drag&&e&&!t&&a===1},resizable(){const{editEvents:e,time:t}=this.vuecal;return e.resize&&this.event.resizable&&t&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},W92=_s(U92,[["render",j92]]),Y92=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],G92={key:0,class:"cell-time-labels"},Z92=["innerHTML"],X92={key:2,class:"vuecal__cell-events"},K92=["title"];function Q92(e,t,a,c,n,r){const i=s.resolveComponent("event");return s.openBlock(),s.createBlock(s.TransitionGroup,{class:s.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:s.normalizeStyle(r.cellStyles)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?r.splits:1,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(o)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?o.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=s.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?o.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?o.id:null),onClick:t[2]||(t[2]=f=>!r.isDisabled&&r.onCellClick(f)),onDblclick:t[3]||(t[3]=f=>!r.isDisabled&&r.onCellDblClick(f)),onContextmenu:t[4]||(t[4]=f=>!r.isDisabled&&a.options.cellContextmenu&&r.onCellContextMenu(f)),onDragenter:t[5]||(t[5]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragEnter(f,e.$data,a.data.startDate)),onDragover:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragOver(f,e.$data,a.data.startDate,r.splitsCount?o.id:null),onDragleave:t[6]||(t[6]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragLeave(f,e.$data,a.data.startDate)),onDrop:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragDrop(f,e.$data,a.data.startDate,r.splitsCount?o.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(s.openBlock(),s.createElementBlock("div",G92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.timeCells,(f,u)=>(s.openBlock(),s.createElementBlock("span",{class:"cell-time-label",key:u},s.toDisplayString(f.label),1))),128))])):s.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.specialHours,(f,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:s.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(s.openBlock(),s.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,Z92)):s.createCommentVNode("",!0)],6))),256)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?o:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(s.openBlock(),s.createElementBlock("div",X92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?o.events:r.events,(f,u)=>(s.openBlock(),s.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?o.events:r.events,overlaps:((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?o.overlapsStreak:e.cellOverlapsStreak},{event:s.withCtx(({event:d,view:h})=>[s.renderSlot(e.$slots,"event",{view:h,event:d})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):s.createCommentVNode("",!0)],42,Y92))),128)),r.timelineVisible?(s.openBlock(),s.createElementBlock("div",{class:"vuecal__now-line",style:s.normalizeStyle(`top: ${r.todaysTimePosition}px`),key:a.options.transitions?`${r.view.id}-now-line`:"now-line",title:r.utils.date.formatTime(r.vuecal.now)},null,12,K92)):s.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const J92={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:W92},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){let a=e.classList.contains("vuecal__cell-split")?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return a&&(a=a.attributes["data-split"].value,parseInt(a).toString()===a.toString()&&(a=parseInt(a))),a||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const a=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,a),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,a=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:a,split:t}:a)}},onCellMouseDown(e,t=null,a=!1){if("ontouchstart"in window&&!a)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:c,focusAnEvent:n}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,c.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:r,cursorCoords:{y:i}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(r);const o=this.isDOMElementAnEvent(e.target);!o&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!o&&this.setUpEventCreation(e,i)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:a}=this.domEvents;if(a.startCursorY=t,a.split=this.splitsCount?this.getSplitAtCursor(e):null,a.start=this.timeAtCursor,this.options.snapToTime){let c=this.timeAtCursor.getHours()*60+this.timeAtCursor.getMinutes();const n=c+this.options.snapToTime/2;c=n-n%this.options.snapToTime,a.start.setHours(0,c,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout(()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:a}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=a}},t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e){this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const a=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",a?{date:t,split:a}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:a,minutes:c}=this.vuecal.minutesAtCursor(e);t.setMinutes(c);const n=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...a,...n||{},e})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:e}=this.options,{isYearsOrYearView:t}=this.vuecal;return e.length&&e.includes(this.data.formattedDate)&&!t?!0:this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let e=!1;const{selectedDate:t}=this.view;return this.view.id==="years"?e=t.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e=t.getFullYear()===this.data.startDate.getFullYear()&&t.getMonth()===this.data.startDate.getMonth():e=t.getTime()===this.data.startDate.getTime(),e},set(e){this.view.selectedDate=e,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(e=>{let{from:t,to:a}=e;return t=Math.max(t,this.options.timeFrom),a=Math.min(a,this.options.timeTo),{...e,height:(a-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:e,endDate:t}=this.data;let a=[];if(!(["years","year"].includes(this.view.id)&&!this.options.eventsCountOnYearView)){if(a=this.view.events.slice(0),this.view.id==="month"&&a.push(...this.view.outOfScopeEvents),a=a.filter(c=>this.utils.event.eventInRange(c,e,t)),this.options.showAllDayEvents&&this.view.id!=="month"&&(a=a.filter(c=>!!c.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:c,timeTo:n}=this.options;a=a.filter(r=>{const i=r.daysCount>1&&r.segments[this.data.formattedDate]||{},o=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||o||l||f})}this.options.time&&this.isWeekOrDayView&&!(this.options.showAllDayEvents&&this.allDay)&&a.sort((c,n)=>c.start<n.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return a},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((e,t)=>{const a=this.events.filter(r=>r.split===e.id),[c,n]=this.utils.event.checkCellOverlappingEvents(a.filter(r=>!r.background&&!r.allDay),this.options);return{...e,overlaps:c,overlapsStreak:n,events:a}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},qn1=_s(J92,[["render",Q92]]),el2={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function tl2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:s.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",el2,[s.createElementVNode("span",null,s.toDisplayString(a.label),1)])),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:s.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.cells,(o,l)=>(s.openBlock(),s.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:o,"all-day":!0,"cell-width":a.options.hideWeekdays.length&&(r.vuecal.isWeekView||r.vuecal.isMonthView)&&r.vuecal.cellWidth,"min-timestamp":a.options.minTimestamp,"max-timestamp":a.options.maxTimestamp,"cell-splits":a.daySplits},{event:s.withCtx(({event:f,view:u})=>[s.renderSlot(e.$slots,"event",{view:u,event:f})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}const al2={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":qn1},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},cl2=_s(al2,[["render",tl2]]),nl2=["lang"],rl2={class:"default"},il2={key:0,class:"vuecal__flex vuecal__body",grow:""},ol2=["onBlur","innerHTML"],sl2=["innerHTML"],ll2=["innerHTML"],fl2={class:"vuecal__flex",row:"",grow:""},ul2={key:0,class:"vuecal__time-column"},dl2={class:"vuecal__time-cell-label"},hl2={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},pl2=["wrap","column"],ml2=["onBlur","innerHTML"],vl2=["innerHTML"],yl2=["innerHTML"],gl2=["wrap"],Ml2=["innerHTML"],kl2=["innerHTML"],xl2={key:2,class:"vuecal__cell-events-count"},bl2={key:3,class:"vuecal__no-event"},zl2=["onBlur","innerHTML"],Cl2=["innerHTML"],_l2={key:2,class:"vuecal__event-time"},wl2={key:0},Hl2={key:1,class:"days-to-end"},Ll2=["innerHTML"],Vl2={key:0,class:"vuecal__scrollbar-check"};function Sl2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-header"),o=s.resolveComponent("all-day-bar"),l=s.resolveComponent("weekdays-headings"),f=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[s.createVNode(i,{options:e.$props,"edit-events":r.editEvents,"view-props":{views:r.views,weekDaysInHeader:r.weekDaysInHeader},"week-days":r.weekDays,"has-splits":r.hasSplits,"day-splits":r.daySplits,"switch-to-narrower-view":r.switchToNarrowerView},s.createSlots({"arrow-prev":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=s.createTextVNode(" ")),t[1]||(t[1]=s.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=s.createTextVNode(" "))])]),"arrow-next":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=s.createTextVNode(" ")),t[4]||(t[4]=s.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=s.createTextVNode(" "))])]),"today-button":s.withCtx(()=>[s.renderSlot(e.$slots,"today-button",{},()=>[s.createElementVNode("span",rl2,s.toDisplayString(n.texts.today),1)])]),title:s.withCtx(()=>[s.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[s.createTextVNode(s.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),a.hideBody?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",il2,[s.createVNode(s.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:a.transitions?n.view.id:!1,column:""},[a.showAllDayEvents&&r.hasTimeColumn&&(!r.cellOrSplitMinWidth||r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:0},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,ol2)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,sl2)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,ll2)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[s.createElementVNode("div",fl2,[r.hasTimeColumn?(s.openBlock(),s.createElementBlock("div",ul2,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:s.normalizeStyle({height:r.allDayBar.height})},[s.createElementVNode("span",null,s.toDisplayString(n.texts.allDay),1)],4)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.timeCells,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:"vuecal__time-cell",key:d,style:s.normalizeStyle(`height: ${a.timeCellHeight}px`)},[s.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=s.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),s.createElementVNode("span",dl2,s.toDisplayString(u.label),1)])],4))),128))])):s.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(s.openBlock(),s.createElementBlock("div",hl2,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(6,u=>s.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[s.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[s.createTextVNode(s.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(s.openBlock(),s.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):r.hasSplits&&a.stickySplitLabels&&a.minSplitWidth?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.daySplits,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",u.class||!1]),key:d},[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[s.createTextVNode(s.toDisplayString(u.label),1)])],2))),128))],4)):s.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:2},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,ml2)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,vl2)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,yl2)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.viewCells,(u,d)=>(s.openBlock(),s.createBlock(f,{key:d,options:e.$props,"edit-events":r.editEvents,data:u,"cell-width":a.hideWeekdays.length&&(r.isWeekView||r.isMonthView)&&r.cellWidth,"min-timestamp":r.minTimestamp,"max-timestamp":r.maxTimestamp,"cell-splits":r.hasSplits&&r.daySplits||[]},{"cell-content":s.withCtx(({events:h,split:p,selectCell:v})=>[s.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:h},()=>[p&&!a.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",{key:0,class:"split-label",innerHTML:p.label},null,8,Ml2)):s.createCommentVNode("",!0),u.content?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,kl2)):s.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&h.length?(s.openBlock(),s.createElementBlock("div",xl2,[s.renderSlot(e.$slots,"events-count",{view:n.view,events:h},()=>[s.createTextVNode(s.toDisplayString(h.length),1)])])):s.createCommentVNode("",!0),!r.cellOrSplitHasEvents(h,p)&&r.isWeekOrDayView?(s.openBlock(),s.createElementBlock("div",bl2,[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])])):s.createCommentVNode("",!0)])]),event:s.withCtx(({event:h,view:p})=>[s.renderSlot(e.$slots,"event",{view:p,event:h},()=>[r.editEvents.title&&h.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,h),innerHTML:h.title},null,40,zl2)):h.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,Cl2)):s.createCommentVNode("",!0),a.time&&!h.allDay&&!(r.isMonthView&&(h.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",_l2,[s.createTextVNode(s.toDisplayString(n.utils.date.formatTime(h.start,r.TimeFormat)),1),h.endTimeMinutes?(s.openBlock(),s.createElementBlock("span",wl2," - "+s.toDisplayString(n.utils.date.formatTime(h.end,r.TimeFormat,null,!0)),1)):s.createCommentVNode("",!0),h.daysCount>1&&(h.segments[u.formattedDate]||{}).isFirstDay?(s.openBlock(),s.createElementBlock("small",Hl2," +"+s.toDisplayString(h.daysCount-1)+s.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),h.content&&!(r.isMonthView&&h.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,Ll2)):s.createCommentVNode("",!0)])]),"no-event":s.withCtx(()=>[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,gl2)],10,pl2)])],2)]))]),_:3},8,["name","appear"]),n.ready?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Vl2,t[7]||(t[7]=[s.createElementVNode("div",null,null,-1)])))]))],10,nl2)}const Zs=24*60,AR={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},W31=["years","year","month","week","day"],Y31=new y92(AR),Nl2={name:"vue-cal",components:{"vuecal-cell":qn1,"vuecal-header":$92,WeekdaysHeadings:$n1,AllDayBar:cl2},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:Zs},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...AR},utils:{date:(this.disableDatePrototypes?Y31.removePrototypes():!1)||Y31,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if(typeof this.locale=="object"){this.texts=Object.assign({},AR,e),this.utils.date.updateTexts(this.texts);return}const t=await v92(Object.assign({"./i18n/ar.json":()=>Promise.resolve().then(()=>require("./ar.es-490d67d4.cjs")),"./i18n/bg.json":()=>Promise.resolve().then(()=>require("./bg.es-bedb7f61.cjs")),"./i18n/bn.json":()=>Promise.resolve().then(()=>require("./bn.es-ae104b8b.cjs")),"./i18n/bs.json":()=>Promise.resolve().then(()=>require("./bs.es-a97484a8.cjs")),"./i18n/ca.json":()=>Promise.resolve().then(()=>require("./ca.es-b69e2d93.cjs")),"./i18n/cs.json":()=>Promise.resolve().then(()=>require("./cs.es-8ab45a8b.cjs")),"./i18n/da.json":()=>Promise.resolve().then(()=>require("./da.es-20dd8f16.cjs")),"./i18n/de.json":()=>Promise.resolve().then(()=>require("./de.es-ce7009ce.cjs")),"./i18n/el.json":()=>Promise.resolve().then(()=>require("./el.es-81fc2434.cjs")),"./i18n/en.json":()=>Promise.resolve().then(()=>require("./en.es-4459b8a4.cjs")),"./i18n/es.json":()=>Promise.resolve().then(()=>require("./es.es-647dceed.cjs")),"./i18n/et.json":()=>Promise.resolve().then(()=>require("./et.es-482e868f.cjs")),"./i18n/fa.json":()=>Promise.resolve().then(()=>require("./fa.es-2c02433c.cjs")),"./i18n/fi.json":()=>Promise.resolve().then(()=>require("./fi.es-ef678961.cjs")),"./i18n/fr.json":()=>Promise.resolve().then(()=>require("./fr.es-5a023084.cjs")),"./i18n/he.json":()=>Promise.resolve().then(()=>require("./he.es-be02cfd4.cjs")),"./i18n/hr.json":()=>Promise.resolve().then(()=>require("./hr.es-5c9e8373.cjs")),"./i18n/hu.json":()=>Promise.resolve().then(()=>require("./hu.es-642f7e7a.cjs")),"./i18n/id.json":()=>Promise.resolve().then(()=>require("./id.es-ebe22526.cjs")),"./i18n/is.json":()=>Promise.resolve().then(()=>require("./is.es-960071df.cjs")),"./i18n/it.json":()=>Promise.resolve().then(()=>require("./it.es-f0d29f01.cjs")),"./i18n/ja.json":()=>Promise.resolve().then(()=>require("./ja.es-25a3e4cf.cjs")),"./i18n/ka.json":()=>Promise.resolve().then(()=>require("./ka.es-92c6a6ae.cjs")),"./i18n/ko.json":()=>Promise.resolve().then(()=>require("./ko.es-204ba1aa.cjs")),"./i18n/lt.json":()=>Promise.resolve().then(()=>require("./lt.es-afedf093.cjs")),"./i18n/mn.json":()=>Promise.resolve().then(()=>require("./mn.es-ced8667c.cjs")),"./i18n/nl.json":()=>Promise.resolve().then(()=>require("./nl.es-cd172132.cjs")),"./i18n/no.json":()=>Promise.resolve().then(()=>require("./no.es-d5134e5f.cjs")),"./i18n/pl.json":()=>Promise.resolve().then(()=>require("./pl.es-9f065e71.cjs")),"./i18n/pt-br.json":()=>Promise.resolve().then(()=>require("./pt-br.es-e0a38ecf.cjs")),"./i18n/pt-pt.json":()=>Promise.resolve().then(()=>require("./pt-pt.es-e1c57c62.cjs")),"./i18n/ro.json":()=>Promise.resolve().then(()=>require("./ro.es-a7e3858d.cjs")),"./i18n/ru.json":()=>Promise.resolve().then(()=>require("./ru.es-d26a8889.cjs")),"./i18n/sk.json":()=>Promise.resolve().then(()=>require("./sk.es-bfa34829.cjs")),"./i18n/sl.json":()=>Promise.resolve().then(()=>require("./sl.es-c79ab9b5.cjs")),"./i18n/sq.json":()=>Promise.resolve().then(()=>require("./sq.es-a902c2a8.cjs")),"./i18n/sr.json":()=>Promise.resolve().then(()=>require("./sr.es-2e429690.cjs")),"./i18n/sv.json":()=>Promise.resolve().then(()=>require("./sv.es-59b30e12.cjs")),"./i18n/tr.json":()=>Promise.resolve().then(()=>require("./tr.es-11b49d30.cjs")),"./i18n/uk.json":()=>Promise.resolve().then(()=>require("./uk.es-cfb0b466.cjs")),"./i18n/vi.json":()=>Promise.resolve().then(()=>require("./vi.es-daedaaa5.cjs")),"./i18n/zh-cn.json":()=>Promise.resolve().then(()=>require("./zh-cn.es-efbc1299.cjs")),"./i18n/zh-hk.json":()=>Promise.resolve().then(()=>require("./zh-hk.es-b6a4db4a.cjs"))}),`./i18n/${e}.json`,3);this.texts=Object.assign({},AR,t),this.utils.date.updateTexts(this.texts)},loadDragAndDrop(){Promise.resolve().then(()=>require("./drag-and-drop.es-cdb95efc.cjs")).then(e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(e){return W31.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
|
|
8631
|
+
`)}return p1}function t1(i1,p1){var b1={},v1=i1.style||{};return v1.fontStyle&&W(i1).fontStyle==="italic"&&(b1.italic=!0),v1.fontWeight&&(W(i1).fontWeight.startsWith("bold")||parseInt(W(i1).fontWeight)>=700)&&(b1.bold=!0),Object.keys(b1).length>0&&(p1=S(p1,b1)),parseFloat(v1.textIndent||0)>0&&(p1=new d.default().insert(" ").concat(p1)),p1}function l1(i1,p1){var b1=i1.data;if(i1.parentNode.tagName==="O:P")return p1.insert(b1.trim());if(b1.trim().length===0&&i1.parentNode.classList.contains("ql-clipboard"))return p1;if(!W(i1.parentNode).whiteSpace.startsWith("pre")){var v1=function(D1,R1){return R1=R1.replace(/[^\u00a0]/g,""),R1.length<1&&D1?" ":R1};b1=b1.replace(/\r\n/g," ").replace(/\n/g," "),b1=b1.replace(/\s\s+/g,v1.bind(v1,!0)),(i1.previousSibling==null&&A(i1.parentNode)||i1.previousSibling!=null&&A(i1.previousSibling))&&(b1=b1.replace(/^\s+/,v1.bind(v1,!1))),(i1.nextSibling==null&&A(i1.parentNode)||i1.nextSibling!=null&&A(i1.nextSibling))&&(b1=b1.replace(/\s+$/,v1.bind(v1,!1)))}return p1.insert(b1)}c.default=T,c.matchAttributor=a1,c.matchBlot=e1,c.matchNewline=k1,c.matchSpacing=u1,c.matchText=l1},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"optimize",value:function(g){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);p.blotName="bold",p.tagName=["STRONG","B"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.addControls=c.default=void 0;var r=function(){function L(w,P){var j=[],E=!0,F=!1,R=void 0;try{for(var K=w[Symbol.iterator](),Z;!(E=(Z=K.next()).done)&&(j.push(Z.value),!(P&&j.length===P));E=!0);}catch(U){F=!0,R=U}finally{try{!E&&K.return&&K.return()}finally{if(F)throw R}}return j}return function(w,P){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return L(w,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function L(w,P){for(var j=0;j<P.length;j++){var E=P[j];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,P,j){return P&&L(w.prototype,P),j&&L(w,j),w}}(),o=n(2),l=g(o),f=n(0),u=g(f),d=n(5),h=g(d),p=n(10),v=g(p),m=n(9),y=g(m);function g(L){return L&&L.__esModule?L:{default:L}}function M(L,w,P){return w in L?Object.defineProperty(L,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):L[w]=P,L}function x(L,w){if(!(L instanceof w))throw new TypeError("Cannot call a class as a function")}function k(L,w){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:L}function b(L,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);L.prototype=Object.create(w&&w.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(L,w):L.__proto__=w)}var _=(0,v.default)("quill:toolbar"),C=function(L){b(w,L);function w(P,j){x(this,w);var E=k(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,P,j));if(Array.isArray(E.options.container)){var F=document.createElement("div");V(F,E.options.container),P.container.parentNode.insertBefore(F,P.container),E.container=F}else typeof E.options.container=="string"?E.container=document.querySelector(E.options.container):E.container=E.options.container;if(!(E.container instanceof HTMLElement)){var R;return R=_.error("Container required for toolbar",E.options),k(E,R)}return E.container.classList.add("ql-toolbar"),E.controls=[],E.handlers={},Object.keys(E.options.handlers).forEach(function(K){E.addHandler(K,E.options.handlers[K])}),[].forEach.call(E.container.querySelectorAll("button, select"),function(K){E.attach(K)}),E.quill.on(h.default.events.EDITOR_CHANGE,function(K,Z){K===h.default.events.SELECTION_CHANGE&&E.update(Z)}),E.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){var K=E.quill.selection.getRange(),Z=r(K,1),U=Z[0];E.update(U)}),E}return i(w,[{key:"addHandler",value:function(j,E){this.handlers[j]=E}},{key:"attach",value:function(j){var E=this,F=[].find.call(j.classList,function(K){return K.indexOf("ql-")===0});if(F){if(F=F.slice(3),j.tagName==="BUTTON"&&j.setAttribute("type","button"),this.handlers[F]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[F]==null){_.warn("ignoring attaching to disabled format",F,j);return}if(u.default.query(F)==null){_.warn("ignoring attaching to nonexistent format",F,j);return}}var R=j.tagName==="SELECT"?"change":"click";j.addEventListener(R,function(K){var Z=void 0;if(j.tagName==="SELECT"){if(j.selectedIndex<0)return;var U=j.options[j.selectedIndex];U.hasAttribute("selected")?Z=!1:Z=U.value||!1}else j.classList.contains("ql-active")?Z=!1:Z=j.value||!j.hasAttribute("value"),K.preventDefault();E.quill.focus();var I=E.quill.selection.getRange(),T=r(I,1),S=T[0];if(E.handlers[F]!=null)E.handlers[F].call(E,Z);else if(u.default.query(F).prototype instanceof u.default.Embed){if(Z=prompt("Enter "+F),!Z)return;E.quill.updateContents(new l.default().retain(S.index).delete(S.length).insert(M({},F,Z)),h.default.sources.USER)}else E.quill.format(F,Z,h.default.sources.USER);E.update(S)}),this.controls.push([F,j])}}},{key:"update",value:function(j){var E=j==null?{}:this.quill.getFormat(j);this.controls.forEach(function(F){var R=r(F,2),K=R[0],Z=R[1];if(Z.tagName==="SELECT"){var U=void 0;if(j==null)U=null;else if(E[K]==null)U=Z.querySelector("option[selected]");else if(!Array.isArray(E[K])){var I=E[K];typeof I=="string"&&(I=I.replace(/\"/g,'\\"')),U=Z.querySelector('option[value="'+I+'"]')}U==null?(Z.value="",Z.selectedIndex=-1):U.selected=!0}else if(j==null)Z.classList.remove("ql-active");else if(Z.hasAttribute("value")){var T=E[K]===Z.getAttribute("value")||E[K]!=null&&E[K].toString()===Z.getAttribute("value")||E[K]==null&&!Z.getAttribute("value");Z.classList.toggle("ql-active",T)}else Z.classList.toggle("ql-active",E[K]!=null)})}}]),w}(y.default);C.DEFAULTS={};function H(L,w,P){var j=document.createElement("button");j.setAttribute("type","button"),j.classList.add("ql-"+w),P!=null&&(j.value=P),L.appendChild(j)}function V(L,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(P){var j=document.createElement("span");j.classList.add("ql-formats"),P.forEach(function(E){if(typeof E=="string")H(j,E);else{var F=Object.keys(E)[0],R=E[F];Array.isArray(R)?N(j,F,R):H(j,F,R)}}),L.appendChild(j)})}function N(L,w,P){var j=document.createElement("select");j.classList.add("ql-"+w),P.forEach(function(E){var F=document.createElement("option");E!==!1?F.setAttribute("value",E):F.setAttribute("selected","selected"),j.appendChild(F)}),L.appendChild(j)}C.DEFAULTS={container:null,handlers:{clean:function(){var w=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var j=this.quill.getFormat();Object.keys(j).forEach(function(E){u.default.query(E,u.default.Scope.INLINE)!=null&&w.quill.format(E,!1)})}else this.quill.removeFormat(P,h.default.sources.USER)},direction:function(w){var P=this.quill.getFormat().align;w==="rtl"&&P==null?this.quill.format("align","right",h.default.sources.USER):!w&&P==="right"&&this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",w,h.default.sources.USER)},indent:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P),E=parseInt(j.indent||0);if(w==="+1"||w==="-1"){var F=w==="+1"?1:-1;j.direction==="rtl"&&(F*=-1),this.quill.format("indent",E+F,h.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,h.default.sources.USER)},list:function(w){var P=this.quill.getSelection(),j=this.quill.getFormat(P);w==="check"?j.list==="checked"||j.list==="unchecked"?this.quill.format("list",!1,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",w,h.default.sources.USER)}}},c.default=C,c.addControls=V},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.label.innerHTML=g,M.container.classList.add("ql-color-picker"),[].slice.call(M.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),M}return r(m,[{key:"buildItem",value:function(g){var M=i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,g);return M.style.backgroundColor=g.getAttribute("value")||"",M}},{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M);var x=this.label.querySelector(".ql-color-label"),k=g&&g.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=k:x.style.fill=k)}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(28),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(y,g){u(this,m);var M=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return M.container.classList.add("ql-icon-picker"),[].forEach.call(M.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=g[x.getAttribute("data-value")||""]}),M.defaultItem=M.container.querySelector(".ql-selected"),M.selectItem(M.defaultItem),M}return r(m,[{key:"selectItem",value:function(g,M){i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,M),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),m}(l.default);c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function l(f,u){for(var d=0;d<u.length;d++){var h=u[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,u,d){return u&&l(f.prototype,u),d&&l(f,d),f}}();function i(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(f,u){var d=this;i(this,l),this.quill=f,this.boundsContainer=u||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var d=u.left+u.width/2-this.root.offsetWidth/2,h=u.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=h+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>p.right&&(m=p.right-v.right,this.root.style.left=d+m+"px"),v.left<p.left&&(m=p.left-v.left,this.root.style.left=d+m+"px"),v.bottom>p.bottom){var y=v.bottom-v.top,g=u.bottom-u.top+y;this.root.style.top=h-g+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();c.default=o},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function N(L,w){var P=[],j=!0,E=!1,F=void 0;try{for(var R=L[Symbol.iterator](),K;!(j=(K=R.next()).done)&&(P.push(K.value),!(w&&P.length===w));j=!0);}catch(Z){E=!0,F=Z}finally{try{!j&&R.return&&R.return()}finally{if(E)throw F}}return P}return function(L,w){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return N(L,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function N(L,w,P){L===null&&(L=Function.prototype);var j=Object.getOwnPropertyDescriptor(L,w);if(j===void 0){var E=Object.getPrototypeOf(L);return E===null?void 0:N(E,w,P)}else{if("value"in j)return j.value;var F=j.get;return F===void 0?void 0:F.call(P)}},o=function(){function N(L,w){for(var P=0;P<w.length;P++){var j=w[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(L,j.key,j)}}return function(L,w,P){return w&&N(L.prototype,w),P&&N(L,P),L}}(),l=n(3),f=x(l),u=n(8),d=x(u),h=n(43),p=x(h),v=n(27),m=x(v),y=n(15),g=n(41),M=x(g);function x(N){return N&&N.__esModule?N:{default:N}}function k(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function b(N,L){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:N}function _(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(N,L):N.__proto__=L)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],H=function(N){_(L,N);function L(w,P){k(this,L),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=C);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.quill.container.classList.add("ql-snow"),j}return o(L,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),M.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),M.default),this.tooltip=new V(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(j,E){P.handlers.link.call(P,!E.format.link)})}}]),L}(p.default);H.DEFAULTS=(0,f.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(L){if(L){var w=this.quill.getSelection();if(w==null||w.length==0)return;var P=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var j=this.quill.theme.tooltip;j.edit("link",P)}else this.quill.format("link",!1)}}}}});var V=function(N){_(L,N);function L(w,P){k(this,L);var j=b(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,w,P));return j.preview=j.root.querySelector("a.ql-preview"),j}return o(L,[{key:"listen",value:function(){var P=this;i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(j){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),j.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(j){if(P.linkRange!=null){var E=P.linkRange;P.restoreFocus(),P.quill.formatText(E,"link",!1,d.default.sources.USER),delete P.linkRange}j.preventDefault(),P.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(j,E,F){if(j!=null){if(j.length===0&&F===d.default.sources.USER){var R=P.quill.scroll.descendant(m.default,j.index),K=r(R,2),Z=K[0],U=K[1];if(Z!=null){P.linkRange=new y.Range(j.index-U,Z.length());var I=m.default.formats(Z.domNode);P.preview.textContent=I,P.preview.setAttribute("href",I),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){i(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),L}(h.BaseTooltip);V.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),c.default=H},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(29),i=C1(r),o=n(36),l=n(38),f=n(64),u=n(65),d=C1(u),h=n(66),p=C1(h),v=n(67),m=C1(v),y=n(37),g=n(26),M=n(39),x=n(40),k=n(56),b=C1(k),_=n(68),C=C1(_),H=n(27),V=C1(H),N=n(69),L=C1(N),w=n(70),P=C1(w),j=n(71),E=C1(j),F=n(72),R=C1(F),K=n(73),Z=C1(K),U=n(13),I=C1(U),T=n(74),S=C1(T),W=n(75),Y=C1(W),A=n(57),B=C1(A),Q=n(41),a1=C1(Q),e1=n(28),s1=C1(e1),G=n(59),f1=C1(G),k1=n(60),u1=C1(k1),t1=n(61),l1=C1(t1),i1=n(108),p1=C1(i1),b1=n(62),v1=C1(b1);function C1(D1){return D1&&D1.__esModule?D1:{default:D1}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":M.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":M.FontStyle,"attributors/style/size":x.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":M.FontClass,"formats/size":x.SizeClass,"formats/blockquote":d.default,"formats/code-block":I.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":b.default,"formats/code":U.Code,"formats/italic":C.default,"formats/link":V.default,"formats/script":L.default,"formats/strike":P.default,"formats/underline":E.default,"formats/image":R.default,"formats/video":Z.default,"formats/list/item":v.ListItem,"modules/formula":S.default,"modules/syntax":Y.default,"modules/toolbar":B.default,"themes/bubble":p1.default,"themes/snow":v1.default,"ui/icons":a1.default,"ui/picker":s1.default,"ui/icon-picker":u1.default,"ui/color-picker":f1.default,"ui/tooltip":l1.default},!0),c.default=i.default},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.IndentClass=void 0;var r=function(){function m(y,g){for(var M=0;M<g.length;M++){var x=g[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,M){return g&&m(y.prototype,g),M&&m(y,M),y}}(),i=function m(y,g,M){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:m(k,g,M)}else{if("value"in x)return x.value;var b=x.get;return b===void 0?void 0:b.call(M)}},o=n(0),l=f(o);function f(m){return m&&m.__esModule?m:{default:m}}function u(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function d(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p=function(m){h(y,m);function y(){return u(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,[{key:"add",value:function(M,x){if(x==="+1"||x==="-1"){var k=this.value(M)||0;x=x==="+1"?k+1:k-1}return x===0?(this.remove(M),!0):i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,M,x)}},{key:"canAdd",value:function(M,x){return i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,x)||i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,M,parseInt(x))}},{key:"value",value:function(M){return parseInt(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,M))||void 0}}]),y}(l.default.Attributor.Class),v=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});c.IndentClass=v},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(4),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="blockquote",d.tagName="blockquote",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function p(v,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,m,y){return m&&p(v.prototype,m),y&&p(v,y),v}}(),i=n(4),o=l(i);function l(p){return p&&p.__esModule?p:{default:p}}function f(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function u(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function d(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var h=function(p){d(v,p);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return r(v,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),v}(o.default);h.blotName="header",h.tagName=["H1","H2","H3","H4","H5","H6"],c.default=h},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.ListItem=void 0;var r=function(){function k(b,_){for(var C=0;C<_.length;C++){var H=_[C];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(b,H.key,H)}}return function(b,_,C){return _&&k(b.prototype,_),C&&k(b,C),b}}(),i=function k(b,_,C){b===null&&(b=Function.prototype);var H=Object.getOwnPropertyDescriptor(b,_);if(H===void 0){var V=Object.getPrototypeOf(b);return V===null?void 0:k(V,_,C)}else{if("value"in H)return H.value;var N=H.get;return N===void 0?void 0:N.call(C)}},o=n(0),l=p(o),f=n(4),u=p(f),d=n(25),h=p(d);function p(k){return k&&k.__esModule?k:{default:k}}function v(k,b,_){return b in k?Object.defineProperty(k,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):k[b]=_,k}function m(k,b){if(!(k instanceof b))throw new TypeError("Cannot call a class as a function")}function y(k,b){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:k}function g(k,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);k.prototype=Object.create(b&&b.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(k,b):k.__proto__=b)}var M=function(k){g(b,k);function b(){return m(this,b),y(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(C,H){C===x.blotName&&!H?this.replaceWith(l.default.create(this.statics.scope)):i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,C,H)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,H){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,H),this):(this.parent.unwrap(),i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,C,H))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:i(b.__proto__||Object.getPrototypeOf(b),"formats",this).call(this,C)}}]),b}(u.default);M.blotName="list-item",M.tagName="LI";var x=function(k){g(b,k),r(b,null,[{key:"create",value:function(C){var H=C==="ordered"?"OL":"UL",V=i(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,H);return(C==="checked"||C==="unchecked")&&V.setAttribute("data-checked",C==="checked"),V}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function b(_){m(this,b);var C=y(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_)),H=function(N){if(N.target.parentNode===_){var L=C.statics.formats(_),w=l.default.find(N.target);L==="checked"?w.format("list","unchecked"):L==="unchecked"&&w.format("list","checked")}};return _.addEventListener("touchstart",H),_.addEventListener("mousedown",H),C}return r(b,[{key:"format",value:function(C,H){this.children.length>0&&this.children.tail.format(C,H)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,H){if(C instanceof M)i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,C,H);else{var V=H==null?this.length():H.offset(this),N=this.split(V);N.parent.insertBefore(C,N)}}},{key:"optimize",value:function(C){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,C);var H=this.next;H!=null&&H.prev===this&&H.statics.blotName===this.statics.blotName&&H.domNode.tagName===this.domNode.tagName&&H.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(H.moveChildren(this),H.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var H=l.default.create(this.statics.defaultChild);C.moveChildren(H),this.appendChild(H)}i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,C)}}]),b}(h.default);x.blotName="list",x.scope=l.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[M],c.ListItem=M,c.default=x},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(56),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="italic",d.tagName=["EM","I"],c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function v(m,y){for(var g=0;g<y.length;g++){var M=y[g];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(m,M.key,M)}}return function(m,y,g){return y&&v(m.prototype,y),g&&v(m,g),m}}(),i=function v(m,y,g){m===null&&(m=Function.prototype);var M=Object.getOwnPropertyDescriptor(m,y);if(M===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:v(x,y,g)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(g)}},o=n(6),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function u(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function h(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var p=function(v){h(m,v);function m(){return u(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),m}(l.default);p.blotName="script",p.tagName=["SUB","SUP"],c.default=p},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="strike",d.tagName="S",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=n(6),i=o(r);function o(h){return h&&h.__esModule?h:{default:h}}function l(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return l(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(i.default);d.blotName="underline",d.tagName="U",c.default=d},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(0),l=u(o),f=n(27);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["alt","height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return typeof x=="string"&&k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,f.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(l.default.Embed);m.blotName="image",m.tagName="IMG",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0});var r=function(){function y(g,M){for(var x=0;x<M.length;x++){var k=M[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,M,x){return M&&y(g.prototype,M),x&&y(g,x),g}}(),i=function y(g,M,x){g===null&&(g=Function.prototype);var k=Object.getOwnPropertyDescriptor(g,M);if(k===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:y(b,M,x)}else{if("value"in k)return k.value;var _=k.get;return _===void 0?void 0:_.call(x)}},o=n(4),l=n(27),f=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=["height","width"],m=function(y){p(g,y);function g(){return d(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(x,k){v.indexOf(x)>-1?k?this.domNode.setAttribute(x,k):this.domNode.removeAttribute(x):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,k)}}],[{key:"create",value:function(x){var k=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(x)),k}},{key:"formats",value:function(x){return v.reduce(function(k,b){return x.hasAttribute(b)&&(k[b]=x.getAttribute(b)),k},{})}},{key:"sanitize",value:function(x){return f.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(o.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",c.default=m},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.FormulaBlot=void 0;var r=function(){function x(k,b){for(var _=0;_<b.length;_++){var C=b[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(k,C.key,C)}}return function(k,b,_){return b&&x(k.prototype,b),_&&x(k,_),k}}(),i=function x(k,b,_){k===null&&(k=Function.prototype);var C=Object.getOwnPropertyDescriptor(k,b);if(C===void 0){var H=Object.getPrototypeOf(k);return H===null?void 0:x(H,b,_)}else{if("value"in C)return C.value;var V=C.get;return V===void 0?void 0:V.call(_)}},o=n(35),l=p(o),f=n(5),u=p(f),d=n(9),h=p(d);function p(x){return x&&x.__esModule?x:{default:x}}function v(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function m(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function y(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var g=function(x){y(k,x);function k(){return v(this,k),m(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,null,[{key:"create",value:function(_){var C=i(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",_)),C}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),k}(l.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var M=function(x){y(k,x),r(k,null,[{key:"register",value:function(){u.default.register(g,!0)}}]);function k(){v(this,k);var b=m(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return b}return k}(h.default);c.FormulaBlot=g,c.default=M},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.CodeToken=c.CodeBlock=void 0;var r=function(){function _(C,H){for(var V=0;V<H.length;V++){var N=H[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(C,N.key,N)}}return function(C,H,V){return H&&_(C.prototype,H),V&&_(C,V),C}}(),i=function _(C,H,V){C===null&&(C=Function.prototype);var N=Object.getOwnPropertyDescriptor(C,H);if(N===void 0){var L=Object.getPrototypeOf(C);return L===null?void 0:_(L,H,V)}else{if("value"in N)return N.value;var w=N.get;return w===void 0?void 0:w.call(V)}},o=n(0),l=m(o),f=n(5),u=m(f),d=n(9),h=m(d),p=n(13),v=m(p);function m(_){return _&&_.__esModule?_:{default:_}}function y(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function g(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function M(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var x=function(_){M(C,_);function C(){return y(this,C),g(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"replaceWith",value:function(V){this.domNode.textContent=this.domNode.textContent,this.attach(),i(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,V)}},{key:"highlight",value:function(V){var N=this.domNode.textContent;this.cachedText!==N&&((N.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=V(N),this.domNode.normalize(),this.attach()),this.cachedText=N)}}]),C}(v.default);x.className="ql-syntax";var k=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),b=function(_){M(C,_),r(C,null,[{key:"register",value:function(){u.default.register(k,!0),u.default.register(x,!0)}}]);function C(H,V){y(this,C);var N=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,H,V));if(typeof N.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return N.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){N.highlight(),L=null},N.options.interval)}),N.highlight(),N}return r(C,[{key:"highlight",value:function(){var V=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var N=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(L){L.highlight(V.options.highlight)}),this.quill.update(u.default.sources.SILENT),N!=null&&this.quill.setSelection(N,u.default.sources.SILENT)}}}]),C}(h.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(_){var C=window.hljs.highlightAuto(_);return C.value}}(),interval:1e3},c.CodeBlock=x,c.CodeToken=k,c.default=b},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(a,c){a.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(a,c){a.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(a,c){a.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(a,c,n){Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.BubbleTooltip=void 0;var r=function C(H,V,N){H===null&&(H=Function.prototype);var L=Object.getOwnPropertyDescriptor(H,V);if(L===void 0){var w=Object.getPrototypeOf(H);return w===null?void 0:C(w,V,N)}else{if("value"in L)return L.value;var P=L.get;return P===void 0?void 0:P.call(N)}},i=function(){function C(H,V){for(var N=0;N<V.length;N++){var L=V[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(H,L.key,L)}}return function(H,V,N){return V&&C(H.prototype,V),N&&C(H,N),H}}(),o=n(3),l=y(o),f=n(8),u=y(f),d=n(43),h=y(d),p=n(15),v=n(41),m=y(v);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,H){if(!(C instanceof H))throw new TypeError("Cannot call a class as a function")}function M(C,H){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:C}function x(C,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);C.prototype=Object.create(H&&H.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(C,H):C.__proto__=H)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(C){x(H,C);function H(V,N){g(this,H),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=k);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.container.classList.add("ql-bubble"),L}return i(H,[{key:"extendToolbar",value:function(N){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(N.container),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),m.default)}}]),H}(h.default);b.DEFAULTS=(0,l.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(H){H?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(C){x(H,C);function H(V,N){g(this,H);var L=M(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,V,N));return L.quill.on(u.default.events.EDITOR_CHANGE,function(w,P,j,E){if(w===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&E===u.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var F=L.quill.getLines(P.index,P.length);if(F.length===1)L.position(L.quill.getBounds(P));else{var R=F[F.length-1],K=L.quill.getIndex(R),Z=Math.min(R.length()-1,P.index+P.length-K),U=L.quill.getBounds(new p.Range(K,Z));L.position(U)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return i(H,[{key:"listen",value:function(){var N=this;r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){N.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!N.root.classList.contains("ql-hidden")){var L=N.quill.getSelection();L!=null&&N.position(N.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(N){var L=r(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"position",this).call(this,N),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",L===0)return L;w.style.marginLeft=-1*L-w.offsetWidth/2+"px"}}]),H}(d.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),c.BubbleTooltip=_,c.default=b},function(a,c,n){a.exports=n(63)}]).default})})(Pn1);var us2=Pn1.exports;const ds2=JS1(us2);const hs2={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},ps2={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(e,t){const a={editorOption:{},quill:null};let c="";s.watch(()=>e.value,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.content,o=>{a.quill&&(o&&o!==c?(c=o,a.quill.pasteHTML(o)):o||a.quill.setText(""))}),s.watch(()=>e.disabled,o=>{a.quill&&a.quill.enable(!o)});const n=s.ref(null),r=(o,l)=>{for(const f in l)!o[f]||f!=="modules"?o[f]=l[f]:r(o[f],l[f]);return o},i=()=>{n.value&&(a.editorOption=r(hs2,e.options),a.editorOption.readOnly=!!e.disabled,a.quill=new ds2(n.value,a.editorOption),e.value&&a.quill.pasteHTML(e.value),a.quill.on("selection-change",o=>{o?t.emit("focus",a.quill):t.emit("blur",a.quill)}),a.quill.on("text-change",()=>{e.disabled&&a.quill.enable(!1);let o=n.value.children[0].innerHTML;const l=a.quill,f=a.quill.getText();o==="<p><br></p>"&&(o=""),c=o,t.emit("update:value",c),t.emit("change",{html:o,text:f,quill:l})}),t.emit("ready",a.quill))};return s.onBeforeUnmount(()=>{const o=n.value.previousSibling;o&&o.nodeType===1&&o.className.indexOf("ql-toolbar")>-1&&o.parentNode.removeChild(o)}),s.onMounted(()=>{i()}),s.onUnmounted(()=>{a.quill=null}),{editor:n}}},ms2={ref:"editor"};function vs2(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("section",ms2,null,512)}const NR=Q1(ps2,[["render",vs2]]);NR.install=function(e){e.component(NR.name,NR)};const ys2=s.defineComponent({__name:"PgaMaxLength",props:{content:{},maxLength:{}},setup(e){const t=e,a=s.computed(()=>{var n;return((n=t.content)==null?void 0:n.length)||0}),c=s.computed(()=>a.value>t.maxLength);return(n,r)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["pga-max-length",{"pga-max-length--error":c.value}])},s.toDisplayString(`${a.value} / ${n.maxLength}`),3))}});const LX=Q1(ys2,[["__scopeId","data-v-b4f7d8d8"]]),gs2={class:"editor__container"},Ms2={class:"editor__footer"},ks2={class:"editor__status"},xs2=s.defineComponent({__name:"PgaEditor",props:s.mergeModels({saveFn:{type:Function},maxContentLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=Te.getConfig(),n=$2("pgaEditor"),r={placeholder:"",modules:{toolbar:[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],["link"],["clean"]]}},i=s.ref(t.value),o=s.ref(!1);let l;const f=s.ref(!1),u=s.ref(!1),d=s.computed(()=>a.maxContentLength||c.stringLengths.hyperLong),h=s.computed(()=>lc1(t.value)),p=s.computed(()=>h.value.length),v=s.computed(()=>p.value>d.value);s.watch(t,()=>{f.value=!1,u.value=!1,clearTimeout(l),l=setTimeout(()=>m(),1e3*3)});async function m(){if(i.value!==t.value){if(v.value){u.value=!0;return}try{o.value=!0,i.value=await a.saveFn(t.value),f.value=!0,setTimeout(()=>f.value=!1,1e3*3)}finally{o.value=!1}}}return(y,g)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-editor",{"pga-editor--loading":o.value}])},[s.createElementVNode("div",gs2,[s.createVNode(s.unref(NR),{value:t.value,"onUpdate:value":g[0]||(g[0]=M=>t.value=M),options:r},null,8,["value"])]),s.createElementVNode("div",Ms2,[s.createVNode(LX,{content:h.value,maxLength:d.value},null,8,["content","maxLength"]),s.createElementVNode("div",ks2,[o.value?(s.openBlock(),s.createBlock(w8,{key:0,size:"s",noCenter:""})):f.value?(s.openBlock(),s.createBlock(D3,{key:1,icon:"save",text:s.unref(n)("savedMsg"),color:"success"},null,8,["text"])):u.value?(s.openBlock(),s.createBlock(D3,{key:2,icon:"circle-x",text:s.unref(n)("saveErrorMsg"),color:"danger"},null,8,["text"])):s.createCommentVNode("",!0)])])],2))}});const bs2=Q1(xs2,[["__scopeId","data-v-265fe9ad"]]),zs2={class:"pga-info-card"},Cs2={key:1,class:"info-card__content"},_s2=s.defineComponent({__name:"PgaInfoCard",props:{type:{default:"success"},title:{},description:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",zs2,[t.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock("div",Cs2,[s.createVNode(U3,{icon:t.type==="success"?"circle-check":"circle-x",color:t.type,size:"1.9rem"},null,8,["icon","color"]),s.createVNode(D3,{class:"info-card__title",text:t.title},null,8,["text"]),t.description?(s.openBlock(),s.createBlock(D3,{key:0,class:"info-card__description",text:t.description},null,8,["text"])):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},void 0,!0)]))]))}});const ws2=Q1(_s2,[["__scopeId","data-v-7b42833e"]]),rq=s.defineComponent({__name:"PgaInfoTooltip",props:{info:{},size:{default:"0.9rem"}},setup(e){const t=e,a=s.computed(()=>X3(t.info));return(c,n)=>{const r=s.resolveDirective("tooltip");return a.value?s.withDirectives((s.openBlock(),s.createBlock(U3,{key:0,icon:"circle-help",size:c.size},null,8,["size"])),[[r,{content:a.value,html:!0}]]):s.createCommentVNode("",!0)}}}),Hs2=s.defineComponent({__name:"PgaIsEnabled",props:{isEnabled:{type:Boolean}},setup(e){const t=e;return(a,c)=>(s.openBlock(),s.createBlock(U3,{icon:t.isEnabled?"circle-check":"circle-x",color:t.isEnabled?"success":"danger"},null,8,["icon","color"]))}}),Ls2=s.defineComponent({__name:"PgaItemSelected",props:s.mergeModels({items:{},item:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const a=s.useModel(e,"modelValue"),c=e;t({toggleItemSelected:r});const n=s.computed({get(){if(c.item)return!!a.value.find(o=>o.id===c.item.id);for(const i of c.items)if(!a.value.find(l=>l.id===i.id))return!1;return!0},set(i){c.item?i?a.value.push(c.item):a.value=a.value.filter(o=>o.id!==c.item.id):i?a.value=[...c.items]:a.value=[]}});function r(){n.value=!n.value}return(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["item-selected",{"item-selected--selected":n.value}]),onClick:o[0]||(o[0]=l=>r())},[n.value?(s.openBlock(),s.createBlock(U3,{key:0,class:"item-selected__check-icon",icon:"check"})):s.createCommentVNode("",!0)],2))}});const IY=Q1(Ls2,[["__scopeId","data-v-4c2eea9f"]]),Vs2={class:"modal__header"},Ss2=["textContent"],Ns2={class:"modal__body"},As2={key:0,class:"modal__footer"},Ts2=s.defineComponent({__name:"PgaModal",props:s.mergeModels({title:{},confirmButtons:{type:Boolean},isLoading:{type:Boolean},width:{default:"auto"},acceptText:{},cancelText:{},acceptIcon:{default:"save"}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["accept"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(r=>({"06ae9bd8":r.width}));const a=s.useModel(e,"modelValue"),c=t,n=$2("pgaModal");return s.watch(a,r=>If(!r)),(r,i)=>a.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pga-modal",onMousedown:i[4]||(i[4]=o=>a.value=!1)},[s.createElementVNode("div",{class:"modal__content",onMousedown:i[3]||(i[3]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",Vs2,[s.createElementVNode("span",{class:"modal__title",textContent:s.toDisplayString(r.title)},null,8,Ss2),s.createElementVNode("div",{class:"close-icon",onClick:i[0]||(i[0]=o=>a.value=!1)},[s.createVNode(U3,{icon:"x"})])]),s.createElementVNode("div",Ns2,[s.renderSlot(r.$slots,"default",{},void 0,!0)]),r.confirmButtons?(s.openBlock(),s.createElementBlock("div",As2,[r.isLoading?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(V2,{key:0,text:r.cancelText||s.unref(n)("cancelBtn"),color:"danger",variant:"flat",onClick:i[1]||(i[1]=o=>a.value=!1)},null,8,["text"])),s.createVNode(V2,{icon:r.acceptIcon,text:r.acceptText||s.unref(n)("acceptBtn"),color:"success",variant:"filled",isLoading:r.isLoading,onClick:i[2]||(i[2]=o=>c("accept"))},null,8,["icon","text","isLoading"])])):s.createCommentVNode("",!0)],32)],32)):s.createCommentVNode("",!0)}});const Es2=Q1(Ts2,[["__scopeId","data-v-57c9b33b"]]),Ds2={class:"pga-flex-row"},Ps2=s.defineComponent({__name:"PgaMonthSelector",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=s.computed({get(){return{year:t.value.datetimeFrom.getFullYear(),month:t.value.datetimeFrom.getMonth()}},set(r){const i=new Date(r.year,r.month,1);t.value={datetimeFrom:i,datetimeTo:c4.getNextMonthStartDate(i)}}});function c(){t.value={datetimeFrom:c4.getPreviousMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getPreviousMonthStartDate(t.value.datetimeTo)}}function n(){t.value={datetimeFrom:c4.getNextMonthStartDate(t.value.datetimeFrom),datetimeTo:c4.getNextMonthStartDate(t.value.datetimeTo)}}return(r,i)=>{const o=s.resolveComponent("PgaButton"),l=s.resolveComponent("PgaMonthPicker");return s.openBlock(),s.createElementBlock("div",Ds2,[s.createVNode(o,{icon:"chevron-left",variant:"flat",color:"first",onClick:i[0]||(i[0]=f=>c())}),s.createVNode(l,{modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=f=>a.value=f),notClearable:""},null,8,["modelValue"]),s.createVNode(o,{icon:"chevron-right",variant:"flat",color:"first",onClick:i[2]||(i[2]=f=>n())})])}}}),Os2=s.defineComponent({__name:"PgaSeparator",props:{vertical:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["separator",{"separator--vertical":t.vertical}])},null,2))}});const Is2=Q1(Os2,[["__scopeId","data-v-cf62e441"]]),Bs2={class:"pga-tabs"},Rs2={class:"tabs__nav",role:"tablist"},Fs2=["onClick"],$s2={class:"tabs__panel",role:"tabpanel"},qs2=s.defineComponent({__name:"PgaTabs",props:{tabs:{}},setup(e){const t=s.ref(0);return(a,c)=>{const n=s.resolveComponent("PgaIcon"),r=s.resolveComponent("PgaDisplayText");return s.openBlock(),s.createElementBlock("div",Bs2,[s.createElementVNode("nav",Rs2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.tabs,(i,o)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["tabs__card",{"tabs__card--active":t.value===o}]),key:`tab-${o}`,role:"tab",onClick:l=>t.value=o},[i.icon?(s.openBlock(),s.createBlock(n,{key:0,class:"tabs__icon",icon:i.icon},null,8,["icon"])):s.createCommentVNode("",!0),s.createVNode(r,{class:"tabs__label",text:i.label},null,8,["text"])],10,Fs2))),128))]),s.createElementVNode("section",$s2,[s.renderSlot(a.$slots,`panel${t.value+1}`,{},void 0,!0)])])}}});const js2=Q1(qs2,[["__scopeId","data-v-25e61813"]]),Us2=["accept","multiple","disabled"],Ws2={class:"input-file__label-container"},Ys2=s.defineComponent({__name:"PgaInputFile",props:{type:{},multiple:{type:Boolean},label:{},disabled:{type:Boolean},isLoading:{type:Boolean}},emits:["newFile","newFiles"],setup(e,{expose:t,emit:a}){s.useCssVars(b=>({"13af3e9c":s.unref(r).input.borderColor,"309935ba":s.unref(r).input.borderRadius,"404a4b70":s.unref(r).input.backgroundColor,"1cb633ac":s.unref(r).input.backgroundColorHover,"54c07a0c":s.unref(r).input.backgroundColorDisabled}));const c=e,n=a;t({click:M,resetInput:x});const{form:r}=O4(),i=$2("pgaForm"),o=(()=>c.type==="image"?["jpeg","jpg","png","webp","gif","svg","bmp","tiff","heic"]:c.type==="video"?["mp4","mov","avi","webm","mkv"]:["xls","xlsx"])(),l=o.map(b=>`.${b}`).join(","),f=s.ref(),u=s.ref([]),d=s.ref(!1),h=s.ref(!1),p=s.computed(()=>c.disabled||c.isLoading),v=s.computed(()=>!!u.value.length),m=s.computed(()=>{for(const b of u.value){const _=b.name.split(".").pop();if(!o.includes(_))return!1}return!0}),y=s.computed(()=>{const b={icon:"upload"};return!v.value||d.value&&!h.value&&!p.value?b:m.value?{icon:"circle-check",color:"success"}:{icon:"circle-x",color:"danger"}}),g=s.computed(()=>v.value?u.value.map(b=>b.name).join(", "):c.label?c.label:c.multiple?i("selectFilesLabel"):i("selectFileLabel"));function M(){var b;(b=f.value)==null||b.click()}function x(){u.value=[],f.value&&(f.value.value="")}function k(b){d.value=!1;const C=b.target.files;if(C.length){if(u.value=[...C],!m.value){W4.Add("danger",()=>i("newFileError"));return}n("newFile",C[0]),n("newFiles",[...C])}}return(b,_)=>(s.openBlock(),s.createElementBlock("label",{class:s.normalizeClass(["pga-input-file",{"pga-input-file--disabled":p.value}]),onMouseenter:_[4]||(_[4]=C=>d.value=!0),onMouseleave:_[5]||(_[5]=C=>d.value=!1)},[b.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("input",{ref_key:"inputRef",ref:f,class:"input-file__input",type:"file",accept:s.unref(l),multiple:b.multiple,disabled:p.value,onChange:_[0]||(_[0]=C=>k(C))},null,40,Us2),s.createVNode(U3,{class:"input-file__icon",icon:y.value.icon,color:y.value.color},null,8,["icon","color"]),s.createElementVNode("div",Ws2,[s.createVNode(D3,{text:g.value},null,8,["text"])]),v.value?(s.openBlock(),s.createBlock(V2,{key:0,text:s.unref(i)("removeBtn"),variant:"flat",color:"danger",size:"s",disabled:p.value,onMouseenter:_[1]||(_[1]=C=>h.value=!0),onMouseleave:_[2]||(_[2]=C=>h.value=!1),onClick:_[3]||(_[3]=s.withModifiers(C=>x(),["prevent"]))},null,8,["text","disabled"])):s.createCommentVNode("",!0)],64))],34))}});const Wf=Q1(Ys2,[["__scopeId","data-v-0a46f5a2"]]),Gs2={class:"pga-videos"},Zs2={class:"videos"},Xs2=["src"],Ks2={key:0,class:"videos__input-container"},Qs2=s.defineComponent({__name:"PgaVideos",props:s.mergeModels({maxVideosQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=$2("pgaFile"),n=s.ref(),r=s.ref(!1),i=s.ref(-1),o=s.computed(()=>t.value.length),l=s.computed(()=>t.value.map(d=>typeof d=="string"?d:URL.createObjectURL(d)));async function f(d){var h;if((h=n.value)==null||h.resetInput(),o.value+d.length>a.maxVideosQuantity&&(d=d.slice(0,a.maxVideosQuantity-o.value),W4.Add("warning",()=>c("maxVideosQuantityAlert",{maxQuantity:a.maxVideosQuantity}))),!a.uploadFn){t.value.push(...d);return}try{r.value=!0,t.value=await a.uploadFn({file:d})}finally{r.value=!1}}async function u(d){if(a.deleteFn)try{i.value=d,await a.deleteFn({index:d})}finally{i.value=-1}t.value.splice(d,1)}return(d,h)=>{const p=s.resolveComponent("PgaDeleteButton");return s.openBlock(),s.createElementBlock("div",Gs2,[s.createElementVNode("div",Zs2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(v,m)=>(s.openBlock(),s.createElementBlock("div",{key:v,class:"videos__video-container"},[s.createElementVNode("video",{class:"videos__video",src:v,controls:""},null,8,Xs2),s.createVNode(p,{class:"videos__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===m,onDeleteConfirmed:y=>u(m)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),o.value<d.maxVideosQuantity?(s.openBlock(),s.createElementBlock("div",Ks2,[s.createVNode(Wf,{ref_key:"inputFileRef",ref:n,class:"videos__input",type:"video",multiple:"",label:s.unref(c)("selectVideos"),isLoading:r.value,onNewFiles:h[0]||(h[0]=v=>f(v))},null,8,["label","isLoading"])])):s.createCommentVNode("",!0)]),s.createElementVNode("span",null,s.toDisplayString(`${o.value} / ${d.maxVideosQuantity}`),1)])}}});const Js2=Q1(Qs2,[["__scopeId","data-v-f8515444"]]),e92=s.defineComponent({__name:"PgaBackButton",setup(e){const t=$2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(V2,{text:s.unref(t)("backBtn"),icon:"chevron-left",color:"first",size:"s"},null,8,["text"]))}}),t92={class:"button-link",type:"button"},a92=s.defineComponent({__name:"PgaButtonLink",props:{text:{},icon:{},size:{default:"inherit"},color:{default:"link"},noUnderline:{type:Boolean}},setup(e){s.useCssVars(n=>({"370b3d02":n.size,"0aa3ccc4":a.value,"3d02123e":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-08)`);return(n,r)=>(s.openBlock(),s.createElementBlock("button",t92,[n.text?(s.openBlock(),s.createBlock(D3,{key:0,class:s.normalizeClass(["button-link__text",{"button-link__text--with-underline":!n.noUnderline}]),text:n.text,icon:n.icon},null,8,["class","text","icon"])):s.renderSlot(n.$slots,"default",{key:1},void 0,!0)]))}});const On1=Q1(a92,[["__scopeId","data-v-7193770d"]]),c92={class:"pga-copy"},n92=s.defineComponent({__name:"PgaCopy",props:{text:{}},setup(e){const t=e,a=$2("pgaButton"),c=s.ref(!1),n=s.computed(()=>X3(t.text));async function r(){await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>c.value=!1,3e3)}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("div",c92,[s.createElementVNode("span",null,s.toDisplayString(n.value),1),c.value?(s.openBlock(),s.createBlock(U3,{key:1,icon:"circle-check",color:"success"})):s.withDirectives((s.openBlock(),s.createBlock(V2,{key:0,color:"first",icon:"copy",size:"s",onClick:o[0]||(o[0]=f=>r())},null,512)),[[l,s.unref(a)("copyBtn")]])])}}});const r92=Q1(n92,[["__scopeId","data-v-64962c4d"]]),i92=s.defineComponent({__name:"PgaCopyButton",props:{text:{},label:{}},setup(e){const t=e,a=$2("pgaButton"),c=s.computed(()=>X3(t.text)),n=s.computed(()=>t.label||a("copyBtn"));async function r(){await navigator.clipboard.writeText(c.value),W4.Add("success",()=>a("textCopied"))}return(i,o)=>{const l=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(V2,{color:"first",icon:"copy",text:n.value,onClick:o[0]||(o[0]=f=>r())},null,8,["text"])),[[l,c.value]])}}});class In1{static Show(t,a){AY.value=t,rn1.value=a,uo.value=!0}}const iq=s.defineComponent({__name:"PgaDeleteButton",props:{variant:{default:"flat"},icon:{default:"trash-2"},text:{},withoutText:{type:Boolean},withoutConfirm:{type:Boolean},confirmDeleteText:{}},emits:["deleteConfirmed"],setup(e,{emit:t}){const a=e,c=t,n=$2("pgaButton");function r(){if(a.withoutConfirm){c("deleteConfirmed");return}const i=a.confirmDeleteText||n("confirmDeleteText");In1.Show(i,()=>c("deleteConfirmed"))}return(i,o)=>(s.openBlock(),s.createBlock(V2,{class:"delete-button",variant:i.variant,icon:i.icon,text:i.withoutText?void 0:i.text||s.unref(n)("deleteBtn"),size:"s",align:"left",color:"danger",onClick:o[0]||(o[0]=l=>r())},null,8,["variant","icon","text"]))}}),BY=s.defineComponent({__name:"PgaEditButton",props:{withoutText:{type:Boolean},fullWidth:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>{const n=s.resolveDirective("tooltip");return s.withDirectives((s.openBlock(),s.createBlock(V2,{class:"edit-button",variant:"flat",color:"sky",icon:"square-pen",text:a.withoutText?void 0:s.unref(t)("editBtn"),size:"s",fullWidth:a.fullWidth,align:"left"},null,8,["text","fullWidth"])),[[n,a.withoutText?s.unref(t)("editBtn"):""]])}}}),o92=["href","target"],s92=s.defineComponent({__name:"PgaLink",props:{text:{},href:{},target:{default:"_blank"}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("a",{class:"hyperlink",href:t.href,target:t.target},[s.createVNode(D3,{text:t.text,withUnderlineOnHover:""},null,8,["text"])],8,o92))}});const Bn1=Q1(s92,[["__scopeId","data-v-ec435fa7"]]),l92=s.defineComponent({__name:"PgaLogoutButton",emits:["click"],setup(e,{emit:t}){const a=t,c=$2("pgaButton");return(n,r)=>(s.openBlock(),s.createBlock(V2,{icon:"log-out",text:s.unref(c)("logoutBtn"),color:"danger",onClick:r[0]||(r[0]=i=>a("click",i))},null,8,["text"]))}}),f92=s.defineComponent({__name:"PgaRouterLink",props:{name:{},params:{},query:{},color:{default:"var(--pga-color-first)"},noFitContent:{type:Boolean},underline:{type:Boolean},noUnderlineOnHover:{type:Boolean}},setup(e){s.useCssVars(n=>({"040e9024":a.value,"75a55a4c":c.value}));const t=e,a=s.computed(()=>`var(--pga-color-${t.color})`),c=s.computed(()=>`var(--pga-color-${t.color}-09)`);return(n,r)=>{const i=s.resolveComponent("RouterLink");return s.openBlock(),s.createBlock(i,{class:s.normalizeClass(["pga-router-link",{"pga-router-link--fit-content":!n.noFitContent,"pga-router-link--underline":n.underline,"pga-router-link--underline-on-hover":!n.noUnderlineOnHover}]),to:{name:n.name,params:n.params,query:n.query},onClick:r[0]||(r[0]=o=>s.unref(If)(!0))},{default:s.withCtx(()=>[s.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class","to"])}}});const Yf=Q1(f92,[["__scopeId","data-v-6046ce2c"]]),Rn1=s.defineComponent({__name:"PgaRouterLinkButton",props:{name:{},params:{},query:{},type:{},icon:{},text:{},variant:{},size:{},align:{},color:{},heightAndWidth:{},borderRadius:{},rounded:{type:Boolean},disabled:{type:Boolean},isLoading:{type:Boolean},numberToDisplay:{},noFitContent:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(Yf,{name:t.name,params:t.params,query:t.query,noFitContent:t.noFitContent,noUnderlineOnHover:""},{default:s.withCtx(()=>[t.$slots.default?s.renderSlot(t.$slots,"default",{key:0}):(s.openBlock(),s.createBlock(V2,{key:1,type:t.type,icon:t.icon,text:t.text,variant:t.variant,size:t.size,align:t.align,color:t.color,fullWidth:!t.heightAndWidth,heightAndWidth:t.heightAndWidth,borderRadius:t.borderRadius,rounded:t.rounded,disabled:t.disabled,isLoading:t.isLoading,numberToDisplay:t.numberToDisplay},null,8,["type","icon","text","variant","size","align","color","fullWidth","heightAndWidth","borderRadius","rounded","disabled","isLoading","numberToDisplay"]))]),_:3},8,["name","params","query","noFitContent"]))}}),Fn1=s.defineComponent({__name:"PgaNavigateToButton",props:{id:{},toName:{},withoutText:{type:Boolean},noFitContent:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>a.toName?(s.openBlock(),s.createBlock(Rn1,{key:0,name:a.toName,params:{id:a.id},icon:"external-link",text:a.withoutText?void 0:s.unref(t)("navigateToBtn"),variant:"flat",size:"s",align:"left",color:"link",noFitContent:a.noFitContent},null,8,["name","params","text","noFitContent"])):s.createCommentVNode("",!0)}}),u92=s.defineComponent({__name:"PgaRemoveButton",props:{size:{default:"s"},disabled:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(V2,{variant:"flat",icon:"x",size:t.size,color:"danger",disabled:t.disabled},null,8,["size","disabled"]))}}),d92=s.defineComponent({__name:"PgaSeeDetailsButton",props:{withoutText:{type:Boolean}},setup(e){const t=$2("pgaButton");return(a,c)=>(s.openBlock(),s.createBlock(V2,{class:"edit-button",variant:"flat",color:"grey",icon:"eye",text:a.withoutText?void 0:s.unref(t)("seeDetailsBtn"),size:"s",align:"left"},null,8,["text"]))}}),h92=s.defineComponent({__name:"PgaToggleButton",props:s.mergeModels({text:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=t,n=s.computed(()=>a.value?"outlined":"flat"),r=s.computed(()=>a.value?"primary":"grey");return s.watch(a,i=>c("change",i)),(i,o)=>(s.openBlock(),s.createBlock(V2,{variant:n.value,color:r.value,icon:"circle-check",text:i.text,size:"s",borderRadius:"1rem",onClick:o[0]||(o[0]=l=>a.value=!a.value)},null,8,["variant","color","text"]))}});var p92=Object.defineProperty,m92=(e,t,a)=>t in e?p92(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Wt=(e,t,a)=>m92(e,typeof t!="symbol"?t+"":t,a);const v92=(e,t,a)=>{const c=e[t];return c?typeof c=="function"?c():Promise.resolve(c):new Promise((n,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==a?". Note that variables only represent file names one level deep.":""))))})};let Ys,j31,U31,M0,Gs={},Xi={};class y92{constructor(t,a=!1){Wt(this,"texts",{}),Wt(this,"dateToMinutes",c=>c.getHours()*60+c.getMinutes()),M0=this,this._texts=t,!a&&Date&&!Date.prototype.addDays&&this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return M0.addDays(this,t)},Date.prototype.subtractDays=function(t){return M0.subtractDays(this,t)},Date.prototype.addHours=function(t){return M0.addHours(this,t)},Date.prototype.subtractHours=function(t){return M0.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return M0.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return M0.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return M0.getWeek(this)},Date.prototype.isToday=function(){return M0.isToday(this)},Date.prototype.isLeapYear=function(){return M0.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return M0.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return M0.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return j31!==new Date().getDate()&&(Ys=new Date,j31=Ys.getDate(),U31=`${Ys.getFullYear()}-${Ys.getMonth()}-${Ys.getDate()}`),U31}addDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()+a),c}subtractDays(t,a){const c=new Date(t.valueOf());return c.setDate(c.getDate()-a),c}addHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()+a),c}subtractHours(t,a){const c=new Date(t.valueOf());return c.setHours(c.getHours()-a),c}addMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()+a),c}subtractMinutes(t,a){const c=new Date(t.valueOf());return c.setMinutes(c.getMinutes()-a),c}getWeek(t){const a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),c=a.getUTCDay()||7;a.setUTCDate(a.getUTCDate()+4-c);const n=new Date(Date.UTC(a.getUTCFullYear(),0,1));return Math.ceil(((a-n)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const a=t.getFullYear();return!(a%400)||a%100&&!(a%4)}getPreviousFirstDayOfWeek(t=null,a){const c=t&&new Date(t.valueOf())||new Date,n=a?7:6;return c.setDate(c.getDate()-(c.getDay()+n)%7),c}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,a){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof a=="string"&&(a=a.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),a=new Date(a).setHours(0,0,1,0);const c=(new Date(a).getTimezoneOffset()-new Date(t).getTimezoneOffset())*60*1e3;return Math.ceil((a-t-c)/(24*3600*1e3))}datesInSameTimeStep(t,a,c){return Math.abs(t.getTime()-a.getTime())<=c*60*1e3}formatDate(t,a="YYYY-MM-DD",c=null){if(c||(c=this._texts),a||(a="YYYY-MM-DD"),a==="YYYY-MM-DD")return this.formatDateLite(t);Gs={},Xi={};const n={YYYY:()=>this._hydrateDateObject(t,c).YYYY,YY:()=>this._hydrateDateObject(t,c).YY(),M:()=>this._hydrateDateObject(t,c).M,MM:()=>this._hydrateDateObject(t,c).MM(),MMM:()=>this._hydrateDateObject(t,c).MMM(),MMMM:()=>this._hydrateDateObject(t,c).MMMM(),MMMMG:()=>this._hydrateDateObject(t,c).MMMMG(),D:()=>this._hydrateDateObject(t,c).D,DD:()=>this._hydrateDateObject(t,c).DD(),S:()=>this._hydrateDateObject(t,c).S(),d:()=>this._hydrateDateObject(t,c).d,dd:()=>this._hydrateDateObject(t,c).dd(),ddd:()=>this._hydrateDateObject(t,c).ddd(),dddd:()=>this._hydrateDateObject(t,c).dddd(),HH:()=>this._hydrateTimeObject(t,c).HH,H:()=>this._hydrateTimeObject(t,c).H,hh:()=>this._hydrateTimeObject(t,c).hh,h:()=>this._hydrateTimeObject(t,c).h,am:()=>this._hydrateTimeObject(t,c).am,AM:()=>this._hydrateTimeObject(t,c).AM,mm:()=>this._hydrateTimeObject(t,c).mm,m:()=>this._hydrateTimeObject(t,c).m};return a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,i)=>{const o=n[i.replace(/\{|\}/g,"")];return o!==void 0?o():i})}formatDateLite(t){const a=t.getMonth()+1,c=t.getDate();return`${t.getFullYear()}-${a<10?"0":""}${a}-${c<10?"0":""}${c}`}formatTime(t,a="HH:mm",c=null,n=!1){let r=!1;if(n){const[l,f,u]=[t.getHours(),t.getMinutes(),t.getSeconds()];l+f+u===23+59+59&&(r=!0)}if(t instanceof Date&&a==="HH:mm")return r?"24:00":this.formatTimeLite(t);Xi={},c||(c=this._texts);const i=this._hydrateTimeObject(t,c),o=a.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(l,f)=>{const u=i[f.replace(/\{|\}/g,"")];return u!==void 0?u:f});return r?o.replace("23:59","24:00"):o}formatTimeLite(t){const a=t.getHours(),c=t.getMinutes();return`${(a<10?"0":"")+a}:${(c<10?"0":"")+c}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,a){if(Gs.D)return Gs;const c=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),o=(t.getDay()-1+7)%7;return Gs={YYYY:c,YY:()=>c.toString().substring(2),M:n,MM:()=>(n<10?"0":"")+n,MMM:()=>a.months[n-1].substring(0,3),MMMM:()=>a.months[n-1],MMMMG:()=>(a.monthsGenitive||a.months)[n-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:o+1,dd:()=>a.weekDays[o][0],ddd:()=>a.weekDays[o].substr(0,3),dddd:()=>a.weekDays[o]},Gs}_hydrateTimeObject(t,a){if(Xi.am)return Xi;let c,n;t instanceof Date?(c=t.getHours(),n=t.getMinutes()):(c=Math.floor(t/60),n=Math.floor(t%60));const r=c%12?c%12:12,i=(a||{am:"am",pm:"pm"})[c===24||c<12?"am":"pm"];return Xi={H:c,h:r,HH:(c<10?"0":"")+c,hh:(r<10?"0":"")+r,am:i,AM:i.toUpperCase(),m:n,mm:(n<10?"0":"")+n},Xi}}const g92=24*60;class M92{constructor(t){Wt(this,"_vuecal",null),Wt(this,"selectCell",(a=!1,c,n)=>{this._vuecal.$emit("cell-click",n?{date:c,split:n}:c),this._vuecal.clickToNavigate||a?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",n?{date:c,split:n}:c)))}),Wt(this,"keyPressEnterCell",(a,c)=>{this._vuecal.$emit("cell-keypress-enter",c?{date:a,split:c}:a),this._vuecal.switchToNarrowerView()}),Wt(this,"getPosition",a=>{const{left:c,top:n}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:r,clientY:i}="ontouchstart"in window&&a.touches?a.touches[0]:a;return{x:r-c,y:i-n}}),Wt(this,"minutesAtCursor",a=>{let c=0,n={x:0,y:0};const{timeStep:r,timeCellHeight:i,timeFrom:o}=this._vuecal.$props;return typeof a=="number"?c=a:typeof a=="object"&&(n=this.getPosition(a),c=Math.round(n.y*r/parseInt(i)+o)),{minutes:Math.max(Math.min(c,g92),0),cursorCoords:n}}),this._vuecal=t}}const k92=2,pU=24*60;let W3,Y3,mU;class x92{constructor(t,a){Wt(this,"_vuecal",null),Wt(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,W3=a}createAnEvent(t,a,c){if(typeof t=="string"&&(t=W3.stringToDate(t)),!(t instanceof Date))return!1;const n=W3.dateToMinutes(t);a=a*1||k92*60;const r=n+a,i=W3.addMinutes(new Date(t),a);c.end&&(typeof c.end=="string"&&(c.end=W3.stringToDate(c.end)),c.endTimeMinutes=W3.dateToMinutes(c.end));const o={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:n,end:i,endTimeMinutes:r,segments:null,...c};if(!(typeof this._vuecal.onEventCreate=="function"&&!this._vuecal.onEventCreate(o,()=>this.deleteAnEvent(o))))return o.startDateF!==o.endDateF&&(o.daysCount=W3.countDays(o.start,o.end)),this._vuecal.mutableEvents.push(o),this._vuecal.addEventsToView([o]),this._vuecal.emitWithEvent("event-create",o),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(o),originalEvent:null}),o}addEventSegment(t){t.segments||(t.segments={},t.segments[W3.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:pU,isFirstDay:!0,isLastDay:!1});const a=t.segments[W3.formatDateLite(t.end)];a&&(a.isLastDay=!1,a.endTimeMinutes=pU);const c=W3.addDays(t.end,1),n=W3.formatDateLite(c);return c.setHours(0,0,0,0),t.segments[n]={start:c,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=W3.addMinutes(c,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,n}removeEventSegment(t){let a=Object.keys(t.segments).length;if(a<=1)return W3.formatDateLite(t.end);delete t.segments[W3.formatDateLite(t.end)],a--;const c=W3.subtractDays(t.end,1),n=W3.formatDateLite(c),r=t.segments[n];return a?r&&(r.isLastDay=!0,r.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=a||1,t.end=c,n}createEventSegments(t,a,c){const n=a.getTime(),r=c.getTime();let i=t.start.getTime(),o=t.end.getTime(),l=!1,f,u,d;for(!t.end.getHours()&&!t.end.getMinutes()&&(o-=1e3),t.segments={},t.repeat?(f=n,u=Math.min(r,t.repeat.until?W3.stringToDate(t.repeat.until).getTime():r)):(f=Math.max(n,i),u=Math.min(r,o));f<=u;){let h=!1;const p=W3.addDays(new Date(f),1).setHours(0,0,0,0);let v,m,y,g;if(t.repeat){const M=new Date(f),x=W3.formatDateLite(M);(l||t.occurrences&&t.occurrences[x])&&(l||(i=t.occurrences[x].start,d=new Date(i).setHours(0,0,0,0),o=t.occurrences[x].end),l=!0,h=!0),v=f===d,m=x===W3.formatDateLite(new Date(o)),y=new Date(v?i:f),g=W3.formatDateLite(y),m&&(l=!1)}else h=!0,v=f===i,m=u===o&&p>u,y=v?t.start:new Date(f),g=W3.formatDateLite(v?t.start:y);h&&(t.segments[g]={start:y,startTimeMinutes:v?t.startTimeMinutes:0,endTimeMinutes:m?t.endTimeMinutes:pU,isFirstDay:v,isLastDay:m}),f=p}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(a=>a._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(a=>a._eid!==t._eid)}checkCellOverlappingEvents(t,a){mU=t.slice(0),Y3={},t.forEach(n=>{mU.shift(),Y3[n._eid]||(Y3[n._eid]={overlaps:[],start:n.start,position:0}),Y3[n._eid].position=0,mU.forEach(r=>{Y3[r._eid]||(Y3[r._eid]={overlaps:[],start:r.start,position:0});const i=this.eventInRange(r,n.start,n.end),o=a.overlapsPerTimeStep?W3.datesInSameTimeStep(n.start,r.start,a.timeStep):1;if(!n.background&&!n.allDay&&!r.background&&!r.allDay&&i&&o)Y3[n._eid].overlaps.push(r._eid),Y3[n._eid].overlaps=[...new Set(Y3[n._eid].overlaps)],Y3[r._eid].overlaps.push(n._eid),Y3[r._eid].overlaps=[...new Set(Y3[r._eid].overlaps)],Y3[r._eid].position++;else{let l,f;(l=(Y3[n._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&Y3[n._eid].overlaps.splice(l,1),(f=(Y3[r._eid]||{overlaps:[]}).overlaps.indexOf(n._eid))>-1&&Y3[r._eid].overlaps.splice(f,1),Y3[r._eid].position--}})});let c=0;for(const n in Y3){const r=Y3[n],i=r.overlaps.map(o=>({id:o,start:Y3[o].start}));i.push({id:n,start:r.start}),i.sort((o,l)=>o.start<l.start?-1:o.start>l.start?1:o.id>l.id?-1:1),r.position=i.findIndex(o=>o.id===n),c=Math.max(this.getOverlapsStreak(r,Y3),c)}return[Y3,c]}getOverlapsStreak(t,a={}){let c=t.overlaps.length+1,n=[];return t.overlaps.forEach(r=>{n.includes(r)||t.overlaps.filter(o=>o!==r).forEach(o=>{a[o].overlaps.includes(r)||n.push(o)})}),n=[...new Set(n)],c-=n.length,c}eventInRange(t,a,c){if(t.allDay||!this._vuecal.time){const i=new Date(t.start).setHours(0,0,0,0);return new Date(t.end).setHours(23,59,0,0)>=new Date(a).setHours(0,0,0,0)&&i<=new Date(c).setHours(0,0,0,0)}const n=t.start.getTime(),r=t.end.getTime();return n<c.getTime()&&r>a.getTime()}}const b92={class:"vuecal__flex vuecal__weekdays-headings"},z92=["onClick"],C92={class:"vuecal__flex weekday-label",grow:""},_92={class:"full"},w92={class:"small"},H92={class:"xsmall"},L92={key:0},V92={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""};function S92(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",b92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.headings,(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:o},[i.hide?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["vuecal__flex vuecal__heading",{today:i.today,clickable:r.cellHeadingsClickable}]),style:s.normalizeStyle(r.weekdayCellStyles),onClick:l=>r.view.id==="week"&&r.selectCell(i.date,l),onDblclick:t[0]||(t[0]=l=>r.view.id==="week"&&r.vuecal.dblclickToNavigate&&a.switchToNarrowerView())},[s.createVNode(s.Transition,{name:`slide-fade--${a.transitionDirection}`,appear:r.vuecal.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",column:"",key:r.vuecal.transitions?`${o}-${i.dayOfMonth}`:!1},[s.createElementVNode("div",C92,[s.renderSlot(e.$slots,"weekday-heading",{heading:r.cleanupHeading(i),view:r.view},()=>[s.createElementVNode("span",_92,s.toDisplayString(i.full),1),s.createElementVNode("span",w92,s.toDisplayString(i.small),1),s.createElementVNode("span",H92,s.toDisplayString(i.xsmall),1),i.dayOfMonth?(s.openBlock(),s.createElementBlock("span",L92," "+s.toDisplayString(i.dayOfMonth),1)):s.createCommentVNode("",!0)])]),r.vuecal.hasSplits&&r.vuecal.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",V92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.daySplits,(l,f)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",l.class||!1]),key:f},[s.renderSlot(e.$slots,"split-label",{split:l,view:r.view},()=>[s.createTextVNode(s.toDisplayString(l.label),1)])],2))),128))])):s.createCommentVNode("",!0)]))]),_:2},1032,["name","appear"])],46,z92))],64))),128))])}const _s=(e,t)=>{const a=e.__vccOpts||e;for(const[c,n]of t)a[c]=n;return a},N92={inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(e,t){e.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=e),this.utils.cell.selectCell(!1,e,t)},cleanupHeading:e=>({label:e.full,date:e.date,...e.today?{today:e.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let e=!1;return this.weekDays.map((a,c)=>{const n=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday&&this.vuecal.hideWeekends?c-1:c);return{hide:a.hide,full:a.label,small:a.short||a.label.substr(0,3),xsmall:a.short||a.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:n.getDate(),date:n,today:!e&&this.utils.date.isToday(n)&&!e++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((e,t)=>e+t.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},$n1=_s(N92,[["render",S92]]),A92={class:"vuecal__header"},T92={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},E92=["onDragenter","onDragleave","onClick","aria-label"],D92={key:1,class:"vuecal__title-bar"},P92=["aria-label"],O92={class:"vuecal__flex vuecal__title",grow:""},I92=["aria-label"],B92={key:0,class:"vuecal__flex vuecal__split-days-headers"};function R92(e,t,a,c,n,r){const i=s.resolveComponent("weekdays-headings");return s.openBlock(),s.createElementBlock("div",A92,[a.options.hideViewSelector?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",T92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.viewProps.views,(o,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:l},[o.enabled?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__view-btn",{"vuecal__view-btn--active":r.view.id===l,"vuecal__view-btn--highlighted":e.highlightedControl===l}]),type:"button",onDragenter:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(f,l,e.$data),onDragleave:f=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(f,l,e.$data),onClick:f=>r.switchView(l,null,!0),"aria-label":`${o.label} view`},s.toDisplayString(o.label),43,E92)):s.createCommentVNode("",!0)],64))),128))])),a.options.hideTitleBar?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",D92,[s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":e.highlightedControl==="previous"}]),type:"button",onClick:t[0]||(t[0]=(...o)=>r.previous&&r.previous(...o)),onDragenter:t[1]||(t[1]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"previous",e.$data)),onDragleave:t[2]||(t[2]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"previous",e.$data)),"aria-label":`Previous ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-prev")],42,P92),s.createElementVNode("div",O92,[s.createVNode(s.Transition,{name:a.options.transitions?`slide-fade--${r.transitionDirection}`:""},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.broaderView?"button":"span"),{type:!!r.broaderView&&"button",key:`${r.view.id}${r.view.startDate.toString()}`,onClick:t[3]||(t[3]=o=>!!r.broaderView&&r.switchToBroaderView()),"aria-label":!!r.broaderView&&`Go to ${r.broaderView} view`},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),a.options.todayButton?(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["vuecal__today-btn",{"vuecal__today-btn--highlighted":e.highlightedControl==="today"}]),type:"button",onClick:t[4]||(t[4]=(...o)=>r.goToToday&&r.goToToday(...o)),onDragenter:t[5]||(t[5]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"today",e.$data)),onDragleave:t[6]||(t[6]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"today",e.$data)),"aria-label":"Today"},[s.renderSlot(e.$slots,"today-button")],34)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":e.highlightedControl==="next"}]),type:"button",onClick:t[7]||(t[7]=(...o)=>r.next&&r.next(...o)),onDragenter:t[8]||(t[8]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragEnter(o,"next",e.$data)),onDragleave:t[9]||(t[9]=o=>a.editEvents.drag&&r.dnd&&r.dnd.viewSelectorDragLeave(o,"next",e.$data)),"aria-label":`Next ${r.view.id}`},[s.renderSlot(e.$slots,"arrow-next")],42,I92)])),a.viewProps.weekDaysInHeader?(s.openBlock(),s.createBlock(i,{key:2,"week-days":a.weekDays,"transition-direction":r.transitionDirection,"switch-to-narrower-view":a.switchToNarrowerView},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:o,view:l})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:o,view:l})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:o})=>[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):s.createCommentVNode("",!0),s.createVNode(s.Transition,{name:`slide-fade--${r.transitionDirection}`},{default:s.withCtx(()=>[r.showDaySplits?(s.openBlock(),s.createElementBlock("div",B92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.daySplits,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",o.class||!1]),key:l},[s.renderSlot(e.$slots,"split-label",{split:o,view:r.view.id},()=>[s.createTextVNode(s.toDisplayString(o.label),1)])],2))),128))])):s.createCommentVNode("",!0)]),_:3},8,["name"])])}const F92={inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:$n1},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(e){this.vuecal.transitionDirection=e}},broaderView(){const{enabledViews:e}=this.vuecal;return e[e.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},$92=_s(F92,[["render",R92]]),q92=["draggable"];function j92(e,t,a,c,n,r){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__event",r.eventClasses]),style:s.normalizeStyle(r.eventStyles),tabindex:"0",onFocus:t[4]||(t[4]=(...i)=>r.focusEvent&&r.focusEvent(...i)),onKeypress:t[5]||(t[5]=s.withKeys(s.withModifiers((...i)=>r.onEnterKeypress&&r.onEnterKeypress(...i),["stop"]),["enter"])),onMouseenter:t[6]||(t[6]=(...i)=>r.onMouseEnter&&r.onMouseEnter(...i)),onMouseleave:t[7]||(t[7]=(...i)=>r.onMouseLeave&&r.onMouseLeave(...i)),onTouchstart:t[8]||(t[8]=s.withModifiers((...i)=>r.onTouchStart&&r.onTouchStart(...i),["stop"])),onMousedown:t[9]||(t[9]=i=>r.onMouseDown(i)),onMouseup:t[10]||(t[10]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchend:t[11]||(t[11]=(...i)=>r.onMouseUp&&r.onMouseUp(...i)),onTouchmove:t[12]||(t[12]=(...i)=>r.onTouchMove&&r.onTouchMove(...i)),onDblclick:t[13]||(t[13]=(...i)=>r.onDblClick&&r.onDblClick(...i)),draggable:r.draggable,onDragstart:t[14]||(t[14]=i=>r.draggable&&r.onDragStart(i)),onDragend:t[15]||(t[15]=i=>r.draggable&&r.onDragEnd())},[r.vuecal.editEvents.delete&&a.event.deletable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-delete",onClick:t[0]||(t[0]=s.withModifiers((...i)=>r.deleteEvent&&r.deleteEvent(...i),["stop"])),onTouchstart:t[1]||(t[1]=s.withModifiers((...i)=>r.touchDeleteEvent&&r.touchDeleteEvent(...i),["stop"]))},s.toDisplayString(r.vuecal.texts.deleteEvent),33)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"event",{event:a.event,view:r.view.id}),r.resizable?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:t[2]||(t[2]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"])),onTouchstart:t[3]||(t[3]=s.withModifiers((...i)=>r.onResizeHandleMouseDown&&r.onResizeHandleMouseDown(...i),["stop","prevent"]))},null,32)):s.createCommentVNode("",!0)],46,q92)}const U92={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(e,t=!1){if("ontouchstart"in window&&!t)return!1;const{clickHoldAnEvent:a,focusAnEvent:c,resizeAnEvent:n,dragAnEvent:r}=this.domEvents;if(c._eid===this.event._eid&&a._eid===this.event._eid)return!0;this.focusEvent(),a._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(a.timeoutId=setTimeout(()=>{!n._eid&&!r._eid&&(a._eid=this.event._eid,this.event.deleting=!0)},a.timeout))},onMouseUp(e){this.domEvents.focusAnEvent._eid===this.event._eid&&!this.touch.dragged&&(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(e){e.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(e){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:t,clientY:a}=e.touches[0],{startX:c,startY:n,dragThreshold:r}=this.touch;(Math.abs(t-c)>r||Math.abs(a-n)>r)&&(this.touch.dragged=!0)},onTouchStart(e){this.touch.startX=e.touches[0].clientX,this.touch.startY=e.touches[0].clientY,this.onMouseDown(e,!0)},onEnterKeypress(e){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,e)},onDblClick(e){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,e)},onDragStart(e){this.dnd&&this.dnd.eventDragStart(e,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(e=!1){if("ontouchstart"in window&&!e)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(e){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:e}=this.domEvents,t=e._eid;if(t!==this.event._eid){if(t){const a=this.view.events.find(c=>c._eid===t);a&&(a.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),e._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:e,endTimeMinutes:t}=this.segment||this.event;let a=e-this.vuecal.timeFrom;const c=Math.max(Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);a=Math.min(t,this.vuecal.timeTo)-this.vuecal.timeFrom;const n=Math.round(a*this.vuecal.timeCellHeight/this.vuecal.timeStep),r=Math.max(n-c,5);return{top:c,height:r}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let e=100/Math.min(this.overlaps.length+1,this.overlapsStreak),t=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&e<this.vuecal.minEventWidth&&(e=this.vuecal.minEventWidth,t=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:a,height:c}=this.eventDimensions;return{top:`${a}px`,height:`${c}px`,width:`${e}%`,left:this.event.left&&`${this.event.left}px`||`${t}%`}},eventClasses(){const{isFirstDay:e,isLastDay:t}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&e&&!t,"event-middle":this.segment&&!e&&!t,"event-end":this.segment&&t&&!e}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:e,background:t,daysCount:a}=this.event;return this.vuecal.editEvents.drag&&e&&!t&&a===1},resizable(){const{editEvents:e,time:t}=this.vuecal;return e.resize&&this.event.resizable&&t&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},W92=_s(U92,[["render",j92]]),Y92=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],G92={key:0,class:"cell-time-labels"},Z92=["innerHTML"],X92={key:2,class:"vuecal__cell-events"},K92=["title"];function Q92(e,t,a,c,n,r){const i=s.resolveComponent("event");return s.openBlock(),s.createBlock(s.TransitionGroup,{class:s.normalizeClass(["vuecal__cell",r.cellClasses]),name:`slide-fade--${r.transitionDirection}`,tag:"div",appear:a.options.transitions,style:s.normalizeStyle(r.cellStyles)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?r.splits:1,(o,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal__cell-content",r.splitsCount&&r.splitClasses(o)]),key:a.options.transitions?`${r.view.id}-${a.data.content}-${l}`:l,"data-split":r.splitsCount?o.id:!1,column:"",tabindex:"0","aria-label":a.data.content,onFocus:t[0]||(t[0]=f=>r.onCellFocus(f)),onKeypress:t[1]||(t[1]=s.withKeys(f=>r.onCellkeyPressEnter(f),["enter"])),onTouchstart:f=>!r.isDisabled&&r.onCellTouchStart(f,r.splitsCount?o.id:null),onMousedown:f=>!r.isDisabled&&r.onCellMouseDown(f,r.splitsCount?o.id:null),onClick:t[2]||(t[2]=f=>!r.isDisabled&&r.onCellClick(f)),onDblclick:t[3]||(t[3]=f=>!r.isDisabled&&r.onCellDblClick(f)),onContextmenu:t[4]||(t[4]=f=>!r.isDisabled&&a.options.cellContextmenu&&r.onCellContextMenu(f)),onDragenter:t[5]||(t[5]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragEnter(f,e.$data,a.data.startDate)),onDragover:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragOver(f,e.$data,a.data.startDate,r.splitsCount?o.id:null),onDragleave:t[6]||(t[6]=f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragLeave(f,e.$data,a.data.startDate)),onDrop:f=>!r.isDisabled&&a.editEvents.drag&&r.dnd&&r.dnd.cellDragDrop(f,e.$data,a.data.startDate,r.splitsCount?o.id:null)},[a.options.showTimeInCells&&a.options.time&&r.isWeekOrDayView&&!a.allDay?(s.openBlock(),s.createElementBlock("div",G92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.vuecal.timeCells,(f,u)=>(s.openBlock(),s.createElementBlock("span",{class:"cell-time-label",key:u},s.toDisplayString(f.label),1))),128))])):s.createCommentVNode("",!0),r.isWeekOrDayView&&!a.allDay&&r.specialHours.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.specialHours,(f,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__special-hours",`vuecal__special-hours--day${f.day} ${f.class}`]),style:s.normalizeStyle(`height: ${f.height}px;top: ${f.top}px`)},[f.label?(s.openBlock(),s.createElementBlock("div",{key:0,class:"special-hours-label",innerHTML:f.label},null,8,Z92)):s.createCommentVNode("",!0)],6))),256)):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"cell-content",{events:r.events,selectCell:f=>r.selectCell(f,!0),split:r.splitsCount?o:!1}),r.eventsCount&&(r.isWeekOrDayView||r.view.id==="month"&&a.options.eventsOnMonthView)?(s.openBlock(),s.createElementBlock("div",X92,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.splitsCount?o.events:r.events,(f,u)=>(s.openBlock(),s.createBlock(i,{key:u,"cell-formatted-date":a.data.formattedDate,event:f,"all-day":a.allDay,"cell-events":r.splitsCount?o.events:r.events,overlaps:((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).overlaps,"event-position":((r.splitsCount?o.overlaps[f._eid]:e.cellOverlaps[f._eid])||[]).position,"overlaps-streak":r.splitsCount?o.overlapsStreak:e.cellOverlapsStreak},{event:s.withCtx(({event:d,view:h})=>[s.renderSlot(e.$slots,"event",{view:h,event:d})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):s.createCommentVNode("",!0)],42,Y92))),128)),r.timelineVisible?(s.openBlock(),s.createElementBlock("div",{class:"vuecal__now-line",style:s.normalizeStyle(`top: ${r.todaysTimePosition}px`),key:a.options.transitions?`${r.view.id}-now-line`:"now-line",title:r.utils.date.formatTime(r.vuecal.now)},null,12,K92)):s.createCommentVNode("",!0)]),_:3},8,["class","name","appear","style"])}const J92={inject:["vuecal","utils","modules","view","domEvents"],components:{Event:W92},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:e}){let a=e.classList.contains("vuecal__cell-split")?e:this.vuecal.findAncestor(e,"vuecal__cell-split");return a&&(a=a.attributes["data-split"].value,parseInt(a).toString()===a.toString()&&(a=parseInt(a))),a||null},splitClasses(e){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===e.id,[e.class]:!!e.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(e){return this.vuecal.isDOMElementAnEvent(e)},selectCell(e,t=!1){const a=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.selectCell(t,this.timeAtCursor,a),this.timeAtCursor=null},onCellkeyPressEnter(e){this.isSelected||this.onCellFocus(e);const t=this.splitsCount?this.getSplitAtCursor(e):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,t),this.timeAtCursor=null},onCellFocus(e){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const t=this.splitsCount?this.getSplitAtCursor(e):null,a=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",t?{date:a,split:t}:a)}},onCellMouseDown(e,t=null,a=!1){if("ontouchstart"in window&&!a)return!1;this.isSelected||this.onCellFocus(e);const{clickHoldACell:c,focusAnEvent:n}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,c.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:r,cursorCoords:{y:i}}=this.vuecal.minutesAtCursor(e);this.timeAtCursor.setMinutes(r);const o=this.isDOMElementAnEvent(e.target);!o&&n._eid&&((this.view.events.find(l=>l._eid===n._eid)||{}).focused=!1),this.editEvents.create&&!o&&this.setUpEventCreation(e,i)},setUpEventCreation(e,t){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:a}=this.domEvents;if(a.startCursorY=t,a.split=this.splitsCount?this.getSplitAtCursor(e):null,a.start=this.timeAtCursor,this.options.snapToTime){let c=this.timeAtCursor.getHours()*60+this.timeAtCursor.getMinutes();const n=c+this.options.snapToTime/2;c=n-n%this.options.snapToTime,a.start.setHours(0,c,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(e)},setUpCellHoldTimer(e){const{clickHoldACell:t}=this.domEvents;t.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,t.split=this.splitsCount?this.getSplitAtCursor(e):null,t.timeoutId=setTimeout(()=>{if(t.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:a}=this.utils.event.createAnEvent(this.timeAtCursor,null,t.split?{split:t.split}:{});t.eventCreated=a}},t.timeout)},onCellTouchStart(e,t=null){this.onCellMouseDown(e,t,!0)},onCellClick(e){this.isDOMElementAnEvent(e.target)||this.selectCell(e)},onCellDblClick(e){const t=new Date(this.data.startDate);t.setMinutes(this.vuecal.minutesAtCursor(e).minutes);const a=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-dblclick",a?{date:t,split:a}:t),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(e){e.stopPropagation(),e.preventDefault();const t=new Date(this.data.startDate),{cursorCoords:a,minutes:c}=this.vuecal.minutesAtCursor(e);t.setMinutes(c);const n=this.splitsCount?this.getSplitAtCursor(e):null;this.vuecal.$emit("cell-contextmenu",{date:t,...a,...n||{},e})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:e}=this.options,{isYearsOrYearView:t}=this.vuecal;return e.length&&e.includes(this.data.formattedDate)&&!t?!0:this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let e=!1;const{selectedDate:t}=this.view;return this.view.id==="years"?e=t.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?e=t.getFullYear()===this.data.startDate.getFullYear()&&t.getMonth()===this.data.startDate.getMonth():e=t.getTime()===this.data.startDate.getTime(),e},set(e){this.view.selectedDate=e,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(e=>{let{from:t,to:a}=e;return t=Math.max(t,this.options.timeFrom),a=Math.min(a,this.options.timeTo),{...e,height:(a-t)*this.timeScale,top:(t-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:e,endDate:t}=this.data;let a=[];if(!(["years","year"].includes(this.view.id)&&!this.options.eventsCountOnYearView)){if(a=this.view.events.slice(0),this.view.id==="month"&&a.push(...this.view.outOfScopeEvents),a=a.filter(c=>this.utils.event.eventInRange(c,e,t)),this.options.showAllDayEvents&&this.view.id!=="month"&&(a=a.filter(c=>!!c.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:c,timeTo:n}=this.options;a=a.filter(r=>{const i=r.daysCount>1&&r.segments[this.data.formattedDate]||{},o=r.daysCount===1&&r.startTimeMinutes<n&&r.endTimeMinutes>c,l=r.daysCount>1&&i.startTimeMinutes<n&&i.endTimeMinutes>c,f=!1;return r.allDay||o||l||f})}this.options.time&&this.isWeekOrDayView&&!(this.options.showAllDayEvents&&this.allDay)&&a.sort((c,n)=>c.start<n.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return a},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((e,t)=>{const a=this.events.filter(r=>r.split===e.id),[c,n]=this.utils.event.checkCellOverlappingEvents(a.filter(r=>!r.background&&!r.allDay),this.options);return{...e,overlaps:c,overlapsStreak:n,events:a}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:e,timeTo:t}=this.options;return this.data.today&&this.isWeekOrDayView&&e&&!this.allDay&&this.nowInMinutes<=t},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const e=this.nowInMinutes-this.options.timeFrom;return Math.round(e*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},qn1=_s(J92,[["render",Q92]]),el2={key:0,class:"vuecal__all-day-text",style:{width:"3em"}};function tl2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex vuecal__all-day",style:s.normalizeStyle(a.cellOrSplitMinWidth&&{height:a.height})},[a.cellOrSplitMinWidth?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",el2,[s.createElementVNode("span",null,s.toDisplayString(a.label),1)])),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",style:s.normalizeStyle(a.cellOrSplitMinWidth?`min-width: ${a.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.cells,(o,l)=>(s.openBlock(),s.createBlock(i,{key:l,options:a.options,"edit-events":r.editEvents,data:o,"all-day":!0,"cell-width":a.options.hideWeekdays.length&&(r.vuecal.isWeekView||r.vuecal.isMonthView)&&r.vuecal.cellWidth,"min-timestamp":a.options.minTimestamp,"max-timestamp":a.options.maxTimestamp,"cell-splits":a.daySplits},{event:s.withCtx(({event:f,view:u})=>[s.renderSlot(e.$slots,"event",{view:u,event:f})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}const al2={inject:["vuecal","view","editEvents"],components:{"vuecal-cell":qn1},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},cl2=_s(al2,[["render",tl2]]),nl2=["lang"],rl2={class:"default"},il2={key:0,class:"vuecal__flex vuecal__body",grow:""},ol2=["onBlur","innerHTML"],sl2=["innerHTML"],ll2=["innerHTML"],fl2={class:"vuecal__flex",row:"",grow:""},ul2={key:0,class:"vuecal__time-column"},dl2={class:"vuecal__time-cell-label"},hl2={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},pl2=["wrap","column"],ml2=["onBlur","innerHTML"],vl2=["innerHTML"],yl2=["innerHTML"],gl2=["wrap"],Ml2=["innerHTML"],kl2=["innerHTML"],xl2={key:2,class:"vuecal__cell-events-count"},bl2={key:3,class:"vuecal__no-event"},zl2=["onBlur","innerHTML"],Cl2=["innerHTML"],_l2={key:2,class:"vuecal__event-time"},wl2={key:0},Hl2={key:1,class:"days-to-end"},Ll2=["innerHTML"],Vl2={key:0,class:"vuecal__scrollbar-check"};function Sl2(e,t,a,c,n,r){const i=s.resolveComponent("vuecal-header"),o=s.resolveComponent("all-day-bar"),l=s.resolveComponent("weekdays-headings"),f=s.resolveComponent("vuecal-cell");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["vuecal__flex vuecal",r.cssClasses]),column:"",ref:"vuecal",lang:a.locale},[s.createVNode(i,{options:e.$props,"edit-events":r.editEvents,"view-props":{views:r.views,weekDaysInHeader:r.weekDaysInHeader},"week-days":r.weekDays,"has-splits":r.hasSplits,"day-splits":r.daySplits,"switch-to-narrower-view":r.switchToNarrowerView},s.createSlots({"arrow-prev":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-prev",{},()=>[t[0]||(t[0]=s.createTextVNode(" ")),t[1]||(t[1]=s.createElementVNode("i",{class:"angle"},null,-1)),t[2]||(t[2]=s.createTextVNode(" "))])]),"arrow-next":s.withCtx(()=>[s.renderSlot(e.$slots,"arrow-next",{},()=>[t[3]||(t[3]=s.createTextVNode(" ")),t[4]||(t[4]=s.createElementVNode("i",{class:"angle"},null,-1)),t[5]||(t[5]=s.createTextVNode(" "))])]),"today-button":s.withCtx(()=>[s.renderSlot(e.$slots,"today-button",{},()=>[s.createElementVNode("span",rl2,s.toDisplayString(n.texts.today),1)])]),title:s.withCtx(()=>[s.renderSlot(e.$slots,"title",{title:r.viewTitle,view:n.view},()=>[s.createTextVNode(s.toDisplayString(r.viewTitle),1)])]),_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),a.hideBody?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",il2,[s.createVNode(s.Transition,{name:`slide-fade--${n.transitionDirection}`,appear:a.transitions},{default:s.withCtx(()=>[(s.openBlock(),s.createElementBlock("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:a.transitions?n.view.id:!1,column:""},[a.showAllDayEvents&&r.hasTimeColumn&&(!r.cellOrSplitMinWidth||r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:0},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,ol2)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,sl2)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,ll2)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__bg",{vuecal__flex:!r.hasTimeColumn}]),column:""},[s.createElementVNode("div",fl2,[r.hasTimeColumn?(s.openBlock(),s.createElementBlock("div",ul2,[a.showAllDayEvents&&r.cellOrSplitMinWidth&&!(r.isDayView&&!a.minSplitWidth)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__all-day-text",style:s.normalizeStyle({height:r.allDayBar.height})},[s.createElementVNode("span",null,s.toDisplayString(n.texts.allDay),1)],4)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.timeCells,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:"vuecal__time-cell",key:d,style:s.normalizeStyle(`height: ${a.timeCellHeight}px`)},[s.renderSlot(e.$slots,"time-cell",{hours:u.hours,minutes:u.minutes},()=>[t[6]||(t[6]=s.createElementVNode("span",{class:"vuecal__time-cell-line"},null,-1)),s.createElementVNode("span",dl2,s.toDisplayString(u.label),1)])],4))),128))])):s.createCommentVNode("",!0),a.showWeekNumbers&&r.isMonthView?(s.openBlock(),s.createElementBlock("div",hl2,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(6,u=>s.createElementVNode("div",{class:"vuecal__flex vuecal__week-number-cell",key:u,grow:""},[s.renderSlot(e.$slots,"week-number-cell",{week:r.getWeekNumber(u-1)},()=>[s.createTextVNode(s.toDisplayString(r.getWeekNumber(u-1)),1)])])),64))])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["vuecal__flex vuecal__cells",`${n.view.id}-view`]),grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,column:!!r.cellOrSplitMinWidth},[r.cellOrSplitMinWidth&&r.isWeekView?(s.openBlock(),s.createBlock(l,{key:0,"transition-direction":n.transitionDirection,"week-days":r.weekDays,"switch-to-narrower-view":r.switchToNarrowerView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},s.createSlots({_:2},[e.$slots["weekday-heading"]?{name:"weekday-heading",fn:s.withCtx(({heading:u,view:d})=>[s.renderSlot(e.$slots,"weekday-heading",{heading:u,view:d})]),key:"0"}:void 0,e.$slots["split-label"]?{name:"split-label",fn:s.withCtx(({split:u})=>[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):r.hasSplits&&a.stickySplitLabels&&a.minSplitWidth?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.daySplits,(u,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["day-split-header",u.class||!1]),key:d},[s.renderSlot(e.$slots,"split-label",{split:u,view:n.view.id},()=>[s.createTextVNode(s.toDisplayString(u.label),1)])],2))),128))],4)):s.createCommentVNode("",!0),a.showAllDayEvents&&r.hasTimeColumn&&(r.isWeekView&&r.cellOrSplitMinWidth||r.isDayView&&r.hasSplits&&a.minSplitWidth)?(s.openBlock(),s.createBlock(o,s.normalizeProps(s.mergeProps({key:2},r.allDayBar)),{event:s.withCtx(({event:u,view:d})=>[s.renderSlot(e.$slots,"event",{view:d,event:u},()=>[r.editEvents.title&&u.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>r.onEventTitleBlur(h,u),innerHTML:u.title},null,40,ml2)):u.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:u.title},null,8,vl2)):s.createCommentVNode("",!0),u.content&&!r.hasShortEvents&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:2,class:"vuecal__event-content",innerHTML:u.content},null,8,yl2)):s.createCommentVNode("",!0)])]),_:3},16)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"vuecal__flex",ref:u=>n.cellsEl=u,grow:"",wrap:!r.cellOrSplitMinWidth||!r.isWeekView,style:s.normalizeStyle(r.cellOrSplitMinWidth?`min-width: ${r.cellOrSplitMinWidth}px`:"")},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.viewCells,(u,d)=>(s.openBlock(),s.createBlock(f,{key:d,options:e.$props,"edit-events":r.editEvents,data:u,"cell-width":a.hideWeekdays.length&&(r.isWeekView||r.isMonthView)&&r.cellWidth,"min-timestamp":r.minTimestamp,"max-timestamp":r.maxTimestamp,"cell-splits":r.hasSplits&&r.daySplits||[]},{"cell-content":s.withCtx(({events:h,split:p,selectCell:v})=>[s.renderSlot(e.$slots,"cell-content",{cell:u,view:n.view,goNarrower:v,events:h},()=>[p&&!a.stickySplitLabels?(s.openBlock(),s.createElementBlock("div",{key:0,class:"split-label",innerHTML:p.label},null,8,Ml2)):s.createCommentVNode("",!0),u.content?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__cell-date",innerHTML:u.content},null,8,kl2)):s.createCommentVNode("",!0),(r.isMonthView&&!a.eventsOnMonthView||r.isYearsOrYearView&&a.eventsCountOnYearView)&&h.length?(s.openBlock(),s.createElementBlock("div",xl2,[s.renderSlot(e.$slots,"events-count",{view:n.view,events:h},()=>[s.createTextVNode(s.toDisplayString(h.length),1)])])):s.createCommentVNode("",!0),!r.cellOrSplitHasEvents(h,p)&&r.isWeekOrDayView?(s.openBlock(),s.createElementBlock("div",bl2,[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])])):s.createCommentVNode("",!0)])]),event:s.withCtx(({event:h,view:p})=>[s.renderSlot(e.$slots,"event",{view:p,event:h},()=>[r.editEvents.title&&h.titleEditable?(s.openBlock(),s.createElementBlock("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:v=>r.onEventTitleBlur(v,h),innerHTML:h.title},null,40,zl2)):h.title?(s.openBlock(),s.createElementBlock("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,Cl2)):s.createCommentVNode("",!0),a.time&&!h.allDay&&!(r.isMonthView&&(h.allDay||a.showAllDayEvents==="short"))&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",_l2,[s.createTextVNode(s.toDisplayString(n.utils.date.formatTime(h.start,r.TimeFormat)),1),h.endTimeMinutes?(s.openBlock(),s.createElementBlock("span",wl2," - "+s.toDisplayString(n.utils.date.formatTime(h.end,r.TimeFormat,null,!0)),1)):s.createCommentVNode("",!0),h.daysCount>1&&(h.segments[u.formattedDate]||{}).isFirstDay?(s.openBlock(),s.createElementBlock("small",Hl2," +"+s.toDisplayString(h.daysCount-1)+s.toDisplayString((n.texts.day[0]||"").toLowerCase()),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),h.content&&!(r.isMonthView&&h.allDay&&a.showAllDayEvents==="short")&&!r.isShortMonthView?(s.openBlock(),s.createElementBlock("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,Ll2)):s.createCommentVNode("",!0)])]),"no-event":s.withCtx(()=>[s.renderSlot(e.$slots,"no-event",{},()=>[s.createTextVNode(s.toDisplayString(n.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,gl2)],10,pl2)])],2)]))]),_:3},8,["name","appear"]),n.ready?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Vl2,t[7]||(t[7]=[s.createElementVNode("div",null,null,-1)])))]))],10,nl2)}const Zs=24*60,AR={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},W31=["years","year","month","week","day"],Y31=new y92(AR),Nl2={name:"vue-cal",components:{"vuecal-cell":qn1,"vuecal-header":$92,WeekdaysHeadings:$n1,AllDayBar:cl2},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:Zs},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...AR},utils:{date:(this.disableDatePrototypes?Y31.removePrototypes():!1)||Y31,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(e){if(typeof this.locale=="object"){this.texts=Object.assign({},AR,e),this.utils.date.updateTexts(this.texts);return}const t=await v92(Object.assign({"./i18n/ar.json":()=>Promise.resolve().then(()=>require("./ar.es-490d67d4.cjs")),"./i18n/bg.json":()=>Promise.resolve().then(()=>require("./bg.es-bedb7f61.cjs")),"./i18n/bn.json":()=>Promise.resolve().then(()=>require("./bn.es-ae104b8b.cjs")),"./i18n/bs.json":()=>Promise.resolve().then(()=>require("./bs.es-a97484a8.cjs")),"./i18n/ca.json":()=>Promise.resolve().then(()=>require("./ca.es-b69e2d93.cjs")),"./i18n/cs.json":()=>Promise.resolve().then(()=>require("./cs.es-8ab45a8b.cjs")),"./i18n/da.json":()=>Promise.resolve().then(()=>require("./da.es-20dd8f16.cjs")),"./i18n/de.json":()=>Promise.resolve().then(()=>require("./de.es-ce7009ce.cjs")),"./i18n/el.json":()=>Promise.resolve().then(()=>require("./el.es-81fc2434.cjs")),"./i18n/en.json":()=>Promise.resolve().then(()=>require("./en.es-4459b8a4.cjs")),"./i18n/es.json":()=>Promise.resolve().then(()=>require("./es.es-647dceed.cjs")),"./i18n/et.json":()=>Promise.resolve().then(()=>require("./et.es-482e868f.cjs")),"./i18n/fa.json":()=>Promise.resolve().then(()=>require("./fa.es-2c02433c.cjs")),"./i18n/fi.json":()=>Promise.resolve().then(()=>require("./fi.es-ef678961.cjs")),"./i18n/fr.json":()=>Promise.resolve().then(()=>require("./fr.es-5a023084.cjs")),"./i18n/he.json":()=>Promise.resolve().then(()=>require("./he.es-be02cfd4.cjs")),"./i18n/hr.json":()=>Promise.resolve().then(()=>require("./hr.es-5c9e8373.cjs")),"./i18n/hu.json":()=>Promise.resolve().then(()=>require("./hu.es-642f7e7a.cjs")),"./i18n/id.json":()=>Promise.resolve().then(()=>require("./id.es-ebe22526.cjs")),"./i18n/is.json":()=>Promise.resolve().then(()=>require("./is.es-960071df.cjs")),"./i18n/it.json":()=>Promise.resolve().then(()=>require("./it.es-f0d29f01.cjs")),"./i18n/ja.json":()=>Promise.resolve().then(()=>require("./ja.es-25a3e4cf.cjs")),"./i18n/ka.json":()=>Promise.resolve().then(()=>require("./ka.es-92c6a6ae.cjs")),"./i18n/ko.json":()=>Promise.resolve().then(()=>require("./ko.es-204ba1aa.cjs")),"./i18n/lt.json":()=>Promise.resolve().then(()=>require("./lt.es-afedf093.cjs")),"./i18n/mn.json":()=>Promise.resolve().then(()=>require("./mn.es-ced8667c.cjs")),"./i18n/nl.json":()=>Promise.resolve().then(()=>require("./nl.es-cd172132.cjs")),"./i18n/no.json":()=>Promise.resolve().then(()=>require("./no.es-d5134e5f.cjs")),"./i18n/pl.json":()=>Promise.resolve().then(()=>require("./pl.es-9f065e71.cjs")),"./i18n/pt-br.json":()=>Promise.resolve().then(()=>require("./pt-br.es-e0a38ecf.cjs")),"./i18n/pt-pt.json":()=>Promise.resolve().then(()=>require("./pt-pt.es-e1c57c62.cjs")),"./i18n/ro.json":()=>Promise.resolve().then(()=>require("./ro.es-a7e3858d.cjs")),"./i18n/ru.json":()=>Promise.resolve().then(()=>require("./ru.es-d26a8889.cjs")),"./i18n/sk.json":()=>Promise.resolve().then(()=>require("./sk.es-bfa34829.cjs")),"./i18n/sl.json":()=>Promise.resolve().then(()=>require("./sl.es-c79ab9b5.cjs")),"./i18n/sq.json":()=>Promise.resolve().then(()=>require("./sq.es-a902c2a8.cjs")),"./i18n/sr.json":()=>Promise.resolve().then(()=>require("./sr.es-2e429690.cjs")),"./i18n/sv.json":()=>Promise.resolve().then(()=>require("./sv.es-59b30e12.cjs")),"./i18n/tr.json":()=>Promise.resolve().then(()=>require("./tr.es-11b49d30.cjs")),"./i18n/uk.json":()=>Promise.resolve().then(()=>require("./uk.es-cfb0b466.cjs")),"./i18n/vi.json":()=>Promise.resolve().then(()=>require("./vi.es-daedaaa5.cjs")),"./i18n/zh-cn.json":()=>Promise.resolve().then(()=>require("./zh-cn.es-efbc1299.cjs")),"./i18n/zh-hk.json":()=>Promise.resolve().then(()=>require("./zh-hk.es-b6a4db4a.cjs"))}),`./i18n/${e}.json`,3);this.texts=Object.assign({},AR,t),this.utils.date.updateTexts(this.texts)},loadDragAndDrop(){Promise.resolve().then(()=>require("./drag-and-drop.es-cdb95efc.cjs")).then(e=>{const{DragAndDrop:t}=e;this.modules.dnd=new t(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(e){return W31.includes(e)||(console.error(`Vue Cal: invalid active-view parameter provided: "${e}".
|
|
8632
8632
|
A valid view must be one of: ${W31.join(", ")}.`),e="week"),this.enabledViews.includes(e)||(console.warn(`Vue Cal: the provided active-view "${e}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),e=this.enabledViews[0]),e},switchToNarrowerView(e=null){this.transitionDirection="right";const t=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];t&&this.switchView(t,e)},switchView(e,t=null,a=!1){e=this.validateView(e);const c=this.utils.date,n=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&a){if(this.view.id===e)return;const o=this.enabledViews;this.transitionDirection=o.indexOf(this.view.id)>o.indexOf(e)?"left":"right"}const r=this.view.id;switch(this.view.events=[],this.view.id=e,this.view.firstCellDate=null,this.view.lastCellDate=null,t||(t=this.view.selectedDate||this.view.startDate),e){case"years":{this.view.startDate=new Date(Math.floor(t.getFullYear()/25)*25||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break}case"year":{this.view.startDate=new Date(t.getFullYear(),0,1),this.view.endDate=new Date(t.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break}case"month":{this.view.startDate=new Date(t.getFullYear(),t.getMonth(),1),this.view.endDate=new Date(t.getFullYear(),t.getMonth()+1,1),this.view.endDate.setSeconds(-1);let o=new Date(this.view.startDate);if(o.getDay()!==(this.startWeekOnSunday?0:1)&&(o=c.getPreviousFirstDayOfWeek(o,this.startWeekOnSunday)),this.view.firstCellDate=o,this.view.lastCellDate=c.addDays(o,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const l=this.view.firstCellDate.getDay()===6&&!this.startWeekOnSunday?2:1;this.view.firstCellDate=c.addDays(this.view.firstCellDate,l)}if([0,6].includes(this.view.startDate.getDay())){const l=this.view.startDate.getDay()===6?2:1;this.view.startDate=c.addDays(this.view.startDate,l)}if([0,6].includes(this.view.lastCellDate.getDay())){const l=this.view.lastCellDate.getDay()===0&&!this.startWeekOnSunday?2:1;this.view.lastCellDate=c.subtractDays(this.view.lastCellDate,l)}if([0,6].includes(this.view.endDate.getDay())){const l=this.view.endDate.getDay()===0?2:1;this.view.endDate=c.subtractDays(this.view.endDate,l)}}break}case"week":{t=c.getPreviousFirstDayOfWeek(t,this.startWeekOnSunday);const o=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?c.addDays(t,1):t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=c.addDays(t,o),this.view.endDate.setSeconds(-1);break}case"day":{this.view.startDate=t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(t),this.view.endDate.setHours(23,59,59,0);break}}this.addEventsToView();const i=this.view.startDate&&this.view.startDate.getTime();if(!(r===e&&i===n)&&(this.$emit("update:activeView",e),this.ready)){const o=this.view.startDate,l={view:e,startDate:o,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:c.getWeek(this.startWeekOnSunday?c.addDays(o,1):o)}:{}};this.$emit("view-change",l)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(e=!0){const t=this.utils.date;this.transitionDirection=e?"right":"left";const a=e?1:-1;let c=null;const{startDate:n,id:r}=this.view;switch(r){case"years":c=new Date(n.getFullYear()+25*a,0,1);break;case"year":c=new Date(n.getFullYear()+1*a,1,1);break;case"month":c=new Date(n.getFullYear(),n.getMonth()+1*a,1);break;case"week":c=t[e?"addDays":"subtractDays"](t.getPreviousFirstDayOfWeek(n,this.startWeekOnSunday),7);break;case"day":c=t[e?"addDays":"subtractDays"](n,1);const i=c.getDay(),o=this.startWeekOnSunday?i:(i||7)-1;if(this.weekDays[o].hide){const f=this.weekDays.map((d,h)=>({...d,i:h}));let u=0;e?([...f.slice(o),...f].find(d=>(u++,!d.hide)).i,u--):[...f,...f.slice(0,o)].reverse().find(d=>(u++,!d.hide)).i,c=t[e?"addDays":"subtractDays"](c,u)}break}c&&this.switchView(r,c)},addEventsToView(e=[]){const t=this.utils.event,{startDate:a,endDate:c,firstCellDate:n,lastCellDate:r}=this.view;if(e.length||(this.view.events=[]),e=e.length?e:[...this.mutableEvents],!e||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let i=e.filter(o=>t.eventInRange(o,a,c));!this.isYearsOrYearView&&!(this.isMonthView&&!this.eventsOnMonthView)&&(i=i.map(o=>o.daysCount>1?t.createEventSegments(o,n||a,r||c):o)),this.view.events.push(...i),this.isMonthView&&(this.view.outOfScopeEvents=[],e.forEach(o=>{(t.eventInRange(o,n,a)||t.eventInRange(o,c,r))&&(this.view.events.some(l=>l._eid===o._eid)||this.view.outOfScopeEvents.push(o))}))},findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e},isDOMElementAnEvent(e){return e.classList.contains("vuecal__event")||this.findAncestor(e,"vuecal__event")},onMouseMove(e){const{resizeAnEvent:t,dragAnEvent:a,dragCreateAnEvent:c}=this.domEvents;t._eid===null&&a._eid===null&&!c.start||(e.preventDefault(),t._eid?this.eventResizing(e):this.dragToCreateEvent&&c.start&&this.eventDragCreation(e))},onMouseUp(e){const{focusAnEvent:t,resizeAnEvent:a,clickHoldAnEvent:c,clickHoldACell:n,dragCreateAnEvent:r}=this.domEvents,{_eid:i}=c,{_eid:o}=a;let l=!1;const{event:f,start:u}=r,d=this.isDOMElementAnEvent(e.target),h=t.mousedUp;if(t.mousedUp=!1,d&&(this.domEvents.cancelClickEventCreation=!0),n.eventCreated)return;if(o){const{originalEnd:v,originalEndTimeMinutes:m,endTimeMinutes:y}=a,g=this.view.events.find(M=>M._eid===a._eid);if(l=y&&y!==m,g&&g.end.getTime()!==v.getTime()){const M=this.mutableEvents.find(b=>b._eid===a._eid);M.endTimeMinutes=g.endTimeMinutes,M.end=g.end;const x=this.cleanupEvent(g),k={...this.cleanupEvent(g),end:v,endTimeMinutes:g.originalEndTimeMinutes};this.$emit("event-duration-change",{event:x,oldDate:a.originalEnd,originalEvent:k}),this.$emit("event-change",{event:x,originalEvent:k})}g&&(g.resizing=!1),a._eid=null,a.start=null,a.split=null,a.segment=null,a.originalEndTimeMinutes=null,a.originalEnd=null,a.endTimeMinutes=null,a.startCell=null,a.endCell=null}else u&&(f&&(this.emitWithEvent("event-drag-create",f),r.event.resizing=!1),r.start=null,r.split=null,r.event=null);!d&&!o&&this.unfocusEvent(),c.timeoutId&&!i&&(clearTimeout(c.timeoutId),c.timeoutId=null),n.timeoutId&&(clearTimeout(n.timeoutId),n.timeoutId=null);const p=typeof this.onEventClick=="function";if(h&&!l&&!i&&!f&&p){let v=this.view.events.find(m=>m._eid===t._eid);return!v&&this.isMonthView&&(v=this.view.outOfScopeEvents.find(m=>m._eid===t._eid)),v&&this.onEventClick(v,e)}},onKeyUp(e){e.keyCode===27&&this.cancelDelete()},eventResizing(e){const{resizeAnEvent:t}=this.domEvents,a=this.view.events.find(f=>f._eid===t._eid)||{segments:{}},{minutes:c,cursorCoords:n}=this.minutesAtCursor(e),r=a.segments&&a.segments[t.segment],{date:i,event:o}=this.utils,l=Math.max(c,this.timeFrom+1,(r||a).startTimeMinutes+1);if(a.endTimeMinutes=t.endTimeMinutes=l,this.snapToTime){const f=a.endTimeMinutes+this.snapToTime/2;a.endTimeMinutes=f-f%this.snapToTime}if(r&&(r.endTimeMinutes=a.endTimeMinutes),a.end.setHours(0,a.endTimeMinutes,a.endTimeMinutes===Zs?-1:0,0),this.resizeX&&this.isWeekView){a.daysCount=i.countDays(a.start,a.end);const f=this.cellsEl,u=f.offsetWidth/f.childElementCount,d=Math.floor(n.x/u);if(t.startCell===null&&(t.startCell=d-(a.daysCount-1)),t.endCell!==d){t.endCell=d;const h=i.addDays(a.start,d-t.startCell),p=Math.max(i.countDays(a.start,h),1);if(p!==a.daysCount){let v=null;p>a.daysCount?v=o.addEventSegment(a):v=o.removeEventSegment(a),t.segment=v,a.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:a._eid,end:a.end,endTimeMinutes:a.endTimeMinutes})},eventDragCreation(e){const{dragCreateAnEvent:t}=this.domEvents,{start:a,startCursorY:c,split:n}=t,r=new Date(a),{minutes:i,cursorCoords:{y:o}}=this.minutesAtCursor(e);if(!(!t.event&&Math.abs(c-o)<this.dragToCreateThreshold))if(t.event){if(r.setHours(0,i,i===Zs?-1:0,0),this.snapToTime){let u=r.getHours()*60+r.getMinutes();const d=u+this.snapToTime/2;u=d-d%this.snapToTime,r.setHours(0,u,0,0)}const l=a<r,{event:f}=t;f.start=l?a:r,f.end=l?r:a,f.startTimeMinutes=f.start.getHours()*60+f.start.getMinutes(),f.endTimeMinutes=f.end.getHours()*60+f.end.getMinutes()}else{if(t.event=this.utils.event.createAnEvent(a,1,{split:n}),!t.event){t.start=null,t.split=null,t.event=null;return}t.event.resizing=!0}},unfocusEvent(){const{focusAnEvent:e,clickHoldAnEvent:t}=this.domEvents,a=this.view.events.find(c=>c._eid===(e._eid||t._eid));e._eid=null,t._eid=null,a&&(a.focused=!1,a.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:e}=this.domEvents;if(e._eid){const t=this.view.events.find(a=>a._eid===e._eid);t&&(t.deleting=!1),e._eid=null,e.timeoutId=null}},onEventTitleBlur(e,t){if(t.title===e.target.innerHTML)return;const a=t.title;t.title=e.target.innerHTML;const c=this.cleanupEvent(t);this.$emit("event-title-change",{event:c,oldTitle:a}),this.$emit("event-change",{event:c,originalEvent:{...c,title:a}})},updateMutableEvents(){const e=this.utils.date;this.mutableEvents=[],this.events.forEach(t=>{const a=typeof t.start=="string"?e.stringToDate(t.start):t.start,c=e.formatDateLite(a),n=e.dateToMinutes(a);let r=null;typeof t.end=="string"&&t.end.includes("24:00")?(r=new Date(t.end.replace(" 24:00","")),r.setHours(23,59,59,0)):r=typeof t.end=="string"?e.stringToDate(t.end):t.end;let i=e.formatDateLite(r),o=e.dateToMinutes(r);(!o||o===Zs)&&(!this.time||typeof t.end=="string"&&t.end.length===10?r.setHours(23,59,59,0):r.setSeconds(r.getSeconds()-1),i=e.formatDateLite(r),o=Zs);const l=c!==i;t=Object.assign({...this.utils.event.eventDefaults},t,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:l?{}:null,start:a,startTimeMinutes:n,end:r,endTimeMinutes:o,daysCount:l?e.countDays(a,r):1,class:t.class}),this.mutableEvents.push(t)})},minutesAtCursor(e){return this.utils.cell.minutesAtCursor(e)},createEvent(e,t,a={}){return this.utils.event.createAnEvent(e,t,a)},cleanupEvent(e){return e={...e},["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"].forEach(a=>{a in e&&delete e[a]}),e.repeat||delete e.repeat,e},emitWithEvent(e,t){this.$emit(e,this.cleanupEvent(t))},updateSelectedDate(e){if(e&&typeof e=="string"?e=this.utils.date.stringToDate(e):e=new Date(e),e&&e instanceof Date){const{selectedDate:t}=this.view;t&&(this.transitionDirection=t.getTime()>e.getTime()?"left":"right"),e.setHours(0,0,0,0),(!t||t.getTime()!==e.getTime())&&(this.view.selectedDate=e),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(e){const t=this.utils.date,c=this.firstCellDateWeekNumber+e,n=this.startWeekOnSunday?1:0;return c>52?t.getWeek(t.addDays(this.view.firstCellDate,7*e+n)):c},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,60*1e3)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){if(document.getElementById("vuecal-align-with-scrollbar"))return;const e=this.$refs.vuecal.getElementsByClassName("vuecal__scrollbar-check")[0],t=e.offsetWidth-e.children[0].offsetWidth;if(t){const a=document.createElement("style");a.id="vuecal-align-with-scrollbar",a.type="text/css",a.innerHTML=`.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__all-day {padding-right: ${t}px}`,document.head.appendChild(a)}},cellOrSplitHasEvents(e,t=null){return e.length&&(!t&&e.length||t&&e.some(a=>a.split===t.id))}},created(){this.utils.cell=new M92(this),this.utils.event=new x92(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,(60-this.now.getSeconds())*1e3))},mounted(){const e=this.utils.date,t="ontouchstart"in window,{resize:a,drag:c,create:n,delete:r,title:i}=this.editEvents,o=this.onEventClick&&typeof this.onEventClick=="function";(a||c||n||r||i||o)&&window.addEventListener(t?"touchend":"mouseup",this.onMouseUp),(a||c||n&&this.dragToCreateEvent)&&window.addEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),i&&window.addEventListener("keyup",this.onKeyUp),t&&(this.$refs.vuecal.oncontextmenu=function(u){u.preventDefault(),u.stopPropagation()}),this.hideBody||this.alignWithScrollbar();const l=this.view.startDate,f={view:this.view.id,startDate:l,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:e.getWeek(this.startWeekOnSunday?e.addDays(l,1):l)}:{}};this.$emit("ready",f),this.ready=!0},beforeUnmount(){const e="ontouchstart"in window;window.removeEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(e?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&typeof this.editableEvents=="object"?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter(e=>this.views[e].enabled)},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&this.eventsOnMonthView==="short"},firstCellDateWeekNumber(){const e=this.utils.date,t=this.view.firstCellDate;return e.getWeek(this.startWeekOnSunday?e.addDays(t,1):t)},timeCells(){const e=[];for(let t=this.timeFrom,a=this.timeTo;t<a;t+=this.timeStep)e.push({hours:Math.floor(t/60),minutes:t%60,label:this.utils.date.formatTime(t,this.TimeFormat),value:t});return e},TimeFormat(){return this.timeFormat||(this.twelveHour?"h:mm{am}":"HH:mm")},daySplits(){return(this.splitDays.filter(e=>!e.hide)||[]).map((e,t)=>({...e,id:e.id||t+1}))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return this.showAllDayEvents==="short"},cellOrSplitMinWidth(){let e=null;return this.hasSplits&&this.minSplitWidth?e=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(e=this.visibleDaysCount*this.minCellWidth),e},allDayBar(){let e=this.allDayBarHeight||null;return e&&!isNaN(e)&&(e+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:e}},minTimestamp(){let e=null;return this.minDate&&typeof this.minDate=="string"?e=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(e=this.minDate),e?e.getTime():null},maxTimestamp(){let e=null;return this.maxDate&&typeof this.maxDate=="string"?e=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.maxDate instanceof Date&&(e=this.maxDate),e?e.getTime():null},weekDays(){let{weekDays:e,weekDaysShort:t=[]}=this.texts;return e=e.slice(0).map((a,c)=>({label:a,...t.length?{short:t[c]}:{},hide:this.hideWeekends&&c>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(c+1)})),this.startWeekOnSunday&&e.unshift(e.pop()),e},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map(e=>({label:e}))},specialDayHours(){return!this.specialHours||!Object.keys(this.specialHours).length?{}:Array(7).fill("").map((e,t)=>{let a=this.specialHours[t+1]||[];return Array.isArray(a)||(a=[a]),e=[],a.forEach(({from:c,to:n,class:r,label:i},o)=>{e[o]={day:t+1,from:[null,void 0].includes(c)?null:c*1,to:[null,void 0].includes(n)?null:n*1,class:r||"",label:i||""}}),e})},viewTitle(){const e=this.utils.date;let t="";const a=this.view.startDate,c=a.getFullYear(),n=a.getMonth();switch(this.view.id){case"years":{t=this.texts.years;break}case"year":{t=c;break}case"month":{t=`${this.months[n].label} ${c}`;break}case"week":{const r=this.view.endDate,i=a.getFullYear();let o=this.texts.months[a.getMonth()];this.xsmall&&(o=o.substring(0,3));let l=`${o} ${i}`;if(r.getMonth()!==a.getMonth()){const f=r.getFullYear();let u=this.texts.months[r.getMonth()];this.xsmall&&(u=u.substring(0,3)),i===f?l=`${o} - ${u} ${i}`:this.small?l=`${o.substring(0,3)} ${i} - ${u.substring(0,3)} ${f}`:l=`${o} ${i} - ${u} ${f}`}t=`${this.texts.week} ${e.getWeek(this.startWeekOnSunday?e.addDays(a,1):a)} (${l})`;break}case"day":{t=this.utils.date.formatDate(a,this.texts.dateFormat,this.texts);break}}return t},viewCells(){const e=this.utils.date;let t=[],a=null,c=!1;this.watchRealTime||(this.now=new Date);const n=this.now;switch(this.view.id){case"years":{a=this.view.startDate.getFullYear(),t=Array.apply(null,Array(25)).map((r,i)=>{const o=new Date(a+i,0,1),l=new Date(a+i+1,0,1);return l.setSeconds(-1),{startDate:o,formattedDate:e.formatDateLite(o),endDate:l,content:a+i,current:a+i===n.getFullYear()}});break}case"year":{a=this.view.startDate.getFullYear(),t=Array.apply(null,Array(12)).map((r,i)=>{const o=new Date(a,i,1),l=new Date(a,i+1,1);return l.setSeconds(-1),{startDate:o,formattedDate:e.formatDateLite(o),endDate:l,content:this.xsmall?this.months[i].label.substr(0,3):this.months[i].label,current:i===n.getMonth()&&a===n.getFullYear()}});break}case"month":{const r=this.view.startDate.getMonth(),i=new Date(this.view.firstCellDate);c=!1,t=Array.apply(null,Array(42)).map((o,l)=>{const f=e.addDays(i,l),u=new Date(f);u.setHours(23,59,59,0);const d=!c&&e.isToday(f)&&!c++;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,content:f.getDate(),today:d,outOfScope:f.getMonth()!==r,class:`vuecal__cell--day${f.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(t=t.filter(o=>{const l=o.startDate.getDay()||7;return!(this.hideWeekends&&l>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(l))}));break}case"week":{c=!1;const r=this.view.startDate,i=this.weekDays;t=i.map((o,l)=>{const f=e.addDays(r,this.startWeekOnSunday&&this.hideWeekends?l-1:l),u=new Date(f);u.setHours(23,59,59,0);const d=(f.getDay()||7)-1;return{startDate:f,formattedDate:e.formatDateLite(f),endDate:u,today:!c&&e.isToday(f)&&!c++,specialHours:this.specialDayHours[d]||[]}}).filter((o,l)=>!i[l].hide);break}case"day":{const r=this.view.startDate,i=new Date(this.view.startDate);i.setHours(23,59,59,0);const o=(r.getDay()||7)-1;t=[{startDate:r,formattedDate:e.formatDateLite(r),endDate:i,today:e.isToday(r),specialHours:this.specialDayHours[o]||[]}];break}}return t},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce((e,t)=>e+t.hide,0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:e,dragAnEvent:t,dragCreateAnEvent:a}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":e._eid,"vuecal--drag-creating-event":a.event,"vuecal--dragging-event":t._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&this.eventsOnMonthView==="short","vuecal--has-touch":typeof window<"u"&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return this.view.id==="years"},isYearView(){return this.view.id==="year"},isMonthView(){return this.view.id==="month"},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return this.view.id==="week"},isDayView(){return this.view.id==="day"}},watch:{events:{handler(e,t){this.updateMutableEvents(e),this.addEventsToView()},deep:!0},locale(e){this.loadLocale(e)},selectedDate(e){this.updateSelectedDate(e)},activeView(e){this.switchView(e)}}},Al2=_s(Nl2,[["render",Sl2]]);function G31(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function Y8(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?G31(Object(a),!0).forEach(function(c){Tl2(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):G31(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function Tl2(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Z31(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((a,c)=>(t.includes(c)||(a[c]=s.unref(e[c])),a),{})}function xF(e){return typeof e=="function"}function El2(e){return s.isReactive(e)||s.isReadonly(e)}function jn1(e,t,a){let c=e;const n=t.split(".");for(let r=0;r<n.length;r++){if(!c[n[r]])return a;c=c[n[r]]}return c}function vU(e,t,a){return s.computed(()=>e.some(c=>jn1(t,c,{[a]:!1})[a]))}function X31(e,t,a){return s.computed(()=>e.reduce((c,n)=>{const r=jn1(t,n,{[a]:!1})[a]||[];return c.concat(r)},[]))}function Un1(e,t,a,c){return e.call(c,s.unref(t),s.unref(a),c)}function Wn1(e){return e.$valid!==void 0?!e.$valid:!e}function Dl2(e,t,a,c,n,r,i){let{$lazy:o,$rewardEarly:l}=n,f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,h=arguments.length>10?arguments[10]:void 0;const p=s.ref(!!c.value),v=s.ref(0);a.value=!1;const m=s.watch([t,c].concat(f,h),()=>{if(o&&!c.value||l&&!d.value&&!a.value)return;let y;try{y=Un1(e,t,u,i)}catch(g){y=Promise.reject(g)}v.value++,a.value=!!v.value,p.value=!1,Promise.resolve(y).then(g=>{v.value--,a.value=!!v.value,r.value=g,p.value=Wn1(g)}).catch(g=>{v.value--,a.value=!!v.value,r.value=g,p.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:p,$unwatch:m}}function Pl2(e,t,a,c,n,r,i,o){let{$lazy:l,$rewardEarly:f}=c;const u=()=>({}),d=s.computed(()=>{if(l&&!a.value||f&&!o.value)return!1;let h=!0;try{const p=Un1(e,t,i,r);n.value=p,h=Wn1(p)}catch(p){n.value=p}return h});return{$unwatch:u,$invalid:d}}function Ol2(e,t,a,c,n,r,i,o,l,f,u){const d=s.ref(!1),h=e.$params||{},p=s.ref(null);let v,m;e.$async?{$invalid:v,$unwatch:m}=Dl2(e.$validator,t,d,a,c,p,n,e.$watchTargets,l,f,u):{$invalid:v,$unwatch:m}=Pl2(e.$validator,t,a,c,p,n,l,f);const y=e.$message;return{$message:xF(y)?s.computed(()=>y(Z31({$pending:d,$invalid:v,$params:Z31(h),$model:t,$response:p,$validator:r,$propertyPath:o,$property:i}))):y||"",$params:h,$pending:d,$invalid:v,$response:p,$unwatch:m}}function Il2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=s.unref(e),a=Object.keys(t),c={},n={},r={};let i=null;return a.forEach(o=>{const l=t[o];switch(!0){case xF(l.$validator):c[o]=l;break;case xF(l):c[o]={$validator:l};break;case o==="$validationGroups":i=l;break;case o.startsWith("$"):r[o]=l;break;default:n[o]=l}}),{rules:c,nestedValidators:n,config:r,validationGroups:i}}const Bl2="__root";function Rl2(e,t,a,c,n,r,i,o,l){const f=Object.keys(e),u=c.get(n,e),d=s.ref(!1),h=s.ref(!1),p=s.ref(0);if(u){if(!u.$partial)return u;u.$unwatch(),d.value=u.$dirty.value}const v={$dirty:d,$path:n,$touch:()=>{d.value||(d.value=!0)},$reset:()=>{d.value&&(d.value=!1)},$commit:()=>{}};return f.length?(f.forEach(m=>{v[m]=Ol2(e[m],t,v.$dirty,r,i,m,a,n,l,h,p)}),v.$externalResults=s.computed(()=>o.value?[].concat(o.value).map((m,y)=>({$propertyPath:n,$property:a,$validator:"$externalResults",$uid:`${n}-externalResult-${y}`,$message:m,$params:{},$response:null,$pending:!1})):[]),v.$invalid=s.computed(()=>{const m=f.some(y=>s.unref(v[y].$invalid));return h.value=m,!!v.$externalResults.value.length||m}),v.$pending=s.computed(()=>f.some(m=>s.unref(v[m].$pending))),v.$error=s.computed(()=>v.$dirty.value?v.$pending.value||v.$invalid.value:!1),v.$silentErrors=s.computed(()=>f.filter(m=>s.unref(v[m].$invalid)).map(m=>{const y=v[m];return s.reactive({$propertyPath:n,$property:a,$validator:m,$uid:`${n}-${m}`,$message:y.$message,$params:y.$params,$response:y.$response,$pending:y.$pending})}).concat(v.$externalResults.value)),v.$errors=s.computed(()=>v.$dirty.value?v.$silentErrors.value:[]),v.$unwatch=()=>f.forEach(m=>{v[m].$unwatch()}),v.$commit=()=>{h.value=!0,p.value=Date.now()},c.set(n,e,v),v):(u&&c.set(n,e,v),v)}function Fl2(e,t,a,c,n,r,i){const o=Object.keys(e);return o.length?o.reduce((l,f)=>(l[f]=RY({validations:e[f],state:t,key:f,parentKey:a,resultsCache:c,globalConfig:n,instance:r,externalResults:i}),l),{}):{}}function $l2(e,t,a){const c=s.computed(()=>[t,a].filter(v=>v).reduce((v,m)=>v.concat(Object.values(s.unref(m))),[])),n=s.computed({get(){return e.$dirty.value||(c.value.length?c.value.every(v=>v.$dirty):!1)},set(v){e.$dirty.value=v}}),r=s.computed(()=>{const v=s.unref(e.$silentErrors)||[],m=c.value.filter(y=>(s.unref(y).$silentErrors||[]).length).reduce((y,g)=>y.concat(...g.$silentErrors),[]);return v.concat(m)}),i=s.computed(()=>{const v=s.unref(e.$errors)||[],m=c.value.filter(y=>(s.unref(y).$errors||[]).length).reduce((y,g)=>y.concat(...g.$errors),[]);return v.concat(m)}),o=s.computed(()=>c.value.some(v=>v.$invalid)||s.unref(e.$invalid)||!1),l=s.computed(()=>c.value.some(v=>s.unref(v.$pending))||s.unref(e.$pending)||!1),f=s.computed(()=>c.value.some(v=>v.$dirty)||c.value.some(v=>v.$anyDirty)||n.value),u=s.computed(()=>n.value?l.value||o.value:!1),d=()=>{e.$touch(),c.value.forEach(v=>{v.$touch()})},h=()=>{e.$commit(),c.value.forEach(v=>{v.$commit()})},p=()=>{e.$reset(),c.value.forEach(v=>{v.$reset()})};return c.value.length&&c.value.every(v=>v.$dirty)&&d(),{$dirty:n,$errors:i,$invalid:o,$anyDirty:f,$error:u,$pending:l,$touch:d,$reset:p,$silentErrors:r,$commit:h}}function RY(e){let{validations:t,state:a,key:c,parentKey:n,childResults:r,resultsCache:i,globalConfig:o={},instance:l,externalResults:f}=e;const u=n?`${n}.${c}`:c,{rules:d,nestedValidators:h,config:p,validationGroups:v}=Il2(t),m=Y8(Y8({},o),p),y=c?s.computed(()=>{const U=s.unref(a);return U?s.unref(U[c]):void 0}):a,g=Y8({},s.unref(f)||{}),M=s.computed(()=>{const U=s.unref(f);return c?U?s.unref(U[c]):void 0:U}),x=Rl2(d,y,c,i,u,m,l,M,a),k=Fl2(h,y,u,i,m,l,M),b={};v&&Object.entries(v).forEach(U=>{let[I,T]=U;b[I]={$invalid:vU(T,k,"$invalid"),$error:vU(T,k,"$error"),$pending:vU(T,k,"$pending"),$errors:X31(T,k,"$errors"),$silentErrors:X31(T,k,"$silentErrors")}});const{$dirty:_,$errors:C,$invalid:H,$anyDirty:V,$error:N,$pending:L,$touch:w,$reset:P,$silentErrors:j,$commit:E}=$l2(x,k,r),F=c?s.computed({get:()=>s.unref(y),set:U=>{_.value=!0;const I=s.unref(a),T=s.unref(f);T&&(T[c]=g[c]),s.isRef(I[c])?I[c].value=U:I[c]=U}}):null;c&&m.$autoDirty&&s.watch(y,()=>{_.value||w();const U=s.unref(f);U&&(U[c]=g[c])},{flush:"sync"});async function R(){return w(),m.$rewardEarly&&(E(),await s.nextTick()),await s.nextTick(),new Promise(U=>{if(!L.value)return U(!H.value);const I=s.watch(L,()=>{U(!H.value),I()})})}function K(U){return(r.value||{})[U]}function Z(){s.isRef(f)?f.value=g:Object.keys(g).length===0?Object.keys(f).forEach(U=>{delete f[U]}):Object.assign(f,g)}return s.reactive(Y8(Y8(Y8({},x),{},{$model:F,$dirty:_,$error:N,$errors:C,$invalid:H,$anyDirty:V,$pending:L,$touch:w,$reset:P,$path:u||Bl2,$silentErrors:j,$validate:R,$commit:E},r&&{$getResultsForChild:K,$clearExternalResults:Z,$validationGroups:b}),k))}class ql2{constructor(){this.storage=new Map}set(t,a,c){this.storage.set(t,{rules:a,result:c})}checkRulesValidity(t,a,c){const n=Object.keys(c),r=Object.keys(a);return r.length!==n.length||!r.every(o=>n.includes(o))?!1:r.every(o=>a[o].$params?Object.keys(a[o].$params).every(l=>s.unref(c[o].$params[l])===s.unref(a[o].$params[l])):!0)}get(t,a){const c=this.storage.get(t);if(!c)return;const{rules:n,result:r}=c,i=this.checkRulesValidity(t,a,n),o=r.$unwatch?r.$unwatch:()=>({});return i?r:{$dirty:r.$dirty,$partial:!0,$unwatch:o}}}const TR={COLLECT_ALL:!0,COLLECT_NONE:!1},K31=Symbol("vuelidate#injectChildResults"),Q31=Symbol("vuelidate#removeChildResults");function jl2(e){let{$scope:t,instance:a}=e;const c={},n=s.ref([]),r=s.computed(()=>n.value.reduce((u,d)=>(u[d]=s.unref(c[d]),u),{}));function i(u,d){let{$registerAs:h,$scope:p,$stopPropagation:v}=d;v||t===TR.COLLECT_NONE||p===TR.COLLECT_NONE||t!==TR.COLLECT_ALL&&t!==p||(c[h]=u,n.value.push(h))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],i);function o(u){n.value=n.value.filter(d=>d!==u),delete c[u]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],o);const l=s.inject(K31,[]);s.provide(K31,a.__vuelidateInjectInstances);const f=s.inject(Q31,[]);return s.provide(Q31,a.__vuelidateRemoveInstances),{childResults:r,sendValidationResultsToParent:l,removeValidationResultsFromParent:f}}function Yn1(e){return new Proxy(e,{get(t,a){return typeof t[a]=="object"?Yn1(t[a]):s.computed(()=>t[a])}})}let J31=0;function Gn1(e,t){var a;let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(c=e,e=void 0,t=void 0);let{$registerAs:n,$scope:r=TR.COLLECT_ALL,$stopPropagation:i,$externalResults:o,currentVueInstance:l}=c;const f=l||((a=s.getCurrentInstance())===null||a===void 0?void 0:a.proxy),u=f?f.$options:{};n||(J31+=1,n=`_vuelidate_${J31}`);const d=s.ref({}),h=new ql2,{childResults:p,sendValidationResultsToParent:v,removeValidationResultsFromParent:m}=f?jl2({$scope:r,instance:f}):{childResults:s.ref({})};if(!e&&u.validations){const y=u.validations;t=s.ref({}),s.onBeforeMount(()=>{t.value=f,s.watch(()=>xF(y)?y.call(t.value,new Yn1(t.value)):y,g=>{d.value=RY({validations:g,state:t,childResults:p,resultsCache:h,globalConfig:c,instance:f,externalResults:o||f.vuelidateExternalResults})},{immediate:!0})}),c=u.validationsConfig||c}else{const y=s.isRef(e)||El2(e)?e:s.reactive(e||{});s.watch(y,g=>{d.value=RY({validations:g,state:t,childResults:p,resultsCache:h,globalConfig:c,instance:f??{},externalResults:o})},{immediate:!0})}return f&&(v.forEach(y=>y(d,{$registerAs:n,$scope:r,$stopPropagation:i})),s.onBeforeUnmount(()=>m.forEach(y=>y(n)))),s.computed(()=>Y8(Y8({},s.unref(d.value)),p.value))}var Ul2=Object.defineProperty,Wl2=(e,t,a)=>t in e?Ul2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,A1=(e,t,a)=>(Wl2(e,typeof t!="symbol"?t+"":t,a),a);const Yl2={first:{light:"#2a2a2a",dark:"#f5f5f5",contrast:{light:"#fcfcfc",dark:"#202020"}},second:{light:"#363636",dark:"#dfe0df",contrast:{light:"#f4f4f4",dark:"#2b2b2b"}},third:{light:"#484848",dark:"#cfcfcf",contrast:{light:"#e8e8e8",dark:"#262626"}},primary:{light:"#218c5a",dark:"#218c5a",contrast:{light:"#ffffff",dark:"#ffffff"}},secondary:{light:"#218c5a",dark:"#218c5a",contrast:{light:"#ffffff",dark:"#ffffff"}},success:{light:"#4caf50",dark:"#6bbf55",contrast:{light:"#ffffff",dark:"#ffffff"}},warning:{light:"#ff9800",dark:"#ff8f1f",contrast:{light:"#ffffff",dark:"#ffffff"}},danger:{light:"#f44336",dark:"#ff5e50",contrast:{light:"#ffffff",dark:"#ffffff"}},grey:{light:"#6d6d6d",dark:"#a3a3a3",contrast:{light:"#ffffff",dark:"#ffffff"}},red:{light:"#e91e63",dark:"#e64a77",contrast:{light:"#ffffff",dark:"#ffffff"}},purple:{light:"#9c27b0",dark:"#8e24aa",contrast:{light:"#ffffff",dark:"#ffffff"}},sky:{light:"#00acc1",dark:"#40c4ff",contrast:{light:"#ffffff",dark:"#ffffff"}},aqua:{light:"#00bcd4",dark:"#4db6ac",contrast:{light:"#ffffff",dark:"#ffffff"}},beige:{light:"#f4e1a1",dark:"#ffd54f",contrast:{light:"#ffffff",dark:"#ffffff"}},info:{light:"#039be5",dark:"#29b6f6",contrast:{light:"#ffffff",dark:"#ffffff"}},link:{light:"#1976d2",dark:"#2196f3",contrast:{light:"#ffffff",dark:"#ffffff"}},error:{light:"#d32f2f",dark:"#f44336",contrast:{light:"#ffffff",dark:"#ffffff"}},overlay:{light:"#00000080",dark:"#00000055",contrast:{light:"#ffffff",dark:"#ffffff"}}};var Gl2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zl2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zn1={exports:{}};(function(e,t){(function(a,c){e.exports=c()})(self,()=>(()=>{var a={423:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.removeDuplicateItems=void 0,i.removeDuplicateItems=function(o,l="id"){return o.filter((f,u,d)=>u===d.findIndex(h=>h[l]===f[l]))}},621:function(r,i,o){var l=this&&this.__awaiter||function(d,h,p,v){return new(p||(p=Promise))(function(m,y){function g(k){try{x(v.next(k))}catch(b){y(b)}}function M(k){try{x(v.throw(k))}catch(b){y(b)}}function x(k){var b;k.done?m(k.value):(b=k.value,b instanceof p?b:new p(function(_){_(b)})).then(g,M)}x((v=v.apply(d,h||[])).next())})},f=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(i,"__esModule",{value:!0}),i.getCoinValueInUsd=void 0;const u=f(o(425));i.getCoinValueInUsd=function(d){return l(this,void 0,void 0,function*(){try{return d==="ARS"?1/(yield u.default.get("https://dolarapi.com/v1/dolares/blue")).data.venta:["BTC","ETH","LTC","USDT"].includes(d)?(yield u.default.get("https://api.coincap.io/v2/assets")).data.data.find(h=>h.symbol===d).priceUsd:1/(yield u.default.get("https://v6.exchangerate-api.com/v6/65057543fdcbb1629e21c3a2/latest/USD")).data.conversion_rates[d]}catch{throw new Error(`Unable to get the value of ${d} at this time. Try again later.`)}})}},985:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getNextDayStartDate=i.getPreviousDayStartDate=i.getCurrentDayStartDate=i.getNextMonthStartDate=i.getPreviousMonthStartDate=i.getCurrentMonthStartDate=i.getNextYearStartDate=i.getPreviousYearStartDate=i.getCurrentYearStartDate=i.getIsoTime=i.getIsoDate=void 0,i.getIsoDate=function(o){return(o||new Date).toISOString().split("T")[0]},i.getIsoTime=function(o){return(o||new Date).toISOString().split("T")[1]},i.getCurrentYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),0,1)},i.getPreviousYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear()-1,0,1)},i.getNextYearStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear()+1,0,1)},i.getCurrentMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),1)},i.getPreviousMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth()-1,1)},i.getNextMonthStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth()+1,1)},i.getCurrentDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate())},i.getPreviousDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()-1)},i.getNextDayStartDate=function(o){const l=o||new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate()+1)}},905:(r,i)=>{function o(l,f,u="round"){return Math[u](l/f)*f}Object.defineProperty(i,"__esModule",{value:!0}),i.roundDecimals=i.roundNumber=i.multiplyWithUnits=i.sumWithUnits=void 0,i.sumWithUnits=function(l,...f){var u;const d=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${[l,...f].reduce((h,p)=>h+parseFloat(p),0)}${d}`},i.multiplyWithUnits=function(l,f){var u;const d=((u=l.match(/[a-zA-Z%]+/))===null||u===void 0?void 0:u[0])||"";return`${parseFloat(l)*f}${d}`},i.roundNumber=o,i.roundDecimals=function(l,f=0,u="round"){return o(l,1/Math.pow(10,f),u)}},563:(r,i)=>{function o(u){return JSON.parse(JSON.stringify(u))}function l(u){return!(!u||typeof u!="object"||Array.isArray(u))}function f(u,d){for(const h in d)l(d[h])?(u[h]||(u[h]={}),f(u[h],d[h])):u[h]=d[h]}Object.defineProperty(i,"__esModule",{value:!0}),i.filterKeysDeep=i.filterKeys=i.mergeDeep=i.merge=i.isObject=i.removeProps=i.copyAvailableFields=i.cloneObjectProperties=void 0,i.cloneObjectProperties=o,i.copyAvailableFields=function u(d,h){if(d&&h)for(const p in h)h.hasOwnProperty(p)&&d.hasOwnProperty(p)&&(typeof h[p]=="object"&&h[p]!==null?u(d[p],h[p]):d[p]=h[p])},i.removeProps=function(u,d){const h=o(u);return(Array.isArray(d)?d:[d]).forEach(p=>delete h[p]),h},i.isObject=l,i.merge=f,i.mergeDeep=function(u,d){const h={};return f(h,u),f(h,d),h},i.filterKeys=function(u,d){const h={},p=Object.keys(u);for(const v of p)h[v]=d[v];return h},i.filterKeysDeep=function u(d,h){const p={},v=Object.keys(d);for(const m of v)l(d[m])&&l(h[m])?p[m]=u(d[m],h[m]):p[m]=h[m];return p}},849:(r,i)=>{function o(l){return l.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}Object.defineProperty(i,"__esModule",{value:!0}),i.accentMap=i.generateCode=i.normalizeText=i.camelToKebab=i.camelToUpperSnake=i.camelToSnake=i.getFirstChartInUppercase=i.getFirstChartInLowercase=void 0,i.getFirstChartInLowercase=function(l){return`${l.charAt(0).toLowerCase()}${l.slice(1)}`},i.getFirstChartInUppercase=function(l){return`${l.charAt(0).toUpperCase()}${l.slice(1)}`},i.camelToSnake=o,i.camelToUpperSnake=function(l){return o(l).toUpperCase()},i.camelToKebab=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/([A-Z])/g,"-$1").replace(/^-/,"").replace(/-+/g,"-").toLowerCase()},i.normalizeText=function(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},i.generateCode=function(l){const f=Math.pow(10,l-1),u=Math.pow(10,l)-1;return Math.floor(f+Math.random()*(u-f)).toString()},i.accentMap={a:"[aáàäâãå]",á:"[aáàäâãå]",à:"[aáàäâãå]",ä:"[aáàäâãå]",â:"[aáàäâãå]",ã:"[aáàäâãå]",å:"[aáàäâãå]",e:"[eéèëê]",é:"[eéèëê]",è:"[eéèëê]",ë:"[eéèëê]",ê:"[eéèëê]",i:"[iíìïî]",í:"[iíìïî]",ì:"[iíìïî]",ï:"[iíìïî]",î:"[iíìïî]",o:"[oóòöôõ]",ó:"[oóòöôõ]",ò:"[oóòöôõ]",ö:"[oóòöôõ]",ô:"[oóòöôõ]",õ:"[oóòöôõ]",u:"[uúùüû]",ú:"[uúùüû]",ù:"[uúùüû]",ü:"[uúùüû]",û:"[uúùüû]",n:"[nñ]",ñ:"[nñ]",c:"[cç]",ç:"[cç]"}},927:function(r,i,o){var l=this&&this.__createBinding||(Object.create?function(u,d,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(d,h);v&&!("get"in v?!d.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,p,v)}:function(u,d,h,p){p===void 0&&(p=h),u[p]=d[h]}),f=this&&this.__exportStar||function(u,d){for(var h in u)h==="default"||Object.prototype.hasOwnProperty.call(d,h)||l(d,u,h)};Object.defineProperty(i,"__esModule",{value:!0}),f(o(423),i),f(o(621),i),f(o(985),i),f(o(905),i),f(o(563),i),f(o(849),i),f(o(574),i)},574:(r,i)=>{Object.defineProperty(i,"__esModule",{value:!0})},425:(r,i,o)=>{function l(O,D){return function(){return O.apply(D,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:u}=Object,d=(h=Object.create(null),O=>{const D=f.call(O);return h[D]||(h[D]=D.slice(8,-1).toLowerCase())});var h;const p=O=>(O=O.toLowerCase(),D=>d(D)===O),v=O=>D=>typeof D===O,{isArray:m}=Array,y=v("undefined"),g=p("ArrayBuffer"),M=v("string"),x=v("function"),k=v("number"),b=O=>O!==null&&typeof O=="object",_=O=>{if(d(O)!=="object")return!1;const D=u(O);return!(D!==null&&D!==Object.prototype&&Object.getPrototypeOf(D)!==null||Symbol.toStringTag in O||Symbol.iterator in O)},C=p("Date"),H=p("File"),V=p("Blob"),N=p("FileList"),L=p("URLSearchParams");function w(O,D,{allOwnKeys:q=!1}={}){if(O==null)return;let X,J;if(typeof O!="object"&&(O=[O]),m(O))for(X=0,J=O.length;X<J;X++)D.call(null,O[X],X,O);else{const n1=q?Object.getOwnPropertyNames(O):Object.keys(O),c1=n1.length;let z1;for(X=0;X<c1;X++)z1=n1[X],D.call(null,O[z1],z1,O)}}function P(O,D){D=D.toLowerCase();const q=Object.keys(O);let X,J=q.length;for(;J-- >0;)if(X=q[J],D===X.toLowerCase())return X;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:o.g,E=O=>!y(O)&&O!==j,F=(R=typeof Uint8Array<"u"&&u(Uint8Array),O=>R&&O instanceof R);var R;const K=p("HTMLFormElement"),Z=(({hasOwnProperty:O})=>(D,q)=>O.call(D,q))(Object.prototype),U=p("RegExp"),I=(O,D)=>{const q=Object.getOwnPropertyDescriptors(O),X={};w(q,(J,n1)=>{let c1;(c1=D(J,n1,O))!==!1&&(X[n1]=c1||J)}),Object.defineProperties(O,X)},T="abcdefghijklmnopqrstuvwxyz",S="0123456789",W={DIGIT:S,ALPHA:T,ALPHA_DIGIT:T+T.toUpperCase()+S},Y=p("AsyncFunction");var A={isArray:m,isArrayBuffer:g,isBuffer:function(O){return O!==null&&!y(O)&&O.constructor!==null&&!y(O.constructor)&&x(O.constructor.isBuffer)&&O.constructor.isBuffer(O)},isFormData:O=>{let D;return O&&(typeof FormData=="function"&&O instanceof FormData||x(O.append)&&((D=d(O))==="formdata"||D==="object"&&x(O.toString)&&O.toString()==="[object FormData]"))},isArrayBufferView:function(O){let D;return D=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(O):O&&O.buffer&&g(O.buffer),D},isString:M,isNumber:k,isBoolean:O=>O===!0||O===!1,isObject:b,isPlainObject:_,isUndefined:y,isDate:C,isFile:H,isBlob:V,isRegExp:U,isFunction:x,isStream:O=>b(O)&&x(O.pipe),isURLSearchParams:L,isTypedArray:F,isFileList:N,forEach:w,merge:function O(){const{caseless:D}=E(this)&&this||{},q={},X=(J,n1)=>{const c1=D&&P(q,n1)||n1;_(q[c1])&&_(J)?q[c1]=O(q[c1],J):_(J)?q[c1]=O({},J):m(J)?q[c1]=J.slice():q[c1]=J};for(let J=0,n1=arguments.length;J<n1;J++)arguments[J]&&w(arguments[J],X);return q},extend:(O,D,q,{allOwnKeys:X}={})=>(w(D,(J,n1)=>{q&&x(J)?O[n1]=l(J,q):O[n1]=J},{allOwnKeys:X}),O),trim:O=>O.trim?O.trim():O.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:O=>(O.charCodeAt(0)===65279&&(O=O.slice(1)),O),inherits:(O,D,q,X)=>{O.prototype=Object.create(D.prototype,X),O.prototype.constructor=O,Object.defineProperty(O,"super",{value:D.prototype}),q&&Object.assign(O.prototype,q)},toFlatObject:(O,D,q,X)=>{let J,n1,c1;const z1={};if(D=D||{},O==null)return D;do{for(J=Object.getOwnPropertyNames(O),n1=J.length;n1-- >0;)c1=J[n1],X&&!X(c1,O,D)||z1[c1]||(D[c1]=O[c1],z1[c1]=!0);O=q!==!1&&u(O)}while(O&&(!q||q(O,D))&&O!==Object.prototype);return D},kindOf:d,kindOfTest:p,endsWith:(O,D,q)=>{O=String(O),(q===void 0||q>O.length)&&(q=O.length),q-=D.length;const X=O.indexOf(D,q);return X!==-1&&X===q},toArray:O=>{if(!O)return null;if(m(O))return O;let D=O.length;if(!k(D))return null;const q=new Array(D);for(;D-- >0;)q[D]=O[D];return q},forEachEntry:(O,D)=>{const q=(O&&O[Symbol.iterator]).call(O);let X;for(;(X=q.next())&&!X.done;){const J=X.value;D.call(O,J[0],J[1])}},matchAll:(O,D)=>{let q;const X=[];for(;(q=O.exec(D))!==null;)X.push(q);return X},isHTMLForm:K,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:I,freezeMethods:O=>{I(O,(D,q)=>{if(x(O)&&["arguments","caller","callee"].indexOf(q)!==-1)return!1;const X=O[q];x(X)&&(D.enumerable=!1,"writable"in D?D.writable=!1:D.set||(D.set=()=>{throw Error("Can not rewrite read-only method '"+q+"'")}))})},toObjectSet:(O,D)=>{const q={},X=J=>{J.forEach(n1=>{q[n1]=!0})};return m(O)?X(O):X(String(O).split(D)),q},toCamelCase:O=>O.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(D,q,X){return q.toUpperCase()+X}),noop:()=>{},toFiniteNumber:(O,D)=>(O=+O,Number.isFinite(O)?O:D),findKey:P,global:j,isContextDefined:E,ALPHABET:W,generateString:(O=16,D=W.ALPHA_DIGIT)=>{let q="";const{length:X}=D;for(;O--;)q+=D[Math.random()*X|0];return q},isSpecCompliantForm:function(O){return!!(O&&x(O.append)&&O[Symbol.toStringTag]==="FormData"&&O[Symbol.iterator])},toJSONObject:O=>{const D=new Array(10),q=(X,J)=>{if(b(X)){if(D.indexOf(X)>=0)return;if(!("toJSON"in X)){D[J]=X;const n1=m(X)?[]:{};return w(X,(c1,z1)=>{const w1=q(c1,J+1);!y(w1)&&(n1[z1]=w1)}),D[J]=void 0,n1}}return X};return q(O,0)},isAsyncFn:Y,isThenable:O=>O&&(b(O)||x(O))&&x(O.then)&&x(O.catch)};function B(O,D,q,X,J){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=O,this.name="AxiosError",D&&(this.code=D),q&&(this.config=q),X&&(this.request=X),J&&(this.response=J)}A.inherits(B,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=B.prototype,a1={};function e1(O){return A.isPlainObject(O)||A.isArray(O)}function s1(O){return A.endsWith(O,"[]")?O.slice(0,-2):O}function G(O,D,q){return O?O.concat(D).map(function(X,J){return X=s1(X),!q&&J?"["+X+"]":X}).join(q?".":""):D}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(O=>{a1[O]={value:O}}),Object.defineProperties(B,a1),Object.defineProperty(Q,"isAxiosError",{value:!0}),B.from=(O,D,q,X,J,n1)=>{const c1=Object.create(Q);return A.toFlatObject(O,c1,function(z1){return z1!==Error.prototype},z1=>z1!=="isAxiosError"),B.call(c1,O.message,D,q,X,J),c1.cause=O,c1.name=O.name,n1&&Object.assign(c1,n1),c1};const f1=A.toFlatObject(A,{},null,function(O){return/^is[A-Z]/.test(O)});function k1(O,D,q){if(!A.isObject(O))throw new TypeError("target must be an object");D=D||new FormData;const X=(q=A.toFlatObject(q,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P1,Z1){return!A.isUndefined(Z1[P1])})).metaTokens,J=q.visitor||H1,n1=q.dots,c1=q.indexes,z1=(q.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(D);if(!A.isFunction(J))throw new TypeError("visitor must be a function");function w1(P1){if(P1===null)return"";if(A.isDate(P1))return P1.toISOString();if(!z1&&A.isBlob(P1))throw new B("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(P1)||A.isTypedArray(P1)?z1&&typeof Blob=="function"?new Blob([P1]):Buffer.from(P1):P1}function H1(P1,Z1,I1){let J1=P1;if(P1&&!I1&&typeof P1=="object"){if(A.endsWith(Z1,"{}"))Z1=X?Z1:Z1.slice(0,-2),P1=JSON.stringify(P1);else if(A.isArray(P1)&&function(v2){return A.isArray(v2)&&!v2.some(e1)}(P1)||(A.isFileList(P1)||A.endsWith(Z1,"[]"))&&(J1=A.toArray(P1)))return Z1=s1(Z1),J1.forEach(function(v2,X2){!A.isUndefined(v2)&&v2!==null&&D.append(c1===!0?G([Z1],X2,n1):c1===null?Z1:Z1+"[]",w1(v2))}),!1}return!!e1(P1)||(D.append(G(I1,Z1,n1),w1(P1)),!1)}const x1=[],O1=Object.assign(f1,{defaultVisitor:H1,convertValue:w1,isVisitable:e1});if(!A.isObject(O))throw new TypeError("data must be an object");return function P1(Z1,I1){if(!A.isUndefined(Z1)){if(x1.indexOf(Z1)!==-1)throw Error("Circular reference detected in "+I1.join("."));x1.push(Z1),A.forEach(Z1,function(J1,v2){(!(A.isUndefined(J1)||J1===null)&&J.call(D,J1,A.isString(v2)?v2.trim():v2,I1,O1))===!0&&P1(J1,I1?I1.concat(v2):[v2])}),x1.pop()}}(O),D}function u1(O){const D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(O).replace(/[!'()~]|%20|%00/g,function(q){return D[q]})}function t1(O,D){this._pairs=[],O&&k1(O,this,D)}const l1=t1.prototype;function i1(O){return encodeURIComponent(O).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p1(O,D,q){if(!D)return O;const X=q&&q.encode||i1,J=q&&q.serialize;let n1;if(n1=J?J(D,q):A.isURLSearchParams(D)?D.toString():new t1(D,q).toString(X),n1){const c1=O.indexOf("#");c1!==-1&&(O=O.slice(0,c1)),O+=(O.indexOf("?")===-1?"?":"&")+n1}return O}l1.append=function(O,D){this._pairs.push([O,D])},l1.toString=function(O){const D=O?function(q){return O.call(this,q,u1)}:u1;return this._pairs.map(function(q){return D(q[0])+"="+D(q[1])},"").join("&")};var b1=class{constructor(){this.handlers=[]}use(O,D,q){return this.handlers.push({fulfilled:O,rejected:D,synchronous:!!q&&q.synchronous,runWhen:q?q.runWhen:null}),this.handlers.length-1}eject(O){this.handlers[O]&&(this.handlers[O]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(O){A.forEach(this.handlers,function(D){D!==null&&O(D)})}},v1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:t1,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]};const D1=typeof window<"u"&&typeof document<"u",R1=(B1=typeof navigator<"u"&&navigator.product,D1&&["ReactNative","NativeScript","NS"].indexOf(B1)<0);var B1;const Y1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var G1={...Object.freeze({__proto__:null,hasBrowserEnv:D1,hasStandardBrowserWebWorkerEnv:Y1,hasStandardBrowserEnv:R1}),...C1};function n2(O){function D(q,X,J,n1){let c1=q[n1++];if(c1==="__proto__")return!0;const z1=Number.isFinite(+c1),w1=n1>=q.length;return c1=!c1&&A.isArray(J)?J.length:c1,w1?(A.hasOwnProp(J,c1)?J[c1]=[J[c1],X]:J[c1]=X,!z1):(J[c1]&&A.isObject(J[c1])||(J[c1]=[]),D(q,X,J[c1],n1)&&A.isArray(J[c1])&&(J[c1]=function(H1){const x1={},O1=Object.keys(H1);let P1;const Z1=O1.length;let I1;for(P1=0;P1<Z1;P1++)I1=O1[P1],x1[I1]=H1[I1];return x1}(J[c1])),!z1)}if(A.isFormData(O)&&A.isFunction(O.entries)){const q={};return A.forEachEntry(O,(X,J)=>{D(function(n1){return A.matchAll(/\w+|\[(\w*)]/g,n1).map(c1=>c1[0]==="[]"?"":c1[1]||c1[0])}(X),J,q,0)}),q}return null}const o2={transitional:v1,adapter:["xhr","http"],transformRequest:[function(O,D){const q=D.getContentType()||"",X=q.indexOf("application/json")>-1,J=A.isObject(O);if(J&&A.isHTMLForm(O)&&(O=new FormData(O)),A.isFormData(O))return X?JSON.stringify(n2(O)):O;if(A.isArrayBuffer(O)||A.isBuffer(O)||A.isStream(O)||A.isFile(O)||A.isBlob(O))return O;if(A.isArrayBufferView(O))return O.buffer;if(A.isURLSearchParams(O))return D.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),O.toString();let n1;if(J){if(q.indexOf("application/x-www-form-urlencoded")>-1)return function(c1,z1){return k1(c1,new G1.classes.URLSearchParams,Object.assign({visitor:function(w1,H1,x1,O1){return G1.isNode&&A.isBuffer(w1)?(this.append(H1,w1.toString("base64")),!1):O1.defaultVisitor.apply(this,arguments)}},z1))}(O,this.formSerializer).toString();if((n1=A.isFileList(O))||q.indexOf("multipart/form-data")>-1){const c1=this.env&&this.env.FormData;return k1(n1?{"files[]":O}:O,c1&&new c1,this.formSerializer)}}return J||X?(D.setContentType("application/json",!1),function(c1,z1,w1){if(A.isString(c1))try{return(0,JSON.parse)(c1),A.trim(c1)}catch(H1){if(H1.name!=="SyntaxError")throw H1}return(0,JSON.stringify)(c1)}(O)):O}],transformResponse:[function(O){const D=this.transitional||o2.transitional,q=D&&D.forcedJSONParsing,X=this.responseType==="json";if(O&&A.isString(O)&&(q&&!this.responseType||X)){const J=!(D&&D.silentJSONParsing)&&X;try{return JSON.parse(O)}catch(n1){if(J)throw n1.name==="SyntaxError"?B.from(n1,B.ERR_BAD_RESPONSE,this,null,this.response):n1}}return O}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:G1.classes.FormData,Blob:G1.classes.Blob},validateStatus:function(O){return O>=200&&O<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],O=>{o2.headers[O]={}});var q1=o2;const p2=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),T2=Symbol("internals");function h2(O){return O&&String(O).trim().toLowerCase()}function y2(O){return O===!1||O==null?O:A.isArray(O)?O.map(y2):String(O)}function e3(O,D,q,X,J){return A.isFunction(X)?X.call(this,D,q):(J&&(D=q),A.isString(D)?A.isString(X)?D.indexOf(X)!==-1:A.isRegExp(X)?X.test(D):void 0:void 0)}class d1{constructor(D){D&&this.set(D)}set(D,q,X){const J=this;function n1(z1,w1,H1){const x1=h2(w1);if(!x1)throw new Error("header name must be a non-empty string");const O1=A.findKey(J,x1);(!O1||J[O1]===void 0||H1===!0||H1===void 0&&J[O1]!==!1)&&(J[O1||w1]=y2(z1))}const c1=(z1,w1)=>A.forEach(z1,(H1,x1)=>n1(H1,x1,w1));return A.isPlainObject(D)||D instanceof this.constructor?c1(D,q):A.isString(D)&&(D=D.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(D.trim())?c1((z1=>{const w1={};let H1,x1,O1;return z1&&z1.split(`
|
|
8633
8633
|
`).forEach(function(P1){O1=P1.indexOf(":"),H1=P1.substring(0,O1).trim().toLowerCase(),x1=P1.substring(O1+1).trim(),!H1||w1[H1]&&p2[H1]||(H1==="set-cookie"?w1[H1]?w1[H1].push(x1):w1[H1]=[x1]:w1[H1]=w1[H1]?w1[H1]+", "+x1:x1)}),w1})(D),q):D!=null&&n1(q,D,X),this}get(D,q){if(D=h2(D)){const X=A.findKey(this,D);if(X){const J=this[X];if(!q)return J;if(q===!0)return function(n1){const c1=Object.create(null),z1=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let w1;for(;w1=z1.exec(n1);)c1[w1[1]]=w1[2];return c1}(J);if(A.isFunction(q))return q.call(this,J,X);if(A.isRegExp(q))return q.exec(J);throw new TypeError("parser must be boolean|regexp|function")}}}has(D,q){if(D=h2(D)){const X=A.findKey(this,D);return!(!X||this[X]===void 0||q&&!e3(0,this[X],X,q))}return!1}delete(D,q){const X=this;let J=!1;function n1(c1){if(c1=h2(c1)){const z1=A.findKey(X,c1);!z1||q&&!e3(0,X[z1],z1,q)||(delete X[z1],J=!0)}}return A.isArray(D)?D.forEach(n1):n1(D),J}clear(D){const q=Object.keys(this);let X=q.length,J=!1;for(;X--;){const n1=q[X];D&&!e3(0,this[n1],n1,D,!0)||(delete this[n1],J=!0)}return J}normalize(D){const q=this,X={};return A.forEach(this,(J,n1)=>{const c1=A.findKey(X,n1);if(c1)return q[c1]=y2(J),void delete q[n1];const z1=D?function(w1){return w1.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(H1,x1,O1)=>x1.toUpperCase()+O1)}(n1):String(n1).trim();z1!==n1&&delete q[n1],q[z1]=y2(J),X[z1]=!0}),this}concat(...D){return this.constructor.concat(this,...D)}toJSON(D){const q=Object.create(null);return A.forEach(this,(X,J)=>{X!=null&&X!==!1&&(q[J]=D&&A.isArray(X)?X.join(", "):X)}),q}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([D,q])=>D+": "+q).join(`
|
|
8634
8634
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(D){return D instanceof this?D:new this(D)}static concat(D,...q){const X=new this(D);return q.forEach(J=>X.set(J)),X}static accessor(D){const q=(this[T2]=this[T2]={accessors:{}}).accessors,X=this.prototype;function J(n1){const c1=h2(n1);q[c1]||(function(z1,w1){const H1=A.toCamelCase(" "+w1);["get","set","has"].forEach(x1=>{Object.defineProperty(z1,x1+H1,{value:function(O1,P1,Z1){return this[x1].call(this,w1,O1,P1,Z1)},configurable:!0})})}(X,n1),q[c1]=!0)}return A.isArray(D)?D.forEach(J):J(D),this}}d1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(d1.prototype,({value:O},D)=>{let q=D[0].toUpperCase()+D.slice(1);return{get:()=>O,set(X){this[q]=X}}}),A.freezeMethods(d1);var o1=d1;function _1(O,D){const q=this||q1,X=D||q,J=o1.from(X.headers);let n1=X.data;return A.forEach(O,function(c1){n1=c1.call(q,n1,J.normalize(),D?D.status:void 0)}),J.normalize(),n1}function L1(O){return!(!O||!O.__CANCEL__)}function W1(O,D,q){B.call(this,O??"canceled",B.ERR_CANCELED,D,q),this.name="CanceledError"}A.inherits(W1,B,{__CANCEL__:!0});var g2=G1.hasStandardBrowserEnv?{write(O,D,q,X,J,n1){const c1=[O+"="+encodeURIComponent(D)];A.isNumber(q)&&c1.push("expires="+new Date(q).toGMTString()),A.isString(X)&&c1.push("path="+X),A.isString(J)&&c1.push("domain="+J),n1===!0&&c1.push("secure"),document.cookie=c1.join("; ")},read(O){const D=document.cookie.match(new RegExp("(^|;\\s*)("+O+")=([^;]*)"));return D?decodeURIComponent(D[3]):null},remove(O){this.write(O,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function S2(O,D){return O&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(D)?function(q,X){return X?q.replace(/\/?\/$/,"")+"/"+X.replace(/^\/+/,""):q}(O,D):D}var B3=G1.hasStandardBrowserEnv?function(){const O=/(msie|trident)/i.test(navigator.userAgent),D=document.createElement("a");let q;function X(J){let n1=J;return O&&(D.setAttribute("href",n1),n1=D.href),D.setAttribute("href",n1),{href:D.href,protocol:D.protocol?D.protocol.replace(/:$/,""):"",host:D.host,search:D.search?D.search.replace(/^\?/,""):"",hash:D.hash?D.hash.replace(/^#/,""):"",hostname:D.hostname,port:D.port,pathname:D.pathname.charAt(0)==="/"?D.pathname:"/"+D.pathname}}return q=X(window.location.href),function(J){const n1=A.isString(J)?X(J):J;return n1.protocol===q.protocol&&n1.host===q.host}}():function(){return!0};function he(O,D){let q=0;const X=function(J,n1){J=J||10;const c1=new Array(J),z1=new Array(J);let w1,H1=0,x1=0;return n1=n1!==void 0?n1:1e3,function(O1){const P1=Date.now(),Z1=z1[x1];w1||(w1=P1),c1[H1]=O1,z1[H1]=P1;let I1=x1,J1=0;for(;I1!==H1;)J1+=c1[I1++],I1%=J;if(H1=(H1+1)%J,H1===x1&&(x1=(x1+1)%J),P1-w1<n1)return;const v2=Z1&&P1-Z1;return v2?Math.round(1e3*J1/v2):void 0}}(50,250);return J=>{const n1=J.loaded,c1=J.lengthComputable?J.total:void 0,z1=n1-q,w1=X(z1);q=n1;const H1={loaded:n1,total:c1,progress:c1?n1/c1:void 0,bytes:z1,rate:w1||void 0,estimated:w1&&c1&&n1<=c1?(c1-n1)/w1:void 0,event:J};H1[D?"download":"upload"]=!0,O(H1)}}const s2={http:null,xhr:typeof XMLHttpRequest<"u"&&function(O){return new Promise(function(D,q){let X=O.data;const J=o1.from(O.headers).normalize();let n1,c1,{responseType:z1,withXSRFToken:w1}=O;function H1(){O.cancelToken&&O.cancelToken.unsubscribe(n1),O.signal&&O.signal.removeEventListener("abort",n1)}if(A.isFormData(X)){if(G1.hasStandardBrowserEnv||G1.hasStandardBrowserWebWorkerEnv)J.setContentType(!1);else if((c1=J.getContentType())!==!1){const[I1,...J1]=c1?c1.split(";").map(v2=>v2.trim()).filter(Boolean):[];J.setContentType([I1||"multipart/form-data",...J1].join("; "))}}let x1=new XMLHttpRequest;if(O.auth){const I1=O.auth.username||"",J1=O.auth.password?unescape(encodeURIComponent(O.auth.password)):"";J.set("Authorization","Basic "+btoa(I1+":"+J1))}const O1=S2(O.baseURL,O.url);function P1(){if(!x1)return;const I1=o1.from("getAllResponseHeaders"in x1&&x1.getAllResponseHeaders());(function(J1,v2,X2){const Is=X2.config.validateStatus;X2.status&&Is&&!Is(X2.status)?v2(new B("Request failed with status code "+X2.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(X2.status/100)-4],X2.config,X2.request,X2)):J1(X2)})(function(J1){D(J1),H1()},function(J1){q(J1),H1()},{data:z1&&z1!=="text"&&z1!=="json"?x1.response:x1.responseText,status:x1.status,statusText:x1.statusText,headers:I1,config:O,request:x1}),x1=null}if(x1.open(O.method.toUpperCase(),p1(O1,O.params,O.paramsSerializer),!0),x1.timeout=O.timeout,"onloadend"in x1?x1.onloadend=P1:x1.onreadystatechange=function(){x1&&x1.readyState===4&&(x1.status!==0||x1.responseURL&&x1.responseURL.indexOf("file:")===0)&&setTimeout(P1)},x1.onabort=function(){x1&&(q(new B("Request aborted",B.ECONNABORTED,O,x1)),x1=null)},x1.onerror=function(){q(new B("Network Error",B.ERR_NETWORK,O,x1)),x1=null},x1.ontimeout=function(){let I1=O.timeout?"timeout of "+O.timeout+"ms exceeded":"timeout exceeded";const J1=O.transitional||v1;O.timeoutErrorMessage&&(I1=O.timeoutErrorMessage),q(new B(I1,J1.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,O,x1)),x1=null},G1.hasStandardBrowserEnv&&(w1&&A.isFunction(w1)&&(w1=w1(O)),w1||w1!==!1&&B3(O1))){const I1=O.xsrfHeaderName&&O.xsrfCookieName&&g2.read(O.xsrfCookieName);I1&&J.set(O.xsrfHeaderName,I1)}X===void 0&&J.setContentType(null),"setRequestHeader"in x1&&A.forEach(J.toJSON(),function(I1,J1){x1.setRequestHeader(J1,I1)}),A.isUndefined(O.withCredentials)||(x1.withCredentials=!!O.withCredentials),z1&&z1!=="json"&&(x1.responseType=O.responseType),typeof O.onDownloadProgress=="function"&&x1.addEventListener("progress",he(O.onDownloadProgress,!0)),typeof O.onUploadProgress=="function"&&x1.upload&&x1.upload.addEventListener("progress",he(O.onUploadProgress)),(O.cancelToken||O.signal)&&(n1=I1=>{x1&&(q(!I1||I1.type?new W1(null,O,x1):I1),x1.abort(),x1=null)},O.cancelToken&&O.cancelToken.subscribe(n1),O.signal&&(O.signal.aborted?n1():O.signal.addEventListener("abort",n1)));const Z1=function(I1){const J1=/^([-+\w]{1,25})(:?\/\/|:)/.exec(I1);return J1&&J1[1]||""}(O1);Z1&&G1.protocols.indexOf(Z1)===-1?q(new B("Unsupported protocol "+Z1+":",B.ERR_BAD_REQUEST,O)):x1.send(X||null)})}};A.forEach(s2,(O,D)=>{if(O){try{Object.defineProperty(O,"name",{value:D})}catch{}Object.defineProperty(O,"adapterName",{value:D})}});const L2=O=>`- ${O}`,Qe=O=>A.isFunction(O)||O===null||O===!1;var Je=O=>{O=A.isArray(O)?O:[O];const{length:D}=O;let q,X;const J={};for(let n1=0;n1<D;n1++){let c1;if(q=O[n1],X=q,!Qe(q)&&(X=s2[(c1=String(q)).toLowerCase()],X===void 0))throw new B(`Unknown adapter '${c1}'`);if(X)break;J[c1||"#"+n1]=X}if(!X){const n1=Object.entries(J).map(([c1,z1])=>`adapter ${c1} `+(z1===!1?"is not supported by the environment":"is not available in the build"));throw new B("There is no suitable adapter to dispatch the request "+(D?n1.length>1?`since :
|
|
@@ -9522,7 +9522,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9522
9522
|
`),a=J2(t.replace(/<[^>]*>/g,""));return[a]}var ja1={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Pk1(e,t){var a=t||{},c=d11(e),n=[],r,i,o={name:""},l="",f=0,u,d,h={},p=[],v=a.dense?[]:{},m,y,g={value:""},M="",x=0,k=[],b=-1,_=-1,C={s:{r:1e6,c:1e7},e:{r:0,c:0}},H=0,V={},N=[],L={},w=0,P=0,j=[],E=1,F=1,R=[],K={Names:[]},Z={},U=["",""],I=[],T={},S="",W=0,Y=!1,A=!1,B=0;for(wf.lastIndex=0,c=c.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");m=wf.exec(c);)switch(m[3]=m[3].replace(/_.*$/,"")){case"table":case"工作表":m[1]==="/"?(C.e.c>=C.s.c&&C.e.r>=C.s.r?v["!ref"]=Y2(C):v["!ref"]="A1:A1",a.sheetRows>0&&a.sheetRows<=C.e.r&&(v["!fullref"]=v["!ref"],C.e.r=a.sheetRows-1,v["!ref"]=Y2(C)),N.length&&(v["!merges"]=N),j.length&&(v["!rows"]=j),u.name=u.名称||u.name,typeof JSON<"u"&&JSON.stringify(u),p.push(u.name),h[u.name]=v,A=!1):m[0].charAt(m[0].length-2)!=="/"&&(u=m2(m[0],!1),b=_=-1,C.s.r=C.s.c=1e7,C.e.r=C.e.c=0,v=a.dense?[]:{},N=[],j=[],A=!0);break;case"table-row-group":m[1]==="/"?--H:++H;break;case"table-row":case"行":if(m[1]==="/"){b+=E,E=1;break}if(d=m2(m[0],!1),d.行号?b=d.行号-1:b==-1&&(b=0),E=+d["number-rows-repeated"]||1,E<10)for(B=0;B<E;++B)H>0&&(j[b+B]={level:H});_=-1;break;case"covered-table-cell":m[1]!=="/"&&++_,a.sheetStubs&&(a.dense?(v[b]||(v[b]=[]),v[b][_]={t:"z"}):v[M2({r:b,c:_})]={t:"z"}),M="",k=[];break;case"table-cell":case"数据":if(m[0].charAt(m[0].length-2)==="/")++_,g=m2(m[0],!1),F=parseInt(g["number-columns-repeated"]||"1",10),y={t:"z",v:null},g.formula&&a.cellFormula!=!1&&(y.f=Ia1(J2(g.formula))),(g.数据类型||g["value-type"])=="string"&&(y.t="s",y.v=J2(g["string-value"]||""),a.dense?(v[b]||(v[b]=[]),v[b][_]=y):v[M2({r:b,c:_})]=y),_+=F-1;else if(m[1]!=="/"){++_,M="",x=0,k=[],F=1;var Q=E?b+E-1:b;if(_>C.e.c&&(C.e.c=_),_<C.s.c&&(C.s.c=_),b<C.s.r&&(C.s.r=b),Q>C.e.r&&(C.e.r=Q),g=m2(m[0],!1),I=[],T={},y={t:g.数据类型||g["value-type"],v:null},a.cellFormula)if(g.formula&&(g.formula=J2(g.formula)),g["number-matrix-columns-spanned"]&&g["number-matrix-rows-spanned"]&&(w=parseInt(g["number-matrix-rows-spanned"],10)||0,P=parseInt(g["number-matrix-columns-spanned"],10)||0,L={s:{r:b,c:_},e:{r:b+w-1,c:_+P-1}},y.F=Y2(L),R.push([L,y.F])),g.formula)y.f=Ia1(g.formula);else for(B=0;B<R.length;++B)b>=R[B][0].s.r&&b<=R[B][0].e.r&&_>=R[B][0].s.c&&_<=R[B][0].e.c&&(y.F=R[B][1]);switch((g["number-columns-spanned"]||g["number-rows-spanned"])&&(w=parseInt(g["number-rows-spanned"],10)||0,P=parseInt(g["number-columns-spanned"],10)||0,L={s:{r:b,c:_},e:{r:b+w-1,c:_+P-1}},N.push(L)),g["number-columns-repeated"]&&(F=parseInt(g["number-columns-repeated"],10)),y.t){case"boolean":y.t="b",y.v=$3(g["boolean-value"]);break;case"float":y.t="n",y.v=parseFloat(g.value);break;case"percentage":y.t="n",y.v=parseFloat(g.value);break;case"currency":y.t="n",y.v=parseFloat(g.value);break;case"date":y.t="d",y.v=Ke(g["date-value"]),a.cellDates||(y.t="n",y.v=P4(y.v)),y.z="m/d/yy";break;case"time":y.t="n",y.v=qC3(g["time-value"])/86400,a.cellDates&&(y.t="d",y.v=_j(y.v)),y.z="HH:MM:SS";break;case"number":y.t="n",y.v=parseFloat(g.数据数值);break;default:if(y.t==="string"||y.t==="text"||!y.t)y.t="s",g["string-value"]!=null&&(M=J2(g["string-value"]),k=[]);else throw new Error("Unsupported value type "+y.t)}}else{if(Y=!1,y.t==="s"&&(y.v=M||"",k.length&&(y.R=k),Y=x==0),Z.Target&&(y.l=Z),I.length>0&&(y.c=I,I=[]),M&&a.cellText!==!1&&(y.w=M),Y&&(y.t="z",delete y.v),(!Y||a.sheetStubs)&&!(a.sheetRows&&a.sheetRows<=b))for(var a1=0;a1<E;++a1){if(F=parseInt(g["number-columns-repeated"]||"1",10),a.dense)for(v[b+a1]||(v[b+a1]=[]),v[b+a1][_]=a1==0?y:n4(y);--F>0;)v[b+a1][_+F]=n4(y);else for(v[M2({r:b+a1,c:_})]=y;--F>0;)v[M2({r:b+a1,c:_+F})]=n4(y);C.e.c<=_&&(C.e.c=_)}F=parseInt(g["number-columns-repeated"]||"1",10),_+=F-1,F=0,y={},M="",k=[]}Z={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(m[1]==="/"){if((r=n.pop())[0]!==m[3])throw"Bad state: "+r}else m[0].charAt(m[0].length-2)!=="/"&&n.push([m[3],!0]);break;case"annotation":if(m[1]==="/"){if((r=n.pop())[0]!==m[3])throw"Bad state: "+r;T.t=M,k.length&&(T.R=k),T.a=S,I.push(T)}else m[0].charAt(m[0].length-2)!=="/"&&n.push([m[3],!1]);S="",W=0,M="",x=0,k=[];break;case"creator":m[1]==="/"?S=c.slice(W,m.index):W=m.index+m[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(m[1]==="/"){if((r=n.pop())[0]!==m[3])throw"Bad state: "+r}else m[0].charAt(m[0].length-2)!=="/"&&n.push([m[3],!1]);M="",x=0,k=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(m[1]==="/"){if(V[o.name]=l,(r=n.pop())[0]!==m[3])throw"Bad state: "+r}else m[0].charAt(m[0].length-2)!=="/"&&(l="",o=m2(m[0],!1),n.push([m[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(n[n.length-1][0]){case"time-style":case"date-style":i=m2(m[0],!1),l+=ja1[m[3]][i.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(n[n.length-1][0]){case"time-style":case"date-style":i=m2(m[0],!1),l+=ja1[m[3]][i.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(m[0].slice(-2)==="/>")break;if(m[1]==="/")switch(n[n.length-1][0]){case"number-style":case"date-style":case"time-style":l+=c.slice(f,m.index);break}else f=m.index+m[0].length;break;case"named-range":i=m2(m[0],!1),U=nY(i["cell-range-address"]);var e1={Name:i.name,Ref:U[0]+"!"+U[1]};A&&(e1.Sheet=p.length),K.Names.push(e1);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(n[n.length-1][0])>-1)break;if(m[1]==="/"&&(!g||!g["string-value"])){var s1=VA3(c.slice(x,m.index));M=(M.length>0?M+`
|
|
9523
9523
|
`:"")+s1[0]}else m2(m[0],!1),x=m.index+m[0].length;break;case"s":break;case"database-range":if(m[1]==="/")break;try{U=nY(m2(m[0])["target-range-address"]),h[U[0]]["!autofilter"]={ref:U[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(m[1]!=="/"){if(Z=m2(m[0],!1),!Z.href)break;Z.Target=J2(Z.href),delete Z.href,Z.Target.charAt(0)=="#"&&Z.Target.indexOf(".")>-1?(U=nY(Z.Target.slice(1)),Z.Target="#"+U[0]+"!"+U[1]):Z.Target.match(/^\.\.[\\\/]/)&&(Z.Target=Z.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(m[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(a.WTF)throw new Error(m)}}var G={Sheets:h,SheetNames:p,Workbook:K};return a.bookSheets&&delete G.Sheets,G}function Ua1(e,t){t=t||{},_0(e,"META-INF/manifest.xml")&&U_3(Se(e,"META-INF/manifest.xml"),t);var a=a0(e,"content.xml");if(!a)throw new Error("Missing content.xml in ODS / UOF file");var c=Pk1(b3(a),t);return _0(e,"meta.xml")&&(c.Props=ZM1(Se(e,"meta.xml"))),c}function Wa1(e,t){return Pk1(e,t)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function _11(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function zZ(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):b3(qi(e))}function CZ(e){var t=e.reduce(function(n,r){return n+r.length},0),a=new Uint8Array(t),c=0;return e.forEach(function(n){a.set(n,c),c+=n.length}),a}function Ya1(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function SA3(e,t){for(var a=(e[t+15]&127)<<7|e[t+14]>>1,c=e[t+14]&1,n=t+13;n>=t;--n)c=c*256+e[n];return(e[t+15]&128?-c:c)*Math.pow(10,a-6176)}function Sf(e,t){var a=t?t[0]:0,c=e[a]&127;e:if(e[a++]>=128&&(c|=(e[a]&127)<<7,e[a++]<128||(c|=(e[a]&127)<<14,e[a++]<128)||(c|=(e[a]&127)<<21,e[a++]<128)||(c+=(e[a]&127)*Math.pow(2,28),++a,e[a++]<128)||(c+=(e[a]&127)*Math.pow(2,35),++a,e[a++]<128)||(c+=(e[a]&127)*Math.pow(2,42),++a,e[a++]<128)))break e;return t&&(t[0]=a),c}function Fe(e){var t=0,a=e[t]&127;e:if(e[t++]>=128){if(a|=(e[t]&127)<<7,e[t++]<128||(a|=(e[t]&127)<<14,e[t++]<128)||(a|=(e[t]&127)<<21,e[t++]<128))break e;a|=(e[t]&127)<<28}return a}function g4(e){for(var t=[],a=[0];a[0]<e.length;){var c=a[0],n=Sf(e,a),r=n&7;n=Math.floor(n/8);var i=0,o;if(n==0)break;switch(r){case 0:{for(var l=a[0];e[a[0]++]>=128;);o=e.slice(l,a[0])}break;case 5:i=4,o=e.slice(a[0],a[0]+i),a[0]+=i;break;case 1:i=8,o=e.slice(a[0],a[0]+i),a[0]+=i;break;case 2:i=Sf(e,a),o=e.slice(a[0],a[0]+i),a[0]+=i;break;case 3:case 4:default:throw new Error("PB Type ".concat(r," for Field ").concat(n," at offset ").concat(c))}var f={data:o,type:r};t[n]==null?t[n]=[f]:t[n].push(f)}return t}function w11(e,t){return(e==null?void 0:e.map(function(a){return t(a.data)}))||[]}function NA3(e){for(var t,a=[],c=[0];c[0]<e.length;){var n=Sf(e,c),r=g4(e.slice(c[0],c[0]+n));c[0]+=n;var i={id:Fe(r[1][0].data),messages:[]};r[2].forEach(function(o){var l=g4(o.data),f=Fe(l[3][0].data);i.messages.push({meta:l,data:e.slice(c[0],c[0]+f)}),c[0]+=f}),(t=r[3])!=null&&t[0]&&(i.merge=Fe(r[3][0].data)>>>0>0),a.push(i)}return a}function AA3(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var a=[0],c=Sf(t,a),n=[];a[0]<t.length;){var r=t[a[0]]&3;if(r==0){var i=t[a[0]++]>>2;if(i<60)++i;else{var o=i-59;i=t[a[0]],o>1&&(i|=t[a[0]+1]<<8),o>2&&(i|=t[a[0]+2]<<16),o>3&&(i|=t[a[0]+3]<<24),i>>>=0,i++,a[0]+=o}n.push(t.slice(a[0],a[0]+i)),a[0]+=i;continue}else{var l=0,f=0;if(r==1?(f=(t[a[0]]>>2&7)+4,l=(t[a[0]++]&224)<<3,l|=t[a[0]++]):(f=(t[a[0]++]>>2)+1,r==2?(l=t[a[0]]|t[a[0]+1]<<8,a[0]+=2):(l=(t[a[0]]|t[a[0]+1]<<8|t[a[0]+2]<<16|t[a[0]+3]<<24)>>>0,a[0]+=4)),n=[CZ(n)],l==0)throw new Error("Invalid offset 0");if(l>n[0].length)throw new Error("Invalid offset beyond length");if(f>=l)for(n.push(n[0].slice(-l)),f-=l;f>=n[n.length-1].length;)n.push(n[n.length-1]),f-=n[n.length-1].length;n.push(n[0].slice(-l,-l+f))}}var u=CZ(n);if(u.length!=c)throw new Error("Unexpected length: ".concat(u.length," != ").concat(c));return u}function TA3(e){for(var t=[],a=0;a<e.length;){var c=e[a++],n=e[a]|e[a+1]<<8|e[a+2]<<16;a+=3,t.push(AA3(c,e.slice(a,a+n))),a+=n}if(a!==e.length)throw new Error("data is not a valid framed stream!");return CZ(t)}function EA3(e,t,a,c){var n=_11(e),r=n.getUint32(4,!0),i=(c>1?12:8)+Ya1(r&(c>1?3470:398))*4,o=-1,l=-1,f=NaN,u=new Date(2001,0,1);r&512&&(o=n.getUint32(i,!0),i+=4),i+=Ya1(r&(c>1?12288:4096))*4,r&16&&(l=n.getUint32(i,!0),i+=4),r&32&&(f=n.getFloat64(i,!0),i+=8),r&64&&(u.setTime(u.getTime()+n.getFloat64(i,!0)*1e3),i+=8);var d;switch(e[2]){case 0:break;case 2:d={t:"n",v:f};break;case 3:d={t:"s",v:t[l]};break;case 5:d={t:"d",v:u};break;case 6:d={t:"b",v:f>0};break;case 7:d={t:"n",v:f/86400};break;case 8:d={t:"e",v:0};break;case 9:if(o>-1)d={t:"s",v:a[o]};else if(l>-1)d={t:"s",v:t[l]};else if(!isNaN(f))d={t:"n",v:f};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return d}function DA3(e,t,a){var c=_11(e),n=c.getUint32(8,!0),r=12,i=-1,o=-1,l=NaN,f=NaN,u=new Date(2001,0,1);n&1&&(l=SA3(e,r),r+=16),n&2&&(f=c.getFloat64(r,!0),r+=8),n&4&&(u.setTime(u.getTime()+c.getFloat64(r,!0)*1e3),r+=8),n&8&&(o=c.getUint32(r,!0),r+=4),n&16&&(i=c.getUint32(r,!0),r+=4);var d;switch(e[1]){case 0:break;case 2:d={t:"n",v:l};break;case 3:d={t:"s",v:t[o]};break;case 5:d={t:"d",v:u};break;case 6:d={t:"b",v:f>0};break;case 7:d={t:"n",v:f/86400};break;case 8:d={t:"e",v:0};break;case 9:if(i>-1)d={t:"s",v:a[i]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(n&31," : ").concat(e.slice(0,4)));break;case 10:d={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(n&31," : ").concat(e.slice(0,4)))}return d}function PA3(e,t,a){switch(e[0]){case 0:case 1:case 2:case 3:return EA3(e,t,a,e[0]);case 5:return DA3(e,t,a);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Ca(e){var t=g4(e);return Sf(t[1][0].data)}function Ga1(e,t){var a=g4(t.data),c=Fe(a[1][0].data),n=a[3],r=[];return(n||[]).forEach(function(i){var o=g4(i.data),l=Fe(o[1][0].data)>>>0;switch(c){case 1:r[l]=zZ(o[3][0].data);break;case 8:{var f=e[Ca(o[9][0].data)][0],u=g4(f.data),d=e[Ca(u[1][0].data)][0],h=Fe(d.meta[1][0].data);if(h!=2001)throw new Error("2000 unexpected reference to ".concat(h));var p=g4(d.data);r[l]=p[3].map(function(v){return zZ(v.data)}).join("")}break}}),r}function OA3(e,t){var a,c,n,r,i,o,l,f,u,d,h,p,v,m,y=g4(e),g=Fe(y[1][0].data)>>>0,M=Fe(y[2][0].data)>>>0,x=((c=(a=y[8])==null?void 0:a[0])==null?void 0:c.data)&&Fe(y[8][0].data)>0||!1,k,b;if((r=(n=y[7])==null?void 0:n[0])!=null&&r.data&&t!=0)k=(o=(i=y[7])==null?void 0:i[0])==null?void 0:o.data,b=(f=(l=y[6])==null?void 0:l[0])==null?void 0:f.data;else if((d=(u=y[4])==null?void 0:u[0])!=null&&d.data&&t!=1)k=(p=(h=y[4])==null?void 0:h[0])==null?void 0:p.data,b=(m=(v=y[3])==null?void 0:v[0])==null?void 0:m.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var _=x?4:1,C=_11(k),H=[],V=0;V<k.length/2;++V){var N=C.getUint16(V*2,!0);N<65535&&H.push([V,N])}if(H.length!=M)throw"Expected ".concat(M," cells, found ").concat(H.length);var L=[];for(V=0;V<H.length-1;++V)L[H[V][0]]=b.subarray(H[V][1]*_,H[V+1][1]*_);return H.length>=1&&(L[H[H.length-1][0]]=b.subarray(H[H.length-1][1]*_)),{R:g,cells:L}}function IA3(e,t){var a,c=g4(t.data),n=(a=c==null?void 0:c[7])!=null&&a[0]?Fe(c[7][0].data)>>>0>0?1:0:-1,r=w11(c[5],function(i){return OA3(i,n)});return{nrows:Fe(c[4][0].data)>>>0,data:r.reduce(function(i,o){return i[o.R]||(i[o.R]=[]),o.cells.forEach(function(l,f){if(i[o.R][f])throw new Error("Duplicate cell r=".concat(o.R," c=").concat(f));i[o.R][f]=l}),i},[])}}function BA3(e,t,a){var c,n=g4(t.data),r={s:{r:0,c:0},e:{r:0,c:0}};if(r.e.r=(Fe(n[6][0].data)>>>0)-1,r.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(r.e.c=(Fe(n[7][0].data)>>>0)-1,r.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));a["!ref"]=Y2(r);var i=g4(n[4][0].data),o=Ga1(e,e[Ca(i[4][0].data)][0]),l=(c=i[17])!=null&&c[0]?Ga1(e,e[Ca(i[17][0].data)][0]):[],f=g4(i[3][0].data),u=0;f[1].forEach(function(d){var h=g4(d.data),p=e[Ca(h[2][0].data)][0],v=Fe(p.meta[1][0].data);if(v!=6002)throw new Error("6001 unexpected reference to ".concat(v));var m=IA3(e,p);m.data.forEach(function(y,g){y.forEach(function(M,x){var k=M2({r:u+g,c:x}),b=PA3(M,o,l);b&&(a[k]=b)})}),u+=m.nrows})}function RA3(e,t){var a=g4(t.data),c={"!ref":"A1"},n=e[Ca(a[2][0].data)],r=Fe(n[0].meta[1][0].data);if(r!=6001)throw new Error("6000 unexpected reference to ".concat(r));return BA3(e,n[0],c),c}function FA3(e,t){var a,c=g4(t.data),n={name:(a=c[1])!=null&&a[0]?zZ(c[1][0].data):"",sheets:[]},r=w11(c[2],Ca);return r.forEach(function(i){e[i].forEach(function(o){var l=Fe(o.meta[1][0].data);l==6e3&&n.sheets.push(RA3(e,o))})}),n}function $A3(e,t){var a=V11(),c=g4(t.data),n=w11(c[1],Ca);if(n.forEach(function(r){e[r].forEach(function(i){var o=Fe(i.meta[1][0].data);if(o==2){var l=FA3(e,i);l.sheets.forEach(function(f,u){S11(a,f,u==0?l.name:l.name+"_"+u,!0)})}})}),a.SheetNames.length==0)throw new Error("Empty NUMBERS file");return a}function iY(e){var t,a,c,n,r={},i=[];if(e.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var f;try{f=TA3(l.content)}catch(d){return console.log("?? "+l.content.length+" "+(d.message||d))}var u;try{u=NA3(f)}catch(d){return console.log("## "+(d.message||d))}u.forEach(function(d){r[d.id]=d.messages,i.push(d.id)})}}),!i.length)throw new Error("File has no messages");var o=((n=(c=(a=(t=r==null?void 0:r[1])==null?void 0:t[0])==null?void 0:a.meta)==null?void 0:c[1])==null?void 0:n[0].data)&&Fe(r[1][0].meta[1][0].data)==1&&r[1][0];if(o||i.forEach(function(l){r[l].forEach(function(f){var u=Fe(f.meta[1][0].data)>>>0;if(u==1)if(!o)o=f;else throw new Error("Document has multiple roots")})}),!o)throw new Error("Cannot find Document root");return $A3(r,o)}function qA3(e){return function(a){for(var c=0;c!=e.length;++c){var n=e[c];a[n[0]]===void 0&&(a[n[0]]=n[1]),n[2]==="n"&&(a[n[0]]=Number(a[n[0]]))}}}function H11(e){qA3([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function jA3(e){return zo.WS.indexOf(e)>-1?"sheet":e==zo.CS?"chart":e==zo.DS?"dialog":e==zo.MS?"macro":e&&e.length?e:"sheet"}function UA3(e,t){if(!e)return 0;try{e=t.map(function(c){return c.id||(c.id=c.strRelID),[c.name,e["!id"][c.id].Target,jA3(e["!id"][c.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function WA3(e,t,a,c,n,r,i,o,l,f,u,d){try{r[c]=kl(a0(e,a,!0),t);var h=Se(e,t),p;switch(o){case"sheet":p=QN3(h,t,n,l,r[c],f,u,d);break;case"chart":if(p=JN3(h,t,n,l,r[c],f,u,d),!p||!p["!drawel"])break;var v=B9(p["!drawel"].Target,t),m=gZ(v),y=KL3(a0(e,v,!0),kl(a0(e,m,!0),v)),g=B9(y,v),M=gZ(g);p=DN3(a0(e,g,!0),g,l,kl(a0(e,M,!0),g),f,p);break;case"macro":p=eA3(h,t,n,l,r[c],f,u,d);break;case"dialog":p=tA3(h,t,n,l,r[c],f,u,d);break;default:throw new Error("Unrecognized sheet type "+o)}i[c]=p;var x=[];r&&r[c]&&zt(r[c]).forEach(function(k){var b="";if(r[c][k].Type==zo.CMNT){b=B9(r[c][k].Target,t);var _=rA3(Se(e,b,!0),b,l);if(!_||!_.length)return;Ta1(p,_,!1)}r[c][k].Type==zo.TCMNT&&(b=B9(r[c][k].Target,t),x=x.concat(JL3(Se(e,b,!0),l)))}),x&&x.length&&Ta1(p,x,!0,l.people||[])}catch(k){if(l.WTF)throw k}}function z0(e){return e.charAt(0)=="/"?e.slice(1):e}function YA3(e,t){if(MM1(),t=t||{},H11(t),_0(e,"META-INF/manifest.xml")||_0(e,"objectdata.xml"))return Ua1(e,t);if(_0(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof iY<"u"){if(e.FileIndex)return iY(e);var a=U2.utils.cfb_new();return ia1(e).forEach(function(j){GC3(a,j,_M1(e,j))}),iY(a)}throw new Error("Unsupported NUMBERS file")}if(!_0(e,"[Content_Types].xml"))throw _0(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):_0(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var c=ia1(e),n=q_3(a0(e,"[Content_Types].xml")),r=!1,i,o;if(n.workbooks.length===0&&(o="xl/workbook.xml",Se(e,o,!0)&&n.workbooks.push(o)),n.workbooks.length===0){if(o="xl/workbook.bin",!Se(e,o,!0))throw new Error("Could not find workbook");n.workbooks.push(o),r=!0}n.workbooks[0].slice(-3)=="bin"&&(r=!0);var l={},f={};if(!t.bookSheets&&!t.bookProps){if(zl=[],n.sst)try{zl=nA3(Se(e,z0(n.sst)),n.sst,t)}catch(j){if(t.WTF)throw j}t.cellStyles&&n.themes.length&&(l=cA3(a0(e,n.themes[0].replace(/^\//,""),!0)||"",n.themes[0],t)),n.style&&(f=aA3(Se(e,z0(n.style)),n.style,l,t))}n.links.map(function(j){try{var E=kl(a0(e,gZ(z0(j))),j);return oA3(Se(e,z0(j)),E,j,t)}catch{}});var u=KN3(Se(e,z0(n.workbooks[0])),n.workbooks[0],t),d={},h="";n.coreprops.length&&(h=Se(e,z0(n.coreprops[0]),!0),h&&(d=ZM1(h)),n.extprops.length!==0&&(h=Se(e,z0(n.extprops[0]),!0),h&&G_3(h,d,t)));var p={};(!t.bookSheets||t.bookProps)&&n.custprops.length!==0&&(h=a0(e,z0(n.custprops[0]),!0),h&&(p=X_3(h,t)));var v={};if((t.bookSheets||t.bookProps)&&(u.Sheets?i=u.Sheets.map(function(E){return E.name}):d.Worksheets&&d.SheetNames.length>0&&(i=d.SheetNames),t.bookProps&&(v.Props=d,v.Custprops=p),t.bookSheets&&typeof i<"u"&&(v.SheetNames=i),t.bookSheets?v.SheetNames:t.bookProps))return v;i={};var m={};t.bookDeps&&n.calcchain&&(m=iA3(Se(e,z0(n.calcchain)),n.calcchain));var y=0,g={},M,x;{var k=u.Sheets;d.Worksheets=k.length,d.SheetNames=[];for(var b=0;b!=k.length;++b)d.SheetNames[b]=k[b].name}var _=r?"bin":"xml",C=n.workbooks[0].lastIndexOf("/"),H=(n.workbooks[0].slice(0,C+1)+"_rels/"+n.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");_0(e,H)||(H="xl/_rels/workbook."+_+".rels");var V=kl(a0(e,H,!0),H.replace(/_rels.*/,"s5s"));(n.metadata||[]).length>=1&&(t.xlmeta=sA3(Se(e,z0(n.metadata[0])),n.metadata[0],t)),(n.people||[]).length>=1&&(t.people=eV3(Se(e,z0(n.people[0])),t)),V&&(V=UA3(V,u.Sheets));var N=Se(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(y=0;y!=d.Worksheets;++y){var L="sheet";if(V&&V[y]?(M="xl/"+V[y][1].replace(/[\/]?xl\//,""),_0(e,M)||(M=V[y][1]),_0(e,M)||(M=H.replace(/_rels\/.*$/,"")+V[y][1]),L=V[y][2]):(M="xl/worksheets/sheet"+(y+1-N)+"."+_,M=M.replace(/sheet0\./,"sheet.")),x=M.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(y!=t.sheets)continue e;break;case"string":if(d.SheetNames[y].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var w=!1,P=0;P!=t.sheets.length;++P)typeof t.sheets[P]=="number"&&t.sheets[P]==y&&(w=1),typeof t.sheets[P]=="string"&&t.sheets[P].toLowerCase()==d.SheetNames[y].toLowerCase()&&(w=1);if(!w)continue e}}WA3(e,M,x,d.SheetNames[y],y,g,i,L,t,u,l,f)}return v={Directory:n,Workbook:u,Props:d,Custprops:p,Deps:m,Sheets:i,SheetNames:d.SheetNames,Strings:zl,Styles:f,Themes:l,SSF:n4(k2)},t&&t.bookFiles&&(e.files?(v.keys=c,v.files=e.files):(v.keys=[],v.files={},e.FullPaths.forEach(function(j,E){j=j.replace(/^Root Entry[\/]/,""),v.keys.push(j),v.files[j]=e.FileIndex[E]}))),t&&t.bookVBA&&(n.vba.length>0?v.vbaraw=Se(e,z0(n.vba[0]),!0):n.defaults&&n.defaults.bin===nV3&&(v.vbaraw=Se(e,"xl/vbaProject.bin",!0))),v}function GA3(e,t){var a=t||{},c="Workbook",n=U2.find(e,c);try{if(c="/!DataSpaces/Version",n=U2.find(e,c),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(RH3(n.content),c="/!DataSpaces/DataSpaceMap",n=U2.find(e,c),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+c);var r=$H3(n.content);if(r.length!==1||r[0].comps.length!==1||r[0].comps[0].t!==0||r[0].name!=="StrongEncryptionDataSpace"||r[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",n=U2.find(e,c),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+c);var i=qH3(n.content);if(i.length!=1||i[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",n=U2.find(e,c),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+c);UH3(n.content)}catch{}if(c="/EncryptionInfo",n=U2.find(e,c),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+c);var o=WH3(n.content);if(c="/EncryptedPackage",n=U2.find(e,c),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],n.content,a.password||"",a);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],n.content,a.password||"",a);throw new Error("File is password-protected")}function L11(e,t){var a="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":a=h0(e.slice(0,12));break;case"binary":a=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3),a.charCodeAt(4),a.charCodeAt(5),a.charCodeAt(6),a.charCodeAt(7)]}function ZA3(e,t){return U2.find(e,"EncryptedPackage")?GA3(e,t):Tk1(e,t)}function XA3(e,t){var a,c=e,n=t||{};return n.type||(n.type=F2&&Buffer.isBuffer(e)?"buffer":"base64"),a=wM1(c,n),YA3(a,n)}function Ok1(e,t){var a=0;e:for(;a<e.length;)switch(e.charCodeAt(a)){case 10:case 13:case 32:++a;break;case 60:return xZ(e.slice(a),t);default:break e}return Hf.to_workbook(e,t)}function KA3(e,t){var a="",c=L11(e,t);switch(t.type){case"base64":a=h0(e);break;case"binary":a=e;break;case"buffer":a=e.toString("binary");break;case"array":a=zi(e);break;default:throw new Error("Unrecognized type "+t.type)}return c[0]==239&&c[1]==187&&c[2]==191&&(a=b3(a)),t.type="binary",Ok1(a,t)}function QA3(e,t){var a=e;return t.type=="base64"&&(a=h0(a)),a=Z8.utils.decode(1200,a.slice(2),"str"),t.type="binary",Ok1(a,t)}function JA3(e){return e.match(/[^\x00-\x7F]/)?R9(e):e}function oY(e,t,a,c){return c?(a.type="string",Hf.to_workbook(e,a)):Hf.to_workbook(t,a)}function _Z(e,t){oM1();var a=t||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return _Z(new Uint8Array(e),(a=n4(a),a.type="array",a));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!a.type&&(a.type=typeof Deno<"u"?"buffer":"array");var c=e,n=[0,0,0,0],r=!1;if(a.cellStyles&&(a.cellNF=!0,a.sheetStubs=!0),Fo={},a.dateNF&&(Fo.dateNF=a.dateNF),a.type||(a.type=F2&&Buffer.isBuffer(e)?"buffer":"base64"),a.type=="file"&&(a.type=F2?"buffer":"binary",c=FC3(e),typeof Uint8Array<"u"&&!F2&&(a.type="array")),a.type=="string"&&(r=!0,a.type="binary",a.codepage=65001,c=JA3(e)),a.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var i=new ArrayBuffer(3),o=new Uint8Array(i);if(o.foo="bar",!o.foo)return a=n4(a),a.type="array",_Z(i11(c),a)}switch((n=L11(c,a))[0]){case 208:if(n[1]===207&&n[2]===17&&n[3]===224&&n[4]===161&&n[5]===177&&n[6]===26&&n[7]===225)return ZA3(U2.read(c,a),a);break;case 9:if(n[1]<=8)return Tk1(c,a);break;case 60:return xZ(c,a);case 73:if(n[1]===73&&n[2]===42&&n[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(n[1]===68)return HH3(c,a);break;case 84:if(n[1]===65&&n[2]===66&&n[3]===76)return _H3.to_workbook(c,a);break;case 80:return n[1]===75&&n[2]<9&&n[3]<9?XA3(c,a):oY(e,c,a,r);case 239:return n[3]===60?xZ(c,a):oY(e,c,a,r);case 255:if(n[1]===254)return QA3(c,a);if(n[1]===0&&n[2]===2&&n[3]===0)return bl.to_workbook(c,a);break;case 0:if(n[1]===0&&(n[2]>=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return bl.to_workbook(c,a);break;case 3:case 131:case 139:case 140:return Aa1.to_workbook(c,a);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return nL3.to_workbook(c,a);break;case 10:case 13:case 32:return KA3(c,a);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return zH3.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?Aa1.to_workbook(c,a):oY(e,c,a,r)}function eT3(e,t,a,c,n,r,i,o){var l=r4(a),f=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),d=!0,h=n===1?[]:{};if(n!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:a,enumerable:!1})}catch{h.__rowNum__=a}else h.__rowNum__=a;if(!i||e[a])for(var p=t.s.c;p<=t.e.c;++p){var v=i?e[a][p]:e[c[p]+l];if(v===void 0||v.t===void 0){if(f===void 0)continue;r[p]!=null&&(h[r[p]]=f);continue}var m=v.v;switch(v.t){case"z":if(m==null)break;continue;case"e":m=m==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(r[p]!=null){if(m==null)if(v.t=="e"&&m===null)h[r[p]]=null;else if(f!==void 0)h[r[p]]=f;else if(u&&m===null)h[r[p]]=null;else continue;else h[r[p]]=u&&(v.t!=="n"||v.t==="n"&&o.rawNumbers!==!1)?m:k8(v,m,o);m!=null&&(d=!1)}}return{row:h,isempty:d}}function wZ(e,t){if(e==null||e["!ref"]==null)return[];var a={t:"n",v:0},c=0,n=1,r=[],i=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},u=f.range!=null?f.range:e["!ref"];switch(f.header===1?c=1:f.header==="A"?c=2:Array.isArray(f.header)?c=3:f.header==null&&(c=0),typeof u){case"string":l=de(u);break;case"number":l=de(e["!ref"]),l.s.r=u;break;default:l=u}c>0&&(n=0);var d=r4(l.s.r),h=[],p=[],v=0,m=0,y=Array.isArray(e),g=l.s.r,M=0,x={};y&&!e[g]&&(e[g]=[]);var k=f.skipHidden&&e["!cols"]||[],b=f.skipHidden&&e["!rows"]||[];for(M=l.s.c;M<=l.e.c;++M)if(!(k[M]||{}).hidden)switch(h[M]=Re(M),a=y?e[g][M]:e[h[M]+d],c){case 1:r[M]=M-l.s.c;break;case 2:r[M]=h[M];break;case 3:r[M]=f.header[M-l.s.c];break;default:if(a==null&&(a={w:"__EMPTY",t:"s"}),o=i=k8(a,null,f),m=x[i]||0,!m)x[i]=1;else{do o=i+"_"+m++;while(x[o]);x[i]=m,x[o]=1}r[M]=o}for(g=l.s.r+n;g<=l.e.r;++g)if(!(b[g]||{}).hidden){var _=eT3(e,l,g,h,c,r,y,f);(_.isempty===!1||(c===1?f.blankrows!==!1:f.blankrows))&&(p[v++]=_.row)}return p.length=v,p}var Za1=/"/g;function tT3(e,t,a,c,n,r,i,o){for(var l=!0,f=[],u="",d=r4(a),h=t.s.c;h<=t.e.c;++h)if(c[h]){var p=o.dense?(e[a]||[])[h]:e[c[h]+d];if(p==null)u="";else if(p.v!=null){l=!1,u=""+(o.rawNumbers&&p.t=="n"?p.v:k8(p,null,o));for(var v=0,m=0;v!==u.length;++v)if((m=u.charCodeAt(v))===n||m===r||m===34||o.forceQuotes){u='"'+u.replace(Za1,'""')+'"';break}u=="ID"&&(u='"ID"')}else p.f!=null&&!p.F?(l=!1,u="="+p.f,u.indexOf(",")>=0&&(u='"'+u.replace(Za1,'""')+'"')):u="";f.push(u)}return o.blankrows===!1&&l?null:f.join(i)}function Ik1(e,t){var a=[],c=t??{};if(e==null||e["!ref"]==null)return"";var n=de(e["!ref"]),r=c.FS!==void 0?c.FS:",",i=r.charCodeAt(0),o=c.RS!==void 0?c.RS:`
|
|
9524
9524
|
`,l=o.charCodeAt(0),f=new RegExp((r=="|"?"\\|":r)+"+$"),u="",d=[];c.dense=Array.isArray(e);for(var h=c.skipHidden&&e["!cols"]||[],p=c.skipHidden&&e["!rows"]||[],v=n.s.c;v<=n.e.c;++v)(h[v]||{}).hidden||(d[v]=Re(v));for(var m=0,y=n.s.r;y<=n.e.r;++y)(p[y]||{}).hidden||(u=tT3(e,n,y,d,i,l,r,c),u!=null&&(c.strip&&(u=u.replace(f,"")),(u||c.blankrows!==!1)&&a.push((m++?o:"")+u)));return delete c.dense,a.join("")}function aT3(e,t){t||(t={}),t.FS=" ",t.RS=`
|
|
9525
|
-
`;var a=Ik1(e,t);return a}function cT3(e){var t="",a,c="";if(e==null||e["!ref"]==null)return[];var n=de(e["!ref"]),r="",i=[],o,l=[],f=Array.isArray(e);for(o=n.s.c;o<=n.e.c;++o)i[o]=Re(o);for(var u=n.s.r;u<=n.e.r;++u)for(r=r4(u),o=n.s.c;o<=n.e.c;++o)if(t=i[o]+r,a=f?(e[u]||[])[o]:e[t],c="",a!==void 0){if(a.F!=null){if(t=a.F,!a.f)continue;c=a.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(a.f!=null)c=a.f;else{if(a.t=="z")continue;if(a.t=="n"&&a.v!=null)c=""+a.v;else if(a.t=="b")c=a.v?"TRUE":"FALSE";else if(a.w!==void 0)c="'"+a.w;else{if(a.v===void 0)continue;a.t=="s"?c="'"+a.v:c=""+a.v}}l[l.length]=t+"="+c}return l}function Bk1(e,t,a){var c=a||{},n=+!c.skipHeader,r=e||{},i=0,o=0;if(r&&c.origin!=null)if(typeof c.origin=="number")i=c.origin;else{var l=typeof c.origin=="string"?A4(c.origin):c.origin;i=l.r,o=l.c}var f,u={s:{c:0,r:0},e:{c:o,r:i+t.length-1+n}};if(r["!ref"]){var d=de(r["!ref"]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),i==-1&&(i=d.e.r+1,u.e.r=i+t.length-1+n)}else i==-1&&(i=0,u.e.r=t.length-1+n);var h=c.header||[],p=0;t.forEach(function(m,y){zt(m).forEach(function(g){(p=h.indexOf(g))==-1&&(h[p=h.length]=g);var M=m[g],x="z",k="",b=M2({c:o+p,r:i+y+n});f=Nf(r,b),M&&typeof M=="object"&&!(M instanceof Date)?r[b]=M:(typeof M=="number"?x="n":typeof M=="boolean"?x="b":typeof M=="string"?x="s":M instanceof Date?(x="d",c.cellDates||(x="n",M=P4(M)),k=c.dateNF||k2[14]):M===null&&c.nullError&&(x="e",M=0),f?(f.t=x,f.v=M,delete f.w,delete f.R,k&&(f.z=k)):r[b]=f={t:x,v:M},k&&(f.z=k))})}),u.e.c=Math.max(u.e.c,o+h.length-1);var v=r4(i);if(n)for(p=0;p<h.length;++p)r[Re(p+o)+v]={t:"s",v:h[p]};return r["!ref"]=Y2(u),r}function nT3(e,t){return Bk1(null,e,t)}function Nf(e,t,a){if(typeof t=="string"){if(Array.isArray(e)){var c=A4(t);return e[c.r]||(e[c.r]=[]),e[c.r][c.c]||(e[c.r][c.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Nf(e,M2(t)):Nf(e,M2({r:t,c:a||0}))}function rT3(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var a=e.SheetNames.indexOf(t);if(a>-1)return a;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function V11(){return{SheetNames:[],Sheets:{}}}function S11(e,t,a,c){var n=1;if(!a)for(;n<=65535&&e.SheetNames.indexOf(a="Sheet"+n)!=-1;++n,a=void 0);if(!a||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(c&&e.SheetNames.indexOf(a)>=0){var r=a.match(/(^.*?)(\d+)$/);n=r&&+r[2]||0;var i=r&&r[1]||a;for(++n;n<=65535&&e.SheetNames.indexOf(a=i+n)!=-1;++n);}if(qN3(a),e.SheetNames.indexOf(a)>=0)throw new Error("Worksheet with name |"+a+"| already exists!");return e.SheetNames.push(a),e.Sheets[a]=t,a}function iT3(e,t,a){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var c=rT3(e,t);switch(e.Workbook.Sheets[c]||(e.Workbook.Sheets[c]={}),a){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+a)}e.Workbook.Sheets[c].Hidden=a}function oT3(e,t){return e.z=t,e}function Rk1(e,t,a){return t?(e.l={Target:t},a&&(e.l.Tooltip=a)):delete e.l,e}function sT3(e,t,a){return Rk1(e,"#"+t,a)}function lT3(e,t,a){e.c||(e.c=[]),e.c.push({t,a:a||"SheetJS"})}function fT3(e,t,a,c){for(var n=typeof t!="string"?t:de(t),r=typeof t=="string"?t:Y2(t),i=n.s.r;i<=n.e.r;++i)for(var o=n.s.c;o<=n.e.c;++o){var l=Nf(e,i,o);l.t="n",l.F=r,delete l.v,i==n.s.r&&o==n.s.c&&(l.f=a,c&&(l.D=!0))}return e}var uT3={encode_col:Re,encode_row:r4,encode_cell:M2,encode_range:Y2,decode_col:m11,decode_row:p11,split_cell:b_3,decode_cell:A4,decode_range:Ds,format_cell:k8,sheet_add_aoa:jM1,sheet_add_json:Bk1,sheet_add_dom:Ek1,aoa_to_sheet:Ps,json_to_sheet:nT3,table_to_sheet:Dk1,table_to_book:HA3,sheet_to_csv:Ik1,sheet_to_txt:aT3,sheet_to_json:wZ,sheet_to_html:wA3,sheet_to_formulae:cT3,sheet_to_row_object_array:wZ,sheet_get_cell:Nf,book_new:V11,book_append_sheet:S11,book_set_sheet_visibility:iT3,cell_set_number_format:oT3,cell_set_hyperlink:Rk1,cell_set_internal_link:sT3,cell_add_comment:lT3,sheet_set_array_formula:fT3,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const dT3=s.defineComponent({__name:"PgaInputFileExcel",props:s.mergeModels({excelConfig:{},disabled:{type:Boolean}},{isReadingFile:{type:Boolean,default:!1},isReadingFileModifiers:{}}),emits:s.mergeModels(["newFile","newFileRead"],["update:isReadingFile"]),setup(e,{expose:t,emit:a}){const c=s.useModel(e,"isReadingFile"),n=e,r=a;t({resetInput:o});const i=s.ref();function o(){var f;(f=i.value)==null||f.resetInput()}function l(f){if(r("newFile",f),!n.excelConfig)return;if(!f){r("newFileRead",[]);return}const u=new FileReader;u.onload=function(d){var h;try{c.value=!0;const p=new Uint8Array((h=d.target)==null?void 0:h.result),v=_Z(p,{type:"array"}),m=v.SheetNames[0],y=v.Sheets[m],g=n.excelConfig.columns,M=Math.max(...Object.values(g)),x=Array(M).map((b,_)=>`empty${_+1}`);Object.entries(g).forEach(([b,_])=>x[_-1]=b);const k=uT3.sheet_to_json(y,{header:x,range:n.excelConfig.firstRow-1});r("newFileRead",k)}finally{c.value=!1}},u.readAsArrayBuffer(f)}return(f,u)=>(s.openBlock(),s.createBlock(Wf,{ref_key:"inputFileRef",ref:i,type:"excel",disabled:f.disabled,onNewFile:u[0]||(u[0]=d=>l(d))},null,8,["disabled"]))}});function Fk1(e,t){const a=s.ref({top:0,bottom:0,left:0,right:0});HX(e,c);function c(){const n=e.value.getBoundingClientRect(),r={top:n.top,bottom:n.bottom,left:n.left,right:n.right};a.value=r,t&&t(r)}return s.onMounted(()=>{window.addEventListener("resize",c),c()}),s.onBeforeUnmount(()=>{window.removeEventListener("resize",c)}),a}const hT3=["aria-expanded","aria-activedescendant","placeholder","disabled"],pT3=["id","aria-selected","onMousedown","onMouseenter"],mT3={class:"option__text"},vT3={key:1,class:"dropdown__empty",role:"presentation"},yT3=s.defineComponent({__name:"PgaInputSelect",props:s.mergeModels({options:{},descriptionField:{default:"description"},emptyOptionsText:{},noResultsText:{},placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},notClearable:{type:Boolean},clearValue:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(Y=>({"6084fdcf":s.unref(r).input.height,50316469:s.unref(r).input.padding,"333c4430":s.unref(r).input.paddingWithIcon,"494a7a22":s.unref(r).input.borderColor,ae656af4:s.unref(r).input.borderRadius,b65171a6:s.unref(r).input.backgroundColor,"69f233dd":s.unref(r).input.colorFocus,"06af2e6e":s.unref(r).input.backgroundColorDisabled,"4dcee458":s.unref(r).input.placeholderColor}));const a=s.useModel(e,"modelValue"),c=e,n=t,{form:r}=O4(),i=$2("pgaForm"),o=`pga-input-select-${Math.random().toString(36).slice(2,11)}`,l=`${o}-input`,f=`${o}-listbox`,u=s.ref(),d=s.ref(),h=s.ref(),p=s.ref(""),v=s.ref(!1),m=s.ref(-1),y=c.clearValue!==void 0?c.clearValue:null;Fk1(u,W);const g=s.computed(()=>c.options.find(Y=>w(Y)===a.value)),M=s.computed(()=>!!c.options.length),x=s.computed(()=>{const Y=c4.normalizeText(p.value).split(" ");return c.options.filter(A=>{const B=c4.normalizeText(P(A));return Y.every(Q=>B.includes(Q))})}),k=s.computed(()=>x.value.length),b=s.computed(()=>M.value?g.value?P(g.value):c.placeholder?X3(c.placeholder):i("selectPlaceholder"):c.emptyOptionsText?X3(c.emptyOptionsText):i("emptyOptionsText")),_=s.computed(()=>c.noResultsText?X3(c.noResultsText):i("noResultsText")),C=s.computed(()=>c.disabled||!M.value),H=s.computed(()=>v.value&&M.value),V=s.computed(()=>c.notClearable||C.value||a.value===y?!1:!!(p.value||a.value)),N=s.computed(()=>!(C.value||V.value)),L=s.computed(()=>{if(H.value&&!(m.value<0))return`${f}-option-${m.value}`});s.watch(g,I),s.watch(k,Y=>{m.value!==-1&&(m.value+1<=Y||(m.value=Y-1))}),s.watch(d,W),s.watch(m,()=>s.nextTick(S));function w(Y){return typeof Y!="object"?Y:Y.id}function P(Y){return typeof Y!="object"?Y.toString():X3(Y[c.descriptionField])}function j(Y){return`${f}-option-${Y}`}function E(){p.value="",T(),v.value=!0}function F(){I(),v.value=!1}function R(Y){var Q,a1,e1,s1,G;const A=Y.key,B=k.value;if(A==="ArrowDown"){if(Y.preventDefault(),!H.value){(Q=u.value)==null||Q.focus();return}m.value=m.value+1>=B?0:m.value+1}else if(A==="ArrowUp"){if(Y.preventDefault(),!H.value){(a1=u.value)==null||a1.focus();return}m.value=m.value<=0?B-1:m.value-1}else if(A==="Home"&&H.value)Y.preventDefault(),m.value=0;else if(A==="End"&&H.value)Y.preventDefault(),m.value=B-1;else if(A==="Enter"){if(!H.value)return;Y.preventDefault();const f1=m.value>=0?m.value:0,k1=x.value[f1];k1&&U(w(k1)),(e1=u.value)==null||e1.blur()}else if(A==="Escape"){if(!H.value)return;Y.preventDefault(),(s1=u.value)==null||s1.blur()}else A==="Tab"&&((G=u.value)==null||G.blur())}function K(){p.value="",U(y)}function Z(){var Y;(Y=u.value)==null||Y.focus()}function U(Y){a.value=Y,n("change",Y)}function I(){const Y=g.value;p.value=Y?P(Y):""}function T(){if(g.value){const Y=x.value;m.value=Y.findIndex(A=>w(A)===w(g.value))}else m.value=-1}function S(){if(!d.value||m.value<0)return;const Y=d.value.querySelector(`#${CSS.escape(j(m.value))}`);Y&&Y.scrollIntoView({block:"nearest"})}function W(){if(!u.value)return;const Y=document.documentElement.clientHeight,A=document.documentElement.clientWidth,B=u.value.getBoundingClientRect(),Q={},a1=B.top<Y/2;a1?Q.top=`${B.bottom+4}px`:Q.bottom=`${Y-B.top+4}px`,Q.left=`${B.left}px`,Q.right=`${A-B.right}px`;const e1=100;Q["max-height"]=a1?`${Y-B.bottom-e1}px`:`${B.top-e1}px`,h.value=Q}return I(),(Y,A)=>(s.openBlock(),s.createBlock(y0,{label:Y.label,withRequiredLabel:Y.withRequiredLabel,withOptionalLabel:Y.withOptionalLabel,withLabelSpace:Y.withLabelSpace,info:Y.info,description:Y.description,errors:Y.errors,grow:Y.grow,inputId:l},{default:s.withCtx(()=>[s.createElementVNode("div",{class:s.normalizeClass(["input-select",{"input-select--open":H.value}])},[s.withDirectives(s.createElementVNode("input",{id:l,ref_key:"inputRef",ref:u,"onUpdate:modelValue":A[0]||(A[0]=B=>p.value=B),type:"text",role:"combobox",autocomplete:"off",autocapitalize:"off",spellcheck:"false","aria-expanded":H.value,"aria-controls":f,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":L.value,placeholder:b.value,disabled:C.value,onFocus:A[1]||(A[1]=B=>E()),onBlur:A[2]||(A[2]=B=>F()),onKeydown:A[3]||(A[3]=B=>R(B))},null,40,hT3),[[s.vModelText,p.value]]),V.value?(s.openBlock(),s.createBlock(m$,{key:0,icon:"x","aria-label":s.unref(i)("clearSelectionAriaLabel"),onMousedown:A[4]||(A[4]=s.withModifiers(B=>K(),["prevent"]))},null,8,["aria-label"])):N.value?(s.openBlock(),s.createBlock(m$,{key:1,class:s.normalizeClass(["input-select__chevron",{"input-select__chevron--open":H.value}]),icon:"chevron-down","aria-label":s.unref(i)("openOptionsAriaLabel"),onMousedown:A[5]||(A[5]=s.withModifiers(B=>Z(),["prevent"]))},null,8,["class","aria-label"])):s.createCommentVNode("",!0),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[H.value?(s.openBlock(),s.createElementBlock("ul",{key:0,id:f,ref_key:"dropdownRef",ref:d,class:"input-select-dropdown",role:"listbox",style:s.normalizeStyle(h.value)},[x.value.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(x.value,(B,Q)=>(s.openBlock(),s.createElementBlock("li",{id:j(Q),key:w(B),class:s.normalizeClass(["dropdown__option",{"dropdown__option--selected":w(B)===a.value,"dropdown__option--active":Q===m.value}]),role:"option","aria-selected":w(B)===a.value,onMousedown:a1=>U(w(B)),onMouseenter:a1=>m.value=Q},[s.createElementVNode("span",mT3,s.toDisplayString(P(B)),1),w(B)===a.value?(s.openBlock(),s.createBlock(U3,{key:0,class:"option__check",icon:"check"})):s.createCommentVNode("",!0)],42,pT3))),128)):(s.openBlock(),s.createElementBlock("li",vT3,s.toDisplayString(_.value),1))],4)):s.createCommentVNode("",!0)]))],2)]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const gT3=Q1(yT3,[["__scopeId","data-v-804c91e6"]]),MT3=s.defineComponent({__name:"PgaMonthPicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");return(a,c)=>(s.openBlock(),s.createBlock(y0,{label:a.label,withRequiredLabel:a.withRequiredLabel,withOptionalLabel:a.withOptionalLabel,withLabelSpace:a.withLabelSpace,info:a.info,description:a.description,errors:a.errors,grow:a.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=n=>t.value=n),monthPicker:"",disabled:a.disabled,notClearable:a.notClearable},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),kT3=s.defineComponent({__name:"PgaRangePicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");function a(c){return M6(c,{format:"short",withTime:!1})}return(c,n)=>(s.openBlock(),s.createBlock(y0,{label:c.label,withRequiredLabel:c.withRequiredLabel,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,info:c.info,description:c.description,errors:c.errors,grow:c.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=r=>t.value=r),range:"",disabled:c.disabled,notClearable:c.notClearable,format:a},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),xT3=["disabled"],bT3=["value"],zT3=s.defineComponent({__name:"PgaSelect",props:s.mergeModels({options:{},descriptionField:{},emptyOptionsText:{},placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(o=>({"66f373cd":s.unref(n).input.height,"1791ae2b":s.unref(n).input.padding,"021c5bb1":s.unref(n).input.borderColor,"5a3eca04":s.unref(n).input.borderRadius,"288aa222":s.unref(n).input.backgroundColor,"08197adb":s.unref(n).input.colorFocus,d5de22ea:s.unref(n).input.backgroundColorDisabled}));const a=s.useModel(e,"modelValue"),c=e,{form:n}=O4(),r=s.computed(()=>!!c.options.length),i=s.computed(()=>c.disabled||!r.value);return(o,l)=>(s.openBlock(),s.createBlock(y0,{label:o.label,withRequiredLabel:o.withRequiredLabel,withOptionalLabel:o.withOptionalLabel,withLabelSpace:o.withLabelSpace,info:o.info,description:o.description,errors:o.errors,grow:o.grow},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":l[0]||(l[0]=f=>a.value=f),disabled:i.value},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.options,f=>(s.openBlock(),s.createElementBlock("option",{key:f.id,value:f.id},s.toDisplayString(s.unref(X3)(f[o.descriptionField])),9,bT3))),128))],8,xT3),[[s.vModelSelect,a.value]])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const CT3=Q1(zT3,[["__scopeId","data-v-5a0752bd"]]),_T3={class:"pga-switch"},wT3={key:0,class:"switch__label"},HT3={class:"switch__slider-container"},LT3=["disabled"],VT3={class:"slider__thumb"},ST3=s.defineComponent({__name:"PgaSwitch",props:s.mergeModels({label:{},labelInLine:{type:Boolean},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},disabled:{type:Boolean},fitContent:{type:Boolean},grow:{},updateFn:{type:Function}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t;async function r(i){const o=i.target.checked;if(n("change",o),!!c.updateFn)try{await c.updateFn(),a.value=o}catch{a.value=!o}}return(i,o)=>(s.openBlock(),s.createBlock(y0,{label:i.labelInLine?"":i.label,withRequiredLabel:i.withRequiredLabel,withOptionalLabel:i.withOptionalLabel,withLabelSpace:i.withLabelSpace,info:i.info,description:i.description,fitContent:i.fitContent,grow:i.grow},{default:s.withCtx(()=>[s.createElementVNode("div",_T3,[i.labelInLine&&i.label?(s.openBlock(),s.createElementBlock("label",wT3,s.toDisplayString(i.label),1)):s.createCommentVNode("",!0),s.createElementVNode("label",HT3,[s.withDirectives(s.createElementVNode("input",{class:"switch__input","onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),type:"checkbox",role:"switch",disabled:i.disabled,onChange:o[1]||(o[1]=l=>r(l))},null,40,LT3),[[s.vModelCheckbox,a.value]]),s.createElementVNode("div",{class:s.normalizeClass(["switch__slider",{"switch__slider--checked":a.value,"switch__slider--disabled":i.disabled}])},[s.createElementVNode("div",VT3,[s.createVNode(U3,{class:"thumb__icon",icon:a.value?"check":"x"},null,8,["icon"])])],2)])])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","fitContent","grow"]))}});const NT3=Q1(ST3,[["__scopeId","data-v-320622fc"]]),AT3={class:"switch-options"},TT3=["onClick"],ET3=s.defineComponent({__name:"PgaSwitchOptions",props:s.mergeModels({items:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(c=>({"09ad1bfa":s.unref(a).input.borderRadius,d7a8137a:s.unref(a).input.height,"117e1a0a":s.unref(a).input.borderColor,"02ce9139":s.unref(a).input.backgroundColor,"07bfd251":s.unref(a).input.colorFocus,"61f6af1f":s.unref(a).input.backgroundColorFocus,62132383:s.unref(a).input.backgroundColorHover}));const t=s.useModel(e,"modelValue"),{form:a}=O4();return(c,n)=>{const r=s.resolveComponent("PgaInputGroup");return s.openBlock(),s.createBlock(r,{label:c.label,withRequiredLabel:c.withRequiredLabel,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,info:c.info,description:c.description,errors:c.errors,grow:c.grow},{default:s.withCtx(()=>[s.createElementVNode("div",AT3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.items,(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["switch-options__item",{"switch-options__item--first-item":o===0,"switch-options__item--last-item":o+1===c.items.length,"switch-options__item--active":t.value===i.id}]),key:i.id,onClick:l=>t.value=i.id},[s.createVNode(D3,{text:i.label,icon:i.icon},null,8,["text","icon"])],10,TT3))),128))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"])}}});const DT3=Q1(ET3,[["__scopeId","data-v-e244689f"]]),PT3={class:"textarea-container"},OT3=["placeholder","autofocus","disabled","rows"],IT3={key:0,class:"textarea__footer"},BT3="",RT3=s.defineComponent({__name:"PgaTextarea",props:s.mergeModels({placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},autofocus:{type:Boolean},disabled:{type:Boolean},grow:{},size:{default:"m"},maxLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{expose:t,emit:a}){s.useCssVars(m=>({"641d01c7":s.unref(i).input.padding,a946fd66:s.unref(i).input.borderColor,"4df95030":s.unref(i).input.borderRadius,"06f6a68b":s.unref(i).input.backgroundColor,dc9f9c82:s.unref(i).input.colorFocus,b3ccebb2:s.unref(i).input.backgroundColorDisabled,"2f9b70ba":s.unref(i).input.placeholderColor}));const c=s.useModel(e,"modelValue"),n=e,r=a;t({focus:u});const{form:i}=O4(),o=s.ref(),l=s.ref(BT3),f=s.computed(()=>{if(n.size==="s")return"4";if(n.size==="m")return"7";if(n.size==="l")return"10"});s.watch(c,m=>p(m),{immediate:!0});function u(){var m;(m=o.value)==null||m.focus()}function d(m){return m===""?null:m}function h(m){const y=typeof m>"u"?c.value:m;return y===null?"":y}function p(m){const y=d(m);return c.value=y,l.value=h(y),y}function v(m){const y=p(m);r("change",y)}return(m,y)=>(s.openBlock(),s.createBlock(y0,{label:m.label,withRequiredLabel:m.withRequiredLabel,withOptionalLabel:m.withOptionalLabel,withLabelSpace:m.withLabelSpace,info:m.info,description:m.description,errors:m.errors,grow:m.grow},{default:s.withCtx(()=>[s.createElementVNode("div",PT3,[s.withDirectives(s.createElementVNode("textarea",{ref_key:"textareaRef",ref:o,"onUpdate:modelValue":y[0]||(y[0]=g=>l.value=g),class:s.normalizeClass(["textarea",{"textarea--disabled":m.disabled}]),placeholder:s.unref(X3)(m.placeholder),autofocus:m.autofocus,disabled:m.disabled,rows:f.value,onInput:y[1]||(y[1]=g=>v(l.value))},null,42,OT3),[[s.vModelText,l.value]]),m.maxLength?(s.openBlock(),s.createElementBlock("div",IT3,[s.createVNode(LX,{class:"footer__max-length",content:c.value,maxLength:m.maxLength},null,8,["content","maxLength"])])):s.createCommentVNode("",!0)])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const FT3=Q1(RT3,[["__scopeId","data-v-a988c614"]]),$T3=s.defineComponent({__name:"PgaYearPicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");return(a,c)=>(s.openBlock(),s.createBlock(y0,{label:a.label,withRequiredLabel:a.withRequiredLabel,withOptionalLabel:a.withOptionalLabel,withLabelSpace:a.withLabelSpace,info:a.info,description:a.description,errors:a.errors,grow:a.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=n=>t.value=n),yearPicker:"",disabled:a.disabled,notClearable:a.notClearable},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),qT3="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJOCAIAAAG3nMQ3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MEY3NjIxREQxMkEwMTFFNjg4QjdFMzIwQjE1Q0RCNTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MEY3NjIxREUxMkEwMTFFNjg4QjdFMzIwQjE1Q0RCNTMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowRjc2MjFEQjEyQTAxMUU2ODhCN0UzMjBCMTVDREI1MyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowRjc2MjFEQzEyQTAxMUU2ODhCN0UzMjBCMTVDREI1MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pucw4KEAABZ4SURBVHja7NfLasJAGAZQI6Kv4UJBK0V04fvvpCJKEa1gF32NuNGxAYmXhVllTM7HQIZhFsnhn0uS+deyIa+liQAWLFiwYMFCAAsWLFiwYCGABQsWLFiwEMCCBQsWLFgIYMGCBauaaZX+BvvD3+uTB/1ufbEWq23R+bPpqL6VVejji+JWDetCsN41TqeicHXd4P+lQjY/v/nhND2GBus2SZI9P4e9vNT39hBaPF5RLMPZ5ONuJJPK+qEzHvU7nbbKepK81NUrhvqKCCucdKE9Sl29YN3fCWJAiRqr3NuTf8MKn4Zx30UjwnqXNVg+1rvUlD0LFixYsGAJLFiwYMGCJbBgwYIFC5bAggULFixYAgsWLFiwKp2zAOzcQQsBQRgG4JRCyYYoalsH5f//FqWUAym/gDhSSiJ2N4cZu8/bXPfy9M3OzOVtaMA1WbBgwYIFCwEsWLBgwYKFABYsWLBgwUIACxYsWLBgIYAFCxYsWLVP4C6a7f5wuRTtp8vSSafdqilW2X6j5WoTtikx8GQt5lnS6xbHPZ7O9cV6GTENuDn50qkZWw9ZeKxP2+ouFZVXpJ1/z0Zha80jvWc9gN6nKZL5akYlFXlZolLXqpyGsLwNf7s6aMDNz3jUX292pT4ZDpKaYs3S6W390Tb0z4IFCxYsWAILFixYsGAJLFiwYMGCJbBgwYIFC5bAggULFqyK5ioAe/evojAMAHAY/+FTuMi56HDc4vu/goPDcdJFV0Xl5KiTlUBvsVI1RTTftxWkYvmZxAzGP+DiW4iwEBYIC2EhLBAWwkJYICyEhbBAWAgLYYGwEBbCAmEhLIQFwkJYCAuEhbAQFggLYZGCbrKfPM+Ps/lP0+/yKgedCSuaUNVNJ1XfJBxhud7snnvam7Ceb/6dHQ5/iY801ljxB5iyqnC52/96LEas+Dqddp312edkVHXevLA4z32LbLnZ7s8Xrdb0a1xzyR8u5SWsSh/Dwd2/IuUlrLo/6MolfP2NifAyC39hVSZ18RJhPZoUthsiKCY7D8GI1Yhi3e0hGLGiWWSr6MNVccPynv1+L80Hm/SRJ/8bV42NgsnuPiQ9FV7fuMJUiLAQFggLYSEsEBbCQlggLISFsEBYCAthgbAQFsICYSEshAXCQlgIC4SFsBAWCAth8UZOArBzLy0JRGEAhhNCpYttImjThbJCiaBF/3/toohQMA0rokXRxS6ULZqCgSGKVGKm23me1aFA6fDyzWkGDfprjDCxEBYIC2EhLIRlCxAWwkJYICyEhbBAWAgLYYGwEBbCAmEhLIQFwkJYCAuEhbAQFggLYSEsEBbCQlggLISFsEBYCAthgbAQFsICYSEshAXCQlgIC4SFsBAWCAthISwQFsJCWCAshMU/MhryH9/rPXWOT7N45WIxPzszXSjkhRWc2nY9uxe/ub0/O7/aqJaDbSvQS+HrrPqGd9mtt0yssDxHUbzY2qxmFG7IVTm8Y2Jlf3FMZkxldXFifMyemFgpX7kazc7FZde2CCv9U/bB4YltEdYPqO009g+O7YOwUq5qJIquu7faElY/G9Xyu5+sLs/3rypea0tY/RQK+bdtrVeWp0oTA6vSltsNQ7U18Gbpx6retrWyNGcbTawvnqs++625JazBujd37x4m9q9KW8Iaqqpm+2i33kraGqaqpK3vebwtrD9ZVbyO2xq+KhzeB1eVtGVbTKyUq0JYqhLWr6QqYSEs/FcYuI8PoRFWCkL+AKCwUj0B5HLx4uGxl6xT1Gh2hBX0iNprtLN7l9LkuMO7c1X6Va2VF0ysEIdWRp9WZcTtBoSFsBCWLUBYCAthgbAQFsICYSEshAXCQlgIC4SFsBAWCAthISwQFsJCWCAshIWwQFgIC2GBsBAWwgJhISyEBcJCWAgLhIWwEBYIC2EhLBAWwkJYICyEhbBAWAgLYYGwEBbCAmHxA14EYO/uX5oIAwCO3+k2EV+RWmqzJCaBQsN+6P//LYoI/GHCULS07A3C+UJZq/XoxbIszfNq3vx8ENl0oLuD7z3P7V7ih4+eWAqALSGAYAGCBSBYAIIFCBaAYAEIFiBYAIIFIFiAYAEIFoBgAYIFIFgAggUIFoBgAQgWIFgAggUgWIBgAQgWgGABggUgWIBgAQgWgGABggUgWACCBQgWgGABCBYgWACCBSBYgGABCBaAYAGCBSBYAIIFCBaAYAEIFiBYAIIFIFiAYAEIFoBgAYIFIFiAYAEIFkB2ChbBFXRw8Gm5sf651crrG4jj2nx1YKBkVQoWPa7eWNvf/5Dv99BuL9VXioXC4r27Vqhg0ctjq+O1GhoarM5WcvT/b7588357J3kcRojNnb2x0WGrVbDoTV/b7eNPK1PlfE2sZm7e6AQraLW+WKeCBYdjsVC33b39/r7+4aHB8BP7jBAsLl2nluorf/rtxPho9c6MpUS3OKyBH7Zevz2lVkGYjj1+Wg9Rs6wQLLo8tnqx9e5vXrm+sXXBP7S6tql6mBLyX7ZyfSm3c4fzzeXV6GjHfxisjY+N3K5M2jWGYHFuIRyzt6aebbw685WhMhdJVcd2czd8yRaCRRrlaxNjI8Mny9JRmb4+PVm+eKpkC8Eim3HWg8X5JDTR0cGZ4XuxUEiRkjNTJVsIFpmVK0p77NW5UiVbCBbdkTpVsoVgkZnmzl5j9XnyuLYwd7IjmaRKthAsMktVIjm4tJOtzFP1S7ZSfCiJYCFV0clsRXH8j1IFgkUGqfqJWiFY5CBVIFh0y+nXaYDLwMnPgGABCBZwZdmHxXeHZxHeX7AcMMICMMLivBuoOD7+NO9HMCR3x8AIi56d99UW5oqF/G+o4vi3pzRihEWvNSu5YXJyxauPubq2eqlUDINEnRIsrmK5IncbxJQQQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECcuSbAOzdXW8SWQCAYalUWlsFRN2mIau7UpvQmMYb//+dMdFEk3U/NNtt2i4qVPqJFAqtozXEoNvFQZCZeZ6LphASZuaEt+cMA009fPTYUQDMsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAgQLQLAABAsQLIBJlXYIkqnVah82mju7+51uNzJ/XaemCvns/NxsJnPJCAoWSfG2vvf3+lYUt3x37yD4WVy8UcjnZMuSkPirvK5GtFY9W5Xa5r9vDKVgEf+VYPBqj8GO1Hf3g30xoIJFnMVpYvJibcOAJo1zWMlS/3gOqGd1ZSla2//s+cve781my4AKFrF2evr5LeetsSQEECzAkhD6nL0Bd9hodk+6l2dnptNpi0cEi0l02Hj3+1//9N05Nzdbul2ULSwJmSDrm5UvaxVoNJrPnr906ROCxaR4W9+r1nbOeYBmIVhMhKBEg3xk51V127FCsPjBjgabOp0/BQPBYhze1OqDz8WGXHhaVyJYDOW40xnDs5x9s41zYQgWQ5lOj/wal8+/h0uzECzCW1y4PuAjw12NVd2u953U1ywEi9HOsIqLN8LVan3j1Zf3axaCRRjBvGm5dOt/HpRKFfK571UrzUKwCC97df78CdRqufSt68Hza6VZCBbhLS7cvFcuBTOpvvuv5a6uriyNolaaxeB8+Jl+szOZB/fLQT5OTk/b7eOZj5EKcaJ98Fr1mhWiiZhhwYdCBeUKFonBL2OolXkWgsWPEa5WmoVgEaVaaRaCRZRqpVkIFsMK8vHk6Z/rm5Ux1EqzECyGqtVvf6x1T7rV2s5/Nev71kqzECyGqtWnMH2tWaOo1ZngqQ0BgkWYWn21WaOrFQgWQ9Wqr1lqxTi50p1vrlWvWUdH7f2DhmOFGRYTXaszaoVgEY1agWChViBYqBWChVqBYDFuL9Y21ArBAhAsQLAABAtAsADBApgoPvzMJ3d//dlBQLCIBv8QEEtCAMECLAmJt+l0+rjT6d2sbtezV+ajsvGHjaYRFCwS5Keb+a1KrXcz0t9unMteMaCWhMRZIZ+Lzb7cKi4YUMEizjKZS+XlX2KwI3duF72tKVjE3/zc5dWVpQupVHR34V65VLiWNZQJ5BxWQudZD+6XW632cafT7Z5EZbMvXpyaTqcvuGRMsEhmtrzysSQEECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsILneC9De/f80cccBHG7pwfUoBCpfRGTYscy5Zf//v7As2W9LyCSbsg4BKaRgW0pL4Xaui9kUqwjtleN5cj9cPDzMW01f9O4+zf/08y+mAADgJ0IAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAEFgAAAILAACBBQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwAAgQUAILAAAAQWAAACCwBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAAjFRgB3E+dTtcQhi0MpwwBBBaQ8aK6jOPXtaN6vXHe6xnIaBQmCrOz06sri5NBoLdAYAGZSquj+vHObs0oRu/i8uL4pJFsyf783OyTtZWcd7ZAYAF3Pa3Oe73Nre1cHJtG6vqlVVl/NJeb0ViQbW5yhyzX1Vmnu/n8pboaK9vVvaP6sXvgINu8gwVZVn21P+DoZBBEUWhKw3De67XbnY8d3dk7XCjPmxIILOBOGvAa/01lbaYUuVA1JP1HCn7d/P3qw3HcbLUNHzLMJULIrMuBVwaDoOAFfniS2U7k8+YAAgsAAIEFADCW3IMFfFr/kbezTrd2WG80Tz9cp3QyCEql6OHSg+I/lx1dfAQEFsCgtHq7SOne4eC1HpLkerecZi6fX3u02H9KTmkBAgvgf2m1d3B4UKtf+3fG8c5uLdmWl8qPlhc1FiCwAP6tq83nL2/4kYVJnNXrjWdPK1HRalvA/eImd+CKutp6Ub2VD4ROTvLb1rZVywGBBdz3uto7OBywQukXNFZywnQbK/nu/c3fLzAaLhEC72udno35Ca+VVs1W+48/X+XieH5u9snaSs6t94DAArh5WvV/pf+co8wCBBaQgvLcTKvVvsUTlqaLI06rk0Zz+6/9K5eWkFmAwAJGLQmOhfL8Uf3Nbd2GFUXhyBZrGJxWMgsQWECajfV0Y33rRfXmjZXUVXKqEeTL56eVzAIEFpBmY71NlureF59kbXVpoTw/7Gr5srSSWYDAAtJprOXwwdzsTLPVru7sf/6yWJNBsL62MlOKxj+tZBYgsIB0MivZklpK9i/juH58Uj9pnrW7F5cX776mMFEoRlOl6eLDpYWJfH4EdXK7aSWzAIEFpJNZ/Z1oZXl1ZTnFP8nw0kpmAQILuHdGk1YyCxBYgLSSWYDAArg7aSWzAIEFjFEVnXW69ZM3N1lfdHzSSmYBAgtIP61+f7HTf8bwoFZfXipfN7PGM61kFiCwgJTT6p2ksT4/s8Y/rT6WWRoLEFjAKNLqWpl1t9LqvxqNU/8GAIEFjDStPplZdzetAAQWkGZafSyzpBUgsABulFYfZpZ5AgILkFa3kFYAAgtAWgEILEBaAQgsQFoBCCxAWgEwyIQRAO+pvtpXVwACCwBAYAEACCwAAAQWAIDAAgDIBMs0AO+bDIJe4ClCAIEF3JIwnHr2bcUcAG7CJUIAAIEFACCwgHT+e+fzA462Tk87na4pDUn/E4cGfEEQFEwJMsw9WJBlpVLUarWvPLSzW0s2I0rFZBAUwylzgCz/iGsEkFVhOLXx5HFhwjslY2ej8tgQQGABd1VUDH/8fiOKQqMYE0nv/vDd18VwKvQOFmSaS4SQcckL+dON9fNe72V1t93uGEhaJoNgo/JYWoHAArLTWP3MSvYv4/h17ajRPG2fdXNxbDjDjqrZmemlxXL/jitpBQILyGBm9XcqX62aBsBQuQcLAEBgAQAILAAAgQUAgMACABBYAAACCwAAgQUAILAAAAQWAAACCwBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAACCwBAYAEAILAAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAGLm/AW3rpsB12Oi5AAAAAElFTkSuQmCC",jT3=["src"],UT3=["src"],Xa1="/cdn",WT3=s.defineComponent({__name:"PgaImage",props:s.mergeModels({image:{},defaultImage:{},uploadFn:{},deleteFn:{},buttonsLayout:{default:"vertical"},size:{},height:{},width:{},borderRadius:{},rounded:{type:Boolean}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(k=>({e20df630:o.value}));const t=s.useModel(e,"modelValue"),a=e,c=$2("pgaFile"),n=s.ref(!1),r=s.ref(),i=s.ref(),o=s.ref("0"),l=s.ref(!1),f=s.ref(!1),u=s.computed(()=>a.image?`${Xa1}/${a.image}`:t.value),d=s.computed(()=>!t.value&&!a.image?!0:n.value),h=s.computed(()=>a.defaultImage?`${Xa1}/${a.defaultImage}`:qT3),p=s.computed(()=>{const k=[];return a.size?k.push({height:a.size,width:a.size}):(a.height&&k.push({height:a.height,width:"auto"}),a.width&&k.push({height:"auto",width:a.width}),a.height&&a.width&&k.push({height:a.height,width:a.width})),k}),v=s.computed(()=>{const k=[];return a.rounded?k.push({borderRadius:"100%"}):a.borderRadius&&k.push({borderRadius:a.borderRadius}),k});s.watch(u,()=>n.value=!1);function m(){n.value=!0}async function y(){var k;(k=i.value)==null||k.click()}async function g(k){var b;(b=i.value)==null||b.resetInput();try{l.value=!0,t.value=await a.uploadFn({file:k})}finally{l.value=!1}}async function M(){try{f.value=!0,await a.deleteFn(),t.value=null}finally{f.value=!1}}function x(){if(!r.value)return;const k=r.value.getBoundingClientRect();a.buttonsLayout==="horizontal"&&(o.value=`${k.height}px`),a.buttonsLayout==="vertical"&&(o.value=`${k.width}px`)}return s.onMounted(()=>{r.value&&new ResizeObserver(x).observe(r.value)}),(k,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["img-wrapper",[`img-wrapper--${k.buttonsLayout}`]])},[s.createElementVNode("div",{class:"img-container",style:s.normalizeStyle(p.value)},[d.value?(s.openBlock(),s.createElementBlock("img",{key:0,class:"img",src:h.value,style:s.normalizeStyle(v.value)},null,12,jT3)):(s.openBlock(),s.createElementBlock("img",{key:1,class:"img",src:u.value,style:s.normalizeStyle(v.value),onError:b[0]||(b[0]=_=>m())},null,44,UT3))],4),k.uploadFn||k.deleteFn?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"imgButtonsRef",ref:r,class:s.normalizeClass(["img-buttons",[`img-buttons--${k.buttonsLayout}`]])},[k.uploadFn?(s.openBlock(),s.createBlock(V2,{key:0,variant:"flat",size:"s",icon:"camera",isLoading:l.value,onClick:b[1]||(b[1]=_=>y())},null,8,["isLoading"])):s.createCommentVNode("",!0),k.uploadFn?(s.openBlock(),s.createBlock(Wf,{key:1,ref_key:"inputFileRef",ref:i,class:"input-file",type:"image",onNewFile:b[2]||(b[2]=_=>g(_))},null,512)):s.createCommentVNode("",!0),!d.value&&k.deleteFn?(s.openBlock(),s.createBlock(iq,{key:2,withoutText:"",confirmDeleteText:s.unref(c)("confirmDeleteImage"),isLoading:f.value,onDeleteConfirmed:b[3]||(b[3]=_=>M())},null,8,["confirmDeleteText","isLoading"])):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0)],2))}});const $k1=Q1(WT3,[["__scopeId","data-v-f159264d"]]),YT3=["src"],GT3=s.defineComponent({__name:"PgaImagesFullScreen",props:s.mergeModels({sources:{}},{isActive:{type:Boolean,required:!0},isActiveModifiers:{},indexSelected:{required:!0},indexSelectedModifiers:{}}),emits:["update:isActive","update:indexSelected"],setup(e){const t=s.useModel(e,"isActive"),a=s.useModel(e,"indexSelected"),c=e,n=s.computed(()=>c.sources.length),r=s.computed(()=>c.sources[a.value]);function i(){a.value=(a.value-1+n.value)%n.value}function o(){a.value=(a.value+1)%n.value}return(l,f)=>{const u=s.resolveComponent("PgaButton");return t.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pga-images-full-screen",onMousedown:f[4]||(f[4]=d=>t.value=!1)},[s.createElementVNode("div",{class:"image-container",onMousedown:f[3]||(f[3]=s.withModifiers(()=>{},["stop"]))},[s.createVNode(u,{class:"image__close-btn",icon:"x",variant:"filled",color:"grey",size:"l",heightAndWidth:"3rem",rounded:"",onClick:f[0]||(f[0]=d=>t.value=!1)}),n.value>1?(s.openBlock(),s.createBlock(u,{key:0,class:"image__left-btn",icon:"chevron-left",variant:"filled",color:"grey",size:"l",heightAndWidth:"3rem",rounded:"",onClick:f[1]||(f[1]=d=>i())})):s.createCommentVNode("",!0),n.value>1?(s.openBlock(),s.createBlock(u,{key:1,class:"image__right-btn",icon:"chevron-right",variant:"filled",color:"grey",size:"l",heightAndWidth:"3rem",rounded:"",onClick:f[2]||(f[2]=d=>o())})):s.createCommentVNode("",!0),s.createElementVNode("img",{class:"image",src:r.value},null,8,YT3)],32)],32)):s.createCommentVNode("",!0)}}});const ZT3=Q1(GT3,[["__scopeId","data-v-00eea57b"]]),XT3={class:"pga-images"},KT3={class:"images"},QT3=["src","onClick"],JT3={key:0,class:"images__input-container"},eE3=s.defineComponent({__name:"PgaImages",props:s.mergeModels({maxImagesQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=$2("pgaFile"),n=s.ref(),r=s.ref(!1),i=s.ref(-1),o=s.ref({isActive:!1,indexSelected:0}),l=s.computed(()=>t.value.length),f=s.computed(()=>t.value.map(p=>typeof p=="string"?p:URL.createObjectURL(p)));async function u(p){var v;if((v=n.value)==null||v.resetInput(),l.value+p.length>a.maxImagesQuantity&&(p=p.slice(0,a.maxImagesQuantity-l.value),W4.Add("warning",()=>c("maxImagesQuantityAlert",{maxQuantity:a.maxImagesQuantity}))),!a.uploadFn){t.value.push(...p);return}try{r.value=!0,t.value=await a.uploadFn({file:p})}finally{r.value=!1}}async function d(p){if(a.deleteFn)try{i.value=p,await a.deleteFn({index:p})}finally{i.value=-1}t.value.splice(p,1)}async function h(p){o.value.indexSelected=p,o.value.isActive=!0}return(p,v)=>(s.openBlock(),s.createElementBlock("div",XT3,[s.createVNode(ZT3,{isActive:o.value.isActive,"onUpdate:isActive":v[0]||(v[0]=m=>o.value.isActive=m),indexSelected:o.value.indexSelected,"onUpdate:indexSelected":v[1]||(v[1]=m=>o.value.indexSelected=m),sources:f.value},null,8,["isActive","indexSelected","sources"]),s.createElementVNode("div",KT3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,(m,y)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:"images__image-container"},[s.createElementVNode("img",{class:"images__img",src:m,onClick:g=>h(y)},null,8,QT3),s.createVNode(iq,{class:"images__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===y,onDeleteConfirmed:g=>d(y)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),l.value<p.maxImagesQuantity?(s.openBlock(),s.createElementBlock("div",JT3,[s.createVNode(Wf,{ref_key:"inputFileRef",ref:n,class:"images__input",type:"image",multiple:"",label:s.unref(c)("selectImages"),isLoading:r.value,onNewFiles:v[2]||(v[2]=m=>u(m))},null,8,["label","isLoading"])])):s.createCommentVNode("",!0)]),s.createElementVNode("span",null,s.toDisplayString(`${l.value} / ${p.maxImagesQuantity}`),1)]))}});const tE3=Q1(eE3,[["__scopeId","data-v-f910d2a2"]]),aE3=s.defineComponent({__name:"PgaInfoPanelItem",props:{title:{},info:{},fullWidth:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-info-panel-item",{"pga-info-panel-item--full-width":t.fullWidth}])},[s.createVNode(D3,{class:"item__title",text:t.title,fontSize:"0.9rem",color:"second"},null,8,["text"]),s.createVNode(D3,{class:"item__info",text:t.info,fontSize:"1rem",color:"first"},null,8,["text"])],2))}});const cE3=Q1(aE3,[["__scopeId","data-v-d9777c05"]]),nE3={class:"pga-info-panel"},rE3=s.defineComponent({__name:"PgaInfoPanel",props:{details:{}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",nE3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.details,(c,n)=>(s.openBlock(),s.createBlock(cE3,{key:n,title:c.title,info:c.info,fullWidth:c.fullWidth},null,8,["title","info","fullWidth"]))),128))]))}});const iE3=Q1(rE3,[["__scopeId","data-v-1e0ac7f7"]]),oE3={class:"pga-breadcrumb","aria-label":"breadcrumb"},sE3={class:"breadcrumb__list"},lE3=["aria-current"],fE3={key:2,class:"list__separator"},uE3=s.defineComponent({__name:"PgaBreadcrumb",props:{items:{}},setup(e){const t=e,a=s.computed(()=>t.items.length);return(c,n)=>(s.openBlock(),s.createElementBlock("nav",oE3,[s.createElementVNode("ol",sE3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.items,(r,i)=>(s.openBlock(),s.createElementBlock("li",{key:i,class:"list__item","aria-current":i+1===a.value?"page":null},[i+1<a.value&&r.route?(s.openBlock(),s.createBlock(Yf,{key:0,name:r.route.name,params:r.route.params,query:r.route.query,color:"link",underline:""},{default:s.withCtx(()=>[s.createVNode(D3,{text:r.label},null,8,["text"])]),_:2},1032,["name","params","query"])):(s.openBlock(),s.createBlock(D3,{key:1,text:r.label},null,8,["text"])),i+1<a.value?(s.openBlock(),s.createElementBlock("span",fE3,">")):s.createCommentVNode("",!0)],8,lE3))),128))])]))}});const dE3=Q1(uE3,[["__scopeId","data-v-a9f7d36c"]]),qk1=s.defineComponent({__name:"PgaLogo",setup(e){const t=Te.getConfig(),{layout:a}=O4();return(c,n)=>(s.openBlock(),s.createBlock(Yf,{name:s.unref(t).routerHelpers.getDefaultRouteName()},{default:s.withCtx(()=>[s.createVNode($k1,{image:"images/logo.png",height:s.unref(c4.multiplyWithUnits)(s.unref(a).headerHeight,.8)},null,8,["height"])]),_:1},8,["name"]))}}),hE3={class:"header__content"},pE3={class:"content__side"},mE3={class:"content__side"},vE3=s.defineComponent({__name:"PgaHeader",props:{hideChangeThemeBtn:{type:Boolean}},setup(e){const t=jo.useRouter(),a=$2("pgaLayout","header"),{theme:c}=s0.storeToRefs(g6()),{isDisplayingBanner:n,isSideBarOpen:r,noDisplayNavBars:i,currentRoute:o}=s0.storeToRefs(H6()),l=s.computed(()=>{var f;return!!o.value&&!!((f=window.history.state)!=null&&f.back)});return(f,u)=>{const d=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("header",{class:s.normalizeClass(["pga-header",{"pga-header--with-banner":s.unref(n)}])},[s.createElementVNode("div",hE3,[s.createElementVNode("div",pE3,[l.value?(s.openBlock(),s.createBlock(V2,{key:0,icon:"arrow-left",size:"l",color:"first",onClick:u[0]||(u[0]=h=>s.unref(t).back())})):s.createCommentVNode("",!0),s.unref(i)?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(V2,{key:1,icon:"menu",size:"l",color:"first",onClick:u[1]||(u[1]=h=>r.value=!s.unref(r))})),s.createVNode(qk1,{class:"content__logo"})]),s.createElementVNode("div",mE3,[f.hideChangeThemeBtn?s.createCommentVNode("",!0):s.withDirectives((s.openBlock(),s.createBlock(V2,{key:0,icon:"sun-moon",size:"l",color:"first",onClick:u[2]||(u[2]=h=>s.unref(g6)().changeTheme())},null,512)),[[d,s.unref(c)==="light"?s.unref(a)("switchToDarkMode"):s.unref(a)("switchToLightMode")]]),s.useSlots().userMenu?s.renderSlot(f.$slots,"userMenu",{key:1},void 0,!0):s.createCommentVNode("",!0)])])],2)}}});const yE3=Q1(vE3,[["__scopeId","data-v-8fb7fe3b"]]),gE3={class:"side-bar__header"},ME3={class:"side-bar__content"},kE3=["textContent"],xE3={class:"section__buttons"},bE3={class:"button__name-container"},zE3={class:"button__icon-container"},CE3=["textContent"],_E3=s.defineComponent({__name:"PgaSideBar",props:{headerAndBannerHeight:{},routes:{},navSections:{}},setup(e){s.useCssVars(d=>({"4a46e456":d.headerAndBannerHeight}));const t=e,a=Te.getConfig(),{routeType:c,isDisplayingBanner:n,isSideBarOpen:r,isDisplayingSideBar:i}=s0.storeToRefs(H6()),o=s.computed(()=>MX(t.routes)),l=s.computed(()=>kX(t.navSections,o.value)),f=s.computed(()=>a.i18n[`${c.value}NavSections`]);s.watch(r,d=>{d&&!Vo()||If(!d)},{immediate:!0});function u(){Vo()&&setTimeout(()=>r.value=!1,a.delayTime)}return(d,h)=>{const p=s.resolveComponent("PgaButton"),v=s.resolveComponent("RouterLink");return s.unref(i)?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["pga-side-bar",{"pga-side-bar--with-banner":s.unref(n)}])},[s.createElementVNode("div",gE3,[s.createVNode(p,{icon:"x",size:"l",color:"first",onClick:h[0]||(h[0]=m=>r.value=!1)})]),s.createElementVNode("div",ME3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,m=>(s.openBlock(),s.createElementBlock("div",{key:m.name,class:"side-bar__section"},[f.value(m.name)?(s.openBlock(),s.createElementBlock("span",{key:0,class:"section__title",textContent:s.toDisplayString(f.value(m.name))},null,8,kE3)):s.createCommentVNode("",!0),s.createElementVNode("div",xE3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(J$)(o.value,m.name),y=>(s.openBlock(),s.createBlock(v,{key:y.name,class:"section__button",to:{name:y.name},onClick:h[1]||(h[1]=g=>u())},{default:s.withCtx(()=>[s.createElementVNode("div",bE3,[s.createElementVNode("div",zE3,[s.createVNode(U3,{icon:y.meta.icon},null,8,["icon"])]),s.createElementVNode("span",{textContent:s.toDisplayString(s.unref(Uf)(s.unref(c),y.name))},null,8,CE3)]),s.unref(Vo)()?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(rq,{key:0,info:y.meta.info},null,8,["info"]))]),_:2},1032,["to"]))),128))])]))),128))])],2)):s.createCommentVNode("",!0)}}});const wE3=Q1(_E3,[["__scopeId","data-v-431f5f7c"]]),HE3={key:0,class:"pga-bottom-bar"},LE3={class:"bottom-bar__content"},VE3={class:"router-link__icon-container"},SE3={class:"router-link__name"},NE3=s.defineComponent({__name:"PgaBottomBar",props:{routes:{},navSections:{}},setup(e){const t=e,{routeType:a,noDisplayNavBars:c}=s0.storeToRefs(H6()),n=s.computed(()=>MX(t.routes,!0)),r=s.computed(()=>kX(t.navSections,n.value)),i=s.computed(()=>{let o=[];for(const l of r.value)o=o.concat(J$(n.value,l.name));return o});return(o,l)=>{const f=s.resolveComponent("RouterLink");return s.unref(c)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",HE3,[s.createElementVNode("div",LE3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,u=>(s.openBlock(),s.createBlock(f,{key:u.name,class:"bottom-bar__router-link",to:{name:u.name}},{default:s.withCtx(()=>[s.createElementVNode("div",VE3,[s.createVNode(U3,{class:"router-link__icon",icon:u.meta.icon},null,8,["icon"])]),s.createElementVNode("span",SE3,s.toDisplayString(s.unref(Uf)(s.unref(a),u.name)),1)]),_:2},1032,["to"]))),128))])]))}}});const AE3=Q1(NE3,[["__scopeId","data-v-44018ed5"]]),jk1=e=>(s.pushScopeId("data-v-1539794c"),e=e(),s.popScopeId(),e),TE3={class:"pga-footer"},EE3={class:"footer__content"},DE3={class:"footer__brand"},PE3=jk1(()=>s.createElementVNode("div",{class:"footer__divider"},null,-1)),OE3={class:"footer__info"},IE3={class:"footer__text"},BE3=["textContent"],RE3={class:"footer__text footer__text--secondary"},FE3=["textContent"],$E3=jk1(()=>s.createElementVNode("span",null,s.toDisplayString(" "),-1)),qE3="Raselli, Gianfranco",jE3="https://gianfrancoraselli.com",UE3=s.defineComponent({__name:"PgaFooter",setup(e){const t=$2("pgaLayout","footer"),a=new Date().getFullYear();return(c,n)=>(s.openBlock(),s.createElementBlock("footer",TE3,[s.createElementVNode("div",EE3,[s.createElementVNode("div",DE3,[s.createVNode(qk1)]),PE3,s.createElementVNode("div",OE3,[s.createElementVNode("span",IE3,[s.createElementVNode("span",{textContent:s.toDisplayString(`${s.unref(t)("allRightsReserved")} ® ${s.unref(Te).getConfig().appName} ${s.unref(a)}`)},null,8,BE3)]),s.createElementVNode("span",RE3,[s.createElementVNode("span",{textContent:s.toDisplayString(s.unref(t)("designedBy"))},null,8,FE3),$E3,s.createVNode(Bn1,{class:"footer__link",text:qE3,href:jE3})])])])]))}});const WE3=Q1(UE3,[["__scopeId","data-v-1539794c"]]),YE3=window.location.origin,GE3=window.location.protocol,$o=window.location.host,HZ=$o.includes("localhost")?$o.split(".").slice(-1)[0]:$o.split(".").slice(-2).join("."),ZE3=$o===HZ?void 0:$o.replace(`.${HZ}`,""),XE3=e=>(s.pushScopeId("data-v-3034e12c"),e=e(),s.popScopeId(),e),KE3={key:0,class:"layout__banner"},QE3={class:"layout__content"},JE3={key:0,class:"layout__overview"},eD3={class:"overview__title"},tD3=XE3(()=>s.createElementVNode("span",{class:"overview__separator"},"|",-1)),aD3={class:"overview__description"},cD3=s.defineComponent({__name:"PgaLayout",props:{hideChangeThemeBtn:{type:Boolean},routes:{},navSections:{}},setup(e){s.useCssVars(y=>({"83e2507c":u.value,"5ea8ab53":h.value,e310a628:d.value,"5c18b62a":p.value,"6d2e3db8":v.value,"52c307ae":m.value}));const{layout:t}=O4(),{routeTitle:a,withTitle:c,description:n,isDisplayingBanner:r,noDisplayNavBars:i,isDisplayingSideBar:o,useFullPage:l,noPaddingX:f}=s0.storeToRefs(H6()),u=s.computed(()=>l.value?"100vh":"auto"),d=s.computed(()=>c4.sumWithUnits(t.headerHeight,t.bannerHeight)),h=s.computed(()=>l.value?"hidden":"visible"),p=s.computed(()=>l.value?"var(--pga-layout-padding-y)":"var(--pga-layout-padding-bottom)"),v=s.computed(()=>f.value?"none":"var(--pga-layout-padding-x)"),m=s.computed(()=>f.value?"none":"var(--pga-layout-padding-x-small-devices)");return(y,g)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-layout",{"pga-layout--with-banner":s.unref(r),"pga-layout--with-nav-bars":!s.unref(i),"pga-layout--side-bar-open":s.unref(o)}])},[s.unref(r)?(s.openBlock(),s.createElementBlock("div",KE3,[s.renderSlot(y.$slots,"banner",{},void 0,!0)])):s.createCommentVNode("",!0),s.createVNode(yE3,{hideChangeThemeBtn:y.hideChangeThemeBtn},s.createSlots({_:2},[s.useSlots().userMenu?{name:"userMenu",fn:s.withCtx(()=>[s.renderSlot(y.$slots,"userMenu",{},void 0,!0)]),key:"0"}:void 0]),1032,["hideChangeThemeBtn"]),y.routes&&y.navSections?(s.openBlock(),s.createBlock(wE3,{key:1,headerAndBannerHeight:d.value,routes:y.routes,navSections:y.navSections},null,8,["headerAndBannerHeight","routes","navSections"])):s.createCommentVNode("",!0),y.routes&&y.navSections?(s.openBlock(),s.createBlock(AE3,{key:2,routes:y.routes,navSections:y.navSections},null,8,["routes","navSections"])):s.createCommentVNode("",!0),s.createElementVNode("div",QE3,[!s.unref(l)&&s.unref(c)?(s.openBlock(),s.createElementBlock("div",JE3,[s.createElementVNode("h1",eD3,s.toDisplayString(s.unref(a)),1),s.unref(n)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[tD3,s.createElementVNode("span",aD3,s.toDisplayString(s.unref(n)),1)],64)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createVNode(s.unref(jo.RouterView),{class:"layout__view"})]),s.unref(l)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:3},[s.useSlots().footer?s.renderSlot(y.$slots,"footer",{key:0},void 0,!0):(s.openBlock(),s.createBlock(WE3,{key:1}))],64))],2))}});const nD3=Q1(cD3,[["__scopeId","data-v-3034e12c"]]),rD3={class:"not-found"},iD3={class:"not-found__content"},oD3={class:"not-found__hero"},sD3={class:"hero__number"},lD3={class:"hero__bubble"},fD3=s.createStaticVNode('<div class="not-found__illustration" data-v-4a93c046><svg class="illustration__svg" viewBox="0 0 600 250" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-4a93c046><rect width="600" height="250" fill="var(--pga-color-primary)" opacity="0.05" rx="20" data-v-4a93c046></rect><circle cx="500" cy="80" r="40" fill="var(--pga-color-primary)" opacity="0.15" data-v-4a93c046></circle><path d="M0,150 Q120,100 250,160 T600,140 L600,250 L0,250 Z" fill="var(--pga-color-first-contrast)" opacity="0.5" data-v-4a93c046></path><path d="M0,190 Q150,170 300,210 T600,190 L600,250 L0,250 Z" fill="var(--pga-color-first-contrast)" data-v-4a93c046></path><g transform="translate(300, 150)" data-v-4a93c046><ellipse cx="0" cy="80" rx="35" ry="8" fill="var(--pga-color-first)" opacity="0.1" data-v-4a93c046></ellipse><rect x="-25" y="60" width="50" height="15" rx="5" fill="var(--pga-color-second)" opacity="0.8" data-v-4a93c046></rect><path d="M-20,30 L20,30 L25,60 L-25,60 Z" fill="var(--pga-color-primary)" opacity="0.9" data-v-4a93c046></path><rect x="-10" y="35" width="20" height="5" rx="2" fill="var(--pga-color-first-contrast)" opacity="0.5" data-v-4a93c046></rect><rect x="-5" y="15" width="10" height="15" fill="var(--pga-color-second)" data-v-4a93c046></rect><rect x="-25" y="-15" width="50" height="35" rx="10" fill="var(--pga-color-primary)" data-v-4a93c046></rect><rect x="-15" y="-5" width="30" height="15" rx="2" fill="var(--pga-color-first-contrast)" data-v-4a93c046></rect><circle cx="-5" cy="0" r="3" fill="var(--pga-color-second)" data-v-4a93c046></circle><circle cx="5" cy="0" r="3" fill="var(--pga-color-second)" data-v-4a93c046></circle><line x1="0" y1="-15" x2="-10" y2="-35" stroke="var(--pga-color-second)" stroke-width="4" stroke-linecap="round" data-v-4a93c046></line><circle cx="-10" cy="-35" r="4" fill="var(--pga-color-second)" data-v-4a93c046></circle><path d="M-20,40 Q-40,40 -40,60" fill="none" stroke="var(--pga-color-second)" stroke-width="6" stroke-linecap="round" data-v-4a93c046></path><path d="M20,40 Q40,40 35,55" fill="none" stroke="var(--pga-color-second)" stroke-width="6" stroke-linecap="round" data-v-4a93c046></path></g><circle cx="100" cy="50" r="2" fill="var(--pga-color-primary)" opacity="0.3" data-v-4a93c046></circle><circle cx="150" cy="100" r="1.5" fill="var(--pga-color-second)" opacity="0.3" data-v-4a93c046></circle><circle cx="400" cy="40" r="2.5" fill="var(--pga-color-primary)" opacity="0.2" data-v-4a93c046></circle><circle cx="550" cy="180" r="2" fill="var(--pga-color-second)" opacity="0.4" data-v-4a93c046></circle></svg></div>',1),uD3={class:"not-found__actions"},dD3=s.defineComponent({__name:"PgaNotFound",props:{redirectTo:{}},setup(e){const t=$2("pgaLayout","notFound");return(a,c)=>(s.openBlock(),s.createElementBlock("div",rD3,[s.createElementVNode("div",iD3,[s.createElementVNode("div",oD3,[s.createElementVNode("h1",sD3,s.toDisplayString(s.unref(t)("title")),1),s.createElementVNode("div",lD3,s.toDisplayString(s.unref(t)("subtitle")),1)]),fD3,s.createElementVNode("div",uD3,[s.createVNode(Yf,{name:a.redirectTo,noUnderlineOnHover:""},{default:s.withCtx(()=>[s.createVNode(V2,{text:s.unref(t)("goBackBtn")},null,8,["text"])]),_:1},8,["name"])])])]))}});const hD3=Q1(dD3,[["__scopeId","data-v-4a93c046"]]),pD3={class:"pga-section"},mD3={key:0,class:"section__title"},vD3=s.defineComponent({__name:"PgaSection",props:{title:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",pD3,[t.title?(s.openBlock(),s.createElementBlock("h3",mD3,[s.createVNode(D3,{text:t.title},null,8,["text"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["section__content",{"section__content--loading":t.isLoading}])},[t.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):s.renderSlot(t.$slots,"default",{key:1},void 0,!0)],2)]))}});const yD3=Q1(vD3,[["__scopeId","data-v-2f106c04"]]),gD3={key:0,class:"pga-pagination"},MD3=["textContent"],kD3=["textContent"],xD3=s.defineComponent({__name:"PgaPagination",props:s.mergeModels({totalCount:{},pageSize:{},noScrollToTop:{type:Boolean}},{modelValue:{required:!0,default:1},modelModifiers:{}}),emits:s.mergeModels(["newPage"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t,r=s.computed(()=>Math.ceil(c.totalCount/c.pageSize)),i=s.computed(()=>{const h=[a.value];for(let p=a.value-1;p>=a.value-3&&p>=1;p--)h.unshift(p);for(let p=a.value+1;p<=a.value+3&&p<=r.value;p++)h.push(p);if(h.length===7)return h;if(h.includes(1))for(let p=h[h.length-1]+1;p<=7-h.length+h[h.length-1]&&p<=r.value;p++)h.push(p);else for(let p=h[0]-1;p>=-(7-h.length)+h[0]&&p>=1;p--)h.unshift(p);return h}),o=s.computed(()=>!i.value.includes(1)),l=s.computed(()=>!i.value.includes(r.value));function f(u){a.value=u,n("newPage",u),c.noScrollToTop||an1()}return(u,d)=>r.value>1?(s.openBlock(),s.createElementBlock("div",gD3,[o.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(V2,{variant:"flat",color:"first",heightAndWidth:"1.6rem",text:"1",onClick:d[0]||(d[0]=h=>f(1))}),s.createElementVNode("span",{textContent:s.toDisplayString("...")},null,8,MD3)],64)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,h=>(s.openBlock(),s.createBlock(V2,{key:h,variant:h===a.value?"filled":"flat",color:h===a.value?"primary":"first",heightAndWidth:"1.6rem",text:h.toString(),onClick:p=>f(h)},null,8,["variant","color","text","onClick"]))),128)),l.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("span",{textContent:s.toDisplayString("...")},null,8,kD3),s.createVNode(V2,{variant:"flat",color:"first",heightAndWidth:"1.6rem",text:r.value.toString(),onClick:d[1]||(d[1]=h=>f(r.value))},null,8,["text"])],64)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}});const LZ=Q1(xD3,[["__scopeId","data-v-962423ac"]]),bD3=s.defineComponent({__name:"PgaTr",props:{index:{},secondary:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>{if(typeof t.index>"u")return"";const c=t.index%2===0?"tr--even":"tr--odd",n=[c];return t.secondary&&n.push(`${c}__secondary`),n});return(c,n)=>(s.openBlock(),s.createElementBlock("tr",{class:s.normalizeClass(["pga-tr",a.value])},[s.renderSlot(c.$slots,"default",{},void 0,!0)],2))}});const VZ=Q1(bD3,[["__scopeId","data-v-86d73bc6"]]),zD3={class:"td__content"},CD3=s.defineComponent({__name:"PgaTd",props:{align:{default:"left"},fitContent:{type:Boolean}},setup(e){s.useCssVars(c=>({"7cfdd09e":c.align,"0e86b903":a.value}));const t=e,a=s.computed(()=>{if(t.align==="left")return"flex-start";if(t.align==="center")return"center";if(t.align==="right")return"flex-end"});return(c,n)=>(s.openBlock(),s.createElementBlock("td",{class:s.normalizeClass(["pga-td",{"pga-td--fit-content":!!c.fitContent}])},[s.createElementVNode("div",zD3,[s.renderSlot(c.$slots,"default",{},void 0,!0)])],2))}});const F9=Q1(CD3,[["__scopeId","data-v-12c99c41"]]),_D3=["textContent"],wD3=s.defineComponent({__name:"PgaTrTitle",props:{title:{}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(VZ,{class:"pga-tr-title"},{default:s.withCtx(()=>[s.createVNode(F9,{class:"tr-title__td",colspan:"100%"},{default:s.withCtx(()=>[t.title?(s.openBlock(),s.createElementBlock("span",{key:0,textContent:s.toDisplayString(t.title)},null,8,_D3)):s.renderSlot(t.$slots,"default",{key:1},void 0,!0)]),_:3})]),_:3}))}});const HD3=Q1(wD3,[["__scopeId","data-v-145a0ff1"]]),LD3=["textContent"],Uk1=s.defineComponent({__name:"PgaGroupTitle",props:{items:{},groupByFn:{type:Function},reduceGroupTitleFn:{type:Function}},setup(e){const t=e,a=s.computed(()=>{let c=t.groupByFn(t.items[0]);return t.reduceGroupTitleFn&&(c+=` - ${t.reduceGroupTitleFn(t.items)}`),c});return(c,n)=>(s.openBlock(),s.createElementBlock("span",{textContent:s.toDisplayString(a.value)},null,8,LD3))}}),VD3={class:"pga-th"},SD3={class:"th-content"},ND3=s.defineComponent({__name:"PgaTh",props:{title:{default:""},align:{default:"left"},info:{}},setup(e){return s.useCssVars(t=>({"49e08fdb":t.align})),(t,a)=>(s.openBlock(),s.createElementBlock("th",VD3,[s.createElementVNode("div",SD3,[s.createVNode(D3,{text:t.title,showEmptyText:""},null,8,["text"]),s.createVNode(rq,{info:t.info},null,8,["info"])])]))}});const eh=Q1(ND3,[["__scopeId","data-v-140e0590"]]),AD3={class:"filters-modal-container"},TD3=s.defineComponent({__name:"PgaFiltersModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=$2("pgaTable");return(c,n)=>{const r=s.resolveComponent("PgaModal");return s.openBlock(),s.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=i=>t.value=i),title:s.unref(a)("filtersModalTitle")},{default:s.withCtx(()=>[s.createElementVNode("div",AD3,[s.renderSlot(c.$slots,"default",{},void 0,!0)])]),_:3},8,["modelValue","title"])}}});const ED3=Q1(TD3,[["__scopeId","data-v-ff4009d7"]]),SZ=s.defineComponent({__name:"PgaActionsButtons",props:s.mergeModels({item:{},getDescriptionFn:{type:Function},withEditButton:{type:Boolean},editToName:{},deleteFn:{type:Function},deleteBtnIcon:{},deleteBtnText:{},toName:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["editItem"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t,r=$2("pgaTable");async function i(){try{a.value.push(c.item.id),await c.deleteFn(c.item)}finally{a.value=a.value.filter(o=>o!==c.item.id)}}return(o,l)=>{const f=s.resolveComponent("PgaRouterLinkButton");return s.openBlock(),s.createElementBlock(s.Fragment,null,[o.toName?(s.openBlock(),s.createBlock(Fn1,{key:0,id:o.item.id,toName:o.toName,noFitContent:""},null,8,["id","toName"])):s.createCommentVNode("",!0),o.editToName?(s.openBlock(),s.createBlock(f,{key:1,name:o.editToName,params:{id:o.item.id},noFitContent:""},{default:s.withCtx(()=>[s.createVNode(BY,{fullWidth:""})]),_:1},8,["name","params"])):o.withEditButton?(s.openBlock(),s.createBlock(BY,{key:2,onClick:l[0]||(l[0]=u=>n("editItem",o.item))})):s.createCommentVNode("",!0),o.deleteFn?(s.openBlock(),s.createBlock(iq,{key:3,icon:o.deleteBtnIcon,text:o.deleteBtnText,confirmDeleteText:s.unref(r)("confirmDeleteText",{description:o.getDescriptionFn(o.item)}),isLoading:a.value.includes(o.item.id),onDeleteConfirmed:l[1]||(l[1]=u=>i())},null,8,["icon","text","confirmDeleteText","isLoading"])):s.createCommentVNode("",!0)],64)}}}),DD3={key:0,class:"items-list"},PD3={key:0,class:"item-actions-buttons"},OD3=s.defineComponent({__name:"PgaItemsList",props:s.mergeModels({itemsGroupedBy:{},getDescriptionFn:{type:Function},withEditButton:{type:Boolean},editToName:{},deleteFn:{type:Function},toName:{},groupByFn:{type:Function},reduceGroupTitleFn:{type:Function},hasActionsButtons:{type:Boolean},secondary:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["editItem"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t,r=s.computed(()=>!!c.editToName||!!c.withEditButton||!!c.deleteFn||c.hasActionsButtons);return(i,o)=>i.itemsGroupedBy.length?(s.openBlock(),s.createElementBlock("div",DD3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.itemsGroupedBy,(l,f)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:f},[i.groupByFn?(s.openBlock(),s.createBlock(Uk1,{key:0,class:"items-list__title",groupByFn:i.groupByFn,reduceGroupTitleFn:i.reduceGroupTitleFn,items:l},null,8,["groupByFn","reduceGroupTitleFn","items"])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l,u=>(s.openBlock(),s.createElementBlock("div",{key:u.id,class:s.normalizeClass(["item-container",{"item-container__secondary":i.secondary}])},[s.renderSlot(i.$slots,"item",{item:u},void 0,!0),r.value?(s.openBlock(),s.createElementBlock("div",PD3,[s.renderSlot(i.$slots,"actionsButtons",{item:u},void 0,!0),s.createVNode(SZ,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=d=>a.value=d),item:u,getDescriptionFn:i.getDescriptionFn,withEditButton:i.withEditButton,editToName:i.editToName,deleteFn:i.deleteFn,toName:i.toName,onEditItem:o[1]||(o[1]=d=>n("editItem",d))},null,8,["modelValue","item","getDescriptionFn","withEditButton","editToName","deleteFn","toName"])])):s.createCommentVNode("",!0)],2))),128))],64))),128))])):s.createCommentVNode("",!0)}});const Ka1=Q1(OD3,[["__scopeId","data-v-1e188fbf"]]),ID3={class:"pga-table"},BD3={key:0,class:"table-header"},RD3={class:"table-header__top"},FD3={key:3,class:"header__search-container"},$D3={key:0,class:"table-header__filters"},qD3={key:0},jD3={class:"indentation-content"},UD3={key:0,class:"indentation-line"},WD3={key:1,class:"actions-buttons"},YD3={key:5,class:"rows-selected"},GD3=["textContent"],ZD3=s.defineComponent({__name:"PgaTable",props:s.mergeModels({hideTitles:{type:Boolean},columns:{},columnsAlign:{},createItemBtnText:{},withEditButton:{type:Boolean},editToName:{},deleteFn:{type:Function},deleteBtnIcon:{},deleteBtnText:{},toName:{},actionsOptions:{},useDropdown:{type:Boolean},items:{},descriptionField:{},totalCount:{},groupByFn:{type:Function},groupByDate:{type:[Boolean,String]},reduceGroupTitleFn:{type:Function},noItemsLabel:{},noDisplayNoItemsIcon:{type:Boolean},noSearch:{type:Boolean},searchInputPlaceholder:{},filters:{},indentation:{},isLoading:{type:Boolean},secondary:{type:Boolean}},{searchParams:{},searchParamsModifiers:{},itemsSelected:{},itemsSelectedModifiers:{}}),emits:s.mergeModels(["createItem","editItem","refreshList"],["update:searchParams","update:itemsSelected"]),setup(e,{emit:t}){const a=s.useModel(e,"searchParams"),c=s.useModel(e,"itemsSelected"),n=e,r=t,i=$2("pgaTable"),o=n.groupByFn?n.groupByFn:n.groupByDate?N:void 0,l=s.ref([]),f=s.ref(),u=s.ref([]),d=s.ref({isActive:!1}),h=s.ref(!1),p=s.computed(()=>Object.fromEntries(Object.entries(n.columns||{}).filter(([,R])=>!R.hide))),v=s.computed(()=>{if(!n.indentation)return!1;for(const R of n.items)if(R[n.indentation.propName].length>0)return!0;return!1}),m=s.computed(()=>{if(!v.value)return n.items;const R=[];for(const K of n.items)R.push(K),P(K)&&R.push(...K[n.indentation.propName]);return R}),y=s.computed(()=>{const R=m.value;return o?R.reduce((K,Z)=>{const U=K[K.length-1];return U&&o(U[0])===o(Z)?U.push(Z):K.push([Z]),K},[]):R.length?[R]:[]}),g=s.computed(()=>!!c.value),M=s.computed(()=>!!s.useSlots().actionsButtons),x=s.computed(()=>{var R;return n.toName||n.withEditButton||n.editToName||n.deleteFn||((R=n.actionsOptions)==null?void 0:R.length)||M.value}),k=s.computed(()=>{var R;return(R=n.actionsOptions)!=null&&R.length?!0:n.useDropdown}),b=s.computed(()=>{var R,K;return((R=a.value)==null?void 0:R.page)&&((K=a.value)==null?void 0:K.pageSize)&&n.totalCount}),_=s.computed(()=>Math.ceil(n.totalCount/a.value.pageSize)),C=s.computed(()=>{var R;return!n.noSearch&&((R=a.value)==null?void 0:R.search)!==void 0}),H=s.computed(()=>n.filters?Object.values(n.filters).reduce((R,K)=>K?R+1:R,0):0);s.watch(()=>n.items,()=>{g.value&&(c.value=[])}),s.watch(()=>n.filters,()=>L(),{deep:!0});function V(R){if(n.descriptionField)return X3(R[n.descriptionField])}function N(R){const K=n.groupByDate;return mY(typeof K=="string"?R[K]:R.datetime)}function L(R=!0){R&&(a.value.page=1),r("refreshList")}function w(R){return n.items.map(Z=>Z.id).includes(R.id)}function P(R){return l.value.includes(R.id)}function j(R){l.value.push(R.id)}function E(R){l.value=l.value.filter(K=>K!==R.id)}function F(){f.value.toggleItemSelected()}return(R,K)=>(s.openBlock(),s.createElementBlock("div",ID3,[R.createItemBtnText||R.$slots.header||C.value||R.$slots.filters?(s.openBlock(),s.createElementBlock("div",BD3,[s.createElementVNode("div",RD3,[R.createItemBtnText?(s.openBlock(),s.createBlock(V2,{key:0,variant:"filled",icon:"circle-plus",text:R.createItemBtnText,onClick:K[0]||(K[0]=Z=>r("createItem"))},null,8,["text"])):s.createCommentVNode("",!0),s.renderSlot(R.$slots,"header",{},void 0,!0),R.$slots.filters?(s.openBlock(),s.createBlock(V2,{key:1,class:"header__filters-toggle-btn",icon:"filter",color:"sky",text:s.unref(i)("filtersBtn"),numberToDisplay:H.value,onClick:K[1]||(K[1]=Z=>h.value=!h.value)},null,8,["text","numberToDisplay"])):s.createCommentVNode("",!0),R.$slots.filters?(s.openBlock(),s.createBlock(V2,{key:2,class:"header__filters-modal-btn",icon:"filter",color:"sky",text:s.unref(i)("filtersBtn"),numberToDisplay:H.value,onClick:K[2]||(K[2]=Z=>d.value.isActive=!0)},null,8,["text","numberToDisplay"])):s.createCommentVNode("",!0),C.value?(s.openBlock(),s.createElementBlock("div",FD3,[s.createVNode(v$,{class:"header__search",modelValue:a.value.search,"onUpdate:modelValue":K[3]||(K[3]=Z=>a.value.search=Z),placeholder:R.searchInputPlaceholder,onEnter:K[4]||(K[4]=Z=>L()),onValueCleared:K[5]||(K[5]=Z=>L())},null,8,["modelValue","placeholder"])])):s.createCommentVNode("",!0)]),R.$slots.filters?s.withDirectives((s.openBlock(),s.createElementBlock("div",$D3,[s.renderSlot(R.$slots,"filters",{},void 0,!0)],512)),[[s.vShow,h.value]]):s.createCommentVNode("",!0),s.createVNode(ED3,{modelValue:d.value.isActive,"onUpdate:modelValue":K[6]||(K[6]=Z=>d.value.isActive=Z)},{default:s.withCtx(()=>[s.renderSlot(R.$slots,"filters",{},void 0,!0)]),_:3},8,["modelValue"])])):s.createCommentVNode("",!0),b.value&&_.value>1||R.isLoading?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["table-top-pagination",{"table-top-pagination--with-spinner":R.isLoading}])},[b.value?(s.openBlock(),s.createBlock(LZ,{key:0,modelValue:a.value.page,"onUpdate:modelValue":K[7]||(K[7]=Z=>a.value.page=Z),pageSize:a.value.pageSize,totalCount:R.totalCount,onNewPage:K[8]||(K[8]=Z=>L(!1))},null,8,["modelValue","pageSize","totalCount"])):s.createCommentVNode("",!0),R.isLoading?(s.openBlock(),s.createBlock(w8,{key:1,class:"pagination__spinner",size:"m"})):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),m.value.length?(s.openBlock(),s.createElementBlock("div",{key:2,class:s.normalizeClass(["table-wrapper",{"table-wrapper--with-main-item":R.$slots.mainItem,"table-wrapper--with-small-devices-item":R.$slots.smallDevicesItem}])},[s.createElementVNode("table",null,[R.hideTitles?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("thead",qD3,[s.createVNode(VZ,null,{default:s.withCtx(()=>[g.value?(s.openBlock(),s.createBlock(eh,{key:0})):s.createCommentVNode("",!0),v.value?(s.openBlock(),s.createBlock(eh,{key:1})):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,(Z,U)=>(s.openBlock(),s.createBlock(eh,{key:U,title:Z.title,align:Z.align||R.columnsAlign,info:Z.info},null,8,["title","align","info"]))),128)),x.value?(s.openBlock(),s.createBlock(eh,{key:2,title:s.unref(i)("columnTitleActions")},null,8,["title"])):s.createCommentVNode("",!0)]),_:1})])),s.createElementVNode("tbody",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(y.value,Z=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.unref(o)?(s.openBlock(),s.createBlock(HD3,{key:0},{default:s.withCtx(()=>[s.createVNode(Uk1,{groupByFn:s.unref(o),reduceGroupTitleFn:R.reduceGroupTitleFn,items:Z},null,8,["groupByFn","reduceGroupTitleFn","items"])]),_:2},1024)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(Z,(U,I)=>(s.openBlock(),s.createBlock(VZ,{key:U.id,index:I,secondary:R.secondary},{default:s.withCtx(()=>[g.value?(s.openBlock(),s.createBlock(F9,{key:0,fitContent:""},{default:s.withCtx(()=>[s.createVNode(IY,{modelValue:c.value,"onUpdate:modelValue":K[9]||(K[9]=T=>c.value=T),items:m.value,item:U},null,8,["modelValue","items","item"])]),_:2},1024)):s.createCommentVNode("",!0),v.value?(s.openBlock(),s.createBlock(F9,{key:1,fitContent:""},{default:s.withCtx(()=>[s.createElementVNode("div",jD3,[w(U)?P(U)?(s.openBlock(),s.createBlock(U3,{key:1,icon:"chevron-down",clickable:"",onClick:T=>E(U)},null,8,["onClick"])):U[n.indentation.propName].length>0?(s.openBlock(),s.createBlock(U3,{key:2,icon:"chevron-right",clickable:"",onClick:T=>j(U)},null,8,["onClick"])):s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",UD3))])]),_:2},1024)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,(T,S)=>(s.openBlock(),s.createBlock(F9,{key:S,align:T.align||R.columnsAlign,fitContent:T.fitContent},{default:s.withCtx(()=>[s.renderSlot(R.$slots,S,{item:U},void 0,!0)]),_:2},1032,["align","fitContent"]))),128)),x.value?(s.openBlock(),s.createBlock(F9,{key:2,fitContent:""},{default:s.withCtx(()=>[k.value?(s.openBlock(),s.createBlock(Dn1,{key:0,item:U,options:R.actionsOptions,align:"right"},{default:s.withCtx(()=>[s.renderSlot(R.$slots,"actionsButtons",{item:U},void 0,!0),s.createVNode(SZ,{modelValue:u.value,"onUpdate:modelValue":K[10]||(K[10]=T=>u.value=T),item:U,getDescriptionFn:V,withEditButton:R.withEditButton,editToName:R.editToName,deleteFn:R.deleteFn,deleteBtnIcon:R.deleteBtnIcon,deleteBtnText:R.deleteBtnText,toName:R.toName,onEditItem:K[11]||(K[11]=T=>r("editItem",T))},null,8,["modelValue","item","withEditButton","editToName","deleteFn","deleteBtnIcon","deleteBtnText","toName"])]),_:2},1032,["item","options"])):(s.openBlock(),s.createElementBlock("div",WD3,[s.renderSlot(R.$slots,"actionsButtons",{item:U},void 0,!0),s.createVNode(SZ,{modelValue:u.value,"onUpdate:modelValue":K[12]||(K[12]=T=>u.value=T),item:U,getDescriptionFn:V,withEditButton:R.withEditButton,editToName:R.editToName,deleteFn:R.deleteFn,deleteBtnIcon:R.deleteBtnIcon,deleteBtnText:R.deleteBtnText,toName:R.toName,onEditItem:K[13]||(K[13]=T=>r("editItem",T))},null,8,["modelValue","item","withEditButton","editToName","deleteFn","deleteBtnIcon","deleteBtnText","toName"])]))]),_:2},1024)):s.createCommentVNode("",!0)]),_:2},1032,["index","secondary"]))),128))],64))),256))])])],2)):s.createCommentVNode("",!0),R.$slots.mainItem?(s.openBlock(),s.createBlock(Ka1,{key:3,class:s.normalizeClass(["main-items-list",{"main-items-list--with-small-devices-item":R.$slots.smallDevicesItem}]),modelValue:u.value,"onUpdate:modelValue":K[14]||(K[14]=Z=>u.value=Z),itemsGroupedBy:y.value,getDescriptionFn:V,withEditButton:R.withEditButton,editToName:R.editToName,deleteFn:R.deleteFn,toName:R.toName,groupByFn:s.unref(o),reduceGroupTitleFn:R.reduceGroupTitleFn,hasActionsButtons:M.value,secondary:R.secondary,onEditItem:K[15]||(K[15]=Z=>r("editItem",Z))},{item:s.withCtx(({item:Z})=>[s.renderSlot(R.$slots,"mainItem",{item:Z},void 0,!0)]),actionsButtons:s.withCtx(({item:Z})=>[s.renderSlot(R.$slots,"actionsButtons",{item:Z},void 0,!0)]),_:3},8,["class","modelValue","itemsGroupedBy","withEditButton","editToName","deleteFn","toName","groupByFn","reduceGroupTitleFn","hasActionsButtons","secondary"])):s.createCommentVNode("",!0),R.$slots.smallDevicesItem?(s.openBlock(),s.createBlock(Ka1,{key:4,class:"small-devices-items-list",modelValue:u.value,"onUpdate:modelValue":K[16]||(K[16]=Z=>u.value=Z),itemsGroupedBy:y.value,getDescriptionFn:V,withEditButton:R.withEditButton,editToName:R.editToName,deleteFn:R.deleteFn,toName:R.toName,groupByFn:s.unref(o),reduceGroupTitleFn:R.reduceGroupTitleFn,hasActionsButtons:M.value,secondary:R.secondary,onEditItem:K[17]||(K[17]=Z=>r("editItem",Z))},{item:s.withCtx(({item:Z})=>[s.renderSlot(R.$slots,"smallDevicesItem",{item:Z},void 0,!0)]),actionsButtons:s.withCtx(({item:Z})=>[s.renderSlot(R.$slots,"actionsButtons",{item:Z},void 0,!0)]),_:3},8,["modelValue","itemsGroupedBy","withEditButton","editToName","deleteFn","toName","groupByFn","reduceGroupTitleFn","hasActionsButtons","secondary"])):s.createCommentVNode("",!0),s.createVNode(pg1,{items:m.value,label:R.noItemsLabel,noDisplayIcon:R.noDisplayNoItemsIcon,isLoading:R.isLoading},null,8,["items","label","noDisplayIcon","isLoading"]),g.value&&m.value.length?(s.openBlock(),s.createElementBlock("div",YD3,[s.createVNode(IY,{ref_key:"itemsSelectedRef",ref:f,modelValue:c.value,"onUpdate:modelValue":K[18]||(K[18]=Z=>c.value=Z),items:m.value},null,8,["modelValue","items"]),s.createVNode(On1,{class:"rows-selected__select-all-btn",text:s.unref(i)("selectAllBtn"),onClick:K[19]||(K[19]=Z=>F())},null,8,["text"]),s.createElementVNode("span",{class:"rows-selected__selected-items-text",textContent:s.toDisplayString(s.unref(i)("withTheSelectedItemsText"))},null,8,GD3),s.renderSlot(R.$slots,"itemsSelected",{},void 0,!0)])):s.createCommentVNode("",!0),b.value?(s.openBlock(),s.createBlock(LZ,{key:6,modelValue:a.value.page,"onUpdate:modelValue":K[20]||(K[20]=Z=>a.value.page=Z),pageSize:a.value.pageSize,totalCount:R.totalCount,onNewPage:K[21]||(K[21]=Z=>L(!1))},null,8,["modelValue","pageSize","totalCount"])):s.createCommentVNode("",!0)]))}});const XD3=Q1(ZD3,[["__scopeId","data-v-fd6d045c"]]),KD3=Object.freeze(Object.defineProperty({__proto__:null,PgaBackButton:e92,PgaBadge:ts2,PgaBarChart:xg3,PgaBreadcrumb:dE3,PgaButton:V2,PgaButtonLink:On1,PgaCalendar:V93,PgaCheckbox:GM3,PgaColorCircle:cs2,PgaColorSelector:QM3,PgaCopy:r92,PgaCopyButton:i92,PgaDatePicker:rC3,PgaDatetimePicker:iC3,PgaDeleteButton:iq,PgaDisplayBarcodes:Hg3,PgaDisplayButtons:bX,PgaDisplayContent:Sg3,PgaDisplayDatetime:Tg3,PgaDisplayInfo:Bg3,PgaDisplayNoItems:pg1,PgaDisplayPrice:Jg3,PgaDisplayText:D3,PgaDisplayTime:eM3,PgaDoughnutChart:bg3,PgaDropdown:Dn1,PgaDropdownMenu:fs2,PgaEditButton:BY,PgaEditor:bs2,PgaForm:mg1,PgaFormRow:aM3,PgaFormSubtitle:nM3,PgaFormTitle:iM3,PgaIcon:U3,PgaIconSelector:fC3,PgaImage:$k1,PgaImages:tE3,PgaInfoCard:ws2,PgaInfoPanel:iE3,PgaInfoTooltip:rq,PgaInput:v$,PgaInputFile:Wf,PgaInputFileExcel:dT3,PgaInputGroup:y0,PgaInputSelect:gT3,PgaIsEnabled:Hs2,PgaItemSelected:IY,PgaLayout:nD3,PgaLink:Bn1,PgaLoginForm:jM3,PgaLogoutButton:l92,PgaMaxLength:LX,PgaModal:Es2,PgaMonthPicker:MT3,PgaMonthSelector:Ps2,PgaNavigateToButton:Fn1,PgaNotFound:hD3,PgaPagination:LZ,PgaRangePicker:kT3,PgaRemoveButton:u92,PgaRouterLink:Yf,PgaRouterLinkButton:Rn1,PgaSection:yD3,PgaSeeDetailsButton:d92,PgaSelect:CT3,PgaSeparator:Is2,PgaSpinner:w8,PgaSwitch:NT3,PgaSwitchOptions:DT3,PgaTable:XD3,PgaTabs:js2,PgaTextarea:FT3,PgaToggleButton:h92,PgaVideos:Js2,PgaYearPicker:$T3},Symbol.toStringTag,{value:"Module"}));function Qa1(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function t2(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Qa1(Object(a),!0).forEach(function(c){je(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Qa1(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function N$(e){"@babel/helpers - typeof";return N$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N$(e)}function QD3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ja1(e,t){for(var a=0;a<t.length;a++){var c=t[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function JD3(e,t,a){return t&&Ja1(e.prototype,t),a&&Ja1(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function je(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function N11(e,t){return tP3(e)||cP3(e,t)||Wk1(e,t)||rP3()}function Au(e){return eP3(e)||aP3(e)||Wk1(e)||nP3()}function eP3(e){if(Array.isArray(e))return NZ(e)}function tP3(e){if(Array.isArray(e))return e}function aP3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cP3(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var c=[],n=!0,r=!1,i,o;try{for(a=a.call(e);!(n=(i=a.next()).done)&&(c.push(i.value),!(t&&c.length===t));n=!0);}catch(l){r=!0,o=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(r)throw o}}return c}}function Wk1(e,t){if(e){if(typeof e=="string")return NZ(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return NZ(e,t)}}function NZ(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,c=new Array(t);a<t;a++)c[a]=e[a];return c}function nP3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9525
|
+
`;var a=Ik1(e,t);return a}function cT3(e){var t="",a,c="";if(e==null||e["!ref"]==null)return[];var n=de(e["!ref"]),r="",i=[],o,l=[],f=Array.isArray(e);for(o=n.s.c;o<=n.e.c;++o)i[o]=Re(o);for(var u=n.s.r;u<=n.e.r;++u)for(r=r4(u),o=n.s.c;o<=n.e.c;++o)if(t=i[o]+r,a=f?(e[u]||[])[o]:e[t],c="",a!==void 0){if(a.F!=null){if(t=a.F,!a.f)continue;c=a.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(a.f!=null)c=a.f;else{if(a.t=="z")continue;if(a.t=="n"&&a.v!=null)c=""+a.v;else if(a.t=="b")c=a.v?"TRUE":"FALSE";else if(a.w!==void 0)c="'"+a.w;else{if(a.v===void 0)continue;a.t=="s"?c="'"+a.v:c=""+a.v}}l[l.length]=t+"="+c}return l}function Bk1(e,t,a){var c=a||{},n=+!c.skipHeader,r=e||{},i=0,o=0;if(r&&c.origin!=null)if(typeof c.origin=="number")i=c.origin;else{var l=typeof c.origin=="string"?A4(c.origin):c.origin;i=l.r,o=l.c}var f,u={s:{c:0,r:0},e:{c:o,r:i+t.length-1+n}};if(r["!ref"]){var d=de(r["!ref"]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),i==-1&&(i=d.e.r+1,u.e.r=i+t.length-1+n)}else i==-1&&(i=0,u.e.r=t.length-1+n);var h=c.header||[],p=0;t.forEach(function(m,y){zt(m).forEach(function(g){(p=h.indexOf(g))==-1&&(h[p=h.length]=g);var M=m[g],x="z",k="",b=M2({c:o+p,r:i+y+n});f=Nf(r,b),M&&typeof M=="object"&&!(M instanceof Date)?r[b]=M:(typeof M=="number"?x="n":typeof M=="boolean"?x="b":typeof M=="string"?x="s":M instanceof Date?(x="d",c.cellDates||(x="n",M=P4(M)),k=c.dateNF||k2[14]):M===null&&c.nullError&&(x="e",M=0),f?(f.t=x,f.v=M,delete f.w,delete f.R,k&&(f.z=k)):r[b]=f={t:x,v:M},k&&(f.z=k))})}),u.e.c=Math.max(u.e.c,o+h.length-1);var v=r4(i);if(n)for(p=0;p<h.length;++p)r[Re(p+o)+v]={t:"s",v:h[p]};return r["!ref"]=Y2(u),r}function nT3(e,t){return Bk1(null,e,t)}function Nf(e,t,a){if(typeof t=="string"){if(Array.isArray(e)){var c=A4(t);return e[c.r]||(e[c.r]=[]),e[c.r][c.c]||(e[c.r][c.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Nf(e,M2(t)):Nf(e,M2({r:t,c:a||0}))}function rT3(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var a=e.SheetNames.indexOf(t);if(a>-1)return a;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function V11(){return{SheetNames:[],Sheets:{}}}function S11(e,t,a,c){var n=1;if(!a)for(;n<=65535&&e.SheetNames.indexOf(a="Sheet"+n)!=-1;++n,a=void 0);if(!a||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(c&&e.SheetNames.indexOf(a)>=0){var r=a.match(/(^.*?)(\d+)$/);n=r&&+r[2]||0;var i=r&&r[1]||a;for(++n;n<=65535&&e.SheetNames.indexOf(a=i+n)!=-1;++n);}if(qN3(a),e.SheetNames.indexOf(a)>=0)throw new Error("Worksheet with name |"+a+"| already exists!");return e.SheetNames.push(a),e.Sheets[a]=t,a}function iT3(e,t,a){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var c=rT3(e,t);switch(e.Workbook.Sheets[c]||(e.Workbook.Sheets[c]={}),a){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+a)}e.Workbook.Sheets[c].Hidden=a}function oT3(e,t){return e.z=t,e}function Rk1(e,t,a){return t?(e.l={Target:t},a&&(e.l.Tooltip=a)):delete e.l,e}function sT3(e,t,a){return Rk1(e,"#"+t,a)}function lT3(e,t,a){e.c||(e.c=[]),e.c.push({t,a:a||"SheetJS"})}function fT3(e,t,a,c){for(var n=typeof t!="string"?t:de(t),r=typeof t=="string"?t:Y2(t),i=n.s.r;i<=n.e.r;++i)for(var o=n.s.c;o<=n.e.c;++o){var l=Nf(e,i,o);l.t="n",l.F=r,delete l.v,i==n.s.r&&o==n.s.c&&(l.f=a,c&&(l.D=!0))}return e}var uT3={encode_col:Re,encode_row:r4,encode_cell:M2,encode_range:Y2,decode_col:m11,decode_row:p11,split_cell:b_3,decode_cell:A4,decode_range:Ds,format_cell:k8,sheet_add_aoa:jM1,sheet_add_json:Bk1,sheet_add_dom:Ek1,aoa_to_sheet:Ps,json_to_sheet:nT3,table_to_sheet:Dk1,table_to_book:HA3,sheet_to_csv:Ik1,sheet_to_txt:aT3,sheet_to_json:wZ,sheet_to_html:wA3,sheet_to_formulae:cT3,sheet_to_row_object_array:wZ,sheet_get_cell:Nf,book_new:V11,book_append_sheet:S11,book_set_sheet_visibility:iT3,cell_set_number_format:oT3,cell_set_hyperlink:Rk1,cell_set_internal_link:sT3,cell_add_comment:lT3,sheet_set_array_formula:fT3,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const dT3=s.defineComponent({__name:"PgaInputFileExcel",props:s.mergeModels({excelConfig:{},disabled:{type:Boolean}},{isReadingFile:{type:Boolean,default:!1},isReadingFileModifiers:{}}),emits:s.mergeModels(["newFile","newFileRead"],["update:isReadingFile"]),setup(e,{expose:t,emit:a}){const c=s.useModel(e,"isReadingFile"),n=e,r=a;t({resetInput:o});const i=s.ref();function o(){var f;(f=i.value)==null||f.resetInput()}function l(f){if(r("newFile",f),!n.excelConfig)return;if(!f){r("newFileRead",[]);return}const u=new FileReader;u.onload=function(d){var h;try{c.value=!0;const p=new Uint8Array((h=d.target)==null?void 0:h.result),v=_Z(p,{type:"array"}),m=v.SheetNames[0],y=v.Sheets[m],g=n.excelConfig.columns,M=Math.max(...Object.values(g)),x=Array(M).map((b,_)=>`empty${_+1}`);Object.entries(g).forEach(([b,_])=>x[_-1]=b);const k=uT3.sheet_to_json(y,{header:x,range:n.excelConfig.firstRow-1});r("newFileRead",k)}finally{c.value=!1}},u.readAsArrayBuffer(f)}return(f,u)=>(s.openBlock(),s.createBlock(Wf,{ref_key:"inputFileRef",ref:i,type:"excel",disabled:f.disabled,onNewFile:u[0]||(u[0]=d=>l(d))},null,8,["disabled"]))}});function Fk1(e,t){const a=s.ref({top:0,bottom:0,left:0,right:0});HX(e,c);function c(){const n=e.value.getBoundingClientRect(),r={top:n.top,bottom:n.bottom,left:n.left,right:n.right};a.value=r,t&&t(r)}return s.onMounted(()=>{window.addEventListener("resize",c),c()}),s.onBeforeUnmount(()=>{window.removeEventListener("resize",c)}),a}const hT3=["aria-expanded","aria-activedescendant","placeholder","disabled"],pT3=["id","aria-selected","onMousedown","onMouseenter"],mT3={class:"option__text"},vT3={key:1,class:"dropdown__empty",role:"presentation"},yT3=s.defineComponent({__name:"PgaInputSelect",props:s.mergeModels({options:{},descriptionField:{default:"description"},emptyOptionsText:{},noResultsText:{},placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},notClearable:{type:Boolean},clearValue:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(Y=>({"6084fdcf":s.unref(r).input.height,50316469:s.unref(r).input.padding,"333c4430":s.unref(r).input.paddingWithIcon,"494a7a22":s.unref(r).input.borderColor,ae656af4:s.unref(r).input.borderRadius,b65171a6:s.unref(r).input.backgroundColor,"69f233dd":s.unref(r).input.colorFocus,"06af2e6e":s.unref(r).input.backgroundColorDisabled,"4dcee458":s.unref(r).input.placeholderColor}));const a=s.useModel(e,"modelValue"),c=e,n=t,{form:r}=O4(),i=$2("pgaForm"),o=`pga-input-select-${Math.random().toString(36).slice(2,11)}`,l=`${o}-input`,f=`${o}-listbox`,u=s.ref(),d=s.ref(),h=s.ref(),p=s.ref(""),v=s.ref(!1),m=s.ref(-1),y=c.clearValue!==void 0?c.clearValue:null;Fk1(u,W);const g=s.computed(()=>c.options.find(Y=>w(Y)===a.value)),M=s.computed(()=>!!c.options.length),x=s.computed(()=>{const Y=c4.normalizeText(p.value).split(" ");return c.options.filter(A=>{const B=c4.normalizeText(P(A));return Y.every(Q=>B.includes(Q))})}),k=s.computed(()=>x.value.length),b=s.computed(()=>M.value?g.value?P(g.value):c.placeholder?X3(c.placeholder):i("selectPlaceholder"):c.emptyOptionsText?X3(c.emptyOptionsText):i("emptyOptionsText")),_=s.computed(()=>c.noResultsText?X3(c.noResultsText):i("noResultsText")),C=s.computed(()=>c.disabled||!M.value),H=s.computed(()=>v.value&&M.value),V=s.computed(()=>c.notClearable||C.value||a.value===y?!1:!!(p.value||a.value)),N=s.computed(()=>!(C.value||V.value)),L=s.computed(()=>{if(H.value&&!(m.value<0))return`${f}-option-${m.value}`});s.watch(g,I),s.watch(k,Y=>{m.value!==-1&&(m.value+1<=Y||(m.value=Y-1))}),s.watch(d,W),s.watch(m,()=>s.nextTick(S));function w(Y){return typeof Y!="object"?Y:Y.id}function P(Y){return typeof Y!="object"?Y.toString():X3(Y[c.descriptionField])}function j(Y){return`${f}-option-${Y}`}function E(){p.value="",T(),v.value=!0}function F(){I(),v.value=!1}function R(Y){var Q,a1,e1,s1,G;const A=Y.key,B=k.value;if(A==="ArrowDown"){if(Y.preventDefault(),!H.value){(Q=u.value)==null||Q.focus();return}m.value=m.value+1>=B?0:m.value+1}else if(A==="ArrowUp"){if(Y.preventDefault(),!H.value){(a1=u.value)==null||a1.focus();return}m.value=m.value<=0?B-1:m.value-1}else if(A==="Home"&&H.value)Y.preventDefault(),m.value=0;else if(A==="End"&&H.value)Y.preventDefault(),m.value=B-1;else if(A==="Enter"){if(!H.value)return;Y.preventDefault();const f1=m.value>=0?m.value:0,k1=x.value[f1];k1&&U(w(k1)),(e1=u.value)==null||e1.blur()}else if(A==="Escape"){if(!H.value)return;Y.preventDefault(),(s1=u.value)==null||s1.blur()}else A==="Tab"&&((G=u.value)==null||G.blur())}function K(){p.value="",U(y)}function Z(){var Y;(Y=u.value)==null||Y.focus()}function U(Y){a.value=Y,n("change",Y)}function I(){const Y=g.value;p.value=Y?P(Y):""}function T(){if(g.value){const Y=x.value;m.value=Y.findIndex(A=>w(A)===w(g.value))}else m.value=-1}function S(){if(!d.value||m.value<0)return;const Y=d.value.querySelector(`#${CSS.escape(j(m.value))}`);Y&&Y.scrollIntoView({block:"nearest"})}function W(){if(!u.value)return;const Y=document.documentElement.clientHeight,A=document.documentElement.clientWidth,B=u.value.getBoundingClientRect(),Q={},a1=B.top<Y/2;a1?Q.top=`${B.bottom+4}px`:Q.bottom=`${Y-B.top+4}px`,Q.left=`${B.left}px`,Q.right=`${A-B.right}px`;const e1=100;Q["max-height"]=a1?`${Y-B.bottom-e1}px`:`${B.top-e1}px`,h.value=Q}return I(),(Y,A)=>(s.openBlock(),s.createBlock(y0,{label:Y.label,withRequiredLabel:Y.withRequiredLabel,withOptionalLabel:Y.withOptionalLabel,withLabelSpace:Y.withLabelSpace,info:Y.info,description:Y.description,errors:Y.errors,grow:Y.grow,inputId:l},{default:s.withCtx(()=>[s.createElementVNode("div",{class:s.normalizeClass(["input-select",{"input-select--open":H.value}])},[s.withDirectives(s.createElementVNode("input",{id:l,ref_key:"inputRef",ref:u,"onUpdate:modelValue":A[0]||(A[0]=B=>p.value=B),type:"text",role:"combobox",autocomplete:"off",autocapitalize:"off",spellcheck:"false","aria-expanded":H.value,"aria-controls":f,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":L.value,placeholder:b.value,disabled:C.value,onFocus:A[1]||(A[1]=B=>E()),onBlur:A[2]||(A[2]=B=>F()),onKeydown:A[3]||(A[3]=B=>R(B))},null,40,hT3),[[s.vModelText,p.value]]),V.value?(s.openBlock(),s.createBlock(m$,{key:0,icon:"x","aria-label":s.unref(i)("clearSelectionAriaLabel"),onMousedown:A[4]||(A[4]=s.withModifiers(B=>K(),["prevent"]))},null,8,["aria-label"])):N.value?(s.openBlock(),s.createBlock(m$,{key:1,class:s.normalizeClass(["input-select__chevron",{"input-select__chevron--open":H.value}]),icon:"chevron-down","aria-label":s.unref(i)("openOptionsAriaLabel"),onMousedown:A[5]||(A[5]=s.withModifiers(B=>Z(),["prevent"]))},null,8,["class","aria-label"])):s.createCommentVNode("",!0),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[H.value?(s.openBlock(),s.createElementBlock("ul",{key:0,id:f,ref_key:"dropdownRef",ref:d,class:"input-select-dropdown",role:"listbox",style:s.normalizeStyle(h.value)},[x.value.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(x.value,(B,Q)=>(s.openBlock(),s.createElementBlock("li",{id:j(Q),key:w(B),class:s.normalizeClass(["dropdown__option",{"dropdown__option--selected":w(B)===a.value,"dropdown__option--active":Q===m.value}]),role:"option","aria-selected":w(B)===a.value,onMousedown:a1=>U(w(B)),onMouseenter:a1=>m.value=Q},[s.createElementVNode("span",mT3,s.toDisplayString(P(B)),1),w(B)===a.value?(s.openBlock(),s.createBlock(U3,{key:0,class:"option__check",icon:"check"})):s.createCommentVNode("",!0)],42,pT3))),128)):(s.openBlock(),s.createElementBlock("li",vT3,s.toDisplayString(_.value),1))],4)):s.createCommentVNode("",!0)]))],2)]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const gT3=Q1(yT3,[["__scopeId","data-v-804c91e6"]]),MT3=s.defineComponent({__name:"PgaMonthPicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");return(a,c)=>(s.openBlock(),s.createBlock(y0,{label:a.label,withRequiredLabel:a.withRequiredLabel,withOptionalLabel:a.withOptionalLabel,withLabelSpace:a.withLabelSpace,info:a.info,description:a.description,errors:a.errors,grow:a.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=n=>t.value=n),monthPicker:"",disabled:a.disabled,notClearable:a.notClearable},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),kT3=s.defineComponent({__name:"PgaRangePicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");function a(c){return M6(c,{format:"short",withTime:!1})}return(c,n)=>(s.openBlock(),s.createBlock(y0,{label:c.label,withRequiredLabel:c.withRequiredLabel,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,info:c.info,description:c.description,errors:c.errors,grow:c.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=r=>t.value=r),range:"",disabled:c.disabled,notClearable:c.notClearable,format:a},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),xT3=["disabled"],bT3=["value"],zT3=s.defineComponent({__name:"PgaSelect",props:s.mergeModels({options:{},descriptionField:{},emptyOptionsText:{},placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){s.useCssVars(o=>({"66f373cd":s.unref(n).input.height,"1791ae2b":s.unref(n).input.padding,"021c5bb1":s.unref(n).input.borderColor,"5a3eca04":s.unref(n).input.borderRadius,"288aa222":s.unref(n).input.backgroundColor,"08197adb":s.unref(n).input.colorFocus,d5de22ea:s.unref(n).input.backgroundColorDisabled}));const a=s.useModel(e,"modelValue"),c=e,{form:n}=O4(),r=s.computed(()=>!!c.options.length),i=s.computed(()=>c.disabled||!r.value);return(o,l)=>(s.openBlock(),s.createBlock(y0,{label:o.label,withRequiredLabel:o.withRequiredLabel,withOptionalLabel:o.withOptionalLabel,withLabelSpace:o.withLabelSpace,info:o.info,description:o.description,errors:o.errors,grow:o.grow},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":l[0]||(l[0]=f=>a.value=f),disabled:i.value},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.options,f=>(s.openBlock(),s.createElementBlock("option",{key:f.id,value:f.id},s.toDisplayString(s.unref(X3)(f[o.descriptionField])),9,bT3))),128))],8,xT3),[[s.vModelSelect,a.value]])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const CT3=Q1(zT3,[["__scopeId","data-v-5a0752bd"]]),_T3={class:"pga-switch"},wT3={key:0,class:"switch__label"},HT3={class:"switch__slider-container"},LT3=["disabled"],VT3={class:"slider__thumb"},ST3=s.defineComponent({__name:"PgaSwitch",props:s.mergeModels({label:{},labelInLine:{type:Boolean},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},disabled:{type:Boolean},fitContent:{type:Boolean},grow:{},updateFn:{type:Function}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t;async function r(i){const o=i.target.checked;if(n("change",o),!!c.updateFn)try{await c.updateFn(),a.value=o}catch{a.value=!o}}return(i,o)=>(s.openBlock(),s.createBlock(y0,{label:i.labelInLine?"":i.label,withRequiredLabel:i.withRequiredLabel,withOptionalLabel:i.withOptionalLabel,withLabelSpace:i.withLabelSpace,info:i.info,description:i.description,fitContent:i.fitContent,grow:i.grow},{default:s.withCtx(()=>[s.createElementVNode("div",_T3,[i.labelInLine&&i.label?(s.openBlock(),s.createElementBlock("label",wT3,s.toDisplayString(i.label),1)):s.createCommentVNode("",!0),s.createElementVNode("label",HT3,[s.withDirectives(s.createElementVNode("input",{class:"switch__input","onUpdate:modelValue":o[0]||(o[0]=l=>a.value=l),type:"checkbox",role:"switch",disabled:i.disabled,onChange:o[1]||(o[1]=l=>r(l))},null,40,LT3),[[s.vModelCheckbox,a.value]]),s.createElementVNode("div",{class:s.normalizeClass(["switch__slider",{"switch__slider--checked":a.value,"switch__slider--disabled":i.disabled}])},[s.createElementVNode("div",VT3,[s.createVNode(U3,{class:"thumb__icon",icon:a.value?"check":"x"},null,8,["icon"])])],2)])])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","fitContent","grow"]))}});const NT3=Q1(ST3,[["__scopeId","data-v-320622fc"]]),AT3={class:"switch-options"},TT3=["onClick"],ET3=s.defineComponent({__name:"PgaSwitchOptions",props:s.mergeModels({items:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},grow:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(c=>({"09ad1bfa":s.unref(a).input.borderRadius,d7a8137a:s.unref(a).input.height,"117e1a0a":s.unref(a).input.borderColor,"02ce9139":s.unref(a).input.backgroundColor,"07bfd251":s.unref(a).input.colorFocus,"61f6af1f":s.unref(a).input.backgroundColorFocus,62132383:s.unref(a).input.backgroundColorHover}));const t=s.useModel(e,"modelValue"),{form:a}=O4();return(c,n)=>{const r=s.resolveComponent("PgaInputGroup");return s.openBlock(),s.createBlock(r,{label:c.label,withRequiredLabel:c.withRequiredLabel,withOptionalLabel:c.withOptionalLabel,withLabelSpace:c.withLabelSpace,info:c.info,description:c.description,errors:c.errors,grow:c.grow},{default:s.withCtx(()=>[s.createElementVNode("div",AT3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.items,(i,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["switch-options__item",{"switch-options__item--first-item":o===0,"switch-options__item--last-item":o+1===c.items.length,"switch-options__item--active":t.value===i.id}]),key:i.id,onClick:l=>t.value=i.id},[s.createVNode(D3,{text:i.label,icon:i.icon},null,8,["text","icon"])],10,TT3))),128))])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"])}}});const DT3=Q1(ET3,[["__scopeId","data-v-e244689f"]]),PT3={class:"textarea-container"},OT3=["placeholder","autofocus","disabled","rows"],IT3={key:0,class:"textarea__footer"},BT3="",RT3=s.defineComponent({__name:"PgaTextarea",props:s.mergeModels({placeholder:{},label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},autofocus:{type:Boolean},disabled:{type:Boolean},grow:{},size:{default:"m"},maxLength:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["change"],["update:modelValue"]),setup(e,{expose:t,emit:a}){s.useCssVars(m=>({"05483451":s.unref(i).input.padding,f1914252:s.unref(i).input.borderColor,"78842b9e":s.unref(i).input.borderRadius,d098a1d6:s.unref(i).input.backgroundColor,"18c30a16":s.unref(i).input.colorFocus,"3a3268b1":s.unref(i).input.backgroundColorDisabled,"93010d20":s.unref(i).input.placeholderColor}));const c=s.useModel(e,"modelValue"),n=e,r=a;t({focus:u});const{form:i}=O4(),o=s.ref(),l=s.ref(BT3),f=s.computed(()=>{if(n.size==="s")return"4";if(n.size==="m")return"5";if(n.size==="l")return"6"});s.watch(c,m=>p(m),{immediate:!0});function u(){var m;(m=o.value)==null||m.focus()}function d(m){return m===""?null:m}function h(m){const y=typeof m>"u"?c.value:m;return y===null?"":y}function p(m){const y=d(m);return c.value=y,l.value=h(y),y}function v(m){const y=p(m);r("change",y)}return(m,y)=>(s.openBlock(),s.createBlock(y0,{label:m.label,withRequiredLabel:m.withRequiredLabel,withOptionalLabel:m.withOptionalLabel,withLabelSpace:m.withLabelSpace,info:m.info,description:m.description,errors:m.errors,grow:m.grow},{default:s.withCtx(()=>[s.createElementVNode("div",PT3,[s.withDirectives(s.createElementVNode("textarea",{ref_key:"textareaRef",ref:o,"onUpdate:modelValue":y[0]||(y[0]=g=>l.value=g),class:s.normalizeClass(["textarea",{"textarea--disabled":m.disabled}]),placeholder:s.unref(X3)(m.placeholder),autofocus:m.autofocus,disabled:m.disabled,rows:f.value,onInput:y[1]||(y[1]=g=>v(l.value))},null,42,OT3),[[s.vModelText,l.value]]),m.maxLength?(s.openBlock(),s.createElementBlock("div",IT3,[s.createVNode(LX,{class:"footer__max-length",content:c.value,maxLength:m.maxLength},null,8,["content","maxLength"])])):s.createCommentVNode("",!0)])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}});const FT3=Q1(RT3,[["__scopeId","data-v-b0a18893"]]),$T3=s.defineComponent({__name:"PgaYearPicker",props:s.mergeModels({label:{},withRequiredLabel:{type:Boolean},withOptionalLabel:{type:Boolean},withLabelSpace:{type:Boolean},info:{},description:{},errors:{},disabled:{type:Boolean},grow:{},notClearable:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue");return(a,c)=>(s.openBlock(),s.createBlock(y0,{label:a.label,withRequiredLabel:a.withRequiredLabel,withOptionalLabel:a.withOptionalLabel,withLabelSpace:a.withLabelSpace,info:a.info,description:a.description,errors:a.errors,grow:a.grow},{default:s.withCtx(()=>[s.createVNode(_u,{modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=n=>t.value=n),yearPicker:"",disabled:a.disabled,notClearable:a.notClearable},null,8,["modelValue","disabled","notClearable"])]),_:1},8,["label","withRequiredLabel","withOptionalLabel","withLabelSpace","info","description","errors","grow"]))}}),qT3="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJOCAIAAAG3nMQ3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MEY3NjIxREQxMkEwMTFFNjg4QjdFMzIwQjE1Q0RCNTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MEY3NjIxREUxMkEwMTFFNjg4QjdFMzIwQjE1Q0RCNTMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowRjc2MjFEQjEyQTAxMUU2ODhCN0UzMjBCMTVDREI1MyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowRjc2MjFEQzEyQTAxMUU2ODhCN0UzMjBCMTVDREI1MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pucw4KEAABZ4SURBVHja7NfLasJAGAZQI6Kv4UJBK0V04fvvpCJKEa1gF32NuNGxAYmXhVllTM7HQIZhFsnhn0uS+deyIa+liQAWLFiwYMFCAAsWLFiwYCGABQsWLFiwEMCCBQsWLFgIYMGCBauaaZX+BvvD3+uTB/1ufbEWq23R+bPpqL6VVejji+JWDetCsN41TqeicHXd4P+lQjY/v/nhND2GBus2SZI9P4e9vNT39hBaPF5RLMPZ5ONuJJPK+qEzHvU7nbbKepK81NUrhvqKCCucdKE9Sl29YN3fCWJAiRqr3NuTf8MKn4Zx30UjwnqXNVg+1rvUlD0LFixYsGAJLFiwYMGCJbBgwYIFC5bAggULFixYAgsWLFiwKp2zAOzcQQsBQRgG4JRCyYYoalsH5f//FqWUAym/gDhSSiJ2N4cZu8/bXPfy9M3OzOVtaMA1WbBgwYIFCwEsWLBgwYKFABYsWLBgwUIACxYsWLBgIYAFCxYsWLVP4C6a7f5wuRTtp8vSSafdqilW2X6j5WoTtikx8GQt5lnS6xbHPZ7O9cV6GTENuDn50qkZWw9ZeKxP2+ouFZVXpJ1/z0Zha80jvWc9gN6nKZL5akYlFXlZolLXqpyGsLwNf7s6aMDNz3jUX292pT4ZDpKaYs3S6W390Tb0z4IFCxYsWAILFixYsGAJLFiwYMGCJbBgwYIFC5bAggULFqyK5ioAe/evojAMAHAY/+FTuMi56HDc4vu/goPDcdJFV0Xl5KiTlUBvsVI1RTTftxWkYvmZxAzGP+DiW4iwEBYIC2EhLBAWwkJYICyEhbBAWAgLYYGwEBbCAmEhLIQFwkJYCAuEhbAQFggLYZGCbrKfPM+Ps/lP0+/yKgedCSuaUNVNJ1XfJBxhud7snnvam7Ceb/6dHQ5/iY801ljxB5iyqnC52/96LEas+Dqddp312edkVHXevLA4z32LbLnZ7s8Xrdb0a1xzyR8u5SWsSh/Dwd2/IuUlrLo/6MolfP2NifAyC39hVSZ18RJhPZoUthsiKCY7D8GI1Yhi3e0hGLGiWWSr6MNVccPynv1+L80Hm/SRJ/8bV42NgsnuPiQ9FV7fuMJUiLAQFggLYSEsEBbCQlggLISFsEBYCAthgbAQFsICYSEshAXCQlgIC4SFsBAWCAth8UZOArBzLy0JRGEAhhNCpYttImjThbJCiaBF/3/toohQMA0rokXRxS6ULZqCgSGKVGKm23me1aFA6fDyzWkGDfprjDCxEBYIC2EhLIRlCxAWwkJYICyEhbBAWAgLYYGwEBbCAmEhLIQFwkJYCAuEhbAQFggLYSEsEBbCQlggLISFsEBYCAthgbAQFsICYSEshAXCQlgIC4SFsBAWCAthISwQFsJCWCAshMU/MhryH9/rPXWOT7N45WIxPzszXSjkhRWc2nY9uxe/ub0/O7/aqJaDbSvQS+HrrPqGd9mtt0yssDxHUbzY2qxmFG7IVTm8Y2Jlf3FMZkxldXFifMyemFgpX7kazc7FZde2CCv9U/bB4YltEdYPqO009g+O7YOwUq5qJIquu7faElY/G9Xyu5+sLs/3rypea0tY/RQK+bdtrVeWp0oTA6vSltsNQ7U18Gbpx6retrWyNGcbTawvnqs++625JazBujd37x4m9q9KW8Iaqqpm+2i33kraGqaqpK3vebwtrD9ZVbyO2xq+KhzeB1eVtGVbTKyUq0JYqhLWr6QqYSEs/FcYuI8PoRFWCkL+AKCwUj0B5HLx4uGxl6xT1Gh2hBX0iNprtLN7l9LkuMO7c1X6Va2VF0ysEIdWRp9WZcTtBoSFsBCWLUBYCAthgbAQFsICYSEshAXCQlgIC4SFsBAWCAthISwQFsJCWCAshIWwQFgIC2GBsBAWwgJhISyEBcJCWAgLhIWwEBYIC2EhLBAWwkJYICyEhbBAWAgLYYGwEBbCAmHxA14EYO/uX5oIAwCO3+k2EV+RWmqzJCaBQsN+6P//LYoI/GHCULS07A3C+UJZq/XoxbIszfNq3vx8ENl0oLuD7z3P7V7ih4+eWAqALSGAYAGCBSBYAIIFCBaAYAEIFiBYAIIFIFiAYAEIFoBgAYIFIFgAggUIFoBgAQgWIFgAggUgWIBgAQgWgGABggUgWIBgAQgWgGABggUgWACCBQgWgGABCBYgWACCBSBYgGABCBaAYAGCBSBYAIIFCBaAYAEIFiBYAIIFIFiAYAEIFoBgAYIFIFiAYAEIFkB2ChbBFXRw8Gm5sf651crrG4jj2nx1YKBkVQoWPa7eWNvf/5Dv99BuL9VXioXC4r27Vqhg0ctjq+O1GhoarM5WcvT/b7588357J3kcRojNnb2x0WGrVbDoTV/b7eNPK1PlfE2sZm7e6AQraLW+WKeCBYdjsVC33b39/r7+4aHB8BP7jBAsLl2nluorf/rtxPho9c6MpUS3OKyBH7Zevz2lVkGYjj1+Wg9Rs6wQLLo8tnqx9e5vXrm+sXXBP7S6tql6mBLyX7ZyfSm3c4fzzeXV6GjHfxisjY+N3K5M2jWGYHFuIRyzt6aebbw685WhMhdJVcd2czd8yRaCRRrlaxNjI8Mny9JRmb4+PVm+eKpkC8Eim3HWg8X5JDTR0cGZ4XuxUEiRkjNTJVsIFpmVK0p77NW5UiVbCBbdkTpVsoVgkZnmzl5j9XnyuLYwd7IjmaRKthAsMktVIjm4tJOtzFP1S7ZSfCiJYCFV0clsRXH8j1IFgkUGqfqJWiFY5CBVIFh0y+nXaYDLwMnPgGABCBZwZdmHxXeHZxHeX7AcMMICMMLivBuoOD7+NO9HMCR3x8AIi56d99UW5oqF/G+o4vi3pzRihEWvNSu5YXJyxauPubq2eqlUDINEnRIsrmK5IncbxJQQQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECcuSbAOzdXW8SWQCAYalUWlsFRN2mIau7UpvQmMYb//+dMdFEk3U/NNtt2i4qVPqJFAqtozXEoNvFQZCZeZ6LphASZuaEt+cMA009fPTYUQDMsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAgQLQLAABAsQLIBJlXYIkqnVah82mju7+51uNzJ/XaemCvns/NxsJnPJCAoWSfG2vvf3+lYUt3x37yD4WVy8UcjnZMuSkPirvK5GtFY9W5Xa5r9vDKVgEf+VYPBqj8GO1Hf3g30xoIJFnMVpYvJibcOAJo1zWMlS/3gOqGd1ZSla2//s+cve781my4AKFrF2evr5LeetsSQEECzAkhD6nL0Bd9hodk+6l2dnptNpi0cEi0l02Hj3+1//9N05Nzdbul2ULSwJmSDrm5UvaxVoNJrPnr906ROCxaR4W9+r1nbOeYBmIVhMhKBEg3xk51V127FCsPjBjgabOp0/BQPBYhze1OqDz8WGXHhaVyJYDOW40xnDs5x9s41zYQgWQ5lOj/wal8+/h0uzECzCW1y4PuAjw12NVd2u953U1ywEi9HOsIqLN8LVan3j1Zf3axaCRRjBvGm5dOt/HpRKFfK571UrzUKwCC97df78CdRqufSt68Hza6VZCBbhLS7cvFcuBTOpvvuv5a6uriyNolaaxeB8+Jl+szOZB/fLQT5OTk/b7eOZj5EKcaJ98Fr1mhWiiZhhwYdCBeUKFonBL2OolXkWgsWPEa5WmoVgEaVaaRaCRZRqpVkIFsMK8vHk6Z/rm5Ux1EqzECyGqtVvf6x1T7rV2s5/Nev71kqzECyGqtWnMH2tWaOo1ZngqQ0BgkWYWn21WaOrFQgWQ9Wqr1lqxTi50p1vrlWvWUdH7f2DhmOFGRYTXaszaoVgEY1agWChViBYqBWChVqBYDFuL9Y21ArBAhAsQLAABAtAsADBApgoPvzMJ3d//dlBQLCIBv8QEEtCAMECLAmJt+l0+rjT6d2sbtezV+ajsvGHjaYRFCwS5Keb+a1KrXcz0t9unMteMaCWhMRZIZ+Lzb7cKi4YUMEizjKZS+XlX2KwI3duF72tKVjE3/zc5dWVpQupVHR34V65VLiWNZQJ5BxWQudZD+6XW632cafT7Z5EZbMvXpyaTqcvuGRMsEhmtrzysSQEECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsILneC9De/f80cccBHG7pwfUoBCpfRGTYscy5Zf//v7As2W9LyCSbsg4BKaRgW0pL4Xaui9kUqwjtleN5cj9cPDzMW01f9O4+zf/08y+mAADgJ0IAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAEFgAAAILAACBBQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwAAgQUAILAAAAQWAAACCwBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAAjFRgB3E+dTtcQhi0MpwwBBBaQ8aK6jOPXtaN6vXHe6xnIaBQmCrOz06sri5NBoLdAYAGZSquj+vHObs0oRu/i8uL4pJFsyf783OyTtZWcd7ZAYAF3Pa3Oe73Nre1cHJtG6vqlVVl/NJeb0ViQbW5yhyzX1Vmnu/n8pboaK9vVvaP6sXvgINu8gwVZVn21P+DoZBBEUWhKw3De67XbnY8d3dk7XCjPmxIILOBOGvAa/01lbaYUuVA1JP1HCn7d/P3qw3HcbLUNHzLMJULIrMuBVwaDoOAFfniS2U7k8+YAAgsAAIEFADCW3IMFfFr/kbezTrd2WG80Tz9cp3QyCEql6OHSg+I/lx1dfAQEFsCgtHq7SOne4eC1HpLkerecZi6fX3u02H9KTmkBAgvgf2m1d3B4UKtf+3fG8c5uLdmWl8qPlhc1FiCwAP6tq83nL2/4kYVJnNXrjWdPK1HRalvA/eImd+CKutp6Ub2VD4ROTvLb1rZVywGBBdz3uto7OBywQukXNFZywnQbK/nu/c3fLzAaLhEC72udno35Ca+VVs1W+48/X+XieH5u9snaSs6t94DAArh5WvV/pf+co8wCBBaQgvLcTKvVvsUTlqaLI06rk0Zz+6/9K5eWkFmAwAJGLQmOhfL8Uf3Nbd2GFUXhyBZrGJxWMgsQWECajfV0Y33rRfXmjZXUVXKqEeTL56eVzAIEFpBmY71NlureF59kbXVpoTw/7Gr5srSSWYDAAtJprOXwwdzsTLPVru7sf/6yWJNBsL62MlOKxj+tZBYgsIB0MivZklpK9i/juH58Uj9pnrW7F5cX776mMFEoRlOl6eLDpYWJfH4EdXK7aSWzAIEFpJNZ/Z1oZXl1ZTnFP8nw0kpmAQILuHdGk1YyCxBYgLSSWYDAArg7aSWzAIEFjFEVnXW69ZM3N1lfdHzSSmYBAgtIP61+f7HTf8bwoFZfXipfN7PGM61kFiCwgJTT6p2ksT4/s8Y/rT6WWRoLEFjAKNLqWpl1t9LqvxqNU/8GAIEFjDStPplZdzetAAQWkGZafSyzpBUgsABulFYfZpZ5AgILkFa3kFYAAgtAWgEILEBaAQgsQFoBCCxAWgEwyIQRAO+pvtpXVwACCwBAYAEACCwAAAQWAIDAAgDIBMs0AO+bDIJe4ClCAIEF3JIwnHr2bcUcAG7CJUIAAIEFACCwgHT+e+fzA462Tk87na4pDUn/E4cGfEEQFEwJMsw9WJBlpVLUarWvPLSzW0s2I0rFZBAUwylzgCz/iGsEkFVhOLXx5HFhwjslY2ej8tgQQGABd1VUDH/8fiOKQqMYE0nv/vDd18VwKvQOFmSaS4SQcckL+dON9fNe72V1t93uGEhaJoNgo/JYWoHAArLTWP3MSvYv4/h17ajRPG2fdXNxbDjDjqrZmemlxXL/jitpBQILyGBm9XcqX62aBsBQuQcLAEBgAQAILAAAgQUAgMACABBYAAACCwAAgQUAILAAAAQWAAACCwBAYAEACCwAAIEFAIDAAgAQWAAAAgsAAIEFACCwAAAEFgAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAILAACBBQAgsAAABBYAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAAAQWAAACCwBAYAEACCwAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABAAgsAAAEFgCAwAIAEFgAAAgsAACBBQAgsAAAEFgAAAILAEBgAQAILAAABBYAgMACABBYAAAILAAAgQUAILAAABBYAAACCwBAYAEAILAAAAQWAIDAAgAQWAAACCwAAIEFACCwAAAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQAgsAAAEFgAAAILAEBgAQAgsAAABBYAgMACAEBgAQAILAAAgQUAgMACABBYAAACCwBAYAEAILAAAAQWAIDAAgBAYAEACCwAAIEFAIDAAgAQWAAAAgsAQGABACCwAAAEFgCAwAIAQGABAAgsAACBBQCAwAIAGLm/AW3rpsB12Oi5AAAAAElFTkSuQmCC",jT3=["src"],UT3=["src"],Xa1="/cdn",WT3=s.defineComponent({__name:"PgaImage",props:s.mergeModels({image:{},defaultImage:{},uploadFn:{},deleteFn:{},buttonsLayout:{default:"vertical"},size:{},height:{},width:{},borderRadius:{},rounded:{type:Boolean}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){s.useCssVars(k=>({e20df630:o.value}));const t=s.useModel(e,"modelValue"),a=e,c=$2("pgaFile"),n=s.ref(!1),r=s.ref(),i=s.ref(),o=s.ref("0"),l=s.ref(!1),f=s.ref(!1),u=s.computed(()=>a.image?`${Xa1}/${a.image}`:t.value),d=s.computed(()=>!t.value&&!a.image?!0:n.value),h=s.computed(()=>a.defaultImage?`${Xa1}/${a.defaultImage}`:qT3),p=s.computed(()=>{const k=[];return a.size?k.push({height:a.size,width:a.size}):(a.height&&k.push({height:a.height,width:"auto"}),a.width&&k.push({height:"auto",width:a.width}),a.height&&a.width&&k.push({height:a.height,width:a.width})),k}),v=s.computed(()=>{const k=[];return a.rounded?k.push({borderRadius:"100%"}):a.borderRadius&&k.push({borderRadius:a.borderRadius}),k});s.watch(u,()=>n.value=!1);function m(){n.value=!0}async function y(){var k;(k=i.value)==null||k.click()}async function g(k){var b;(b=i.value)==null||b.resetInput();try{l.value=!0,t.value=await a.uploadFn({file:k})}finally{l.value=!1}}async function M(){try{f.value=!0,await a.deleteFn(),t.value=null}finally{f.value=!1}}function x(){if(!r.value)return;const k=r.value.getBoundingClientRect();a.buttonsLayout==="horizontal"&&(o.value=`${k.height}px`),a.buttonsLayout==="vertical"&&(o.value=`${k.width}px`)}return s.onMounted(()=>{r.value&&new ResizeObserver(x).observe(r.value)}),(k,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["img-wrapper",[`img-wrapper--${k.buttonsLayout}`]])},[s.createElementVNode("div",{class:"img-container",style:s.normalizeStyle(p.value)},[d.value?(s.openBlock(),s.createElementBlock("img",{key:0,class:"img",src:h.value,style:s.normalizeStyle(v.value)},null,12,jT3)):(s.openBlock(),s.createElementBlock("img",{key:1,class:"img",src:u.value,style:s.normalizeStyle(v.value),onError:b[0]||(b[0]=_=>m())},null,44,UT3))],4),k.uploadFn||k.deleteFn?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"imgButtonsRef",ref:r,class:s.normalizeClass(["img-buttons",[`img-buttons--${k.buttonsLayout}`]])},[k.uploadFn?(s.openBlock(),s.createBlock(V2,{key:0,variant:"flat",size:"s",icon:"camera",isLoading:l.value,onClick:b[1]||(b[1]=_=>y())},null,8,["isLoading"])):s.createCommentVNode("",!0),k.uploadFn?(s.openBlock(),s.createBlock(Wf,{key:1,ref_key:"inputFileRef",ref:i,class:"input-file",type:"image",onNewFile:b[2]||(b[2]=_=>g(_))},null,512)):s.createCommentVNode("",!0),!d.value&&k.deleteFn?(s.openBlock(),s.createBlock(iq,{key:2,withoutText:"",confirmDeleteText:s.unref(c)("confirmDeleteImage"),isLoading:f.value,onDeleteConfirmed:b[3]||(b[3]=_=>M())},null,8,["confirmDeleteText","isLoading"])):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0)],2))}});const $k1=Q1(WT3,[["__scopeId","data-v-f159264d"]]),YT3=["src"],GT3=s.defineComponent({__name:"PgaImagesFullScreen",props:s.mergeModels({sources:{}},{isActive:{type:Boolean,required:!0},isActiveModifiers:{},indexSelected:{required:!0},indexSelectedModifiers:{}}),emits:["update:isActive","update:indexSelected"],setup(e){const t=s.useModel(e,"isActive"),a=s.useModel(e,"indexSelected"),c=e,n=s.computed(()=>c.sources.length),r=s.computed(()=>c.sources[a.value]);function i(){a.value=(a.value-1+n.value)%n.value}function o(){a.value=(a.value+1)%n.value}return(l,f)=>{const u=s.resolveComponent("PgaButton");return t.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"pga-images-full-screen",onMousedown:f[4]||(f[4]=d=>t.value=!1)},[s.createElementVNode("div",{class:"image-container",onMousedown:f[3]||(f[3]=s.withModifiers(()=>{},["stop"]))},[s.createVNode(u,{class:"image__close-btn",icon:"x",variant:"filled",color:"grey",size:"l",heightAndWidth:"3rem",rounded:"",onClick:f[0]||(f[0]=d=>t.value=!1)}),n.value>1?(s.openBlock(),s.createBlock(u,{key:0,class:"image__left-btn",icon:"chevron-left",variant:"filled",color:"grey",size:"l",heightAndWidth:"3rem",rounded:"",onClick:f[1]||(f[1]=d=>i())})):s.createCommentVNode("",!0),n.value>1?(s.openBlock(),s.createBlock(u,{key:1,class:"image__right-btn",icon:"chevron-right",variant:"filled",color:"grey",size:"l",heightAndWidth:"3rem",rounded:"",onClick:f[2]||(f[2]=d=>o())})):s.createCommentVNode("",!0),s.createElementVNode("img",{class:"image",src:r.value},null,8,YT3)],32)],32)):s.createCommentVNode("",!0)}}});const ZT3=Q1(GT3,[["__scopeId","data-v-00eea57b"]]),XT3={class:"pga-images"},KT3={class:"images"},QT3=["src","onClick"],JT3={key:0,class:"images__input-container"},eE3=s.defineComponent({__name:"PgaImages",props:s.mergeModels({maxImagesQuantity:{},uploadFn:{type:Function},deleteFn:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=e,c=$2("pgaFile"),n=s.ref(),r=s.ref(!1),i=s.ref(-1),o=s.ref({isActive:!1,indexSelected:0}),l=s.computed(()=>t.value.length),f=s.computed(()=>t.value.map(p=>typeof p=="string"?p:URL.createObjectURL(p)));async function u(p){var v;if((v=n.value)==null||v.resetInput(),l.value+p.length>a.maxImagesQuantity&&(p=p.slice(0,a.maxImagesQuantity-l.value),W4.Add("warning",()=>c("maxImagesQuantityAlert",{maxQuantity:a.maxImagesQuantity}))),!a.uploadFn){t.value.push(...p);return}try{r.value=!0,t.value=await a.uploadFn({file:p})}finally{r.value=!1}}async function d(p){if(a.deleteFn)try{i.value=p,await a.deleteFn({index:p})}finally{i.value=-1}t.value.splice(p,1)}async function h(p){o.value.indexSelected=p,o.value.isActive=!0}return(p,v)=>(s.openBlock(),s.createElementBlock("div",XT3,[s.createVNode(ZT3,{isActive:o.value.isActive,"onUpdate:isActive":v[0]||(v[0]=m=>o.value.isActive=m),indexSelected:o.value.indexSelected,"onUpdate:indexSelected":v[1]||(v[1]=m=>o.value.indexSelected=m),sources:f.value},null,8,["isActive","indexSelected","sources"]),s.createElementVNode("div",KT3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(f.value,(m,y)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:"images__image-container"},[s.createElementVNode("img",{class:"images__img",src:m,onClick:g=>h(y)},null,8,QT3),s.createVNode(iq,{class:"images__delete-btn",variant:"filled",withoutText:"",withoutConfirm:"",isLoading:i.value===y,onDeleteConfirmed:g=>d(y)},null,8,["isLoading","onDeleteConfirmed"])]))),128)),l.value<p.maxImagesQuantity?(s.openBlock(),s.createElementBlock("div",JT3,[s.createVNode(Wf,{ref_key:"inputFileRef",ref:n,class:"images__input",type:"image",multiple:"",label:s.unref(c)("selectImages"),isLoading:r.value,onNewFiles:v[2]||(v[2]=m=>u(m))},null,8,["label","isLoading"])])):s.createCommentVNode("",!0)]),s.createElementVNode("span",null,s.toDisplayString(`${l.value} / ${p.maxImagesQuantity}`),1)]))}});const tE3=Q1(eE3,[["__scopeId","data-v-f910d2a2"]]),aE3=s.defineComponent({__name:"PgaInfoPanelItem",props:{title:{},info:{},fullWidth:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-info-panel-item",{"pga-info-panel-item--full-width":t.fullWidth}])},[s.createVNode(D3,{class:"item__title",text:t.title,fontSize:"0.9rem",color:"second"},null,8,["text"]),s.createVNode(D3,{class:"item__info",text:t.info,fontSize:"1rem",color:"first"},null,8,["text"])],2))}});const cE3=Q1(aE3,[["__scopeId","data-v-d9777c05"]]),nE3={class:"pga-info-panel"},rE3=s.defineComponent({__name:"PgaInfoPanel",props:{details:{}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",nE3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.details,(c,n)=>(s.openBlock(),s.createBlock(cE3,{key:n,title:c.title,info:c.info,fullWidth:c.fullWidth},null,8,["title","info","fullWidth"]))),128))]))}});const iE3=Q1(rE3,[["__scopeId","data-v-1e0ac7f7"]]),oE3={class:"pga-breadcrumb","aria-label":"breadcrumb"},sE3={class:"breadcrumb__list"},lE3=["aria-current"],fE3={key:2,class:"list__separator"},uE3=s.defineComponent({__name:"PgaBreadcrumb",props:{items:{}},setup(e){const t=e,a=s.computed(()=>t.items.length);return(c,n)=>(s.openBlock(),s.createElementBlock("nav",oE3,[s.createElementVNode("ol",sE3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.items,(r,i)=>(s.openBlock(),s.createElementBlock("li",{key:i,class:"list__item","aria-current":i+1===a.value?"page":null},[i+1<a.value&&r.route?(s.openBlock(),s.createBlock(Yf,{key:0,name:r.route.name,params:r.route.params,query:r.route.query,color:"link",underline:""},{default:s.withCtx(()=>[s.createVNode(D3,{text:r.label},null,8,["text"])]),_:2},1032,["name","params","query"])):(s.openBlock(),s.createBlock(D3,{key:1,text:r.label},null,8,["text"])),i+1<a.value?(s.openBlock(),s.createElementBlock("span",fE3,">")):s.createCommentVNode("",!0)],8,lE3))),128))])]))}});const dE3=Q1(uE3,[["__scopeId","data-v-a9f7d36c"]]),qk1=s.defineComponent({__name:"PgaLogo",setup(e){const t=Te.getConfig(),{layout:a}=O4();return(c,n)=>(s.openBlock(),s.createBlock(Yf,{name:s.unref(t).routerHelpers.getDefaultRouteName()},{default:s.withCtx(()=>[s.createVNode($k1,{image:"images/logo.png",height:s.unref(c4.multiplyWithUnits)(s.unref(a).headerHeight,.8)},null,8,["height"])]),_:1},8,["name"]))}}),hE3={class:"header__content"},pE3={class:"content__side"},mE3={class:"content__side"},vE3=s.defineComponent({__name:"PgaHeader",props:{hideChangeThemeBtn:{type:Boolean}},setup(e){const t=jo.useRouter(),a=$2("pgaLayout","header"),{theme:c}=s0.storeToRefs(g6()),{isDisplayingBanner:n,isSideBarOpen:r,noDisplayNavBars:i,currentRoute:o}=s0.storeToRefs(H6()),l=s.computed(()=>{var f;return!!o.value&&!!((f=window.history.state)!=null&&f.back)});return(f,u)=>{const d=s.resolveDirective("tooltip");return s.openBlock(),s.createElementBlock("header",{class:s.normalizeClass(["pga-header",{"pga-header--with-banner":s.unref(n)}])},[s.createElementVNode("div",hE3,[s.createElementVNode("div",pE3,[l.value?(s.openBlock(),s.createBlock(V2,{key:0,icon:"arrow-left",size:"l",color:"first",onClick:u[0]||(u[0]=h=>s.unref(t).back())})):s.createCommentVNode("",!0),s.unref(i)?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(V2,{key:1,icon:"menu",size:"l",color:"first",onClick:u[1]||(u[1]=h=>r.value=!s.unref(r))})),s.createVNode(qk1,{class:"content__logo"})]),s.createElementVNode("div",mE3,[f.hideChangeThemeBtn?s.createCommentVNode("",!0):s.withDirectives((s.openBlock(),s.createBlock(V2,{key:0,icon:"sun-moon",size:"l",color:"first",onClick:u[2]||(u[2]=h=>s.unref(g6)().changeTheme())},null,512)),[[d,s.unref(c)==="light"?s.unref(a)("switchToDarkMode"):s.unref(a)("switchToLightMode")]]),s.useSlots().userMenu?s.renderSlot(f.$slots,"userMenu",{key:1},void 0,!0):s.createCommentVNode("",!0)])])],2)}}});const yE3=Q1(vE3,[["__scopeId","data-v-8fb7fe3b"]]),gE3={class:"side-bar__header"},ME3={class:"side-bar__content"},kE3=["textContent"],xE3={class:"section__buttons"},bE3={class:"button__name-container"},zE3={class:"button__icon-container"},CE3=["textContent"],_E3=s.defineComponent({__name:"PgaSideBar",props:{headerAndBannerHeight:{},routes:{},navSections:{}},setup(e){s.useCssVars(d=>({"4a46e456":d.headerAndBannerHeight}));const t=e,a=Te.getConfig(),{routeType:c,isDisplayingBanner:n,isSideBarOpen:r,isDisplayingSideBar:i}=s0.storeToRefs(H6()),o=s.computed(()=>MX(t.routes)),l=s.computed(()=>kX(t.navSections,o.value)),f=s.computed(()=>a.i18n[`${c.value}NavSections`]);s.watch(r,d=>{d&&!Vo()||If(!d)},{immediate:!0});function u(){Vo()&&setTimeout(()=>r.value=!1,a.delayTime)}return(d,h)=>{const p=s.resolveComponent("PgaButton"),v=s.resolveComponent("RouterLink");return s.unref(i)?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["pga-side-bar",{"pga-side-bar--with-banner":s.unref(n)}])},[s.createElementVNode("div",gE3,[s.createVNode(p,{icon:"x",size:"l",color:"first",onClick:h[0]||(h[0]=m=>r.value=!1)})]),s.createElementVNode("div",ME3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,m=>(s.openBlock(),s.createElementBlock("div",{key:m.name,class:"side-bar__section"},[f.value(m.name)?(s.openBlock(),s.createElementBlock("span",{key:0,class:"section__title",textContent:s.toDisplayString(f.value(m.name))},null,8,kE3)):s.createCommentVNode("",!0),s.createElementVNode("div",xE3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(J$)(o.value,m.name),y=>(s.openBlock(),s.createBlock(v,{key:y.name,class:"section__button",to:{name:y.name},onClick:h[1]||(h[1]=g=>u())},{default:s.withCtx(()=>[s.createElementVNode("div",bE3,[s.createElementVNode("div",zE3,[s.createVNode(U3,{icon:y.meta.icon},null,8,["icon"])]),s.createElementVNode("span",{textContent:s.toDisplayString(s.unref(Uf)(s.unref(c),y.name))},null,8,CE3)]),s.unref(Vo)()?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(rq,{key:0,info:y.meta.info},null,8,["info"]))]),_:2},1032,["to"]))),128))])]))),128))])],2)):s.createCommentVNode("",!0)}}});const wE3=Q1(_E3,[["__scopeId","data-v-431f5f7c"]]),HE3={key:0,class:"pga-bottom-bar"},LE3={class:"bottom-bar__content"},VE3={class:"router-link__icon-container"},SE3={class:"router-link__name"},NE3=s.defineComponent({__name:"PgaBottomBar",props:{routes:{},navSections:{}},setup(e){const t=e,{routeType:a,noDisplayNavBars:c}=s0.storeToRefs(H6()),n=s.computed(()=>MX(t.routes,!0)),r=s.computed(()=>kX(t.navSections,n.value)),i=s.computed(()=>{let o=[];for(const l of r.value)o=o.concat(J$(n.value,l.name));return o});return(o,l)=>{const f=s.resolveComponent("RouterLink");return s.unref(c)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",HE3,[s.createElementVNode("div",LE3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,u=>(s.openBlock(),s.createBlock(f,{key:u.name,class:"bottom-bar__router-link",to:{name:u.name}},{default:s.withCtx(()=>[s.createElementVNode("div",VE3,[s.createVNode(U3,{class:"router-link__icon",icon:u.meta.icon},null,8,["icon"])]),s.createElementVNode("span",SE3,s.toDisplayString(s.unref(Uf)(s.unref(a),u.name)),1)]),_:2},1032,["to"]))),128))])]))}}});const AE3=Q1(NE3,[["__scopeId","data-v-44018ed5"]]),jk1=e=>(s.pushScopeId("data-v-1539794c"),e=e(),s.popScopeId(),e),TE3={class:"pga-footer"},EE3={class:"footer__content"},DE3={class:"footer__brand"},PE3=jk1(()=>s.createElementVNode("div",{class:"footer__divider"},null,-1)),OE3={class:"footer__info"},IE3={class:"footer__text"},BE3=["textContent"],RE3={class:"footer__text footer__text--secondary"},FE3=["textContent"],$E3=jk1(()=>s.createElementVNode("span",null,s.toDisplayString(" "),-1)),qE3="Raselli, Gianfranco",jE3="https://gianfrancoraselli.com",UE3=s.defineComponent({__name:"PgaFooter",setup(e){const t=$2("pgaLayout","footer"),a=new Date().getFullYear();return(c,n)=>(s.openBlock(),s.createElementBlock("footer",TE3,[s.createElementVNode("div",EE3,[s.createElementVNode("div",DE3,[s.createVNode(qk1)]),PE3,s.createElementVNode("div",OE3,[s.createElementVNode("span",IE3,[s.createElementVNode("span",{textContent:s.toDisplayString(`${s.unref(t)("allRightsReserved")} ® ${s.unref(Te).getConfig().appName} ${s.unref(a)}`)},null,8,BE3)]),s.createElementVNode("span",RE3,[s.createElementVNode("span",{textContent:s.toDisplayString(s.unref(t)("designedBy"))},null,8,FE3),$E3,s.createVNode(Bn1,{class:"footer__link",text:qE3,href:jE3})])])])]))}});const WE3=Q1(UE3,[["__scopeId","data-v-1539794c"]]),YE3=window.location.origin,GE3=window.location.protocol,$o=window.location.host,HZ=$o.includes("localhost")?$o.split(".").slice(-1)[0]:$o.split(".").slice(-2).join("."),ZE3=$o===HZ?void 0:$o.replace(`.${HZ}`,""),XE3=e=>(s.pushScopeId("data-v-3034e12c"),e=e(),s.popScopeId(),e),KE3={key:0,class:"layout__banner"},QE3={class:"layout__content"},JE3={key:0,class:"layout__overview"},eD3={class:"overview__title"},tD3=XE3(()=>s.createElementVNode("span",{class:"overview__separator"},"|",-1)),aD3={class:"overview__description"},cD3=s.defineComponent({__name:"PgaLayout",props:{hideChangeThemeBtn:{type:Boolean},routes:{},navSections:{}},setup(e){s.useCssVars(y=>({"83e2507c":u.value,"5ea8ab53":h.value,e310a628:d.value,"5c18b62a":p.value,"6d2e3db8":v.value,"52c307ae":m.value}));const{layout:t}=O4(),{routeTitle:a,withTitle:c,description:n,isDisplayingBanner:r,noDisplayNavBars:i,isDisplayingSideBar:o,useFullPage:l,noPaddingX:f}=s0.storeToRefs(H6()),u=s.computed(()=>l.value?"100vh":"auto"),d=s.computed(()=>c4.sumWithUnits(t.headerHeight,t.bannerHeight)),h=s.computed(()=>l.value?"hidden":"visible"),p=s.computed(()=>l.value?"var(--pga-layout-padding-y)":"var(--pga-layout-padding-bottom)"),v=s.computed(()=>f.value?"none":"var(--pga-layout-padding-x)"),m=s.computed(()=>f.value?"none":"var(--pga-layout-padding-x-small-devices)");return(y,g)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["pga-layout",{"pga-layout--with-banner":s.unref(r),"pga-layout--with-nav-bars":!s.unref(i),"pga-layout--side-bar-open":s.unref(o)}])},[s.unref(r)?(s.openBlock(),s.createElementBlock("div",KE3,[s.renderSlot(y.$slots,"banner",{},void 0,!0)])):s.createCommentVNode("",!0),s.createVNode(yE3,{hideChangeThemeBtn:y.hideChangeThemeBtn},s.createSlots({_:2},[s.useSlots().userMenu?{name:"userMenu",fn:s.withCtx(()=>[s.renderSlot(y.$slots,"userMenu",{},void 0,!0)]),key:"0"}:void 0]),1032,["hideChangeThemeBtn"]),y.routes&&y.navSections?(s.openBlock(),s.createBlock(wE3,{key:1,headerAndBannerHeight:d.value,routes:y.routes,navSections:y.navSections},null,8,["headerAndBannerHeight","routes","navSections"])):s.createCommentVNode("",!0),y.routes&&y.navSections?(s.openBlock(),s.createBlock(AE3,{key:2,routes:y.routes,navSections:y.navSections},null,8,["routes","navSections"])):s.createCommentVNode("",!0),s.createElementVNode("div",QE3,[!s.unref(l)&&s.unref(c)?(s.openBlock(),s.createElementBlock("div",JE3,[s.createElementVNode("h1",eD3,s.toDisplayString(s.unref(a)),1),s.unref(n)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[tD3,s.createElementVNode("span",aD3,s.toDisplayString(s.unref(n)),1)],64)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createVNode(s.unref(jo.RouterView),{class:"layout__view"})]),s.unref(l)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:3},[s.useSlots().footer?s.renderSlot(y.$slots,"footer",{key:0},void 0,!0):(s.openBlock(),s.createBlock(WE3,{key:1}))],64))],2))}});const nD3=Q1(cD3,[["__scopeId","data-v-3034e12c"]]),rD3={class:"not-found"},iD3={class:"not-found__content"},oD3={class:"not-found__hero"},sD3={class:"hero__number"},lD3={class:"hero__bubble"},fD3=s.createStaticVNode('<div class="not-found__illustration" data-v-4a93c046><svg class="illustration__svg" viewBox="0 0 600 250" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-4a93c046><rect width="600" height="250" fill="var(--pga-color-primary)" opacity="0.05" rx="20" data-v-4a93c046></rect><circle cx="500" cy="80" r="40" fill="var(--pga-color-primary)" opacity="0.15" data-v-4a93c046></circle><path d="M0,150 Q120,100 250,160 T600,140 L600,250 L0,250 Z" fill="var(--pga-color-first-contrast)" opacity="0.5" data-v-4a93c046></path><path d="M0,190 Q150,170 300,210 T600,190 L600,250 L0,250 Z" fill="var(--pga-color-first-contrast)" data-v-4a93c046></path><g transform="translate(300, 150)" data-v-4a93c046><ellipse cx="0" cy="80" rx="35" ry="8" fill="var(--pga-color-first)" opacity="0.1" data-v-4a93c046></ellipse><rect x="-25" y="60" width="50" height="15" rx="5" fill="var(--pga-color-second)" opacity="0.8" data-v-4a93c046></rect><path d="M-20,30 L20,30 L25,60 L-25,60 Z" fill="var(--pga-color-primary)" opacity="0.9" data-v-4a93c046></path><rect x="-10" y="35" width="20" height="5" rx="2" fill="var(--pga-color-first-contrast)" opacity="0.5" data-v-4a93c046></rect><rect x="-5" y="15" width="10" height="15" fill="var(--pga-color-second)" data-v-4a93c046></rect><rect x="-25" y="-15" width="50" height="35" rx="10" fill="var(--pga-color-primary)" data-v-4a93c046></rect><rect x="-15" y="-5" width="30" height="15" rx="2" fill="var(--pga-color-first-contrast)" data-v-4a93c046></rect><circle cx="-5" cy="0" r="3" fill="var(--pga-color-second)" data-v-4a93c046></circle><circle cx="5" cy="0" r="3" fill="var(--pga-color-second)" data-v-4a93c046></circle><line x1="0" y1="-15" x2="-10" y2="-35" stroke="var(--pga-color-second)" stroke-width="4" stroke-linecap="round" data-v-4a93c046></line><circle cx="-10" cy="-35" r="4" fill="var(--pga-color-second)" data-v-4a93c046></circle><path d="M-20,40 Q-40,40 -40,60" fill="none" stroke="var(--pga-color-second)" stroke-width="6" stroke-linecap="round" data-v-4a93c046></path><path d="M20,40 Q40,40 35,55" fill="none" stroke="var(--pga-color-second)" stroke-width="6" stroke-linecap="round" data-v-4a93c046></path></g><circle cx="100" cy="50" r="2" fill="var(--pga-color-primary)" opacity="0.3" data-v-4a93c046></circle><circle cx="150" cy="100" r="1.5" fill="var(--pga-color-second)" opacity="0.3" data-v-4a93c046></circle><circle cx="400" cy="40" r="2.5" fill="var(--pga-color-primary)" opacity="0.2" data-v-4a93c046></circle><circle cx="550" cy="180" r="2" fill="var(--pga-color-second)" opacity="0.4" data-v-4a93c046></circle></svg></div>',1),uD3={class:"not-found__actions"},dD3=s.defineComponent({__name:"PgaNotFound",props:{redirectTo:{}},setup(e){const t=$2("pgaLayout","notFound");return(a,c)=>(s.openBlock(),s.createElementBlock("div",rD3,[s.createElementVNode("div",iD3,[s.createElementVNode("div",oD3,[s.createElementVNode("h1",sD3,s.toDisplayString(s.unref(t)("title")),1),s.createElementVNode("div",lD3,s.toDisplayString(s.unref(t)("subtitle")),1)]),fD3,s.createElementVNode("div",uD3,[s.createVNode(Yf,{name:a.redirectTo,noUnderlineOnHover:""},{default:s.withCtx(()=>[s.createVNode(V2,{text:s.unref(t)("goBackBtn")},null,8,["text"])]),_:1},8,["name"])])])]))}});const hD3=Q1(dD3,[["__scopeId","data-v-4a93c046"]]),pD3={class:"pga-section"},mD3={key:0,class:"section__title"},vD3=s.defineComponent({__name:"PgaSection",props:{title:{},isLoading:{type:Boolean}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",pD3,[t.title?(s.openBlock(),s.createElementBlock("h3",mD3,[s.createVNode(D3,{text:t.title},null,8,["text"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["section__content",{"section__content--loading":t.isLoading}])},[t.isLoading?(s.openBlock(),s.createBlock(w8,{key:0})):s.renderSlot(t.$slots,"default",{key:1},void 0,!0)],2)]))}});const yD3=Q1(vD3,[["__scopeId","data-v-2f106c04"]]),gD3={key:0,class:"pga-pagination"},MD3=["textContent"],kD3=["textContent"],xD3=s.defineComponent({__name:"PgaPagination",props:s.mergeModels({totalCount:{},pageSize:{},noScrollToTop:{type:Boolean}},{modelValue:{required:!0,default:1},modelModifiers:{}}),emits:s.mergeModels(["newPage"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t,r=s.computed(()=>Math.ceil(c.totalCount/c.pageSize)),i=s.computed(()=>{const h=[a.value];for(let p=a.value-1;p>=a.value-3&&p>=1;p--)h.unshift(p);for(let p=a.value+1;p<=a.value+3&&p<=r.value;p++)h.push(p);if(h.length===7)return h;if(h.includes(1))for(let p=h[h.length-1]+1;p<=7-h.length+h[h.length-1]&&p<=r.value;p++)h.push(p);else for(let p=h[0]-1;p>=-(7-h.length)+h[0]&&p>=1;p--)h.unshift(p);return h}),o=s.computed(()=>!i.value.includes(1)),l=s.computed(()=>!i.value.includes(r.value));function f(u){a.value=u,n("newPage",u),c.noScrollToTop||an1()}return(u,d)=>r.value>1?(s.openBlock(),s.createElementBlock("div",gD3,[o.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(V2,{variant:"flat",color:"first",heightAndWidth:"1.6rem",text:"1",onClick:d[0]||(d[0]=h=>f(1))}),s.createElementVNode("span",{textContent:s.toDisplayString("...")},null,8,MD3)],64)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,h=>(s.openBlock(),s.createBlock(V2,{key:h,variant:h===a.value?"filled":"flat",color:h===a.value?"primary":"first",heightAndWidth:"1.6rem",text:h.toString(),onClick:p=>f(h)},null,8,["variant","color","text","onClick"]))),128)),l.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("span",{textContent:s.toDisplayString("...")},null,8,kD3),s.createVNode(V2,{variant:"flat",color:"first",heightAndWidth:"1.6rem",text:r.value.toString(),onClick:d[1]||(d[1]=h=>f(r.value))},null,8,["text"])],64)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}});const LZ=Q1(xD3,[["__scopeId","data-v-962423ac"]]),bD3=s.defineComponent({__name:"PgaTr",props:{index:{},secondary:{type:Boolean}},setup(e){const t=e,a=s.computed(()=>{if(typeof t.index>"u")return"";const c=t.index%2===0?"tr--even":"tr--odd",n=[c];return t.secondary&&n.push(`${c}__secondary`),n});return(c,n)=>(s.openBlock(),s.createElementBlock("tr",{class:s.normalizeClass(["pga-tr",a.value])},[s.renderSlot(c.$slots,"default",{},void 0,!0)],2))}});const VZ=Q1(bD3,[["__scopeId","data-v-86d73bc6"]]),zD3={class:"td__content"},CD3=s.defineComponent({__name:"PgaTd",props:{align:{default:"left"},fitContent:{type:Boolean}},setup(e){s.useCssVars(c=>({"7cfdd09e":c.align,"0e86b903":a.value}));const t=e,a=s.computed(()=>{if(t.align==="left")return"flex-start";if(t.align==="center")return"center";if(t.align==="right")return"flex-end"});return(c,n)=>(s.openBlock(),s.createElementBlock("td",{class:s.normalizeClass(["pga-td",{"pga-td--fit-content":!!c.fitContent}])},[s.createElementVNode("div",zD3,[s.renderSlot(c.$slots,"default",{},void 0,!0)])],2))}});const F9=Q1(CD3,[["__scopeId","data-v-12c99c41"]]),_D3=["textContent"],wD3=s.defineComponent({__name:"PgaTrTitle",props:{title:{}},setup(e){return(t,a)=>(s.openBlock(),s.createBlock(VZ,{class:"pga-tr-title"},{default:s.withCtx(()=>[s.createVNode(F9,{class:"tr-title__td",colspan:"100%"},{default:s.withCtx(()=>[t.title?(s.openBlock(),s.createElementBlock("span",{key:0,textContent:s.toDisplayString(t.title)},null,8,_D3)):s.renderSlot(t.$slots,"default",{key:1},void 0,!0)]),_:3})]),_:3}))}});const HD3=Q1(wD3,[["__scopeId","data-v-145a0ff1"]]),LD3=["textContent"],Uk1=s.defineComponent({__name:"PgaGroupTitle",props:{items:{},groupByFn:{type:Function},reduceGroupTitleFn:{type:Function}},setup(e){const t=e,a=s.computed(()=>{let c=t.groupByFn(t.items[0]);return t.reduceGroupTitleFn&&(c+=` - ${t.reduceGroupTitleFn(t.items)}`),c});return(c,n)=>(s.openBlock(),s.createElementBlock("span",{textContent:s.toDisplayString(a.value)},null,8,LD3))}}),VD3={class:"pga-th"},SD3={class:"th-content"},ND3=s.defineComponent({__name:"PgaTh",props:{title:{default:""},align:{default:"left"},info:{}},setup(e){return s.useCssVars(t=>({"49e08fdb":t.align})),(t,a)=>(s.openBlock(),s.createElementBlock("th",VD3,[s.createElementVNode("div",SD3,[s.createVNode(D3,{text:t.title,showEmptyText:""},null,8,["text"]),s.createVNode(rq,{info:t.info},null,8,["info"])])]))}});const eh=Q1(ND3,[["__scopeId","data-v-140e0590"]]),AD3={class:"filters-modal-container"},TD3=s.defineComponent({__name:"PgaFiltersModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=s.useModel(e,"modelValue"),a=$2("pgaTable");return(c,n)=>{const r=s.resolveComponent("PgaModal");return s.openBlock(),s.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=i=>t.value=i),title:s.unref(a)("filtersModalTitle")},{default:s.withCtx(()=>[s.createElementVNode("div",AD3,[s.renderSlot(c.$slots,"default",{},void 0,!0)])]),_:3},8,["modelValue","title"])}}});const ED3=Q1(TD3,[["__scopeId","data-v-ff4009d7"]]),SZ=s.defineComponent({__name:"PgaActionsButtons",props:s.mergeModels({item:{},getDescriptionFn:{type:Function},withEditButton:{type:Boolean},editToName:{},deleteFn:{type:Function},deleteBtnIcon:{},deleteBtnText:{},toName:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["editItem"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t,r=$2("pgaTable");async function i(){try{a.value.push(c.item.id),await c.deleteFn(c.item)}finally{a.value=a.value.filter(o=>o!==c.item.id)}}return(o,l)=>{const f=s.resolveComponent("PgaRouterLinkButton");return s.openBlock(),s.createElementBlock(s.Fragment,null,[o.toName?(s.openBlock(),s.createBlock(Fn1,{key:0,id:o.item.id,toName:o.toName,noFitContent:""},null,8,["id","toName"])):s.createCommentVNode("",!0),o.editToName?(s.openBlock(),s.createBlock(f,{key:1,name:o.editToName,params:{id:o.item.id},noFitContent:""},{default:s.withCtx(()=>[s.createVNode(BY,{fullWidth:""})]),_:1},8,["name","params"])):o.withEditButton?(s.openBlock(),s.createBlock(BY,{key:2,onClick:l[0]||(l[0]=u=>n("editItem",o.item))})):s.createCommentVNode("",!0),o.deleteFn?(s.openBlock(),s.createBlock(iq,{key:3,icon:o.deleteBtnIcon,text:o.deleteBtnText,confirmDeleteText:s.unref(r)("confirmDeleteText",{description:o.getDescriptionFn(o.item)}),isLoading:a.value.includes(o.item.id),onDeleteConfirmed:l[1]||(l[1]=u=>i())},null,8,["icon","text","confirmDeleteText","isLoading"])):s.createCommentVNode("",!0)],64)}}}),DD3={key:0,class:"items-list"},PD3={key:0,class:"item-actions-buttons"},OD3=s.defineComponent({__name:"PgaItemsList",props:s.mergeModels({itemsGroupedBy:{},getDescriptionFn:{type:Function},withEditButton:{type:Boolean},editToName:{},deleteFn:{type:Function},toName:{},groupByFn:{type:Function},reduceGroupTitleFn:{type:Function},hasActionsButtons:{type:Boolean},secondary:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:s.mergeModels(["editItem"],["update:modelValue"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=e,n=t,r=s.computed(()=>!!c.editToName||!!c.withEditButton||!!c.deleteFn||c.hasActionsButtons);return(i,o)=>i.itemsGroupedBy.length?(s.openBlock(),s.createElementBlock("div",DD3,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.itemsGroupedBy,(l,f)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:f},[i.groupByFn?(s.openBlock(),s.createBlock(Uk1,{key:0,class:"items-list__title",groupByFn:i.groupByFn,reduceGroupTitleFn:i.reduceGroupTitleFn,items:l},null,8,["groupByFn","reduceGroupTitleFn","items"])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l,u=>(s.openBlock(),s.createElementBlock("div",{key:u.id,class:s.normalizeClass(["item-container",{"item-container__secondary":i.secondary}])},[s.renderSlot(i.$slots,"item",{item:u},void 0,!0),r.value?(s.openBlock(),s.createElementBlock("div",PD3,[s.renderSlot(i.$slots,"actionsButtons",{item:u},void 0,!0),s.createVNode(SZ,{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=d=>a.value=d),item:u,getDescriptionFn:i.getDescriptionFn,withEditButton:i.withEditButton,editToName:i.editToName,deleteFn:i.deleteFn,toName:i.toName,onEditItem:o[1]||(o[1]=d=>n("editItem",d))},null,8,["modelValue","item","getDescriptionFn","withEditButton","editToName","deleteFn","toName"])])):s.createCommentVNode("",!0)],2))),128))],64))),128))])):s.createCommentVNode("",!0)}});const Ka1=Q1(OD3,[["__scopeId","data-v-1e188fbf"]]),ID3={class:"pga-table"},BD3={key:0,class:"table-header"},RD3={class:"table-header__top"},FD3={key:3,class:"header__search-container"},$D3={key:0,class:"table-header__filters"},qD3={key:0},jD3={class:"indentation-content"},UD3={key:0,class:"indentation-line"},WD3={key:1,class:"actions-buttons"},YD3={key:5,class:"rows-selected"},GD3=["textContent"],ZD3=s.defineComponent({__name:"PgaTable",props:s.mergeModels({hideTitles:{type:Boolean},columns:{},columnsAlign:{},createItemBtnText:{},withEditButton:{type:Boolean},editToName:{},deleteFn:{type:Function},deleteBtnIcon:{},deleteBtnText:{},toName:{},actionsOptions:{},useDropdown:{type:Boolean},items:{},descriptionField:{},totalCount:{},groupByFn:{type:Function},groupByDate:{type:[Boolean,String]},reduceGroupTitleFn:{type:Function},noItemsLabel:{},noDisplayNoItemsIcon:{type:Boolean},noSearch:{type:Boolean},searchInputPlaceholder:{},filters:{},indentation:{},isLoading:{type:Boolean},secondary:{type:Boolean}},{searchParams:{},searchParamsModifiers:{},itemsSelected:{},itemsSelectedModifiers:{}}),emits:s.mergeModels(["createItem","editItem","refreshList"],["update:searchParams","update:itemsSelected"]),setup(e,{emit:t}){const a=s.useModel(e,"searchParams"),c=s.useModel(e,"itemsSelected"),n=e,r=t,i=$2("pgaTable"),o=n.groupByFn?n.groupByFn:n.groupByDate?N:void 0,l=s.ref([]),f=s.ref(),u=s.ref([]),d=s.ref({isActive:!1}),h=s.ref(!1),p=s.computed(()=>Object.fromEntries(Object.entries(n.columns||{}).filter(([,R])=>!R.hide))),v=s.computed(()=>{if(!n.indentation)return!1;for(const R of n.items)if(R[n.indentation.propName].length>0)return!0;return!1}),m=s.computed(()=>{if(!v.value)return n.items;const R=[];for(const K of n.items)R.push(K),P(K)&&R.push(...K[n.indentation.propName]);return R}),y=s.computed(()=>{const R=m.value;return o?R.reduce((K,Z)=>{const U=K[K.length-1];return U&&o(U[0])===o(Z)?U.push(Z):K.push([Z]),K},[]):R.length?[R]:[]}),g=s.computed(()=>!!c.value),M=s.computed(()=>!!s.useSlots().actionsButtons),x=s.computed(()=>{var R;return n.toName||n.withEditButton||n.editToName||n.deleteFn||((R=n.actionsOptions)==null?void 0:R.length)||M.value}),k=s.computed(()=>{var R;return(R=n.actionsOptions)!=null&&R.length?!0:n.useDropdown}),b=s.computed(()=>{var R,K;return((R=a.value)==null?void 0:R.page)&&((K=a.value)==null?void 0:K.pageSize)&&n.totalCount}),_=s.computed(()=>Math.ceil(n.totalCount/a.value.pageSize)),C=s.computed(()=>{var R;return!n.noSearch&&((R=a.value)==null?void 0:R.search)!==void 0}),H=s.computed(()=>n.filters?Object.values(n.filters).reduce((R,K)=>K?R+1:R,0):0);s.watch(()=>n.items,()=>{g.value&&(c.value=[])}),s.watch(()=>n.filters,()=>L(),{deep:!0});function V(R){if(n.descriptionField)return X3(R[n.descriptionField])}function N(R){const K=n.groupByDate;return mY(typeof K=="string"?R[K]:R.datetime)}function L(R=!0){R&&(a.value.page=1),r("refreshList")}function w(R){return n.items.map(Z=>Z.id).includes(R.id)}function P(R){return l.value.includes(R.id)}function j(R){l.value.push(R.id)}function E(R){l.value=l.value.filter(K=>K!==R.id)}function F(){f.value.toggleItemSelected()}return(R,K)=>(s.openBlock(),s.createElementBlock("div",ID3,[R.createItemBtnText||R.$slots.header||C.value||R.$slots.filters?(s.openBlock(),s.createElementBlock("div",BD3,[s.createElementVNode("div",RD3,[R.createItemBtnText?(s.openBlock(),s.createBlock(V2,{key:0,variant:"filled",icon:"circle-plus",text:R.createItemBtnText,onClick:K[0]||(K[0]=Z=>r("createItem"))},null,8,["text"])):s.createCommentVNode("",!0),s.renderSlot(R.$slots,"header",{},void 0,!0),R.$slots.filters?(s.openBlock(),s.createBlock(V2,{key:1,class:"header__filters-toggle-btn",icon:"filter",color:"sky",text:s.unref(i)("filtersBtn"),numberToDisplay:H.value,onClick:K[1]||(K[1]=Z=>h.value=!h.value)},null,8,["text","numberToDisplay"])):s.createCommentVNode("",!0),R.$slots.filters?(s.openBlock(),s.createBlock(V2,{key:2,class:"header__filters-modal-btn",icon:"filter",color:"sky",text:s.unref(i)("filtersBtn"),numberToDisplay:H.value,onClick:K[2]||(K[2]=Z=>d.value.isActive=!0)},null,8,["text","numberToDisplay"])):s.createCommentVNode("",!0),C.value?(s.openBlock(),s.createElementBlock("div",FD3,[s.createVNode(v$,{class:"header__search",modelValue:a.value.search,"onUpdate:modelValue":K[3]||(K[3]=Z=>a.value.search=Z),placeholder:R.searchInputPlaceholder,onEnter:K[4]||(K[4]=Z=>L()),onValueCleared:K[5]||(K[5]=Z=>L())},null,8,["modelValue","placeholder"])])):s.createCommentVNode("",!0)]),R.$slots.filters?s.withDirectives((s.openBlock(),s.createElementBlock("div",$D3,[s.renderSlot(R.$slots,"filters",{},void 0,!0)],512)),[[s.vShow,h.value]]):s.createCommentVNode("",!0),s.createVNode(ED3,{modelValue:d.value.isActive,"onUpdate:modelValue":K[6]||(K[6]=Z=>d.value.isActive=Z)},{default:s.withCtx(()=>[s.renderSlot(R.$slots,"filters",{},void 0,!0)]),_:3},8,["modelValue"])])):s.createCommentVNode("",!0),b.value&&_.value>1||R.isLoading?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["table-top-pagination",{"table-top-pagination--with-spinner":R.isLoading}])},[b.value?(s.openBlock(),s.createBlock(LZ,{key:0,modelValue:a.value.page,"onUpdate:modelValue":K[7]||(K[7]=Z=>a.value.page=Z),pageSize:a.value.pageSize,totalCount:R.totalCount,onNewPage:K[8]||(K[8]=Z=>L(!1))},null,8,["modelValue","pageSize","totalCount"])):s.createCommentVNode("",!0),R.isLoading?(s.openBlock(),s.createBlock(w8,{key:1,class:"pagination__spinner",size:"m"})):s.createCommentVNode("",!0)],2)):s.createCommentVNode("",!0),m.value.length?(s.openBlock(),s.createElementBlock("div",{key:2,class:s.normalizeClass(["table-wrapper",{"table-wrapper--with-main-item":R.$slots.mainItem,"table-wrapper--with-small-devices-item":R.$slots.smallDevicesItem}])},[s.createElementVNode("table",null,[R.hideTitles?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("thead",qD3,[s.createVNode(VZ,null,{default:s.withCtx(()=>[g.value?(s.openBlock(),s.createBlock(eh,{key:0})):s.createCommentVNode("",!0),v.value?(s.openBlock(),s.createBlock(eh,{key:1})):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,(Z,U)=>(s.openBlock(),s.createBlock(eh,{key:U,title:Z.title,align:Z.align||R.columnsAlign,info:Z.info},null,8,["title","align","info"]))),128)),x.value?(s.openBlock(),s.createBlock(eh,{key:2,title:s.unref(i)("columnTitleActions")},null,8,["title"])):s.createCommentVNode("",!0)]),_:1})])),s.createElementVNode("tbody",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(y.value,Z=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.unref(o)?(s.openBlock(),s.createBlock(HD3,{key:0},{default:s.withCtx(()=>[s.createVNode(Uk1,{groupByFn:s.unref(o),reduceGroupTitleFn:R.reduceGroupTitleFn,items:Z},null,8,["groupByFn","reduceGroupTitleFn","items"])]),_:2},1024)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(Z,(U,I)=>(s.openBlock(),s.createBlock(VZ,{key:U.id,index:I,secondary:R.secondary},{default:s.withCtx(()=>[g.value?(s.openBlock(),s.createBlock(F9,{key:0,fitContent:""},{default:s.withCtx(()=>[s.createVNode(IY,{modelValue:c.value,"onUpdate:modelValue":K[9]||(K[9]=T=>c.value=T),items:m.value,item:U},null,8,["modelValue","items","item"])]),_:2},1024)):s.createCommentVNode("",!0),v.value?(s.openBlock(),s.createBlock(F9,{key:1,fitContent:""},{default:s.withCtx(()=>[s.createElementVNode("div",jD3,[w(U)?P(U)?(s.openBlock(),s.createBlock(U3,{key:1,icon:"chevron-down",clickable:"",onClick:T=>E(U)},null,8,["onClick"])):U[n.indentation.propName].length>0?(s.openBlock(),s.createBlock(U3,{key:2,icon:"chevron-right",clickable:"",onClick:T=>j(U)},null,8,["onClick"])):s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",UD3))])]),_:2},1024)):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.value,(T,S)=>(s.openBlock(),s.createBlock(F9,{key:S,align:T.align||R.columnsAlign,fitContent:T.fitContent},{default:s.withCtx(()=>[s.renderSlot(R.$slots,S,{item:U},void 0,!0)]),_:2},1032,["align","fitContent"]))),128)),x.value?(s.openBlock(),s.createBlock(F9,{key:2,fitContent:""},{default:s.withCtx(()=>[k.value?(s.openBlock(),s.createBlock(Dn1,{key:0,item:U,options:R.actionsOptions,align:"right"},{default:s.withCtx(()=>[s.renderSlot(R.$slots,"actionsButtons",{item:U},void 0,!0),s.createVNode(SZ,{modelValue:u.value,"onUpdate:modelValue":K[10]||(K[10]=T=>u.value=T),item:U,getDescriptionFn:V,withEditButton:R.withEditButton,editToName:R.editToName,deleteFn:R.deleteFn,deleteBtnIcon:R.deleteBtnIcon,deleteBtnText:R.deleteBtnText,toName:R.toName,onEditItem:K[11]||(K[11]=T=>r("editItem",T))},null,8,["modelValue","item","withEditButton","editToName","deleteFn","deleteBtnIcon","deleteBtnText","toName"])]),_:2},1032,["item","options"])):(s.openBlock(),s.createElementBlock("div",WD3,[s.renderSlot(R.$slots,"actionsButtons",{item:U},void 0,!0),s.createVNode(SZ,{modelValue:u.value,"onUpdate:modelValue":K[12]||(K[12]=T=>u.value=T),item:U,getDescriptionFn:V,withEditButton:R.withEditButton,editToName:R.editToName,deleteFn:R.deleteFn,deleteBtnIcon:R.deleteBtnIcon,deleteBtnText:R.deleteBtnText,toName:R.toName,onEditItem:K[13]||(K[13]=T=>r("editItem",T))},null,8,["modelValue","item","withEditButton","editToName","deleteFn","deleteBtnIcon","deleteBtnText","toName"])]))]),_:2},1024)):s.createCommentVNode("",!0)]),_:2},1032,["index","secondary"]))),128))],64))),256))])])],2)):s.createCommentVNode("",!0),R.$slots.mainItem?(s.openBlock(),s.createBlock(Ka1,{key:3,class:s.normalizeClass(["main-items-list",{"main-items-list--with-small-devices-item":R.$slots.smallDevicesItem}]),modelValue:u.value,"onUpdate:modelValue":K[14]||(K[14]=Z=>u.value=Z),itemsGroupedBy:y.value,getDescriptionFn:V,withEditButton:R.withEditButton,editToName:R.editToName,deleteFn:R.deleteFn,toName:R.toName,groupByFn:s.unref(o),reduceGroupTitleFn:R.reduceGroupTitleFn,hasActionsButtons:M.value,secondary:R.secondary,onEditItem:K[15]||(K[15]=Z=>r("editItem",Z))},{item:s.withCtx(({item:Z})=>[s.renderSlot(R.$slots,"mainItem",{item:Z},void 0,!0)]),actionsButtons:s.withCtx(({item:Z})=>[s.renderSlot(R.$slots,"actionsButtons",{item:Z},void 0,!0)]),_:3},8,["class","modelValue","itemsGroupedBy","withEditButton","editToName","deleteFn","toName","groupByFn","reduceGroupTitleFn","hasActionsButtons","secondary"])):s.createCommentVNode("",!0),R.$slots.smallDevicesItem?(s.openBlock(),s.createBlock(Ka1,{key:4,class:"small-devices-items-list",modelValue:u.value,"onUpdate:modelValue":K[16]||(K[16]=Z=>u.value=Z),itemsGroupedBy:y.value,getDescriptionFn:V,withEditButton:R.withEditButton,editToName:R.editToName,deleteFn:R.deleteFn,toName:R.toName,groupByFn:s.unref(o),reduceGroupTitleFn:R.reduceGroupTitleFn,hasActionsButtons:M.value,secondary:R.secondary,onEditItem:K[17]||(K[17]=Z=>r("editItem",Z))},{item:s.withCtx(({item:Z})=>[s.renderSlot(R.$slots,"smallDevicesItem",{item:Z},void 0,!0)]),actionsButtons:s.withCtx(({item:Z})=>[s.renderSlot(R.$slots,"actionsButtons",{item:Z},void 0,!0)]),_:3},8,["modelValue","itemsGroupedBy","withEditButton","editToName","deleteFn","toName","groupByFn","reduceGroupTitleFn","hasActionsButtons","secondary"])):s.createCommentVNode("",!0),s.createVNode(pg1,{items:m.value,label:R.noItemsLabel,noDisplayIcon:R.noDisplayNoItemsIcon,isLoading:R.isLoading},null,8,["items","label","noDisplayIcon","isLoading"]),g.value&&m.value.length?(s.openBlock(),s.createElementBlock("div",YD3,[s.createVNode(IY,{ref_key:"itemsSelectedRef",ref:f,modelValue:c.value,"onUpdate:modelValue":K[18]||(K[18]=Z=>c.value=Z),items:m.value},null,8,["modelValue","items"]),s.createVNode(On1,{class:"rows-selected__select-all-btn",text:s.unref(i)("selectAllBtn"),onClick:K[19]||(K[19]=Z=>F())},null,8,["text"]),s.createElementVNode("span",{class:"rows-selected__selected-items-text",textContent:s.toDisplayString(s.unref(i)("withTheSelectedItemsText"))},null,8,GD3),s.renderSlot(R.$slots,"itemsSelected",{},void 0,!0)])):s.createCommentVNode("",!0),b.value?(s.openBlock(),s.createBlock(LZ,{key:6,modelValue:a.value.page,"onUpdate:modelValue":K[20]||(K[20]=Z=>a.value.page=Z),pageSize:a.value.pageSize,totalCount:R.totalCount,onNewPage:K[21]||(K[21]=Z=>L(!1))},null,8,["modelValue","pageSize","totalCount"])):s.createCommentVNode("",!0)]))}});const XD3=Q1(ZD3,[["__scopeId","data-v-fd6d045c"]]),KD3=Object.freeze(Object.defineProperty({__proto__:null,PgaBackButton:e92,PgaBadge:ts2,PgaBarChart:xg3,PgaBreadcrumb:dE3,PgaButton:V2,PgaButtonLink:On1,PgaCalendar:V93,PgaCheckbox:GM3,PgaColorCircle:cs2,PgaColorSelector:QM3,PgaCopy:r92,PgaCopyButton:i92,PgaDatePicker:rC3,PgaDatetimePicker:iC3,PgaDeleteButton:iq,PgaDisplayBarcodes:Hg3,PgaDisplayButtons:bX,PgaDisplayContent:Sg3,PgaDisplayDatetime:Tg3,PgaDisplayInfo:Bg3,PgaDisplayNoItems:pg1,PgaDisplayPrice:Jg3,PgaDisplayText:D3,PgaDisplayTime:eM3,PgaDoughnutChart:bg3,PgaDropdown:Dn1,PgaDropdownMenu:fs2,PgaEditButton:BY,PgaEditor:bs2,PgaForm:mg1,PgaFormRow:aM3,PgaFormSubtitle:nM3,PgaFormTitle:iM3,PgaIcon:U3,PgaIconSelector:fC3,PgaImage:$k1,PgaImages:tE3,PgaInfoCard:ws2,PgaInfoPanel:iE3,PgaInfoTooltip:rq,PgaInput:v$,PgaInputFile:Wf,PgaInputFileExcel:dT3,PgaInputGroup:y0,PgaInputSelect:gT3,PgaIsEnabled:Hs2,PgaItemSelected:IY,PgaLayout:nD3,PgaLink:Bn1,PgaLoginForm:jM3,PgaLogoutButton:l92,PgaMaxLength:LX,PgaModal:Es2,PgaMonthPicker:MT3,PgaMonthSelector:Ps2,PgaNavigateToButton:Fn1,PgaNotFound:hD3,PgaPagination:LZ,PgaRangePicker:kT3,PgaRemoveButton:u92,PgaRouterLink:Yf,PgaRouterLinkButton:Rn1,PgaSection:yD3,PgaSeeDetailsButton:d92,PgaSelect:CT3,PgaSeparator:Is2,PgaSpinner:w8,PgaSwitch:NT3,PgaSwitchOptions:DT3,PgaTable:XD3,PgaTabs:js2,PgaTextarea:FT3,PgaToggleButton:h92,PgaVideos:Js2,PgaYearPicker:$T3},Symbol.toStringTag,{value:"Module"}));function Qa1(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,c)}return a}function t2(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Qa1(Object(a),!0).forEach(function(c){je(e,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Qa1(Object(a)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(a,c))})}return e}function N$(e){"@babel/helpers - typeof";return N$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N$(e)}function QD3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ja1(e,t){for(var a=0;a<t.length;a++){var c=t[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function JD3(e,t,a){return t&&Ja1(e.prototype,t),a&&Ja1(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function je(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function N11(e,t){return tP3(e)||cP3(e,t)||Wk1(e,t)||rP3()}function Au(e){return eP3(e)||aP3(e)||Wk1(e)||nP3()}function eP3(e){if(Array.isArray(e))return NZ(e)}function tP3(e){if(Array.isArray(e))return e}function aP3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cP3(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var c=[],n=!0,r=!1,i,o;try{for(a=a.call(e);!(n=(i=a.next()).done)&&(c.push(i.value),!(t&&c.length===t));n=!0);}catch(l){r=!0,o=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(r)throw o}}return c}}function Wk1(e,t){if(e){if(typeof e=="string")return NZ(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return NZ(e,t)}}function NZ(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,c=new Array(t);a<t;a++)c[a]=e[a];return c}function nP3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9526
9526
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rP3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
9527
9527
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var e51=function(){},A11={},Yk1={},Gk1=null,Zk1={mark:e51,measure:e51};try{typeof window<"u"&&(A11=window),typeof document<"u"&&(Yk1=document),typeof MutationObserver<"u"&&(Gk1=MutationObserver),typeof performance<"u"&&(Zk1=performance)}catch{}var iP3=A11.navigator||{},t51=iP3.userAgent,a51=t51===void 0?"":t51,Ra=A11,A3=Yk1,c51=Gk1,th=Zk1;Ra.document;var T8=!!A3.documentElement&&!!A3.head&&typeof A3.addEventListener=="function"&&typeof A3.createElement=="function",Xk1=~a51.indexOf("MSIE")||~a51.indexOf("Trident/"),ah,ch,nh,rh,ih,x8="___FONT_AWESOME___",AZ=16,Kk1="fa",Qk1="svg-inline--fa",_i="data-fa-i2svg",TZ="data-fa-pseudo-element",oP3="data-fa-pseudo-element-pending",T11="data-prefix",E11="data-icon",n51="fontawesome-i2svg",sP3="async",lP3=["HTML","HEAD","STYLE","SCRIPT"],Jk1=function(){try{return process.env.NODE_ENV==="production"}catch{return!1}}(),L3="classic",se="sharp",D11=[L3,se];function Tu(e){return new Proxy(e,{get:function(a,c){return c in a?a[c]:a[L3]}})}var Af=Tu((ah={},je(ah,L3,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),je(ah,se,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),ah)),Tf=Tu((ch={},je(ch,L3,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),je(ch,se,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),ch)),Ef=Tu((nh={},je(nh,L3,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),je(nh,se,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),nh)),fP3=Tu((rh={},je(rh,L3,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),je(rh,se,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),rh)),uP3=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,ex1="fa-layers-text",dP3=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,hP3=Tu((ih={},je(ih,L3,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),je(ih,se,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),ih)),tx1=[1,2,3,4,5,6,7,8,9,10],pP3=tx1.concat([11,12,13,14,15,16,17,18,19,20]),mP3=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Yr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Df=new Set;Object.keys(Tf[L3]).map(Df.add.bind(Df));Object.keys(Tf[se]).map(Df.add.bind(Df));var vP3=[].concat(D11,Au(Df),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Yr.GROUP,Yr.SWAP_OPACITY,Yr.PRIMARY,Yr.SECONDARY]).concat(tx1.map(function(e){return"".concat(e,"x")})).concat(pP3.map(function(e){return"w-".concat(e)})),wl=Ra.FontAwesomeConfig||{};function yP3(e){var t=A3.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function gP3(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(A3&&typeof A3.querySelector=="function"){var MP3=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];MP3.forEach(function(e){var t=N11(e,2),a=t[0],c=t[1],n=gP3(yP3(a));n!=null&&(wl[c]=n)})}var ax1={styleDefault:"solid",familyDefault:"classic",cssPrefix:Kk1,replacementClass:Qk1,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wl.familyPrefix&&(wl.cssPrefix=wl.familyPrefix);var Ms=t2(t2({},ax1),wl);Ms.autoReplaceSvg||(Ms.observeMutations=!1);var i2={};Object.keys(ax1).forEach(function(e){Object.defineProperty(i2,e,{enumerable:!0,set:function(a){Ms[e]=a,Hl.forEach(function(c){return c(i2)})},get:function(){return Ms[e]}})});Object.defineProperty(i2,"familyPrefix",{enumerable:!0,set:function(t){Ms.cssPrefix=t,Hl.forEach(function(a){return a(i2)})},get:function(){return Ms.cssPrefix}});Ra.FontAwesomeConfig=i2;var Hl=[];function kP3(e){return Hl.push(e),function(){Hl.splice(Hl.indexOf(e),1)}}var F8=AZ,st={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function xP3(e){if(!(!e||!T8)){var t=A3.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var a=A3.head.childNodes,c=null,n=a.length-1;n>-1;n--){var r=a[n],i=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(c=r)}return A3.head.insertBefore(t,c),e}}var bP3="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Pf(){for(var e=12,t="";e-- >0;)t+=bP3[Math.random()*62|0];return t}function Os(e){for(var t=[],a=(e||[]).length>>>0;a--;)t[a]=e[a];return t}function P11(e){return e.classList?Os(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function cx1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function zP3(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,'="').concat(cx1(e[a]),'" ')},"").trim()}function Vj(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,": ").concat(e[a].trim(),";")},"")}function O11(e){return e.size!==st.size||e.x!==st.x||e.y!==st.y||e.rotate!==st.rotate||e.flipX||e.flipY}function CP3(e){var t=e.transform,a=e.containerWidth,c=e.iconWidth,n={transform:"translate(".concat(a/2," 256)")},r="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(r," ").concat(i," ").concat(o)},f={transform:"translate(".concat(c/2*-1," -256)")};return{outer:n,inner:l,path:f}}function _P3(e){var t=e.transform,a=e.width,c=a===void 0?AZ:a,n=e.height,r=n===void 0?AZ:n,i=e.startCentered,o=i===void 0?!1:i,l="";return o&&Xk1?l+="translate(".concat(t.x/F8-c/2,"em, ").concat(t.y/F8-r/2,"em) "):o?l+="translate(calc(-50% + ".concat(t.x/F8,"em), calc(-50% + ").concat(t.y/F8,"em)) "):l+="translate(".concat(t.x/F8,"em, ").concat(t.y/F8,"em) "),l+="scale(".concat(t.size/F8*(t.flipX?-1:1),", ").concat(t.size/F8*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var wP3=`:root, :host {
|
|
9528
9528
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|