@qualityunit/liveagent-ticket-grid 0.0.94 → 0.0.95

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.
@@ -1,15 +1,15 @@
1
- var ks=Object.defineProperty;var Cs=(e,t,i)=>t in e?ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var Ae=(e,t,i)=>(Cs(e,typeof t!="symbol"?t+"":t,i),i);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function i(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=i(s);fetch(s.href,r)}})();const Vs="modulepreload",$s=function(e){return"/"+e},$i={},a=function(t,i,n){if(!i||i.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(i.map(r=>{if(r=$s(r),r in $i)return;$i[r]=!0;const o=r.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!n)for(let c=s.length-1;c>=0;c--){const _=s[c];if(_.href===r&&(!o||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Vs,o||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),o)return new Promise((c,_)=>{u.addEventListener("load",c),u.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},Si=(e,t)=>{const i=e[t];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((n,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t)))})};function q(){}function Tt(e,t){for(const i in t)e[i]=t[i];return e}function Ln(e){return e()}function Ni(){return Object.create(null)}function ke(e){e.forEach(Ln)}function jt(e){return typeof e=="function"}function oe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ct;function Mt(e,t){return e===t?!0:(Ct||(Ct=document.createElement("a")),Ct.href=t,e===Ct.href)}function Ss(e){return Object.keys(e).length===0}function Li(e,...t){if(e==null){for(const n of t)n(void 0);return q}const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function De(e){let t;return Li(e,i=>t=i)(),t}function Z(e,t,i){e.$$.on_destroy.push(Li(t,i))}function Rt(e,t,i,n){if(e){const s=An(e,t,i,n);return e[0](s)}}function An(e,t,i,n){return e[1]&&n?Tt(i.ctx.slice(),e[1](n(t))):i.ctx}function It(e,t,i,n){if(e[2]&&n){const s=e[2](n(i));if(t.dirty===void 0)return s;if(typeof s=="object"){const r=[],o=Math.max(t.dirty.length,s.length);for(let l=0;l<o;l+=1)r[l]=t.dirty[l]|s[l];return r}return t.dirty|s}return t.dirty}function Dt(e,t,i,n,s,r){if(s){const o=An(t,i,n,r);e.p(o,s)}}function wt(e){if(e.ctx.length>32){const t=[],i=e.ctx.length/32;for(let n=0;n<i;n++)t[n]=-1;return t}return-1}function Ns(e){const t={};for(const i in e)i[0]!=="$"&&(t[i]=e[i]);return t}function Hi(e,t){const i={};t=new Set(t);for(const n in e)!t.has(n)&&n[0]!=="$"&&(i[n]=e[n]);return i}function he(e){return e??""}function Hs(e,t,i){return e.set(i),t}const Ms=["",!0,1,"true","contenteditable"];function T(e,t){e.appendChild(t)}function me(e,t,i){const n=Bs(e);if(!n.getElementById(t)){const s=R("style");s.id=t,s.textContent=i,Fs(n,s)}}function Bs(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Fs(e,t){return T(e.head||e,t),t.sheet}function C(e,t,i){e.insertBefore(t,i||null)}function k(e){e.parentNode&&e.parentNode.removeChild(e)}function zt(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function R(e){return document.createElement(e)}function nd(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ne(e){return document.createTextNode(e)}function W(){return ne(" ")}function st(){return ne("")}function ge(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function ai(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function y(e,t,i){i==null?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}const Gs=["width","height"];function Mi(e,t){const i=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in t)t[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=t[n]:n==="__value"?e.value=e[n]=t[n]:i[n]&&i[n].set&&Gs.indexOf(n)===-1?e[n]=t[n]:y(e,n,t[n])}function sd(e,t){for(const i in t)y(e,i,t[i])}function rd(e,t,i){e.setAttributeNS("http://www.w3.org/1999/xlink",t,i)}function Us(e){return Array.from(e.childNodes)}function _e(e,t){t=""+t,e.data!==t&&(e.data=t)}function js(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function zs(e,t,i){~Ms.indexOf(i)?js(e,t):_e(e,t)}function Bi(e,t){e.value=t??""}function ei(e,t,i,n){i==null?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function Fi(e,t,i){e.classList.toggle(t,!!i)}function Ks(e,t,{bubbles:i=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:i,cancelable:n})}function Ws(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}function Gi(e,t){return new e(t)}let bt;function ht(e){bt=e}function Ai(){if(!bt)throw new Error("Function called outside component initialization");return bt}function Kt(e){Ai().$$.on_mount.push(e)}function On(){const e=Ai();return(t,i,{cancelable:n=!1}={})=>{const s=e.$$.callbacks[t];if(s){const r=Ks(t,i,{cancelable:n});return s.slice().forEach(o=>{o.call(e,r)}),!r.defaultPrevented}return!0}}function od(e){return Ai().$$.context.get(e)}function ld(e,t){const i=e.$$.callbacks[t.type];i&&i.slice().forEach(n=>n.call(this,t))}const ze=[],qe=[];let Xe=[];const Ui=[],Js=Promise.resolve();let ui=!1;function Xs(){ui||(ui=!0,Js.then(D))}function di(e){Xe.push(e)}const ti=new Set;let Ge=0;function D(){if(Ge!==0)return;const e=bt;do{try{for(;Ge<ze.length;){const t=ze[Ge];Ge++,ht(t),Zs(t.$$)}}catch(t){throw ze.length=0,Ge=0,t}for(ht(null),ze.length=0,Ge=0;qe.length;)qe.pop()();for(let t=0;t<Xe.length;t+=1){const i=Xe[t];ti.has(i)||(ti.add(i),i())}Xe.length=0}while(ze.length);for(;Ui.length;)Ui.pop()();ui=!1,ti.clear(),ht(e)}function Zs(e){if(e.fragment!==null){e.update(),ke(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(di)}}function Ys(e){const t=[],i=[];Xe.forEach(n=>e.indexOf(n)===-1?t.push(n):i.push(n)),i.forEach(n=>n()),Xe=t}const $t=new Set;let Me;function ye(){Me={r:0,c:[],p:Me}}function Te(){Me.r||ke(Me.c),Me=Me.p}function b(e,t){e&&e.i&&($t.delete(e),e.i(t))}function L(e,t,i,n){if(e&&e.o){if($t.has(e))return;$t.add(e),Me.c.push(()=>{$t.delete(e),n&&(i&&e.d(1),n())}),e.o(t)}else n&&n()}function Se(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Rn(e,t){const i={},n={},s={$$scope:1};let r=e.length;for(;r--;){const o=e[r],l=t[r];if(l){for(const d in o)d in l||(n[d]=1);for(const d in l)s[d]||(i[d]=l[d],s[d]=1);e[r]=l}else for(const d in o)s[d]=1}for(const o in n)o in i||(i[o]=void 0);return i}function qs(e){return typeof e=="object"&&e!==null?e:{}}function G(e){e&&e.c()}function M(e,t,i){const{fragment:n,after_update:s}=e.$$;n&&n.m(t,i),di(()=>{const r=e.$$.on_mount.map(Ln).filter(jt);e.$$.on_destroy?e.$$.on_destroy.push(...r):ke(r),e.$$.on_mount=[]}),s.forEach(di)}function B(e,t){const i=e.$$;i.fragment!==null&&(Ys(i.after_update),ke(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function Qs(e,t){e.$$.dirty[0]===-1&&(ze.push(e),Xs(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function le(e,t,i,n,s,r,o=null,l=[-1]){const d=bt;ht(e);const u=e.$$={fragment:null,ctx:[],props:r,update:q,not_equal:s,bound:Ni(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:Ni(),dirty:l,skip_bound:!1,root:t.target||d.$$.root};o&&o(u.root);let c=!1;if(u.ctx=i?i(e,t.props||{},(_,f,...m)=>{const p=m.length?m[0]:f;return u.ctx&&s(u.ctx[_],u.ctx[_]=p)&&(!u.skip_bound&&u.bound[_]&&u.bound[_](p),c&&Qs(e,_)),f}):[],u.update(),c=!0,ke(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const _=Us(t.target);u.fragment&&u.fragment.l(_),_.forEach(k)}else u.fragment&&u.fragment.c();t.intro&&b(e.$$.fragment),M(e,t.target,t.anchor),D()}ht(d)}let In;typeof HTMLElement=="function"&&(In=class extends HTMLElement{constructor(t,i,n){super();Ae(this,"$$ctor");Ae(this,"$$s");Ae(this,"$$c");Ae(this,"$$cn",!1);Ae(this,"$$d",{});Ae(this,"$$r",!1);Ae(this,"$$p_d",{});Ae(this,"$$l",{});Ae(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=i,n&&this.attachShadow({mode:"open"})}addEventListener(t,i,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(i),this.$$c){const s=this.$$c.$on(t,i);this.$$l_u.set(i,s)}super.addEventListener(t,i,n)}removeEventListener(t,i,n){if(super.removeEventListener(t,i,n),this.$$c){const s=this.$$l_u.get(i);s&&(s(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let o;return{c:function(){o=R("slot"),r!=="default"&&y(o,"name",r)},m:function(u,c){C(u,o,c)},d:function(u){u&&k(o)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},n=Ws(this);for(const r of this.$$s)r in n&&(i[r]=[t(r)]);for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=St(o,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const o=St(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const r in this.$$l)for(const o of this.$$l[r]){const l=this.$$c.$on(r,o);this.$$l_u.set(o,l)}this.$$l={}}}attributeChangedCallback(t,i,n){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=St(t,n,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(i=>this.$$p_d[i].attribute===t||!this.$$p_d[i].attribute&&i.toLowerCase()===t)||t}});function St(e,t,i,n){var r;const s=(r=i[e])==null?void 0:r.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!i[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ae(e,t,i,n,s,r){let o=class extends In{constructor(){super(e,i,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(d){var u;d=St(l,d,t),this.$$d[l]=d,(u=this.$$c)==null||u.$set({[l]:d})}})}),n.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var d;return(d=this.$$c)==null?void 0:d[l]}})}),r&&(o=r(o)),e.element=o,o}class ue{constructor(){Ae(this,"$$");Ae(this,"$$set")}$destroy(){B(this,1),this.$destroy=q}$on(t,i){if(!jt(i))return q;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(i),()=>{const s=n.indexOf(i);s!==-1&&n.splice(s,1)}}$set(t){this.$$set&&!Ss(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const er="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(er);function tr(e){me(e,"svelte-uqg1eo",".Icon.svelte-uqg1eo:before{font-family:'la-icon-font';display:inline-block;margin:0;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;font-size:1em}")}function ir(e){let t,i;return{c(){t=R("span"),y(t,"class",i=he(`Icon ${e[0]} ${e[1]}`)+" svelte-uqg1eo")},m(n,s){C(n,t,s)},p(n,[s]){s&3&&i!==(i=he(`Icon ${n[0]} ${n[1]}`)+" svelte-uqg1eo")&&y(t,"class",i)},i:q,o:q,d(n){n&&k(t)}}}function nr(e,t,i){let{className:n=""}=t,{iconLaClassName:s}=t;return e.$$set=r=>{"className"in r&&i(0,n=r.className),"iconLaClassName"in r&&i(1,s=r.iconLaClassName)},[n,s]}class Pe extends ue{constructor(t){super(),le(this,t,nr,ir,oe,{className:0,iconLaClassName:1},tr)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}get iconLaClassName(){return this.$$.ctx[1]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),D()}}ae(Pe,{className:{},iconLaClassName:{}},[],[],!0);const Ue=[];function sr(e,t){return{subscribe:pe(e,t).subscribe}}function pe(e,t=q){let i;const n=new Set;function s(l){if(oe(e,l)&&(e=l,i)){const d=!Ue.length;for(const u of n)u[1](),Ue.push(u,e);if(d){for(let u=0;u<Ue.length;u+=2)Ue[u][0](Ue[u+1]);Ue.length=0}}}function r(l){s(l(e))}function o(l,d=q){const u=[l,d];return n.add(u),n.size===1&&(i=t(s,r)||q),l(e),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:s,update:r,subscribe:o}}function rt(e,t,i){const n=!Array.isArray(e),s=n?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=t.length<2;return sr(i,(o,l)=>{let d=!1;const u=[];let c=0,_=q;const f=()=>{if(c)return;_();const p=t(n?u[0]:u,o,l);r?o(p):_=jt(p)?p:q},m=s.map((p,v)=>Li(p,E=>{u[v]=E,c&=~(1<<v),d&&f()},()=>{c|=1<<v}));return d=!0,f(),function(){ke(m),_(),d=!1}})}var Dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr=function(t){return or(t)&&!lr(t)};function or(e){return!!e&&typeof e=="object"}function lr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||dr(e)}var ar=typeof Symbol=="function"&&Symbol.for,ur=ar?Symbol.for("react.element"):60103;function dr(e){return e.$$typeof===ur}function cr(e){return Array.isArray(e)?[]:{}}function Lt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qe(cr(e),e,t):e}function _r(e,t,i){return e.concat(t).map(function(n){return Lt(n,i)})}function fr(e,t){if(!t.customMerge)return Qe;var i=t.customMerge(e);return typeof i=="function"?i:Qe}function mr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ji(e){return Object.keys(e).concat(mr(e))}function wn(e,t){try{return t in e}catch{return!1}}function hr(e,t){return wn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function gr(e,t,i){var n={};return i.isMergeableObject(e)&&ji(e).forEach(function(s){n[s]=Lt(e[s],i)}),ji(t).forEach(function(s){hr(e,s)||(wn(e,s)&&i.isMergeableObject(t[s])?n[s]=fr(s,i)(e[s],t[s],i):n[s]=Lt(t[s],i))}),n}function Qe(e,t,i){i=i||{},i.arrayMerge=i.arrayMerge||_r,i.isMergeableObject=i.isMergeableObject||rr,i.cloneUnlessOtherwiseSpecified=Lt;var n=Array.isArray(t),s=Array.isArray(e),r=n===s;return r?n?i.arrayMerge(e,t,i):gr(e,t,i):Lt(t,i)}Qe.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return Qe(n,s,i)},{})};var pr=Qe,vr=pr;const Er=Wt(vr);var ci=function(e,t){return ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},ci(e,t)};function Jt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ci(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var ie=function(){return ie=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++){i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},ie.apply(this,arguments)};function yr(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]]);return i}function ii(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,r;n<s;n++)(r||!(n in t))&&(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}var Y;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Y||(Y={}));var fe;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(fe||(fe={}));var et;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(et||(et={}));function zi(e){return e.type===fe.literal}function Tr(e){return e.type===fe.argument}function Pn(e){return e.type===fe.number}function xn(e){return e.type===fe.date}function kn(e){return e.type===fe.time}function Cn(e){return e.type===fe.select}function Vn(e){return e.type===fe.plural}function br(e){return e.type===fe.pound}function $n(e){return e.type===fe.tag}function Sn(e){return!!(e&&typeof e=="object"&&e.type===et.number)}function _i(e){return!!(e&&typeof e=="object"&&e.type===et.dateTime)}var Nn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Lr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Ar(e){var t={};return e.replace(Lr,function(i){var n=i.length;switch(i[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Or=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Rr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Or).filter(function(f){return f.length>0}),i=[],n=0,s=t;n<s.length;n++){var r=s[n],o=r.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],d=o.slice(1),u=0,c=d;u<c.length;u++){var _=c[u];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:l,options:d})}return i}function Ir(e){return e.replace(/^(.*?)-/,"")}var Ki=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Hn=/^(@+)?(\+|#+)?[rs]?$/g,Dr=/(\*)(0+)|(#+)(0+)|(0+)/g,Mn=/^(0+)$/;function Wi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Hn,function(i,n,s){return typeof s!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):s==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof s=="string"?s.length:0)),""}),t}function Bn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function wr(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if(i==="+!"?(t.signDisplay="always",e=e.slice(2)):i==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Mn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ji(e){var t={},i=Bn(e);return i||t}function Pr(e){for(var t={},i=0,n=e;i<n.length;i++){var s=n[i];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ir(s.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ie(ie(ie({},t),{notation:"scientific"}),s.options.reduce(function(d,u){return ie(ie({},d),Ji(u))},{}));continue;case"engineering":t=ie(ie(ie({},t),{notation:"engineering"}),s.options.reduce(function(d,u){return ie(ie({},d),Ji(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Dr,function(d,u,c,_,f,m){if(u)t.minimumIntegerDigits=c.length;else{if(_&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Mn.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Ki.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Ki,function(d,u,c,_,f,m){return c==="*"?t.minimumFractionDigits=u.length:_&&_[0]==="#"?t.maximumFractionDigits=_.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var r=s.options[0];r==="w"?t=ie(ie({},t),{trailingZeroDisplay:"stripIfInteger"}):r&&(t=ie(ie({},t),Wi(r)));continue}if(Hn.test(s.stem)){t=ie(ie({},t),Wi(s.stem));continue}var o=Bn(s.stem);o&&(t=ie(ie({},t),o));var l=wr(s.stem);l&&(t=ie(ie({},t),l))}return t}var Vt={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function xr(e,t){for(var i="",n=0;n<e.length;n++){var s=e.charAt(n);if(s==="j"){for(var r=0;n+1<e.length&&e.charAt(n+1)===s;)r++,n++;var o=1+(r&1),l=r<2?1:3+(r>>1),d="a",u=kr(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)i+=d;for(;o-- >0;)i=u+i}else s==="J"?i+="H":i+=s}return i}function kr(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,n;i!=="root"&&(n=e.maximize().region);var s=Vt[n||""]||Vt[i||""]||Vt["".concat(i,"-001")]||Vt["001"];return s[0]}var ni,Cr=new RegExp("^".concat(Nn.source,"*")),Vr=new RegExp("".concat(Nn.source,"*$"));function ee(e,t){return{start:e,end:t}}var $r=!!String.prototype.startsWith&&"_a".startsWith("a",1),Sr=!!String.fromCodePoint,Nr=!!Object.fromEntries,Hr=!!String.prototype.codePointAt,Mr=!!String.prototype.trimStart,Br=!!String.prototype.trimEnd,Fr=!!Number.isSafeInteger,Gr=Fr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fi=!0;try{var Ur=Gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fi=((ni=Ur.exec("a"))===null||ni===void 0?void 0:ni[0])==="a"}catch{fi=!1}var Xi=$r?function(t,i,n){return t.startsWith(i,n)}:function(t,i,n){return t.slice(n,n+i.length)===i},mi=Sr?String.fromCodePoint:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(var n="",s=t.length,r=0,o;s>r;){if(o=t[r++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Zi=Nr?Object.fromEntries:function(t){for(var i={},n=0,s=t;n<s.length;n++){var r=s[n],o=r[0],l=r[1];i[o]=l}return i},Fn=Hr?function(t,i){return t.codePointAt(i)}:function(t,i){var n=t.length;if(!(i<0||i>=n)){var s=t.charCodeAt(i),r;return s<55296||s>56319||i+1===n||(r=t.charCodeAt(i+1))<56320||r>57343?s:(s-55296<<10)+(r-56320)+65536}},jr=Mr?function(t){return t.trimStart()}:function(t){return t.replace(Cr,"")},zr=Br?function(t){return t.trimEnd()}:function(t){return t.replace(Vr,"")};function Gn(e,t){return new RegExp(e,t)}var hi;if(fi){var Yi=Gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");hi=function(t,i){var n;Yi.lastIndex=i;var s=Yi.exec(t);return(n=s[1])!==null&&n!==void 0?n:""}}else hi=function(t,i){for(var n=[];;){var s=Fn(t,i);if(s===void 0||Un(s)||Xr(s))break;n.push(s),i+=s>=65536?2:1}return mi.apply(void 0,n)};var Kr=function(){function e(t,i){i===void 0&&(i={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,i,n){for(var s=[];!this.isEOF();){var r=this.char();if(r===123){var o=this.parseArgument(t,n);if(o.err)return o;s.push(o.val)}else{if(r===125&&t>0)break;if(r===35&&(i==="plural"||i==="selectordinal")){var l=this.clonePosition();this.bump(),s.push({type:fe.pound,location:ee(l,this.clonePosition())})}else if(r===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Y.UNMATCHED_CLOSING_TAG,ee(this.clonePosition(),this.clonePosition()))}else if(r===60&&!this.ignoreTag&&gi(this.peek()||0)){var o=this.parseTag(t,i);if(o.err)return o;s.push(o.val)}else{var o=this.parseLiteral(t,i);if(o.err)return o;s.push(o.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,i){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<".concat(s,"/>"),location:ee(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(t+1,i,!0);if(r.err)return r;var o=r.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!gi(this.char()))return this.error(Y.INVALID_TAG,ee(l,this.clonePosition()));var d=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(Y.UNMATCHED_CLOSING_TAG,ee(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:s,children:o,location:ee(n,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,ee(l,this.clonePosition())))}else return this.error(Y.UNCLOSED_TAG,ee(n,this.clonePosition()))}else return this.error(Y.INVALID_TAG,ee(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Jr(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,i){for(var n=this.clonePosition(),s="";;){var r=this.tryParseQuote(i);if(r){s+=r;continue}var o=this.tryParseUnquoted(t,i);if(o){s+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){s+=l;continue}break}var d=ee(n,this.clonePosition());return{val:{type:fe.literal,value:s,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Wr(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(n);this.bump()}return mi.apply(void 0,i)},e.prototype.tryParseUnquoted=function(t,i){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(i==="plural"||i==="selectordinal")||n===125&&t>0?null:(this.bump(),mi(n))},e.prototype.parseArgument=function(t,i){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Y.EMPTY_ARGUMENT,ee(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(Y.MALFORMED_ARGUMENT,ee(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:s,location:ee(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition())):this.parseArgumentOptions(t,i,s,n);default:return this.error(Y.MALFORMED_ARGUMENT,ee(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),i=this.offset(),n=hi(this.message,i),s=i+n.length;this.bumpTo(s);var r=this.clonePosition(),o=ee(t,r);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,i,n,s){var r,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(Y.EXPECT_ARGUMENT_TYPE,ee(o,d));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var f=zr(_.val);if(f.length===0)return this.error(Y.EXPECT_ARGUMENT_STYLE,ee(this.clonePosition(),this.clonePosition()));var m=ee(c,this.clonePosition());u={style:f,styleLocation:m}}var p=this.tryParseArgumentClose(s);if(p.err)return p;var v=ee(s,this.clonePosition());if(u&&Xi(u==null?void 0:u.style,"::",0)){var E=jr(u.style.slice(2));if(l==="number"){var _=this.parseNumberSkeletonFromString(E,u.styleLocation);return _.err?_:{val:{type:fe.number,value:n,location:v,style:_.val},err:null}}else{if(E.length===0)return this.error(Y.EXPECT_DATE_TIME_SKELETON,v);var g=E;this.locale&&(g=xr(E,this.locale));var f={type:et.dateTime,pattern:g,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Ar(g):{}},A=l==="date"?fe.date:fe.time;return{val:{type:A,value:n,location:v,style:f},err:null}}}return{val:{type:l==="number"?fe.number:l==="date"?fe.date:fe.time,value:n,location:v,style:(r=u==null?void 0:u.style)!==null&&r!==void 0?r:null},err:null}}case"plural":case"selectordinal":case"select":{var $=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,ee($,ie({},$)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),O=0;if(l!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ee(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),x=this.parseIdentifierIfPossible(),O=_.val}var J=this.tryParsePluralOrSelectOptions(t,l,i,x);if(J.err)return J;var p=this.tryParseArgumentClose(s);if(p.err)return p;var X=ee(s,this.clonePosition());return l==="select"?{val:{type:fe.select,value:n,options:Zi(J.val),location:X},err:null}:{val:{type:fe.plural,value:n,options:Zi(J.val),offset:O,pluralType:l==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(Y.INVALID_ARGUMENT_TYPE,ee(o,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,ee(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,i=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ee(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,i){var n=[];try{n=Rr(t)}catch{return this.error(Y.INVALID_NUMBER_SKELETON,i)}return{val:{type:et.number,tokens:n,location:i,parsedOptions:this.shouldParseSkeletons?Pr(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,i,n,s){for(var r,o=!1,l=[],d=new Set,u=s.value,c=s.location;;){if(u.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=ee(_,this.clonePosition()),u=this.message.slice(_.offset,this.offset())}else break}if(d.has(u))return this.error(i==="select"?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ee(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,i,n);if(p.err)return p;var v=this.tryParseArgumentClose(m);if(v.err)return v;l.push([u,{value:p.val,location:ee(m,this.clonePosition())}]),d.add(u),this.bumpSpace(),r=this.parseIdentifierIfPossible(),u=r.value,c=r.location}return l.length===0?this.error(i==="select"?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,ee(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Y.MISSING_OTHER_CLAUSE,ee(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,i){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)r=!0,o=o*10+(l-48),this.bump();else break}var d=ee(s,this.clonePosition());return r?(o*=n,Gr(o)?{val:o,err:null}:this.error(i,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var i=Fn(this.message,t);if(i===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(t,i){return{val:null,err:{kind:t,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Xi(this.message,t,this.offset())){for(var i=0;i<t.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var i=this.offset(),n=this.message.indexOf(t,i);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var i=this.offset();if(i===t)break;if(i>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Un(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),i=this.offset(),n=this.message.charCodeAt(i+(t>=65536?2:1));return n??null},e}();function gi(e){return e>=97&&e<=122||e>=65&&e<=90}function Wr(e){return gi(e)||e===47}function Jr(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Un(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Xr(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function pi(e){e.forEach(function(t){if(delete t.location,Cn(t)||Vn(t))for(var i in t.options)delete t.options[i].location,pi(t.options[i].value);else Pn(t)&&Sn(t.style)||(xn(t)||kn(t))&&_i(t.style)?delete t.style.location:$n(t)&&pi(t.children)})}function Zr(e,t){t===void 0&&(t={}),t=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var i=new Kr(e,t).parse();if(i.err){var n=SyntaxError(Y[i.err.kind]);throw n.location=i.err.location,n.originalMessage=i.err.message,n}return t!=null&&t.captureLocation||pi(i.val),i.val}function si(e,t){var i=t&&t.cache?t.cache:io,n=t&&t.serializer?t.serializer:to,s=t&&t.strategy?t.strategy:qr;return s(e,{cache:i,serializer:n})}function Yr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jn(e,t,i,n){var s=Yr(n)?n:i(n),r=t.get(s);return typeof r>"u"&&(r=e.call(this,n),t.set(s,r)),r}function zn(e,t,i){var n=Array.prototype.slice.call(arguments,3),s=i(n),r=t.get(s);return typeof r>"u"&&(r=e.apply(this,n),t.set(s,r)),r}function Oi(e,t,i,n,s){return i.bind(t,e,n,s)}function qr(e,t){var i=e.length===1?jn:zn;return Oi(e,this,i,t.cache.create(),t.serializer)}function Qr(e,t){return Oi(e,this,zn,t.cache.create(),t.serializer)}function eo(e,t){return Oi(e,this,jn,t.cache.create(),t.serializer)}var to=function(){return JSON.stringify(arguments)};function Ri(){this.cache=Object.create(null)}Ri.prototype.get=function(e){return this.cache[e]};Ri.prototype.set=function(e,t){this.cache[e]=t};var io={create:function(){return new Ri}},ri={variadic:Qr,monadic:eo},tt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(tt||(tt={}));var Xt=function(e){Jt(t,e);function t(i,n,s){var r=e.call(this,i)||this;return r.code=n,r.originalMessage=s,r}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),qi=function(e){Jt(t,e);function t(i,n,s,r){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),tt.INVALID_VALUE,r)||this}return t}(Xt),no=function(e){Jt(t,e);function t(i,n,s){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(n),tt.INVALID_VALUE,s)||this}return t}(Xt),so=function(e){Jt(t,e);function t(i,n){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(n,'"'),tt.MISSING_VALUE,n)||this}return t}(Xt),Ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ee||(Ee={}));function ro(e){return e.length<2?e:e.reduce(function(t,i){var n=t[t.length-1];return!n||n.type!==Ee.literal||i.type!==Ee.literal?t.push(i):n.value+=i.value,t},[])}function oo(e){return typeof e=="function"}function Nt(e,t,i,n,s,r,o){if(e.length===1&&zi(e[0]))return[{type:Ee.literal,value:e[0].value}];for(var l=[],d=0,u=e;d<u.length;d++){var c=u[d];if(zi(c)){l.push({type:Ee.literal,value:c.value});continue}if(br(c)){typeof r=="number"&&l.push({type:Ee.literal,value:i.getNumberFormat(t).format(r)});continue}var _=c.value;if(!(s&&_ in s))throw new so(_,o);var f=s[_];if(Tr(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?Ee.literal:Ee.object,value:f});continue}if(xn(c)){var m=typeof c.style=="string"?n.date[c.style]:_i(c.style)?c.style.parsedOptions:void 0;l.push({type:Ee.literal,value:i.getDateTimeFormat(t,m).format(f)});continue}if(kn(c)){var m=typeof c.style=="string"?n.time[c.style]:_i(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:Ee.literal,value:i.getDateTimeFormat(t,m).format(f)});continue}if(Pn(c)){var m=typeof c.style=="string"?n.number[c.style]:Sn(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),l.push({type:Ee.literal,value:i.getNumberFormat(t,m).format(f)});continue}if($n(c)){var p=c.children,v=c.value,E=s[v];if(!oo(E))throw new no(v,"function",o);var g=Nt(p,t,i,n,s,r),A=E(g.map(function(O){return O.value}));Array.isArray(A)||(A=[A]),l.push.apply(l,A.map(function(O){return{type:typeof O=="string"?Ee.literal:Ee.object,value:O}}))}if(Cn(c)){var $=c.options[f]||c.options.other;if(!$)throw new qi(c.value,f,Object.keys(c.options),o);l.push.apply(l,Nt($.value,t,i,n,s));continue}if(Vn(c)){var $=c.options["=".concat(f)];if(!$){if(!Intl.PluralRules)throw new Xt(`Intl.PluralRules is not available in this environment.
1
+ var Nr=Object.defineProperty;var Hr=(e,t,n)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Te=(e,t,n)=>(Hr(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();const Mr="modulepreload",Br=function(e){return"/"+e},Ni={},a=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Br(s),s in Ni)return;Ni[s]=!0;const o=s.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const _=r[c];if(_.href===s&&(!o||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Mr,o||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),o)return new Promise((c,_)=>{u.addEventListener("load",c),u.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},Hi=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((i,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})};function W(){}function Tt(e,t){for(const n in t)e[n]=t[n];return e}function In(e){return e()}function Mi(){return Object.create(null)}function ke(e){e.forEach(In)}function jt(e){return typeof e=="function"}function ie(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Vt;function Bt(e,t){return e===t?!0:(Vt||(Vt=document.createElement("a")),Vt.href=t,e===Vt.href)}function Fr(e){return Object.keys(e).length===0}function Oi(e,...t){if(e==null){for(const i of t)i(void 0);return W}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Re(e){let t;return Oi(e,n=>t=n)(),t}function K(e,t,n){e.$$.on_destroy.push(Oi(t,n))}function Rt(e,t,n,i){if(e){const r=Rn(e,t,n,i);return e[0](r)}}function Rn(e,t,n,i){return e[1]&&i?Tt(n.ctx.slice(),e[1](i(t))):n.ctx}function Dt(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],o=Math.max(t.dirty.length,r.length);for(let l=0;l<o;l+=1)s[l]=t.dirty[l]|r[l];return s}return t.dirty|r}return t.dirty}function xt(e,t,n,i,r,s){if(r){const o=Rn(t,n,i,s);e.p(o,r)}}function wt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function Gr(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function Bi(e,t){const n={};t=new Set(t);for(const i in e)!t.has(i)&&i[0]!=="$"&&(n[i]=e[i]);return n}function fe(e){return e??""}function Ur(e,t,n){return e.set(n),t}const zr=["",!0,1,"true","contenteditable"];function T(e,t){e.appendChild(t)}function ce(e,t,n){const i=jr(e);if(!i.getElementById(t)){const r=I("style");r.id=t,r.textContent=n,Kr(i,r)}}function jr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Kr(e,t){return T(e.head||e,t),t.sheet}function k(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode&&e.parentNode.removeChild(e)}function Kt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function I(e){return document.createElement(e)}function pd(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ee(e){return document.createTextNode(e)}function j(){return ee(" ")}function ze(){return ee("")}function ve(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function ui(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function y(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const Jr=["width","height"];function Fi(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:n[i]&&n[i].set&&Jr.indexOf(i)===-1?e[i]=t[i]:y(e,i,t[i])}function vd(e,t){for(const n in t)y(e,n,t[n])}function Ed(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function Wr(e){return Array.from(e.childNodes)}function le(e,t){t=""+t,e.data!==t&&(e.data=t)}function Xr(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Zr(e,t,n){~zr.indexOf(n)?Xr(e,t):le(e,t)}function Gi(e,t){e.value=t??""}function Me(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function Ui(e,t,n){e.classList.toggle(t,!!n)}function Yr(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function qr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function zi(e,t){return new e(t)}let Lt;function gt(e){Lt=e}function Ii(){if(!Lt)throw new Error("Function called outside component initialization");return Lt}function Pt(e){Ii().$$.on_mount.push(e)}function Dn(){const e=Ii();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const s=Yr(t,n,{cancelable:i});return r.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}function yd(e){return Ii().$$.context.get(e)}function bd(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(i=>i.call(this,t))}const We=[],et=[];let qe=[];const ji=[],Qr=Promise.resolve();let di=!1;function es(){di||(di=!0,Qr.then(D))}function ci(e){qe.push(e)}const ii=new Set;let je=0;function D(){if(je!==0)return;const e=Lt;do{try{for(;je<We.length;){const t=We[je];je++,gt(t),ts(t.$$)}}catch(t){throw We.length=0,je=0,t}for(gt(null),We.length=0,je=0;et.length;)et.pop()();for(let t=0;t<qe.length;t+=1){const n=qe[t];ii.has(n)||(ii.add(n),n())}qe.length=0}while(We.length);for(;ji.length;)ji.pop()();di=!1,ii.clear(),gt(e)}function ts(e){if(e.fragment!==null){e.update(),ke(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ci)}}function is(e){const t=[],n=[];qe.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),qe=t}const St=new Set;let Be;function he(){Be={r:0,c:[],p:Be}}function ge(){Be.r||ke(Be.c),Be=Be.p}function b(e,t){e&&e.i&&(St.delete(e),e.i(t))}function L(e,t,n,i){if(e&&e.o){if(St.has(e))return;St.add(e),Be.c.push(()=>{St.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Se(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function xn(e,t){const n={},i={},r={$$scope:1};let s=e.length;for(;s--;){const o=e[s],l=t[s];if(l){for(const d in o)d in l||(i[d]=1);for(const d in l)r[d]||(n[d]=l[d],r[d]=1);e[s]=l}else for(const d in o)r[d]=1}for(const o in i)o in n||(n[o]=void 0);return n}function ns(e){return typeof e=="object"&&e!==null?e:{}}function M(e){e&&e.c()}function N(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),ci(()=>{const s=e.$$.on_mount.map(In).filter(jt);e.$$.on_destroy?e.$$.on_destroy.push(...s):ke(s),e.$$.on_mount=[]}),r.forEach(ci)}function H(e,t){const n=e.$$;n.fragment!==null&&(is(n.after_update),ke(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function rs(e,t){e.$$.dirty[0]===-1&&(We.push(e),es(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function re(e,t,n,i,r,s,o=null,l=[-1]){const d=Lt;gt(e);const u=e.$$={fragment:null,ctx:[],props:s,update:W,not_equal:r,bound:Mi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:Mi(),dirty:l,skip_bound:!1,root:t.target||d.$$.root};o&&o(u.root);let c=!1;if(u.ctx=n?n(e,t.props||{},(_,f,...m)=>{const v=m.length?m[0]:f;return u.ctx&&r(u.ctx[_],u.ctx[_]=v)&&(!u.skip_bound&&u.bound[_]&&u.bound[_](v),c&&rs(e,_)),f}):[],u.update(),c=!0,ke(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const _=Wr(t.target);u.fragment&&u.fragment.l(_),_.forEach(P)}else u.fragment&&u.fragment.c();t.intro&&b(e.$$.fragment),N(e,t.target,t.anchor),D()}gt(d)}let wn;typeof HTMLElement=="function"&&(wn=class extends HTMLElement{constructor(t,n,i){super();Te(this,"$$ctor");Te(this,"$$s");Te(this,"$$c");Te(this,"$$cn",!1);Te(this,"$$d",{});Te(this,"$$r",!1);Te(this,"$$p_d",{});Te(this,"$$l",{});Te(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=I("slot"),s!=="default"&&y(o,"name",s)},m:function(u,c){k(u,o,c)},d:function(u){u&&P(o)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=qr(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Nt(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=Nt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const o of this.$$l[s]){const l=this.$$c.$on(s,o);this.$$l_u.set(o,l)}this.$$l={}}}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Nt(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Nt(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function se(e,t,n,i,r,s){let o=class extends wn{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(d){var u;d=Nt(l,d,t),this.$$d[l]=d,(u=this.$$c)==null||u.$set({[l]:d})}})}),i.forEach(l=>{Object.defineProperty(o.prototype,l,{get(){var d;return(d=this.$$c)==null?void 0:d[l]}})}),s&&(o=s(o)),e.element=o,o}class oe{constructor(){Te(this,"$$");Te(this,"$$set")}$destroy(){H(this,1),this.$destroy=W}$on(t,n){if(!jt(n))return W;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!Fr(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ss="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ss);function os(e){ce(e,"svelte-uqg1eo",".Icon.svelte-uqg1eo:before{font-family:'la-icon-font';display:inline-block;margin:0;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;font-size:1em}")}function ls(e){let t,n;return{c(){t=I("span"),y(t,"class",n=fe(`Icon ${e[0]} ${e[1]}`)+" svelte-uqg1eo")},m(i,r){k(i,t,r)},p(i,[r]){r&3&&n!==(n=fe(`Icon ${i[0]} ${i[1]}`)+" svelte-uqg1eo")&&y(t,"class",n)},i:W,o:W,d(i){i&&P(t)}}}function as(e,t,n){let{className:i=""}=t,{iconLaClassName:r}=t;return e.$$set=s=>{"className"in s&&n(0,i=s.className),"iconLaClassName"in s&&n(1,r=s.iconLaClassName)},[i,r]}class we extends oe{constructor(t){super(),re(this,t,as,ls,ie,{className:0,iconLaClassName:1},os)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}get iconLaClassName(){return this.$$.ctx[1]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),D()}}se(we,{className:{},iconLaClassName:{}},[],[],!0);const Ke=[];function us(e,t){return{subscribe:pe(e,t).subscribe}}function pe(e,t=W){let n;const i=new Set;function r(l){if(ie(e,l)&&(e=l,n)){const d=!Ke.length;for(const u of i)u[1](),Ke.push(u,e);if(d){for(let u=0;u<Ke.length;u+=2)Ke[u][0](Ke[u+1]);Ke.length=0}}}function s(l){r(l(e))}function o(l,d=W){const u=[l,d];return i.add(u),i.size===1&&(n=t(r,s)||W),l(e),()=>{i.delete(u),i.size===0&&n&&(n(),n=null)}}return{set:r,update:s,subscribe:o}}function ot(e,t,n){const i=!Array.isArray(e),r=i?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return us(n,(o,l)=>{let d=!1;const u=[];let c=0,_=W;const f=()=>{if(c)return;_();const v=t(i?u[0]:u,o,l);s?o(v):_=jt(v)?v:W},m=r.map((v,p)=>Oi(v,E=>{u[p]=E,c&=~(1<<p),d&&f()},()=>{c|=1<<p}));return d=!0,f(),function(){ke(m),_(),d=!1}})}var Pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ds=function(t){return cs(t)&&!_s(t)};function cs(e){return!!e&&typeof e=="object"}function _s(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||hs(e)}var fs=typeof Symbol=="function"&&Symbol.for,ms=fs?Symbol.for("react.element"):60103;function hs(e){return e.$$typeof===ms}function gs(e){return Array.isArray(e)?[]:{}}function At(e,t){return t.clone!==!1&&t.isMergeableObject(e)?tt(gs(e),e,t):e}function ps(e,t,n){return e.concat(t).map(function(i){return At(i,n)})}function vs(e,t){if(!t.customMerge)return tt;var n=t.customMerge(e);return typeof n=="function"?n:tt}function Es(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ki(e){return Object.keys(e).concat(Es(e))}function kn(e,t){try{return t in e}catch{return!1}}function ys(e,t){return kn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function bs(e,t,n){var i={};return n.isMergeableObject(e)&&Ki(e).forEach(function(r){i[r]=At(e[r],n)}),Ki(t).forEach(function(r){ys(e,r)||(kn(e,r)&&n.isMergeableObject(t[r])?i[r]=vs(r,n)(e[r],t[r],n):i[r]=At(t[r],n))}),i}function tt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ps,n.isMergeableObject=n.isMergeableObject||ds,n.cloneUnlessOtherwiseSpecified=At;var i=Array.isArray(t),r=Array.isArray(e),s=i===r;return s?i?n.arrayMerge(e,t,n):bs(e,t,n):At(t,n)}tt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return tt(i,r,n)},{})};var Ts=tt,Ls=Ts;const As=Jt(Ls);var _i=function(e,t){return _i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},_i(e,t)};function Wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var te=function(){return te=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},te.apply(this,arguments)};function Os(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function ni(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var X;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(X||(X={}));var de;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(de||(de={}));var it;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(it||(it={}));function Ji(e){return e.type===de.literal}function Is(e){return e.type===de.argument}function $n(e){return e.type===de.number}function Vn(e){return e.type===de.date}function Cn(e){return e.type===de.time}function Sn(e){return e.type===de.select}function Nn(e){return e.type===de.plural}function Rs(e){return e.type===de.pound}function Hn(e){return e.type===de.tag}function Mn(e){return!!(e&&typeof e=="object"&&e.type===it.number)}function fi(e){return!!(e&&typeof e=="object"&&e.type===it.dateTime)}var Bn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ds=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function xs(e){var t={};return e.replace(Ds,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ws=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ps(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ws).filter(function(f){return f.length>0}),n=[],i=0,r=t;i<r.length;i++){var s=r[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],d=o.slice(1),u=0,c=d;u<c.length;u++){var _=c[u];if(_.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:d})}return n}function ks(e){return e.replace(/^(.*?)-/,"")}var Wi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Fn=/^(@+)?(\+|#+)?[rs]?$/g,$s=/(\*)(0+)|(#+)(0+)|(0+)/g,Gn=/^(0+)$/;function Xi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Fn,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function Un(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Vs(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Gn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zi(e){var t={},n=Un(e);return n||t}function Cs(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ks(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=te(te(te({},t),{notation:"scientific"}),r.options.reduce(function(d,u){return te(te({},d),Zi(u))},{}));continue;case"engineering":t=te(te(te({},t),{notation:"engineering"}),r.options.reduce(function(d,u){return te(te({},d),Zi(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace($s,function(d,u,c,_,f,m){if(u)t.minimumIntegerDigits=c.length;else{if(_&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Gn.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(Wi.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Wi,function(d,u,c,_,f,m){return c==="*"?t.minimumFractionDigits=u.length:_&&_[0]==="#"?t.maximumFractionDigits=_.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=r.options[0];s==="w"?t=te(te({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=te(te({},t),Xi(s)));continue}if(Fn.test(r.stem)){t=te(te({},t),Xi(r.stem));continue}var o=Un(r.stem);o&&(t=te(te({},t),o));var l=Vs(r.stem);l&&(t=te(te({},t),l))}return t}var Ct={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ss(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===r;)s++,i++;var o=1+(s&1),l=s<2?1:3+(s>>1),d="a",u=Ns(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)n+=d;for(;o-- >0;)n=u+n}else r==="J"?n+="H":n+=r}return n}function Ns(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=Ct[i||""]||Ct[n||""]||Ct["".concat(n,"-001")]||Ct["001"];return r[0]}var ri,Hs=new RegExp("^".concat(Bn.source,"*")),Ms=new RegExp("".concat(Bn.source,"*$"));function Y(e,t){return{start:e,end:t}}var Bs=!!String.prototype.startsWith&&"_a".startsWith("a",1),Fs=!!String.fromCodePoint,Gs=!!Object.fromEntries,Us=!!String.prototype.codePointAt,zs=!!String.prototype.trimStart,js=!!String.prototype.trimEnd,Ks=!!Number.isSafeInteger,Js=Ks?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mi=!0;try{var Ws=jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mi=((ri=Ws.exec("a"))===null||ri===void 0?void 0:ri[0])==="a"}catch{mi=!1}var Yi=Bs?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},hi=Fs?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,s=0,o;r>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},qi=Gs?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var s=r[i],o=s[0],l=s[1];n[o]=l}return n},zn=Us?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),s;return r<55296||r>56319||n+1===i||(s=t.charCodeAt(n+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},Xs=zs?function(t){return t.trimStart()}:function(t){return t.replace(Hs,"")},Zs=js?function(t){return t.trimEnd()}:function(t){return t.replace(Ms,"")};function jn(e,t){return new RegExp(e,t)}var gi;if(mi){var Qi=jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gi=function(t,n){var i;Qi.lastIndex=n;var r=Qi.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else gi=function(t,n){for(var i=[];;){var r=zn(t,n);if(r===void 0||Kn(r)||eo(r))break;i.push(r),n+=r>=65536?2:1}return hi.apply(void 0,i)};var Ys=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;r.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),r.push({type:de.pound,location:Y(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(X.UNMATCHED_CLOSING_TAG,Y(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&pi(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;r.push(o.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:de.literal,value:"<".concat(r,"/>"),location:Y(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!pi(this.char()))return this.error(X.INVALID_TAG,Y(l,this.clonePosition()));var d=this.clonePosition(),u=this.parseTagName();return r!==u?this.error(X.UNMATCHED_CLOSING_TAG,Y(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:de.tag,value:r,children:o,location:Y(i,this.clonePosition())},err:null}:this.error(X.INVALID_TAG,Y(l,this.clonePosition())))}else return this.error(X.UNCLOSED_TAG,Y(i,this.clonePosition()))}else return this.error(X.INVALID_TAG,Y(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Qs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var s=this.tryParseQuote(n);if(s){r+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){r+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){r+=l;continue}break}var d=Y(i,this.clonePosition());return{val:{type:de.literal,value:r,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!qs(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return hi.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),hi(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Y(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(X.EMPTY_ARGUMENT,Y(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(X.MALFORMED_ARGUMENT,Y(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Y(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:de.argument,value:r,location:Y(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Y(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(X.MALFORMED_ARGUMENT,Y(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=gi(this.message,n),r=n+i.length;this.bumpTo(r);var s=this.clonePosition(),o=Y(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,n,i,r){var s,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(X.EXPECT_ARGUMENT_TYPE,Y(o,d));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var f=Zs(_.val);if(f.length===0)return this.error(X.EXPECT_ARGUMENT_STYLE,Y(this.clonePosition(),this.clonePosition()));var m=Y(c,this.clonePosition());u={style:f,styleLocation:m}}var v=this.tryParseArgumentClose(r);if(v.err)return v;var p=Y(r,this.clonePosition());if(u&&Yi(u==null?void 0:u.style,"::",0)){var E=Xs(u.style.slice(2));if(l==="number"){var _=this.parseNumberSkeletonFromString(E,u.styleLocation);return _.err?_:{val:{type:de.number,value:i,location:p,style:_.val},err:null}}else{if(E.length===0)return this.error(X.EXPECT_DATE_TIME_SKELETON,p);var g=E;this.locale&&(g=Ss(E,this.locale));var f={type:it.dateTime,pattern:g,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?xs(g):{}},O=l==="date"?de.date:de.time;return{val:{type:O,value:i,location:p,style:f},err:null}}}return{val:{type:l==="number"?de.number:l==="date"?de.date:de.time,value:i,location:p,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var $=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,Y($,te({},$)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),A=0;if(l!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),C=this.parseIdentifierIfPossible(),A=_.val}var U=this.tryParsePluralOrSelectOptions(t,l,n,C);if(U.err)return U;var v=this.tryParseArgumentClose(r);if(v.err)return v;var _e=Y(r,this.clonePosition());return l==="select"?{val:{type:de.select,value:i,options:qi(U.val),location:_e},err:null}:{val:{type:de.plural,value:i,options:qi(U.val),offset:A,pluralType:l==="plural"?"cardinal":"ordinal",location:_e},err:null}}default:return this.error(X.INVALID_ARGUMENT_TYPE,Y(o,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Y(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(X.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Y(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=Ps(t)}catch{return this.error(X.INVALID_NUMBER_SKELETON,n)}return{val:{type:it.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?Cs(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var s,o=!1,l=[],d=new Set,u=r.value,c=r.location;;){if(u.length===0){var _=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_SELECTOR,X.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=Y(_,this.clonePosition()),u=this.message.slice(_.offset,this.offset())}else break}if(d.has(u))return this.error(n==="select"?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:X.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Y(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,i);if(v.err)return v;var p=this.tryParseArgumentClose(m);if(p.err)return p;l.push([u,{value:v.val,location:Y(m,this.clonePosition())}]),d.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return l.length===0?this.error(n==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR:X.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(X.MISSING_OTHER_CLAUSE,Y(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)s=!0,o=o*10+(l-48),this.bump();else break}var d=Y(r,this.clonePosition());return s?(o*=i,Js(o)?{val:o,err:null}:this.error(n,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=zn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Yi(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Kn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i??null},e}();function pi(e){return e>=97&&e<=122||e>=65&&e<=90}function qs(e){return pi(e)||e===47}function Qs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Kn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function eo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function vi(e){e.forEach(function(t){if(delete t.location,Sn(t)||Nn(t))for(var n in t.options)delete t.options[n].location,vi(t.options[n].value);else $n(t)&&Mn(t.style)||(Vn(t)||Cn(t))&&fi(t.style)?delete t.style.location:Hn(t)&&vi(t.children)})}function to(e,t){t===void 0&&(t={}),t=te({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ys(e,t).parse();if(n.err){var i=SyntaxError(X[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t!=null&&t.captureLocation||vi(n.val),n.val}function si(e,t){var n=t&&t.cache?t.cache:lo,i=t&&t.serializer?t.serializer:oo,r=t&&t.strategy?t.strategy:no;return r(e,{cache:n,serializer:i})}function io(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Jn(e,t,n,i){var r=io(i)?i:n(i),s=t.get(r);return typeof s>"u"&&(s=e.call(this,i),t.set(r,s)),s}function Wn(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),s=t.get(r);return typeof s>"u"&&(s=e.apply(this,i),t.set(r,s)),s}function Ri(e,t,n,i,r){return n.bind(t,e,i,r)}function no(e,t){var n=e.length===1?Jn:Wn;return Ri(e,this,n,t.cache.create(),t.serializer)}function ro(e,t){return Ri(e,this,Wn,t.cache.create(),t.serializer)}function so(e,t){return Ri(e,this,Jn,t.cache.create(),t.serializer)}var oo=function(){return JSON.stringify(arguments)};function Di(){this.cache=Object.create(null)}Di.prototype.get=function(e){return this.cache[e]};Di.prototype.set=function(e,t){this.cache[e]=t};var lo={create:function(){return new Di}},oi={variadic:ro,monadic:so},nt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(nt||(nt={}));var Xt=function(e){Wt(t,e);function t(n,i,r){var s=e.call(this,n)||this;return s.code=i,s.originalMessage=r,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),en=function(e){Wt(t,e);function t(n,i,r,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),nt.INVALID_VALUE,s)||this}return t}(Xt),ao=function(e){Wt(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),nt.INVALID_VALUE,r)||this}return t}(Xt),uo=function(e){Wt(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),nt.MISSING_VALUE,i)||this}return t}(Xt),ye;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ye||(ye={}));function co(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==ye.literal||n.type!==ye.literal?t.push(n):i.value+=n.value,t},[])}function _o(e){return typeof e=="function"}function Ht(e,t,n,i,r,s,o){if(e.length===1&&Ji(e[0]))return[{type:ye.literal,value:e[0].value}];for(var l=[],d=0,u=e;d<u.length;d++){var c=u[d];if(Ji(c)){l.push({type:ye.literal,value:c.value});continue}if(Rs(c)){typeof s=="number"&&l.push({type:ye.literal,value:n.getNumberFormat(t).format(s)});continue}var _=c.value;if(!(r&&_ in r))throw new uo(_,o);var f=r[_];if(Is(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?ye.literal:ye.object,value:f});continue}if(Vn(c)){var m=typeof c.style=="string"?i.date[c.style]:fi(c.style)?c.style.parsedOptions:void 0;l.push({type:ye.literal,value:n.getDateTimeFormat(t,m).format(f)});continue}if(Cn(c)){var m=typeof c.style=="string"?i.time[c.style]:fi(c.style)?c.style.parsedOptions:i.time.medium;l.push({type:ye.literal,value:n.getDateTimeFormat(t,m).format(f)});continue}if($n(c)){var m=typeof c.style=="string"?i.number[c.style]:Mn(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),l.push({type:ye.literal,value:n.getNumberFormat(t,m).format(f)});continue}if(Hn(c)){var v=c.children,p=c.value,E=r[p];if(!_o(E))throw new ao(p,"function",o);var g=Ht(v,t,n,i,r,s),O=E(g.map(function(A){return A.value}));Array.isArray(O)||(O=[O]),l.push.apply(l,O.map(function(A){return{type:typeof A=="string"?ye.literal:ye.object,value:A}}))}if(Sn(c)){var $=c.options[f]||c.options.other;if(!$)throw new en(c.value,f,Object.keys(c.options),o);l.push.apply(l,Ht($.value,t,n,i,r));continue}if(Nn(c)){var $=c.options["=".concat(f)];if(!$){if(!Intl.PluralRules)throw new Xt(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,tt.MISSING_INTL_API,o);var x=i.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));$=c.options[x]||c.options.other}if(!$)throw new qi(c.value,f,Object.keys(c.options),o);l.push.apply(l,Nt($.value,t,i,n,s,f-(c.offset||0)));continue}}return ro(l)}function lo(e,t){return t?ie(ie(ie({},e||{}),t||{}),Object.keys(e).reduce(function(i,n){return i[n]=ie(ie({},e[n]),t[n]||{}),i},{})):e}function ao(e,t){return t?Object.keys(e).reduce(function(i,n){return i[n]=lo(e[n],t[n]),i},ie({},e)):e}function oi(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,i){e[t]=i}}}}}function uo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:si(function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ii([void 0],i,!1)))},{cache:oi(e.number),strategy:ri.variadic}),getDateTimeFormat:si(function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ii([void 0],i,!1)))},{cache:oi(e.dateTime),strategy:ri.variadic}),getPluralRules:si(function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ii([void 0],i,!1)))},{cache:oi(e.pluralRules),strategy:ri.variadic})}}var Kn=function(){function e(t,i,n,s){var r=this;if(i===void 0&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var u=r.formatToParts(d);if(u.length===1)return u[0].value;var c=u.reduce(function(_,f){return!_.length||f.type!==Ee.literal||typeof _[_.length-1]!="string"?_.push(f.value):_[_.length-1]+=f.value,_},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return Nt(r.ast,r.locales,r.formatters,r.formats,d,void 0,r.message)},this.resolvedOptions=function(){var d;return{locale:((d=r.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(r.locales)[0]}},this.getAst=function(){return r.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=s||{};o.formatters;var l=yr(o,["formatters"]);this.ast=e.__parse(t,ie(ie({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ao(e.formats,n),this.formatters=s&&s.formatters||uo(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(t);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Zr,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function co(e,t){if(t==null)return;if(t in e)return e[t];const i=t.split(".");let n=e;for(let s=0;s<i.length;s++)if(typeof n=="object"){if(s>0){const r=i.slice(s,i.length).join(".");if(r in n){n=n[r];break}}n=n[i[s]]}else n=void 0;return n}const $e={},_o=(e,t,i)=>i&&(t in $e||($e[t]={}),e in $e[t]||($e[t][e]=i),i),Wn=(e,t)=>{if(t==null)return;if(t in $e&&e in $e[t])return $e[t][e];const i=Pt(t);for(let n=0;n<i.length;n++){const s=i[n],r=mo(s,e);if(r)return _o(e,t,r)}};let Ii;const ot=pe({});function fo(e){return Ii[e]||null}function Di(e){return e in Ii}function mo(e,t){if(!Di(e))return null;const i=fo(e);return co(i,t)}function ho(e){if(e==null)return;const t=Pt(e);for(let i=0;i<t.length;i++){const n=t[i];if(Di(n))return n}}function go(e,...t){delete $e[e],ot.update(i=>(i[e]=Er.all([i[e]||{},...t]),i))}rt([ot],([e])=>Object.keys(e));ot.subscribe(e=>Ii=e);const gt={};function po(e){gt[e]=new Set}function vo(e,t){gt[e].delete(t),gt[e].size===0&&delete gt[e]}function pt(e){return gt[e]}function Eo(e){return Pt(e).map(t=>{const i=pt(t);return[t,i?[...i]:[]]}).filter(([,t])=>t.length>0)}function Bt(e){return e==null?!1:Pt(e).some(t=>{var i;return(i=pt(t))==null?void 0:i.size})}function yo(e,t){return Promise.all(t.map(n=>(vo(e,n),n().then(s=>s.default||s)))).then(n=>go(e,...n))}const _t={};function Jn(e){if(!Bt(e))return e in _t?_t[e]:Promise.resolve();const t=Eo(e);return _t[e]=Promise.all(t.map(([i,n])=>yo(i,n))).then(()=>{if(Bt(e))return Jn(e);delete _t[e]}),_t[e]}function Qi(e,t){pt(e)||po(e);const i=pt(e);pt(e).has(t)||(Di(e)||ot.update(n=>(n[e]={},n)),i.add(t))}var en=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable,Lo=(e,t)=>{var i={};for(var n in e)To.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&en)for(var n of en(e))t.indexOf(n)<0&&bo.call(e,n)&&(i[n]=e[n]);return i};const Ao={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Oo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Pt(e).join('", "')}".${Bt(Ne())?`
3
+ `,nt.MISSING_INTL_API,o);var C=n.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));$=c.options[C]||c.options.other}if(!$)throw new en(c.value,f,Object.keys(c.options),o);l.push.apply(l,Ht($.value,t,n,i,r,f-(c.offset||0)));continue}}return co(l)}function fo(e,t){return t?te(te(te({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=te(te({},e[i]),t[i]||{}),n},{})):e}function mo(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=fo(e[i],t[i]),n},te({},e)):e}function li(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ho(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:si(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,ni([void 0],n,!1)))},{cache:li(e.number),strategy:oi.variadic}),getDateTimeFormat:si(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,ni([void 0],n,!1)))},{cache:li(e.dateTime),strategy:oi.variadic}),getPluralRules:si(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,ni([void 0],n,!1)))},{cache:li(e.pluralRules),strategy:oi.variadic})}}var Xn=function(){function e(t,n,i,r){var s=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var u=s.formatToParts(d);if(u.length===1)return u[0].value;var c=u.reduce(function(_,f){return!_.length||f.type!==ye.literal||typeof _[_.length-1]!="string"?_.push(f.value):_[_.length-1]+=f.value,_},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return Ht(s.ast,s.locales,s.formatters,s.formats,d,void 0,s.message)},this.resolvedOptions=function(){var d;return{locale:((d=s.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=r||{};o.formatters;var l=Os(o,["formatters"]);this.ast=e.__parse(t,te(te({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=mo(e.formats,i),this.formatters=r&&r.formatters||ho(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=to,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function go(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let i=e;for(let r=0;r<n.length;r++)if(typeof i=="object"){if(r>0){const s=n.slice(r,n.length).join(".");if(s in i){i=i[s];break}}i=i[n[r]]}else i=void 0;return i}const Ce={},po=(e,t,n)=>n&&(t in Ce||(Ce[t]={}),e in Ce[t]||(Ce[t][e]=n),n),Zn=(e,t)=>{if(t==null)return;if(t in Ce&&e in Ce[t])return Ce[t][e];const n=kt(t);for(let i=0;i<n.length;i++){const r=n[i],s=Eo(r,e);if(s)return po(e,t,s)}};let xi;const lt=pe({});function vo(e){return xi[e]||null}function wi(e){return e in xi}function Eo(e,t){if(!wi(e))return null;const n=vo(e);return go(n,t)}function yo(e){if(e==null)return;const t=kt(e);for(let n=0;n<t.length;n++){const i=t[n];if(wi(i))return i}}function bo(e,...t){delete Ce[e],lt.update(n=>(n[e]=As.all([n[e]||{},...t]),n))}ot([lt],([e])=>Object.keys(e));lt.subscribe(e=>xi=e);const pt={};function To(e){pt[e]=new Set}function Lo(e,t){pt[e].delete(t),pt[e].size===0&&delete pt[e]}function vt(e){return pt[e]}function Ao(e){return kt(e).map(t=>{const n=vt(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Ft(e){return e==null?!1:kt(e).some(t=>{var n;return(n=vt(t))==null?void 0:n.size})}function Oo(e,t){return Promise.all(t.map(i=>(Lo(e,i),i().then(r=>r.default||r)))).then(i=>bo(e,...i))}const ft={};function Yn(e){if(!Ft(e))return e in ft?ft[e]:Promise.resolve();const t=Ao(e);return ft[e]=Promise.all(t.map(([n,i])=>Oo(n,i))).then(()=>{if(Ft(e))return Yn(e);delete ft[e]}),ft[e]}function tn(e,t){vt(e)||To(e);const n=vt(e);vt(e).has(t)||(wi(e)||lt.update(i=>(i[e]={},i)),n.add(t))}var nn=Object.getOwnPropertySymbols,Io=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Do=(e,t)=>{var n={};for(var i in e)Io.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&nn)for(var i of nn(e))t.indexOf(i)<0&&Ro.call(e,i)&&(n[i]=e[i]);return n};const xo={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function wo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${kt(e).join('", "')}".${Ft(Ne())?`
4
4
 
5
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Ro={fallbackLocale:null,loadingDelay:200,formats:Ao,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},mt=Ro;function it(){return mt}function Io(e){const t=e,{formats:i}=t,n=Lo(t,["formats"]);let s=e.fallbackLocale;if(e.initialLocale)try{Kn.resolveLocale(e.initialLocale)&&(s=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=Oo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(mt,n,{initialLocale:s}),i&&("number"in i&&Object.assign(mt.formats.number,i.number),"date"in i&&Object.assign(mt.formats.date,i.date),"time"in i&&Object.assign(mt.formats.time,i.time)),lt.set(s)}const Ht=pe(!1);var Do=Object.defineProperty,wo=Object.defineProperties,Po=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,nn=(e,t,i)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Co=(e,t)=>{for(var i in t||(t={}))xo.call(t,i)&&nn(e,i,t[i]);if(tn)for(var i of tn(t))ko.call(t,i)&&nn(e,i,t[i]);return e},Vo=(e,t)=>wo(e,Po(t));let vi;const Ft=pe(null);function sn(e){return e.split("-").map((t,i,n)=>n.slice(0,i+1).join("-")).reverse()}function Pt(e,t=it().fallbackLocale){const i=sn(e);return t?[...new Set([...i,...sn(t)])]:i}function Ne(){return vi??void 0}Ft.subscribe(e=>{vi=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const $o=e=>{if(e&&ho(e)&&Bt(e)){const{loadingDelay:t}=it();let i;return typeof window<"u"&&Ne()!=null&&t?i=window.setTimeout(()=>Ht.set(!0),t):Ht.set(!0),Jn(e).then(()=>{Ft.set(e)}).finally(()=>{clearTimeout(i),Ht.set(!1)})}return Ft.set(e)},lt=Vo(Co({},Ft),{set:$o}),Zt=e=>{const t=Object.create(null);return n=>{const s=JSON.stringify(n);return s in t?t[s]:t[s]=e(n)}};var So=Object.defineProperty,Gt=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,rn=(e,t,i)=>t in e?So(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,wi=(e,t)=>{for(var i in t||(t={}))Xn.call(t,i)&&rn(e,i,t[i]);if(Gt)for(var i of Gt(t))Zn.call(t,i)&&rn(e,i,t[i]);return e},at=(e,t)=>{var i={};for(var n in e)Xn.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&Gt)for(var n of Gt(e))t.indexOf(n)<0&&Zn.call(e,n)&&(i[n]=e[n]);return i};const At=(e,t)=>{const{formats:i}=it();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},No=Zt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(s=At("number",n)),new Intl.NumberFormat(i,s)}),Ho=Zt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?s=At("date",n):Object.keys(s).length===0&&(s=At("date","short")),new Intl.DateTimeFormat(i,s)}),Mo=Zt(e=>{var t=e,{locale:i,format:n}=t,s=at(t,["locale","format"]);if(i==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?s=At("time",n):Object.keys(s).length===0&&(s=At("time","short")),new Intl.DateTimeFormat(i,s)}),Bo=(e={})=>{var t=e,{locale:i=Ne()}=t,n=at(t,["locale"]);return No(wi({locale:i},n))},Fo=(e={})=>{var t=e,{locale:i=Ne()}=t,n=at(t,["locale"]);return Ho(wi({locale:i},n))},Go=(e={})=>{var t=e,{locale:i=Ne()}=t,n=at(t,["locale"]);return Mo(wi({locale:i},n))},Uo=Zt((e,t=Ne())=>new Kn(e,t,it().formats,{ignoreTag:it().ignoreTag})),jo=(e,t={})=>{var i,n,s,r;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:d=Ne(),default:u}=o;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Wn(e,d);if(!c)c=(r=(s=(n=(i=it()).handleMissingMessage)==null?void 0:n.call(i,{locale:d,id:e,defaultValue:u}))!=null?s:u)!=null?r:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let _=c;try{_=Uo(c,d).format(l)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return _},zo=(e,t)=>Go(t).format(e),Ko=(e,t)=>Fo(t).format(e),Wo=(e,t)=>Bo(t).format(e),Jo=(e,t=Ne())=>Wn(e,t),Re=rt([lt,ot],()=>jo);rt([lt],()=>zo);rt([lt],()=>Ko);rt([lt],()=>Wo);rt([lt,ot],()=>Jo);var Ke=globalThis&&globalThis.__awaiter||function(e,t,i,n){function s(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function l(c){try{u(n.next(c))}catch(_){o(_)}}function d(c){try{u(n.throw(c))}catch(_){o(_)}}function u(c){c.done?r(c.value):s(c.value).then(l,d)}u((n=n.apply(e,t||[])).next())})};const Xo="https://localhost/api/v3".replace(/\/+$/,"");class Pi{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Xo}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Yn}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:()=>Ke(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const Zo=new Pi;class Yt{constructor(t=Zo){this.configuration=t,this.fetchApi=(i,n)=>Ke(this,void 0,void 0,function*(){let s={url:i,init:n};for(const o of this.middleware)o.pre&&(s=(yield o.pre(Object.assign({fetch:this.fetchApi},s)))||s);let r;try{r=yield(this.configuration.fetchApi||fetch)(s.url,s.init)}catch(o){for(const l of this.middleware)l.onError&&(r=(yield l.onError({fetch:this.fetchApi,url:s.url,init:s.init,error:o,response:r?r.clone():void 0}))||r);if(r===void 0)throw o instanceof Error?new el(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(r=(yield o.post({fetch:this.fetchApi,url:s.url,init:s.init,response:r.clone()}))||r);return r}),this.middleware=t.middleware}withMiddleware(...t){const i=this.clone();return i.middleware=i.middleware.concat(...t),i}withPreMiddleware(...t){const i=t.map(n=>({pre:n}));return this.withMiddleware(...i)}withPostMiddleware(...t){const i=t.map(n=>({post:n}));return this.withMiddleware(...i)}isJsonMime(t){return t?Yt.jsonRegex.test(t):!1}request(t,i){return Ke(this,void 0,void 0,function*(){const{url:n,init:s}=yield this.createFetchParams(t,i),r=yield this.fetchApi(n,s);if(r&&r.status>=200&&r.status<300)return r;throw new Qo(r,"Response returned an error code")})}createFetchParams(t,i){return Ke(this,void 0,void 0,function*(){let n=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(t.query));const s=Object.assign({},this.configuration.headers,t.headers);Object.keys(s).forEach(u=>s[u]===void 0?delete s[u]:{});const r=typeof i=="function"?i:()=>Ke(this,void 0,void 0,function*(){return i}),o={method:t.method,headers:s,body:t.body,credentials:this.configuration.credentials},l=Object.assign(Object.assign({},o),yield r({init:o,context:t})),d=Object.assign(Object.assign({},l),{body:qo(l.body)||l.body instanceof URLSearchParams||Yo(l.body)?l.body:JSON.stringify(l.body)});return{url:n,init:d}})}clone(){const t=this.constructor,i=new t(this.configuration);return i.middleware=this.middleware.slice(),i}}Yt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function Yo(e){return typeof Blob<"u"&&e instanceof Blob}function qo(e){return typeof FormData<"u"&&e instanceof FormData}class Qo extends Error{constructor(t,i){super(i),this.response=t,this.name="ResponseError"}}class el extends Error{constructor(t,i){super(i),this.cause=t,this.name="FetchError"}}class on extends Error{constructor(t,i){super(i),this.field=t,this.name="RequiredError"}}function h(e,t){const i=e[t];return i!=null}function Yn(e,t=""){return Object.keys(e).map(i=>qn(i,e[i],t)).filter(i=>i.length>0).join("&")}function qn(e,t,i=""){const n=i+(i.length?`[${e}]`:e);if(t instanceof Array){const s=t.map(r=>encodeURIComponent(String(r))).join(`&${encodeURIComponent(n)}=`);return`${encodeURIComponent(n)}=${s}`}if(t instanceof Set){const s=Array.from(t);return qn(e,s,i)}return t instanceof Date?`${encodeURIComponent(n)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?Yn(t,n):`${encodeURIComponent(n)}=${encodeURIComponent(String(t))}`}class ce{constructor(t,i=n=>n){this.raw=t,this.transformer=i}value(){return Ke(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function tl(e){return il(e)}function il(e,t){return e==null?e:{departmentid:h(e,"departmentid")?e.departmentid:void 0,onlineStatus:h(e,"online_status")?e.online_status:void 0,presetStatus:h(e,"preset_status")?e.preset_status:void 0}}function nl(e){return sl(e)}function sl(e,t){return e==null?e:{agentid:h(e,"agentid")?e.agentid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,username:h(e,"username")?e.username:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,roleid:h(e,"roleid")?e.roleid:void 0,departmentsStatuses:h(e,"departments_statuses")?e.departments_statuses.map(tl):void 0,twofa:h(e,"twofa")?e.twofa:void 0,lastPswdChange:h(e,"last_pswd_change")?new Date(e.last_pswd_change):void 0,userstatus:h(e,"userstatus")?e.userstatus:void 0}}function rl(e){return ol(e)}function ol(e,t){return e==null?e:{conversationid:h(e,"conversationid")?e.conversationid:void 0,datechanged:h(e,"datechanged")?new Date(e.datechanged):void 0,status:h(e,"status")?e.status:void 0,preview:h(e,"preview")?e.preview:void 0,subject:h(e,"subject")?e.subject:void 0,departmentname:h(e,"departmentname")?e.departmentname:void 0,agentname:h(e,"agentname")?e.agentname:void 0,tags:h(e,"tags")?e.tags:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,emails:h(e,"emails")?e.emails:void 0,city:h(e,"city")?e.city:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,rstatus:h(e,"rstatus")?e.rstatus:void 0,statusdatestarted:h(e,"statusdatestarted")?new Date(e.statusdatestarted):void 0,chatOrder:h(e,"chat_order")?e.chat_order:void 0}}function ll(e){return al(e)}function al(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,name:h(e,"name")?e.name:void 0,type:h(e,"type")?e.type:void 0,onlineCode:h(e,"online_code")?e.online_code:void 0,offlineCode:h(e,"offline_code")?e.offline_code:void 0,onlineCodeCss:h(e,"online_code_css")?e.online_code_css:void 0,offlineCodeCss:h(e,"offline_code_css")?e.offline_code_css:void 0,provide:h(e,"provide")?e.provide:void 0,impressions:h(e,"impressions")?e.impressions:void 0,tickets:h(e,"tickets")?e.tickets:void 0,status:h(e,"status")?e.status:void 0,lastDisplayTime:h(e,"last_display_time")?e.last_display_time:void 0,lastDisplayUrl:h(e,"last_display_url")?e.last_display_url:void 0}}function Ie(e){return ul(e)}function ul(e,t){return e==null?e:{count:h(e,"count")?e.count:void 0}}function dl(e){return cl(e)}function cl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,name:h(e,"name")?e.name:void 0,agentCount:h(e,"agent_count")?e.agent_count:void 0}}function _l(e){return fl(e)}function fl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,logid:h(e,"logid")?e.logid:void 0,line:h(e,"line")?e.line:void 0,filename:h(e,"filename")?e.filename:void 0,created:h(e,"created")?e.created:void 0,level:h(e,"level")?e.level:void 0,type:h(e,"type")?e.type:void 0,message:h(e,"message")?e.message:void 0,ip:h(e,"ip")?e.ip:void 0,groupid:h(e,"groupid")?e.groupid:void 0}}function ml(e){return hl(e)}function hl(e,t){return e==null?e:{agentid:h(e,"agentid")?e.agentid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,chats:h(e,"chats")?e.chats:void 0}}function gl(e){return pl(e)}function pl(e,t){return e==null?e:{name:h(e,"name")?e.name:void 0,code:h(e,"code")?e.code:void 0,engName:h(e,"eng_name")?e.eng_name:void 0,translated:h(e,"translated")?e.translated:void 0,isDefault:h(e,"is_default")?e.is_default:void 0,active:h(e,"active")?e.active:void 0,isCustom:h(e,"is_custom")?e.is_custom:void 0,isBuiltIn:h(e,"is_builtIn")?e.is_builtIn:void 0}}function vl(e){return El(e)}function El(e,t){return e==null?e:{codeName:h(e,"code_name")?e.code_name:void 0,name:h(e,"name")?e.name:void 0,description:h(e,"description")?e.description:void 0,active:h(e,"active")?e.active:void 0,help:h(e,"help")?e.help:void 0,multiple:h(e,"multiple")?e.multiple:void 0,configFile:h(e,"config_file")?e.config_file:void 0,price:h(e,"price")?e.price:void 0,legacyIntegration:h(e,"legacy_integration")?e.legacy_integration:void 0}}function li(e){return yl(e)}function yl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,conversationid:h(e,"conversationid")?e.conversationid:void 0,code:h(e,"code")?e.code:void 0,slaTicketId:h(e,"sla_ticket_id")?e.sla_ticket_id:void 0,departmentid:h(e,"departmentid")?e.departmentid:void 0,departmentName:h(e,"department_name")?e.department_name:void 0,levelid:h(e,"levelid")?e.levelid:void 0,slaLevelName:h(e,"sla_level_name")?e.sla_level_name:void 0,sla:h(e,"sla")?e.sla:void 0,dateCreated:h(e,"date_created")?e.date_created:void 0,dateClosed:h(e,"date_closed")?e.date_closed:void 0,dateDue:h(e,"date_due")?e.date_due:void 0,slaLevelId:h(e,"sla_level_id")?e.sla_level_id:void 0,slaType:h(e,"sla_type")?new Date(e.sla_type):void 0,agentid:h(e,"agentid")?e.agentid:void 0,agentFirstname:h(e,"agent_firstname")?e.agent_firstname:void 0,agentLastname:h(e,"agent_lastname")?e.agent_lastname:void 0,agentAvatarUrl:h(e,"agent_avatar_url")?e.agent_avatar_url:void 0,reqContactid:h(e,"req_contactid")?e.req_contactid:void 0,reqFirstname:h(e,"req_firstname")?e.req_firstname:void 0,reqLastname:h(e,"req_lastname")?e.req_lastname:void 0,reqSystemname:h(e,"req_systemname")?e.req_systemname:void 0,reqContactName:h(e,"req_contactName")?e.req_contactName:void 0,reqAvatarUrl:h(e,"req_avatar_url")?e.req_avatar_url:void 0}}function ln(e){return Tl(e)}function Tl(e,t){return e==null?e:{tagid:h(e,"tagid")?e.tagid:void 0,name:h(e,"name")?e.name:void 0,type:h(e,"type")?e.type:void 0,color:h(e,"color")?e.color:void 0,backgroundcolor:h(e,"backgroundcolor")?e.backgroundcolor:void 0,isPublic:h(e,"is_public")?e.is_public:void 0}}function Qn(e){return bl(e)}function bl(e,t){return e==null?e:{conversationid:h(e,"conversationid")?e.conversationid:void 0,code:h(e,"code")?e.code:void 0,datecreated:h(e,"datecreated")?new Date(e.datecreated):void 0,datechanged:h(e,"datechanged")?new Date(e.datechanged):void 0,dateresolved:h(e,"dateresolved")?new Date(e.dateresolved):void 0,statuschanged:h(e,"statuschanged")?new Date(e.statuschanged):void 0,rorder:h(e,"rorder")?e.rorder:void 0,datedue:h(e,"datedue")?new Date(e.datedue):void 0,datereopen:h(e,"datereopen")?new Date(e.datereopen):void 0,status:h(e,"status")?e.status:void 0,channelType:h(e,"channel_type")?e.channel_type:void 0,departmentid:h(e,"departmentid")?e.departmentid:void 0,agentid:h(e,"agentid")?e.agentid:void 0,preview:h(e,"preview")?e.preview:void 0,subject:h(e,"subject")?e.subject:void 0,departmentname:h(e,"departmentname")?e.departmentname:void 0,agentname:h(e,"agentname")?e.agentname:void 0,tags:h(e,"tags")?e.tags:void 0,messagegroupsIn:h(e,"messagegroups_in")?e.messagegroups_in:void 0,messagegroupsOut:h(e,"messagegroups_out")?e.messagegroups_out:void 0,contactid:h(e,"contactid")?e.contactid:void 0,parentContactid:h(e,"parent_contactid")?e.parent_contactid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,emails:h(e,"emails")?e.emails:void 0,phones:h(e,"phones")?e.phones:void 0,jobPosition:h(e,"job_position")?e.job_position:void 0,contactType:h(e,"contact_type")?e.contact_type:void 0,city:h(e,"city")?e.city:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,timeOffset:h(e,"time_offset")?e.time_offset:void 0,gender:h(e,"gender")?e.gender:void 0,levelid:h(e,"levelid")?e.levelid:void 0,groups:h(e,"groups")?e.groups:void 0,contactStatus:h(e,"contact_status")?e.contact_status:void 0,company:h(e,"company")?e.company:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,userid:h(e,"userid")?e.userid:void 0,roleid:h(e,"roleid")?e.roleid:void 0,userstatus:h(e,"userstatus")?e.userstatus:void 0,accountuserstatus:h(e,"accountuserstatus")?e.accountuserstatus:void 0,description:h(e,"description")?e.description:void 0,note:h(e,"note")?e.note:void 0,lastActivity:h(e,"last_activity")?new Date(e.last_activity):void 0,tagnames:h(e,"tagnames")?e.tagnames:void 0,groupnames:h(e,"groupnames")?e.groupnames:void 0}}function Ll(e){return Al(e)}function Al(e,t){return e==null?e:{cursor:h(e,"cursor")?e.cursor:void 0,rows:h(e,"rows")?e.rows.map(Qn):void 0}}function Ol(e){return Rl(e)}function Rl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,agentid:h(e,"agentid")?e.agentid:void 0,agent:h(e,"agent")?e.agent:void 0,conversationid:h(e,"conversationid")?e.conversationid:void 0,ticket:h(e,"ticket")?e.ticket:void 0,parentContactid:h(e,"parent_contactid")?e.parent_contactid:void 0,company:h(e,"company")?e.company:void 0,contactid:h(e,"contactid")?e.contactid:void 0,customer:h(e,"customer")?e.customer:void 0,customerFirstname:h(e,"customer_firstname")?e.customer_firstname:void 0,customerLastname:h(e,"customer_lastname")?e.customer_lastname:void 0,customerSystemname:h(e,"customer_systemname")?e.customer_systemname:void 0,agentTicket:h(e,"agent_ticket")?e.agent_ticket:void 0,reportdate:h(e,"reportdate")?e.reportdate:void 0,reportedtime:h(e,"reportedtime")?e.reportedtime:void 0,reportedtimeHhmmss:h(e,"reportedtime_hhmmss")?e.reportedtime_hhmmss:void 0,spenttime:h(e,"spenttime")?e.spenttime:void 0,dateinvoiced:h(e,"dateinvoiced")?e.dateinvoiced:void 0,note:h(e,"note")?e.note:void 0,type:h(e,"type")?e.type:void 0}}var N=globalThis&&globalThis.__awaiter||function(e,t,i,n){function s(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function l(c){try{u(n.next(c))}catch(_){o(_)}}function d(c){try{u(n.throw(c))}catch(_){o(_)}}function u(c){c.done?r(c.value):s(c.value).then(l,d)}u((n=n.apply(e,t||[])).next())})};class es extends Yt{getAgentsGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/agents",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(nl))})}getAgentsGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(t,i)).value()})}getAgentsGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/agents/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getAgentsGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(t,i)).value()})}getCallsSlaLogGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/calls/sla",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(li))})}getCallsSlaLogGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(t,i)).value()})}getCallsSlaLogGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getCallsSlaLogGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(t,i)).value()})}getChatsGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/chats",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(rl))})}getChatsGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(t,i)).value()})}getChatsGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/chats/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getChatsGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(t,i)).value()})}getChatsSlaLogGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/chats/sla",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(li))})}getChatsSlaLogGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(t,i)).value()})}getChatsSlaLogGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getChatsSlaLogGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(t,i)).value()})}getContactWidgetsCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getContactWidgetsCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(t,i)).value()})}getContactWidgetsListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(ll))})}getContactWidgetsList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(t,i)).value()})}getCustomerGroupsGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/customer_groups",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(ln))})}getCustomerGroupsGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(t,i)).value()})}getDepartmensGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/departments/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getDepartmensGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(t,i)).value()})}getDepartmentsGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/departments",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(dl))})}getDepartmentsGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(t,i)).value()})}getEventLogsGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/eventlogs",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(_l))})}getEventLogsGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(t,i)).value()})}getEventLogsGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getEventLogsGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(t,i)).value()})}getInviteAgentsGridListRaw(t,i){return N(this,void 0,void 0,function*(){if(t.departmentId===null||t.departmentId===void 0)throw new on("departmentId","Required parameter requestParameters.departmentId was null or undefined when calling getInviteAgentsGridList.");const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(t.departmentId))),method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(ml))})}getInviteAgentsGridList(t,i){return N(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(t,i)).value()})}getLanguagesGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/languages",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(gl))})}getLanguagesGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(t,i)).value()})}getLanguagesGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/languages/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getLanguagesGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(t,i)).value()})}getPlugindGridListRaw(t,i){return N(this,void 0,void 0,function*(){if(t.pluginPurpose===null||t.pluginPurpose===void 0)throw new on("pluginPurpose","Required parameter requestParameters.pluginPurpose was null or undefined when calling getPlugindGridList.");const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.pluginPurpose!==void 0&&(n.pluginPurpose=t.pluginPurpose);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["plugin_settings.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/plugins",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(vl))})}getPlugindGridList(t,i){return N(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(t,i)).value()})}getTagsGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tags",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(ln))})}getTagsGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(t,i)).value()})}getTicketsGridDatasetRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets_new",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ll(o))})}getTicketsGridDataset(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(t,i)).value()})}getTicketsGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(Qn))})}getTicketsGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(t,i)).value()})}getTicketsGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getTicketsGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(t,i)).value()})}getTicketsSlaLogGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor),t.sortField!==void 0&&(n._sortField=t.sortField);const s={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(s["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(li))})}getTicketsSlaLogGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(t,i)).value()})}getTicketsSlaLogGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getTicketsSlaLogGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(t,i)).value()})}getTimeReportsGridListRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.perPage!==void 0&&(n._perPage=t.perPage),t.sortDir!==void 0&&(n._sortDir=t.sortDir),t.sortField!==void 0&&(n._sortField=t.sortField),t.filters!==void 0&&(n._filters=t.filters),t.cursor!==void 0&&(n._cursor=t.cursor);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/reports/time",method:"GET",headers:s,query:n},i);return new ce(r,o=>o.map(Ol))})}getTimeReportsGridList(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(t,i)).value()})}getTimeReportsGridListCountRaw(t,i){return N(this,void 0,void 0,function*(){const n={};t.filters!==void 0&&(n._filters=t.filters);const s={};this.configuration&&this.configuration.accessToken&&(s.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(s.apikey=this.configuration.apiKey("apikey"));const r=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:s,query:n},i);return new ce(r,o=>Ie(o))})}getTimeReportsGridListCount(t={},i){return N(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(t,i)).value()})}}const an={Asc:"ASC",Desc:"DESC"},ft={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},Il={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},Ze=pe(!1),xi=pe([]),Ut=pe(null),Ot=pe(null),Ye=pe(!1),vt=pe(!1),ts=pe({}),Oe=pe([]),is=pe(null),Be=pe(null),qt=pe(!0),ki=pe(Il.Rorder),un=["ar-SA","bg-BG","bs-BA","ca-ES","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","et-EE","fa-IR","fi-FI","fil-PH","fr-FR","he-IL","hr-HR","hu-HU","id-ID","it-IT","ja-JP","ko-KR","lt-LT","lv-LV","me-ME","mk-MK","ms-MY","nl-NL","no-NO","pl-PL","pt-BR","ro-RO","ru-RU","sk-SK","sl-SI","sr-CS","sv-SE","th-TH","tl-PH","tr-TR","uk-UA","vi-VN","vls-BE","zh-CN","zh-TW"];function Dl(e){if(e!=null&&e.trim()!=""){const t=e.trim();if(un.find(s=>s===t)!=null)return t;const i=t.substring(0,2),n=un.find(s=>s.substring(0,2)===i);if(n!=null)return n}return null}var ns={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Dn,function(){var i=1e3,n=6e4,s=36e5,r="millisecond",o="second",l="minute",d="hour",u="day",c="week",_="month",f="quarter",m="year",p="date",v="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var w=["th","st","nd","rd"],I=U%100;return"["+U+(w[(I-20)%10]||w[I]||w[0])+"]"}},$=function(U,w,I){var S=String(U);return!S||S.length>=w?U:""+Array(w+1-S.length).join(I)+U},x={s:$,z:function(U){var w=-U.utcOffset(),I=Math.abs(w),S=Math.floor(I/60),P=I%60;return(w<=0?"+":"-")+$(S,2,"0")+":"+$(P,2,"0")},m:function U(w,I){if(w.date()<I.date())return-U(I,w);var S=12*(I.year()-w.year())+(I.month()-w.month()),P=w.clone().add(S,_),j=I-P<0,K=w.clone().add(S+(j?-1:1),_);return+(-(S+(I-P)/(j?P-K:K-P))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:_,y:m,w:c,d:u,D:p,h:d,m:l,s:o,ms:r,Q:f}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},O="en",J={};J[O]=A;var X="$isDayjsObject",se=function(U){return U instanceof de||!(!U||!U[X])},V=function U(w,I,S){var P;if(!w)return O;if(typeof w=="string"){var j=w.toLowerCase();J[j]&&(P=j),I&&(J[j]=I,P=j);var K=w.split("-");if(!P&&K.length>1)return U(K[0])}else{var Q=w.name;J[Q]=w,P=Q}return!S&&P&&(O=P),P||!S&&O},H=function(U,w){if(se(U))return U.clone();var I=typeof w=="object"?w:{};return I.date=U,I.args=arguments,new de(I)},z=x;z.l=V,z.i=se,z.w=function(U,w){return H(U,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var de=function(){function U(I){this.$L=V(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[X]=!0}var w=U.prototype;return w.parse=function(I){this.$d=function(S){var P=S.date,j=S.utc;if(P===null)return new Date(NaN);if(z.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var K=P.match(E);if(K){var Q=K[2]-1||0,re=(K[7]||"0").substring(0,3);return j?new Date(Date.UTC(K[1],Q,K[3]||1,K[4]||0,K[5]||0,K[6]||0,re)):new Date(K[1],Q,K[3]||1,K[4]||0,K[5]||0,K[6]||0,re)}}return new Date(P)}(I),this.init()},w.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},w.$utils=function(){return z},w.isValid=function(){return this.$d.toString()!==v},w.isSame=function(I,S){var P=H(I);return this.startOf(S)<=P&&P<=this.endOf(S)},w.isAfter=function(I,S){return H(I)<this.startOf(S)},w.isBefore=function(I,S){return this.endOf(S)<H(I)},w.$g=function(I,S,P){return z.u(I)?this[S]:this.set(P,I)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(I,S){var P=this,j=!!z.u(S)||S,K=z.p(I),Q=function(He,be){var Ce=z.w(P.$u?Date.UTC(P.$y,be,He):new Date(P.$y,be,He),P);return j?Ce:Ce.endOf(u)},re=function(He,be){return z.w(P.toDate()[He].apply(P.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(be)),P)},F=this.$W,te=this.$M,ve=this.$D,xe="set"+(this.$u?"UTC":"");switch(K){case m:return j?Q(1,0):Q(31,11);case _:return j?Q(1,te):Q(0,te+1);case c:var we=this.$locale().weekStart||0,dt=(F<we?F+7:F)-we;return Q(j?ve-dt:ve+(6-dt),te);case u:case p:return re(xe+"Hours",0);case d:return re(xe+"Minutes",1);case l:return re(xe+"Seconds",2);case o:return re(xe+"Milliseconds",3);default:return this.clone()}},w.endOf=function(I){return this.startOf(I,!1)},w.$set=function(I,S){var P,j=z.p(I),K="set"+(this.$u?"UTC":""),Q=(P={},P[u]=K+"Date",P[p]=K+"Date",P[_]=K+"Month",P[m]=K+"FullYear",P[d]=K+"Hours",P[l]=K+"Minutes",P[o]=K+"Seconds",P[r]=K+"Milliseconds",P)[j],re=j===u?this.$D+(S-this.$W):S;if(j===_||j===m){var F=this.clone().set(p,1);F.$d[Q](re),F.init(),this.$d=F.set(p,Math.min(this.$D,F.daysInMonth())).$d}else Q&&this.$d[Q](re);return this.init(),this},w.set=function(I,S){return this.clone().$set(I,S)},w.get=function(I){return this[z.p(I)]()},w.add=function(I,S){var P,j=this;I=Number(I);var K=z.p(S),Q=function(te){var ve=H(j);return z.w(ve.date(ve.date()+Math.round(te*I)),j)};if(K===_)return this.set(_,this.$M+I);if(K===m)return this.set(m,this.$y+I);if(K===u)return Q(1);if(K===c)return Q(7);var re=(P={},P[l]=n,P[d]=s,P[o]=i,P)[K]||1,F=this.$d.getTime()+I*re;return z.w(F,this)},w.subtract=function(I,S){return this.add(-1*I,S)},w.format=function(I){var S=this,P=this.$locale();if(!this.isValid())return P.invalidDate||v;var j=I||"YYYY-MM-DDTHH:mm:ssZ",K=z.z(this),Q=this.$H,re=this.$m,F=this.$M,te=P.weekdays,ve=P.months,xe=P.meridiem,we=function(be,Ce,ct,kt){return be&&(be[Ce]||be(S,j))||ct[Ce].slice(0,kt)},dt=function(be){return z.s(Q%12||12,be,"0")},He=xe||function(be,Ce,ct){var kt=be<12?"AM":"PM";return ct?kt.toLowerCase():kt};return j.replace(g,function(be,Ce){return Ce||function(ct){switch(ct){case"YY":return String(S.$y).slice(-2);case"YYYY":return z.s(S.$y,4,"0");case"M":return F+1;case"MM":return z.s(F+1,2,"0");case"MMM":return we(P.monthsShort,F,ve,3);case"MMMM":return we(ve,F);case"D":return S.$D;case"DD":return z.s(S.$D,2,"0");case"d":return String(S.$W);case"dd":return we(P.weekdaysMin,S.$W,te,2);case"ddd":return we(P.weekdaysShort,S.$W,te,3);case"dddd":return te[S.$W];case"H":return String(Q);case"HH":return z.s(Q,2,"0");case"h":return dt(1);case"hh":return dt(2);case"a":return He(Q,re,!0);case"A":return He(Q,re,!1);case"m":return String(re);case"mm":return z.s(re,2,"0");case"s":return String(S.$s);case"ss":return z.s(S.$s,2,"0");case"SSS":return z.s(S.$ms,3,"0");case"Z":return K}return null}(be)||K.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(I,S,P){var j,K=this,Q=z.p(S),re=H(I),F=(re.utcOffset()-this.utcOffset())*n,te=this-re,ve=function(){return z.m(K,re)};switch(Q){case m:j=ve()/12;break;case _:j=ve();break;case f:j=ve()/3;break;case c:j=(te-F)/6048e5;break;case u:j=(te-F)/864e5;break;case d:j=te/s;break;case l:j=te/n;break;case o:j=te/i;break;default:j=te}return P?j:z.a(j)},w.daysInMonth=function(){return this.endOf(_).$D},w.$locale=function(){return J[this.$L]},w.locale=function(I,S){if(!I)return this.$L;var P=this.clone(),j=V(I,S,!0);return j&&(P.$L=j),P},w.clone=function(){return z.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},U}(),Le=de.prototype;return H.prototype=Le,[["$ms",r],["$s",o],["$m",l],["$H",d],["$W",u],["$M",_],["$y",m],["$D",p]].forEach(function(U){Le[U[1]]=function(w){return this.$g(w,U[0],U[1])}}),H.extend=function(U,w){return U.$i||(U(w,de,H),U.$i=!0),H},H.locale=V,H.isDayjs=se,H.unix=function(U){return H(1e3*U)},H.en=J[O],H.Ls=J,H.p={},H})})(ns);var wl=ns.exports;const We=Wt(wl);var ss={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Dn,function(){return function(i,n,s){i=i||{};var r=n.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,c,_,f){return r.fromToBase(u,c,_,f)}s.en.relativeTime=o,r.fromToBase=function(u,c,_,f,m){for(var p,v,E,g=_.$locale().relativeTime||o,A=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],$=A.length,x=0;x<$;x+=1){var O=A[x];O.d&&(p=f?s(u).diff(_,O.d,!0):_.diff(u,O.d,!0));var J=(i.rounding||Math.round)(Math.abs(p));if(E=p>0,J<=O.r||!O.r){J<=1&&x>0&&(O=A[x-1]);var X=g[O.l];m&&(J=m(""+J)),v=typeof X=="string"?X.replace("%d",J):X(J,c,O.l,E);break}}if(c)return v;var se=E?g.future:g.past;return typeof se=="function"?se(v):se.replace("%s",v)},r.to=function(u,c){return l(u,c,this,!0)},r.from=function(u,c){return l(u,c,this)};var d=function(u){return u.$u?s.utc():s()};r.toNow=function(u){return this.to(d(this),u)},r.fromNow=function(u){return this.from(d(this),u)}}})})(ss);var Pl=ss.exports;const xl=Wt(Pl);We.extend(xl);function kl(e){let t,i,n=[{title:e[2]},e[3],{datetime:e[1]}],s={};for(let r=0;r<n.length;r+=1)s=Tt(s,n[r]);return{c(){t=R("time"),i=ne(e[0]),Mi(t,s)},m(r,o){C(r,t,o),T(t,i)},p(r,[o]){o&1&&zs(i,r[0],s.contenteditable),Mi(t,s=Rn(n,[o&4&&{title:r[2]},o&8&&r[3],o&2&&{datetime:r[1]}]))},i:q,o:q,d(r){r&&k(t)}}}function Cl(e,t,i){let n;const s=["timestamp","format","relative","live","formatted"];let r=Hi(t,s),{timestamp:o=new Date().toISOString()}=t,{format:l="MMM DD, YYYY"}=t,{relative:d=!1}=t,{live:u=!1}=t,{formatted:c=""}=t,_;const f=60*1e3;return Kt(()=>()=>clearInterval(_)),e.$$set=m=>{t=Tt(Tt({},t),Ns(m)),i(3,r=Hi(t,s)),"timestamp"in m&&i(1,o=m.timestamp),"format"in m&&i(4,l=m.format),"relative"in m&&i(5,d=m.relative),"live"in m&&i(6,u=m.live),"formatted"in m&&i(0,c=m.formatted)},e.$$.update=()=>{e.$$.dirty&98&&d&&u!==!1&&(_=setInterval(()=>{i(0,c=We(o).from())},Math.abs(typeof u=="number"?u:f))),e.$$.dirty&50&&i(0,c=d?We(o).from():We(o).format(l)),e.$$.dirty&50&&i(2,n=d?We(o).format(l):void 0)},[c,o,n,r,l,d,u]}class Ci extends ue{constructor(t){super(),le(this,t,Cl,kl,oe,{timestamp:1,format:4,relative:5,live:6,formatted:0})}get timestamp(){return this.$$.ctx[1]}set timestamp(t){this.$$set({timestamp:t}),D()}get format(){return this.$$.ctx[4]}set format(t){this.$$set({format:t}),D()}get relative(){return this.$$.ctx[5]}set relative(t){this.$$set({relative:t}),D()}get live(){return this.$$.ctx[6]}set live(t){this.$$set({live:t}),D()}get formatted(){return this.$$.ctx[0]}set formatted(t){this.$$set({formatted:t}),D()}}ae(Ci,{timestamp:{},format:{},relative:{type:"Boolean"},live:{type:"Boolean"},formatted:{}},[],[],!0);const Et="en-US",dn="S",rs="N",os="C",Ei="D",Vl="A";let Fe,yt=Et;function $l(e,t,i){if(Fe!==void 0)return;Fe=e;let n={fallbackLocale:Et};Qi(Et,t);const s=Dl(Fe.locale);s!==null&&s!==Et&&(yt=s,n.initialLocale=yt,Qi(yt,i)),Io(n)}function Sl(e){const t=e.substring(0,2).toLowerCase();if(t==="en")return;const i="/node_modules/dayjs/esm/locale/"+t+".js",n=Object.assign({"/node_modules/dayjs/esm/locale/af.js":()=>a(()=>import("./af.js"),["assets/af.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/am.js":()=>a(()=>import("./am.js"),["assets/am.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-dz.js":()=>a(()=>import("./ar-dz.js"),["assets/ar-dz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-iq.js":()=>a(()=>import("./ar-iq.js"),["assets/ar-iq.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-kw.js":()=>a(()=>import("./ar-kw.js"),["assets/ar-kw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-ly.js":()=>a(()=>import("./ar-ly.js"),["assets/ar-ly.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-ma.js":()=>a(()=>import("./ar-ma.js"),["assets/ar-ma.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-sa.js":()=>a(()=>import("./ar-sa.js"),["assets/ar-sa.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-tn.js":()=>a(()=>import("./ar-tn.js"),["assets/ar-tn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar.js":()=>a(()=>import("./ar.js"),["assets/ar.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/az.js":()=>a(()=>import("./az.js"),["assets/az.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/be.js":()=>a(()=>import("./be.js"),["assets/be.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bg.js":()=>a(()=>import("./bg.js"),["assets/bg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bi.js":()=>a(()=>import("./bi.js"),["assets/bi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bm.js":()=>a(()=>import("./bm.js"),["assets/bm.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bn-bd.js":()=>a(()=>import("./bn-bd.js"),["assets/bn-bd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bn.js":()=>a(()=>import("./bn.js"),["assets/bn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bo.js":()=>a(()=>import("./bo.js"),["assets/bo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/br.js":()=>a(()=>import("./br.js"),["assets/br.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bs.js":()=>a(()=>import("./bs.js"),["assets/bs.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ca.js":()=>a(()=>import("./ca.js"),["assets/ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cs.js":()=>a(()=>import("./cs.js"),["assets/cs.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cv.js":()=>a(()=>import("./cv.js"),["assets/cv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cy.js":()=>a(()=>import("./cy.js"),["assets/cy.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/da.js":()=>a(()=>import("./da.js"),["assets/da.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de-at.js":()=>a(()=>import("./de-at.js"),["assets/de-at.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de-ch.js":()=>a(()=>import("./de-ch.js"),["assets/de-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de.js":()=>a(()=>import("./de.js"),["assets/de.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/dv.js":()=>a(()=>import("./dv.js"),["assets/dv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/el.js":()=>a(()=>import("./el.js"),["assets/el.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-au.js":()=>a(()=>import("./en-au.js"),["assets/en-au.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-ca.js":()=>a(()=>import("./en-ca.js"),["assets/en-ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-gb.js":()=>a(()=>import("./en-gb.js"),["assets/en-gb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-ie.js":()=>a(()=>import("./en-ie.js"),["assets/en-ie.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-il.js":()=>a(()=>import("./en-il.js"),["assets/en-il.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-in.js":()=>a(()=>import("./en-in.js"),["assets/en-in.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-nz.js":()=>a(()=>import("./en-nz.js"),["assets/en-nz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-sg.js":()=>a(()=>import("./en-sg.js"),["assets/en-sg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-tt.js":()=>a(()=>import("./en-tt.js"),["assets/en-tt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en.js":()=>a(()=>import("./en.js"),[]),"/node_modules/dayjs/esm/locale/eo.js":()=>a(()=>import("./eo.js"),["assets/eo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-do.js":()=>a(()=>import("./es-do.js"),["assets/es-do.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-mx.js":()=>a(()=>import("./es-mx.js"),["assets/es-mx.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-pr.js":()=>a(()=>import("./es-pr.js"),["assets/es-pr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-us.js":()=>a(()=>import("./es-us.js"),["assets/es-us.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es.js":()=>a(()=>import("./es.js"),["assets/es.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/et.js":()=>a(()=>import("./et.js"),["assets/et.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/eu.js":()=>a(()=>import("./eu.js"),["assets/eu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fa.js":()=>a(()=>import("./fa.js"),["assets/fa.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fi.js":()=>a(()=>import("./fi.js"),["assets/fi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fo.js":()=>a(()=>import("./fo.js"),["assets/fo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr-ca.js":()=>a(()=>import("./fr-ca.js"),["assets/fr-ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr-ch.js":()=>a(()=>import("./fr-ch.js"),["assets/fr-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr.js":()=>a(()=>import("./fr.js"),["assets/fr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fy.js":()=>a(()=>import("./fy.js"),["assets/fy.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ga.js":()=>a(()=>import("./ga.js"),["assets/ga.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gd.js":()=>a(()=>import("./gd.js"),["assets/gd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gl.js":()=>a(()=>import("./gl.js"),["assets/gl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gom-latn.js":()=>a(()=>import("./gom-latn.js"),["assets/gom-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gu.js":()=>a(()=>import("./gu.js"),["assets/gu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/he.js":()=>a(()=>import("./he.js"),["assets/he.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hi.js":()=>a(()=>import("./hi.js"),["assets/hi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hr.js":()=>a(()=>import("./hr.js"),["assets/hr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ht.js":()=>a(()=>import("./ht.js"),["assets/ht.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hu.js":()=>a(()=>import("./hu.js"),["assets/hu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hy-am.js":()=>a(()=>import("./hy-am.js"),["assets/hy-am.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/id.js":()=>a(()=>import("./id.js"),["assets/id.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/is.js":()=>a(()=>import("./is.js"),["assets/is.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/it-ch.js":()=>a(()=>import("./it-ch.js"),["assets/it-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/it.js":()=>a(()=>import("./it.js"),["assets/it.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ja.js":()=>a(()=>import("./ja.js"),["assets/ja.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/jv.js":()=>a(()=>import("./jv.js"),["assets/jv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ka.js":()=>a(()=>import("./ka.js"),["assets/ka.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/kk.js":()=>a(()=>import("./kk.js"),["assets/kk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/km.js":()=>a(()=>import("./km.js"),["assets/km.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/kn.js":()=>a(()=>import("./kn.js"),["assets/kn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ko.js":()=>a(()=>import("./ko.js"),["assets/ko.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ku.js":()=>a(()=>import("./ku.js"),["assets/ku.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ky.js":()=>a(()=>import("./ky.js"),["assets/ky.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lb.js":()=>a(()=>import("./lb.js"),["assets/lb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lo.js":()=>a(()=>import("./lo.js"),["assets/lo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lt.js":()=>a(()=>import("./lt.js"),["assets/lt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lv.js":()=>a(()=>import("./lv.js"),["assets/lv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/me.js":()=>a(()=>import("./me.js"),["assets/me.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mi.js":()=>a(()=>import("./mi.js"),["assets/mi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mk.js":()=>a(()=>import("./mk.js"),["assets/mk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ml.js":()=>a(()=>import("./ml.js"),["assets/ml.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mn.js":()=>a(()=>import("./mn.js"),["assets/mn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mr.js":()=>a(()=>import("./mr.js"),["assets/mr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ms-my.js":()=>a(()=>import("./ms-my.js"),["assets/ms-my.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ms.js":()=>a(()=>import("./ms.js"),["assets/ms.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mt.js":()=>a(()=>import("./mt.js"),["assets/mt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/my.js":()=>a(()=>import("./my.js"),["assets/my.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nb.js":()=>a(()=>import("./nb.js"),["assets/nb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ne.js":()=>a(()=>import("./ne.js"),["assets/ne.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nl-be.js":()=>a(()=>import("./nl-be.js"),["assets/nl-be.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nl.js":()=>a(()=>import("./nl.js"),["assets/nl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nn.js":()=>a(()=>import("./nn.js"),["assets/nn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/oc-lnc.js":()=>a(()=>import("./oc-lnc.js"),["assets/oc-lnc.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pa-in.js":()=>a(()=>import("./pa-in.js"),["assets/pa-in.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pl.js":()=>a(()=>import("./pl.js"),["assets/pl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pt-br.js":()=>a(()=>import("./pt-br.js"),["assets/pt-br.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pt.js":()=>a(()=>import("./pt.js"),["assets/pt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/rn.js":()=>a(()=>import("./rn.js"),["assets/rn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ro.js":()=>a(()=>import("./ro.js"),["assets/ro.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ru.js":()=>a(()=>import("./ru.js"),["assets/ru.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/rw.js":()=>a(()=>import("./rw.js"),["assets/rw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sd.js":()=>a(()=>import("./sd.js"),["assets/sd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/se.js":()=>a(()=>import("./se.js"),["assets/se.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/si.js":()=>a(()=>import("./si.js"),["assets/si.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sk.js":()=>a(()=>import("./sk.js"),["assets/sk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sl.js":()=>a(()=>import("./sl.js"),["assets/sl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sq.js":()=>a(()=>import("./sq.js"),["assets/sq.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sr-cyrl.js":()=>a(()=>import("./sr-cyrl.js"),["assets/sr-cyrl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sr.js":()=>a(()=>import("./sr.js"),["assets/sr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ss.js":()=>a(()=>import("./ss.js"),["assets/ss.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sv-fi.js":()=>a(()=>import("./sv-fi.js"),["assets/sv-fi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sv.js":()=>a(()=>import("./sv.js"),["assets/sv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sw.js":()=>a(()=>import("./sw.js"),["assets/sw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ta.js":()=>a(()=>import("./ta.js"),["assets/ta.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/te.js":()=>a(()=>import("./te.js"),["assets/te.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tet.js":()=>a(()=>import("./tet.js"),["assets/tet.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tg.js":()=>a(()=>import("./tg.js"),["assets/tg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/th.js":()=>a(()=>import("./th.js"),["assets/th.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tk.js":()=>a(()=>import("./tk.js"),["assets/tk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tl-ph.js":()=>a(()=>import("./tl-ph.js"),["assets/tl-ph.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tlh.js":()=>a(()=>import("./tlh.js"),["assets/tlh.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tr.js":()=>a(()=>import("./tr.js"),["assets/tr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzl.js":()=>a(()=>import("./tzl.js"),["assets/tzl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzm-latn.js":()=>a(()=>import("./tzm-latn.js"),["assets/tzm-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzm.js":()=>a(()=>import("./tzm.js"),["assets/tzm.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ug-cn.js":()=>a(()=>import("./ug-cn.js"),["assets/ug-cn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uk.js":()=>a(()=>import("./uk.js"),["assets/uk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ur.js":()=>a(()=>import("./ur.js"),["assets/ur.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uz-latn.js":()=>a(()=>import("./uz-latn.js"),["assets/uz-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uz.js":()=>a(()=>import("./uz.js"),["assets/uz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/vi.js":()=>a(()=>import("./vi.js"),["assets/vi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/x-pseudo.js":()=>a(()=>import("./x-pseudo.js"),["assets/x-pseudo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/yo.js":()=>a(()=>import("./yo.js"),["assets/yo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-cn.js":()=>a(()=>import("./zh-cn.js"),["assets/zh-cn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-hk.js":()=>a(()=>import("./zh-hk.js"),["assets/zh-hk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-tw.js":()=>a(()=>import("./zh-tw.js"),["assets/zh-tw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh.js":()=>a(()=>import("./zh.js"),["assets/zh.js","assets/index2.js","assets/en.js"])});n[i]&&n[i]().then(s=>{We.locale(s.default)})}function Nl(e){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function je(e){return Nl(new Date(e))}function Hl(){return Fe.dateFormat.toUpperCase()}function Ml(){return Fe.timeFormat}function ls(){return Hl()+" "+Ml()}function Je(e){return Bl(e,2)}function Bl(e,t){let i="";return Ul(t).formatToParts(e).forEach(n=>{n.type==="group"?i+=Fl():n.type==="decimal"?i+=Gl():i+=n.value}),i}function Fl(){let e=Fe.thousandsSeparator;switch(e==null&&(e=dn),e){case os:return",";case dn:return" ";case Ei:return".";case Vl:return"'";case rs:case"":return" ";default:return e}}function Gl(){let e=Fe.decimalSeparator;switch(e==null&&(e=Ei),e){case os:return",";case rs:case Ei:return".";default:return e}}function Ul(e){return new Intl.NumberFormat(yt,{minimumFractionDigits:0,maximumFractionDigits:e,useGrouping:!0})}function jl(e){me(e,"svelte-mupm4a",".Counter.svelte-mupm4a{display:none}span.svelte-mupm4a{margin-right:5px}.Selection.svelte-mupm4a{color:var(--ticket-selected-textcolor);background-color:var(--ticket-selected-bg);padding:6px 10px;border-radius:4px;font-size:12px;font-style:normal;font-weight:700;line-height:20px}.text.svelte-mupm4a{font-family:'Roboto', sans-serif;font-size:12px;line-height:20px}.many.svelte-mupm4a{color:var(--main-textcolor);padding:2px 12px;border:1px solid var(--menu-hover-bg);border-radius:4px;font-weight:500;font-size:12px;font-family:'Roboto', sans-serif;line-height:20px;cursor:pointer}.many.loading.svelte-mupm4a{border:none;padding:2px 0}@media(min-width: 768px){.Counter.svelte-mupm4a{display:block}}")}function zl(e){let t,i=e[5]("Displaying %count of %allCount",{values:{count:Je(e[7].length),allCount:Je(e[0])}})+"",n;return{c(){t=R("span"),n=ne(i),y(t,"class","text svelte-mupm4a")},m(s,r){C(s,t,r),T(t,n)},p(s,r){r&161&&i!==(i=s[5]("Displaying %count of %allCount",{values:{count:Je(s[7].length),allCount:Je(s[0])}})+"")&&_e(n,i)},d(s){s&&k(t)}}}function Kl(e){let t,i=e[5]("Displaying %count of",{values:{count:Je(e[7].length)}})+"",n,s,r,o=(e[1]?e[5]("Loading..."):e[5]("many"))+"",l,d,u,c;return{c(){t=R("span"),n=ne(i),s=W(),r=R("span"),l=ne(o),y(t,"class","text svelte-mupm4a"),y(r,"class",d=he(e[2])+" svelte-mupm4a")},m(_,f){C(_,t,f),T(t,n),C(_,s,f),C(_,r,f),T(r,l),u||(c=ge(r,"click",e[8]),u=!0)},p(_,f){f&160&&i!==(i=_[5]("Displaying %count of",{values:{count:Je(_[7].length)}})+"")&&_e(n,i),f&34&&o!==(o=(_[1]?_[5]("Loading..."):_[5]("many"))+"")&&_e(l,o),f&4&&d!==(d=he(_[2])+" svelte-mupm4a")&&y(r,"class",d)},d(_){_&&(k(t),k(s),k(r)),u=!1,c()}}}function Wl(e){let t,i=e[5]("Loading...")+"",n;return{c(){t=R("span"),n=ne(i),y(t,"class","text svelte-mupm4a")},m(s,r){C(s,t,r),T(t,n)},p(s,r){r&32&&i!==(i=s[5]("Loading...")+"")&&_e(n,i)},d(s){s&&k(t)}}}function Jl(e){let t;function i(r,o){return r[3]?Zl:Xl}let n=i(e),s=n(e);return{c(){s.c(),t=st()},m(r,o){s.m(r,o),C(r,t,o)},p(r,o){n===(n=i(r))&&s?s.p(r,o):(s.d(1),s=n(r),s&&(s.c(),s.m(t.parentNode,t)))},d(r){r&&k(t),s.d(r)}}}function Xl(e){let t,i=e[5]("%pCount rows selected",{values:{pCount:e[4].length}})+"",n;return{c(){t=R("span"),n=ne(i),y(t,"class","Selection svelte-mupm4a")},m(s,r){C(s,t,r),T(t,n)},p(s,r){r&48&&i!==(i=s[5]("%pCount rows selected",{values:{pCount:s[4].length}})+"")&&_e(n,i)},d(s){s&&k(t)}}}function Zl(e){let t;function i(r,o){return r[4].length>0?ql:Yl}let n=i(e),s=n(e);return{c(){s.c(),t=st()},m(r,o){s.m(r,o),C(r,t,o)},p(r,o){n===(n=i(r))&&s?s.p(r,o):(s.d(1),s=n(r),s&&(s.c(),s.m(t.parentNode,t)))},d(r){r&&k(t),s.d(r)}}}function Yl(e){let t,i=e[5]("all rows selected")+"",n;return{c(){t=R("span"),n=ne(i),y(t,"class","Selection svelte-mupm4a")},m(s,r){C(s,t,r),T(t,n)},p(s,r){r&32&&i!==(i=s[5]("all rows selected")+"")&&_e(n,i)},d(s){s&&k(t)}}}function ql(e){let t,i=e[5]("all rows selected except %pCount rows",{values:{pCount:e[4].length}})+"",n;return{c(){t=R("span"),n=ne(i),y(t,"class","Selection svelte-mupm4a")},m(s,r){C(s,t,r),T(t,n)},p(s,r){r&48&&i!==(i=s[5]("all rows selected except %pCount rows",{values:{pCount:s[4].length}})+"")&&_e(n,i)},d(s){s&&k(t)}}}function Ql(e){let t;function i(r,o){return r[3]||r[4].length>0?Jl:r[6]?Wl:r[0]==null?Kl:zl}let n=i(e),s=n(e);return{c(){t=R("div"),s.c(),y(t,"class","Counter svelte-mupm4a")},m(r,o){C(r,t,o),s.m(t,null)},p(r,[o]){n===(n=i(r))&&s?s.p(r,o):(s.d(1),s=n(r),s&&(s.c(),s.m(t,null)))},i:q,o:q,d(r){r&&k(t),s.d()}}}function ea(e,t,i){let n,s,r,o,l,d,u;Z(e,Ot,v=>i(9,n=v)),Z(e,Ut,v=>i(10,s=v)),Z(e,Ze,v=>i(3,r=v)),Z(e,xi,v=>i(4,o=v)),Z(e,Re,v=>i(5,l=v)),Z(e,Ye,v=>i(6,d=v)),Z(e,Oe,v=>i(7,u=v));let c=null,_=!1,f="many";function m(){i(0,c=null)}async function p(){i(2,f="many loading"),i(1,_=!0);let v=await s.getTicketsGridListCount({filters:n,timezoneOffset:new Date().getTimezoneOffset()});i(0,c=v.count),i(1,_=!1)}return e.$$.update=()=>{e.$$.dirty&512&&n&&m()},[c,_,f,r,o,l,d,u,p,n]}class as extends ue{constructor(t){super(),le(this,t,ea,Ql,oe,{},jl)}}ae(as,{},[],[],!0);async function nt(e=!1){if(!(De(Ye)||!De(Ut))&&(e&&(Be.set(null),vt.set(!1)),!(!De(Be)&&De(vt)))){Ye.set(!0);try{const i=await(await De(Ut).getTicketsGridDatasetRaw(ta())).value();e&&Oe.set([]),Oe.set([...De(Oe),...i.rows]),Be.set(i.cursor),vt.set(!0)}catch(t){is.set(t.toString())}Ye.set(!1)}}function ta(){return{perPage:20,sortDir:De(qt)?an.Asc:an.Desc,filters:De(Ot),sortField:De(ki),cursor:De(Be)?De(Be):""}}function ia(e){me(e,"svelte-oyjuek",".Head.svelte-oyjuek.svelte-oyjuek{display:flex;position:sticky;top:0;color:var(--panel_text_color);margin-bottom:20px;align-items:center;font-size:14px;font-family:'Roboto', sans-serif;border-bottom:1px solid var(--main-lighter-textcolor);padding:0 23px 6px 44px}.FilterIcon{font-size:20px;margin-right:2px}.headCheckbox.svelte-oyjuek.svelte-oyjuek{width:20px;margin-right:16px}.headCheckbox.svelte-oyjuek input[type=checkbox].svelte-oyjuek{vertical-align:middle;cursor:pointer;margin:3px}button.svelte-oyjuek.svelte-oyjuek{border:none;background:none;font-size:13px;font-weight:400;color:var(--main-lighter-textcolor)}.spinner.svelte-oyjuek.svelte-oyjuek{font-size:16px;cursor:pointer}.rightPanel.svelte-oyjuek.svelte-oyjuek{display:flex;margin-inline-start:auto}.Sorting.svelte-oyjuek.svelte-oyjuek{cursor:pointer;text-align:left;font-weight:bold}.loading.svelte-oyjuek.svelte-oyjuek{animation-name:svelte-oyjuek-rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes svelte-oyjuek-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media screen and (min-width: 768px){.headCheckbox.svelte-oyjuek.svelte-oyjuek{margin-right:42px}}")}function na(e){let t,i,n,s,r,o,l,d,u,c,_,f,m,p,v,E,g,A,$,x;return r=new Pe({props:{iconLaClassName:"la-filter",className:"FilterIcon"}}),c=new Pe({props:{iconLaClassName:"la-show"}}),m=new as({}),E=new Pe({props:{iconLaClassName:"la-refresh"}}),{c(){t=R("div"),i=R("div"),n=R("input"),s=W(),G(r.$$.fragment),o=W(),l=R("button"),d=ne(e[0]),u=W(),G(c.$$.fragment),_=W(),f=R("div"),G(m.$$.fragment),p=W(),v=R("button"),G(E.$$.fragment),y(n,"type","checkbox"),y(n,"class","svelte-oyjuek"),y(i,"class","headCheckbox svelte-oyjuek"),y(l,"class","Sorting svelte-oyjuek"),y(v,"class","spinner svelte-oyjuek"),y(v,"title",g=e[4]("Reload")),Fi(v,"loading",e[3]),y(f,"class","rightPanel svelte-oyjuek"),y(t,"class","Head svelte-oyjuek")},m(O,J){C(O,t,J),T(t,i),T(i,n),n.checked=e[2],T(t,s),M(r,t,null),T(t,o),T(t,l),T(l,d),e[8](l),T(t,u),M(c,t,null),T(t,_),T(t,f),M(m,f,null),T(f,p),T(f,v),M(E,v,null),A=!0,$||(x=[ge(n,"change",e[7]),ge(n,"click",e[5]),ge(l,"click",e[6]),ge(v,"click",e[9])],$=!0)},p(O,[J]){J&4&&(n.checked=O[2]),(!A||J&1)&&_e(d,O[0]),(!A||J&16&&g!==(g=O[4]("Reload")))&&y(v,"title",g),(!A||J&8)&&Fi(v,"loading",O[3])},i(O){A||(b(r.$$.fragment,O),b(c.$$.fragment,O),b(m.$$.fragment,O),b(E.$$.fragment,O),A=!0)},o(O){L(r.$$.fragment,O),L(c.$$.fragment,O),L(m.$$.fragment,O),L(E.$$.fragment,O),A=!1},d(O){O&&k(t),B(r),e[8](null),B(c),B(m),B(E),$=!1,ke(x)}}}function sa(e,t,i){let n,s,r;Z(e,qt,E=>i(12,E)),Z(e,Ze,E=>i(2,n=E)),Z(e,Ye,E=>i(3,s=E)),Z(e,Re,E=>i(4,r=E));let{currentFilter:o}=t;const l=On();let d,u,c;function _(){Ze.set(!n),Oe.update(E=>E.map(g=>({...g,__selected:n})))}function f(){d=u.getBoundingClientRect();let g=d.bottom-58,A=d.left-7;window.innerWidth>=768&&(A-=258),c=`position: absolute; top: ${g}px; left: ${A}px;`,l("openModal",{dialogStyles:c})}function m(){n=this.checked,Ze.set(n)}function p(E){qe[E?"unshift":"push"](()=>{u=E,i(1,u)})}const v=()=>nt(!0);return e.$$set=E=>{"currentFilter"in E&&i(0,o=E.currentFilter)},[o,u,n,s,r,_,f,m,p,v]}class us extends ue{constructor(t){super(),le(this,t,sa,na,oe,{currentFilter:0},ia)}get currentFilter(){return this.$$.ctx[0]}set currentFilter(t){this.$$set({currentFilter:t}),D()}}ae(us,{currentFilter:{}},[],[],!0);function Ve(e){switch(e){case"A":return{bg:"var(--ticket-status-answered-background)",text:"var(--ticket-status-answered-text)",border:"var(--ticket-status-answered-border)"};case"T":return{bg:"var(--ticket-status-chat-background)",text:"var(--ticket-status-chat-text)",border:"var(--ticket-status-chat-border)"};case"P":return{bg:"var(--ticket-status-phone-background)",text:"var(--ticket-status-phone-text)",border:"var(--ticket-status-phone-border)"};case"X":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"B":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"I":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"R":return{bg:"var(--ticket-status-resolved-background)",text:"var(--ticket-status-resolved-text)",border:"var(--ticket-status-resolved-border)"};case"N":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"C":return{bg:"var(--ticket-status-open-background)",text:"var(--ticket-status-open-text)",border:"var(--ticket-status-open-border)"};case"W":return{bg:"var(--ticket-status-postponed-background)",text:"var(--ticket-status-postponed-text)",border:"var(--ticket-status-postponed-border)"};default:return{bg:"",text:"",border:""}}}const ra=()=>{const e=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#FFEB3B","#FFC107","#FF5722","#795548"],t=Math.floor(Math.random()*e.length);return e[t]},oa=e=>{let t=e.split(" ");return t.length>1?t=t.shift().charAt(0)+t.pop().charAt(0):t=e.substring(0,2),t.toUpperCase()};function la(e){me(e,"svelte-hbozhk",".wrapper.svelte-hbozhk{position:relative;width:var(--size);height:var(--size)}.innerImage.svelte-hbozhk,.innerInitials.svelte-hbozhk,.imageLoading.svelte-hbozhk{display:block;width:100%;height:100%;border-radius:var(--borderRadius)}.innerInitials.svelte-hbozhk{line-height:var(--size);background-color:var(--bgColor);color:var(--textColor);text-align:center;font-size:calc(var(--size) / (var(--abbrLength) + 0.5))}.imageLoading.svelte-hbozhk{background-color:var(--bgColor)}.imageLoading.svelte-hbozhk::before{content:'';display:block;height:100%;width:100%;background:linear-gradient(90deg, transparent, #ffffff38, transparent);position:absolute;top:0;left:0;animation:svelte-hbozhk-skeleton-animation 1.2s linear infinite}@keyframes svelte-hbozhk-skeleton-animation{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}")}function aa(e){let t;return{c(){t=R("div"),t.textContent=`${e[10]}`,y(t,"class","innerInitials svelte-hbozhk")},m(i,n){C(i,t,n)},p:q,d(i){i&&k(t)}}}function ua(e){let t,i,n,s,r,o;return{c(){t=R("div"),i=R("img"),y(i,"alt",""),y(i,"class",he("innerImage")+" svelte-hbozhk"),Mt(i.src,n=e[2])||y(i,"src",n),y(t,"class",s=he(e[8]?"imageLoading":"")+" svelte-hbozhk")},m(l,d){C(l,t,d),T(t,i),r||(o=[ge(i,"error",e[15]),ge(i,"load",e[16])],r=!0)},p(l,d){d&4&&!Mt(i.src,n=l[2])&&y(i,"src",n),d&256&&s!==(s=he(l[8]?"imageLoading":"")+" svelte-hbozhk")&&y(t,"class",s)},d(l){l&&k(t),r=!1,ke(o)}}}function da(e){let t,i;function n(o,l){return o[2]&&!o[7]?ua:aa}let s=n(e),r=s(e);return{c(){t=R("div"),r.c(),y(t,"aria-label",e[1]),y(t,"class","wrapper svelte-hbozhk"),y(t,"style",i=e[0]+"--borderRadius:"+(e[6]?0:e[5])+"; --size:"+e[4]+"; --bgColor:"+e[9]+"; --src:"+e[2]+"; --textColor:"+e[3]+"; --abbrLength:"+e[11])},m(o,l){C(o,t,l),r.m(t,null)},p(o,[l]){s===(s=n(o))&&r?r.p(o,l):(r.d(1),r=s(o),r&&(r.c(),r.m(t,null))),l&2&&y(t,"aria-label",o[1]),l&125&&i!==(i=o[0]+"--borderRadius:"+(o[6]?0:o[5])+"; --size:"+o[4]+"; --bgColor:"+o[9]+"; --src:"+o[2]+"; --textColor:"+o[3]+"; --abbrLength:"+o[11])&&y(t,"style",i)},i:q,o:q,d(o){o&&k(t),r.d()}}}function ca(e,t,i){let{style:n=""}=t,{name:s="Avatar"}=t,{initials:r}=t,{src:o}=t,{bgColor:l="lightGrey"}=t,{textColor:d="white"}=t,{size:u="50px"}=t,{borderRadius:c="50%"}=t,{square:_=!1}=t,{randomBgColor:f=!1}=t;const m=f?ra():l,p=r||oa(s),v=p.length;let E=!1,g=!0;const A=()=>i(7,E=!0),$=()=>i(8,g=!1);return e.$$set=x=>{"style"in x&&i(0,n=x.style),"name"in x&&i(1,s=x.name),"initials"in x&&i(12,r=x.initials),"src"in x&&i(2,o=x.src),"bgColor"in x&&i(13,l=x.bgColor),"textColor"in x&&i(3,d=x.textColor),"size"in x&&i(4,u=x.size),"borderRadius"in x&&i(5,c=x.borderRadius),"square"in x&&i(6,_=x.square),"randomBgColor"in x&&i(14,f=x.randomBgColor)},[n,s,o,d,u,c,_,E,g,m,p,v,r,l,f,A,$]}class ds extends ue{constructor(t){super(),le(this,t,ca,da,oe,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},la)}get style(){return this.$$.ctx[0]}set style(t){this.$$set({style:t}),D()}get name(){return this.$$.ctx[1]}set name(t){this.$$set({name:t}),D()}get initials(){return this.$$.ctx[12]}set initials(t){this.$$set({initials:t}),D()}get src(){return this.$$.ctx[2]}set src(t){this.$$set({src:t}),D()}get bgColor(){return this.$$.ctx[13]}set bgColor(t){this.$$set({bgColor:t}),D()}get textColor(){return this.$$.ctx[3]}set textColor(t){this.$$set({textColor:t}),D()}get size(){return this.$$.ctx[4]}set size(t){this.$$set({size:t}),D()}get borderRadius(){return this.$$.ctx[5]}set borderRadius(t){this.$$set({borderRadius:t}),D()}get square(){return this.$$.ctx[6]}set square(t){this.$$set({square:t}),D()}get randomBgColor(){return this.$$.ctx[14]}set randomBgColor(t){this.$$set({randomBgColor:t}),D()}}ae(ds,{style:{},name:{},initials:{},src:{},bgColor:{},textColor:{},size:{},borderRadius:{},square:{type:"Boolean"},randomBgColor:{type:"Boolean"}},[],[],!0);function _a(e){let t,i;return t=new ds({props:{bgColor:e[0],name:e[1],src:e[2],initials:e[3],size:"40px"}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,[s]){const r={};s&1&&(r.bgColor=n[0]),s&2&&(r.name=n[1]),s&4&&(r.src=n[2]),s&8&&(r.initials=n[3]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function fa(e,t,i){let{bgColor:n}=t,{name:s}=t,{src:r}=t,{initials:o}=t;return e.$$set=l=>{"bgColor"in l&&i(0,n=l.bgColor),"name"in l&&i(1,s=l.name),"src"in l&&i(2,r=l.src),"initials"in l&&i(3,o=l.initials)},[n,s,r,o]}class cs extends ue{constructor(t){super(),le(this,t,fa,_a,oe,{bgColor:0,name:1,src:2,initials:3})}get bgColor(){return this.$$.ctx[0]}set bgColor(t){this.$$set({bgColor:t}),D()}get name(){return this.$$.ctx[1]}set name(t){this.$$set({name:t}),D()}get src(){return this.$$.ctx[2]}set src(t){this.$$set({src:t}),D()}get initials(){return this.$$.ctx[3]}set initials(t){this.$$set({initials:t}),D()}}ae(cs,{bgColor:{},name:{},src:{},initials:{}},[],[],!0);var _s={exports:{}},fs={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(i,n){return i<<n|i>>>32-n},rotr:function(i,n){return i<<32-n|i>>>n},endian:function(i){if(i.constructor==Number)return t.rotl(i,8)&16711935|t.rotl(i,24)&4278255360;for(var n=0;n<i.length;n++)i[n]=t.endian(i[n]);return i},randomBytes:function(i){for(var n=[];i>0;i--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(i){for(var n=[],s=0,r=0;s<i.length;s++,r+=8)n[r>>>5]|=i[s]<<24-r%32;return n},wordsToBytes:function(i){for(var n=[],s=0;s<i.length*32;s+=8)n.push(i[s>>>5]>>>24-s%32&255);return n},bytesToHex:function(i){for(var n=[],s=0;s<i.length;s++)n.push((i[s]>>>4).toString(16)),n.push((i[s]&15).toString(16));return n.join("")},hexToBytes:function(i){for(var n=[],s=0;s<i.length;s+=2)n.push(parseInt(i.substr(s,2),16));return n},bytesToBase64:function(i){for(var n=[],s=0;s<i.length;s+=3)for(var r=i[s]<<16|i[s+1]<<8|i[s+2],o=0;o<4;o++)s*8+o*6<=i.length*8?n.push(e.charAt(r>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],s=0,r=0;s<i.length;r=++s%4)r!=0&&n.push((e.indexOf(i.charAt(s-1))&Math.pow(2,-2*r+8)-1)<<r*2|e.indexOf(i.charAt(s))>>>6-r*2);return n}};fs.exports=t})();var ma=fs.exports,yi={utf8:{stringToBytes:function(e){return yi.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(yi.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e.charCodeAt(i)&255);return t},bytesToString:function(e){for(var t=[],i=0;i<e.length;i++)t.push(String.fromCharCode(e[i]));return t.join("")}}},cn=yi;/*!
5
+ Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Po={fallbackLocale:null,loadingDelay:200,formats:xo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ht=Po;function rt(){return ht}function ko(e){const t=e,{formats:n}=t,i=Do(t,["formats"]);let r=e.fallbackLocale;if(e.initialLocale)try{Xn.resolveLocale(e.initialLocale)&&(r=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,i.handleMissingMessage==null?i.handleMissingMessage=wo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ht,i,{initialLocale:r}),n&&("number"in n&&Object.assign(ht.formats.number,n.number),"date"in n&&Object.assign(ht.formats.date,n.date),"time"in n&&Object.assign(ht.formats.time,n.time)),at.set(r)}const Mt=pe(!1);var $o=Object.defineProperty,Vo=Object.defineProperties,Co=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,sn=(e,t,n)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ho=(e,t)=>{for(var n in t||(t={}))So.call(t,n)&&sn(e,n,t[n]);if(rn)for(var n of rn(t))No.call(t,n)&&sn(e,n,t[n]);return e},Mo=(e,t)=>Vo(e,Co(t));let Ei;const Gt=pe(null);function on(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function kt(e,t=rt().fallbackLocale){const n=on(e);return t?[...new Set([...n,...on(t)])]:n}function Ne(){return Ei??void 0}Gt.subscribe(e=>{Ei=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Bo=e=>{if(e&&yo(e)&&Ft(e)){const{loadingDelay:t}=rt();let n;return typeof window<"u"&&Ne()!=null&&t?n=window.setTimeout(()=>Mt.set(!0),t):Mt.set(!0),Yn(e).then(()=>{Gt.set(e)}).finally(()=>{clearTimeout(n),Mt.set(!1)})}return Gt.set(e)},at=Mo(Ho({},Gt),{set:Bo}),Zt=e=>{const t=Object.create(null);return i=>{const r=JSON.stringify(i);return r in t?t[r]:t[r]=e(i)}};var Fo=Object.defineProperty,Ut=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,ln=(e,t,n)=>t in e?Fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pi=(e,t)=>{for(var n in t||(t={}))qn.call(t,n)&&ln(e,n,t[n]);if(Ut)for(var n of Ut(t))Qn.call(t,n)&&ln(e,n,t[n]);return e},ut=(e,t)=>{var n={};for(var i in e)qn.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Ut)for(var i of Ut(e))t.indexOf(i)<0&&Qn.call(e,i)&&(n[i]=e[i]);return n};const Ot=(e,t)=>{const{formats:n}=rt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Go=Zt(e=>{var t=e,{locale:n,format:i}=t,r=ut(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(r=Ot("number",i)),new Intl.NumberFormat(n,r)}),Uo=Zt(e=>{var t=e,{locale:n,format:i}=t,r=ut(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?r=Ot("date",i):Object.keys(r).length===0&&(r=Ot("date","short")),new Intl.DateTimeFormat(n,r)}),zo=Zt(e=>{var t=e,{locale:n,format:i}=t,r=ut(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?r=Ot("time",i):Object.keys(r).length===0&&(r=Ot("time","short")),new Intl.DateTimeFormat(n,r)}),jo=(e={})=>{var t=e,{locale:n=Ne()}=t,i=ut(t,["locale"]);return Go(Pi({locale:n},i))},Ko=(e={})=>{var t=e,{locale:n=Ne()}=t,i=ut(t,["locale"]);return Uo(Pi({locale:n},i))},Jo=(e={})=>{var t=e,{locale:n=Ne()}=t,i=ut(t,["locale"]);return zo(Pi({locale:n},i))},Wo=Zt((e,t=Ne())=>new Xn(e,t,rt().formats,{ignoreTag:rt().ignoreTag})),Xo=(e,t={})=>{var n,i,r,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:d=Ne(),default:u}=o;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Zn(e,d);if(!c)c=(s=(r=(i=(n=rt()).handleMissingMessage)==null?void 0:i.call(n,{locale:d,id:e,defaultValue:u}))!=null?r:u)!=null?s:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let _=c;try{_=Wo(c,d).format(l)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return _},Zo=(e,t)=>Jo(t).format(e),Yo=(e,t)=>Ko(t).format(e),qo=(e,t)=>jo(t).format(e),Qo=(e,t=Ne())=>Zn(e,t),Ae=ot([at,lt],()=>Xo);ot([at],()=>Zo);ot([at],()=>Yo);ot([at],()=>qo);ot([at,lt],()=>Qo);var Xe=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(i.next(c))}catch(_){o(_)}}function d(c){try{u(i.throw(c))}catch(_){o(_)}}function u(c){c.done?s(c.value):r(c.value).then(l,d)}u((i=i.apply(e,t||[])).next())})};const el="https://localhost/api/v3".replace(/\/+$/,"");class Yt{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:el}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||er}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:()=>Xe(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const tl=new Yt;class qt{constructor(t=tl){this.configuration=t,this.fetchApi=(n,i)=>Xe(this,void 0,void 0,function*(){let r={url:n,init:i};for(const o of this.middleware)o.pre&&(r=(yield o.pre(Object.assign({fetch:this.fetchApi},r)))||r);let s;try{s=yield(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const l of this.middleware)l.onError&&(s=(yield l.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:s?s.clone():void 0}))||s);if(s===void 0)throw o instanceof Error?new sl(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(s=(yield o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:s.clone()}))||s);return s}),this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(i=>({pre:i}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(i=>({post:i}));return this.withMiddleware(...n)}isJsonMime(t){return t?qt.jsonRegex.test(t):!1}request(t,n){return Xe(this,void 0,void 0,function*(){const{url:i,init:r}=yield this.createFetchParams(t,n),s=yield this.fetchApi(i,r);if(s&&s.status>=200&&s.status<300)return s;throw new rl(s,"Response returned an error code")})}createFetchParams(t,n){return Xe(this,void 0,void 0,function*(){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const r=Object.assign({},this.configuration.headers,t.headers);Object.keys(r).forEach(u=>r[u]===void 0?delete r[u]:{});const s=typeof n=="function"?n:()=>Xe(this,void 0,void 0,function*(){return n}),o={method:t.method,headers:r,body:t.body,credentials:this.configuration.credentials},l=Object.assign(Object.assign({},o),yield s({init:o,context:t})),d=Object.assign(Object.assign({},l),{body:nl(l.body)||l.body instanceof URLSearchParams||il(l.body)?l.body:JSON.stringify(l.body)});return{url:i,init:d}})}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}}qt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function il(e){return typeof Blob<"u"&&e instanceof Blob}function nl(e){return typeof FormData<"u"&&e instanceof FormData}class rl extends Error{constructor(t,n){super(n),this.response=t,this.name="ResponseError"}}class sl extends Error{constructor(t,n){super(n),this.cause=t,this.name="FetchError"}}class an extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}function h(e,t){const n=e[t];return n!=null}function er(e,t=""){return Object.keys(e).map(n=>tr(n,e[n],t)).filter(n=>n.length>0).join("&")}function tr(e,t,n=""){const i=n+(n.length?`[${e}]`:e);if(t instanceof Array){const r=t.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${r}`}if(t instanceof Set){const r=Array.from(t);return tr(e,r,n)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?er(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}class ae{constructor(t,n=i=>i){this.raw=t,this.transformer=n}value(){return Xe(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function ol(e){return ll(e)}function ll(e,t){return e==null?e:{departmentid:h(e,"departmentid")?e.departmentid:void 0,onlineStatus:h(e,"online_status")?e.online_status:void 0,presetStatus:h(e,"preset_status")?e.preset_status:void 0}}function al(e){return ul(e)}function ul(e,t){return e==null?e:{agentid:h(e,"agentid")?e.agentid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,username:h(e,"username")?e.username:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,roleid:h(e,"roleid")?e.roleid:void 0,departmentsStatuses:h(e,"departments_statuses")?e.departments_statuses.map(ol):void 0,twofa:h(e,"twofa")?e.twofa:void 0,lastPswdChange:h(e,"last_pswd_change")?new Date(e.last_pswd_change):void 0,userstatus:h(e,"userstatus")?e.userstatus:void 0}}function dl(e){return cl(e)}function cl(e,t){return e==null?e:{conversationid:h(e,"conversationid")?e.conversationid:void 0,datechanged:h(e,"datechanged")?new Date(e.datechanged):void 0,status:h(e,"status")?e.status:void 0,preview:h(e,"preview")?e.preview:void 0,subject:h(e,"subject")?e.subject:void 0,departmentname:h(e,"departmentname")?e.departmentname:void 0,agentname:h(e,"agentname")?e.agentname:void 0,tags:h(e,"tags")?e.tags:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,emails:h(e,"emails")?e.emails:void 0,city:h(e,"city")?e.city:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,rstatus:h(e,"rstatus")?e.rstatus:void 0,statusdatestarted:h(e,"statusdatestarted")?new Date(e.statusdatestarted):void 0,chatOrder:h(e,"chat_order")?e.chat_order:void 0}}function _l(e){return fl(e)}function fl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,name:h(e,"name")?e.name:void 0,type:h(e,"type")?e.type:void 0,onlineCode:h(e,"online_code")?e.online_code:void 0,offlineCode:h(e,"offline_code")?e.offline_code:void 0,onlineCodeCss:h(e,"online_code_css")?e.online_code_css:void 0,offlineCodeCss:h(e,"offline_code_css")?e.offline_code_css:void 0,provide:h(e,"provide")?e.provide:void 0,impressions:h(e,"impressions")?e.impressions:void 0,tickets:h(e,"tickets")?e.tickets:void 0,status:h(e,"status")?e.status:void 0,lastDisplayTime:h(e,"last_display_time")?e.last_display_time:void 0,lastDisplayUrl:h(e,"last_display_url")?e.last_display_url:void 0}}function Ie(e){return ml(e)}function ml(e,t){return e==null?e:{count:h(e,"count")?e.count:void 0}}function hl(e){return gl(e)}function gl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,name:h(e,"name")?e.name:void 0,agentCount:h(e,"agent_count")?e.agent_count:void 0}}function pl(e){return vl(e)}function vl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,logid:h(e,"logid")?e.logid:void 0,line:h(e,"line")?e.line:void 0,filename:h(e,"filename")?e.filename:void 0,created:h(e,"created")?e.created:void 0,level:h(e,"level")?e.level:void 0,type:h(e,"type")?e.type:void 0,message:h(e,"message")?e.message:void 0,ip:h(e,"ip")?e.ip:void 0,groupid:h(e,"groupid")?e.groupid:void 0}}function El(e){return yl(e)}function yl(e,t){return e==null?e:{agentid:h(e,"agentid")?e.agentid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,chats:h(e,"chats")?e.chats:void 0}}function bl(e){return Tl(e)}function Tl(e,t){return e==null?e:{name:h(e,"name")?e.name:void 0,code:h(e,"code")?e.code:void 0,engName:h(e,"eng_name")?e.eng_name:void 0,translated:h(e,"translated")?e.translated:void 0,isDefault:h(e,"is_default")?e.is_default:void 0,active:h(e,"active")?e.active:void 0,isCustom:h(e,"is_custom")?e.is_custom:void 0,isBuiltIn:h(e,"is_builtIn")?e.is_builtIn:void 0}}function Ll(e){return Al(e)}function Al(e,t){return e==null?e:{codeName:h(e,"code_name")?e.code_name:void 0,name:h(e,"name")?e.name:void 0,description:h(e,"description")?e.description:void 0,active:h(e,"active")?e.active:void 0,help:h(e,"help")?e.help:void 0,multiple:h(e,"multiple")?e.multiple:void 0,configFile:h(e,"config_file")?e.config_file:void 0,price:h(e,"price")?e.price:void 0,legacyIntegration:h(e,"legacy_integration")?e.legacy_integration:void 0}}function ai(e){return Ol(e)}function Ol(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,conversationid:h(e,"conversationid")?e.conversationid:void 0,code:h(e,"code")?e.code:void 0,slaTicketId:h(e,"sla_ticket_id")?e.sla_ticket_id:void 0,departmentid:h(e,"departmentid")?e.departmentid:void 0,departmentName:h(e,"department_name")?e.department_name:void 0,levelid:h(e,"levelid")?e.levelid:void 0,slaLevelName:h(e,"sla_level_name")?e.sla_level_name:void 0,sla:h(e,"sla")?e.sla:void 0,dateCreated:h(e,"date_created")?e.date_created:void 0,dateClosed:h(e,"date_closed")?e.date_closed:void 0,dateDue:h(e,"date_due")?e.date_due:void 0,slaLevelId:h(e,"sla_level_id")?e.sla_level_id:void 0,slaType:h(e,"sla_type")?new Date(e.sla_type):void 0,agentid:h(e,"agentid")?e.agentid:void 0,agentFirstname:h(e,"agent_firstname")?e.agent_firstname:void 0,agentLastname:h(e,"agent_lastname")?e.agent_lastname:void 0,agentAvatarUrl:h(e,"agent_avatar_url")?e.agent_avatar_url:void 0,reqContactid:h(e,"req_contactid")?e.req_contactid:void 0,reqFirstname:h(e,"req_firstname")?e.req_firstname:void 0,reqLastname:h(e,"req_lastname")?e.req_lastname:void 0,reqSystemname:h(e,"req_systemname")?e.req_systemname:void 0,reqContactName:h(e,"req_contactName")?e.req_contactName:void 0,reqAvatarUrl:h(e,"req_avatar_url")?e.req_avatar_url:void 0}}function un(e){return Il(e)}function Il(e,t){return e==null?e:{tagid:h(e,"tagid")?e.tagid:void 0,name:h(e,"name")?e.name:void 0,type:h(e,"type")?e.type:void 0,color:h(e,"color")?e.color:void 0,backgroundcolor:h(e,"backgroundcolor")?e.backgroundcolor:void 0,isPublic:h(e,"is_public")?e.is_public:void 0}}function ir(e){return Rl(e)}function Rl(e,t){return e==null?e:{conversationid:h(e,"conversationid")?e.conversationid:void 0,code:h(e,"code")?e.code:void 0,datecreated:h(e,"datecreated")?new Date(e.datecreated):void 0,datechanged:h(e,"datechanged")?new Date(e.datechanged):void 0,dateresolved:h(e,"dateresolved")?new Date(e.dateresolved):void 0,statuschanged:h(e,"statuschanged")?new Date(e.statuschanged):void 0,rorder:h(e,"rorder")?e.rorder:void 0,datedue:h(e,"datedue")?new Date(e.datedue):void 0,datereopen:h(e,"datereopen")?new Date(e.datereopen):void 0,status:h(e,"status")?e.status:void 0,channelType:h(e,"channel_type")?e.channel_type:void 0,departmentid:h(e,"departmentid")?e.departmentid:void 0,agentid:h(e,"agentid")?e.agentid:void 0,preview:h(e,"preview")?e.preview:void 0,subject:h(e,"subject")?e.subject:void 0,departmentname:h(e,"departmentname")?e.departmentname:void 0,agentname:h(e,"agentname")?e.agentname:void 0,tags:h(e,"tags")?e.tags:void 0,messagegroupsIn:h(e,"messagegroups_in")?e.messagegroups_in:void 0,messagegroupsOut:h(e,"messagegroups_out")?e.messagegroups_out:void 0,contactid:h(e,"contactid")?e.contactid:void 0,parentContactid:h(e,"parent_contactid")?e.parent_contactid:void 0,firstname:h(e,"firstname")?e.firstname:void 0,lastname:h(e,"lastname")?e.lastname:void 0,systemName:h(e,"system_name")?e.system_name:void 0,emails:h(e,"emails")?e.emails:void 0,phones:h(e,"phones")?e.phones:void 0,jobPosition:h(e,"job_position")?e.job_position:void 0,contactType:h(e,"contact_type")?e.contact_type:void 0,city:h(e,"city")?e.city:void 0,countrycode:h(e,"countrycode")?e.countrycode:void 0,timeOffset:h(e,"time_offset")?e.time_offset:void 0,gender:h(e,"gender")?e.gender:void 0,levelid:h(e,"levelid")?e.levelid:void 0,groups:h(e,"groups")?e.groups:void 0,contactStatus:h(e,"contact_status")?e.contact_status:void 0,company:h(e,"company")?e.company:void 0,avatarUrl:h(e,"avatar_url")?e.avatar_url:void 0,userid:h(e,"userid")?e.userid:void 0,roleid:h(e,"roleid")?e.roleid:void 0,userstatus:h(e,"userstatus")?e.userstatus:void 0,accountuserstatus:h(e,"accountuserstatus")?e.accountuserstatus:void 0,description:h(e,"description")?e.description:void 0,note:h(e,"note")?e.note:void 0,lastActivity:h(e,"last_activity")?new Date(e.last_activity):void 0,tagnames:h(e,"tagnames")?e.tagnames:void 0,groupnames:h(e,"groupnames")?e.groupnames:void 0}}function Dl(e){return xl(e)}function xl(e,t){return e==null?e:{cursor:h(e,"cursor")?e.cursor:void 0,rows:h(e,"rows")?e.rows.map(ir):void 0}}function wl(e){return Pl(e)}function Pl(e,t){return e==null?e:{id:h(e,"id")?e.id:void 0,agentid:h(e,"agentid")?e.agentid:void 0,agent:h(e,"agent")?e.agent:void 0,conversationid:h(e,"conversationid")?e.conversationid:void 0,ticket:h(e,"ticket")?e.ticket:void 0,parentContactid:h(e,"parent_contactid")?e.parent_contactid:void 0,company:h(e,"company")?e.company:void 0,contactid:h(e,"contactid")?e.contactid:void 0,customer:h(e,"customer")?e.customer:void 0,customerFirstname:h(e,"customer_firstname")?e.customer_firstname:void 0,customerLastname:h(e,"customer_lastname")?e.customer_lastname:void 0,customerSystemname:h(e,"customer_systemname")?e.customer_systemname:void 0,agentTicket:h(e,"agent_ticket")?e.agent_ticket:void 0,reportdate:h(e,"reportdate")?e.reportdate:void 0,reportedtime:h(e,"reportedtime")?e.reportedtime:void 0,reportedtimeHhmmss:h(e,"reportedtime_hhmmss")?e.reportedtime_hhmmss:void 0,spenttime:h(e,"spenttime")?e.spenttime:void 0,dateinvoiced:h(e,"dateinvoiced")?e.dateinvoiced:void 0,note:h(e,"note")?e.note:void 0,type:h(e,"type")?e.type:void 0}}var S=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(i.next(c))}catch(_){o(_)}}function d(c){try{u(i.throw(c))}catch(_){o(_)}}function u(c){c.done?s(c.value):r(c.value).then(l,d)}u((i=i.apply(e,t||[])).next())})};class ki extends qt{getAgentsGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/agents",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(al))})}getAgentsGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(t,n)).value()})}getAgentsGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/agents/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getAgentsGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(t,n)).value()})}getCallsSlaLogGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/calls/sla",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(ai))})}getCallsSlaLogGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(t,n)).value()})}getCallsSlaLogGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getCallsSlaLogGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(t,n)).value()})}getChatsGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(dl))})}getChatsGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(t,n)).value()})}getChatsGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getChatsGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(t,n)).value()})}getChatsSlaLogGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/sla",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(ai))})}getChatsSlaLogGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(t,n)).value()})}getChatsSlaLogGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getChatsSlaLogGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(t,n)).value()})}getContactWidgetsCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getContactWidgetsCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(t,n)).value()})}getContactWidgetsListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(_l))})}getContactWidgetsList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(t,n)).value()})}getCustomerGroupsGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/customer_groups",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(un))})}getCustomerGroupsGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(t,n)).value()})}getDepartmensGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/departments/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getDepartmensGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(t,n)).value()})}getDepartmentsGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/departments",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(hl))})}getDepartmentsGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(t,n)).value()})}getEventLogsGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/eventlogs",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(pl))})}getEventLogsGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(t,n)).value()})}getEventLogsGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getEventLogsGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(t,n)).value()})}getInviteAgentsGridListRaw(t,n){return S(this,void 0,void 0,function*(){if(t.departmentId===null||t.departmentId===void 0)throw new an("departmentId","Required parameter requestParameters.departmentId was null or undefined when calling getInviteAgentsGridList.");const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(t.departmentId))),method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(El))})}getInviteAgentsGridList(t,n){return S(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(t,n)).value()})}getLanguagesGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/languages",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(bl))})}getLanguagesGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(t,n)).value()})}getLanguagesGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/languages/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getLanguagesGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(t,n)).value()})}getPlugindGridListRaw(t,n){return S(this,void 0,void 0,function*(){if(t.pluginPurpose===null||t.pluginPurpose===void 0)throw new an("pluginPurpose","Required parameter requestParameters.pluginPurpose was null or undefined when calling getPlugindGridList.");const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.pluginPurpose!==void 0&&(i.pluginPurpose=t.pluginPurpose);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["plugin_settings.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/plugins",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(Ll))})}getPlugindGridList(t,n){return S(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(t,n)).value()})}getTagsGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tags",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(un))})}getTagsGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(t,n)).value()})}getTicketsGridDatasetRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets_new",method:"GET",headers:r,query:i},n);return new ae(s,o=>Dl(o))})}getTicketsGridDataset(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(t,n)).value()})}getTicketsGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(ir))})}getTicketsGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(t,n)).value()})}getTicketsGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getTicketsGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(t,n)).value()})}getTicketsSlaLogGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(ai))})}getTicketsSlaLogGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(t,n)).value()})}getTicketsSlaLogGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getTicketsSlaLogGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(t,n)).value()})}getTimeReportsGridListRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.sortField!==void 0&&(i._sortField=t.sortField),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/reports/time",method:"GET",headers:r,query:i},n);return new ae(s,o=>o.map(wl))})}getTimeReportsGridList(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(t,n)).value()})}getTimeReportsGridListCountRaw(t,n){return S(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:r,query:i},n);return new ae(s,o=>Ie(o))})}getTimeReportsGridListCount(t={},n){return S(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(t,n)).value()})}}const dn={Asc:"ASC",Desc:"DESC"},mt={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},kl={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},Qe=pe(!1),$i=pe([]),zt=pe(null),It=pe(null),Fe=pe(!1),Et=pe(!1),nr=pe({}),rr=pe(new Map),Le=pe([]),sr=pe(null),Ge=pe(null),Qt=pe(!0),Vi=pe(kl.Rorder),cn=["ar-SA","bg-BG","bs-BA","ca-ES","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","et-EE","fa-IR","fi-FI","fil-PH","fr-FR","he-IL","hr-HR","hu-HU","id-ID","it-IT","ja-JP","ko-KR","lt-LT","lv-LV","me-ME","mk-MK","ms-MY","nl-NL","no-NO","pl-PL","pt-BR","ro-RO","ru-RU","sk-SK","sl-SI","sr-CS","sv-SE","th-TH","tl-PH","tr-TR","uk-UA","vi-VN","vls-BE","zh-CN","zh-TW"];function $l(e){if(e!=null&&e.trim()!=""){const t=e.trim();if(cn.find(r=>r===t)!=null)return t;const n=t.substring(0,2),i=cn.find(r=>r.substring(0,2)===n);if(i!=null)return i}return null}var or={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Pn,function(){var n=1e3,i=6e4,r=36e5,s="millisecond",o="second",l="minute",d="hour",u="day",c="week",_="month",f="quarter",m="year",v="date",p="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var x=["th","st","nd","rd"],R=F%100;return"["+F+(x[(R-20)%10]||x[R]||x[0])+"]"}},$=function(F,x,R){var V=String(F);return!V||V.length>=x?F:""+Array(x+1-V.length).join(R)+F},C={s:$,z:function(F){var x=-F.utcOffset(),R=Math.abs(x),V=Math.floor(R/60),w=R%60;return(x<=0?"+":"-")+$(V,2,"0")+":"+$(w,2,"0")},m:function F(x,R){if(x.date()<R.date())return-F(R,x);var V=12*(R.year()-x.year())+(R.month()-x.month()),w=x.clone().add(V,_),G=R-w<0,z=x.clone().add(V+(G?-1:1),_);return+(-(V+(R-w)/(G?w-z:z-w))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:_,y:m,w:c,d:u,D:v,h:d,m:l,s:o,ms:s,Q:f}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},A="en",U={};U[A]=O;var _e="$isDayjsObject",q=function(F){return F instanceof Oe||!(!F||!F[_e])},me=function F(x,R,V){var w;if(!x)return A;if(typeof x=="string"){var G=x.toLowerCase();U[G]&&(w=G),R&&(U[G]=R,w=G);var z=x.split("-");if(!w&&z.length>1)return F(z[0])}else{var Z=x.name;U[Z]=x,w=Z}return!V&&w&&(A=w),w||!V&&A},ue=function(F,x){if(q(F))return F.clone();var R=typeof x=="object"?x:{};return R.date=F,R.args=arguments,new Oe(R)},J=C;J.l=me,J.i=q,J.w=function(F,x){return ue(F,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var Oe=function(){function F(R){this.$L=me(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[_e]=!0}var x=F.prototype;return x.parse=function(R){this.$d=function(V){var w=V.date,G=V.utc;if(w===null)return new Date(NaN);if(J.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var z=w.match(E);if(z){var Z=z[2]-1||0,ne=(z[7]||"0").substring(0,3);return G?new Date(Date.UTC(z[1],Z,z[3]||1,z[4]||0,z[5]||0,z[6]||0,ne)):new Date(z[1],Z,z[3]||1,z[4]||0,z[5]||0,z[6]||0,ne)}}return new Date(w)}(R),this.init()},x.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},x.$utils=function(){return J},x.isValid=function(){return this.$d.toString()!==p},x.isSame=function(R,V){var w=ue(R);return this.startOf(V)<=w&&w<=this.endOf(V)},x.isAfter=function(R,V){return ue(R)<this.startOf(V)},x.isBefore=function(R,V){return this.endOf(V)<ue(R)},x.$g=function(R,V,w){return J.u(R)?this[V]:this.set(w,R)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(R,V){var w=this,G=!!J.u(V)||V,z=J.p(R),Z=function(He,be){var $e=J.w(w.$u?Date.UTC(w.$y,be,He):new Date(w.$y,be,He),w);return G?$e:$e.endOf(u)},ne=function(He,be){return J.w(w.toDate()[He].apply(w.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(be)),w)},B=this.$W,Q=this.$M,Ee=this.$D,Pe="set"+(this.$u?"UTC":"");switch(z){case m:return G?Z(1,0):Z(31,11);case _:return G?Z(1,Q):Z(0,Q+1);case c:var xe=this.$locale().weekStart||0,ct=(B<xe?B+7:B)-xe;return Z(G?Ee-ct:Ee+(6-ct),Q);case u:case v:return ne(Pe+"Hours",0);case d:return ne(Pe+"Minutes",1);case l:return ne(Pe+"Seconds",2);case o:return ne(Pe+"Milliseconds",3);default:return this.clone()}},x.endOf=function(R){return this.startOf(R,!1)},x.$set=function(R,V){var w,G=J.p(R),z="set"+(this.$u?"UTC":""),Z=(w={},w[u]=z+"Date",w[v]=z+"Date",w[_]=z+"Month",w[m]=z+"FullYear",w[d]=z+"Hours",w[l]=z+"Minutes",w[o]=z+"Seconds",w[s]=z+"Milliseconds",w)[G],ne=G===u?this.$D+(V-this.$W):V;if(G===_||G===m){var B=this.clone().set(v,1);B.$d[Z](ne),B.init(),this.$d=B.set(v,Math.min(this.$D,B.daysInMonth())).$d}else Z&&this.$d[Z](ne);return this.init(),this},x.set=function(R,V){return this.clone().$set(R,V)},x.get=function(R){return this[J.p(R)]()},x.add=function(R,V){var w,G=this;R=Number(R);var z=J.p(V),Z=function(Q){var Ee=ue(G);return J.w(Ee.date(Ee.date()+Math.round(Q*R)),G)};if(z===_)return this.set(_,this.$M+R);if(z===m)return this.set(m,this.$y+R);if(z===u)return Z(1);if(z===c)return Z(7);var ne=(w={},w[l]=i,w[d]=r,w[o]=n,w)[z]||1,B=this.$d.getTime()+R*ne;return J.w(B,this)},x.subtract=function(R,V){return this.add(-1*R,V)},x.format=function(R){var V=this,w=this.$locale();if(!this.isValid())return w.invalidDate||p;var G=R||"YYYY-MM-DDTHH:mm:ssZ",z=J.z(this),Z=this.$H,ne=this.$m,B=this.$M,Q=w.weekdays,Ee=w.months,Pe=w.meridiem,xe=function(be,$e,_t,$t){return be&&(be[$e]||be(V,G))||_t[$e].slice(0,$t)},ct=function(be){return J.s(Z%12||12,be,"0")},He=Pe||function(be,$e,_t){var $t=be<12?"AM":"PM";return _t?$t.toLowerCase():$t};return G.replace(g,function(be,$e){return $e||function(_t){switch(_t){case"YY":return String(V.$y).slice(-2);case"YYYY":return J.s(V.$y,4,"0");case"M":return B+1;case"MM":return J.s(B+1,2,"0");case"MMM":return xe(w.monthsShort,B,Ee,3);case"MMMM":return xe(Ee,B);case"D":return V.$D;case"DD":return J.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return xe(w.weekdaysMin,V.$W,Q,2);case"ddd":return xe(w.weekdaysShort,V.$W,Q,3);case"dddd":return Q[V.$W];case"H":return String(Z);case"HH":return J.s(Z,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return He(Z,ne,!0);case"A":return He(Z,ne,!1);case"m":return String(ne);case"mm":return J.s(ne,2,"0");case"s":return String(V.$s);case"ss":return J.s(V.$s,2,"0");case"SSS":return J.s(V.$ms,3,"0");case"Z":return z}return null}(be)||z.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(R,V,w){var G,z=this,Z=J.p(V),ne=ue(R),B=(ne.utcOffset()-this.utcOffset())*i,Q=this-ne,Ee=function(){return J.m(z,ne)};switch(Z){case m:G=Ee()/12;break;case _:G=Ee();break;case f:G=Ee()/3;break;case c:G=(Q-B)/6048e5;break;case u:G=(Q-B)/864e5;break;case d:G=Q/r;break;case l:G=Q/i;break;case o:G=Q/n;break;default:G=Q}return w?G:J.a(G)},x.daysInMonth=function(){return this.endOf(_).$D},x.$locale=function(){return U[this.$L]},x.locale=function(R,V){if(!R)return this.$L;var w=this.clone(),G=me(R,V,!0);return G&&(w.$L=G),w},x.clone=function(){return J.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},F}(),De=Oe.prototype;return ue.prototype=De,[["$ms",s],["$s",o],["$m",l],["$H",d],["$W",u],["$M",_],["$y",m],["$D",v]].forEach(function(F){De[F[1]]=function(x){return this.$g(x,F[0],F[1])}}),ue.extend=function(F,x){return F.$i||(F(x,Oe,ue),F.$i=!0),ue},ue.locale=me,ue.isDayjs=q,ue.unix=function(F){return ue(1e3*F)},ue.en=U[A],ue.Ls=U,ue.p={},ue})})(or);var Vl=or.exports;const Ze=Jt(Vl);var lr={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Pn,function(){return function(n,i,r){n=n||{};var s=i.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,c,_,f){return s.fromToBase(u,c,_,f)}r.en.relativeTime=o,s.fromToBase=function(u,c,_,f,m){for(var v,p,E,g=_.$locale().relativeTime||o,O=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],$=O.length,C=0;C<$;C+=1){var A=O[C];A.d&&(v=f?r(u).diff(_,A.d,!0):_.diff(u,A.d,!0));var U=(n.rounding||Math.round)(Math.abs(v));if(E=v>0,U<=A.r||!A.r){U<=1&&C>0&&(A=O[C-1]);var _e=g[A.l];m&&(U=m(""+U)),p=typeof _e=="string"?_e.replace("%d",U):_e(U,c,A.l,E);break}}if(c)return p;var q=E?g.future:g.past;return typeof q=="function"?q(p):q.replace("%s",p)},s.to=function(u,c){return l(u,c,this,!0)},s.from=function(u,c){return l(u,c,this)};var d=function(u){return u.$u?r.utc():r()};s.toNow=function(u){return this.to(d(this),u)},s.fromNow=function(u){return this.from(d(this),u)}}})})(lr);var Cl=lr.exports;const Sl=Jt(Cl);Ze.extend(Sl);function Nl(e){let t,n,i=[{title:e[2]},e[3],{datetime:e[1]}],r={};for(let s=0;s<i.length;s+=1)r=Tt(r,i[s]);return{c(){t=I("time"),n=ee(e[0]),Fi(t,r)},m(s,o){k(s,t,o),T(t,n)},p(s,[o]){o&1&&Zr(n,s[0],r.contenteditable),Fi(t,r=xn(i,[o&4&&{title:s[2]},o&8&&s[3],o&2&&{datetime:s[1]}]))},i:W,o:W,d(s){s&&P(t)}}}function Hl(e,t,n){let i;const r=["timestamp","format","relative","live","formatted"];let s=Bi(t,r),{timestamp:o=new Date().toISOString()}=t,{format:l="MMM DD, YYYY"}=t,{relative:d=!1}=t,{live:u=!1}=t,{formatted:c=""}=t,_;const f=60*1e3;return Pt(()=>()=>clearInterval(_)),e.$$set=m=>{t=Tt(Tt({},t),Gr(m)),n(3,s=Bi(t,r)),"timestamp"in m&&n(1,o=m.timestamp),"format"in m&&n(4,l=m.format),"relative"in m&&n(5,d=m.relative),"live"in m&&n(6,u=m.live),"formatted"in m&&n(0,c=m.formatted)},e.$$.update=()=>{e.$$.dirty&98&&d&&u!==!1&&(_=setInterval(()=>{n(0,c=Ze(o).from())},Math.abs(typeof u=="number"?u:f))),e.$$.dirty&50&&n(0,c=d?Ze(o).from():Ze(o).format(l)),e.$$.dirty&50&&n(2,i=d?Ze(o).format(l):void 0)},[c,o,i,s,l,d,u]}class Ci extends oe{constructor(t){super(),re(this,t,Hl,Nl,ie,{timestamp:1,format:4,relative:5,live:6,formatted:0})}get timestamp(){return this.$$.ctx[1]}set timestamp(t){this.$$set({timestamp:t}),D()}get format(){return this.$$.ctx[4]}set format(t){this.$$set({format:t}),D()}get relative(){return this.$$.ctx[5]}set relative(t){this.$$set({relative:t}),D()}get live(){return this.$$.ctx[6]}set live(t){this.$$set({live:t}),D()}get formatted(){return this.$$.ctx[0]}set formatted(t){this.$$set({formatted:t}),D()}}se(Ci,{timestamp:{},format:{},relative:{type:"Boolean"},live:{type:"Boolean"},formatted:{}},[],[],!0);const yt="en-US",_n="S",ar="N",ur="C",yi="D",Ml="A";let Ue,bt=yt;function Bl(e,t,n){if(Ue!==void 0)return;Ue=e;let i={fallbackLocale:yt};tn(yt,t);const r=$l(Ue.locale);r!==null&&r!==yt&&(bt=r,i.initialLocale=bt,tn(bt,n)),ko(i)}function Fl(e){const t=e.substring(0,2).toLowerCase();if(t==="en")return;const n="/node_modules/dayjs/esm/locale/"+t+".js",i=Object.assign({"/node_modules/dayjs/esm/locale/af.js":()=>a(()=>import("./af.js"),["assets/af.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/am.js":()=>a(()=>import("./am.js"),["assets/am.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-dz.js":()=>a(()=>import("./ar-dz.js"),["assets/ar-dz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-iq.js":()=>a(()=>import("./ar-iq.js"),["assets/ar-iq.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-kw.js":()=>a(()=>import("./ar-kw.js"),["assets/ar-kw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-ly.js":()=>a(()=>import("./ar-ly.js"),["assets/ar-ly.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-ma.js":()=>a(()=>import("./ar-ma.js"),["assets/ar-ma.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-sa.js":()=>a(()=>import("./ar-sa.js"),["assets/ar-sa.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar-tn.js":()=>a(()=>import("./ar-tn.js"),["assets/ar-tn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ar.js":()=>a(()=>import("./ar.js"),["assets/ar.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/az.js":()=>a(()=>import("./az.js"),["assets/az.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/be.js":()=>a(()=>import("./be.js"),["assets/be.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bg.js":()=>a(()=>import("./bg.js"),["assets/bg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bi.js":()=>a(()=>import("./bi.js"),["assets/bi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bm.js":()=>a(()=>import("./bm.js"),["assets/bm.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bn-bd.js":()=>a(()=>import("./bn-bd.js"),["assets/bn-bd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bn.js":()=>a(()=>import("./bn.js"),["assets/bn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bo.js":()=>a(()=>import("./bo.js"),["assets/bo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/br.js":()=>a(()=>import("./br.js"),["assets/br.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/bs.js":()=>a(()=>import("./bs.js"),["assets/bs.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ca.js":()=>a(()=>import("./ca.js"),["assets/ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cs.js":()=>a(()=>import("./cs.js"),["assets/cs.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cv.js":()=>a(()=>import("./cv.js"),["assets/cv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/cy.js":()=>a(()=>import("./cy.js"),["assets/cy.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/da.js":()=>a(()=>import("./da.js"),["assets/da.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de-at.js":()=>a(()=>import("./de-at.js"),["assets/de-at.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de-ch.js":()=>a(()=>import("./de-ch.js"),["assets/de-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/de.js":()=>a(()=>import("./de.js"),["assets/de.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/dv.js":()=>a(()=>import("./dv.js"),["assets/dv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/el.js":()=>a(()=>import("./el.js"),["assets/el.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-au.js":()=>a(()=>import("./en-au.js"),["assets/en-au.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-ca.js":()=>a(()=>import("./en-ca.js"),["assets/en-ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-gb.js":()=>a(()=>import("./en-gb.js"),["assets/en-gb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-ie.js":()=>a(()=>import("./en-ie.js"),["assets/en-ie.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-il.js":()=>a(()=>import("./en-il.js"),["assets/en-il.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-in.js":()=>a(()=>import("./en-in.js"),["assets/en-in.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-nz.js":()=>a(()=>import("./en-nz.js"),["assets/en-nz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-sg.js":()=>a(()=>import("./en-sg.js"),["assets/en-sg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en-tt.js":()=>a(()=>import("./en-tt.js"),["assets/en-tt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/en.js":()=>a(()=>import("./en.js"),[]),"/node_modules/dayjs/esm/locale/eo.js":()=>a(()=>import("./eo.js"),["assets/eo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-do.js":()=>a(()=>import("./es-do.js"),["assets/es-do.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-mx.js":()=>a(()=>import("./es-mx.js"),["assets/es-mx.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-pr.js":()=>a(()=>import("./es-pr.js"),["assets/es-pr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es-us.js":()=>a(()=>import("./es-us.js"),["assets/es-us.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/es.js":()=>a(()=>import("./es.js"),["assets/es.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/et.js":()=>a(()=>import("./et.js"),["assets/et.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/eu.js":()=>a(()=>import("./eu.js"),["assets/eu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fa.js":()=>a(()=>import("./fa.js"),["assets/fa.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fi.js":()=>a(()=>import("./fi.js"),["assets/fi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fo.js":()=>a(()=>import("./fo.js"),["assets/fo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr-ca.js":()=>a(()=>import("./fr-ca.js"),["assets/fr-ca.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr-ch.js":()=>a(()=>import("./fr-ch.js"),["assets/fr-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fr.js":()=>a(()=>import("./fr.js"),["assets/fr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/fy.js":()=>a(()=>import("./fy.js"),["assets/fy.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ga.js":()=>a(()=>import("./ga.js"),["assets/ga.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gd.js":()=>a(()=>import("./gd.js"),["assets/gd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gl.js":()=>a(()=>import("./gl.js"),["assets/gl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gom-latn.js":()=>a(()=>import("./gom-latn.js"),["assets/gom-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/gu.js":()=>a(()=>import("./gu.js"),["assets/gu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/he.js":()=>a(()=>import("./he.js"),["assets/he.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hi.js":()=>a(()=>import("./hi.js"),["assets/hi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hr.js":()=>a(()=>import("./hr.js"),["assets/hr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ht.js":()=>a(()=>import("./ht.js"),["assets/ht.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hu.js":()=>a(()=>import("./hu.js"),["assets/hu.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/hy-am.js":()=>a(()=>import("./hy-am.js"),["assets/hy-am.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/id.js":()=>a(()=>import("./id.js"),["assets/id.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/is.js":()=>a(()=>import("./is.js"),["assets/is.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/it-ch.js":()=>a(()=>import("./it-ch.js"),["assets/it-ch.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/it.js":()=>a(()=>import("./it.js"),["assets/it.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ja.js":()=>a(()=>import("./ja.js"),["assets/ja.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/jv.js":()=>a(()=>import("./jv.js"),["assets/jv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ka.js":()=>a(()=>import("./ka.js"),["assets/ka.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/kk.js":()=>a(()=>import("./kk.js"),["assets/kk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/km.js":()=>a(()=>import("./km.js"),["assets/km.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/kn.js":()=>a(()=>import("./kn.js"),["assets/kn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ko.js":()=>a(()=>import("./ko.js"),["assets/ko.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ku.js":()=>a(()=>import("./ku.js"),["assets/ku.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ky.js":()=>a(()=>import("./ky.js"),["assets/ky.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lb.js":()=>a(()=>import("./lb.js"),["assets/lb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lo.js":()=>a(()=>import("./lo.js"),["assets/lo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lt.js":()=>a(()=>import("./lt.js"),["assets/lt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/lv.js":()=>a(()=>import("./lv.js"),["assets/lv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/me.js":()=>a(()=>import("./me.js"),["assets/me.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mi.js":()=>a(()=>import("./mi.js"),["assets/mi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mk.js":()=>a(()=>import("./mk.js"),["assets/mk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ml.js":()=>a(()=>import("./ml.js"),["assets/ml.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mn.js":()=>a(()=>import("./mn.js"),["assets/mn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mr.js":()=>a(()=>import("./mr.js"),["assets/mr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ms-my.js":()=>a(()=>import("./ms-my.js"),["assets/ms-my.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ms.js":()=>a(()=>import("./ms.js"),["assets/ms.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/mt.js":()=>a(()=>import("./mt.js"),["assets/mt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/my.js":()=>a(()=>import("./my.js"),["assets/my.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nb.js":()=>a(()=>import("./nb.js"),["assets/nb.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ne.js":()=>a(()=>import("./ne.js"),["assets/ne.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nl-be.js":()=>a(()=>import("./nl-be.js"),["assets/nl-be.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nl.js":()=>a(()=>import("./nl.js"),["assets/nl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/nn.js":()=>a(()=>import("./nn.js"),["assets/nn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/oc-lnc.js":()=>a(()=>import("./oc-lnc.js"),["assets/oc-lnc.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pa-in.js":()=>a(()=>import("./pa-in.js"),["assets/pa-in.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pl.js":()=>a(()=>import("./pl.js"),["assets/pl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pt-br.js":()=>a(()=>import("./pt-br.js"),["assets/pt-br.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/pt.js":()=>a(()=>import("./pt.js"),["assets/pt.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/rn.js":()=>a(()=>import("./rn.js"),["assets/rn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ro.js":()=>a(()=>import("./ro.js"),["assets/ro.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ru.js":()=>a(()=>import("./ru.js"),["assets/ru.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/rw.js":()=>a(()=>import("./rw.js"),["assets/rw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sd.js":()=>a(()=>import("./sd.js"),["assets/sd.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/se.js":()=>a(()=>import("./se.js"),["assets/se.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/si.js":()=>a(()=>import("./si.js"),["assets/si.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sk.js":()=>a(()=>import("./sk.js"),["assets/sk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sl.js":()=>a(()=>import("./sl.js"),["assets/sl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sq.js":()=>a(()=>import("./sq.js"),["assets/sq.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sr-cyrl.js":()=>a(()=>import("./sr-cyrl.js"),["assets/sr-cyrl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sr.js":()=>a(()=>import("./sr.js"),["assets/sr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ss.js":()=>a(()=>import("./ss.js"),["assets/ss.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sv-fi.js":()=>a(()=>import("./sv-fi.js"),["assets/sv-fi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sv.js":()=>a(()=>import("./sv.js"),["assets/sv.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/sw.js":()=>a(()=>import("./sw.js"),["assets/sw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ta.js":()=>a(()=>import("./ta.js"),["assets/ta.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/te.js":()=>a(()=>import("./te.js"),["assets/te.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tet.js":()=>a(()=>import("./tet.js"),["assets/tet.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tg.js":()=>a(()=>import("./tg.js"),["assets/tg.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/th.js":()=>a(()=>import("./th.js"),["assets/th.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tk.js":()=>a(()=>import("./tk.js"),["assets/tk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tl-ph.js":()=>a(()=>import("./tl-ph.js"),["assets/tl-ph.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tlh.js":()=>a(()=>import("./tlh.js"),["assets/tlh.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tr.js":()=>a(()=>import("./tr.js"),["assets/tr.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzl.js":()=>a(()=>import("./tzl.js"),["assets/tzl.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzm-latn.js":()=>a(()=>import("./tzm-latn.js"),["assets/tzm-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/tzm.js":()=>a(()=>import("./tzm.js"),["assets/tzm.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ug-cn.js":()=>a(()=>import("./ug-cn.js"),["assets/ug-cn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uk.js":()=>a(()=>import("./uk.js"),["assets/uk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/ur.js":()=>a(()=>import("./ur.js"),["assets/ur.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uz-latn.js":()=>a(()=>import("./uz-latn.js"),["assets/uz-latn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/uz.js":()=>a(()=>import("./uz.js"),["assets/uz.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/vi.js":()=>a(()=>import("./vi.js"),["assets/vi.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/x-pseudo.js":()=>a(()=>import("./x-pseudo.js"),["assets/x-pseudo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/yo.js":()=>a(()=>import("./yo.js"),["assets/yo.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-cn.js":()=>a(()=>import("./zh-cn.js"),["assets/zh-cn.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-hk.js":()=>a(()=>import("./zh-hk.js"),["assets/zh-hk.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh-tw.js":()=>a(()=>import("./zh-tw.js"),["assets/zh-tw.js","assets/index2.js","assets/en.js"]),"/node_modules/dayjs/esm/locale/zh.js":()=>a(()=>import("./zh.js"),["assets/zh.js","assets/index2.js","assets/en.js"])});i[n]&&i[n]().then(r=>{Ze.locale(r.default)})}function Gl(e){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function Je(e){return Gl(new Date(e))}function Ul(){return Ue.dateFormat.toUpperCase()}function zl(){return Ue.timeFormat}function dr(){return Ul()+" "+zl()}function Ye(e){return jl(e,2)}function jl(e,t){let n="";return Wl(t).formatToParts(e).forEach(i=>{i.type==="group"?n+=Kl():i.type==="decimal"?n+=Jl():n+=i.value}),n}function Kl(){let e=Ue.thousandsSeparator;switch(e==null&&(e=_n),e){case ur:return",";case _n:return" ";case yi:return".";case Ml:return"'";case ar:case"":return" ";default:return e}}function Jl(){let e=Ue.decimalSeparator;switch(e==null&&(e=yi),e){case ur:return",";case ar:case yi:return".";default:return e}}function Wl(e){return new Intl.NumberFormat(bt,{minimumFractionDigits:0,maximumFractionDigits:e,useGrouping:!0})}function Xl(e){ce(e,"svelte-mupm4a",".Counter.svelte-mupm4a{display:none}span.svelte-mupm4a{margin-right:5px}.Selection.svelte-mupm4a{color:var(--ticket-selected-textcolor);background-color:var(--ticket-selected-bg);padding:6px 10px;border-radius:4px;font-size:12px;font-style:normal;font-weight:700;line-height:20px}.text.svelte-mupm4a{font-family:'Roboto', sans-serif;font-size:12px;line-height:20px}.many.svelte-mupm4a{color:var(--main-textcolor);padding:2px 12px;border:1px solid var(--menu-hover-bg);border-radius:4px;font-weight:500;font-size:12px;font-family:'Roboto', sans-serif;line-height:20px;cursor:pointer}.many.loading.svelte-mupm4a{border:none;padding:2px 0}@media(min-width: 768px){.Counter.svelte-mupm4a{display:block}}")}function Zl(e){let t,n=e[5]("Displaying %count of %allCount",{values:{count:Ye(e[7].length),allCount:Ye(e[0])}})+"",i;return{c(){t=I("span"),i=ee(n),y(t,"class","text svelte-mupm4a")},m(r,s){k(r,t,s),T(t,i)},p(r,s){s&161&&n!==(n=r[5]("Displaying %count of %allCount",{values:{count:Ye(r[7].length),allCount:Ye(r[0])}})+"")&&le(i,n)},d(r){r&&P(t)}}}function Yl(e){let t,n=e[5]("Displaying %count of",{values:{count:Ye(e[7].length)}})+"",i,r,s,o=(e[1]?e[5]("Loading..."):e[5]("many"))+"",l,d,u,c;return{c(){t=I("span"),i=ee(n),r=j(),s=I("span"),l=ee(o),y(t,"class","text svelte-mupm4a"),y(s,"class",d=fe(e[2])+" svelte-mupm4a")},m(_,f){k(_,t,f),T(t,i),k(_,r,f),k(_,s,f),T(s,l),u||(c=ve(s,"click",e[8]),u=!0)},p(_,f){f&160&&n!==(n=_[5]("Displaying %count of",{values:{count:Ye(_[7].length)}})+"")&&le(i,n),f&34&&o!==(o=(_[1]?_[5]("Loading..."):_[5]("many"))+"")&&le(l,o),f&4&&d!==(d=fe(_[2])+" svelte-mupm4a")&&y(s,"class",d)},d(_){_&&(P(t),P(r),P(s)),u=!1,c()}}}function ql(e){let t,n=e[5]("Loading...")+"",i;return{c(){t=I("span"),i=ee(n),y(t,"class","text svelte-mupm4a")},m(r,s){k(r,t,s),T(t,i)},p(r,s){s&32&&n!==(n=r[5]("Loading...")+"")&&le(i,n)},d(r){r&&P(t)}}}function Ql(e){let t;function n(s,o){return s[3]?ta:ea}let i=n(e),r=i(e);return{c(){r.c(),t=ze()},m(s,o){r.m(s,o),k(s,t,o)},p(s,o){i===(i=n(s))&&r?r.p(s,o):(r.d(1),r=i(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){s&&P(t),r.d(s)}}}function ea(e){let t,n=e[5]("%pCount rows selected",{values:{pCount:e[4].length}})+"",i;return{c(){t=I("span"),i=ee(n),y(t,"class","Selection svelte-mupm4a")},m(r,s){k(r,t,s),T(t,i)},p(r,s){s&48&&n!==(n=r[5]("%pCount rows selected",{values:{pCount:r[4].length}})+"")&&le(i,n)},d(r){r&&P(t)}}}function ta(e){let t;function n(s,o){return s[4].length>0?na:ia}let i=n(e),r=i(e);return{c(){r.c(),t=ze()},m(s,o){r.m(s,o),k(s,t,o)},p(s,o){i===(i=n(s))&&r?r.p(s,o):(r.d(1),r=i(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){s&&P(t),r.d(s)}}}function ia(e){let t,n=e[5]("all rows selected")+"",i;return{c(){t=I("span"),i=ee(n),y(t,"class","Selection svelte-mupm4a")},m(r,s){k(r,t,s),T(t,i)},p(r,s){s&32&&n!==(n=r[5]("all rows selected")+"")&&le(i,n)},d(r){r&&P(t)}}}function na(e){let t,n=e[5]("all rows selected except %pCount rows",{values:{pCount:e[4].length}})+"",i;return{c(){t=I("span"),i=ee(n),y(t,"class","Selection svelte-mupm4a")},m(r,s){k(r,t,s),T(t,i)},p(r,s){s&48&&n!==(n=r[5]("all rows selected except %pCount rows",{values:{pCount:r[4].length}})+"")&&le(i,n)},d(r){r&&P(t)}}}function ra(e){let t;function n(s,o){return s[3]||s[4].length>0?Ql:s[6]?ql:s[0]==null?Yl:Zl}let i=n(e),r=i(e);return{c(){t=I("div"),r.c(),y(t,"class","Counter svelte-mupm4a")},m(s,o){k(s,t,o),r.m(t,null)},p(s,[o]){i===(i=n(s))&&r?r.p(s,o):(r.d(1),r=i(s),r&&(r.c(),r.m(t,null)))},i:W,o:W,d(s){s&&P(t),r.d()}}}function sa(e,t,n){let i,r,s,o,l,d,u;K(e,It,p=>n(9,i=p)),K(e,zt,p=>n(10,r=p)),K(e,Qe,p=>n(3,s=p)),K(e,$i,p=>n(4,o=p)),K(e,Ae,p=>n(5,l=p)),K(e,Fe,p=>n(6,d=p)),K(e,Le,p=>n(7,u=p));let c=null,_=!1,f="many";function m(){n(0,c=null)}async function v(){n(2,f="many loading"),n(1,_=!0);let p=await r.getTicketsGridListCount({filters:i,timezoneOffset:new Date().getTimezoneOffset()});n(0,c=p.count),n(1,_=!1)}return e.$$.update=()=>{e.$$.dirty&512&&i&&m()},[c,_,f,s,o,l,d,u,v,i]}class cr extends oe{constructor(t){super(),re(this,t,sa,ra,ie,{},Xl)}}se(cr,{},[],[],!0);async function st(e=!1){if(!(Re(Fe)||!Re(zt))&&(e&&(Ge.set(null),Et.set(!1)),!(!Re(Ge)&&Re(Et)))){Fe.set(!0);try{const n=await(await Re(zt).getTicketsGridDatasetRaw(oa())).value();e&&Le.set([]),Le.set([...Re(Le),...n.rows]),Ge.set(n.cursor),Et.set(!0)}catch(t){sr.set(t.toString())}finally{Fe.set(!1)}}}function oa(){return{perPage:20,sortDir:Re(Qt)?dn.Asc:dn.Desc,filters:Re(It),sortField:Re(Vi),cursor:Re(Ge)?Re(Ge):""}}function la(e){ce(e,"svelte-nnh02b",".Head.svelte-nnh02b.svelte-nnh02b{display:flex;position:sticky;top:0;color:var(--panel_text_color);margin-bottom:20px;align-items:center;font-size:14px;font-family:'Roboto', sans-serif;border-bottom:1px solid var(--main-lighter-textcolor);padding:0 23px 6px 44px}.FilterIcon{font-size:20px;margin-right:2px}.SpinnerIcon{display:block;height:18px;width:18px}.headCheckbox.svelte-nnh02b.svelte-nnh02b{width:20px;margin-right:16px}.headCheckbox.svelte-nnh02b input[type=checkbox].svelte-nnh02b{vertical-align:middle;cursor:pointer;margin:3px}button.svelte-nnh02b.svelte-nnh02b{border:none;background:none;font-size:13px;font-weight:400;color:var(--main-lighter-textcolor)}.spinner.svelte-nnh02b.svelte-nnh02b{font-size:16px;cursor:pointer}.rightPanel.svelte-nnh02b.svelte-nnh02b{display:flex;margin-inline-start:auto}.Sorting.svelte-nnh02b.svelte-nnh02b{cursor:pointer;text-align:left;font-weight:bold}.loading.svelte-nnh02b.svelte-nnh02b{animation-name:svelte-nnh02b-rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes svelte-nnh02b-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media screen and (min-width: 768px){.headCheckbox.svelte-nnh02b.svelte-nnh02b{margin-right:42px}}")}function aa(e){let t,n,i,r,s,o,l,d,u,c,_,f,m,v,p,E,g,O,$,C;return s=new we({props:{iconLaClassName:"la-filter",className:"FilterIcon"}}),c=new we({props:{iconLaClassName:"la-show"}}),m=new cr({}),E=new we({props:{className:"SpinnerIcon",iconLaClassName:"la-refresh"}}),{c(){t=I("div"),n=I("div"),i=I("input"),r=j(),M(s.$$.fragment),o=j(),l=I("button"),d=ee(e[0]),u=j(),M(c.$$.fragment),_=j(),f=I("div"),M(m.$$.fragment),v=j(),p=I("button"),M(E.$$.fragment),y(i,"type","checkbox"),y(i,"class","svelte-nnh02b"),y(n,"class","headCheckbox svelte-nnh02b"),y(l,"class","Sorting svelte-nnh02b"),y(p,"class","spinner svelte-nnh02b"),y(p,"title",g=e[4]("Reload")),Ui(p,"loading",e[3]),y(f,"class","rightPanel svelte-nnh02b"),y(t,"class","Head svelte-nnh02b")},m(A,U){k(A,t,U),T(t,n),T(n,i),i.checked=e[2],T(t,r),N(s,t,null),T(t,o),T(t,l),T(l,d),e[8](l),T(t,u),N(c,t,null),T(t,_),T(t,f),N(m,f,null),T(f,v),T(f,p),N(E,p,null),O=!0,$||(C=[ve(i,"change",e[7]),ve(i,"click",e[5]),ve(l,"click",e[6]),ve(p,"click",e[9])],$=!0)},p(A,[U]){U&4&&(i.checked=A[2]),(!O||U&1)&&le(d,A[0]),(!O||U&16&&g!==(g=A[4]("Reload")))&&y(p,"title",g),(!O||U&8)&&Ui(p,"loading",A[3])},i(A){O||(b(s.$$.fragment,A),b(c.$$.fragment,A),b(m.$$.fragment,A),b(E.$$.fragment,A),O=!0)},o(A){L(s.$$.fragment,A),L(c.$$.fragment,A),L(m.$$.fragment,A),L(E.$$.fragment,A),O=!1},d(A){A&&P(t),H(s),e[8](null),H(c),H(m),H(E),$=!1,ke(C)}}}function ua(e,t,n){let i,r,s;K(e,Qt,E=>n(12,E)),K(e,Qe,E=>n(2,i=E)),K(e,Fe,E=>n(3,r=E)),K(e,Ae,E=>n(4,s=E));let{currentFilter:o}=t;const l=Dn();let d,u,c;function _(){Qe.set(!i),Le.update(E=>E.map(g=>({...g,__selected:i})))}function f(){d=u.getBoundingClientRect();let g=d.bottom-58,O=d.left-7;window.innerWidth>=768&&(O-=258),c=`position: absolute; top: ${g}px; left: ${O}px;`,l("openModal",{dialogStyles:c})}function m(){i=this.checked,Qe.set(i)}function v(E){et[E?"unshift":"push"](()=>{u=E,n(1,u)})}const p=()=>st(!0);return e.$$set=E=>{"currentFilter"in E&&n(0,o=E.currentFilter)},[o,u,i,r,s,_,f,m,v,p]}class _r extends oe{constructor(t){super(),re(this,t,ua,aa,ie,{currentFilter:0},la)}get currentFilter(){return this.$$.ctx[0]}set currentFilter(t){this.$$set({currentFilter:t}),D()}}se(_r,{currentFilter:{}},[],[],!0);function Ve(e){switch(e){case"A":return{bg:"var(--ticket-status-answered-background)",text:"var(--ticket-status-answered-text)",border:"var(--ticket-status-answered-border)"};case"T":return{bg:"var(--ticket-status-chat-background)",text:"var(--ticket-status-chat-text)",border:"var(--ticket-status-chat-border)"};case"P":return{bg:"var(--ticket-status-phone-background)",text:"var(--ticket-status-phone-text)",border:"var(--ticket-status-phone-border)"};case"X":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"B":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"I":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"R":return{bg:"var(--ticket-status-resolved-background)",text:"var(--ticket-status-resolved-text)",border:"var(--ticket-status-resolved-border)"};case"N":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"C":return{bg:"var(--ticket-status-open-background)",text:"var(--ticket-status-open-text)",border:"var(--ticket-status-open-border)"};case"W":return{bg:"var(--ticket-status-postponed-background)",text:"var(--ticket-status-postponed-text)",border:"var(--ticket-status-postponed-border)"};default:return{bg:"",text:"",border:""}}}const da=()=>{const e=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#FFEB3B","#FFC107","#FF5722","#795548"],t=Math.floor(Math.random()*e.length);return e[t]},ca=e=>{let t=e.split(" ");return t.length>1?t=t.shift().charAt(0)+t.pop().charAt(0):t=e.substring(0,2),t.toUpperCase()};function _a(e){ce(e,"svelte-hbozhk",".wrapper.svelte-hbozhk{position:relative;width:var(--size);height:var(--size)}.innerImage.svelte-hbozhk,.innerInitials.svelte-hbozhk,.imageLoading.svelte-hbozhk{display:block;width:100%;height:100%;border-radius:var(--borderRadius)}.innerInitials.svelte-hbozhk{line-height:var(--size);background-color:var(--bgColor);color:var(--textColor);text-align:center;font-size:calc(var(--size) / (var(--abbrLength) + 0.5))}.imageLoading.svelte-hbozhk{background-color:var(--bgColor)}.imageLoading.svelte-hbozhk::before{content:'';display:block;height:100%;width:100%;background:linear-gradient(90deg, transparent, #ffffff38, transparent);position:absolute;top:0;left:0;animation:svelte-hbozhk-skeleton-animation 1.2s linear infinite}@keyframes svelte-hbozhk-skeleton-animation{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}")}function fa(e){let t;return{c(){t=I("div"),t.textContent=`${e[10]}`,y(t,"class","innerInitials svelte-hbozhk")},m(n,i){k(n,t,i)},p:W,d(n){n&&P(t)}}}function ma(e){let t,n,i,r,s,o;return{c(){t=I("div"),n=I("img"),y(n,"alt",""),y(n,"class",fe("innerImage")+" svelte-hbozhk"),Bt(n.src,i=e[2])||y(n,"src",i),y(t,"class",r=fe(e[8]?"imageLoading":"")+" svelte-hbozhk")},m(l,d){k(l,t,d),T(t,n),s||(o=[ve(n,"error",e[15]),ve(n,"load",e[16])],s=!0)},p(l,d){d&4&&!Bt(n.src,i=l[2])&&y(n,"src",i),d&256&&r!==(r=fe(l[8]?"imageLoading":"")+" svelte-hbozhk")&&y(t,"class",r)},d(l){l&&P(t),s=!1,ke(o)}}}function ha(e){let t,n;function i(o,l){return o[2]&&!o[7]?ma:fa}let r=i(e),s=r(e);return{c(){t=I("div"),s.c(),y(t,"aria-label",e[1]),y(t,"class","wrapper svelte-hbozhk"),y(t,"style",n=e[0]+"--borderRadius:"+(e[6]?0:e[5])+"; --size:"+e[4]+"; --bgColor:"+e[9]+"; --src:"+e[2]+"; --textColor:"+e[3]+"; --abbrLength:"+e[11])},m(o,l){k(o,t,l),s.m(t,null)},p(o,[l]){r===(r=i(o))&&s?s.p(o,l):(s.d(1),s=r(o),s&&(s.c(),s.m(t,null))),l&2&&y(t,"aria-label",o[1]),l&125&&n!==(n=o[0]+"--borderRadius:"+(o[6]?0:o[5])+"; --size:"+o[4]+"; --bgColor:"+o[9]+"; --src:"+o[2]+"; --textColor:"+o[3]+"; --abbrLength:"+o[11])&&y(t,"style",n)},i:W,o:W,d(o){o&&P(t),s.d()}}}function ga(e,t,n){let{style:i=""}=t,{name:r="Avatar"}=t,{initials:s}=t,{src:o}=t,{bgColor:l="lightGrey"}=t,{textColor:d="white"}=t,{size:u="50px"}=t,{borderRadius:c="50%"}=t,{square:_=!1}=t,{randomBgColor:f=!1}=t;const m=f?da():l,v=s||ca(r),p=v.length;let E=!1,g=!0;const O=()=>n(7,E=!0),$=()=>n(8,g=!1);return e.$$set=C=>{"style"in C&&n(0,i=C.style),"name"in C&&n(1,r=C.name),"initials"in C&&n(12,s=C.initials),"src"in C&&n(2,o=C.src),"bgColor"in C&&n(13,l=C.bgColor),"textColor"in C&&n(3,d=C.textColor),"size"in C&&n(4,u=C.size),"borderRadius"in C&&n(5,c=C.borderRadius),"square"in C&&n(6,_=C.square),"randomBgColor"in C&&n(14,f=C.randomBgColor)},[i,r,o,d,u,c,_,E,g,m,v,p,s,l,f,O,$]}class fr extends oe{constructor(t){super(),re(this,t,ga,ha,ie,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},_a)}get style(){return this.$$.ctx[0]}set style(t){this.$$set({style:t}),D()}get name(){return this.$$.ctx[1]}set name(t){this.$$set({name:t}),D()}get initials(){return this.$$.ctx[12]}set initials(t){this.$$set({initials:t}),D()}get src(){return this.$$.ctx[2]}set src(t){this.$$set({src:t}),D()}get bgColor(){return this.$$.ctx[13]}set bgColor(t){this.$$set({bgColor:t}),D()}get textColor(){return this.$$.ctx[3]}set textColor(t){this.$$set({textColor:t}),D()}get size(){return this.$$.ctx[4]}set size(t){this.$$set({size:t}),D()}get borderRadius(){return this.$$.ctx[5]}set borderRadius(t){this.$$set({borderRadius:t}),D()}get square(){return this.$$.ctx[6]}set square(t){this.$$set({square:t}),D()}get randomBgColor(){return this.$$.ctx[14]}set randomBgColor(t){this.$$set({randomBgColor:t}),D()}}se(fr,{style:{},name:{},initials:{},src:{},bgColor:{},textColor:{},size:{},borderRadius:{},square:{type:"Boolean"},randomBgColor:{type:"Boolean"}},[],[],!0);function pa(e){return[...e].reduce((t,n)=>Math.imul(31,t)+n.charCodeAt(0)|0,0)}var mr={exports:{}},hr={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,i){return n<<i|n>>>32-i},rotr:function(n,i){return n<<32-i|n>>>i},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var i=0;i<n.length;i++)n[i]=t.endian(n[i]);return n},randomBytes:function(n){for(var i=[];n>0;n--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(n){for(var i=[],r=0,s=0;r<n.length;r++,s+=8)i[s>>>5]|=n[r]<<24-s%32;return i},wordsToBytes:function(n){for(var i=[],r=0;r<n.length*32;r+=8)i.push(n[r>>>5]>>>24-r%32&255);return i},bytesToHex:function(n){for(var i=[],r=0;r<n.length;r++)i.push((n[r]>>>4).toString(16)),i.push((n[r]&15).toString(16));return i.join("")},hexToBytes:function(n){for(var i=[],r=0;r<n.length;r+=2)i.push(parseInt(n.substr(r,2),16));return i},bytesToBase64:function(n){for(var i=[],r=0;r<n.length;r+=3)for(var s=n[r]<<16|n[r+1]<<8|n[r+2],o=0;o<4;o++)r*8+o*6<=n.length*8?i.push(e.charAt(s>>>6*(3-o)&63)):i.push("=");return i.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],r=0,s=0;r<n.length;s=++r%4)s!=0&&i.push((e.indexOf(n.charAt(r-1))&Math.pow(2,-2*s+8)-1)<<s*2|e.indexOf(n.charAt(r))>>>6-s*2);return i}};hr.exports=t})();var va=hr.exports,bi={utf8:{stringToBytes:function(e){return bi.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(bi.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},fn=bi;/*!
6
6
  * Determine if an object is a Buffer
7
7
  *
8
8
  * @author Feross Aboukhadijeh <https://feross.org>
9
9
  * @license MIT
10
- */var ha=function(e){return e!=null&&(ms(e)||ga(e)||!!e._isBuffer)};function ms(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ga(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&ms(e.slice(0,0))}(function(){var e=ma,t=cn.utf8,i=ha,n=cn.bin,s=function(r,o){r.constructor==String?o&&o.encoding==="binary"?r=n.stringToBytes(r):r=t.stringToBytes(r):i(r)?r=Array.prototype.slice.call(r,0):!Array.isArray(r)&&r.constructor!==Uint8Array&&(r=r.toString());for(var l=e.bytesToWords(r),d=r.length*8,u=1732584193,c=-271733879,_=-1732584194,f=271733878,m=0;m<l.length;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360;l[d>>>5]|=128<<d%32,l[(d+64>>>9<<4)+14]=d;for(var p=s._ff,v=s._gg,E=s._hh,g=s._ii,m=0;m<l.length;m+=16){var A=u,$=c,x=_,O=f;u=p(u,c,_,f,l[m+0],7,-680876936),f=p(f,u,c,_,l[m+1],12,-389564586),_=p(_,f,u,c,l[m+2],17,606105819),c=p(c,_,f,u,l[m+3],22,-1044525330),u=p(u,c,_,f,l[m+4],7,-176418897),f=p(f,u,c,_,l[m+5],12,1200080426),_=p(_,f,u,c,l[m+6],17,-1473231341),c=p(c,_,f,u,l[m+7],22,-45705983),u=p(u,c,_,f,l[m+8],7,1770035416),f=p(f,u,c,_,l[m+9],12,-1958414417),_=p(_,f,u,c,l[m+10],17,-42063),c=p(c,_,f,u,l[m+11],22,-1990404162),u=p(u,c,_,f,l[m+12],7,1804603682),f=p(f,u,c,_,l[m+13],12,-40341101),_=p(_,f,u,c,l[m+14],17,-1502002290),c=p(c,_,f,u,l[m+15],22,1236535329),u=v(u,c,_,f,l[m+1],5,-165796510),f=v(f,u,c,_,l[m+6],9,-1069501632),_=v(_,f,u,c,l[m+11],14,643717713),c=v(c,_,f,u,l[m+0],20,-373897302),u=v(u,c,_,f,l[m+5],5,-701558691),f=v(f,u,c,_,l[m+10],9,38016083),_=v(_,f,u,c,l[m+15],14,-660478335),c=v(c,_,f,u,l[m+4],20,-405537848),u=v(u,c,_,f,l[m+9],5,568446438),f=v(f,u,c,_,l[m+14],9,-1019803690),_=v(_,f,u,c,l[m+3],14,-187363961),c=v(c,_,f,u,l[m+8],20,1163531501),u=v(u,c,_,f,l[m+13],5,-1444681467),f=v(f,u,c,_,l[m+2],9,-51403784),_=v(_,f,u,c,l[m+7],14,1735328473),c=v(c,_,f,u,l[m+12],20,-1926607734),u=E(u,c,_,f,l[m+5],4,-378558),f=E(f,u,c,_,l[m+8],11,-2022574463),_=E(_,f,u,c,l[m+11],16,1839030562),c=E(c,_,f,u,l[m+14],23,-35309556),u=E(u,c,_,f,l[m+1],4,-1530992060),f=E(f,u,c,_,l[m+4],11,1272893353),_=E(_,f,u,c,l[m+7],16,-155497632),c=E(c,_,f,u,l[m+10],23,-1094730640),u=E(u,c,_,f,l[m+13],4,681279174),f=E(f,u,c,_,l[m+0],11,-358537222),_=E(_,f,u,c,l[m+3],16,-722521979),c=E(c,_,f,u,l[m+6],23,76029189),u=E(u,c,_,f,l[m+9],4,-640364487),f=E(f,u,c,_,l[m+12],11,-421815835),_=E(_,f,u,c,l[m+15],16,530742520),c=E(c,_,f,u,l[m+2],23,-995338651),u=g(u,c,_,f,l[m+0],6,-198630844),f=g(f,u,c,_,l[m+7],10,1126891415),_=g(_,f,u,c,l[m+14],15,-1416354905),c=g(c,_,f,u,l[m+5],21,-57434055),u=g(u,c,_,f,l[m+12],6,1700485571),f=g(f,u,c,_,l[m+3],10,-1894986606),_=g(_,f,u,c,l[m+10],15,-1051523),c=g(c,_,f,u,l[m+1],21,-2054922799),u=g(u,c,_,f,l[m+8],6,1873313359),f=g(f,u,c,_,l[m+15],10,-30611744),_=g(_,f,u,c,l[m+6],15,-1560198380),c=g(c,_,f,u,l[m+13],21,1309151649),u=g(u,c,_,f,l[m+4],6,-145523070),f=g(f,u,c,_,l[m+11],10,-1120210379),_=g(_,f,u,c,l[m+2],15,718787259),c=g(c,_,f,u,l[m+9],21,-343485551),u=u+A>>>0,c=c+$>>>0,_=_+x>>>0,f=f+O>>>0}return e.endian([u,c,_,f])};s._ff=function(r,o,l,d,u,c,_){var f=r+(o&l|~o&d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},s._gg=function(r,o,l,d,u,c,_){var f=r+(o&d|l&~d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},s._hh=function(r,o,l,d,u,c,_){var f=r+(o^l^d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},s._ii=function(r,o,l,d,u,c,_){var f=r+(l^(o|~d))+(u>>>0)+_;return(f<<c|f>>>32-c)+o},s._blocksize=16,s._digestsize=16,_s.exports=function(r,o){if(r==null)throw new Error("Illegal argument "+r);var l=e.wordsToBytes(s(r,o));return o&&o.asBytes?l:o&&o.asString?n.bytesToString(l):e.bytesToHex(l)}})();var pa=_s.exports;const va=Wt(pa);function Ea(e){return[...e].reduce((t,i)=>Math.imul(31,t)+i.charCodeAt(0)|0,0)}function ya(e){me(e,"svelte-1rap1nb",".Column.svelte-1rap1nb{height:100%;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.Column.importanceColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.Column.statusColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}}")}function Ta(e){let t,i,n;const s=e[2].default,r=Rt(s,e,e[1],null);return{c(){t=R("div"),r&&r.c(),y(t,"class",i="Column "+e[0]+" svelte-1rap1nb")},m(o,l){C(o,t,l),r&&r.m(t,null),n=!0},p(o,[l]){r&&r.p&&(!n||l&2)&&Dt(r,s,o,o[1],n?It(s,o[1],l,null):wt(o[1]),null),(!n||l&1&&i!==(i="Column "+o[0]+" svelte-1rap1nb"))&&y(t,"class",i)},i(o){n||(b(r,o),n=!0)},o(o){L(r,o),n=!1},d(o){o&&k(t),r&&r.d(o)}}}function ba(e,t,i){let{$$slots:n={},$$scope:s}=t,{className:r=""}=t;return e.$$set=o=>{"className"in o&&i(0,r=o.className),"$$scope"in o&&i(1,s=o.$$scope)},[r,s,n]}class Qt extends ue{constructor(t){super(),le(this,t,ba,Ta,oe,{className:0},ya)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}}ae(Qt,{className:{}},["default"],[],!0);function La(e){me(e,"svelte-1xxfpqg",`.Tag.svelte-1xxfpqg{box-sizing:border-box;display:inline-flex;color:var(--main-textcolor);align-items:center;justify-content:center;font-size:13px;font-weight:bold;line-height:20px;padding:2px 6px;margin-right:6px;margin-top:2px;border-radius:69px}.empty.svelte-1xxfpqg{display:none}.Tag.svelte-1xxfpqg:before{font-family:"la-icon-font"}.SLA.svelte-1xxfpqg{border:1px solid var(--main-lighter-textcolor);border-radius:4px;color:var(--main-lighter-textcolor)
11
- }@media(min-width: 768px){.Tag.svelte-1xxfpqg{font-size:12px}}`)}function Aa(e){let t,i;return{c(){t=R("span"),i=ne(e[1]),y(t,"class","text")},m(n,s){C(n,t,s),T(t,i)},p(n,s){s&2&&_e(i,n[1])},i:q,o:q,d(n){n&&k(t)}}}function Oa(e){let t,i,n,s,r;const o=[Ia,Ra],l=[];function d(u,c){return c&2&&(t=null),t==null&&(t=!isNaN(u[1].getTime())),t?0:1}return i=d(e,-1),n=l[i]=o[i](e),{c(){n.c(),s=st()},m(u,c){l[i].m(u,c),C(u,s,c),r=!0},p(u,c){let _=i;i=d(u,c),i===_?l[i].p(u,c):(ye(),L(l[_],1,1,()=>{l[_]=null}),Te(),n=l[i],n?n.p(u,c):(n=l[i]=o[i](u),n.c()),b(n,1),n.m(s.parentNode,s))},i(u){r||(b(n),r=!0)},o(u){L(n),r=!1},d(u){u&&k(s),l[i].d(u)}}}function Ra(e){let t,i=e[4]("Invalid data")+"",n;return{c(){t=R("span"),n=ne(i),y(t,"class","invalid")},m(s,r){C(s,t,r),T(t,n)},p(s,r){r&16&&i!==(i=s[4]("Invalid data")+"")&&_e(n,i)},i:q,o:q,d(s){s&&k(t)}}}function Ia(e){let t,i;return t=new Ci({props:{style:e[3],timestamp:e[1],format:ls(),relative:!0}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&8&&(r.style=n[3]),s&2&&(r.timestamp=n[1]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Da(e){let t,i,n,s,r,o;const l=e[6].default,d=Rt(l,e,e[5],null),u=[Oa,Aa],c=[];function _(f,m){return f[1]instanceof Date?0:1}return n=_(e),s=c[n]=u[n](e),{c(){t=R("div"),d&&d.c(),i=W(),s.c(),y(t,"class",r="Tag "+e[0]+" svelte-1xxfpqg"),y(t,"style",e[2])},m(f,m){C(f,t,m),d&&d.m(t,null),T(t,i),c[n].m(t,null),o=!0},p(f,[m]){d&&d.p&&(!o||m&32)&&Dt(d,l,f,f[5],o?It(l,f[5],m,null):wt(f[5]),null);let p=n;n=_(f),n===p?c[n].p(f,m):(ye(),L(c[p],1,1,()=>{c[p]=null}),Te(),s=c[n],s?s.p(f,m):(s=c[n]=u[n](f),s.c()),b(s,1),s.m(t,null)),(!o||m&1&&r!==(r="Tag "+f[0]+" svelte-1xxfpqg"))&&y(t,"class",r),(!o||m&4)&&y(t,"style",f[2])},i(f){o||(b(d,f),b(s),o=!0)},o(f){L(d,f),L(s),o=!1},d(f){f&&k(t),d&&d.d(f),c[n].d()}}}function wa(e,t,i){let n;Z(e,Re,c=>i(4,n=c));let{$$slots:s={},$$scope:r}=t,{text:o}=t,{className:l=""}=t,{style:d=""}=t,{timeStyle:u=""}=t;return e.$$set=c=>{"text"in c&&i(1,o=c.text),"className"in c&&i(0,l=c.className),"style"in c&&i(2,d=c.style),"timeStyle"in c&&i(3,u=c.timeStyle),"$$scope"in c&&i(5,r=c.$$scope)},e.$$.update=()=>{e.$$.dirty&3&&o===""&&i(0,l="empty")},[l,o,d,u,n,r,s]}class ut extends ue{constructor(t){super(),le(this,t,wa,Da,oe,{text:1,className:0,style:2,timeStyle:3},La)}get text(){return this.$$.ctx[1]}set text(t){this.$$set({text:t}),D()}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),D()}get timeStyle(){return this.$$.ctx[3]}set timeStyle(t){this.$$set({timeStyle:t}),D()}}ae(ut,{text:{},className:{},style:{},timeStyle:{}},["default"],[],!0);function Pa(e){me(e,"svelte-1ify73x","div.Tag.IconTag{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:4px}.IconTag .Icon{display:flex;align-items:center;justify-content:center;font-size:16px;width:16px;height:16px}div.Tag.IconTag.Department{background-color:var(--department-bg-color);color:white}")}function xa(e){let t,i;return t=new Pe({props:{iconLaClassName:e[2]}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&4&&(r.iconLaClassName=n[2]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function ka(e){let t,i;return t=new ut({props:{text:e[0],className:e[3],style:e[1],$$slots:{default:[xa]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,[s]){const r={};s&1&&(r.text=n[0]),s&2&&(r.style=n[1]),s&36&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Ca(e,t,i){let{text:n}=t,{className:s=""}=t,{style:r=""}=t,{iconLaClassName:o}=t,l=`IconTag ${s}`;return e.$$set=d=>{"text"in d&&i(0,n=d.text),"className"in d&&i(4,s=d.className),"style"in d&&i(1,r=d.style),"iconLaClassName"in d&&i(2,o=d.iconLaClassName)},[n,r,o,l,s]}class xt extends ue{constructor(t){super(),le(this,t,Ca,ka,oe,{text:0,className:4,style:1,iconLaClassName:2},Pa)}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),D()}get className(){return this.$$.ctx[4]}set className(t){this.$$set({className:t}),D()}get style(){return this.$$.ctx[1]}set style(t){this.$$set({style:t}),D()}get iconLaClassName(){return this.$$.ctx[2]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),D()}}ae(xt,{text:{},className:{},style:{},iconLaClassName:{}},[],[],!0);function Va(e){me(e,"svelte-1wen6ck",".Column.userColumn{display:flex;align-items:center}.Tag.CompanyTag{background-color:var(--department-bg-color);color:var(--main-textcolor)}div.Tag.NoCompanyTag{color:var(--main-lighter-textcolor);border:1px solid var(--main-lighter-textcolor)}.avatar.svelte-1wen6ck{display:none}.companyTag.svelte-1wen6ck{display:none}.name.svelte-1wen6ck{font-size:14px;line-height:20px;font-weight:bold;padding-right:8px;margin-right:6px;position:relative}.name.svelte-1wen6ck::after{content:'';display:block;height:14px;width:1px;background-color:var(--main-textcolor);position:absolute;right:0;top:15%}.no.svelte-1wen6ck{font-weight:400;color:var(--main-lighter-textcolor)}.email.svelte-1wen6ck{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texts.svelte-1wen6ck{display:flex;flex-direction:row;justify-content:flex-start;overflow:hidden}@media(min-width: 900px){.avatar.svelte-1wen6ck{display:flex;align-items:center;justify-content:center;margin:0 10px;width:40px;height:40px}.name.svelte-1wen6ck{padding:0;border:none;font-size:13px}.name.svelte-1wen6ck::after{display:none}.email.svelte-1wen6ck{font-size:13px;padding:0}.companyTag.svelte-1wen6ck{display:flex}.texts.svelte-1wen6ck{display:flex;flex-direction:column;justify-content:space-around}}")}function _n(e,t,i){const n=e.slice();return n[5]=t[i],n}function fn(e){let t,i;const n=[e[3]];let s={};for(let r=0;r<n.length;r+=1)s=Tt(s,n[r]);return t=new cs({props:s}),{c(){G(t.$$.fragment)},m(r,o){M(t,r,o),i=!0},p(r,o){const l=o&8?Rn(n,[qs(r[3])]):{};t.$set(l)},i(r){i||(b(t.$$.fragment,r),i=!0)},o(r){L(t.$$.fragment,r),i=!1},d(r){B(t,r)}}}function mn(e){let t,i,n;var s=e[2];function r(o,l){return{props:{size:"30"}}}return s&&(t=Gi(s,r())),{c(){t&&G(t.$$.fragment),i=st()},m(o,l){t&&M(t,o,l),C(o,i,l),n=!0},p(o,l){if(l&4&&s!==(s=o[2])){if(t){ye();const d=t;L(d.$$.fragment,1,0,()=>{B(d,1)}),Te()}s?(t=Gi(s,r()),G(t.$$.fragment),b(t.$$.fragment,1),M(t,i.parentNode,i)):t=null}},i(o){n||(t&&b(t.$$.fragment,o),n=!0)},o(o){t&&L(t.$$.fragment,o),n=!1},d(o){o&&k(i),t&&B(t,o)}}}function hn(e){let t,i;return t=new ut({props:{text:e[5],className:"UserGroupTag"}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.text=n[5]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function $a(e){let t,i=e[3].name,n,s,r,o,l=(e[5]!==void 0?e[5]:e[4]("No name"))+"",d,u,c,_,f=(e[0].emails.length!==0?e[0].emails[0]:e[4]("No email"))+"",m,p,v,E,g,A,$,x=fn(e),O=e[2]!==null&&mn(e);g=new xt({props:{text:e[0].company==="Y"?"Company":e[4]("No Company"),className:e[0].company==="Y"?"CompanyTag":"NoCompanyTag",iconLaClassName:"la-companies"}});let J=Se(e[0].groupnames),X=[];for(let V=0;V<J.length;V+=1)X[V]=hn(_n(e,J,V));const se=V=>L(X[V],1,1,()=>{X[V]=null});return{c(){t=R("div"),x.c(),n=W(),O&&O.c(),s=W(),r=R("div"),o=R("div"),d=ne(l),c=W(),_=R("div"),m=ne(f),v=W(),E=R("div"),G(g.$$.fragment),A=W();for(let V=0;V<X.length;V+=1)X[V].c();y(t,"class","avatar svelte-1wen6ck"),y(o,"class",u=he(e[5]?"name":"no name")+" svelte-1wen6ck"),y(_,"class",p=he(e[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"),y(E,"class","companyTag svelte-1wen6ck"),y(r,"class","texts svelte-1wen6ck")},m(V,H){C(V,t,H),x.m(t,null),C(V,n,H),O&&O.m(V,H),C(V,s,H),C(V,r,H),T(r,o),T(o,d),T(r,c),T(r,_),T(_,m),T(r,v),T(r,E),M(g,E,null),T(E,A);for(let z=0;z<X.length;z+=1)X[z]&&X[z].m(E,null);$=!0},p(V,H){H&8&&oe(i,i=V[3].name)?(ye(),L(x,1,1,q),Te(),x=fn(V),x.c(),b(x,1),x.m(t,null)):x.p(V,H),V[2]!==null?O?(O.p(V,H),H&4&&b(O,1)):(O=mn(V),O.c(),b(O,1),O.m(s.parentNode,s)):O&&(ye(),L(O,1,1,()=>{O=null}),Te()),(!$||H&48)&&l!==(l=(V[5]!==void 0?V[5]:V[4]("No name"))+"")&&_e(d,l),(!$||H&32&&u!==(u=he(V[5]?"name":"no name")+" svelte-1wen6ck"))&&y(o,"class",u),(!$||H&17)&&f!==(f=(V[0].emails.length!==0?V[0].emails[0]:V[4]("No email"))+"")&&_e(m,f),(!$||H&1&&p!==(p=he(V[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"))&&y(_,"class",p);const z={};if(H&17&&(z.text=V[0].company==="Y"?"Company":V[4]("No Company")),H&1&&(z.className=V[0].company==="Y"?"CompanyTag":"NoCompanyTag"),g.$set(z),H&1){J=Se(V[0].groupnames);let de;for(de=0;de<J.length;de+=1){const Le=_n(V,J,de);X[de]?(X[de].p(Le,H),b(X[de],1)):(X[de]=hn(Le),X[de].c(),b(X[de],1),X[de].m(E,null))}for(ye(),de=J.length;de<X.length;de+=1)se(de);Te()}},i(V){if(!$){b(x),b(O),b(g.$$.fragment,V);for(let H=0;H<J.length;H+=1)b(X[H]);$=!0}},o(V){L(x),L(O),L(g.$$.fragment,V),X=X.filter(Boolean);for(let H=0;H<X.length;H+=1)L(X[H]);$=!1},d(V){V&&(k(t),k(n),k(s),k(r)),x.d(V),O&&O.d(V),B(g),zt(X,V)}}}function Sa(e){let t,i;return t=new Qt({props:{className:e[1],$$slots:{default:[$a]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,[s]){const r={};s&2&&(r.className=n[1]),s&4157&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Na(e,t,i){if(!e)return(i[0]+i[1]).toUpperCase();let n=e[0];return t&&(n+=t[0]),n}function Ha(e,t,i){let n,s,r;Z(e,Re,m=>i(4,r=m));let{row:o}=t,{className:l="userColumn"}=t,d=null;f(o.countrycode);function u(m,p,v){if(!m)return v;let E=m+" "+p;return E.trim()||(E=v),E}function c(m,p){let v=m;return v||(v="https://www.gravatar.com/avatar/"+va(p[0]??"")+"?s=200&d=404"),v}function _(m,p,v,E){let g;E?g=Ea(u(m,p,E)+v):g=Math.floor(Math.random()*16777215);let A=(g&16711680)>>16,$=(g&65280)>>8,x=g&255;return A+$+x<150&&(A=150),A+$+x>400&&(A=0),`rgb(${A},${$},${x})`}function f(m){if(m!=null&&m!==""&&m.length===2){const v="/node_modules/svelte-flag-icons/dist/"+(m[0].toUpperCase()+m[1].toLowerCase())+".svelte",E=Object.assign({"/node_modules/svelte-flag-icons/dist/Ac.svelte":()=>a(()=>import("./Ac.js"),[]),"/node_modules/svelte-flag-icons/dist/Ad.svelte":()=>a(()=>import("./Ad.js"),[]),"/node_modules/svelte-flag-icons/dist/Ae.svelte":()=>a(()=>import("./Ae.js"),[]),"/node_modules/svelte-flag-icons/dist/Af.svelte":()=>a(()=>import("./Af2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ag.svelte":()=>a(()=>import("./Ag.js"),[]),"/node_modules/svelte-flag-icons/dist/Ai.svelte":()=>a(()=>import("./Ai.js"),[]),"/node_modules/svelte-flag-icons/dist/Al.svelte":()=>a(()=>import("./Al.js"),[]),"/node_modules/svelte-flag-icons/dist/Am.svelte":()=>a(()=>import("./Am2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ao.svelte":()=>a(()=>import("./Ao.js"),[]),"/node_modules/svelte-flag-icons/dist/Aq.svelte":()=>a(()=>import("./Aq.js"),[]),"/node_modules/svelte-flag-icons/dist/Ar.svelte":()=>a(()=>import("./Ar2.js"),[]),"/node_modules/svelte-flag-icons/dist/Arab.svelte":()=>a(()=>import("./Arab.js"),[]),"/node_modules/svelte-flag-icons/dist/As.svelte":()=>a(()=>import("./As.js"),[]),"/node_modules/svelte-flag-icons/dist/At.svelte":()=>a(()=>import("./At.js"),[]),"/node_modules/svelte-flag-icons/dist/Au.svelte":()=>a(()=>import("./Au.js"),[]),"/node_modules/svelte-flag-icons/dist/Aw.svelte":()=>a(()=>import("./Aw.js"),[]),"/node_modules/svelte-flag-icons/dist/Ax.svelte":()=>a(()=>import("./Ax.js"),[]),"/node_modules/svelte-flag-icons/dist/Az.svelte":()=>a(()=>import("./Az2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ba.svelte":()=>a(()=>import("./Ba.js"),[]),"/node_modules/svelte-flag-icons/dist/Bb.svelte":()=>a(()=>import("./Bb.js"),[]),"/node_modules/svelte-flag-icons/dist/Bd.svelte":()=>a(()=>import("./Bd.js"),[]),"/node_modules/svelte-flag-icons/dist/Be.svelte":()=>a(()=>import("./Be2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bf.svelte":()=>a(()=>import("./Bf.js"),[]),"/node_modules/svelte-flag-icons/dist/Bg.svelte":()=>a(()=>import("./Bg2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bh.svelte":()=>a(()=>import("./Bh.js"),[]),"/node_modules/svelte-flag-icons/dist/Bi.svelte":()=>a(()=>import("./Bi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bj.svelte":()=>a(()=>import("./Bj.js"),[]),"/node_modules/svelte-flag-icons/dist/Bl.svelte":()=>a(()=>import("./Bl.js"),[]),"/node_modules/svelte-flag-icons/dist/Bm.svelte":()=>a(()=>import("./Bm2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bn.svelte":()=>a(()=>import("./Bn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bo.svelte":()=>a(()=>import("./Bo2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bq.svelte":()=>a(()=>import("./Bq.js"),[]),"/node_modules/svelte-flag-icons/dist/Br.svelte":()=>a(()=>import("./Br2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bs.svelte":()=>a(()=>import("./Bs2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bt.svelte":()=>a(()=>import("./Bt.js"),[]),"/node_modules/svelte-flag-icons/dist/Bv.svelte":()=>a(()=>import("./Bv.js"),[]),"/node_modules/svelte-flag-icons/dist/Bw.svelte":()=>a(()=>import("./Bw.js"),[]),"/node_modules/svelte-flag-icons/dist/By.svelte":()=>a(()=>import("./By.js"),[]),"/node_modules/svelte-flag-icons/dist/Bz.svelte":()=>a(()=>import("./Bz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ca.svelte":()=>a(()=>import("./Ca2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cc.svelte":()=>a(()=>import("./Cc.js"),[]),"/node_modules/svelte-flag-icons/dist/Cd.svelte":()=>a(()=>import("./Cd.js"),[]),"/node_modules/svelte-flag-icons/dist/Cefta.svelte":()=>a(()=>import("./Cefta.js"),[]),"/node_modules/svelte-flag-icons/dist/Cf.svelte":()=>a(()=>import("./Cf.js"),[]),"/node_modules/svelte-flag-icons/dist/Cg.svelte":()=>a(()=>import("./Cg.js"),[]),"/node_modules/svelte-flag-icons/dist/Ch.svelte":()=>a(()=>import("./Ch.js"),[]),"/node_modules/svelte-flag-icons/dist/Ci.svelte":()=>a(()=>import("./Ci.js"),[]),"/node_modules/svelte-flag-icons/dist/Ck.svelte":()=>a(()=>import("./Ck.js"),[]),"/node_modules/svelte-flag-icons/dist/Cl.svelte":()=>a(()=>import("./Cl.js"),[]),"/node_modules/svelte-flag-icons/dist/Cm.svelte":()=>a(()=>import("./Cm.js"),[]),"/node_modules/svelte-flag-icons/dist/Cn.svelte":()=>a(()=>import("./Cn.js"),[]),"/node_modules/svelte-flag-icons/dist/Co.svelte":()=>a(()=>import("./Co.js"),[]),"/node_modules/svelte-flag-icons/dist/Cp.svelte":()=>a(()=>import("./Cp.js"),[]),"/node_modules/svelte-flag-icons/dist/Cr.svelte":()=>a(()=>import("./Cr.js"),[]),"/node_modules/svelte-flag-icons/dist/Cu.svelte":()=>a(()=>import("./Cu.js"),[]),"/node_modules/svelte-flag-icons/dist/Cv.svelte":()=>a(()=>import("./Cv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cw.svelte":()=>a(()=>import("./Cw.js"),[]),"/node_modules/svelte-flag-icons/dist/Cx.svelte":()=>a(()=>import("./Cx.js"),[]),"/node_modules/svelte-flag-icons/dist/Cy.svelte":()=>a(()=>import("./Cy2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cz.svelte":()=>a(()=>import("./Cz.js"),[]),"/node_modules/svelte-flag-icons/dist/De.svelte":()=>a(()=>import("./De2.js"),[]),"/node_modules/svelte-flag-icons/dist/Dg.svelte":()=>a(()=>import("./Dg.js"),[]),"/node_modules/svelte-flag-icons/dist/Dj.svelte":()=>a(()=>import("./Dj.js"),[]),"/node_modules/svelte-flag-icons/dist/Dk.svelte":()=>a(()=>import("./Dk.js"),[]),"/node_modules/svelte-flag-icons/dist/Dm.svelte":()=>a(()=>import("./Dm.js"),[]),"/node_modules/svelte-flag-icons/dist/Do.svelte":()=>a(()=>import("./Do.js"),[]),"/node_modules/svelte-flag-icons/dist/Dz.svelte":()=>a(()=>import("./Dz.js"),[]),"/node_modules/svelte-flag-icons/dist/Eac.svelte":()=>a(()=>import("./Eac.js"),[]),"/node_modules/svelte-flag-icons/dist/Ec.svelte":()=>a(()=>import("./Ec.js"),[]),"/node_modules/svelte-flag-icons/dist/Ee.svelte":()=>a(()=>import("./Ee.js"),[]),"/node_modules/svelte-flag-icons/dist/Eg.svelte":()=>a(()=>import("./Eg.js"),[]),"/node_modules/svelte-flag-icons/dist/Eh.svelte":()=>a(()=>import("./Eh.js"),[]),"/node_modules/svelte-flag-icons/dist/Er.svelte":()=>a(()=>import("./Er.js"),[]),"/node_modules/svelte-flag-icons/dist/Es.svelte":()=>a(()=>import("./Es2.js"),[]),"/node_modules/svelte-flag-icons/dist/EsCt.svelte":()=>a(()=>import("./EsCt.js"),[]),"/node_modules/svelte-flag-icons/dist/EsGa.svelte":()=>a(()=>import("./EsGa.js"),[]),"/node_modules/svelte-flag-icons/dist/EsPv.svelte":()=>a(()=>import("./EsPv.js"),[]),"/node_modules/svelte-flag-icons/dist/Et.svelte":()=>a(()=>import("./Et2.js"),[]),"/node_modules/svelte-flag-icons/dist/Eu.svelte":()=>a(()=>import("./Eu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fi.svelte":()=>a(()=>import("./Fi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fj.svelte":()=>a(()=>import("./Fj.js"),[]),"/node_modules/svelte-flag-icons/dist/Fk.svelte":()=>a(()=>import("./Fk.js"),[]),"/node_modules/svelte-flag-icons/dist/Fm.svelte":()=>a(()=>import("./Fm.js"),[]),"/node_modules/svelte-flag-icons/dist/Fo.svelte":()=>a(()=>import("./Fo2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fr.svelte":()=>a(()=>import("./Fr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ga.svelte":()=>a(()=>import("./Ga2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gb.svelte":()=>a(()=>import("./Gb.js"),[]),"/node_modules/svelte-flag-icons/dist/GbEng.svelte":()=>a(()=>import("./GbEng.js"),[]),"/node_modules/svelte-flag-icons/dist/GbNir.svelte":()=>a(()=>import("./GbNir.js"),[]),"/node_modules/svelte-flag-icons/dist/GbSct.svelte":()=>a(()=>import("./GbSct.js"),[]),"/node_modules/svelte-flag-icons/dist/GbWls.svelte":()=>a(()=>import("./GbWls.js"),[]),"/node_modules/svelte-flag-icons/dist/Gd.svelte":()=>a(()=>import("./Gd2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ge.svelte":()=>a(()=>import("./Ge.js"),[]),"/node_modules/svelte-flag-icons/dist/Gf.svelte":()=>a(()=>import("./Gf.js"),[]),"/node_modules/svelte-flag-icons/dist/Gg.svelte":()=>a(()=>import("./Gg.js"),[]),"/node_modules/svelte-flag-icons/dist/Gh.svelte":()=>a(()=>import("./Gh.js"),[]),"/node_modules/svelte-flag-icons/dist/Gi.svelte":()=>a(()=>import("./Gi.js"),[]),"/node_modules/svelte-flag-icons/dist/Gl.svelte":()=>a(()=>import("./Gl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gm.svelte":()=>a(()=>import("./Gm.js"),[]),"/node_modules/svelte-flag-icons/dist/Gn.svelte":()=>a(()=>import("./Gn.js"),[]),"/node_modules/svelte-flag-icons/dist/Gp.svelte":()=>a(()=>import("./Gp.js"),[]),"/node_modules/svelte-flag-icons/dist/Gq.svelte":()=>a(()=>import("./Gq.js"),[]),"/node_modules/svelte-flag-icons/dist/Gr.svelte":()=>a(()=>import("./Gr.js"),[]),"/node_modules/svelte-flag-icons/dist/Gs.svelte":()=>a(()=>import("./Gs.js"),[]),"/node_modules/svelte-flag-icons/dist/Gt.svelte":()=>a(()=>import("./Gt.js"),[]),"/node_modules/svelte-flag-icons/dist/Gu.svelte":()=>a(()=>import("./Gu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gw.svelte":()=>a(()=>import("./Gw.js"),[]),"/node_modules/svelte-flag-icons/dist/Gy.svelte":()=>a(()=>import("./Gy.js"),[]),"/node_modules/svelte-flag-icons/dist/Hk.svelte":()=>a(()=>import("./Hk.js"),[]),"/node_modules/svelte-flag-icons/dist/Hm.svelte":()=>a(()=>import("./Hm.js"),[]),"/node_modules/svelte-flag-icons/dist/Hn.svelte":()=>a(()=>import("./Hn.js"),[]),"/node_modules/svelte-flag-icons/dist/Hr.svelte":()=>a(()=>import("./Hr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ht.svelte":()=>a(()=>import("./Ht2.js"),[]),"/node_modules/svelte-flag-icons/dist/Hu.svelte":()=>a(()=>import("./Hu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ic.svelte":()=>a(()=>import("./Ic.js"),[]),"/node_modules/svelte-flag-icons/dist/Icon.svelte":()=>a(()=>import("./Icon.js"),[]),"/node_modules/svelte-flag-icons/dist/Id.svelte":()=>a(()=>import("./Id2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ie.svelte":()=>a(()=>import("./Ie.js"),[]),"/node_modules/svelte-flag-icons/dist/Il.svelte":()=>a(()=>import("./Il.js"),[]),"/node_modules/svelte-flag-icons/dist/Im.svelte":()=>a(()=>import("./Im.js"),[]),"/node_modules/svelte-flag-icons/dist/In.svelte":()=>a(()=>import("./In.js"),[]),"/node_modules/svelte-flag-icons/dist/Io.svelte":()=>a(()=>import("./Io.js"),[]),"/node_modules/svelte-flag-icons/dist/Iq.svelte":()=>a(()=>import("./Iq.js"),[]),"/node_modules/svelte-flag-icons/dist/Ir.svelte":()=>a(()=>import("./Ir.js"),[]),"/node_modules/svelte-flag-icons/dist/Is.svelte":()=>a(()=>import("./Is2.js"),[]),"/node_modules/svelte-flag-icons/dist/It.svelte":()=>a(()=>import("./It2.js"),[]),"/node_modules/svelte-flag-icons/dist/Je.svelte":()=>a(()=>import("./Je.js"),[]),"/node_modules/svelte-flag-icons/dist/Jm.svelte":()=>a(()=>import("./Jm.js"),[]),"/node_modules/svelte-flag-icons/dist/Jo.svelte":()=>a(()=>import("./Jo.js"),[]),"/node_modules/svelte-flag-icons/dist/Jp.svelte":()=>a(()=>import("./Jp.js"),[]),"/node_modules/svelte-flag-icons/dist/Ke.svelte":()=>a(()=>import("./Ke.js"),[]),"/node_modules/svelte-flag-icons/dist/Kg.svelte":()=>a(()=>import("./Kg.js"),[]),"/node_modules/svelte-flag-icons/dist/Kh.svelte":()=>a(()=>import("./Kh.js"),[]),"/node_modules/svelte-flag-icons/dist/Ki.svelte":()=>a(()=>import("./Ki.js"),[]),"/node_modules/svelte-flag-icons/dist/Km.svelte":()=>a(()=>import("./Km2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kn.svelte":()=>a(()=>import("./Kn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kp.svelte":()=>a(()=>import("./Kp.js"),[]),"/node_modules/svelte-flag-icons/dist/Kr.svelte":()=>a(()=>import("./Kr.js"),[]),"/node_modules/svelte-flag-icons/dist/Kw.svelte":()=>a(()=>import("./Kw.js"),[]),"/node_modules/svelte-flag-icons/dist/Ky.svelte":()=>a(()=>import("./Ky2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kz.svelte":()=>a(()=>import("./Kz.js"),[]),"/node_modules/svelte-flag-icons/dist/La.svelte":()=>a(()=>import("./La.js"),[]),"/node_modules/svelte-flag-icons/dist/Lb.svelte":()=>a(()=>import("./Lb2.js"),[]),"/node_modules/svelte-flag-icons/dist/Lc.svelte":()=>a(()=>import("./Lc.js"),[]),"/node_modules/svelte-flag-icons/dist/Li.svelte":()=>a(()=>import("./Li.js"),[]),"/node_modules/svelte-flag-icons/dist/Lk.svelte":()=>a(()=>import("./Lk.js"),[]),"/node_modules/svelte-flag-icons/dist/Lr.svelte":()=>a(()=>import("./Lr.js"),[]),"/node_modules/svelte-flag-icons/dist/Ls.svelte":()=>a(()=>import("./Ls.js"),[]),"/node_modules/svelte-flag-icons/dist/Lt.svelte":()=>a(()=>import("./Lt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Lu.svelte":()=>a(()=>import("./Lu.js"),[]),"/node_modules/svelte-flag-icons/dist/Lv.svelte":()=>a(()=>import("./Lv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ly.svelte":()=>a(()=>import("./Ly.js"),[]),"/node_modules/svelte-flag-icons/dist/Ma.svelte":()=>a(()=>import("./Ma.js"),[]),"/node_modules/svelte-flag-icons/dist/Mc.svelte":()=>a(()=>import("./Mc.js"),[]),"/node_modules/svelte-flag-icons/dist/Md.svelte":()=>a(()=>import("./Md.js"),[]),"/node_modules/svelte-flag-icons/dist/Me.svelte":()=>a(()=>import("./Me2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mf.svelte":()=>a(()=>import("./Mf.js"),[]),"/node_modules/svelte-flag-icons/dist/Mg.svelte":()=>a(()=>import("./Mg.js"),[]),"/node_modules/svelte-flag-icons/dist/Mh.svelte":()=>a(()=>import("./Mh.js"),[]),"/node_modules/svelte-flag-icons/dist/Mk.svelte":()=>a(()=>import("./Mk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ml.svelte":()=>a(()=>import("./Ml2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mm.svelte":()=>a(()=>import("./Mm.js"),[]),"/node_modules/svelte-flag-icons/dist/Mn.svelte":()=>a(()=>import("./Mn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mo.svelte":()=>a(()=>import("./Mo.js"),[]),"/node_modules/svelte-flag-icons/dist/Mp.svelte":()=>a(()=>import("./Mp.js"),[]),"/node_modules/svelte-flag-icons/dist/Mq.svelte":()=>a(()=>import("./Mq.js"),[]),"/node_modules/svelte-flag-icons/dist/Mr.svelte":()=>a(()=>import("./Mr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ms.svelte":()=>a(()=>import("./Ms2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mt.svelte":()=>a(()=>import("./Mt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mu.svelte":()=>a(()=>import("./Mu.js"),[]),"/node_modules/svelte-flag-icons/dist/Mv.svelte":()=>a(()=>import("./Mv.js"),[]),"/node_modules/svelte-flag-icons/dist/Mw.svelte":()=>a(()=>import("./Mw.js"),[]),"/node_modules/svelte-flag-icons/dist/Mx.svelte":()=>a(()=>import("./Mx.js"),[]),"/node_modules/svelte-flag-icons/dist/My.svelte":()=>a(()=>import("./My2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mz.svelte":()=>a(()=>import("./Mz.js"),[]),"/node_modules/svelte-flag-icons/dist/Na.svelte":()=>a(()=>import("./Na.js"),[]),"/node_modules/svelte-flag-icons/dist/Nc.svelte":()=>a(()=>import("./Nc.js"),[]),"/node_modules/svelte-flag-icons/dist/Ne.svelte":()=>a(()=>import("./Ne2.js"),[]),"/node_modules/svelte-flag-icons/dist/Nf.svelte":()=>a(()=>import("./Nf.js"),[]),"/node_modules/svelte-flag-icons/dist/Ng.svelte":()=>a(()=>import("./Ng.js"),[]),"/node_modules/svelte-flag-icons/dist/Ni.svelte":()=>a(()=>import("./Ni.js"),[]),"/node_modules/svelte-flag-icons/dist/Nl.svelte":()=>a(()=>import("./Nl2.js"),[]),"/node_modules/svelte-flag-icons/dist/No.svelte":()=>a(()=>import("./No.js"),[]),"/node_modules/svelte-flag-icons/dist/Np.svelte":()=>a(()=>import("./Np.js"),[]),"/node_modules/svelte-flag-icons/dist/Nr.svelte":()=>a(()=>import("./Nr.js"),[]),"/node_modules/svelte-flag-icons/dist/Nu.svelte":()=>a(()=>import("./Nu.js"),[]),"/node_modules/svelte-flag-icons/dist/Nz.svelte":()=>a(()=>import("./Nz.js"),[]),"/node_modules/svelte-flag-icons/dist/Om.svelte":()=>a(()=>import("./Om.js"),[]),"/node_modules/svelte-flag-icons/dist/Pa.svelte":()=>a(()=>import("./Pa.js"),[]),"/node_modules/svelte-flag-icons/dist/Pe.svelte":()=>a(()=>import("./Pe.js"),[]),"/node_modules/svelte-flag-icons/dist/Pf.svelte":()=>a(()=>import("./Pf.js"),[]),"/node_modules/svelte-flag-icons/dist/Pg.svelte":()=>a(()=>import("./Pg.js"),[]),"/node_modules/svelte-flag-icons/dist/Ph.svelte":()=>a(()=>import("./Ph.js"),[]),"/node_modules/svelte-flag-icons/dist/Pk.svelte":()=>a(()=>import("./Pk.js"),[]),"/node_modules/svelte-flag-icons/dist/Pl.svelte":()=>a(()=>import("./Pl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Pm.svelte":()=>a(()=>import("./Pm.js"),[]),"/node_modules/svelte-flag-icons/dist/Pn.svelte":()=>a(()=>import("./Pn.js"),[]),"/node_modules/svelte-flag-icons/dist/Pr.svelte":()=>a(()=>import("./Pr.js"),[]),"/node_modules/svelte-flag-icons/dist/Ps.svelte":()=>a(()=>import("./Ps.js"),[]),"/node_modules/svelte-flag-icons/dist/Pt.svelte":()=>a(()=>import("./Pt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Pw.svelte":()=>a(()=>import("./Pw.js"),[]),"/node_modules/svelte-flag-icons/dist/Py.svelte":()=>a(()=>import("./Py.js"),[]),"/node_modules/svelte-flag-icons/dist/Qa.svelte":()=>a(()=>import("./Qa.js"),[]),"/node_modules/svelte-flag-icons/dist/Re.svelte":()=>a(()=>import("./Re.js"),[]),"/node_modules/svelte-flag-icons/dist/Ro.svelte":()=>a(()=>import("./Ro2.js"),[]),"/node_modules/svelte-flag-icons/dist/Rs.svelte":()=>a(()=>import("./Rs.js"),[]),"/node_modules/svelte-flag-icons/dist/Ru.svelte":()=>a(()=>import("./Ru2.js"),[]),"/node_modules/svelte-flag-icons/dist/Rw.svelte":()=>a(()=>import("./Rw2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sa.svelte":()=>a(()=>import("./Sa.js"),[]),"/node_modules/svelte-flag-icons/dist/Sb.svelte":()=>a(()=>import("./Sb.js"),[]),"/node_modules/svelte-flag-icons/dist/Sc.svelte":()=>a(()=>import("./Sc.js"),[]),"/node_modules/svelte-flag-icons/dist/Sd.svelte":()=>a(()=>import("./Sd2.js"),[]),"/node_modules/svelte-flag-icons/dist/Se.svelte":()=>a(()=>import("./Se2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sg.svelte":()=>a(()=>import("./Sg.js"),[]),"/node_modules/svelte-flag-icons/dist/Sh.svelte":()=>a(()=>import("./Sh.js"),[]),"/node_modules/svelte-flag-icons/dist/Si.svelte":()=>a(()=>import("./Si2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sj.svelte":()=>a(()=>import("./Sj.js"),[]),"/node_modules/svelte-flag-icons/dist/Sk.svelte":()=>a(()=>import("./Sk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sl.svelte":()=>a(()=>import("./Sl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sm.svelte":()=>a(()=>import("./Sm.js"),[]),"/node_modules/svelte-flag-icons/dist/Sn.svelte":()=>a(()=>import("./Sn.js"),[]),"/node_modules/svelte-flag-icons/dist/So.svelte":()=>a(()=>import("./So.js"),[]),"/node_modules/svelte-flag-icons/dist/Sr.svelte":()=>a(()=>import("./Sr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ss.svelte":()=>a(()=>import("./Ss2.js"),[]),"/node_modules/svelte-flag-icons/dist/St.svelte":()=>a(()=>import("./St.js"),[]),"/node_modules/svelte-flag-icons/dist/Sv.svelte":()=>a(()=>import("./Sv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sx.svelte":()=>a(()=>import("./Sx.js"),[]),"/node_modules/svelte-flag-icons/dist/Sy.svelte":()=>a(()=>import("./Sy.js"),[]),"/node_modules/svelte-flag-icons/dist/Sz.svelte":()=>a(()=>import("./Sz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ta.svelte":()=>a(()=>import("./Ta2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tc.svelte":()=>a(()=>import("./Tc.js"),[]),"/node_modules/svelte-flag-icons/dist/Td.svelte":()=>a(()=>import("./Td.js"),[]),"/node_modules/svelte-flag-icons/dist/Tf.svelte":()=>a(()=>import("./Tf.js"),[]),"/node_modules/svelte-flag-icons/dist/Tg.svelte":()=>a(()=>import("./Tg2.js"),[]),"/node_modules/svelte-flag-icons/dist/Th.svelte":()=>a(()=>import("./Th2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tj.svelte":()=>a(()=>import("./Tj.js"),[]),"/node_modules/svelte-flag-icons/dist/Tk.svelte":()=>a(()=>import("./Tk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tl.svelte":()=>a(()=>import("./Tl.js"),[]),"/node_modules/svelte-flag-icons/dist/Tm.svelte":()=>a(()=>import("./Tm.js"),[]),"/node_modules/svelte-flag-icons/dist/Tn.svelte":()=>a(()=>import("./Tn.js"),[]),"/node_modules/svelte-flag-icons/dist/To.svelte":()=>a(()=>import("./To.js"),[]),"/node_modules/svelte-flag-icons/dist/Tr.svelte":()=>a(()=>import("./Tr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tt.svelte":()=>a(()=>import("./Tt.js"),[]),"/node_modules/svelte-flag-icons/dist/Tv.svelte":()=>a(()=>import("./Tv.js"),[]),"/node_modules/svelte-flag-icons/dist/Tw.svelte":()=>a(()=>import("./Tw.js"),[]),"/node_modules/svelte-flag-icons/dist/Tz.svelte":()=>a(()=>import("./Tz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ua.svelte":()=>a(()=>import("./Ua.js"),[]),"/node_modules/svelte-flag-icons/dist/Ug.svelte":()=>a(()=>import("./Ug.js"),[]),"/node_modules/svelte-flag-icons/dist/Um.svelte":()=>a(()=>import("./Um.js"),[]),"/node_modules/svelte-flag-icons/dist/Un.svelte":()=>a(()=>import("./Un.js"),[]),"/node_modules/svelte-flag-icons/dist/Us.svelte":()=>a(()=>import("./Us.js"),[]),"/node_modules/svelte-flag-icons/dist/Uy.svelte":()=>a(()=>import("./Uy.js"),[]),"/node_modules/svelte-flag-icons/dist/Uz.svelte":()=>a(()=>import("./Uz2.js"),[]),"/node_modules/svelte-flag-icons/dist/Va.svelte":()=>a(()=>import("./Va.js"),[]),"/node_modules/svelte-flag-icons/dist/Vc.svelte":()=>a(()=>import("./Vc.js"),[]),"/node_modules/svelte-flag-icons/dist/Ve.svelte":()=>a(()=>import("./Ve.js"),[]),"/node_modules/svelte-flag-icons/dist/Vg.svelte":()=>a(()=>import("./Vg.js"),[]),"/node_modules/svelte-flag-icons/dist/Vi.svelte":()=>a(()=>import("./Vi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Vn.svelte":()=>a(()=>import("./Vn.js"),[]),"/node_modules/svelte-flag-icons/dist/Vu.svelte":()=>a(()=>import("./Vu.js"),[]),"/node_modules/svelte-flag-icons/dist/Wf.svelte":()=>a(()=>import("./Wf.js"),[]),"/node_modules/svelte-flag-icons/dist/Ws.svelte":()=>a(()=>import("./Ws.js"),[]),"/node_modules/svelte-flag-icons/dist/Xk.svelte":()=>a(()=>import("./Xk.js"),[]),"/node_modules/svelte-flag-icons/dist/Xx.svelte":()=>a(()=>import("./Xx.js"),[]),"/node_modules/svelte-flag-icons/dist/Ye.svelte":()=>a(()=>import("./Ye.js"),[]),"/node_modules/svelte-flag-icons/dist/Yt.svelte":()=>a(()=>import("./Yt.js"),[]),"/node_modules/svelte-flag-icons/dist/Za.svelte":()=>a(()=>import("./Za.js"),[]),"/node_modules/svelte-flag-icons/dist/Zm.svelte":()=>a(()=>import("./Zm.js"),[]),"/node_modules/svelte-flag-icons/dist/Zw.svelte":()=>a(()=>import("./Zw.js"),[])});E[v]&&E[v]().then(g=>{i(2,d=g.default)})}}return e.$$set=m=>{"row"in m&&i(0,o=m.row),"className"in m&&i(1,l=m.className)},e.$$.update=()=>{e.$$.dirty&1&&i(5,n=u(o.firstname,o.lastname,o.systemName)),e.$$.dirty&1&&i(3,s={bgColor:_(o.firstname,o.lastname,o.emails,o.systemName),name:u(o.firstname,o.lastname,o.systemName),src:c(o.avatarUrl,o.emails),initials:Na(o.firstname,o.lastname,o.systemName)})},[o,l,d,s,r,n]}class hs extends ue{constructor(t){super(),le(this,t,Ha,Sa,oe,{row:0,className:1},Va)}get row(){return this.$$.ctx[0]}set row(t){this.$$set({row:t}),D()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),D()}}ae(hs,{row:{},className:{}},[],[],!0);function Ma(e){me(e,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function Ba(e){let t,i=e[4]("Invalid data")+"",n;return{c(){t=R("span"),n=ne(i),y(t,"class","invalid svelte-hsbbji")},m(s,r){C(s,t,r),T(t,n)},p(s,r){r&16&&i!==(i=s[4]("Invalid data")+"")&&_e(n,i)},i:q,o:q,d(s){s&&k(t)}}}function Fa(e){let t,i;return t=new Ci({props:{style:e[2],timestamp:e[0],format:e[1],relative:e[3]}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&4&&(r.style=n[2]),s&1&&(r.timestamp=n[0]),s&2&&(r.format=n[1]),s&8&&(r.relative=n[3]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Ga(e){let t,i,n,s,r;const o=[Fa,Ba],l=[];function d(u,c){return c&1&&(i=null),i==null&&(i=u[0]instanceof Date&&!isNaN(u[0].getTime())),i?0:1}return n=d(e,-1),s=l[n]=o[n](e),{c(){t=R("div"),s.c(),y(t,"class","Date svelte-hsbbji")},m(u,c){C(u,t,c),l[n].m(t,null),r=!0},p(u,[c]){let _=n;n=d(u,c),n===_?l[n].p(u,c):(ye(),L(l[_],1,1,()=>{l[_]=null}),Te(),s=l[n],s?s.p(u,c):(s=l[n]=o[n](u),s.c()),b(s,1),s.m(t,null))},i(u){r||(b(s),r=!0)},o(u){L(s),r=!1},d(u){u&&k(t),l[n].d()}}}function Ua(e,t,i){let n;Z(e,Re,d=>i(4,n=d));let{data:s}=t,{format:r=ls()}=t,{style:o=""}=t,{relative:l=!1}=t;return e.$$set=d=>{"data"in d&&i(0,s=d.data),"format"in d&&i(1,r=d.format),"style"in d&&i(2,o=d.style),"relative"in d&&i(3,l=d.relative)},[s,r,o,l,n]}class Ti extends ue{constructor(t){super(),le(this,t,Ua,Ga,oe,{data:0,format:1,style:2,relative:3},Ma)}get data(){return this.$$.ctx[0]}set data(t){this.$$set({data:t}),D()}get format(){return this.$$.ctx[1]}set format(t){this.$$set({format:t}),D()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),D()}get relative(){return this.$$.ctx[3]}set relative(t){this.$$set({relative:t}),D()}}ae(Ti,{data:{},format:{},style:{},relative:{type:"Boolean"}},[],[],!0);function ja(e){me(e,"svelte-1q9wgt3",".IconWrapper.svelte-1q9wgt3{display:flex;justify-content:center;align-items:center;margin:4px 6px}.CombinedTag.svelte-1q9wgt3{display:inline-flex;flex-direction:row;border-radius:4px;margin-top:2px;margin-right:6px;padding-right:0}.Pending.svelte-1q9wgt3{background-color:var(--ok-color)}.Overdue.svelte-1q9wgt3{background-color:var(--notif-error-color)}")}function za(e){let t,i,n,s;i=new Pe({props:{iconLaClassName:e[2]}});const r=e[7].default,o=Rt(r,e,e[6],null);return{c(){t=R("div"),G(i.$$.fragment),n=W(),o&&o.c(),y(t,"class","IconWrapper svelte-1q9wgt3")},m(l,d){C(l,t,d),M(i,t,null),C(l,n,d),o&&o.m(l,d),s=!0},p(l,d){const u={};d&4&&(u.iconLaClassName=l[2]),i.$set(u),o&&o.p&&(!s||d&64)&&Dt(o,r,l,l[6],s?It(r,l[6],d,null):wt(l[6]),null)},i(l){s||(b(i.$$.fragment,l),b(o,l),s=!0)},o(l){L(i.$$.fragment,l),L(o,l),s=!1},d(l){l&&(k(t),k(n)),B(i),o&&o.d(l)}}}function Ka(e){let t,i;return t=new xt({props:{style:e[4],text:e[0],iconLaClassName:e[2],className:"Combined"}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&16&&(r.style=n[4]),s&1&&(r.text=n[0]),s&4&&(r.iconLaClassName=n[2]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Wa(e){let t,i,n,s,r,o,l;const d=[Ka,za],u=[];function c(_,f){return _[0]!==""?0:1}return i=c(e),n=u[i]=d[i](e),r=new ut({props:{style:e[5],text:e[1]}}),{c(){t=R("div"),n.c(),s=W(),G(r.$$.fragment),y(t,"class",o=he(`CombinedTag ${e[3]}`)+" svelte-1q9wgt3")},m(_,f){C(_,t,f),u[i].m(t,null),T(t,s),M(r,t,null),l=!0},p(_,[f]){let m=i;i=c(_),i===m?u[i].p(_,f):(ye(),L(u[m],1,1,()=>{u[m]=null}),Te(),n=u[i],n?n.p(_,f):(n=u[i]=d[i](_),n.c()),b(n,1),n.m(t,s));const p={};f&32&&(p.style=_[5]),f&2&&(p.text=_[1]),r.$set(p),(!l||f&8&&o!==(o=he(`CombinedTag ${_[3]}`)+" svelte-1q9wgt3"))&&y(t,"class",o)},i(_){l||(b(n),b(r.$$.fragment,_),l=!0)},o(_){L(n),L(r.$$.fragment,_),l=!1},d(_){_&&k(t),u[i].d(),B(r)}}}function Ja(e,t,i){let{$$slots:n={},$$scope:s}=t,{iconText:r=""}=t,{tagText:o}=t,{iconLaClassName:l}=t,{className:d}=t,{iconTagStyles:u}=t,{tagStyles:c}=t;return e.$$set=_=>{"iconText"in _&&i(0,r=_.iconText),"tagText"in _&&i(1,o=_.tagText),"iconLaClassName"in _&&i(2,l=_.iconLaClassName),"className"in _&&i(3,d=_.className),"iconTagStyles"in _&&i(4,u=_.iconTagStyles),"tagStyles"in _&&i(5,c=_.tagStyles),"$$scope"in _&&i(6,s=_.$$scope)},[r,o,l,d,u,c,s,n]}class Vi extends ue{constructor(t){super(),le(this,t,Ja,Wa,oe,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},ja)}get iconText(){return this.$$.ctx[0]}set iconText(t){this.$$set({iconText:t}),D()}get tagText(){return this.$$.ctx[1]}set tagText(t){this.$$set({tagText:t}),D()}get iconLaClassName(){return this.$$.ctx[2]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),D()}get className(){return this.$$.ctx[3]}set className(t){this.$$set({className:t}),D()}get iconTagStyles(){return this.$$.ctx[4]}set iconTagStyles(t){this.$$set({iconTagStyles:t}),D()}get tagStyles(){return this.$$.ctx[5]}set tagStyles(t){this.$$set({tagStyles:t}),D()}}ae(Vi,{iconText:{},tagText:{},iconLaClassName:{},className:{},iconTagStyles:{},tagStyles:{}},["default"],[],!0);function Xa(e){let t,i;return t=new ut({props:{text:e[4]("No SLA"),className:"SLA"}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&16&&(r.text=n[4]("No SLA")),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Za(e){let t,i;return t=new Vi({props:{iconText:e[1],iconLaClassName:e[3].icon,tagText:e[0],className:e[3].className,iconTagStyles:"color: white",tagStyles:e[3].tagStyles}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&2&&(r.iconText=n[1]),s&8&&(r.iconLaClassName=n[3].icon),s&1&&(r.tagText=n[0]),s&8&&(r.className=n[3].className),s&8&&(r.tagStyles=n[3].tagStyles),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Ya(e){let t,i,n,s;const r=[Za,Xa],o=[];function l(d,u){return d[2]?0:1}return t=l(e),i=o[t]=r[t](e),{c(){i.c(),n=st()},m(d,u){o[t].m(d,u),C(d,n,u),s=!0},p(d,[u]){let c=t;t=l(d),t===c?o[t].p(d,u):(ye(),L(o[c],1,1,()=>{o[c]=null}),Te(),i=o[t],i?i.p(d,u):(i=o[t]=r[t](d),i.c()),b(i,1),i.m(n.parentNode,n))},i(d){s||(b(i),s=!0)},o(d){L(i),s=!1},d(d){d&&k(n),o[t].d(d)}}}function qa(e){return!e||!(e instanceof Date)||isNaN(e)?{className:"SLATag",icon:"",tagStyles:""}:e>new Date?{className:"SLATag Pending",icon:"la-sla",tagStyles:"color: var(--ok-color); background-color: #D9FAE0; border-radius: 4px; border: 1px solid var(--ok-color); margin: 0"}:{className:"SLATag Overdue",icon:"la-sla-compliance",tagStyles:"color: var(--notif-error-color); background-color: #FEEAE8; border-radius: 4px; border: 1px solid var(--notif-error-color); margin: 0"}}function Qa(e,t,i){let n,s,r;Z(e,Re,d=>i(4,r=d));let{tagText:o=r("First answer")}=t,{due:l}=t;return e.$$set=d=>{"tagText"in d&&i(0,o=d.tagText),"due"in d&&i(1,l=d.due)},e.$$.update=()=>{e.$$.dirty&2&&i(3,n=qa(l)),e.$$.dirty&2&&i(2,s=l instanceof Date&&!isNaN(l))},[o,l,s,n,r]}class gs extends ue{constructor(t){super(),le(this,t,Qa,Ya,oe,{tagText:0,due:1})}get tagText(){return this.$$.ctx[0]}set tagText(t){this.$$set({tagText:t}),D()}get due(){return this.$$.ctx[1]}set due(t){this.$$set({due:t}),D()}}ae(gs,{tagText:{},due:{}},[],[],!0);function eu(e){me(e,"svelte-eafxx5",".TicketId.svelte-eafxx5{font-weight:bold;font-size:14px;line-height:20px;margin-right:14px}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:14px;line-height:20px}.Communication.svelte-eafxx5{font-size:14px;line-height:20px;display:inline-flex;align-items:center;justify-content:center;margin-right:6px}.ticketDetails.svelte-eafxx5{display:flex;align-items:center;margin-top:6px;margin-bottom:2px}@media(min-width: 900px){.Changed.svelte-eafxx5{display:none}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:13px}.TicketId.svelte-eafxx5{font-size:13px}.ticketDetails.svelte-eafxx5{margin:0}.Communication.svelte-eafxx5{font-size:13px}}")}function tu(e){let t,i,n=e[1].code+"",s,r,o,l,d,u,c,_=e[1].messagegroupsIn+"",f,m,p,v,E,g,A=e[1].messagegroupsOut+"",$,x,O,J,X=e[2]("Created")+"",se,V,H,z,de,Le,U,w=e[2]("Changed")+"",I,S,P,j,K,Q,re;return d=new Pe({props:{iconLaClassName:"la-incoming"}}),v=new Pe({props:{iconLaClassName:"la-outgoing"}}),z=new Ti({props:{data:je(e[1].datecreated)}}),j=new Ti({props:{data:je(e[1].datechanged)}}),Q=new gs({props:{tagText:"",due:je(e[1].datedue)}}),{c(){t=R("div"),i=R("span"),s=ne(n),r=W(),o=R("div"),l=R("div"),G(d.$$.fragment),u=W(),c=R("span"),f=ne(_),m=W(),p=R("div"),G(v.$$.fragment),E=W(),g=R("span"),$=ne(A),x=W(),O=R("div"),J=R("span"),se=ne(X),V=ne(":"),H=W(),G(z.$$.fragment),de=W(),Le=R("div"),U=R("span"),I=ne(w),S=ne(":"),P=W(),G(j.$$.fragment),K=W(),G(Q.$$.fragment),y(i,"class","TicketId svelte-eafxx5"),y(l,"class","Communication incomingMessages svelte-eafxx5"),y(p,"class","Communication outgoingMessages svelte-eafxx5"),y(o,"class","arrows"),y(t,"class","ticketDetails svelte-eafxx5"),y(O,"class","Created svelte-eafxx5"),y(Le,"class","Changed svelte-eafxx5")},m(F,te){C(F,t,te),T(t,i),T(i,s),T(t,r),T(t,o),T(o,l),M(d,l,null),T(l,u),T(l,c),T(c,f),T(o,m),T(o,p),M(v,p,null),T(p,E),T(p,g),T(g,$),C(F,x,te),C(F,O,te),T(O,J),T(J,se),T(J,V),T(O,H),M(z,O,null),C(F,de,te),C(F,Le,te),T(Le,U),T(U,I),T(U,S),T(Le,P),M(j,Le,null),C(F,K,te),M(Q,F,te),re=!0},p(F,te){(!re||te&2)&&n!==(n=F[1].code+"")&&_e(s,n),(!re||te&2)&&_!==(_=F[1].messagegroupsIn+"")&&_e(f,_),(!re||te&2)&&A!==(A=F[1].messagegroupsOut+"")&&_e($,A),(!re||te&4)&&X!==(X=F[2]("Created")+"")&&_e(se,X);const ve={};te&2&&(ve.data=je(F[1].datecreated)),z.$set(ve),(!re||te&4)&&w!==(w=F[2]("Changed")+"")&&_e(I,w);const xe={};te&2&&(xe.data=je(F[1].datechanged)),j.$set(xe);const we={};te&2&&(we.due=je(F[1].datedue)),Q.$set(we)},i(F){re||(b(d.$$.fragment,F),b(v.$$.fragment,F),b(z.$$.fragment,F),b(j.$$.fragment,F),b(Q.$$.fragment,F),re=!0)},o(F){L(d.$$.fragment,F),L(v.$$.fragment,F),L(z.$$.fragment,F),L(j.$$.fragment,F),L(Q.$$.fragment,F),re=!1},d(F){F&&(k(t),k(x),k(O),k(de),k(Le),k(K)),B(d),B(v),B(z),B(j),B(Q,F)}}}function iu(e){let t,i;return t=new Qt({props:{className:e[0],$$slots:{default:[tu]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,[s]){const r={};s&1&&(r.className=n[0]),s&14&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function nu(e,t,i){let n;Z(e,Re,o=>i(2,n=o));let{className:s="importanceColumn"}=t,{row:r}=t;return e.$$set=o=>{"className"in o&&i(0,s=o.className),"row"in o&&i(1,r=o.row)},[s,r,n]}class ps extends ue{constructor(t){super(),le(this,t,nu,iu,oe,{className:0,row:1},eu)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}get row(){return this.$$.ctx[1]}set row(t){this.$$set({row:t}),D()}}ae(ps,{className:{},row:{}},[],[],!0);function su(e){me(e,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function ru(e){let t,i;return t=new ut({props:{style:"color: #"+e[2]+"; background: #"+e[1]+"99; border: 1px solid #"+e[1],text:e[0],className:"TicketTag"}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,[s]){const r={};s&6&&(r.style="color: #"+n[2]+"; background: #"+n[1]+"99; border: 1px solid #"+n[1]),s&1&&(r.text=n[0]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function ou(e,t,i){let n,s,r,o;Z(e,ts,d=>i(4,o=d));let{tagId:l}=t;return console.log(o[l]),e.$$set=d=>{"tagId"in d&&i(3,l=d.tagId)},e.$$.update=()=>{var d,u,c;e.$$.dirty&24&&i(2,n=((d=o[l])==null?void 0:d.color)??0),e.$$.dirty&24&&i(1,s=((u=o[l])==null?void 0:u.backgroundcolor)??0),e.$$.dirty&24&&i(0,r=((c=o[l])==null?void 0:c.name)??"")},[r,s,n,l,o]}class vs extends ue{constructor(t){super(),le(this,t,ou,ru,oe,{tagId:3},su)}get tagId(){return this.$$.ctx[3]}set tagId(t){this.$$set({tagId:t}),D()}}ae(vs,{tagId:{}},[],[],!0);function gn(e,t,i){const n=e.slice();return n[1]=t[i],n}function pn(e){let t,i;return t=new vs({props:{tagId:e[1]}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.tagId=n[1]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function lu(e){let t,i,n=Se(e[0]),s=[];for(let o=0;o<n.length;o+=1)s[o]=pn(gn(e,n,o));const r=o=>L(s[o],1,1,()=>{s[o]=null});return{c(){t=R("span");for(let o=0;o<s.length;o+=1)s[o].c()},m(o,l){C(o,t,l);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(t,null);i=!0},p(o,[l]){if(l&1){n=Se(o[0]);let d;for(d=0;d<n.length;d+=1){const u=gn(o,n,d);s[d]?(s[d].p(u,l),b(s[d],1)):(s[d]=pn(u),s[d].c(),b(s[d],1),s[d].m(t,null))}for(ye(),d=n.length;d<s.length;d+=1)r(d);Te()}},i(o){if(!i){for(let l=0;l<n.length;l+=1)b(s[l]);i=!0}},o(o){s=s.filter(Boolean);for(let l=0;l<s.length;l+=1)L(s[l]);i=!1},d(o){o&&k(t),zt(s,o)}}}function au(e,t,i){let{tags:n}=t;return e.$$set=s=>{"tags"in s&&i(0,n=s.tags)},[n]}class Es extends ue{constructor(t){super(),le(this,t,au,lu,oe,{tags:0})}get tags(){return this.$$.ctx[0]}set tags(t){this.$$set({tags:t}),D()}}ae(Es,{tags:{}},[],[],!0);function uu(e){me(e,"svelte-q9af99",".Tag.IconTag.StatusTag .text{display:none}@media(min-width: 768px){.Tag.IconTag.StatusTag .text{display:inline}}")}function du(e){let t,i;return t=new xt({props:{className:"StatusTag "+e[1][e[0]].text,style:"color: "+Ve(e[0]).text+"; background-color: "+Ve(e[0]).bg+"; border-color: "+Ve(e[0]).border,text:e[1][e[0]].text,iconLaClassName:e[1][e[0]].icon}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,[s]){const r={};s&1&&(r.className="StatusTag "+n[1][n[0]].text),s&1&&(r.style="color: "+Ve(n[0]).text+"; background-color: "+Ve(n[0]).bg+"; border-color: "+Ve(n[0]).border),s&1&&(r.text=n[1][n[0]].text),s&1&&(r.iconLaClassName=n[1][n[0]].icon),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function cu(e,t,i){let n;Z(e,Re,o=>i(2,n=o));let{status:s}=t;const r={A:{text:n("Answered"),icon:"la-ticket-answered"},T:{text:n("Chatting"),icon:"la-chatting"},P:{text:n("Calling"),icon:"la-call"},X:{text:n("Deleted"),icon:"la-ticket-deleted"},B:{text:n("Spam"),icon:"la-spam"},I:{text:n("Init"),icon:""},R:{text:n("Resolved"),icon:"la-ticket-resolved"},N:{text:n("New"),icon:"la-ticket-new"},C:{text:n("Open"),icon:"la-ticket-open"},W:{text:n("Postponed"),icon:"la-ticket-postponed"}};return e.$$set=o=>{"status"in o&&i(0,s=o.status)},[s,r]}class ys extends ue{constructor(t){super(),le(this,t,cu,du,oe,{status:0},uu)}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),D()}}ae(ys,{status:{}},[],[],!0);function _u(e){let t,i;return t=new xt({props:{className:bs,text:e[0].departmentname,iconLaClassName:Ts}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.text=n[0].departmentname),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function fu(e){let t,i;return t=new Vi({props:{iconText:e[0].departmentname,tagText:e[0].agentname,iconLaClassName:Ts,className:bs,iconTagStyles:e[1],tagStyles:e[2]}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.iconText=n[0].departmentname),s&1&&(r.tagText=n[0].agentname),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function mu(e){let t,i,n,s,r;const o=[fu,_u],l=[];function d(u,c){return c&1&&(t=null),t==null&&(t=u[0].agentname.trim()!==""),t?0:1}return i=d(e,-1),n=l[i]=o[i](e),{c(){n.c(),s=st()},m(u,c){l[i].m(u,c),C(u,s,c),r=!0},p(u,[c]){let _=i;i=d(u,c),i===_?l[i].p(u,c):(ye(),L(l[_],1,1,()=>{l[_]=null}),Te(),n=l[i],n?n.p(u,c):(n=l[i]=o[i](u),n.c()),b(n,1),n.m(s.parentNode,s))},i(u){r||(b(n),r=!0)},o(u){L(n),r=!1},d(u){u&&k(s),l[i].d(u)}}}const Ts="la-department",bs="Department";function hu(e,t,i){let{data:n}=t,s="color: white; background-color: var(--department-bg-color); margin-top: 0;",r="color: var(--tag-department-agent-text); background-color: var(--tag-department-agent-bg); border-radius: 4px; margin: 0";return e.$$set=o=>{"data"in o&&i(0,n=o.data)},[n,s,r]}class Ls extends ue{constructor(t){super(),le(this,t,hu,mu,oe,{data:0})}get data(){return this.$$.ctx[0]}set data(t){this.$$set({data:t}),D()}}ae(Ls,{data:{}},[],[],!0);function gu(e){me(e,"svelte-ccmpo7",`.subject.svelte-ccmpo7{font-size:14px;font-weight:bold;line-height:20px;margin:0}.preview.svelte-ccmpo7{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px;margin:0 0 4px;line-height:20px;font-size:14px}.no-text.svelte-ccmpo7{color:var(--main-lighter-textcolor)}.additional.svelte-ccmpo7{display:flex}.CombinedTag.Department{background-color:var(--department-bg-color)}@media(min-width: 768px){.subject.svelte-ccmpo7{font-size:13px
12
- }.preview.svelte-ccmpo7{font-size:13px;margin:0}}`)}function pu(e){let t,i=e[0].subject+"",n,s,r,o=(e[0].preview?e[0].preview:e[2]("No text for preview"))+"",l,d,u,c,_,f,m,p,v,E;return _=new ys({props:{status:e[0].status}}),m=new Ls({props:{data:e[0]}}),v=new Es({props:{tags:e[0].tags}}),{c(){t=R("h1"),n=ne(i),s=W(),r=R("p"),l=ne(o),u=W(),c=R("div"),G(_.$$.fragment),f=W(),G(m.$$.fragment),p=W(),G(v.$$.fragment),y(t,"class","subject svelte-ccmpo7"),y(r,"class",d=he(e[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"),y(c,"class","additional svelte-ccmpo7")},m(g,A){C(g,t,A),T(t,n),C(g,s,A),C(g,r,A),T(r,l),C(g,u,A),C(g,c,A),M(_,c,null),T(c,f),M(m,c,null),T(c,p),M(v,c,null),E=!0},p(g,A){(!E||A&1)&&i!==(i=g[0].subject+"")&&_e(n,i),(!E||A&5)&&o!==(o=(g[0].preview?g[0].preview:g[2]("No text for preview"))+"")&&_e(l,o),(!E||A&1&&d!==(d=he(g[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"))&&y(r,"class",d);const $={};A&1&&($.status=g[0].status),_.$set($);const x={};A&1&&(x.data=g[0]),m.$set(x);const O={};A&1&&(O.tags=g[0].tags),v.$set(O)},i(g){E||(b(_.$$.fragment,g),b(m.$$.fragment,g),b(v.$$.fragment,g),E=!0)},o(g){L(_.$$.fragment,g),L(m.$$.fragment,g),L(v.$$.fragment,g),E=!1},d(g){g&&(k(t),k(s),k(r),k(u),k(c)),B(_),B(m),B(v)}}}function vu(e){let t,i;return t=new Qt({props:{className:e[1],$$slots:{default:[pu]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,[s]){const r={};s&2&&(r.className=n[1]),s&13&&(r.$$scope={dirty:s,ctx:n}),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Eu(e,t,i){let n;Z(e,Re,o=>i(2,n=o));let{row:s}=t,{className:r="statusColumn"}=t;return e.$$set=o=>{"row"in o&&i(0,s=o.row),"className"in o&&i(1,r=o.className)},[s,r,n]}class As extends ue{constructor(t){super(),le(this,t,Eu,vu,oe,{row:0,className:1},gu)}get row(){return this.$$.ctx[0]}set row(t){this.$$set({row:t}),D()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),D()}}ae(As,{row:{},className:{}},[],[],!0);function yu(e){me(e,"svelte-d34xx3",`.Body.svelte-d34xx3.svelte-d34xx3{padding:0px 20px}.Row.svelte-d34xx3.svelte-d34xx3{display:grid;grid-template-columns:60px 1fr;grid-template-rows:auto;grid-template-areas:"checkbox user"
10
+ */var Ea=function(e){return e!=null&&(gr(e)||ya(e)||!!e._isBuffer)};function gr(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ya(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&gr(e.slice(0,0))}(function(){var e=va,t=fn.utf8,n=Ea,i=fn.bin,r=function(s,o){s.constructor==String?o&&o.encoding==="binary"?s=i.stringToBytes(s):s=t.stringToBytes(s):n(s)?s=Array.prototype.slice.call(s,0):!Array.isArray(s)&&s.constructor!==Uint8Array&&(s=s.toString());for(var l=e.bytesToWords(s),d=s.length*8,u=1732584193,c=-271733879,_=-1732584194,f=271733878,m=0;m<l.length;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360;l[d>>>5]|=128<<d%32,l[(d+64>>>9<<4)+14]=d;for(var v=r._ff,p=r._gg,E=r._hh,g=r._ii,m=0;m<l.length;m+=16){var O=u,$=c,C=_,A=f;u=v(u,c,_,f,l[m+0],7,-680876936),f=v(f,u,c,_,l[m+1],12,-389564586),_=v(_,f,u,c,l[m+2],17,606105819),c=v(c,_,f,u,l[m+3],22,-1044525330),u=v(u,c,_,f,l[m+4],7,-176418897),f=v(f,u,c,_,l[m+5],12,1200080426),_=v(_,f,u,c,l[m+6],17,-1473231341),c=v(c,_,f,u,l[m+7],22,-45705983),u=v(u,c,_,f,l[m+8],7,1770035416),f=v(f,u,c,_,l[m+9],12,-1958414417),_=v(_,f,u,c,l[m+10],17,-42063),c=v(c,_,f,u,l[m+11],22,-1990404162),u=v(u,c,_,f,l[m+12],7,1804603682),f=v(f,u,c,_,l[m+13],12,-40341101),_=v(_,f,u,c,l[m+14],17,-1502002290),c=v(c,_,f,u,l[m+15],22,1236535329),u=p(u,c,_,f,l[m+1],5,-165796510),f=p(f,u,c,_,l[m+6],9,-1069501632),_=p(_,f,u,c,l[m+11],14,643717713),c=p(c,_,f,u,l[m+0],20,-373897302),u=p(u,c,_,f,l[m+5],5,-701558691),f=p(f,u,c,_,l[m+10],9,38016083),_=p(_,f,u,c,l[m+15],14,-660478335),c=p(c,_,f,u,l[m+4],20,-405537848),u=p(u,c,_,f,l[m+9],5,568446438),f=p(f,u,c,_,l[m+14],9,-1019803690),_=p(_,f,u,c,l[m+3],14,-187363961),c=p(c,_,f,u,l[m+8],20,1163531501),u=p(u,c,_,f,l[m+13],5,-1444681467),f=p(f,u,c,_,l[m+2],9,-51403784),_=p(_,f,u,c,l[m+7],14,1735328473),c=p(c,_,f,u,l[m+12],20,-1926607734),u=E(u,c,_,f,l[m+5],4,-378558),f=E(f,u,c,_,l[m+8],11,-2022574463),_=E(_,f,u,c,l[m+11],16,1839030562),c=E(c,_,f,u,l[m+14],23,-35309556),u=E(u,c,_,f,l[m+1],4,-1530992060),f=E(f,u,c,_,l[m+4],11,1272893353),_=E(_,f,u,c,l[m+7],16,-155497632),c=E(c,_,f,u,l[m+10],23,-1094730640),u=E(u,c,_,f,l[m+13],4,681279174),f=E(f,u,c,_,l[m+0],11,-358537222),_=E(_,f,u,c,l[m+3],16,-722521979),c=E(c,_,f,u,l[m+6],23,76029189),u=E(u,c,_,f,l[m+9],4,-640364487),f=E(f,u,c,_,l[m+12],11,-421815835),_=E(_,f,u,c,l[m+15],16,530742520),c=E(c,_,f,u,l[m+2],23,-995338651),u=g(u,c,_,f,l[m+0],6,-198630844),f=g(f,u,c,_,l[m+7],10,1126891415),_=g(_,f,u,c,l[m+14],15,-1416354905),c=g(c,_,f,u,l[m+5],21,-57434055),u=g(u,c,_,f,l[m+12],6,1700485571),f=g(f,u,c,_,l[m+3],10,-1894986606),_=g(_,f,u,c,l[m+10],15,-1051523),c=g(c,_,f,u,l[m+1],21,-2054922799),u=g(u,c,_,f,l[m+8],6,1873313359),f=g(f,u,c,_,l[m+15],10,-30611744),_=g(_,f,u,c,l[m+6],15,-1560198380),c=g(c,_,f,u,l[m+13],21,1309151649),u=g(u,c,_,f,l[m+4],6,-145523070),f=g(f,u,c,_,l[m+11],10,-1120210379),_=g(_,f,u,c,l[m+2],15,718787259),c=g(c,_,f,u,l[m+9],21,-343485551),u=u+O>>>0,c=c+$>>>0,_=_+C>>>0,f=f+A>>>0}return e.endian([u,c,_,f])};r._ff=function(s,o,l,d,u,c,_){var f=s+(o&l|~o&d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},r._gg=function(s,o,l,d,u,c,_){var f=s+(o&d|l&~d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},r._hh=function(s,o,l,d,u,c,_){var f=s+(o^l^d)+(u>>>0)+_;return(f<<c|f>>>32-c)+o},r._ii=function(s,o,l,d,u,c,_){var f=s+(l^(o|~d))+(u>>>0)+_;return(f<<c|f>>>32-c)+o},r._blocksize=16,r._digestsize=16,mr.exports=function(s,o){if(s==null)throw new Error("Illegal argument "+s);var l=e.wordsToBytes(r(s,o));return o&&o.asBytes?l:o&&o.asString?i.bytesToString(l):e.bytesToHex(l)}})();var ba=mr.exports;const Ta=Jt(ba);function Ti(e,t,n){if(!e)return n;let i=e+" "+t;return i.trim()||(i=n),i}function La(e){ce(e,"svelte-i1cc3l",".avatar.svelte-i1cc3l{display:none}.flag-icon.svelte-i1cc3l{display:none}@media(min-width: 900px){.avatar.svelte-i1cc3l{position:relative;display:flex;align-items:center;justify-content:center;margin:0 10px;width:40px;height:40px}.flag-icon.svelte-i1cc3l{position:absolute;right:0;bottom:7px;display:flex;width:14px;height:14px}}")}function mn(e){let t,n;const i=[e[1],{size:"40px"}];let r={};for(let s=0;s<i.length;s+=1)r=Tt(r,i[s]);return t=new fr({props:r}),{c(){M(t.$$.fragment)},m(s,o){N(t,s,o),n=!0},p(s,o){const l=o&2?xn(i,[ns(s[1]),i[1]]):{};t.$set(l)},i(s){n||(b(t.$$.fragment,s),n=!0)},o(s){L(t.$$.fragment,s),n=!1},d(s){H(t,s)}}}function hn(e){let t,n,i;var r=e[0];function s(o,l){return{props:{size:"30"}}}return r&&(n=zi(r,s())),{c(){t=I("div"),n&&M(n.$$.fragment),y(t,"class","flag-icon svelte-i1cc3l")},m(o,l){k(o,t,l),n&&N(n,t,null),i=!0},p(o,l){if(l&1&&r!==(r=o[0])){if(n){he();const d=n;L(d.$$.fragment,1,0,()=>{H(d,1)}),ge()}r?(n=zi(r,s()),M(n.$$.fragment),b(n.$$.fragment,1),N(n,t,null)):n=null}},i(o){i||(n&&b(n.$$.fragment,o),i=!0)},o(o){n&&L(n.$$.fragment,o),i=!1},d(o){o&&P(t),n&&H(n)}}}function Aa(e){let t,n=e[1].name,i,r,s=mn(e),o=e[0]!==null&&hn(e);return{c(){t=I("div"),s.c(),i=j(),o&&o.c(),y(t,"class","avatar svelte-i1cc3l")},m(l,d){k(l,t,d),s.m(t,null),T(t,i),o&&o.m(t,null),r=!0},p(l,[d]){d&2&&ie(n,n=l[1].name)?(he(),L(s,1,1,W),ge(),s=mn(l),s.c(),b(s,1),s.m(t,i)):s.p(l,d),l[0]!==null?o?(o.p(l,d),d&1&&b(o,1)):(o=hn(l),o.c(),b(o,1),o.m(t,null)):o&&(he(),L(o,1,1,()=>{o=null}),ge())},i(l){r||(b(s),b(o),r=!0)},o(l){L(s),L(o),r=!1},d(l){l&&P(t),s.d(l),o&&o.d()}}}function Oa(e,t,n){if(!e)return(n[0]+n[1]).toUpperCase();let i=e[0];return t&&(i+=t[0]),i}function Ia(e,t,n){let i,{row:r}=t,s=null;Pt(()=>{l(r.countrycode)});function o(u,c){let _=u;return _||(_="https://www.gravatar.com/avatar/"+Ta(c[0]??"")+"?s=200&d=404"),_}function l(u){if(u!=null&&u!==""&&u.length===2){const _="/node_modules/svelte-flag-icons/dist/"+(u[0].toUpperCase()+u[1].toLowerCase())+".svelte",f=Object.assign({"/node_modules/svelte-flag-icons/dist/Ac.svelte":()=>a(()=>import("./Ac.js"),[]),"/node_modules/svelte-flag-icons/dist/Ad.svelte":()=>a(()=>import("./Ad.js"),[]),"/node_modules/svelte-flag-icons/dist/Ae.svelte":()=>a(()=>import("./Ae.js"),[]),"/node_modules/svelte-flag-icons/dist/Af.svelte":()=>a(()=>import("./Af2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ag.svelte":()=>a(()=>import("./Ag.js"),[]),"/node_modules/svelte-flag-icons/dist/Ai.svelte":()=>a(()=>import("./Ai.js"),[]),"/node_modules/svelte-flag-icons/dist/Al.svelte":()=>a(()=>import("./Al.js"),[]),"/node_modules/svelte-flag-icons/dist/Am.svelte":()=>a(()=>import("./Am2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ao.svelte":()=>a(()=>import("./Ao.js"),[]),"/node_modules/svelte-flag-icons/dist/Aq.svelte":()=>a(()=>import("./Aq.js"),[]),"/node_modules/svelte-flag-icons/dist/Ar.svelte":()=>a(()=>import("./Ar2.js"),[]),"/node_modules/svelte-flag-icons/dist/Arab.svelte":()=>a(()=>import("./Arab.js"),[]),"/node_modules/svelte-flag-icons/dist/As.svelte":()=>a(()=>import("./As.js"),[]),"/node_modules/svelte-flag-icons/dist/At.svelte":()=>a(()=>import("./At.js"),[]),"/node_modules/svelte-flag-icons/dist/Au.svelte":()=>a(()=>import("./Au.js"),[]),"/node_modules/svelte-flag-icons/dist/Aw.svelte":()=>a(()=>import("./Aw.js"),[]),"/node_modules/svelte-flag-icons/dist/Ax.svelte":()=>a(()=>import("./Ax.js"),[]),"/node_modules/svelte-flag-icons/dist/Az.svelte":()=>a(()=>import("./Az2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ba.svelte":()=>a(()=>import("./Ba.js"),[]),"/node_modules/svelte-flag-icons/dist/Bb.svelte":()=>a(()=>import("./Bb.js"),[]),"/node_modules/svelte-flag-icons/dist/Bd.svelte":()=>a(()=>import("./Bd.js"),[]),"/node_modules/svelte-flag-icons/dist/Be.svelte":()=>a(()=>import("./Be2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bf.svelte":()=>a(()=>import("./Bf.js"),[]),"/node_modules/svelte-flag-icons/dist/Bg.svelte":()=>a(()=>import("./Bg2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bh.svelte":()=>a(()=>import("./Bh.js"),[]),"/node_modules/svelte-flag-icons/dist/Bi.svelte":()=>a(()=>import("./Bi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bj.svelte":()=>a(()=>import("./Bj.js"),[]),"/node_modules/svelte-flag-icons/dist/Bl.svelte":()=>a(()=>import("./Bl.js"),[]),"/node_modules/svelte-flag-icons/dist/Bm.svelte":()=>a(()=>import("./Bm2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bn.svelte":()=>a(()=>import("./Bn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bo.svelte":()=>a(()=>import("./Bo2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bq.svelte":()=>a(()=>import("./Bq.js"),[]),"/node_modules/svelte-flag-icons/dist/Br.svelte":()=>a(()=>import("./Br2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bs.svelte":()=>a(()=>import("./Bs2.js"),[]),"/node_modules/svelte-flag-icons/dist/Bt.svelte":()=>a(()=>import("./Bt.js"),[]),"/node_modules/svelte-flag-icons/dist/Bv.svelte":()=>a(()=>import("./Bv.js"),[]),"/node_modules/svelte-flag-icons/dist/Bw.svelte":()=>a(()=>import("./Bw.js"),[]),"/node_modules/svelte-flag-icons/dist/By.svelte":()=>a(()=>import("./By.js"),[]),"/node_modules/svelte-flag-icons/dist/Bz.svelte":()=>a(()=>import("./Bz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ca.svelte":()=>a(()=>import("./Ca2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cc.svelte":()=>a(()=>import("./Cc.js"),[]),"/node_modules/svelte-flag-icons/dist/Cd.svelte":()=>a(()=>import("./Cd.js"),[]),"/node_modules/svelte-flag-icons/dist/Cefta.svelte":()=>a(()=>import("./Cefta.js"),[]),"/node_modules/svelte-flag-icons/dist/Cf.svelte":()=>a(()=>import("./Cf.js"),[]),"/node_modules/svelte-flag-icons/dist/Cg.svelte":()=>a(()=>import("./Cg.js"),[]),"/node_modules/svelte-flag-icons/dist/Ch.svelte":()=>a(()=>import("./Ch.js"),[]),"/node_modules/svelte-flag-icons/dist/Ci.svelte":()=>a(()=>import("./Ci.js"),[]),"/node_modules/svelte-flag-icons/dist/Ck.svelte":()=>a(()=>import("./Ck.js"),[]),"/node_modules/svelte-flag-icons/dist/Cl.svelte":()=>a(()=>import("./Cl.js"),[]),"/node_modules/svelte-flag-icons/dist/Cm.svelte":()=>a(()=>import("./Cm.js"),[]),"/node_modules/svelte-flag-icons/dist/Cn.svelte":()=>a(()=>import("./Cn.js"),[]),"/node_modules/svelte-flag-icons/dist/Co.svelte":()=>a(()=>import("./Co.js"),[]),"/node_modules/svelte-flag-icons/dist/Cp.svelte":()=>a(()=>import("./Cp.js"),[]),"/node_modules/svelte-flag-icons/dist/Cr.svelte":()=>a(()=>import("./Cr.js"),[]),"/node_modules/svelte-flag-icons/dist/Cu.svelte":()=>a(()=>import("./Cu.js"),[]),"/node_modules/svelte-flag-icons/dist/Cv.svelte":()=>a(()=>import("./Cv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cw.svelte":()=>a(()=>import("./Cw.js"),[]),"/node_modules/svelte-flag-icons/dist/Cx.svelte":()=>a(()=>import("./Cx.js"),[]),"/node_modules/svelte-flag-icons/dist/Cy.svelte":()=>a(()=>import("./Cy2.js"),[]),"/node_modules/svelte-flag-icons/dist/Cz.svelte":()=>a(()=>import("./Cz.js"),[]),"/node_modules/svelte-flag-icons/dist/De.svelte":()=>a(()=>import("./De2.js"),[]),"/node_modules/svelte-flag-icons/dist/Dg.svelte":()=>a(()=>import("./Dg.js"),[]),"/node_modules/svelte-flag-icons/dist/Dj.svelte":()=>a(()=>import("./Dj.js"),[]),"/node_modules/svelte-flag-icons/dist/Dk.svelte":()=>a(()=>import("./Dk.js"),[]),"/node_modules/svelte-flag-icons/dist/Dm.svelte":()=>a(()=>import("./Dm.js"),[]),"/node_modules/svelte-flag-icons/dist/Do.svelte":()=>a(()=>import("./Do.js"),[]),"/node_modules/svelte-flag-icons/dist/Dz.svelte":()=>a(()=>import("./Dz.js"),[]),"/node_modules/svelte-flag-icons/dist/Eac.svelte":()=>a(()=>import("./Eac.js"),[]),"/node_modules/svelte-flag-icons/dist/Ec.svelte":()=>a(()=>import("./Ec.js"),[]),"/node_modules/svelte-flag-icons/dist/Ee.svelte":()=>a(()=>import("./Ee.js"),[]),"/node_modules/svelte-flag-icons/dist/Eg.svelte":()=>a(()=>import("./Eg.js"),[]),"/node_modules/svelte-flag-icons/dist/Eh.svelte":()=>a(()=>import("./Eh.js"),[]),"/node_modules/svelte-flag-icons/dist/Er.svelte":()=>a(()=>import("./Er.js"),[]),"/node_modules/svelte-flag-icons/dist/Es.svelte":()=>a(()=>import("./Es2.js"),[]),"/node_modules/svelte-flag-icons/dist/EsCt.svelte":()=>a(()=>import("./EsCt.js"),[]),"/node_modules/svelte-flag-icons/dist/EsGa.svelte":()=>a(()=>import("./EsGa.js"),[]),"/node_modules/svelte-flag-icons/dist/EsPv.svelte":()=>a(()=>import("./EsPv.js"),[]),"/node_modules/svelte-flag-icons/dist/Et.svelte":()=>a(()=>import("./Et2.js"),[]),"/node_modules/svelte-flag-icons/dist/Eu.svelte":()=>a(()=>import("./Eu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fi.svelte":()=>a(()=>import("./Fi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fj.svelte":()=>a(()=>import("./Fj.js"),[]),"/node_modules/svelte-flag-icons/dist/Fk.svelte":()=>a(()=>import("./Fk.js"),[]),"/node_modules/svelte-flag-icons/dist/Fm.svelte":()=>a(()=>import("./Fm.js"),[]),"/node_modules/svelte-flag-icons/dist/Fo.svelte":()=>a(()=>import("./Fo2.js"),[]),"/node_modules/svelte-flag-icons/dist/Fr.svelte":()=>a(()=>import("./Fr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ga.svelte":()=>a(()=>import("./Ga2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gb.svelte":()=>a(()=>import("./Gb.js"),[]),"/node_modules/svelte-flag-icons/dist/GbEng.svelte":()=>a(()=>import("./GbEng.js"),[]),"/node_modules/svelte-flag-icons/dist/GbNir.svelte":()=>a(()=>import("./GbNir.js"),[]),"/node_modules/svelte-flag-icons/dist/GbSct.svelte":()=>a(()=>import("./GbSct.js"),[]),"/node_modules/svelte-flag-icons/dist/GbWls.svelte":()=>a(()=>import("./GbWls.js"),[]),"/node_modules/svelte-flag-icons/dist/Gd.svelte":()=>a(()=>import("./Gd2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ge.svelte":()=>a(()=>import("./Ge.js"),[]),"/node_modules/svelte-flag-icons/dist/Gf.svelte":()=>a(()=>import("./Gf.js"),[]),"/node_modules/svelte-flag-icons/dist/Gg.svelte":()=>a(()=>import("./Gg.js"),[]),"/node_modules/svelte-flag-icons/dist/Gh.svelte":()=>a(()=>import("./Gh.js"),[]),"/node_modules/svelte-flag-icons/dist/Gi.svelte":()=>a(()=>import("./Gi.js"),[]),"/node_modules/svelte-flag-icons/dist/Gl.svelte":()=>a(()=>import("./Gl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gm.svelte":()=>a(()=>import("./Gm.js"),[]),"/node_modules/svelte-flag-icons/dist/Gn.svelte":()=>a(()=>import("./Gn.js"),[]),"/node_modules/svelte-flag-icons/dist/Gp.svelte":()=>a(()=>import("./Gp.js"),[]),"/node_modules/svelte-flag-icons/dist/Gq.svelte":()=>a(()=>import("./Gq.js"),[]),"/node_modules/svelte-flag-icons/dist/Gr.svelte":()=>a(()=>import("./Gr.js"),[]),"/node_modules/svelte-flag-icons/dist/Gs.svelte":()=>a(()=>import("./Gs.js"),[]),"/node_modules/svelte-flag-icons/dist/Gt.svelte":()=>a(()=>import("./Gt.js"),[]),"/node_modules/svelte-flag-icons/dist/Gu.svelte":()=>a(()=>import("./Gu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Gw.svelte":()=>a(()=>import("./Gw.js"),[]),"/node_modules/svelte-flag-icons/dist/Gy.svelte":()=>a(()=>import("./Gy.js"),[]),"/node_modules/svelte-flag-icons/dist/Hk.svelte":()=>a(()=>import("./Hk.js"),[]),"/node_modules/svelte-flag-icons/dist/Hm.svelte":()=>a(()=>import("./Hm.js"),[]),"/node_modules/svelte-flag-icons/dist/Hn.svelte":()=>a(()=>import("./Hn.js"),[]),"/node_modules/svelte-flag-icons/dist/Hr.svelte":()=>a(()=>import("./Hr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ht.svelte":()=>a(()=>import("./Ht2.js"),[]),"/node_modules/svelte-flag-icons/dist/Hu.svelte":()=>a(()=>import("./Hu2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ic.svelte":()=>a(()=>import("./Ic.js"),[]),"/node_modules/svelte-flag-icons/dist/Icon.svelte":()=>a(()=>import("./Icon.js"),[]),"/node_modules/svelte-flag-icons/dist/Id.svelte":()=>a(()=>import("./Id2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ie.svelte":()=>a(()=>import("./Ie.js"),[]),"/node_modules/svelte-flag-icons/dist/Il.svelte":()=>a(()=>import("./Il.js"),[]),"/node_modules/svelte-flag-icons/dist/Im.svelte":()=>a(()=>import("./Im.js"),[]),"/node_modules/svelte-flag-icons/dist/In.svelte":()=>a(()=>import("./In.js"),[]),"/node_modules/svelte-flag-icons/dist/Io.svelte":()=>a(()=>import("./Io.js"),[]),"/node_modules/svelte-flag-icons/dist/Iq.svelte":()=>a(()=>import("./Iq.js"),[]),"/node_modules/svelte-flag-icons/dist/Ir.svelte":()=>a(()=>import("./Ir.js"),[]),"/node_modules/svelte-flag-icons/dist/Is.svelte":()=>a(()=>import("./Is2.js"),[]),"/node_modules/svelte-flag-icons/dist/It.svelte":()=>a(()=>import("./It2.js"),[]),"/node_modules/svelte-flag-icons/dist/Je.svelte":()=>a(()=>import("./Je.js"),[]),"/node_modules/svelte-flag-icons/dist/Jm.svelte":()=>a(()=>import("./Jm.js"),[]),"/node_modules/svelte-flag-icons/dist/Jo.svelte":()=>a(()=>import("./Jo.js"),[]),"/node_modules/svelte-flag-icons/dist/Jp.svelte":()=>a(()=>import("./Jp.js"),[]),"/node_modules/svelte-flag-icons/dist/Ke.svelte":()=>a(()=>import("./Ke.js"),[]),"/node_modules/svelte-flag-icons/dist/Kg.svelte":()=>a(()=>import("./Kg.js"),[]),"/node_modules/svelte-flag-icons/dist/Kh.svelte":()=>a(()=>import("./Kh.js"),[]),"/node_modules/svelte-flag-icons/dist/Ki.svelte":()=>a(()=>import("./Ki.js"),[]),"/node_modules/svelte-flag-icons/dist/Km.svelte":()=>a(()=>import("./Km2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kn.svelte":()=>a(()=>import("./Kn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kp.svelte":()=>a(()=>import("./Kp.js"),[]),"/node_modules/svelte-flag-icons/dist/Kr.svelte":()=>a(()=>import("./Kr.js"),[]),"/node_modules/svelte-flag-icons/dist/Kw.svelte":()=>a(()=>import("./Kw.js"),[]),"/node_modules/svelte-flag-icons/dist/Ky.svelte":()=>a(()=>import("./Ky2.js"),[]),"/node_modules/svelte-flag-icons/dist/Kz.svelte":()=>a(()=>import("./Kz.js"),[]),"/node_modules/svelte-flag-icons/dist/La.svelte":()=>a(()=>import("./La.js"),[]),"/node_modules/svelte-flag-icons/dist/Lb.svelte":()=>a(()=>import("./Lb2.js"),[]),"/node_modules/svelte-flag-icons/dist/Lc.svelte":()=>a(()=>import("./Lc.js"),[]),"/node_modules/svelte-flag-icons/dist/Li.svelte":()=>a(()=>import("./Li.js"),[]),"/node_modules/svelte-flag-icons/dist/Lk.svelte":()=>a(()=>import("./Lk.js"),[]),"/node_modules/svelte-flag-icons/dist/Lr.svelte":()=>a(()=>import("./Lr.js"),[]),"/node_modules/svelte-flag-icons/dist/Ls.svelte":()=>a(()=>import("./Ls.js"),[]),"/node_modules/svelte-flag-icons/dist/Lt.svelte":()=>a(()=>import("./Lt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Lu.svelte":()=>a(()=>import("./Lu.js"),[]),"/node_modules/svelte-flag-icons/dist/Lv.svelte":()=>a(()=>import("./Lv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ly.svelte":()=>a(()=>import("./Ly.js"),[]),"/node_modules/svelte-flag-icons/dist/Ma.svelte":()=>a(()=>import("./Ma.js"),[]),"/node_modules/svelte-flag-icons/dist/Mc.svelte":()=>a(()=>import("./Mc.js"),[]),"/node_modules/svelte-flag-icons/dist/Md.svelte":()=>a(()=>import("./Md.js"),[]),"/node_modules/svelte-flag-icons/dist/Me.svelte":()=>a(()=>import("./Me2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mf.svelte":()=>a(()=>import("./Mf.js"),[]),"/node_modules/svelte-flag-icons/dist/Mg.svelte":()=>a(()=>import("./Mg.js"),[]),"/node_modules/svelte-flag-icons/dist/Mh.svelte":()=>a(()=>import("./Mh.js"),[]),"/node_modules/svelte-flag-icons/dist/Mk.svelte":()=>a(()=>import("./Mk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ml.svelte":()=>a(()=>import("./Ml2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mm.svelte":()=>a(()=>import("./Mm.js"),[]),"/node_modules/svelte-flag-icons/dist/Mn.svelte":()=>a(()=>import("./Mn2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mo.svelte":()=>a(()=>import("./Mo.js"),[]),"/node_modules/svelte-flag-icons/dist/Mp.svelte":()=>a(()=>import("./Mp.js"),[]),"/node_modules/svelte-flag-icons/dist/Mq.svelte":()=>a(()=>import("./Mq.js"),[]),"/node_modules/svelte-flag-icons/dist/Mr.svelte":()=>a(()=>import("./Mr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ms.svelte":()=>a(()=>import("./Ms2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mt.svelte":()=>a(()=>import("./Mt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mu.svelte":()=>a(()=>import("./Mu.js"),[]),"/node_modules/svelte-flag-icons/dist/Mv.svelte":()=>a(()=>import("./Mv.js"),[]),"/node_modules/svelte-flag-icons/dist/Mw.svelte":()=>a(()=>import("./Mw.js"),[]),"/node_modules/svelte-flag-icons/dist/Mx.svelte":()=>a(()=>import("./Mx.js"),[]),"/node_modules/svelte-flag-icons/dist/My.svelte":()=>a(()=>import("./My2.js"),[]),"/node_modules/svelte-flag-icons/dist/Mz.svelte":()=>a(()=>import("./Mz.js"),[]),"/node_modules/svelte-flag-icons/dist/Na.svelte":()=>a(()=>import("./Na.js"),[]),"/node_modules/svelte-flag-icons/dist/Nc.svelte":()=>a(()=>import("./Nc.js"),[]),"/node_modules/svelte-flag-icons/dist/Ne.svelte":()=>a(()=>import("./Ne2.js"),[]),"/node_modules/svelte-flag-icons/dist/Nf.svelte":()=>a(()=>import("./Nf.js"),[]),"/node_modules/svelte-flag-icons/dist/Ng.svelte":()=>a(()=>import("./Ng.js"),[]),"/node_modules/svelte-flag-icons/dist/Ni.svelte":()=>a(()=>import("./Ni.js"),[]),"/node_modules/svelte-flag-icons/dist/Nl.svelte":()=>a(()=>import("./Nl2.js"),[]),"/node_modules/svelte-flag-icons/dist/No.svelte":()=>a(()=>import("./No.js"),[]),"/node_modules/svelte-flag-icons/dist/Np.svelte":()=>a(()=>import("./Np.js"),[]),"/node_modules/svelte-flag-icons/dist/Nr.svelte":()=>a(()=>import("./Nr.js"),[]),"/node_modules/svelte-flag-icons/dist/Nu.svelte":()=>a(()=>import("./Nu.js"),[]),"/node_modules/svelte-flag-icons/dist/Nz.svelte":()=>a(()=>import("./Nz.js"),[]),"/node_modules/svelte-flag-icons/dist/Om.svelte":()=>a(()=>import("./Om.js"),[]),"/node_modules/svelte-flag-icons/dist/Pa.svelte":()=>a(()=>import("./Pa.js"),[]),"/node_modules/svelte-flag-icons/dist/Pe.svelte":()=>a(()=>import("./Pe.js"),[]),"/node_modules/svelte-flag-icons/dist/Pf.svelte":()=>a(()=>import("./Pf.js"),[]),"/node_modules/svelte-flag-icons/dist/Pg.svelte":()=>a(()=>import("./Pg.js"),[]),"/node_modules/svelte-flag-icons/dist/Ph.svelte":()=>a(()=>import("./Ph.js"),[]),"/node_modules/svelte-flag-icons/dist/Pk.svelte":()=>a(()=>import("./Pk.js"),[]),"/node_modules/svelte-flag-icons/dist/Pl.svelte":()=>a(()=>import("./Pl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Pm.svelte":()=>a(()=>import("./Pm.js"),[]),"/node_modules/svelte-flag-icons/dist/Pn.svelte":()=>a(()=>import("./Pn.js"),[]),"/node_modules/svelte-flag-icons/dist/Pr.svelte":()=>a(()=>import("./Pr.js"),[]),"/node_modules/svelte-flag-icons/dist/Ps.svelte":()=>a(()=>import("./Ps.js"),[]),"/node_modules/svelte-flag-icons/dist/Pt.svelte":()=>a(()=>import("./Pt2.js"),[]),"/node_modules/svelte-flag-icons/dist/Pw.svelte":()=>a(()=>import("./Pw.js"),[]),"/node_modules/svelte-flag-icons/dist/Py.svelte":()=>a(()=>import("./Py.js"),[]),"/node_modules/svelte-flag-icons/dist/Qa.svelte":()=>a(()=>import("./Qa.js"),[]),"/node_modules/svelte-flag-icons/dist/Re.svelte":()=>a(()=>import("./Re.js"),[]),"/node_modules/svelte-flag-icons/dist/Ro.svelte":()=>a(()=>import("./Ro2.js"),[]),"/node_modules/svelte-flag-icons/dist/Rs.svelte":()=>a(()=>import("./Rs.js"),[]),"/node_modules/svelte-flag-icons/dist/Ru.svelte":()=>a(()=>import("./Ru2.js"),[]),"/node_modules/svelte-flag-icons/dist/Rw.svelte":()=>a(()=>import("./Rw2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sa.svelte":()=>a(()=>import("./Sa.js"),[]),"/node_modules/svelte-flag-icons/dist/Sb.svelte":()=>a(()=>import("./Sb.js"),[]),"/node_modules/svelte-flag-icons/dist/Sc.svelte":()=>a(()=>import("./Sc.js"),[]),"/node_modules/svelte-flag-icons/dist/Sd.svelte":()=>a(()=>import("./Sd2.js"),[]),"/node_modules/svelte-flag-icons/dist/Se.svelte":()=>a(()=>import("./Se2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sg.svelte":()=>a(()=>import("./Sg.js"),[]),"/node_modules/svelte-flag-icons/dist/Sh.svelte":()=>a(()=>import("./Sh.js"),[]),"/node_modules/svelte-flag-icons/dist/Si.svelte":()=>a(()=>import("./Si2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sj.svelte":()=>a(()=>import("./Sj.js"),[]),"/node_modules/svelte-flag-icons/dist/Sk.svelte":()=>a(()=>import("./Sk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sl.svelte":()=>a(()=>import("./Sl2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sm.svelte":()=>a(()=>import("./Sm.js"),[]),"/node_modules/svelte-flag-icons/dist/Sn.svelte":()=>a(()=>import("./Sn.js"),[]),"/node_modules/svelte-flag-icons/dist/So.svelte":()=>a(()=>import("./So.js"),[]),"/node_modules/svelte-flag-icons/dist/Sr.svelte":()=>a(()=>import("./Sr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Ss.svelte":()=>a(()=>import("./Ss2.js"),[]),"/node_modules/svelte-flag-icons/dist/St.svelte":()=>a(()=>import("./St.js"),[]),"/node_modules/svelte-flag-icons/dist/Sv.svelte":()=>a(()=>import("./Sv2.js"),[]),"/node_modules/svelte-flag-icons/dist/Sx.svelte":()=>a(()=>import("./Sx.js"),[]),"/node_modules/svelte-flag-icons/dist/Sy.svelte":()=>a(()=>import("./Sy.js"),[]),"/node_modules/svelte-flag-icons/dist/Sz.svelte":()=>a(()=>import("./Sz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ta.svelte":()=>a(()=>import("./Ta2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tc.svelte":()=>a(()=>import("./Tc.js"),[]),"/node_modules/svelte-flag-icons/dist/Td.svelte":()=>a(()=>import("./Td.js"),[]),"/node_modules/svelte-flag-icons/dist/Tf.svelte":()=>a(()=>import("./Tf.js"),[]),"/node_modules/svelte-flag-icons/dist/Tg.svelte":()=>a(()=>import("./Tg2.js"),[]),"/node_modules/svelte-flag-icons/dist/Th.svelte":()=>a(()=>import("./Th2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tj.svelte":()=>a(()=>import("./Tj.js"),[]),"/node_modules/svelte-flag-icons/dist/Tk.svelte":()=>a(()=>import("./Tk2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tl.svelte":()=>a(()=>import("./Tl.js"),[]),"/node_modules/svelte-flag-icons/dist/Tm.svelte":()=>a(()=>import("./Tm.js"),[]),"/node_modules/svelte-flag-icons/dist/Tn.svelte":()=>a(()=>import("./Tn.js"),[]),"/node_modules/svelte-flag-icons/dist/To.svelte":()=>a(()=>import("./To.js"),[]),"/node_modules/svelte-flag-icons/dist/Tr.svelte":()=>a(()=>import("./Tr2.js"),[]),"/node_modules/svelte-flag-icons/dist/Tt.svelte":()=>a(()=>import("./Tt.js"),[]),"/node_modules/svelte-flag-icons/dist/Tv.svelte":()=>a(()=>import("./Tv.js"),[]),"/node_modules/svelte-flag-icons/dist/Tw.svelte":()=>a(()=>import("./Tw.js"),[]),"/node_modules/svelte-flag-icons/dist/Tz.svelte":()=>a(()=>import("./Tz.js"),[]),"/node_modules/svelte-flag-icons/dist/Ua.svelte":()=>a(()=>import("./Ua.js"),[]),"/node_modules/svelte-flag-icons/dist/Ug.svelte":()=>a(()=>import("./Ug.js"),[]),"/node_modules/svelte-flag-icons/dist/Um.svelte":()=>a(()=>import("./Um.js"),[]),"/node_modules/svelte-flag-icons/dist/Un.svelte":()=>a(()=>import("./Un.js"),[]),"/node_modules/svelte-flag-icons/dist/Us.svelte":()=>a(()=>import("./Us.js"),[]),"/node_modules/svelte-flag-icons/dist/Uy.svelte":()=>a(()=>import("./Uy.js"),[]),"/node_modules/svelte-flag-icons/dist/Uz.svelte":()=>a(()=>import("./Uz2.js"),[]),"/node_modules/svelte-flag-icons/dist/Va.svelte":()=>a(()=>import("./Va.js"),[]),"/node_modules/svelte-flag-icons/dist/Vc.svelte":()=>a(()=>import("./Vc.js"),[]),"/node_modules/svelte-flag-icons/dist/Ve.svelte":()=>a(()=>import("./Ve.js"),[]),"/node_modules/svelte-flag-icons/dist/Vg.svelte":()=>a(()=>import("./Vg.js"),[]),"/node_modules/svelte-flag-icons/dist/Vi.svelte":()=>a(()=>import("./Vi2.js"),[]),"/node_modules/svelte-flag-icons/dist/Vn.svelte":()=>a(()=>import("./Vn.js"),[]),"/node_modules/svelte-flag-icons/dist/Vu.svelte":()=>a(()=>import("./Vu.js"),[]),"/node_modules/svelte-flag-icons/dist/Wf.svelte":()=>a(()=>import("./Wf.js"),[]),"/node_modules/svelte-flag-icons/dist/Ws.svelte":()=>a(()=>import("./Ws.js"),[]),"/node_modules/svelte-flag-icons/dist/Xk.svelte":()=>a(()=>import("./Xk.js"),[]),"/node_modules/svelte-flag-icons/dist/Xx.svelte":()=>a(()=>import("./Xx.js"),[]),"/node_modules/svelte-flag-icons/dist/Ye.svelte":()=>a(()=>import("./Ye.js"),[]),"/node_modules/svelte-flag-icons/dist/Yt.svelte":()=>a(()=>import("./Yt.js"),[]),"/node_modules/svelte-flag-icons/dist/Za.svelte":()=>a(()=>import("./Za.js"),[]),"/node_modules/svelte-flag-icons/dist/Zm.svelte":()=>a(()=>import("./Zm.js"),[]),"/node_modules/svelte-flag-icons/dist/Zw.svelte":()=>a(()=>import("./Zw.js"),[])});f[_]&&f[_]().then(m=>{n(0,s=m.default)})}}function d(u,c,_,f){let m;f?m=pa(Ti(u,c,f)+_):m=Math.floor(Math.random()*16777215);let v=(m&16711680)>>16,p=(m&65280)>>8,E=m&255;return v+p+E<150&&(v=150),v+p+E>400&&(v=0),`rgb(${v},${p},${E})`}return e.$$set=u=>{"row"in u&&n(2,r=u.row)},e.$$.update=()=>{e.$$.dirty&4&&n(1,i={bgColor:d(r.firstname,r.lastname,r.emails,r.systemName),name:Ti(r.firstname,r.lastname,r.systemName),src:o(r.avatarUrl,r.emails),initials:Oa(r.firstname,r.lastname,r.systemName)})},[s,i,r]}class pr extends oe{constructor(t){super(),re(this,t,Ia,Aa,ie,{row:2},La)}get row(){return this.$$.ctx[2]}set row(t){this.$$set({row:t}),D()}}se(pr,{row:{}},[],[],!0);function Ra(e){ce(e,"svelte-1rap1nb",".Column.svelte-1rap1nb{height:100%;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.Column.importanceColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.Column.statusColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}}")}function Da(e){let t,n,i;const r=e[2].default,s=Rt(r,e,e[1],null);return{c(){t=I("div"),s&&s.c(),y(t,"class",n="Column "+e[0]+" svelte-1rap1nb")},m(o,l){k(o,t,l),s&&s.m(t,null),i=!0},p(o,[l]){s&&s.p&&(!i||l&2)&&xt(s,r,o,o[1],i?Dt(r,o[1],l,null):wt(o[1]),null),(!i||l&1&&n!==(n="Column "+o[0]+" svelte-1rap1nb"))&&y(t,"class",n)},i(o){i||(b(s,o),i=!0)},o(o){L(s,o),i=!1},d(o){o&&P(t),s&&s.d(o)}}}function xa(e,t,n){let{$$slots:i={},$$scope:r}=t,{className:s=""}=t;return e.$$set=o=>{"className"in o&&n(0,s=o.className),"$$scope"in o&&n(1,r=o.$$scope)},[s,r,i]}class ei extends oe{constructor(t){super(),re(this,t,xa,Da,ie,{className:0},Ra)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}}se(ei,{className:{}},["default"],[],!0);function wa(e){ce(e,"svelte-vu7b5h",".groupTag.svelte-vu7b5h{display:inline-flex;align-items:center;align-self:flex-start;height:26px;padding-left:6px;color:var(--group-tag-color);background-color:var(--group-tag-background);position:relative;border-radius:6px 0 0 6px;margin-right:10px;margin-top:2px;white-space:nowrap}.groupTag.svelte-vu7b5h::after{content:'';position:absolute;top:0;right:-12px;width:12px;height:100%;background-color:var(--group-tag-background);clip-path:polygon(0 0, 10px 43%, 10px 57%, 0 100%)}span.svelte-vu7b5h{font-family:Roboto;font-size:12px;font-weight:700;line-height:20px}")}function Pa(e){let t,n,i=(e[0].name??"")+"",r;return{c(){t=I("div"),n=I("span"),r=ee(i),y(n,"class","svelte-vu7b5h"),y(t,"class","groupTag svelte-vu7b5h"),Me(t,"--group-tag-color","#"+(e[0].color??0)),Me(t,"--group-tag-background","#"+(e[0].backgroundcolor?e[0].backgroundcolor:"#000000"))},m(s,o){k(s,t,o),T(t,n),T(n,r)},p(s,[o]){o&1&&i!==(i=(s[0].name??"")+"")&&le(r,i),o&1&&Me(t,"--group-tag-color","#"+(s[0].color??0)),o&1&&Me(t,"--group-tag-background","#"+(s[0].backgroundcolor?s[0].backgroundcolor:"#000000"))},i:W,o:W,d(s){s&&P(t)}}}function ka(e,t,n){let{group:i}=t;return e.$$set=r=>{"group"in r&&n(0,i=r.group)},[i]}class vr extends oe{constructor(t){super(),re(this,t,ka,Pa,ie,{group:0},wa)}get group(){return this.$$.ctx[0]}set group(t){this.$$set({group:t}),D()}}se(vr,{group:{}},[],[],!0);function gn(e,t,n){const i=e.slice();i[2]=t[n];const r=i[1].get(i[2]);return i[3]=r,i}function pn(e){let t,n;return t=new vr({props:{group:e[3]}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&3&&(s.group=i[3]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function vn(e){let t,n,i=e[3]!==void 0&&pn(e);return{c(){i&&i.c(),t=ze()},m(r,s){i&&i.m(r,s),k(r,t,s),n=!0},p(r,s){r[3]!==void 0?i?(i.p(r,s),s&3&&b(i,1)):(i=pn(r),i.c(),b(i,1),i.m(t.parentNode,t)):i&&(he(),L(i,1,1,()=>{i=null}),ge())},i(r){n||(b(i),n=!0)},o(r){L(i),n=!1},d(r){r&&P(t),i&&i.d(r)}}}function $a(e){let t,n,i=Se(e[0]),r=[];for(let o=0;o<i.length;o+=1)r[o]=vn(gn(e,i,o));const s=o=>L(r[o],1,1,()=>{r[o]=null});return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=ze()},m(o,l){for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(o,l);k(o,t,l),n=!0},p(o,[l]){if(l&3){i=Se(o[0]);let d;for(d=0;d<i.length;d+=1){const u=gn(o,i,d);r[d]?(r[d].p(u,l),b(r[d],1)):(r[d]=vn(u),r[d].c(),b(r[d],1),r[d].m(t.parentNode,t))}for(he(),d=i.length;d<r.length;d+=1)s(d);ge()}},i(o){if(!n){for(let l=0;l<i.length;l+=1)b(r[l]);n=!0}},o(o){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)L(r[l]);n=!1},d(o){o&&P(t),Kt(r,o)}}}function Va(e,t,n){let i;K(e,rr,s=>n(1,i=s));let{groupIds:r}=t;return e.$$set=s=>{"groupIds"in s&&n(0,r=s.groupIds)},[r,i]}class Er extends oe{constructor(t){super(),re(this,t,Va,$a,ie,{groupIds:0})}get groupIds(){return this.$$.ctx[0]}set groupIds(t){this.$$set({groupIds:t}),D()}}se(Er,{groupIds:{}},[],[],!0);function Ca(e){ce(e,"svelte-1xxfpqg",`.Tag.svelte-1xxfpqg{box-sizing:border-box;display:inline-flex;color:var(--main-textcolor);align-items:center;justify-content:center;font-size:13px;font-weight:bold;line-height:20px;padding:2px 6px;margin-right:6px;margin-top:2px;border-radius:69px}.empty.svelte-1xxfpqg{display:none}.Tag.svelte-1xxfpqg:before{font-family:"la-icon-font"}.SLA.svelte-1xxfpqg{border:1px solid var(--main-lighter-textcolor);border-radius:4px;color:var(--main-lighter-textcolor)
11
+ }@media(min-width: 768px){.Tag.svelte-1xxfpqg{font-size:12px}}`)}function Sa(e){let t,n;return{c(){t=I("span"),n=ee(e[1]),y(t,"class","text")},m(i,r){k(i,t,r),T(t,n)},p(i,r){r&2&&le(n,i[1])},i:W,o:W,d(i){i&&P(t)}}}function Na(e){let t,n,i,r,s;const o=[Ma,Ha],l=[];function d(u,c){return c&2&&(t=null),t==null&&(t=!isNaN(u[1].getTime())),t?0:1}return n=d(e,-1),i=l[n]=o[n](e),{c(){i.c(),r=ze()},m(u,c){l[n].m(u,c),k(u,r,c),s=!0},p(u,c){let _=n;n=d(u,c),n===_?l[n].p(u,c):(he(),L(l[_],1,1,()=>{l[_]=null}),ge(),i=l[n],i?i.p(u,c):(i=l[n]=o[n](u),i.c()),b(i,1),i.m(r.parentNode,r))},i(u){s||(b(i),s=!0)},o(u){L(i),s=!1},d(u){u&&P(r),l[n].d(u)}}}function Ha(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=I("span"),i=ee(n),y(t,"class","invalid")},m(r,s){k(r,t,s),T(t,i)},p(r,s){s&16&&n!==(n=r[4]("Invalid data")+"")&&le(i,n)},i:W,o:W,d(r){r&&P(t)}}}function Ma(e){let t,n;return t=new Ci({props:{style:e[3],timestamp:e[1],format:dr(),relative:!0}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&8&&(s.style=i[3]),r&2&&(s.timestamp=i[1]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function Ba(e){let t,n,i,r,s,o;const l=e[6].default,d=Rt(l,e,e[5],null),u=[Na,Sa],c=[];function _(f,m){return f[1]instanceof Date?0:1}return i=_(e),r=c[i]=u[i](e),{c(){t=I("div"),d&&d.c(),n=j(),r.c(),y(t,"class",s="Tag "+e[0]+" svelte-1xxfpqg"),y(t,"style",e[2])},m(f,m){k(f,t,m),d&&d.m(t,null),T(t,n),c[i].m(t,null),o=!0},p(f,[m]){d&&d.p&&(!o||m&32)&&xt(d,l,f,f[5],o?Dt(l,f[5],m,null):wt(f[5]),null);let v=i;i=_(f),i===v?c[i].p(f,m):(he(),L(c[v],1,1,()=>{c[v]=null}),ge(),r=c[i],r?r.p(f,m):(r=c[i]=u[i](f),r.c()),b(r,1),r.m(t,null)),(!o||m&1&&s!==(s="Tag "+f[0]+" svelte-1xxfpqg"))&&y(t,"class",s),(!o||m&4)&&y(t,"style",f[2])},i(f){o||(b(d,f),b(r),o=!0)},o(f){L(d,f),L(r),o=!1},d(f){f&&P(t),d&&d.d(f),c[i].d()}}}function Fa(e,t,n){let i;K(e,Ae,c=>n(4,i=c));let{$$slots:r={},$$scope:s}=t,{text:o}=t,{className:l=""}=t,{style:d=""}=t,{timeStyle:u=""}=t;return e.$$set=c=>{"text"in c&&n(1,o=c.text),"className"in c&&n(0,l=c.className),"style"in c&&n(2,d=c.style),"timeStyle"in c&&n(3,u=c.timeStyle),"$$scope"in c&&n(5,s=c.$$scope)},e.$$.update=()=>{e.$$.dirty&3&&o===""&&n(0,l="empty")},[l,o,d,u,i,s,r]}class dt extends oe{constructor(t){super(),re(this,t,Fa,Ba,ie,{text:1,className:0,style:2,timeStyle:3},Ca)}get text(){return this.$$.ctx[1]}set text(t){this.$$set({text:t}),D()}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),D()}get timeStyle(){return this.$$.ctx[3]}set timeStyle(t){this.$$set({timeStyle:t}),D()}}se(dt,{text:{},className:{},style:{},timeStyle:{}},["default"],[],!0);function Ga(e){ce(e,"svelte-8jg5hl",".Column.userColumn{display:flex;align-items:center}div.Tag.NoGroup{align-self:flex-start;color:var(--main-lighter-textcolor);border:1px solid var(--main-lighter-textcolor);border-radius:6px}.groupTags.svelte-8jg5hl{display:none}.name.svelte-8jg5hl{font-size:14px;line-height:20px;font-weight:bold;padding-right:8px;margin-right:6px;position:relative}.name.svelte-8jg5hl::after{content:'';display:block;height:14px;width:1px;background-color:var(--main-textcolor);position:absolute;right:0;top:15%}.no.svelte-8jg5hl{font-weight:400;color:var(--main-lighter-textcolor)}.email.svelte-8jg5hl{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texts.svelte-8jg5hl{display:flex;flex-direction:row;justify-content:flex-start;overflow:hidden}@media(min-width: 900px){.name.svelte-8jg5hl{padding:0;border:none;font-size:13px}.name.svelte-8jg5hl::after{display:none}.email.svelte-8jg5hl{font-size:13px;padding:0}.groupTags.svelte-8jg5hl{display:flex}.texts.svelte-8jg5hl{display:flex;flex-direction:column;justify-content:space-around}}")}function Ua(e){let t,n;return t=new dt({props:{className:"NoGroup",text:e[3]("No Group")}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&8&&(s.text=i[3]("No Group")),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function za(e){let t,n;return t=new Er({props:{groupIds:e[0].groups}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.groupIds=i[0].groups),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function ja(e){let t,n,i,r,s=(e[2]!==void 0?e[2]:e[3]("No name"))+"",o,l,d,u,c=(e[0].emails.length!==0?e[0].emails[0]:e[3]("No email"))+"",_,f,m,v,p,E,g;t=new pr({props:{row:e[0]}});const O=[za,Ua],$=[];function C(A,U){return A[0].groups.length>0?0:1}return p=C(e),E=$[p]=O[p](e),{c(){M(t.$$.fragment),n=j(),i=I("div"),r=I("div"),o=ee(s),d=j(),u=I("div"),_=ee(c),m=j(),v=I("div"),E.c(),y(r,"class",l=fe(e[2]?"name":"no name")+" svelte-8jg5hl"),y(u,"class",f=fe(e[0].emails.length===0?"no email":"email")+" svelte-8jg5hl"),y(v,"class","groupTags svelte-8jg5hl"),y(i,"class","texts svelte-8jg5hl")},m(A,U){N(t,A,U),k(A,n,U),k(A,i,U),T(i,r),T(r,o),T(i,d),T(i,u),T(u,_),T(i,m),T(i,v),$[p].m(v,null),g=!0},p(A,U){const _e={};U&1&&(_e.row=A[0]),t.$set(_e),(!g||U&12)&&s!==(s=(A[2]!==void 0?A[2]:A[3]("No name"))+"")&&le(o,s),(!g||U&4&&l!==(l=fe(A[2]?"name":"no name")+" svelte-8jg5hl"))&&y(r,"class",l),(!g||U&9)&&c!==(c=(A[0].emails.length!==0?A[0].emails[0]:A[3]("No email"))+"")&&le(_,c),(!g||U&1&&f!==(f=fe(A[0].emails.length===0?"no email":"email")+" svelte-8jg5hl"))&&y(u,"class",f);let q=p;p=C(A),p===q?$[p].p(A,U):(he(),L($[q],1,1,()=>{$[q]=null}),ge(),E=$[p],E?E.p(A,U):(E=$[p]=O[p](A),E.c()),b(E,1),E.m(v,null))},i(A){g||(b(t.$$.fragment,A),b(E),g=!0)},o(A){L(t.$$.fragment,A),L(E),g=!1},d(A){A&&(P(n),P(i)),H(t,A),$[p].d()}}}function Ka(e){let t,n;return t=new ei({props:{className:e[1],$$slots:{default:[ja]},$$scope:{ctx:e}}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,[r]){const s={};r&2&&(s.className=i[1]),r&29&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function Ja(e,t,n){let i,r;K(e,Ae,l=>n(3,r=l));let{row:s}=t,{className:o="userColumn"}=t;return e.$$set=l=>{"row"in l&&n(0,s=l.row),"className"in l&&n(1,o=l.className)},e.$$.update=()=>{e.$$.dirty&1&&n(2,i=Ti(s.firstname,s.lastname,s.systemName))},[s,o,i,r]}class yr extends oe{constructor(t){super(),re(this,t,Ja,Ka,ie,{row:0,className:1},Ga)}get row(){return this.$$.ctx[0]}set row(t){this.$$set({row:t}),D()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),D()}}se(yr,{row:{},className:{}},[],[],!0);function Wa(e){ce(e,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function Xa(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=I("span"),i=ee(n),y(t,"class","invalid svelte-hsbbji")},m(r,s){k(r,t,s),T(t,i)},p(r,s){s&16&&n!==(n=r[4]("Invalid data")+"")&&le(i,n)},i:W,o:W,d(r){r&&P(t)}}}function Za(e){let t,n;return t=new Ci({props:{style:e[2],timestamp:e[0],format:e[1],relative:e[3]}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&4&&(s.style=i[2]),r&1&&(s.timestamp=i[0]),r&2&&(s.format=i[1]),r&8&&(s.relative=i[3]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function Ya(e){let t,n,i,r,s;const o=[Za,Xa],l=[];function d(u,c){return c&1&&(n=null),n==null&&(n=u[0]instanceof Date&&!isNaN(u[0].getTime())),n?0:1}return i=d(e,-1),r=l[i]=o[i](e),{c(){t=I("div"),r.c(),y(t,"class","Date svelte-hsbbji")},m(u,c){k(u,t,c),l[i].m(t,null),s=!0},p(u,[c]){let _=i;i=d(u,c),i===_?l[i].p(u,c):(he(),L(l[_],1,1,()=>{l[_]=null}),ge(),r=l[i],r?r.p(u,c):(r=l[i]=o[i](u),r.c()),b(r,1),r.m(t,null))},i(u){s||(b(r),s=!0)},o(u){L(r),s=!1},d(u){u&&P(t),l[i].d()}}}function qa(e,t,n){let i;K(e,Ae,d=>n(4,i=d));let{data:r}=t,{format:s=dr()}=t,{style:o=""}=t,{relative:l=!1}=t;return e.$$set=d=>{"data"in d&&n(0,r=d.data),"format"in d&&n(1,s=d.format),"style"in d&&n(2,o=d.style),"relative"in d&&n(3,l=d.relative)},[r,s,o,l,i]}class Li extends oe{constructor(t){super(),re(this,t,qa,Ya,ie,{data:0,format:1,style:2,relative:3},Wa)}get data(){return this.$$.ctx[0]}set data(t){this.$$set({data:t}),D()}get format(){return this.$$.ctx[1]}set format(t){this.$$set({format:t}),D()}get style(){return this.$$.ctx[2]}set style(t){this.$$set({style:t}),D()}get relative(){return this.$$.ctx[3]}set relative(t){this.$$set({relative:t}),D()}}se(Li,{data:{},format:{},style:{},relative:{type:"Boolean"}},[],[],!0);function Qa(e){ce(e,"svelte-1ify73x","div.Tag.IconTag{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:4px}.IconTag .Icon{display:flex;align-items:center;justify-content:center;font-size:16px;width:16px;height:16px}div.Tag.IconTag.Department{background-color:var(--department-bg-color);color:white}")}function eu(e){let t,n;return t=new we({props:{iconLaClassName:e[2]}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&4&&(s.iconLaClassName=i[2]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function tu(e){let t,n;return t=new dt({props:{text:e[0],className:e[3],style:e[1],$$slots:{default:[eu]},$$scope:{ctx:e}}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.text=i[0]),r&2&&(s.style=i[1]),r&36&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function iu(e,t,n){let{text:i}=t,{className:r=""}=t,{style:s=""}=t,{iconLaClassName:o}=t,l=`IconTag ${r}`;return e.$$set=d=>{"text"in d&&n(0,i=d.text),"className"in d&&n(4,r=d.className),"style"in d&&n(1,s=d.style),"iconLaClassName"in d&&n(2,o=d.iconLaClassName)},[i,s,o,l,r]}class ti extends oe{constructor(t){super(),re(this,t,iu,tu,ie,{text:0,className:4,style:1,iconLaClassName:2},Qa)}get text(){return this.$$.ctx[0]}set text(t){this.$$set({text:t}),D()}get className(){return this.$$.ctx[4]}set className(t){this.$$set({className:t}),D()}get style(){return this.$$.ctx[1]}set style(t){this.$$set({style:t}),D()}get iconLaClassName(){return this.$$.ctx[2]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),D()}}se(ti,{text:{},className:{},style:{},iconLaClassName:{}},[],[],!0);function nu(e){ce(e,"svelte-1q9wgt3",".IconWrapper.svelte-1q9wgt3{display:flex;justify-content:center;align-items:center;margin:4px 6px}.CombinedTag.svelte-1q9wgt3{display:inline-flex;flex-direction:row;border-radius:4px;margin-top:2px;margin-right:6px;padding-right:0}.Pending.svelte-1q9wgt3{background-color:var(--ok-color)}.Overdue.svelte-1q9wgt3{background-color:var(--notif-error-color)}")}function ru(e){let t,n,i,r;n=new we({props:{iconLaClassName:e[2]}});const s=e[7].default,o=Rt(s,e,e[6],null);return{c(){t=I("div"),M(n.$$.fragment),i=j(),o&&o.c(),y(t,"class","IconWrapper svelte-1q9wgt3")},m(l,d){k(l,t,d),N(n,t,null),k(l,i,d),o&&o.m(l,d),r=!0},p(l,d){const u={};d&4&&(u.iconLaClassName=l[2]),n.$set(u),o&&o.p&&(!r||d&64)&&xt(o,s,l,l[6],r?Dt(s,l[6],d,null):wt(l[6]),null)},i(l){r||(b(n.$$.fragment,l),b(o,l),r=!0)},o(l){L(n.$$.fragment,l),L(o,l),r=!1},d(l){l&&(P(t),P(i)),H(n),o&&o.d(l)}}}function su(e){let t,n;return t=new ti({props:{style:e[4],text:e[0],iconLaClassName:e[2],className:"Combined"}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&16&&(s.style=i[4]),r&1&&(s.text=i[0]),r&4&&(s.iconLaClassName=i[2]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function ou(e){let t,n,i,r,s,o,l;const d=[su,ru],u=[];function c(_,f){return _[0]!==""?0:1}return n=c(e),i=u[n]=d[n](e),s=new dt({props:{style:e[5],text:e[1]}}),{c(){t=I("div"),i.c(),r=j(),M(s.$$.fragment),y(t,"class",o=fe(`CombinedTag ${e[3]}`)+" svelte-1q9wgt3")},m(_,f){k(_,t,f),u[n].m(t,null),T(t,r),N(s,t,null),l=!0},p(_,[f]){let m=n;n=c(_),n===m?u[n].p(_,f):(he(),L(u[m],1,1,()=>{u[m]=null}),ge(),i=u[n],i?i.p(_,f):(i=u[n]=d[n](_),i.c()),b(i,1),i.m(t,r));const v={};f&32&&(v.style=_[5]),f&2&&(v.text=_[1]),s.$set(v),(!l||f&8&&o!==(o=fe(`CombinedTag ${_[3]}`)+" svelte-1q9wgt3"))&&y(t,"class",o)},i(_){l||(b(i),b(s.$$.fragment,_),l=!0)},o(_){L(i),L(s.$$.fragment,_),l=!1},d(_){_&&P(t),u[n].d(),H(s)}}}function lu(e,t,n){let{$$slots:i={},$$scope:r}=t,{iconText:s=""}=t,{tagText:o}=t,{iconLaClassName:l}=t,{className:d}=t,{iconTagStyles:u}=t,{tagStyles:c}=t;return e.$$set=_=>{"iconText"in _&&n(0,s=_.iconText),"tagText"in _&&n(1,o=_.tagText),"iconLaClassName"in _&&n(2,l=_.iconLaClassName),"className"in _&&n(3,d=_.className),"iconTagStyles"in _&&n(4,u=_.iconTagStyles),"tagStyles"in _&&n(5,c=_.tagStyles),"$$scope"in _&&n(6,r=_.$$scope)},[s,o,l,d,u,c,r,i]}class Si extends oe{constructor(t){super(),re(this,t,lu,ou,ie,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},nu)}get iconText(){return this.$$.ctx[0]}set iconText(t){this.$$set({iconText:t}),D()}get tagText(){return this.$$.ctx[1]}set tagText(t){this.$$set({tagText:t}),D()}get iconLaClassName(){return this.$$.ctx[2]}set iconLaClassName(t){this.$$set({iconLaClassName:t}),D()}get className(){return this.$$.ctx[3]}set className(t){this.$$set({className:t}),D()}get iconTagStyles(){return this.$$.ctx[4]}set iconTagStyles(t){this.$$set({iconTagStyles:t}),D()}get tagStyles(){return this.$$.ctx[5]}set tagStyles(t){this.$$set({tagStyles:t}),D()}}se(Si,{iconText:{},tagText:{},iconLaClassName:{},className:{},iconTagStyles:{},tagStyles:{}},["default"],[],!0);function au(e){let t,n;return t=new dt({props:{text:e[4]("No SLA"),className:"SLA"}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&16&&(s.text=i[4]("No SLA")),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function uu(e){let t,n;return t=new Si({props:{iconText:e[1],iconLaClassName:e[3].icon,tagText:e[0],className:e[3].className,iconTagStyles:"color: white",tagStyles:e[3].tagStyles}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&2&&(s.iconText=i[1]),r&8&&(s.iconLaClassName=i[3].icon),r&1&&(s.tagText=i[0]),r&8&&(s.className=i[3].className),r&8&&(s.tagStyles=i[3].tagStyles),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function du(e){let t,n,i,r;const s=[uu,au],o=[];function l(d,u){return d[2]?0:1}return t=l(e),n=o[t]=s[t](e),{c(){n.c(),i=ze()},m(d,u){o[t].m(d,u),k(d,i,u),r=!0},p(d,[u]){let c=t;t=l(d),t===c?o[t].p(d,u):(he(),L(o[c],1,1,()=>{o[c]=null}),ge(),n=o[t],n?n.p(d,u):(n=o[t]=s[t](d),n.c()),b(n,1),n.m(i.parentNode,i))},i(d){r||(b(n),r=!0)},o(d){L(n),r=!1},d(d){d&&P(i),o[t].d(d)}}}function cu(e){return!e||!(e instanceof Date)||isNaN(e)?{className:"SLATag",icon:"",tagStyles:""}:e>new Date?{className:"SLATag Pending",icon:"la-sla",tagStyles:"color: var(--ok-color); background-color: #D9FAE0; border-radius: 4px; border: 1px solid var(--ok-color); margin: 0"}:{className:"SLATag Overdue",icon:"la-sla-compliance",tagStyles:"color: var(--notif-error-color); background-color: #FEEAE8; border-radius: 4px; border: 1px solid var(--notif-error-color); margin: 0"}}function _u(e,t,n){let i,r,s;K(e,Ae,d=>n(4,s=d));let{tagText:o=s("First answer")}=t,{due:l}=t;return e.$$set=d=>{"tagText"in d&&n(0,o=d.tagText),"due"in d&&n(1,l=d.due)},e.$$.update=()=>{e.$$.dirty&2&&n(3,i=cu(l)),e.$$.dirty&2&&n(2,r=l instanceof Date&&!isNaN(l))},[o,l,r,i,s]}class br extends oe{constructor(t){super(),re(this,t,_u,du,ie,{tagText:0,due:1})}get tagText(){return this.$$.ctx[0]}set tagText(t){this.$$set({tagText:t}),D()}get due(){return this.$$.ctx[1]}set due(t){this.$$set({due:t}),D()}}se(br,{tagText:{},due:{}},[],[],!0);function fu(e){ce(e,"svelte-eafxx5",".TicketId.svelte-eafxx5{font-weight:bold;font-size:14px;line-height:20px;margin-right:14px}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:14px;line-height:20px}.Communication.svelte-eafxx5{font-size:14px;line-height:20px;display:inline-flex;align-items:center;justify-content:center;margin-right:6px}.ticketDetails.svelte-eafxx5{display:flex;align-items:center;margin-top:6px;margin-bottom:2px}@media(min-width: 900px){.Changed.svelte-eafxx5{display:none}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:13px}.TicketId.svelte-eafxx5{font-size:13px}.ticketDetails.svelte-eafxx5{margin:0}.Communication.svelte-eafxx5{font-size:13px}}")}function mu(e){let t,n,i=e[1].code+"",r,s,o,l,d,u,c,_=e[1].messagegroupsIn+"",f,m,v,p,E,g,O=e[1].messagegroupsOut+"",$,C,A,U,_e=e[2]("Created")+"",q,me,ue,J,Oe,De,F,x=e[2]("Changed")+"",R,V,w,G,z,Z,ne;return d=new we({props:{iconLaClassName:"la-incoming"}}),p=new we({props:{iconLaClassName:"la-outgoing"}}),J=new Li({props:{data:Je(e[1].datecreated)}}),G=new Li({props:{data:Je(e[1].datechanged)}}),Z=new br({props:{tagText:"",due:Je(e[1].datedue)}}),{c(){t=I("div"),n=I("span"),r=ee(i),s=j(),o=I("div"),l=I("div"),M(d.$$.fragment),u=j(),c=I("span"),f=ee(_),m=j(),v=I("div"),M(p.$$.fragment),E=j(),g=I("span"),$=ee(O),C=j(),A=I("div"),U=I("span"),q=ee(_e),me=ee(":"),ue=j(),M(J.$$.fragment),Oe=j(),De=I("div"),F=I("span"),R=ee(x),V=ee(":"),w=j(),M(G.$$.fragment),z=j(),M(Z.$$.fragment),y(n,"class","TicketId svelte-eafxx5"),y(l,"class","Communication incomingMessages svelte-eafxx5"),y(v,"class","Communication outgoingMessages svelte-eafxx5"),y(o,"class","arrows"),y(t,"class","ticketDetails svelte-eafxx5"),y(A,"class","Created svelte-eafxx5"),y(De,"class","Changed svelte-eafxx5")},m(B,Q){k(B,t,Q),T(t,n),T(n,r),T(t,s),T(t,o),T(o,l),N(d,l,null),T(l,u),T(l,c),T(c,f),T(o,m),T(o,v),N(p,v,null),T(v,E),T(v,g),T(g,$),k(B,C,Q),k(B,A,Q),T(A,U),T(U,q),T(U,me),T(A,ue),N(J,A,null),k(B,Oe,Q),k(B,De,Q),T(De,F),T(F,R),T(F,V),T(De,w),N(G,De,null),k(B,z,Q),N(Z,B,Q),ne=!0},p(B,Q){(!ne||Q&2)&&i!==(i=B[1].code+"")&&le(r,i),(!ne||Q&2)&&_!==(_=B[1].messagegroupsIn+"")&&le(f,_),(!ne||Q&2)&&O!==(O=B[1].messagegroupsOut+"")&&le($,O),(!ne||Q&4)&&_e!==(_e=B[2]("Created")+"")&&le(q,_e);const Ee={};Q&2&&(Ee.data=Je(B[1].datecreated)),J.$set(Ee),(!ne||Q&4)&&x!==(x=B[2]("Changed")+"")&&le(R,x);const Pe={};Q&2&&(Pe.data=Je(B[1].datechanged)),G.$set(Pe);const xe={};Q&2&&(xe.due=Je(B[1].datedue)),Z.$set(xe)},i(B){ne||(b(d.$$.fragment,B),b(p.$$.fragment,B),b(J.$$.fragment,B),b(G.$$.fragment,B),b(Z.$$.fragment,B),ne=!0)},o(B){L(d.$$.fragment,B),L(p.$$.fragment,B),L(J.$$.fragment,B),L(G.$$.fragment,B),L(Z.$$.fragment,B),ne=!1},d(B){B&&(P(t),P(C),P(A),P(Oe),P(De),P(z)),H(d),H(p),H(J),H(G),H(Z,B)}}}function hu(e){let t,n;return t=new ei({props:{className:e[0],$$slots:{default:[mu]},$$scope:{ctx:e}}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.className=i[0]),r&14&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function gu(e,t,n){let i;K(e,Ae,o=>n(2,i=o));let{className:r="importanceColumn"}=t,{row:s}=t;return e.$$set=o=>{"className"in o&&n(0,r=o.className),"row"in o&&n(1,s=o.row)},[r,s,i]}class Tr extends oe{constructor(t){super(),re(this,t,gu,hu,ie,{className:0,row:1},fu)}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}get row(){return this.$$.ctx[1]}set row(t){this.$$set({row:t}),D()}}se(Tr,{className:{},row:{}},[],[],!0);function pu(e){ce(e,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function vu(e){let t,n;return t=new dt({props:{style:"color: #"+e[2]+"; background: #"+e[1]+"99; border: 1px solid #"+e[1],text:e[0],className:"TicketTag"}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,[r]){const s={};r&6&&(s.style="color: #"+i[2]+"; background: #"+i[1]+"99; border: 1px solid #"+i[1]),r&1&&(s.text=i[0]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function Eu(e,t,n){let i,r,s,o;K(e,nr,d=>n(4,o=d));let{tagId:l}=t;return e.$$set=d=>{"tagId"in d&&n(3,l=d.tagId)},e.$$.update=()=>{var d,u,c;e.$$.dirty&24&&n(2,i=((d=o[l])==null?void 0:d.color)??0),e.$$.dirty&24&&n(1,r=((u=o[l])==null?void 0:u.backgroundcolor)??0),e.$$.dirty&24&&n(0,s=((c=o[l])==null?void 0:c.name)??"")},[s,r,i,l,o]}class Lr extends oe{constructor(t){super(),re(this,t,Eu,vu,ie,{tagId:3},pu)}get tagId(){return this.$$.ctx[3]}set tagId(t){this.$$set({tagId:t}),D()}}se(Lr,{tagId:{}},[],[],!0);function En(e,t,n){const i=e.slice();return i[1]=t[n],i}function yn(e){let t,n;return t=new Lr({props:{tagId:e[1]}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.tagId=i[1]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function yu(e){let t,n,i=Se(e[0]),r=[];for(let o=0;o<i.length;o+=1)r[o]=yn(En(e,i,o));const s=o=>L(r[o],1,1,()=>{r[o]=null});return{c(){t=I("span");for(let o=0;o<r.length;o+=1)r[o].c()},m(o,l){k(o,t,l);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(t,null);n=!0},p(o,[l]){if(l&1){i=Se(o[0]);let d;for(d=0;d<i.length;d+=1){const u=En(o,i,d);r[d]?(r[d].p(u,l),b(r[d],1)):(r[d]=yn(u),r[d].c(),b(r[d],1),r[d].m(t,null))}for(he(),d=i.length;d<r.length;d+=1)s(d);ge()}},i(o){if(!n){for(let l=0;l<i.length;l+=1)b(r[l]);n=!0}},o(o){r=r.filter(Boolean);for(let l=0;l<r.length;l+=1)L(r[l]);n=!1},d(o){o&&P(t),Kt(r,o)}}}function bu(e,t,n){let{tags:i}=t;return e.$$set=r=>{"tags"in r&&n(0,i=r.tags)},[i]}class Ar extends oe{constructor(t){super(),re(this,t,bu,yu,ie,{tags:0})}get tags(){return this.$$.ctx[0]}set tags(t){this.$$set({tags:t}),D()}}se(Ar,{tags:{}},[],[],!0);function Tu(e){ce(e,"svelte-q9af99",".Tag.IconTag.StatusTag .text{display:none}@media(min-width: 768px){.Tag.IconTag.StatusTag .text{display:inline}}")}function Lu(e){let t,n;return t=new ti({props:{className:"StatusTag "+e[1][e[0]].text,style:"color: "+Ve(e[0]).text+"; background-color: "+Ve(e[0]).bg+"; border-color: "+Ve(e[0]).border,text:e[1][e[0]].text,iconLaClassName:e[1][e[0]].icon}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.className="StatusTag "+i[1][i[0]].text),r&1&&(s.style="color: "+Ve(i[0]).text+"; background-color: "+Ve(i[0]).bg+"; border-color: "+Ve(i[0]).border),r&1&&(s.text=i[1][i[0]].text),r&1&&(s.iconLaClassName=i[1][i[0]].icon),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function Au(e,t,n){let i;K(e,Ae,o=>n(2,i=o));let{status:r}=t;const s={A:{text:i("Answered"),icon:"la-ticket-answered"},T:{text:i("Chatting"),icon:"la-chatting"},P:{text:i("Calling"),icon:"la-call"},X:{text:i("Deleted"),icon:"la-ticket-deleted"},B:{text:i("Spam"),icon:"la-spam"},I:{text:i("Init"),icon:""},R:{text:i("Resolved"),icon:"la-ticket-resolved"},N:{text:i("New"),icon:"la-ticket-new"},C:{text:i("Open"),icon:"la-ticket-open"},W:{text:i("Postponed"),icon:"la-ticket-postponed"}};return e.$$set=o=>{"status"in o&&n(0,r=o.status)},[r,s]}class Or extends oe{constructor(t){super(),re(this,t,Au,Lu,ie,{status:0},Tu)}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),D()}}se(Or,{status:{}},[],[],!0);function Ou(e){let t,n;return t=new ti({props:{className:Rr,text:e[0].departmentname,iconLaClassName:Ir}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.text=i[0].departmentname),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function Iu(e){let t,n;return t=new Si({props:{iconText:e[0].departmentname,tagText:e[0].agentname,iconLaClassName:Ir,className:Rr,iconTagStyles:e[1],tagStyles:e[2]}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.iconText=i[0].departmentname),r&1&&(s.tagText=i[0].agentname),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function Ru(e){let t,n,i,r,s;const o=[Iu,Ou],l=[];function d(u,c){return c&1&&(t=null),t==null&&(t=u[0].agentname.trim()!==""),t?0:1}return n=d(e,-1),i=l[n]=o[n](e),{c(){i.c(),r=ze()},m(u,c){l[n].m(u,c),k(u,r,c),s=!0},p(u,[c]){let _=n;n=d(u,c),n===_?l[n].p(u,c):(he(),L(l[_],1,1,()=>{l[_]=null}),ge(),i=l[n],i?i.p(u,c):(i=l[n]=o[n](u),i.c()),b(i,1),i.m(r.parentNode,r))},i(u){s||(b(i),s=!0)},o(u){L(i),s=!1},d(u){u&&P(r),l[n].d(u)}}}const Ir="la-department",Rr="Department";function Du(e,t,n){let{data:i}=t,r="color: white; background-color: var(--department-bg-color); margin-top: 0;",s="color: var(--tag-department-agent-text); background-color: var(--tag-department-agent-bg); border-radius: 4px; margin: 0";return e.$$set=o=>{"data"in o&&n(0,i=o.data)},[i,r,s]}class Dr extends oe{constructor(t){super(),re(this,t,Du,Ru,ie,{data:0})}get data(){return this.$$.ctx[0]}set data(t){this.$$set({data:t}),D()}}se(Dr,{data:{}},[],[],!0);function xu(e){ce(e,"svelte-ccmpo7",`.subject.svelte-ccmpo7{font-size:14px;font-weight:bold;line-height:20px;margin:0}.preview.svelte-ccmpo7{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px;margin:0 0 4px;line-height:20px;font-size:14px}.no-text.svelte-ccmpo7{color:var(--main-lighter-textcolor)}.additional.svelte-ccmpo7{display:flex}.CombinedTag.Department{background-color:var(--department-bg-color)}@media(min-width: 768px){.subject.svelte-ccmpo7{font-size:13px
12
+ }.preview.svelte-ccmpo7{font-size:13px;margin:0}}`)}function wu(e){let t,n=e[0].subject+"",i,r,s,o=(e[0].preview?e[0].preview:e[2]("No text for preview"))+"",l,d,u,c,_,f,m,v,p,E;return _=new Or({props:{status:e[0].status}}),m=new Dr({props:{data:e[0]}}),p=new Ar({props:{tags:e[0].tags}}),{c(){t=I("h1"),i=ee(n),r=j(),s=I("p"),l=ee(o),u=j(),c=I("div"),M(_.$$.fragment),f=j(),M(m.$$.fragment),v=j(),M(p.$$.fragment),y(t,"class","subject svelte-ccmpo7"),y(s,"class",d=fe(e[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"),y(c,"class","additional svelte-ccmpo7")},m(g,O){k(g,t,O),T(t,i),k(g,r,O),k(g,s,O),T(s,l),k(g,u,O),k(g,c,O),N(_,c,null),T(c,f),N(m,c,null),T(c,v),N(p,c,null),E=!0},p(g,O){(!E||O&1)&&n!==(n=g[0].subject+"")&&le(i,n),(!E||O&5)&&o!==(o=(g[0].preview?g[0].preview:g[2]("No text for preview"))+"")&&le(l,o),(!E||O&1&&d!==(d=fe(g[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"))&&y(s,"class",d);const $={};O&1&&($.status=g[0].status),_.$set($);const C={};O&1&&(C.data=g[0]),m.$set(C);const A={};O&1&&(A.tags=g[0].tags),p.$set(A)},i(g){E||(b(_.$$.fragment,g),b(m.$$.fragment,g),b(p.$$.fragment,g),E=!0)},o(g){L(_.$$.fragment,g),L(m.$$.fragment,g),L(p.$$.fragment,g),E=!1},d(g){g&&(P(t),P(r),P(s),P(u),P(c)),H(_),H(m),H(p)}}}function Pu(e){let t,n;return t=new ei({props:{className:e[1],$$slots:{default:[wu]},$$scope:{ctx:e}}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,[r]){const s={};r&2&&(s.className=i[1]),r&13&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function ku(e,t,n){let i;K(e,Ae,o=>n(2,i=o));let{row:r}=t,{className:s="statusColumn"}=t;return e.$$set=o=>{"row"in o&&n(0,r=o.row),"className"in o&&n(1,s=o.className)},[r,s,i]}class xr extends oe{constructor(t){super(),re(this,t,ku,Pu,ie,{row:0,className:1},xu)}get row(){return this.$$.ctx[0]}set row(t){this.$$set({row:t}),D()}get className(){return this.$$.ctx[1]}set className(t){this.$$set({className:t}),D()}}se(xr,{row:{},className:{}},[],[],!0);function $u(e){ce(e,"svelte-d34xx3",`.Body.svelte-d34xx3.svelte-d34xx3{padding:0px 20px}.Row.svelte-d34xx3.svelte-d34xx3{display:grid;grid-template-columns:60px 1fr;grid-template-rows:auto;grid-template-areas:"checkbox user"
13
13
  "checkbox status"
14
14
  "checkbox importance";border-radius:12px;box-shadow:var(--header-tickets-shadow);border-bottom:1px solid var(--menu-selected-bg);padding:4px 0;margin-top:8px;background-color:var(--main-background);cursor:pointer}.Row.svelte-d34xx3.svelte-d34xx3:hover{background-color:var(--menu-hover-bg)}.Row.Selected.svelte-d34xx3.svelte-d34xx3{background-color:var(--ticket-selected-bg) !important}.UserColumn.svelte-d34xx3.svelte-d34xx3{grid-area:user}.StatusColumn.svelte-d34xx3.svelte-d34xx3{grid-area:status;display:flex;flex-direction:column;justify-content:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ImportanceColumn.svelte-d34xx3.svelte-d34xx3{grid-area:importance}.Checkbox.svelte-d34xx3.svelte-d34xx3{grid-area:checkbox;position:relative}.StatusBar.svelte-d34xx3.svelte-d34xx3{position:absolute;left:0;top:10%;content:"";width:6px;height:80%;margin-left:8px;border-radius:69px;transition:width 0.1s ease}.Row.svelte-d34xx3:hover .StatusBar.svelte-d34xx3{width:10px}input.svelte-d34xx3.svelte-d34xx3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(min-width: 768px){.Row.svelte-d34xx3.svelte-d34xx3{display:grid;grid-template-areas:"checkbox user importance"
15
- "checkbox status importance";grid-template-columns:60px 3fr 1fr;height:110px;column-gap:6px}}@media(min-width: 900px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-areas:"checkbox user status importance";grid-template-columns:60px 180px auto 190px;height:72px}}@media(min-width: 1300px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-columns:60px 260px auto 230px}}`)}function vn(e,t,i){const n=e.slice();return n[9]=t[i],n[10]=t,n[11]=i,n}function En(e){let t,i,n,s,r,o,l,d,u,c,_,f,m,p,v,E,g,A,$;function x(){e[5].call(r,e[11])}function O(...se){return e[6](e[11],...se)}u=new hs({props:{row:e[9]}}),f=new As({props:{row:e[9]}}),v=new ps({props:{row:e[9]}});function J(){return e[7](e[9])}function X(...se){return e[8](e[9],...se)}return{c(){t=R("div"),i=R("div"),n=R("div"),s=W(),r=R("input"),l=W(),d=R("div"),G(u.$$.fragment),c=W(),_=R("div"),G(f.$$.fragment),m=W(),p=R("div"),G(v.$$.fragment),y(n,"class","StatusBar svelte-d34xx3"),ei(n,"background-color",Ve(e[9].status).border),y(r,"type","checkbox"),r.__value=o=e[9].conversationid,Bi(r,r.__value),y(r,"class","svelte-d34xx3"),y(i,"class","Checkbox svelte-d34xx3"),ei(i,"position","relative"),y(d,"class","UserColumn svelte-d34xx3"),y(_,"class","StatusColumn svelte-d34xx3"),y(p,"class","ImportanceColumn svelte-d34xx3"),y(t,"class",E="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3")},m(se,V){C(se,t,V),T(t,i),T(i,n),T(i,s),T(i,r),r.checked=e[1][e[11]].__selected,T(t,l),T(t,d),M(u,d,null),T(t,c),T(t,_),M(f,_,null),T(t,m),T(t,p),M(v,p,null),g=!0,A||($=[ge(r,"change",x),ge(r,"click",ai(O)),ge(i,"click",ai(bu)),ge(t,"click",J),ge(t,"mousedown",X)],A=!0)},p(se,V){e=se,(!g||V&2)&&ei(n,"background-color",Ve(e[9].status).border),(!g||V&2&&o!==(o=e[9].conversationid))&&(r.__value=o,Bi(r,r.__value)),V&2&&(r.checked=e[1][e[11]].__selected);const H={};V&2&&(H.row=e[9]),u.$set(H);const z={};V&2&&(z.row=e[9]),f.$set(z);const de={};V&2&&(de.row=e[9]),v.$set(de),(!g||V&2&&E!==(E="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3"))&&y(t,"class",E)},i(se){g||(b(u.$$.fragment,se),b(f.$$.fragment,se),b(v.$$.fragment,se),g=!0)},o(se){L(u.$$.fragment,se),L(f.$$.fragment,se),L(v.$$.fragment,se),g=!1},d(se){se&&k(t),B(u),B(f),B(v),A=!1,ke($)}}}function Tu(e){let t,i,n,s=Se(e[1]),r=[];for(let u=0;u<s.length;u+=1)r[u]=En(vn(e,s,u));const o=u=>L(r[u],1,1,()=>{r[u]=null}),l=e[4].default,d=Rt(l,e,e[3],null);return{c(){t=R("div");for(let u=0;u<r.length;u+=1)r[u].c();i=W(),d&&d.c(),y(t,"class","Body svelte-d34xx3")},m(u,c){C(u,t,c);for(let _=0;_<r.length;_+=1)r[_]&&r[_].m(t,null);T(t,i),d&&d.m(t,null),n=!0},p(u,[c]){if(c&7){s=Se(u[1]);let _;for(_=0;_<s.length;_+=1){const f=vn(u,s,_);r[_]?(r[_].p(f,c),b(r[_],1)):(r[_]=En(f),r[_].c(),b(r[_],1),r[_].m(t,i))}for(ye(),_=s.length;_<r.length;_+=1)o(_);Te()}d&&d.p&&(!n||c&8)&&Dt(d,l,u,u[3],n?It(l,u[3],c,null):wt(u[3]),null)},i(u){if(!n){for(let c=0;c<s.length;c+=1)b(r[c]);b(d,u),n=!0}},o(u){r=r.filter(Boolean);for(let c=0;c<r.length;c+=1)L(r[c]);L(d,u),n=!1},d(u){u&&k(t),zt(r,u),d&&d.d(u)}}}const bu=()=>{};function Lu(e,t,i){let n;Z(e,Oe,f=>i(1,n=f));let{$$slots:s={},$$scope:r}=t,{rowMiddleClickHandler:o}=t;function l(f,m){if(f.shiftKey){let p=n.findIndex(v=>v.__selected);if(p!==-1){let v=Math.min(p,m),E=Math.max(p,m);for(let g=v;g<=E;g++)Hs(Oe,n[g].__selected=!0,n)}}}function d(f){n[f].__selected=this.checked,Oe.set(n)}const u=(f,m)=>l(m,f),c=f=>location.assign("#Conversation;id="+f.conversationid),_=(f,m)=>{m.button===1&&o&&(o(f.conversationid),m.preventDefault(),m.stopPropagation())};return e.$$set=f=>{"rowMiddleClickHandler"in f&&i(0,o=f.rowMiddleClickHandler),"$$scope"in f&&i(3,r=f.$$scope)},[o,n,l,r,s,d,u,c,_]}class Os extends ue{constructor(t){super(),le(this,t,Lu,Tu,oe,{rowMiddleClickHandler:0},yu)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),D()}}ae(Os,{rowMiddleClickHandler:{}},["default"],[],!0);function Au(e){me(e,"svelte-1nok758","div.svelte-1nok758{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto}")}function Ou(e){let t,i,n;return{c(){t=R("div"),i=R("p"),n=ne(e[0]),y(t,"class","svelte-1nok758")},m(s,r){C(s,t,r),T(t,i),T(i,n)},p(s,[r]){r&1&&_e(n,s[0])},i:q,o:q,d(s){s&&k(t)}}}function Ru(e,t,i){let n,s,r,o,l,d;return Z(e,Re,u=>i(1,s=u)),Z(e,Be,u=>i(2,r=u)),Z(e,Oe,u=>i(3,o=u)),Z(e,is,u=>i(4,l=u)),Z(e,Ye,u=>i(5,d=u)),e.$$.update=()=>{e.$$.dirty&62&&i(0,n=d?s("Loading..."):l?s("Loading failed. Please try again later."):!o||o.length===0?s("No results match your filter. Try broadening the search criteria."):r==null?s("All data loaded"):s("Load more data"))},[n,s,r,o,l,d]}class Rs extends ue{constructor(t){super(),le(this,t,Ru,Ou,oe,{},Au)}}ae(Rs,{},[],[],!0);function Iu(e){me(e,"svelte-1srt8g7",`button.SortingButton{width:calc(100% - 8px);text-align:left;font-weight:normal;margin:0 0 0 30px}button.SortingButton.Selected{width:100%;text-align:left;font-weight:bold}.radio-option.svelte-1srt8g7 input[type="radio"].svelte-1srt8g7{display:none}.radio-option.svelte-1srt8g7.svelte-1srt8g7{display:flex;align-items:center;position:relative;width:calc(100% - 8px);padding:6px 10px;color:var(--main-textcolor);cursor:pointer}.radio-option.svelte-1srt8g7.svelte-1srt8g7::before{content:'';display:inline-block;width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid var(--menu-selected-bg);background-color:white}.selected.svelte-1srt8g7.svelte-1srt8g7{font-weight:700}.selected.svelte-1srt8g7.svelte-1srt8g7::before{width:10px;height:10px;border:5px solid var(--ticket-status-chat-background)}.radio-option.svelte-1srt8g7.svelte-1srt8g7:hover{background:var(--menu-hover-bg)}.Title.svelte-1srt8g7.svelte-1srt8g7{width:100%;margin:4px 0 12px 10px;color:var(--main-textcolor);font-size:13px;font-style:normal;font-weight:700;line-height:20px;font-family:'Roboto', sans-serif}.Title.svelte-1srt8g7.svelte-1srt8g7::after{content:'';position:absolute;left:10px;right:10px;bottom:calc(100% - 37px);height:1px;background-color:var(--menu-selected-bg)}.modal.svelte-1srt8g7.svelte-1srt8g7{min-width:200px;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:4px;background-color:var(--main-background);border:none;border-radius:6px;overflow:hidden;z-index:99999;box-shadow:0px 1px 3px 0px rgba(30, 34, 39, 0.12), 0px 8px 24px 0px rgba(30, 34, 39, 0.10)}`)}function yn(e,t,i){const n=e.slice();return n[9]=t[i],n}function Tn(e){let t,i,n,s,r=e[9].label+"",o,l,d,u,c;return{c(){t=R("label"),i=R("input"),s=W(),o=ne(r),l=W(),y(i,"type","radio"),y(i,"name","sorting"),i.value=e[9].value,i.checked=n=e[0]&&e[0].value===e[9].value,y(i,"class","svelte-1srt8g7"),y(t,"class",d=he(e[0].value===e[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")},m(_,f){C(_,t,f),T(t,i),T(t,s),T(t,o),T(t,l),u||(c=ge(i,"click",e[5]),u=!0)},p(_,f){f&1&&n!==(n=_[0]&&_[0].value===_[9].value)&&(i.checked=n),f&1&&d!==(d=he(_[0].value===_[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")&&y(t,"class",d)},d(_){_&&k(t),u=!1,c()}}}function Du(e){let t,i,n=e[3]("Sort by")+"",s,r,o=Se(e[4]),l=[];for(let d=0;d<o.length;d+=1)l[d]=Tn(yn(e,o,d));return{c(){t=R("dialog"),i=R("span"),s=ne(n),r=W();for(let d=0;d<l.length;d+=1)l[d].c();y(i,"class","Title svelte-1srt8g7"),y(t,"class","modal svelte-1srt8g7"),y(t,"style",e[1])},m(d,u){C(d,t,u),T(t,i),T(i,s),T(t,r);for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(t,null);e[7](t)},p(d,[u]){if(u&8&&n!==(n=d[3]("Sort by")+"")&&_e(s,n),u&49){o=Se(d[4]);let c;for(c=0;c<o.length;c+=1){const _=yn(d,o,c);l[c]?l[c].p(_,u):(l[c]=Tn(_),l[c].c(),l[c].m(t,null))}for(;c<l.length;c+=1)l[c].d(1);l.length=o.length}u&2&&y(t,"style",d[1])},i:q,o:q,d(d){d&&k(t),zt(l,d),e[7](null)}}}function wu(e,t,i){let n;Z(e,Re,f=>i(3,n=f));let{currentFilter:s}=t,{closeModal:r=()=>u.close()}=t,{style:o=""}=t;const l=On(),d=[{value:"Datedue",label:n("Importance"),sort:ft.Datedue,dir:!1},{value:"Created-newest",label:n("Date created - Newest"),sort:ft.Datecreated,dir:!1},{value:"Created-oldest",label:n("Date created - Oldest"),sort:ft.Datecreated,dir:!0},{value:"Changed-newest",label:n("Date changed - Newest"),sort:ft.Datechanged,dir:!1},{value:"Changed-oldest",label:n("Date changed - Oldest"),sort:ft.Datechanged,dir:!0}];let u;function c(f){const m=d.find(p=>p.value===f.target.value);i(0,s=m),l("filterChange",{option:m}),r()}function _(f){qe[f?"unshift":"push"](()=>{u=f,i(2,u)})}return e.$$set=f=>{"currentFilter"in f&&i(0,s=f.currentFilter),"closeModal"in f&&i(6,r=f.closeModal),"style"in f&&i(1,o=f.style)},[s,o,u,n,d,c,r,_]}class Is extends ue{constructor(t){super(),le(this,t,wu,Du,oe,{currentFilter:0,closeModal:6,style:1},Iu)}get currentFilter(){return this.$$.ctx[0]}set currentFilter(t){this.$$set({currentFilter:t}),D()}get closeModal(){return this.$$.ctx[6]}set closeModal(t){this.$$set({closeModal:t}),D()}get style(){return this.$$.ctx[1]}set style(t){this.$$set({style:t}),D()}}ae(Is,{currentFilter:{},closeModal:{},style:{}},[],[],!0);function Pu(e){me(e,"svelte-657q9o",".backdrop.svelte-657q9o{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:100}")}function xu(e){let t,i,n;return{c(){t=R("div"),y(t,"class","backdrop svelte-657q9o")},m(s,r){C(s,t,r),i||(n=ge(t,"click",ai(function(){jt(e[0])&&e[0].apply(this,arguments)})),i=!0)},p(s,[r]){e=s},i:q,o:q,d(s){s&&k(t),i=!1,n()}}}function ku(e,t,i){let{onClick:n}=t;return e.$$set=s=>{"onClick"in s&&i(0,n=s.onClick)},[n]}class Ds extends ue{constructor(t){super(),le(this,t,ku,xu,oe,{onClick:0},Pu)}get onClick(){return this.$$.ctx[0]}set onClick(t){this.$$set({onClick:t}),D()}}ae(Ds,{onClick:{}},[],[],!0);function Cu(e){me(e,"svelte-1od4wyj",".load.svelte-1od4wyj{display:block}.container.svelte-1od4wyj{width:100%;flex-grow:1;flex-basis:0;overflow-y:scroll;overflow-x:hidden;border-spacing:4px 5px;border:none}@media screen and (min-width: 768px){.load.svelte-1od4wyj{width:100%}}")}function Vu(e){let t,i,n,s,r,o;return n=new Rs({}),{c(){t=R("div"),i=R("div"),G(n.$$.fragment),y(i,"class","load svelte-1od4wyj"),y(t,"class","load svelte-1od4wyj")},m(l,d){C(l,t,d),T(t,i),M(n,i,null),e[11](i),s=!0,r||(o=ge(i,"click",e[12]),r=!0)},p:q,i(l){s||(b(n.$$.fragment,l),s=!0)},o(l){L(n.$$.fragment,l),s=!1},d(l){l&&k(t),B(n),e[11](null),r=!1,o()}}}function bn(e){let t,i,n,s;return t=new Is({props:{closeModal:e[8],currentFilter:e[5],style:e[4]}}),t.$on("filterChange",e[10]),n=new Ds({props:{onClick:e[8]}}),{c(){G(t.$$.fragment),i=W(),G(n.$$.fragment)},m(r,o){M(t,r,o),C(r,i,o),M(n,r,o),s=!0},p(r,o){const l={};o&32&&(l.currentFilter=r[5]),o&16&&(l.style=r[4]),t.$set(l)},i(r){s||(b(t.$$.fragment,r),b(n.$$.fragment,r),s=!0)},o(r){L(t.$$.fragment,r),L(n.$$.fragment,r),s=!1},d(r){r&&k(i),B(t,r),B(n,r)}}}function $u(e){let t,i,n,s,r,o;i=new us({props:{currentFilter:e[5].label}}),i.$on("openModal",e[9]),s=new Os({props:{rowMiddleClickHandler:e[0],$$slots:{default:[Vu]},$$scope:{ctx:e}}});let l=e[3]&&bn(e);return{c(){t=R("div"),G(i.$$.fragment),n=W(),G(s.$$.fragment),r=W(),l&&l.c(),y(t,"class","container svelte-1od4wyj")},m(d,u){C(d,t,u),M(i,t,null),T(t,n),M(s,t,null),T(t,r),l&&l.m(t,null),e[13](t),o=!0},p(d,[u]){const c={};u&32&&(c.currentFilter=d[5].label),i.$set(c);const _={};u&1&&(_.rowMiddleClickHandler=d[0]),u&16578&&(_.$$scope={dirty:u,ctx:d}),s.$set(_),d[3]?l?(l.p(d,u),u&8&&b(l,1)):(l=bn(d),l.c(),b(l,1),l.m(t,null)):l&&(ye(),L(l,1,1,()=>{l=null}),Te())},i(d){o||(b(i.$$.fragment,d),b(s.$$.fragment,d),b(l),o=!0)},o(d){L(i.$$.fragment,d),L(s.$$.fragment,d),L(l),o=!1},d(d){d&&k(t),B(i),B(s),l&&l.d(),e[13](null)}}}function Su(e,t,i){let n,s,r;Z(e,vt,g=>i(6,s=g)),Z(e,Be,g=>i(7,r=g));let{rowMiddleClickHandler:o}=t,l,d,u=!1,c="";Kt(()=>{const g=localStorage.getItem("TicketGridCurrentFilter");g&&i(5,n=JSON.parse(g));const A=new IntersectionObserver($=>{$[0].isIntersecting&&nt()},{root:d,threshold:.5});return A.observe(l),()=>A.unobserve(l)});function _(){i(3,u=!1)}function f(g){i(3,u=!0),i(4,c=g.detail.dialogStyles)}function m(g){_(),console.log("filter changed: "+g.detail.option.sort+" "+g.detail.option.dir),g.detail.option.value!==n.value&&(i(5,n=g.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(n)),qt.set(n.dir),ki.set(n.sort))}function p(g){qe[g?"unshift":"push"](()=>{l=g,i(1,l)})}const v=()=>nt(s&&!r);function E(g){qe[g?"unshift":"push"](()=>{d=g,i(2,d)})}return e.$$set=g=>{"rowMiddleClickHandler"in g&&i(0,o=g.rowMiddleClickHandler)},i(5,n={value:"Datedue",label:"Importance"}),[o,l,d,u,c,n,s,r,_,f,m,p,v,E]}class ws extends ue{constructor(t){super(),le(this,t,Su,$u,oe,{rowMiddleClickHandler:0},Cu)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),D()}}ae(ws,{rowMiddleClickHandler:{}},[],[],!0);class Nu{constructor(t,i){const n=new Pi({apiKey:t,basePath:i+"/api/v3"});this.api=new es(n)}async load(){let t=await this.api.getTagsGridList();t=t.reduce((i,n)=>(i[n.tagid]=n,i),{}),ts.set(t)}}function Hu(e){me(e,"svelte-10fvxzv","button.svelte-10fvxzv{padding:10px;margin:5px;border:none;border-radius:5px;cursor:pointer;font-size:13px;font-weight:600}")}function Mu(e){let t,i,n,s,r;const o=e[4].default,l=Rt(o,e,e[3],null);return{c(){t=R("button"),l&&l.c(),y(t,"class",i=he(e[0])+" svelte-10fvxzv")},m(d,u){C(d,t,u),l&&l.m(t,null),n=!0,s||(r=ge(t,"click",e[1]),s=!0)},p(d,[u]){l&&l.p&&(!n||u&8)&&Dt(l,o,d,d[3],n?It(o,d[3],u,null):wt(d[3]),null),(!n||u&1&&i!==(i=he(d[0])+" svelte-10fvxzv"))&&y(t,"class",i)},i(d){n||(b(l,d),n=!0)},o(d){L(l,d),n=!1},d(d){d&&k(t),l&&l.d(d),s=!1,r()}}}function Bu(e,t,i){let{$$slots:n={},$$scope:s}=t,{onAction:r=d=>{}}=t,{className:o=""}=t;function l(d){r(d)}return e.$$set=d=>{"onAction"in d&&i(2,r=d.onAction),"className"in d&&i(0,o=d.className),"$$scope"in d&&i(3,s=d.$$scope)},[o,l,r,s,n]}class bi extends ue{constructor(t){super(),le(this,t,Bu,Mu,oe,{onAction:2,className:0},Hu)}get onAction(){return this.$$.ctx[2]}set onAction(t){this.$$set({onAction:t}),D()}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}}ae(bi,{onAction:{},className:{}},["default"],[],!0);function Fu(e){me(e,"svelte-19qi61t",".NoTickets.svelte-19qi61t{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}p.svelte-19qi61t{max-width:450px;font-size:13px;font-weight:400;text-align:center}h1.svelte-19qi61t{font-size:20px;font-weight:600;margin:50px auto 0 auto}img.svelte-19qi61t{max-width:300px}")}function Gu(e){let t,i,n=e[2]("Change filter")+"",s,r;return t=new Pe({props:{className:"FilterIcon",iconLaClassName:"la-tune"}}),{c(){G(t.$$.fragment),i=W(),s=ne(n)},m(o,l){M(t,o,l),C(o,i,l),C(o,s,l),r=!0},p(o,l){(!r||l&4)&&n!==(n=o[2]("Change filter")+"")&&_e(s,n)},i(o){r||(b(t.$$.fragment,o),r=!0)},o(o){L(t.$$.fragment,o),r=!1},d(o){o&&(k(i),k(s)),B(t,o)}}}function Uu(e){let t,i,n=e[2]("Configure chat button")+"",s,r;return t=new Pe({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){G(t.$$.fragment),i=W(),s=ne(n)},m(o,l){M(t,o,l),C(o,i,l),C(o,s,l),r=!0},p(o,l){(!r||l&4)&&n!==(n=o[2]("Configure chat button")+"")&&_e(s,n)},i(o){r||(b(t.$$.fragment,o),r=!0)},o(o){L(t.$$.fragment,o),r=!1},d(o){o&&(k(i),k(s)),B(t,o)}}}function ju(e){let t,i,n,s,r,o=e[2]("No tickets found")+"",l,d,u,c=e[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"",_,f,m,p,v,E,g;return p=new bi({props:{className:"Filter",onAction:e[3],$$slots:{default:[Gu]},$$scope:{ctx:e}}}),E=new bi({props:{className:"Configure",onAction:e[4],$$slots:{default:[Uu]},$$scope:{ctx:e}}}),{c(){t=R("div"),i=R("img"),s=W(),r=R("h1"),l=ne(o),d=W(),u=R("p"),_=ne(c),f=W(),m=R("div"),G(p.$$.fragment),v=W(),G(E.$$.fragment),y(i,"alt","No results placeholder"),Mt(i.src,n=e[0]+"/themes/agent/obsidian/img/no-result.svg")||y(i,"src",n),y(i,"class","svelte-19qi61t"),y(r,"class","svelte-19qi61t"),y(u,"class","svelte-19qi61t"),y(m,"class","Buttons"),y(t,"class","NoTickets svelte-19qi61t")},m(A,$){C(A,t,$),T(t,i),T(t,s),T(t,r),T(r,l),T(t,d),T(t,u),T(u,_),T(t,f),T(t,m),M(p,m,null),T(m,v),M(E,m,null),g=!0},p(A,[$]){(!g||$&1&&!Mt(i.src,n=A[0]+"/themes/agent/obsidian/img/no-result.svg"))&&y(i,"src",n),(!g||$&4)&&o!==(o=A[2]("No tickets found")+"")&&_e(l,o),(!g||$&4)&&c!==(c=A[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"")&&_e(_,c);const x={};$&2&&(x.onAction=A[3]),$&36&&(x.$$scope={dirty:$,ctx:A}),p.$set(x);const O={};$&36&&(O.$$scope={dirty:$,ctx:A}),E.$set(O)},i(A){g||(b(p.$$.fragment,A),b(E.$$.fragment,A),g=!0)},o(A){L(p.$$.fragment,A),L(E.$$.fragment,A),g=!1},d(A){A&&k(t),B(p),B(E)}}}function zu(e,t,i){let n;Z(e,Re,d=>i(2,n=d));let{basePath:s}=t,{changeFilterHandler:r=()=>{}}=t;const o=()=>r(),l=()=>window.location.hash="Chat-Buttons";return e.$$set=d=>{"basePath"in d&&i(0,s=d.basePath),"changeFilterHandler"in d&&i(1,r=d.changeFilterHandler)},[s,r,n,o,l]}class Ps extends ue{constructor(t){super(),le(this,t,zu,ju,oe,{basePath:0,changeFilterHandler:1},Fu)}get basePath(){return this.$$.ctx[0]}set basePath(t){this.$$set({basePath:t}),D()}get changeFilterHandler(){return this.$$.ctx[1]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),D()}}ae(Ps,{basePath:{},changeFilterHandler:{}},[],[],!0);function Ku(e){me(e,"svelte-14f2ism","main.svelte-14f2ism{height:100%;display:flex;flex-direction:column}")}function Wu(e){let t,i;return t=new ws({props:{rowMiddleClickHandler:e[0]}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.rowMiddleClickHandler=n[0]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Ju(e){let t,i;return t=new Ps({props:{basePath:e[1],changeFilterHandler:e[2]}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&2&&(r.basePath=n[1]),s&4&&(r.changeFilterHandler=n[2]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function Xu(e){let t,i,n,s;const r=[Ju,Wu],o=[];function l(d,u){return!d[3].length&&d[4]?0:1}return i=l(e),n=o[i]=r[i](e),{c(){t=R("main"),n.c(),y(t,"class","svelte-14f2ism")},m(d,u){C(d,t,u),o[i].m(t,null),s=!0},p(d,[u]){let c=i;i=l(d),i===c?o[i].p(d,u):(ye(),L(o[c],1,1,()=>{o[c]=null}),Te(),n=o[i],n?n.p(d,u):(n=o[i]=r[i](d),n.c()),b(n,1),n.m(t,null))},i(d){s||(b(n),s=!0)},o(d){L(n),s=!1},d(d){d&&k(t),o[i].d()}}}function Zu(e,t,i){let n,s,r,o,l,d;Z(e,Ze,m=>i(9,n=m)),Z(e,Ot,m=>i(6,s=m)),Z(e,ki,m=>i(7,r=m)),Z(e,qt,m=>i(8,o=m)),Z(e,Oe,m=>i(3,l=m)),Z(e,vt,m=>i(4,d=m));let{apiKey:u}=t,{rowMiddleClickHandler:c}=t,{basePath:_}=t,{changeFilterHandler:f}=t;return Kt(async()=>{await new Nu(u,_).load();const m=new es(new Pi({apiKey:u,basePath:_+"/api/v3"}));Ut.set(m),await nt(!0)}),Oe.subscribe(m=>{xi.set(n?m.filter(p=>!p.__selected).map(p=>p.conversationid):m.filter(p=>p.__selected).map(p=>p.conversationid))}),e.$$set=m=>{"apiKey"in m&&i(5,u=m.apiKey),"rowMiddleClickHandler"in m&&i(0,c=m.rowMiddleClickHandler),"basePath"in m&&i(1,_=m.basePath),"changeFilterHandler"in m&&i(2,f=m.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&448&&(o||r||s)&&nt(!0)},[c,_,f,l,d,u,s,r,o]}class xs extends ue{constructor(t){super(),le(this,t,Zu,Xu,oe,{apiKey:5,rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},Ku)}get apiKey(){return this.$$.ctx[5]}set apiKey(t){this.$$set({apiKey:t}),D()}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),D()}get basePath(){return this.$$.ctx[1]}set basePath(t){this.$$set({basePath:t}),D()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),D()}}ae(xs,{apiKey:{},rowMiddleClickHandler:{},basePath:{},changeFilterHandler:{}},[],[],!0);function Yu(e){let t,i;return t=new xs({props:{apiKey:e[0].apiKey,basePath:e[0].basePath,rowMiddleClickHandler:e[1],changeFilterHandler:e[2]}}),{c(){G(t.$$.fragment)},m(n,s){M(t,n,s),i=!0},p(n,s){const r={};s&1&&(r.apiKey=n[0].apiKey),s&1&&(r.basePath=n[0].basePath),s&2&&(r.rowMiddleClickHandler=n[1]),s&4&&(r.changeFilterHandler=n[2]),t.$set(r)},i(n){i||(b(t.$$.fragment,n),i=!0)},o(n){L(t.$$.fragment,n),i=!1},d(n){B(t,n)}}}function qu(e){let t;return{c(){t=R("p"),t.textContent="Loading..."},m(i,n){C(i,t,n)},p:q,i:q,o:q,d(i){i&&k(t)}}}function Qu(e){let t,i,n,s,r,o;const l=[qu,Yu],d=[];function u(c,_){return c[3]?0:c[0].apiKey?1:-1}return~(t=u(e))&&(i=d[t]=l[t](e)),{c(){i&&i.c(),n=W(),s=R("link"),y(s,"rel","stylesheet"),y(s,"href",r=e[0].basePath+"/themes/agent/_common_templates/icons_mapping.css")},m(c,_){~t&&d[t].m(c,_),C(c,n,_),C(c,s,_),o=!0},p(c,[_]){let f=t;t=u(c),t===f?~t&&d[t].p(c,_):(i&&(ye(),L(d[f],1,1,()=>{d[f]=null}),Te()),~t?(i=d[t],i?i.p(c,_):(i=d[t]=l[t](c),i.c()),b(i,1),i.m(n.parentNode,n)):i=null),(!o||_&1&&r!==(r=c[0].basePath+"/themes/agent/_common_templates/icons_mapping.css"))&&y(s,"href",r)},i(c){o||(b(i),o=!0)},o(c){L(i),o=!1},d(c){c&&(k(n),k(s)),~t&&d[t].d(c)}}}function ed(e,t,i){let n,s,r,o;Z(e,Oe,m=>i(7,n=m)),Z(e,Ze,m=>i(8,s=m)),Z(e,xi,m=>i(9,r=m)),Z(e,Ht,m=>i(3,o=m));let{filters:l='[["rstatus","IN","A,P,T,N,C,R,W"],["channel_type","IN","B,M,E,F,A,I,Q,S,C,W,T,V"]]'}=t,{options:d={apiKey:null,basePath:null,localeOptions:{thousandsSeparator:"S",decimalSeparator:"D",dateFormat:"MM/d/yyyy",timeFormat:"HH:mm:ss",timeShortFormat:"HH:mm",locale:"sk"}}}=t,{rowMiddleClickHandler:u=m=>{}}=t,{ticketSelectionChangeHandler:c=(m,p,v)=>{}}=t,{changeFilterHandler:_=()=>{}}=t;const f=function(m=!1){nt(m)};return $l(d.localeOptions,()=>Si(Object.assign({"./locales/ar-SA.json":()=>a(()=>import("./ar-SA2.js"),[]),"./locales/bg-BG.json":()=>a(()=>import("./bg-BG.js"),[]),"./locales/bs-BA.json":()=>a(()=>import("./bs-BA.js"),[]),"./locales/ca-ES.json":()=>a(()=>import("./ca-ES.js"),[]),"./locales/cs-CZ.json":()=>a(()=>import("./cs-CZ.js"),[]),"./locales/da-DK.json":()=>a(()=>import("./da-DK.js"),[]),"./locales/de-DE.json":()=>a(()=>import("./de-DE.js"),[]),"./locales/el-GR.json":()=>a(()=>import("./el-GR.js"),[]),"./locales/en-US.json":()=>a(()=>import("./en-US.js"),[]),"./locales/en.json":()=>a(()=>import("./en2.js"),[]),"./locales/es-ES.json":()=>a(()=>import("./es-ES.js"),[]),"./locales/et-EE.json":()=>a(()=>import("./et-EE.js"),[]),"./locales/fa-IR.json":()=>a(()=>import("./fa-IR.js"),[]),"./locales/fi-FI.json":()=>a(()=>import("./fi-FI.js"),[]),"./locales/fil-PH.json":()=>a(()=>import("./fil-PH.js"),[]),"./locales/fr-FR.json":()=>a(()=>import("./fr-FR.js"),[]),"./locales/he-IL.json":()=>a(()=>import("./he-IL.js"),[]),"./locales/hr-HR.json":()=>a(()=>import("./hr-HR.js"),[]),"./locales/hu-HU.json":()=>a(()=>import("./hu-HU.js"),[]),"./locales/id-ID.json":()=>a(()=>import("./id-ID.js"),[]),"./locales/it-IT.json":()=>a(()=>import("./it-IT.js"),[]),"./locales/ja-JP.json":()=>a(()=>import("./ja-JP.js"),[]),"./locales/ko-KR.json":()=>a(()=>import("./ko-KR.js"),[]),"./locales/lt-LT.json":()=>a(()=>import("./lt-LT.js"),[]),"./locales/lv-LV.json":()=>a(()=>import("./lv-LV.js"),[]),"./locales/me-ME.json":()=>a(()=>import("./me-ME.js"),[]),"./locales/mk-MK.json":()=>a(()=>import("./mk-MK.js"),[]),"./locales/ms-MY.json":()=>a(()=>import("./ms-MY2.js"),[]),"./locales/nl-NL.json":()=>a(()=>import("./nl-NL.js"),[]),"./locales/no-NO.json":()=>a(()=>import("./no-NO.js"),[]),"./locales/pl-PL.json":()=>a(()=>import("./pl-PL.js"),[]),"./locales/pt-BR.json":()=>a(()=>import("./pt-BR2.js"),[]),"./locales/ro-RO.json":()=>a(()=>import("./ro-RO.js"),[]),"./locales/ru-RU.json":()=>a(()=>import("./ru-RU.js"),[]),"./locales/sk-SK.json":()=>a(()=>import("./sk-SK.js"),[]),"./locales/sl-SI.json":()=>a(()=>import("./sl-SI.js"),[]),"./locales/sr-CS.json":()=>a(()=>import("./sr-CS.js"),[]),"./locales/sv-SE.json":()=>a(()=>import("./sv-SE.js"),[]),"./locales/th-TH.json":()=>a(()=>import("./th-TH.js"),[]),"./locales/tl-PH.json":()=>a(()=>import("./tl-PH2.js"),[]),"./locales/tr-TR.json":()=>a(()=>import("./tr-TR.js"),[]),"./locales/uk-UA.json":()=>a(()=>import("./uk-UA.js"),[]),"./locales/vi-VN.json":()=>a(()=>import("./vi-VN.js"),[]),"./locales/vls-BE.json":()=>a(()=>import("./vls-BE.js"),[]),"./locales/zh-CN.json":()=>a(()=>import("./zh-CN2.js"),[]),"./locales/zh-TW.json":()=>a(()=>import("./zh-TW2.js"),[])}),`./locales/${Et}.json`),()=>Si(Object.assign({"./locales/ar-SA.json":()=>a(()=>import("./ar-SA2.js"),[]),"./locales/bg-BG.json":()=>a(()=>import("./bg-BG.js"),[]),"./locales/bs-BA.json":()=>a(()=>import("./bs-BA.js"),[]),"./locales/ca-ES.json":()=>a(()=>import("./ca-ES.js"),[]),"./locales/cs-CZ.json":()=>a(()=>import("./cs-CZ.js"),[]),"./locales/da-DK.json":()=>a(()=>import("./da-DK.js"),[]),"./locales/de-DE.json":()=>a(()=>import("./de-DE.js"),[]),"./locales/el-GR.json":()=>a(()=>import("./el-GR.js"),[]),"./locales/en-US.json":()=>a(()=>import("./en-US.js"),[]),"./locales/en.json":()=>a(()=>import("./en2.js"),[]),"./locales/es-ES.json":()=>a(()=>import("./es-ES.js"),[]),"./locales/et-EE.json":()=>a(()=>import("./et-EE.js"),[]),"./locales/fa-IR.json":()=>a(()=>import("./fa-IR.js"),[]),"./locales/fi-FI.json":()=>a(()=>import("./fi-FI.js"),[]),"./locales/fil-PH.json":()=>a(()=>import("./fil-PH.js"),[]),"./locales/fr-FR.json":()=>a(()=>import("./fr-FR.js"),[]),"./locales/he-IL.json":()=>a(()=>import("./he-IL.js"),[]),"./locales/hr-HR.json":()=>a(()=>import("./hr-HR.js"),[]),"./locales/hu-HU.json":()=>a(()=>import("./hu-HU.js"),[]),"./locales/id-ID.json":()=>a(()=>import("./id-ID.js"),[]),"./locales/it-IT.json":()=>a(()=>import("./it-IT.js"),[]),"./locales/ja-JP.json":()=>a(()=>import("./ja-JP.js"),[]),"./locales/ko-KR.json":()=>a(()=>import("./ko-KR.js"),[]),"./locales/lt-LT.json":()=>a(()=>import("./lt-LT.js"),[]),"./locales/lv-LV.json":()=>a(()=>import("./lv-LV.js"),[]),"./locales/me-ME.json":()=>a(()=>import("./me-ME.js"),[]),"./locales/mk-MK.json":()=>a(()=>import("./mk-MK.js"),[]),"./locales/ms-MY.json":()=>a(()=>import("./ms-MY2.js"),[]),"./locales/nl-NL.json":()=>a(()=>import("./nl-NL.js"),[]),"./locales/no-NO.json":()=>a(()=>import("./no-NO.js"),[]),"./locales/pl-PL.json":()=>a(()=>import("./pl-PL.js"),[]),"./locales/pt-BR.json":()=>a(()=>import("./pt-BR2.js"),[]),"./locales/ro-RO.json":()=>a(()=>import("./ro-RO.js"),[]),"./locales/ru-RU.json":()=>a(()=>import("./ru-RU.js"),[]),"./locales/sk-SK.json":()=>a(()=>import("./sk-SK.js"),[]),"./locales/sl-SI.json":()=>a(()=>import("./sl-SI.js"),[]),"./locales/sr-CS.json":()=>a(()=>import("./sr-CS.js"),[]),"./locales/sv-SE.json":()=>a(()=>import("./sv-SE.js"),[]),"./locales/th-TH.json":()=>a(()=>import("./th-TH.js"),[]),"./locales/tl-PH.json":()=>a(()=>import("./tl-PH2.js"),[]),"./locales/tr-TR.json":()=>a(()=>import("./tr-TR.js"),[]),"./locales/uk-UA.json":()=>a(()=>import("./uk-UA.js"),[]),"./locales/vi-VN.json":()=>a(()=>import("./vi-VN.js"),[]),"./locales/vls-BE.json":()=>a(()=>import("./vls-BE.js"),[]),"./locales/zh-CN.json":()=>a(()=>import("./zh-CN2.js"),[]),"./locales/zh-TW.json":()=>a(()=>import("./zh-TW2.js"),[])}),`./locales/${yt}.json`)),Sl(d.localeOptions.locale),Kt(()=>{Ot.set(l)}),e.$$set=m=>{"filters"in m&&i(4,l=m.filters),"options"in m&&i(0,d=m.options),"rowMiddleClickHandler"in m&&i(1,u=m.rowMiddleClickHandler),"ticketSelectionChangeHandler"in m&&i(5,c=m.ticketSelectionChangeHandler),"changeFilterHandler"in m&&i(2,_=m.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&16&&l&&Ot.set(l),e.$$.dirty&928&&c(r,s,n.length)},[d,u,_,o,l,c,f,n,s,r]}class td extends ue{constructor(t){super(),le(this,t,ed,Qu,oe,{filters:4,options:0,rowMiddleClickHandler:1,ticketSelectionChangeHandler:5,changeFilterHandler:2,reload:6})}get filters(){return this.$$.ctx[4]}set filters(t){this.$$set({filters:t}),D()}get options(){return this.$$.ctx[0]}set options(t){this.$$set({options:t}),D()}get rowMiddleClickHandler(){return this.$$.ctx[1]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),D()}get ticketSelectionChangeHandler(){return this.$$.ctx[5]}set ticketSelectionChangeHandler(t){this.$$set({ticketSelectionChangeHandler:t}),D()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),D()}get reload(){return this.$$.ctx[6]}}customElements.define("tickets-table",ae(td,{filters:{},options:{},rowMiddleClickHandler:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));export{ye as A,L as B,B as C,Te as D,b as E,qs as F,ue as S,Tt as a,nd as b,ae as c,y as d,sd as e,D as f,C as g,T as h,le as i,Rn as j,k,ge as l,Hi as m,q as n,od as o,Ns as p,ld as q,ke as r,oe as s,ei as t,ne as u,Gi as v,G as w,rd as x,st as y,M as z};
15
+ "checkbox status importance";grid-template-columns:60px 3fr 1fr;height:110px;column-gap:6px}}@media(min-width: 900px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-areas:"checkbox user status importance";grid-template-columns:60px 180px auto 190px;height:72px}}@media(min-width: 1300px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-columns:60px 260px auto 230px}}`)}function bn(e,t,n){const i=e.slice();return i[9]=t[n],i[10]=t,i[11]=n,i}function Tn(e){let t,n,i,r,s,o,l,d,u,c,_,f,m,v,p,E,g,O,$;function C(){e[5].call(s,e[11])}function A(...q){return e[6](e[11],...q)}u=new yr({props:{row:e[9]}}),f=new xr({props:{row:e[9]}}),p=new Tr({props:{row:e[9]}});function U(){return e[7](e[9])}function _e(...q){return e[8](e[9],...q)}return{c(){t=I("div"),n=I("div"),i=I("div"),r=j(),s=I("input"),l=j(),d=I("div"),M(u.$$.fragment),c=j(),_=I("div"),M(f.$$.fragment),m=j(),v=I("div"),M(p.$$.fragment),y(i,"class","StatusBar svelte-d34xx3"),Me(i,"background-color",Ve(e[9].status).border),y(s,"type","checkbox"),s.__value=o=e[9].conversationid,Gi(s,s.__value),y(s,"class","svelte-d34xx3"),y(n,"class","Checkbox svelte-d34xx3"),Me(n,"position","relative"),y(d,"class","UserColumn svelte-d34xx3"),y(_,"class","StatusColumn svelte-d34xx3"),y(v,"class","ImportanceColumn svelte-d34xx3"),y(t,"class",E="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3")},m(q,me){k(q,t,me),T(t,n),T(n,i),T(n,r),T(n,s),s.checked=e[1][e[11]].__selected,T(t,l),T(t,d),N(u,d,null),T(t,c),T(t,_),N(f,_,null),T(t,m),T(t,v),N(p,v,null),g=!0,O||($=[ve(s,"change",C),ve(s,"click",ui(A)),ve(n,"click",ui(Cu)),ve(t,"click",U),ve(t,"mousedown",_e)],O=!0)},p(q,me){e=q,(!g||me&2)&&Me(i,"background-color",Ve(e[9].status).border),(!g||me&2&&o!==(o=e[9].conversationid))&&(s.__value=o,Gi(s,s.__value)),me&2&&(s.checked=e[1][e[11]].__selected);const ue={};me&2&&(ue.row=e[9]),u.$set(ue);const J={};me&2&&(J.row=e[9]),f.$set(J);const Oe={};me&2&&(Oe.row=e[9]),p.$set(Oe),(!g||me&2&&E!==(E="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3"))&&y(t,"class",E)},i(q){g||(b(u.$$.fragment,q),b(f.$$.fragment,q),b(p.$$.fragment,q),g=!0)},o(q){L(u.$$.fragment,q),L(f.$$.fragment,q),L(p.$$.fragment,q),g=!1},d(q){q&&P(t),H(u),H(f),H(p),O=!1,ke($)}}}function Vu(e){let t,n,i,r=Se(e[1]),s=[];for(let u=0;u<r.length;u+=1)s[u]=Tn(bn(e,r,u));const o=u=>L(s[u],1,1,()=>{s[u]=null}),l=e[4].default,d=Rt(l,e,e[3],null);return{c(){t=I("div");for(let u=0;u<s.length;u+=1)s[u].c();n=j(),d&&d.c(),y(t,"class","Body svelte-d34xx3")},m(u,c){k(u,t,c);for(let _=0;_<s.length;_+=1)s[_]&&s[_].m(t,null);T(t,n),d&&d.m(t,null),i=!0},p(u,[c]){if(c&7){r=Se(u[1]);let _;for(_=0;_<r.length;_+=1){const f=bn(u,r,_);s[_]?(s[_].p(f,c),b(s[_],1)):(s[_]=Tn(f),s[_].c(),b(s[_],1),s[_].m(t,n))}for(he(),_=r.length;_<s.length;_+=1)o(_);ge()}d&&d.p&&(!i||c&8)&&xt(d,l,u,u[3],i?Dt(l,u[3],c,null):wt(u[3]),null)},i(u){if(!i){for(let c=0;c<r.length;c+=1)b(s[c]);b(d,u),i=!0}},o(u){s=s.filter(Boolean);for(let c=0;c<s.length;c+=1)L(s[c]);L(d,u),i=!1},d(u){u&&P(t),Kt(s,u),d&&d.d(u)}}}const Cu=()=>{};function Su(e,t,n){let i;K(e,Le,f=>n(1,i=f));let{$$slots:r={},$$scope:s}=t,{rowMiddleClickHandler:o}=t;function l(f,m){if(f.shiftKey){let v=i.findIndex(p=>p.__selected);if(v!==-1){let p=Math.min(v,m),E=Math.max(v,m);for(let g=p;g<=E;g++)Ur(Le,i[g].__selected=!0,i)}}}function d(f){i[f].__selected=this.checked,Le.set(i)}const u=(f,m)=>l(m,f),c=f=>location.assign("#Conversation;id="+f.conversationid),_=(f,m)=>{m.button===1&&o&&(o(f.conversationid),m.preventDefault(),m.stopPropagation())};return e.$$set=f=>{"rowMiddleClickHandler"in f&&n(0,o=f.rowMiddleClickHandler),"$$scope"in f&&n(3,s=f.$$scope)},[o,i,l,s,r,d,u,c,_]}class wr extends oe{constructor(t){super(),re(this,t,Su,Vu,ie,{rowMiddleClickHandler:0},$u)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),D()}}se(wr,{rowMiddleClickHandler:{}},["default"],[],!0);function Nu(e){ce(e,"svelte-1nok758","div.svelte-1nok758{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto}")}function Hu(e){let t,n,i;return{c(){t=I("div"),n=I("p"),i=ee(e[0]),y(t,"class","svelte-1nok758")},m(r,s){k(r,t,s),T(t,n),T(n,i)},p(r,[s]){s&1&&le(i,r[0])},i:W,o:W,d(r){r&&P(t)}}}function Mu(e,t,n){let i,r,s,o,l,d;return K(e,Ae,u=>n(1,r=u)),K(e,Ge,u=>n(2,s=u)),K(e,Le,u=>n(3,o=u)),K(e,sr,u=>n(4,l=u)),K(e,Fe,u=>n(5,d=u)),e.$$.update=()=>{e.$$.dirty&62&&n(0,i=d?r("Loading..."):l?r("Loading failed. Please try again later."):!o||o.length===0?r("No results match your filter. Try broadening the search criteria."):s==null?r("All data loaded"):r("Load more data"))},[i,r,s,o,l,d]}class Pr extends oe{constructor(t){super(),re(this,t,Mu,Hu,ie,{},Nu)}}se(Pr,{},[],[],!0);function Bu(e){ce(e,"svelte-1srt8g7",`button.SortingButton{width:calc(100% - 8px);text-align:left;font-weight:normal;margin:0 0 0 30px}button.SortingButton.Selected{width:100%;text-align:left;font-weight:bold}.radio-option.svelte-1srt8g7 input[type="radio"].svelte-1srt8g7{display:none}.radio-option.svelte-1srt8g7.svelte-1srt8g7{display:flex;align-items:center;position:relative;width:calc(100% - 8px);padding:6px 10px;color:var(--main-textcolor);cursor:pointer}.radio-option.svelte-1srt8g7.svelte-1srt8g7::before{content:'';display:inline-block;width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid var(--menu-selected-bg);background-color:white}.selected.svelte-1srt8g7.svelte-1srt8g7{font-weight:700}.selected.svelte-1srt8g7.svelte-1srt8g7::before{width:10px;height:10px;border:5px solid var(--ticket-status-chat-background)}.radio-option.svelte-1srt8g7.svelte-1srt8g7:hover{background:var(--menu-hover-bg)}.Title.svelte-1srt8g7.svelte-1srt8g7{width:100%;margin:4px 0 12px 10px;color:var(--main-textcolor);font-size:13px;font-style:normal;font-weight:700;line-height:20px;font-family:'Roboto', sans-serif}.Title.svelte-1srt8g7.svelte-1srt8g7::after{content:'';position:absolute;left:10px;right:10px;bottom:calc(100% - 37px);height:1px;background-color:var(--menu-selected-bg)}.modal.svelte-1srt8g7.svelte-1srt8g7{min-width:200px;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:4px;background-color:var(--main-background);border:none;border-radius:6px;overflow:hidden;z-index:99999;box-shadow:0px 1px 3px 0px rgba(30, 34, 39, 0.12), 0px 8px 24px 0px rgba(30, 34, 39, 0.10)}`)}function Ln(e,t,n){const i=e.slice();return i[9]=t[n],i}function An(e){let t,n,i,r,s=e[9].label+"",o,l,d,u,c;return{c(){t=I("label"),n=I("input"),r=j(),o=ee(s),l=j(),y(n,"type","radio"),y(n,"name","sorting"),n.value=e[9].value,n.checked=i=e[0]&&e[0].value===e[9].value,y(n,"class","svelte-1srt8g7"),y(t,"class",d=fe(e[0].value===e[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")},m(_,f){k(_,t,f),T(t,n),T(t,r),T(t,o),T(t,l),u||(c=ve(n,"click",e[5]),u=!0)},p(_,f){f&1&&i!==(i=_[0]&&_[0].value===_[9].value)&&(n.checked=i),f&1&&d!==(d=fe(_[0].value===_[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")&&y(t,"class",d)},d(_){_&&P(t),u=!1,c()}}}function Fu(e){let t,n,i=e[3]("Sort by")+"",r,s,o=Se(e[4]),l=[];for(let d=0;d<o.length;d+=1)l[d]=An(Ln(e,o,d));return{c(){t=I("dialog"),n=I("span"),r=ee(i),s=j();for(let d=0;d<l.length;d+=1)l[d].c();y(n,"class","Title svelte-1srt8g7"),y(t,"class","modal svelte-1srt8g7"),y(t,"style",e[1])},m(d,u){k(d,t,u),T(t,n),T(n,r),T(t,s);for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(t,null);e[7](t)},p(d,[u]){if(u&8&&i!==(i=d[3]("Sort by")+"")&&le(r,i),u&49){o=Se(d[4]);let c;for(c=0;c<o.length;c+=1){const _=Ln(d,o,c);l[c]?l[c].p(_,u):(l[c]=An(_),l[c].c(),l[c].m(t,null))}for(;c<l.length;c+=1)l[c].d(1);l.length=o.length}u&2&&y(t,"style",d[1])},i:W,o:W,d(d){d&&P(t),Kt(l,d),e[7](null)}}}function Gu(e,t,n){let i;K(e,Ae,f=>n(3,i=f));let{currentFilter:r}=t,{closeModal:s=()=>u.close()}=t,{style:o=""}=t;const l=Dn(),d=[{value:"Datedue",label:i("Importance"),sort:mt.Datedue,dir:!1},{value:"Created-newest",label:i("Date created - Newest"),sort:mt.Datecreated,dir:!1},{value:"Created-oldest",label:i("Date created - Oldest"),sort:mt.Datecreated,dir:!0},{value:"Changed-newest",label:i("Date changed - Newest"),sort:mt.Datechanged,dir:!1},{value:"Changed-oldest",label:i("Date changed - Oldest"),sort:mt.Datechanged,dir:!0}];let u;function c(f){const m=d.find(v=>v.value===f.target.value);n(0,r=m),l("filterChange",{option:m}),s()}function _(f){et[f?"unshift":"push"](()=>{u=f,n(2,u)})}return e.$$set=f=>{"currentFilter"in f&&n(0,r=f.currentFilter),"closeModal"in f&&n(6,s=f.closeModal),"style"in f&&n(1,o=f.style)},[r,o,u,i,d,c,s,_]}class kr extends oe{constructor(t){super(),re(this,t,Gu,Fu,ie,{currentFilter:0,closeModal:6,style:1},Bu)}get currentFilter(){return this.$$.ctx[0]}set currentFilter(t){this.$$set({currentFilter:t}),D()}get closeModal(){return this.$$.ctx[6]}set closeModal(t){this.$$set({closeModal:t}),D()}get style(){return this.$$.ctx[1]}set style(t){this.$$set({style:t}),D()}}se(kr,{currentFilter:{},closeModal:{},style:{}},[],[],!0);function Uu(e){ce(e,"svelte-657q9o",".backdrop.svelte-657q9o{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:100}")}function zu(e){let t,n,i;return{c(){t=I("div"),y(t,"class","backdrop svelte-657q9o")},m(r,s){k(r,t,s),n||(i=ve(t,"click",ui(function(){jt(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(r,[s]){e=r},i:W,o:W,d(r){r&&P(t),n=!1,i()}}}function ju(e,t,n){let{onClick:i}=t;return e.$$set=r=>{"onClick"in r&&n(0,i=r.onClick)},[i]}class $r extends oe{constructor(t){super(),re(this,t,ju,zu,ie,{onClick:0},Uu)}get onClick(){return this.$$.ctx[0]}set onClick(t){this.$$set({onClick:t}),D()}}se($r,{onClick:{}},[],[],!0);function Ku(e){ce(e,"svelte-1od4wyj",".load.svelte-1od4wyj{display:block}.container.svelte-1od4wyj{width:100%;flex-grow:1;flex-basis:0;overflow-y:scroll;overflow-x:hidden;border-spacing:4px 5px;border:none}@media screen and (min-width: 768px){.load.svelte-1od4wyj{width:100%}}")}function Ju(e){let t,n,i,r,s,o;return i=new Pr({}),{c(){t=I("div"),n=I("div"),M(i.$$.fragment),y(n,"class","load svelte-1od4wyj"),y(t,"class","load svelte-1od4wyj")},m(l,d){k(l,t,d),T(t,n),N(i,n,null),e[11](n),r=!0,s||(o=ve(n,"click",e[12]),s=!0)},p:W,i(l){r||(b(i.$$.fragment,l),r=!0)},o(l){L(i.$$.fragment,l),r=!1},d(l){l&&P(t),H(i),e[11](null),s=!1,o()}}}function On(e){let t,n,i,r;return t=new kr({props:{closeModal:e[8],currentFilter:e[5],style:e[4]}}),t.$on("filterChange",e[10]),i=new $r({props:{onClick:e[8]}}),{c(){M(t.$$.fragment),n=j(),M(i.$$.fragment)},m(s,o){N(t,s,o),k(s,n,o),N(i,s,o),r=!0},p(s,o){const l={};o&32&&(l.currentFilter=s[5]),o&16&&(l.style=s[4]),t.$set(l)},i(s){r||(b(t.$$.fragment,s),b(i.$$.fragment,s),r=!0)},o(s){L(t.$$.fragment,s),L(i.$$.fragment,s),r=!1},d(s){s&&P(n),H(t,s),H(i,s)}}}function Wu(e){let t,n,i,r,s,o;n=new _r({props:{currentFilter:e[5].label}}),n.$on("openModal",e[9]),r=new wr({props:{rowMiddleClickHandler:e[0],$$slots:{default:[Ju]},$$scope:{ctx:e}}});let l=e[3]&&On(e);return{c(){t=I("div"),M(n.$$.fragment),i=j(),M(r.$$.fragment),s=j(),l&&l.c(),y(t,"class","container svelte-1od4wyj")},m(d,u){k(d,t,u),N(n,t,null),T(t,i),N(r,t,null),T(t,s),l&&l.m(t,null),e[13](t),o=!0},p(d,[u]){const c={};u&32&&(c.currentFilter=d[5].label),n.$set(c);const _={};u&1&&(_.rowMiddleClickHandler=d[0]),u&16578&&(_.$$scope={dirty:u,ctx:d}),r.$set(_),d[3]?l?(l.p(d,u),u&8&&b(l,1)):(l=On(d),l.c(),b(l,1),l.m(t,null)):l&&(he(),L(l,1,1,()=>{l=null}),ge())},i(d){o||(b(n.$$.fragment,d),b(r.$$.fragment,d),b(l),o=!0)},o(d){L(n.$$.fragment,d),L(r.$$.fragment,d),L(l),o=!1},d(d){d&&P(t),H(n),H(r),l&&l.d(),e[13](null)}}}function Xu(e,t,n){let i,r,s;K(e,Et,g=>n(6,r=g)),K(e,Ge,g=>n(7,s=g));let{rowMiddleClickHandler:o}=t,l,d,u=!1,c="";Pt(()=>{const g=localStorage.getItem("TicketGridCurrentFilter");g&&n(5,i=JSON.parse(g));const O=new IntersectionObserver($=>{$[0].isIntersecting&&st()},{root:d,threshold:.5});return O.observe(l),()=>O.unobserve(l)});function _(){n(3,u=!1)}function f(g){n(3,u=!0),n(4,c=g.detail.dialogStyles)}function m(g){_(),g.detail.option.value!==i.value&&(n(5,i=g.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(i)),Qt.set(i.dir),Vi.set(i.sort))}function v(g){et[g?"unshift":"push"](()=>{l=g,n(1,l)})}const p=()=>st(r&&!s);function E(g){et[g?"unshift":"push"](()=>{d=g,n(2,d)})}return e.$$set=g=>{"rowMiddleClickHandler"in g&&n(0,o=g.rowMiddleClickHandler)},n(5,i={value:"Datedue",label:"Importance"}),[o,l,d,u,c,i,r,s,_,f,m,v,p,E]}class Vr extends oe{constructor(t){super(),re(this,t,Xu,Wu,ie,{rowMiddleClickHandler:0},Ku)}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),D()}}se(Vr,{rowMiddleClickHandler:{}},[],[],!0);class Zu{constructor(t,n){const i=new Yt({apiKey:t,basePath:n+"/api/v3"});this.api=new ki(i)}async load(){let t=await this.api.getTagsGridList();t=t.reduce((n,i)=>(n[i.tagid]=i,n),{}),nr.set(t)}}class Yu{constructor(t,n){Te(this,"api");const i=new Yt({apiKey:t,basePath:n+"/api/v3"});this.api=new ki(i)}async load(){const n=(await this.api.getCustomerGroupsGridList()).reduce((i,r)=>(i.set(r.tagid,r),i),new Map);rr.set(n)}}function qu(e){ce(e,"svelte-10fvxzv","button.svelte-10fvxzv{padding:10px;margin:5px;border:none;border-radius:5px;cursor:pointer;font-size:13px;font-weight:600}")}function Qu(e){let t,n,i,r,s;const o=e[4].default,l=Rt(o,e,e[3],null);return{c(){t=I("button"),l&&l.c(),y(t,"class",n=fe(e[0])+" svelte-10fvxzv")},m(d,u){k(d,t,u),l&&l.m(t,null),i=!0,r||(s=ve(t,"click",e[1]),r=!0)},p(d,[u]){l&&l.p&&(!i||u&8)&&xt(l,o,d,d[3],i?Dt(o,d[3],u,null):wt(d[3]),null),(!i||u&1&&n!==(n=fe(d[0])+" svelte-10fvxzv"))&&y(t,"class",n)},i(d){i||(b(l,d),i=!0)},o(d){L(l,d),i=!1},d(d){d&&P(t),l&&l.d(d),r=!1,s()}}}function ed(e,t,n){let{$$slots:i={},$$scope:r}=t,{onAction:s=d=>{}}=t,{className:o=""}=t;function l(d){s(d)}return e.$$set=d=>{"onAction"in d&&n(2,s=d.onAction),"className"in d&&n(0,o=d.className),"$$scope"in d&&n(3,r=d.$$scope)},[o,l,s,r,i]}class Ai extends oe{constructor(t){super(),re(this,t,ed,Qu,ie,{onAction:2,className:0},qu)}get onAction(){return this.$$.ctx[2]}set onAction(t){this.$$set({onAction:t}),D()}get className(){return this.$$.ctx[0]}set className(t){this.$$set({className:t}),D()}}se(Ai,{onAction:{},className:{}},["default"],[],!0);function td(e){ce(e,"svelte-19qi61t",".NoTickets.svelte-19qi61t{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}p.svelte-19qi61t{max-width:450px;font-size:13px;font-weight:400;text-align:center}h1.svelte-19qi61t{font-size:20px;font-weight:600;margin:50px auto 0 auto}img.svelte-19qi61t{max-width:300px}")}function id(e){let t,n,i=e[2]("Change filter")+"",r,s;return t=new we({props:{className:"FilterIcon",iconLaClassName:"la-tune"}}),{c(){M(t.$$.fragment),n=j(),r=ee(i)},m(o,l){N(t,o,l),k(o,n,l),k(o,r,l),s=!0},p(o,l){(!s||l&4)&&i!==(i=o[2]("Change filter")+"")&&le(r,i)},i(o){s||(b(t.$$.fragment,o),s=!0)},o(o){L(t.$$.fragment,o),s=!1},d(o){o&&(P(n),P(r)),H(t,o)}}}function nd(e){let t,n,i=e[2]("Configure chat button")+"",r,s;return t=new we({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){M(t.$$.fragment),n=j(),r=ee(i)},m(o,l){N(t,o,l),k(o,n,l),k(o,r,l),s=!0},p(o,l){(!s||l&4)&&i!==(i=o[2]("Configure chat button")+"")&&le(r,i)},i(o){s||(b(t.$$.fragment,o),s=!0)},o(o){L(t.$$.fragment,o),s=!1},d(o){o&&(P(n),P(r)),H(t,o)}}}function rd(e){let t,n,i,r,s,o=e[2]("No tickets found")+"",l,d,u,c=e[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"",_,f,m,v,p,E,g;return v=new Ai({props:{className:"Filter",onAction:e[3],$$slots:{default:[id]},$$scope:{ctx:e}}}),E=new Ai({props:{className:"Configure",onAction:e[4],$$slots:{default:[nd]},$$scope:{ctx:e}}}),{c(){t=I("div"),n=I("img"),r=j(),s=I("h1"),l=ee(o),d=j(),u=I("p"),_=ee(c),f=j(),m=I("div"),M(v.$$.fragment),p=j(),M(E.$$.fragment),y(n,"alt","No results placeholder"),Bt(n.src,i=e[0]+"/themes/agent/obsidian/img/no-result.svg")||y(n,"src",i),y(n,"class","svelte-19qi61t"),y(s,"class","svelte-19qi61t"),y(u,"class","svelte-19qi61t"),y(m,"class","Buttons"),y(t,"class","NoTickets svelte-19qi61t")},m(O,$){k(O,t,$),T(t,n),T(t,r),T(t,s),T(s,l),T(t,d),T(t,u),T(u,_),T(t,f),T(t,m),N(v,m,null),T(m,p),N(E,m,null),g=!0},p(O,[$]){(!g||$&1&&!Bt(n.src,i=O[0]+"/themes/agent/obsidian/img/no-result.svg"))&&y(n,"src",i),(!g||$&4)&&o!==(o=O[2]("No tickets found")+"")&&le(l,o),(!g||$&4)&&c!==(c=O[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"")&&le(_,c);const C={};$&2&&(C.onAction=O[3]),$&36&&(C.$$scope={dirty:$,ctx:O}),v.$set(C);const A={};$&36&&(A.$$scope={dirty:$,ctx:O}),E.$set(A)},i(O){g||(b(v.$$.fragment,O),b(E.$$.fragment,O),g=!0)},o(O){L(v.$$.fragment,O),L(E.$$.fragment,O),g=!1},d(O){O&&P(t),H(v),H(E)}}}function sd(e,t,n){let i;K(e,Ae,d=>n(2,i=d));let{basePath:r}=t,{changeFilterHandler:s=()=>{}}=t;const o=()=>s(),l=()=>window.location.hash="Chat-Buttons";return e.$$set=d=>{"basePath"in d&&n(0,r=d.basePath),"changeFilterHandler"in d&&n(1,s=d.changeFilterHandler)},[r,s,i,o,l]}class Cr extends oe{constructor(t){super(),re(this,t,sd,rd,ie,{basePath:0,changeFilterHandler:1},td)}get basePath(){return this.$$.ctx[0]}set basePath(t){this.$$set({basePath:t}),D()}get changeFilterHandler(){return this.$$.ctx[1]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),D()}}se(Cr,{basePath:{},changeFilterHandler:{}},[],[],!0);function od(e){ce(e,"svelte-14f2ism","main.svelte-14f2ism{height:100%;display:flex;flex-direction:column}")}function ld(e){let t,n;return t=new Vr({props:{rowMiddleClickHandler:e[0]}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.rowMiddleClickHandler=i[0]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function ad(e){let t,n;return t=new Cr({props:{basePath:e[1],changeFilterHandler:e[2]}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&2&&(s.basePath=i[1]),r&4&&(s.changeFilterHandler=i[2]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function ud(e){let t,n,i,r;const s=[ad,ld],o=[];function l(d,u){return!d[3].length&&d[4]?0:1}return n=l(e),i=o[n]=s[n](e),{c(){t=I("main"),i.c(),y(t,"class","svelte-14f2ism")},m(d,u){k(d,t,u),o[n].m(t,null),r=!0},p(d,[u]){let c=n;n=l(d),n===c?o[n].p(d,u):(he(),L(o[c],1,1,()=>{o[c]=null}),ge(),i=o[n],i?i.p(d,u):(i=o[n]=s[n](d),i.c()),b(i,1),i.m(t,null))},i(d){r||(b(i),r=!0)},o(d){L(i),r=!1},d(d){d&&P(t),o[n].d()}}}function dd(e,t,n){let i,r,s,o,l,d,u;K(e,Qe,g=>n(13,i=g)),K(e,It,g=>n(9,r=g)),K(e,Vi,g=>n(10,s=g)),K(e,Qt,g=>n(11,o=g)),K(e,Fe,g=>n(12,l=g)),K(e,Le,g=>n(3,d=g)),K(e,Et,g=>n(4,u=g));let{apiKey:c}=t,{rowMiddleClickHandler:_}=t,{basePath:f}=t,{changeFilterHandler:m}=t,v=JSON.stringify(o),p=JSON.stringify(s),E=JSON.stringify(r);return Pt(async()=>{await new Zu(c,f).load(),await new Yu(c,f).load();const g=new ki(new Yt({apiKey:c,basePath:f+"/api/v3"}));zt.set(g),await st(!0)}),Le.subscribe(g=>{$i.set(i?g.filter(O=>!O.__selected).map(O=>O.conversationid):g.filter(O=>O.__selected).map(O=>O.conversationid))}),e.$$set=g=>{"apiKey"in g&&n(5,c=g.apiKey),"rowMiddleClickHandler"in g&&n(0,_=g.rowMiddleClickHandler),"basePath"in g&&n(1,f=g.basePath),"changeFilterHandler"in g&&n(2,m=g.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&8128&&(JSON.stringify(o)!==v||JSON.stringify(s)!==p||JSON.stringify(r)!==E)&&!l&&(n(6,v=JSON.stringify(o)),n(7,p=JSON.stringify(s)),n(8,E=JSON.stringify(r)),st(!0))},[_,f,m,d,u,c,v,p,E,r,s,o,l]}class Sr extends oe{constructor(t){super(),re(this,t,dd,ud,ie,{apiKey:5,rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},od)}get apiKey(){return this.$$.ctx[5]}set apiKey(t){this.$$set({apiKey:t}),D()}get rowMiddleClickHandler(){return this.$$.ctx[0]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),D()}get basePath(){return this.$$.ctx[1]}set basePath(t){this.$$set({basePath:t}),D()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),D()}}se(Sr,{apiKey:{},rowMiddleClickHandler:{},basePath:{},changeFilterHandler:{}},[],[],!0);function cd(e){let t,n;return t=new Sr({props:{apiKey:e[0].apiKey,basePath:e[0].basePath,rowMiddleClickHandler:e[1],changeFilterHandler:e[2]}}),{c(){M(t.$$.fragment)},m(i,r){N(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.apiKey=i[0].apiKey),r&1&&(s.basePath=i[0].basePath),r&2&&(s.rowMiddleClickHandler=i[1]),r&4&&(s.changeFilterHandler=i[2]),t.$set(s)},i(i){n||(b(t.$$.fragment,i),n=!0)},o(i){L(t.$$.fragment,i),n=!1},d(i){H(t,i)}}}function _d(e){let t;return{c(){t=I("p"),t.textContent="Loading..."},m(n,i){k(n,t,i)},p:W,i:W,o:W,d(n){n&&P(t)}}}function fd(e){let t,n,i,r,s,o;const l=[_d,cd],d=[];function u(c,_){return c[3]?0:c[0].apiKey?1:-1}return~(t=u(e))&&(n=d[t]=l[t](e)),{c(){n&&n.c(),i=j(),r=I("link"),y(r,"rel","stylesheet"),y(r,"href",s=e[0].basePath+"/themes/agent/_common_templates/icons_mapping.css")},m(c,_){~t&&d[t].m(c,_),k(c,i,_),k(c,r,_),o=!0},p(c,[_]){let f=t;t=u(c),t===f?~t&&d[t].p(c,_):(n&&(he(),L(d[f],1,1,()=>{d[f]=null}),ge()),~t?(n=d[t],n?n.p(c,_):(n=d[t]=l[t](c),n.c()),b(n,1),n.m(i.parentNode,i)):n=null),(!o||_&1&&s!==(s=c[0].basePath+"/themes/agent/_common_templates/icons_mapping.css"))&&y(r,"href",s)},i(c){o||(b(n),o=!0)},o(c){L(n),o=!1},d(c){c&&(P(i),P(r)),~t&&d[t].d(c)}}}function md(e,t,n){let i,r,s,o;K(e,Le,m=>n(7,i=m)),K(e,Qe,m=>n(8,r=m)),K(e,$i,m=>n(9,s=m)),K(e,Mt,m=>n(3,o=m));let{filters:l='[["rstatus","IN","A,P,T,N,C,R,W"],["channel_type","IN","B,M,E,F,A,I,Q,S,C,W,T,V"]]'}=t,{options:d={apiKey:null,basePath:null,localeOptions:{thousandsSeparator:"S",decimalSeparator:"D",dateFormat:"MM/d/yyyy",timeFormat:"HH:mm:ss",timeShortFormat:"HH:mm",locale:"sk"}}}=t,{rowMiddleClickHandler:u=m=>{}}=t,{ticketSelectionChangeHandler:c=(m,v,p)=>{}}=t,{changeFilterHandler:_=()=>{}}=t;const f=function(m=!1){st(m)};return Bl(d.localeOptions,()=>Hi(Object.assign({"./locales/ar-SA.json":()=>a(()=>import("./ar-SA2.js"),[]),"./locales/bg-BG.json":()=>a(()=>import("./bg-BG.js"),[]),"./locales/bs-BA.json":()=>a(()=>import("./bs-BA.js"),[]),"./locales/ca-ES.json":()=>a(()=>import("./ca-ES.js"),[]),"./locales/cs-CZ.json":()=>a(()=>import("./cs-CZ.js"),[]),"./locales/da-DK.json":()=>a(()=>import("./da-DK.js"),[]),"./locales/de-DE.json":()=>a(()=>import("./de-DE.js"),[]),"./locales/el-GR.json":()=>a(()=>import("./el-GR.js"),[]),"./locales/en-US.json":()=>a(()=>import("./en-US.js"),[]),"./locales/en.json":()=>a(()=>import("./en2.js"),[]),"./locales/es-ES.json":()=>a(()=>import("./es-ES.js"),[]),"./locales/et-EE.json":()=>a(()=>import("./et-EE.js"),[]),"./locales/fa-IR.json":()=>a(()=>import("./fa-IR.js"),[]),"./locales/fi-FI.json":()=>a(()=>import("./fi-FI.js"),[]),"./locales/fil-PH.json":()=>a(()=>import("./fil-PH.js"),[]),"./locales/fr-FR.json":()=>a(()=>import("./fr-FR.js"),[]),"./locales/he-IL.json":()=>a(()=>import("./he-IL.js"),[]),"./locales/hr-HR.json":()=>a(()=>import("./hr-HR.js"),[]),"./locales/hu-HU.json":()=>a(()=>import("./hu-HU.js"),[]),"./locales/id-ID.json":()=>a(()=>import("./id-ID.js"),[]),"./locales/it-IT.json":()=>a(()=>import("./it-IT.js"),[]),"./locales/ja-JP.json":()=>a(()=>import("./ja-JP.js"),[]),"./locales/ko-KR.json":()=>a(()=>import("./ko-KR.js"),[]),"./locales/lt-LT.json":()=>a(()=>import("./lt-LT.js"),[]),"./locales/lv-LV.json":()=>a(()=>import("./lv-LV.js"),[]),"./locales/me-ME.json":()=>a(()=>import("./me-ME.js"),[]),"./locales/mk-MK.json":()=>a(()=>import("./mk-MK.js"),[]),"./locales/ms-MY.json":()=>a(()=>import("./ms-MY2.js"),[]),"./locales/nl-NL.json":()=>a(()=>import("./nl-NL.js"),[]),"./locales/no-NO.json":()=>a(()=>import("./no-NO.js"),[]),"./locales/pl-PL.json":()=>a(()=>import("./pl-PL.js"),[]),"./locales/pt-BR.json":()=>a(()=>import("./pt-BR2.js"),[]),"./locales/ro-RO.json":()=>a(()=>import("./ro-RO.js"),[]),"./locales/ru-RU.json":()=>a(()=>import("./ru-RU.js"),[]),"./locales/sk-SK.json":()=>a(()=>import("./sk-SK.js"),[]),"./locales/sl-SI.json":()=>a(()=>import("./sl-SI.js"),[]),"./locales/sr-CS.json":()=>a(()=>import("./sr-CS.js"),[]),"./locales/sv-SE.json":()=>a(()=>import("./sv-SE.js"),[]),"./locales/th-TH.json":()=>a(()=>import("./th-TH.js"),[]),"./locales/tl-PH.json":()=>a(()=>import("./tl-PH2.js"),[]),"./locales/tr-TR.json":()=>a(()=>import("./tr-TR.js"),[]),"./locales/uk-UA.json":()=>a(()=>import("./uk-UA.js"),[]),"./locales/vi-VN.json":()=>a(()=>import("./vi-VN.js"),[]),"./locales/vls-BE.json":()=>a(()=>import("./vls-BE.js"),[]),"./locales/zh-CN.json":()=>a(()=>import("./zh-CN2.js"),[]),"./locales/zh-TW.json":()=>a(()=>import("./zh-TW2.js"),[])}),`./locales/${yt}.json`),()=>Hi(Object.assign({"./locales/ar-SA.json":()=>a(()=>import("./ar-SA2.js"),[]),"./locales/bg-BG.json":()=>a(()=>import("./bg-BG.js"),[]),"./locales/bs-BA.json":()=>a(()=>import("./bs-BA.js"),[]),"./locales/ca-ES.json":()=>a(()=>import("./ca-ES.js"),[]),"./locales/cs-CZ.json":()=>a(()=>import("./cs-CZ.js"),[]),"./locales/da-DK.json":()=>a(()=>import("./da-DK.js"),[]),"./locales/de-DE.json":()=>a(()=>import("./de-DE.js"),[]),"./locales/el-GR.json":()=>a(()=>import("./el-GR.js"),[]),"./locales/en-US.json":()=>a(()=>import("./en-US.js"),[]),"./locales/en.json":()=>a(()=>import("./en2.js"),[]),"./locales/es-ES.json":()=>a(()=>import("./es-ES.js"),[]),"./locales/et-EE.json":()=>a(()=>import("./et-EE.js"),[]),"./locales/fa-IR.json":()=>a(()=>import("./fa-IR.js"),[]),"./locales/fi-FI.json":()=>a(()=>import("./fi-FI.js"),[]),"./locales/fil-PH.json":()=>a(()=>import("./fil-PH.js"),[]),"./locales/fr-FR.json":()=>a(()=>import("./fr-FR.js"),[]),"./locales/he-IL.json":()=>a(()=>import("./he-IL.js"),[]),"./locales/hr-HR.json":()=>a(()=>import("./hr-HR.js"),[]),"./locales/hu-HU.json":()=>a(()=>import("./hu-HU.js"),[]),"./locales/id-ID.json":()=>a(()=>import("./id-ID.js"),[]),"./locales/it-IT.json":()=>a(()=>import("./it-IT.js"),[]),"./locales/ja-JP.json":()=>a(()=>import("./ja-JP.js"),[]),"./locales/ko-KR.json":()=>a(()=>import("./ko-KR.js"),[]),"./locales/lt-LT.json":()=>a(()=>import("./lt-LT.js"),[]),"./locales/lv-LV.json":()=>a(()=>import("./lv-LV.js"),[]),"./locales/me-ME.json":()=>a(()=>import("./me-ME.js"),[]),"./locales/mk-MK.json":()=>a(()=>import("./mk-MK.js"),[]),"./locales/ms-MY.json":()=>a(()=>import("./ms-MY2.js"),[]),"./locales/nl-NL.json":()=>a(()=>import("./nl-NL.js"),[]),"./locales/no-NO.json":()=>a(()=>import("./no-NO.js"),[]),"./locales/pl-PL.json":()=>a(()=>import("./pl-PL.js"),[]),"./locales/pt-BR.json":()=>a(()=>import("./pt-BR2.js"),[]),"./locales/ro-RO.json":()=>a(()=>import("./ro-RO.js"),[]),"./locales/ru-RU.json":()=>a(()=>import("./ru-RU.js"),[]),"./locales/sk-SK.json":()=>a(()=>import("./sk-SK.js"),[]),"./locales/sl-SI.json":()=>a(()=>import("./sl-SI.js"),[]),"./locales/sr-CS.json":()=>a(()=>import("./sr-CS.js"),[]),"./locales/sv-SE.json":()=>a(()=>import("./sv-SE.js"),[]),"./locales/th-TH.json":()=>a(()=>import("./th-TH.js"),[]),"./locales/tl-PH.json":()=>a(()=>import("./tl-PH2.js"),[]),"./locales/tr-TR.json":()=>a(()=>import("./tr-TR.js"),[]),"./locales/uk-UA.json":()=>a(()=>import("./uk-UA.js"),[]),"./locales/vi-VN.json":()=>a(()=>import("./vi-VN.js"),[]),"./locales/vls-BE.json":()=>a(()=>import("./vls-BE.js"),[]),"./locales/zh-CN.json":()=>a(()=>import("./zh-CN2.js"),[]),"./locales/zh-TW.json":()=>a(()=>import("./zh-TW2.js"),[])}),`./locales/${bt}.json`)),Fl(d.localeOptions.locale),Pt(()=>{It.set(l)}),e.$$set=m=>{"filters"in m&&n(4,l=m.filters),"options"in m&&n(0,d=m.options),"rowMiddleClickHandler"in m&&n(1,u=m.rowMiddleClickHandler),"ticketSelectionChangeHandler"in m&&n(5,c=m.ticketSelectionChangeHandler),"changeFilterHandler"in m&&n(2,_=m.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&16&&l&&It.set(l),e.$$.dirty&928&&c(s,r,i.length)},[d,u,_,o,l,c,f,i,r,s]}class hd extends oe{constructor(t){super(),re(this,t,md,fd,ie,{filters:4,options:0,rowMiddleClickHandler:1,ticketSelectionChangeHandler:5,changeFilterHandler:2,reload:6})}get filters(){return this.$$.ctx[4]}set filters(t){this.$$set({filters:t}),D()}get options(){return this.$$.ctx[0]}set options(t){this.$$set({options:t}),D()}get rowMiddleClickHandler(){return this.$$.ctx[1]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),D()}get ticketSelectionChangeHandler(){return this.$$.ctx[5]}set ticketSelectionChangeHandler(t){this.$$set({ticketSelectionChangeHandler:t}),D()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),D()}get reload(){return this.$$.ctx[6]}}customElements.define("tickets-table",se(hd,{filters:{},options:{},rowMiddleClickHandler:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));export{he as A,L as B,H as C,ge as D,b as E,ns as F,oe as S,Tt as a,pd as b,se as c,y as d,vd as e,D as f,k as g,T as h,re as i,xn as j,P as k,ve as l,Bi as m,W as n,yd as o,Gr as p,bd as q,ke as r,ie as s,Me as t,ee as u,zi as v,M as w,Ed as x,ze as y,N as z};