croswil_comp_adm 2.0.14 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.css +1 -0
- package/dist/index.js +1 -1
- package/dist/safelist.js +11 -0
- package/package.json +1 -1
package/dist/bundle.css
CHANGED
|
@@ -57,4 +57,5 @@
|
|
|
57
57
|
.container.svelte-11f68ic{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;user-select:none;touch-action:none;cursor:move}.image.svelte-11f68ic{max-width:100%;max-height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;will-change:transform}.cropperArea.svelte-11f68ic{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);box-shadow:0 0 0 9999em;box-sizing:border-box;color:rgba(0, 0, 0, 0.5);border:1px solid rgba(255, 255, 255, 0.5);overflow:hidden}
|
|
58
58
|
.contenitore.svelte-l4jjoj{@apply fixed inset-0 z-[20000] flex flex-col items-center justify-center;}.msg.svelte-l4jjoj{@apply relative w-full max-h-full bg-c-100 border border-c-border shadow-md;}.bg.svelte-l4jjoj{@apply inset-0 fixed bg-c-800 opacity-10;}
|
|
59
59
|
.json-table-container.svelte-1i5mpub.svelte-1i5mpub{margin:0.5rem 0}.json-table-title.svelte-1i5mpub.svelte-1i5mpub{font-weight:bold;margin-bottom:0.25rem}.json-table.svelte-1i5mpub.svelte-1i5mpub{border-collapse:collapse;width:100%;border:1px solid #ddd}.json-table.svelte-1i5mpub th.svelte-1i5mpub,.json-table.svelte-1i5mpub td.svelte-1i5mpub{border:1px solid #ddd;padding:0.5rem;text-align:left}.json-table.svelte-1i5mpub th.svelte-1i5mpub{background-color:#f2f2f2;font-weight:bold}.json-table-key.svelte-1i5mpub.svelte-1i5mpub{font-weight:bold;color:#0077aa}
|
|
60
|
+
.modern-slider.svelte-1vv3oyu::-webkit-slider-runnable-track{height:6px;background-color:var(--color-150);border-radius:4px}.modern-slider.svelte-1vv3oyu::-moz-range-track{height:6px;background-color:var(--color-base);border-radius:4px}.modern-slider.svelte-1vv3oyu::-webkit-slider-thumb{-webkit-appearance:none;height:16px;width:16px;background:var(--color-base);border:2px solid var(--color-base);border-radius:50%;box-shadow:0 0 4px rgba(0, 0, 0, 0.2);margin-top:-5px;transition:transform 0.15s ease}.modern-slider.svelte-1vv3oyu::-webkit-slider-thumb:hover{transform:scale(1.15)}.modern-slider.svelte-1vv3oyu::-moz-range-thumb{height:16px;width:16px;background:var(--color-base);border:2px solid var(--color-base);border-radius:50%;box-shadow:0 0 4px rgba(0, 0, 0, 0.2);transition:transform 0.15s ease}.modern-slider.svelte-1vv3oyu::-moz-range-thumb:hover{transform:scale(1.15)}
|
|
60
61
|
.loader.svelte-1r2cbtk{width:80px;padding:8px;aspect-ratio:1;border-radius:50%;background:var(--color-base);--_m:conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;-webkit-mask:var(--_m);mask:var(--_m);-webkit-mask-composite:source-out;mask-composite:subtract;animation:svelte-1r2cbtk-l3 1s infinite linear}@keyframes svelte-1r2cbtk-l3{to{transform:rotate(1turn)}}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SvelteComponent as t,init as e,safe_not_equal as n,assign as l,exclude_internal_props as o,create_slot as i,detach as r,transition_out as c,transition_in as s,set_data as u,update_slot_base as a,get_all_dirty_from_scope as f,get_slot_changes as d,attr as p,toggle_class as m,insert as x,append as h,element as b,text as g,space as w,set_style as v,noop as y,empty as $,group_outros as k,check_outros as z,binding_callbacks as _,run_all as j,listen as S,create_out_transition as I,add_render_callback as A,create_in_transition as M,HtmlTag as D,destroy_component as B,mount_component as O,stop_propagation as E,prevent_default as T,create_component as F,create_bidirectional_transition as C,set_input_value as P,component_subscribe as R,src_url_equal as N,globals as L,bubble as X,select_option as H,ensure_array_like as Z,destroy_each as V,bind as Y,add_flush_callback as U,null_to_empty as W}from"svelte/internal";import{onMount as J,tick as q,createEventDispatcher as G,onDestroy as K,getContext as Q,setContext as tt}from"svelte";let et=1e3;function nt(){return et++,et}function lt(t,e,n,l,o,i,r,c,s){let u,a=[];function f(t,e,n){return t||(t=e),e?"X"==(n=(n||"_").trim().toLowerCase())&&t!=e?t+"*":"M"==n?t+"M":t:t}return u=f(t,l,r),u&&a.push(u),u=f(e,o,c),u&&a.push(u),u=f(n,i,s),u&&a.push(u),(""+r+c+s).replace(/[_XM]/gi,""),a.join("x")}function ot(t){const e=new Date(t),n=e.getDate().toString().padStart(2,"0"),l=(e.getMonth()+1).toString().padStart(2,"0");return`${e.getFullYear()}-${l}-${n}`}function it(t){if(!t)return"";"number"==typeof t&&(t=t.toDate());let e=t.getDate(),n=t.getMonth()+1,l=t.getFullYear(),o=t.getHours(),i=t.getMinutes();return e=e<10?"0"+e:e,n=n<10?"0"+n:n,o=o<10?"0"+o:o,i=i<10?"0"+i:i,`${e}/${n}/${l} ${o}:${i}`}const rt=new class{constructor(){this.buslist={}}on(t,e){return this.buslist[t]||(this.buslist[t]=[]),this.buslist[t].push(e),this.buslist[t].length-1}emit(t,...e){this.buslist[t]&&this.buslist[t].forEach(t=>t(...e))}off(t,e){this.buslist[t]&&("number"==typeof e?e>=0&&e<this.buslist[t].length&&this.buslist[t].splice(e,1):this.buslist[t]=this.buslist[t].filter(t=>t!==e))}$on(t,e){this.on(t,e)}$off(t,e){this.off(t,e)}$emit(t,...e){this.emit(t,...e)}};function ct(t){if(Array.isArray(t))return t;var e=[],n={};if(t){var l=t.split(/[\n;,]/);for(var o of l){var i,r,c=o.search(/[:=#]/);c<0?i=r=o.trim():(i=o.slice(0,c),r=o.slice(c+1)),(i=i.toLowerCase())&&!n[i]&&(n[i]=1,e.push({cod:i,des:r}))}}return e}rt.messaggio=t=>rt.emit("messaggio",t),rt.warning=t=>rt.emit("warning",t),rt.errore=t=>rt.emit("error",t),rt.salvato=t=>rt.emit("messaggio","dati memorizzati!"),rt.wait=t=>rt.emit("wait",t);var st=(t,e=-1)=>{if(!t)return 0;if("number"==typeof t)return t||0;let n=0;if("string"==typeof t){let e=(t=t.replaceAll(",",".")).match(/^-?[0-9.]+$/g);e&&e.length>0?n=Number(e[0]):/^\s*-?\s*[0-9]+(\.[0-9]+)?\s*$/gi.test(t)?n=parseFloat(t):/[\s\d()-+/*^.]+/gi.test(t)&&(n=0)}if(e>=0){const t=Math.pow(10,e);n=Math.round(n*t)/t}return n||0},ut=(t,e,n="")=>0==t?e||"":new Intl.NumberFormat("it-IT",{style:"currency",currency:"EUR"}).format(st(t))+n;let at={};var ft=(t,e)=>{if(Date.prototype.getWeek||(Date.prototype.getWeek=function(){var t=new Date(this.getFullYear(),0,1);return Math.ceil(((this-t)/864e5+t.getDay()+1)/7)}),"object"!=typeof t){if(!(t=parseFloat(t||0)))return"";t=t.toDate()}if("week"==e)return"w"+t.getWeek();if(!at[e])switch(e){case"giorni":{let e=t.toInt();var n=e.diffgiorni((new Date).toInt());return 0==n?"Oggi":-1==n?"Domani":1==n?"Ieri":Math.abs(n)<6?new Intl.DateTimeFormat("it",{weekday:"long"}).format(t).trim():ft(e,"ggmmm")}case"date":case"shortdate":at[e]=new Intl.DateTimeFormat("it",{weekday:"short",day:"numeric",month:"short",year:"numeric"});break;case"ggmmaa":case"ggmmyy":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"2-digit",year:"2-digit"});break;case"datetime":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"2-digit",year:"numeric",hour12:!1,hour:"numeric",minute:"2-digit"});break;case"yyyy":case"anno":at[e]=new Intl.DateTimeFormat("it",{year:"numeric"});break;case"ggmmaaaa":case"ggmmyyyy":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"2-digit",year:"numeric"});break;case"ggmm":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"2-digit"});break;case"giorno":case"gg":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit"});break;case"ggmmmaaaa":case"ggmmmyyyy":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"short",year:"numeric"});break;case"ggmmmaa":case"ggmmmyy":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"short",year:"2-digit"});break;case"ggmmm":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"short"});break;case"ggmmmm":at[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"long"});break;case"mmmyy":case"mmmaa":case"mmmyyyy":case"mmmaaaa":at[e]=new Intl.DateTimeFormat("it",{month:"short",year:"numeric"});break;case"weekday":at[e]=new Intl.DateTimeFormat("it",{weekday:"long"});break;case"hhmm":at[e]=new Intl.DateTimeFormat("it",{hour12:!1,hour:"numeric",minute:"2-digit"});break;case"hhmmss":at[e]=new Intl.DateTimeFormat("it",{hour12:!1,hour:"numeric",minute:"2-digit",second:"2-digit"});break;case"mese":at[e]=new Intl.DateTimeFormat("it",{month:"long"});break;default:at[e="."]||(at[e]=new Intl.DateTimeFormat("it",{weekday:"long",day:"numeric",month:"long",year:"numeric",hour12:!1,hour:"numeric",minute:"2-digit"}))}return at[e].format(t).trim()};function dt(t){let e,n,l,o,y,$,k=(t[0]||"")+"";const z=t[23].default,_=i(z,t,t[22],null);return{c(){e=b("div"),n=b("div"),l=g(k),o=w(),_&&_.c(),v(e,"width","fit-content"),p(e,"class",y=(t[7].class||"")+" px-2 py-0.5 rounded flex flex-col items-center "+t[6]+" "+(t[4]?"":"whitespace-nowrap")),m(e,"font-bold",t[5]),m(e,"text-sm",t[1]),m(e,"text-xs",t[2]),m(e,"text-lg",t[3])},m(t,i){x(t,e,i),h(e,n),h(n,l),h(e,o),_&&_.m(e,null),$=!0},p(t,[n]){(!$||1&n)&&k!==(k=(t[0]||"")+"")&&u(l,k),_&&_.p&&(!$||4194304&n)&&a(_,z,t,t[22],$?d(z,t[22],n,null):f(t[22]),null),(!$||208&n&&y!==(y=(t[7].class||"")+" px-2 py-0.5 rounded flex flex-col items-center "+t[6]+" "+(t[4]?"":"whitespace-nowrap")))&&p(e,"class",y),(!$||240&n)&&m(e,"font-bold",t[5]),(!$||210&n)&&m(e,"text-sm",t[1]),(!$||212&n)&&m(e,"text-xs",t[2]),(!$||216&n)&&m(e,"text-lg",t[3])},i(t){$||(s(_,t),$=!0)},o(t){c(_,t),$=!1},d(t){t&&r(e),_&&_.d(t)}}}function pt(t,e,n){let i,{$$slots:r={},$$scope:c}=e,{value:s,tipo:u="",warning:a=!1,alt:f=!1,ialt:d=!1,iwarning:p=!1,success:m=!1,isuccess:x=!1,danger:h=!1,idanger:b=!1,base:g=!1,ibase:w=!1,gray:v=!1,igray:y=!1,sm:$=!1,xs:k=!1,lg:z=!1,wrap:_=!1,bold:j=!1,black:S=!1}=e;return t.$$set=t=>{n(7,e=l(l({},e),o(t))),"value"in t&&n(0,s=t.value),"tipo"in t&&n(8,u=t.tipo),"warning"in t&&n(9,a=t.warning),"alt"in t&&n(10,f=t.alt),"ialt"in t&&n(11,d=t.ialt),"iwarning"in t&&n(12,p=t.iwarning),"success"in t&&n(13,m=t.success),"isuccess"in t&&n(14,x=t.isuccess),"danger"in t&&n(15,h=t.danger),"idanger"in t&&n(16,b=t.idanger),"base"in t&&n(17,g=t.base),"ibase"in t&&n(18,w=t.ibase),"gray"in t&&n(19,v=t.gray),"igray"in t&&n(20,y=t.igray),"sm"in t&&n(1,$=t.sm),"xs"in t&&n(2,k=t.xs),"lg"in t&&n(3,z=t.lg),"wrap"in t&&n(4,_=t.wrap),"bold"in t&&n(5,j=t.bold),"black"in t&&n(21,S=t.black),"$$scope"in t&&n(22,c=t.$$scope)},t.$$.update=()=>{1045249&t.$$.dirty&&n(6,i=a||"warning"==u?"bg-b-warning text-c-warning":p||"iwarning"==u?"bg-c-warning text-b-warning":m||"success"==u?"bg-b-success text-c-success":x||"isuccess"==u?"bg-c-success text-b-success":h||"danger"==u?"bg-c-danger text-b-danger":b||"idanger"==u?"bg-b-danger text-c-danger":g||"base"==u?"bg-b-base text-c-base":w||"ibase"==u?"bg-c-base text-b-base":f||"alt"==u?"bg-pink-100 text-pink-700":d||"ialt"==u?"bg-pink-700 text-pink-100":v||"gray"==u?"bg-c-100 text-c-500":y||"igray"==u?"bg-c-800 text-c-100":S||"black"==u?"bg-black text-white":"text-xl monospace")},e=o(e),[s,$,k,z,_,j,i,e,u,a,f,d,p,m,x,h,b,g,w,v,y,S,c,r]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class mt extends t{constructor(t){super(),e(this,t,pt,dt,n,{value:0,tipo:8,warning:9,alt:10,ialt:11,iwarning:12,success:13,isuccess:14,danger:15,idanger:16,base:17,ibase:18,gray:19,igray:20,sm:1,xs:2,lg:3,wrap:4,bold:5,black:21})}}function xt(t){let e;function n(t,e){return t[4]?gt:t[1]?ht:bt}let l=n(t),o=l(t);return{c(){o.c(),e=$()},m(t,n){o.m(t,n),x(t,e,n)},p(t,i){l===(l=n(t))&&o?o.p(t,i):(o.d(1),o=l(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&r(e),o.d(t)}}}function ht(t){let e,n,l,o,i;return{c(){e=b("figure"),n=b("canvas"),p(n,"class",l=`w-full h-full ${t[5]()}`),p(n,"style",o=`-webkit-mask: url(${t[9]}) 50% 50% no-repeat;\n mask: url(${t[9]}) 50% 50% no-repeat;\n -webkit-mask-size:contain;\n mask-size:contain;\n aspect-ratio: 1 / 1;`),p(e,"class",i=t[11].class||""),p(e,"style",t[8])},m(t,l){x(t,e,l),h(e,n)},p(t,r){32&r&&l!==(l=`w-full h-full ${t[5]()}`)&&p(n,"class",l),512&r&&o!==(o=`-webkit-mask: url(${t[9]}) 50% 50% no-repeat;\n mask: url(${t[9]}) 50% 50% no-repeat;\n -webkit-mask-size:contain;\n mask-size:contain;\n aspect-ratio: 1 / 1;`)&&p(n,"style",o),2048&r&&i!==(i=t[11].class||"")&&p(e,"class",i),256&r&&p(e,"style",t[8])},d(t){t&&r(e)}}}function bt(t){let e,n,l=(t[10][t[0]]?t[10][t[0]]:t[0])+"";return{c(){e=b("div"),p(e,"class",n=`select-none bg-transparent block material-symbols-rounded leading-none notranslate ${t[11].class||""} ${t[2]}`),p(e,"style",t[7])},m(t,n){x(t,e,n),e.innerHTML=l},p(t,o){1&o&&l!==(l=(t[10][t[0]]?t[10][t[0]]:t[0])+"")&&(e.innerHTML=l),2052&o&&n!==(n=`select-none bg-transparent block material-symbols-rounded leading-none notranslate ${t[11].class||""} ${t[2]}`)&&p(e,"class",n),128&o&&p(e,"style",t[7])},d(t){t&&r(e)}}}function gt(t){let e,n,l,o;return{c(){e=b("div"),n=g(t[0]),p(e,"class",l=t[2]+" "+(t[11].class||"")+" w-full h-full text-center flex items-center justify-center"),p(e,"style",o=t[6]+" "+t[8])},m(t,l){x(t,e,l),h(e,n)},p(t,i){1&i&&u(n,t[0]),2052&i&&l!==(l=t[2]+" "+(t[11].class||"")+" w-full h-full text-center flex items-center justify-center")&&p(e,"class",l),320&i&&o!==(o=t[6]+" "+t[8])&&p(e,"style",o)},d(t){t&&r(e)}}}function wt(t){let e,n=t[3]&&xt(t);return{c(){n&&n.c(),e=$()},m(t,l){n&&n.m(t,l),x(t,e,l)},p(t,[l]){t[3]?n?n.p(t,l):(n=xt(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:y,o:y,d(t){t&&r(e),n&&n.d(t)}}}function vt(t,e,n){let i,r,c,s,u,a,f,{img:d="close"}=e,{size:p=8}=e,{color:m="text-c-800 hover:text-black"}=e,{pixel:x=!1}=e,{local:h=!1}=e,{black:b=!1,alt:g=!1,readonly:w=!1}=e;let v=!1;return J(async()=>{await document.fonts.ready,n(3,v=!0)}),t.$$set=t=>{n(11,e=l(l({},e),o(t))),"img"in t&&n(0,d=t.img),"size"in t&&n(12,p=t.size),"color"in t&&n(13,m=t.color),"pixel"in t&&n(14,x=t.pixel),"local"in t&&n(1,h=t.local),"black"in t&&n(15,b=t.black),"alt"in t&&n(16,g=t.alt),"readonly"in t&&n(17,w=t.readonly)},t.$$.update=()=>{237568&t.$$.dirty&&n(2,i=w?"text-c-200":g?"text-c-base hover:text-black":b?"text-c-100 hover:text-white":m),20480&t.$$.dirty&&n(8,c=x?`width: ${p}px; height: ${p}px;`:`width: ${(p||12)/4}rem; height: ${(p||12)/4}rem;`),20480&t.$$.dirty&&n(7,s=x?`font-size: ${p}px;`:`font-size: ${(p||12)/4}rem;`),20480&t.$$.dirty&&n(6,u=x?`font-size: ${.8*p}px;`:`font-size: ${.8*(p||12)/4}rem;`),8196&t.$$.dirty&&n(5,a=()=>i.replaceAll("text-","bg-"))},n(9,r=`/svg/${d}.svg`),n(4,f=d?.length>0&&(38==d.charCodeAt(0)||d.charCodeAt(0)>1e3)),e=o(e),[d,h,i,v,f,a,u,s,c,r,{dashboard:"",people_alt:"",local_offer:"",local_shipping:"",view_list:"",calendar_month:"",auto_mode:"",store:"",paid:"",account_balance:"",tips_and_updates:"",bug_report:""},e,p,m,x,b,g,w]}class yt extends t{constructor(t){super(),e(this,t,vt,wt,n,{img:0,size:12,color:13,pixel:14,local:1,black:15,alt:16,readonly:17})}}let $t={bus:rt,myuuid:nt,formatDate:ot,toDateStr:it,listfromstring:ct,toEuro:ut,tonum:st,strDate:ft,getdim:lt,autofocus:function(t,e,n=100){if(!t)return;e&&e.querySelectorAll&&setTimeout(()=>{var t=e.querySelectorAll("input,select,area");(t&&t[0]||(t=e.querySelectorAll("button"))&&t[0])&&t[0].focus()},n)},setStorage:function(t,e){window?.localStorage&&(null==e||""===e?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e)))},getStorage:function(t,e){var n;window?.localStorage&&(n=window.localStorage.getItem(t));return n?JSON.parse(n):e}};function kt(){return $t}function zt(t){t||(t={});for(let e in t)$t[e]=t[e];return $t}const _t=t=>t;function jt(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function St(t){const e=t-1;return e*e*e+1}function It(t){return Math.sin(-13*(t+1)*Math.PI/2)*Math.pow(2,-10*t)+1}function At(t,{delay:e=0,duration:n=400,easing:l=_t}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:l,css:t=>"opacity: "+t*o}}function Mt(t,{delay:e=0,duration:n=400,easing:l=St,x:o=0,y:i=0,opacity:r=0}={}){const c=getComputedStyle(t),s=+c.opacity,u="none"===c.transform?"":c.transform,a=s*(1-r),[f,d]=jt(o),[p,m]=jt(i);return{delay:e,duration:n,easing:l,css:(t,e)=>`\n\t\t\ttransform: ${u} translate(${(1-t)*f}${d}, ${(1-t)*p}${m});\n\t\t\topacity: ${s-a*e}`}}function Dt(t,{delay:e=0,duration:n=400,easing:l=St,start:o=0,opacity:i=0}={}){const r=getComputedStyle(t),c=+r.opacity,s="none"===r.transform?"":r.transform,u=1-o,a=c*(1-i);return{delay:e,duration:n,easing:l,css:(t,e)=>`\n\t\t\ttransform: ${s} scale(${1-u*e});\n\t\t\topacity: ${c-a*e}\n\t\t`}}const Bt=Math.min,Ot=Math.max,Et=Math.round,Tt=t=>({x:t,y:t}),Ft={left:"right",right:"left",bottom:"top",top:"bottom"},Ct={start:"end",end:"start"};function Pt(t,e,n){return Ot(t,Bt(e,n))}function Rt(t,e){return"function"==typeof t?t(e):t}function Nt(t){return t.split("-")[0]}function Lt(t){return t.split("-")[1]}function Xt(t){return"x"===t?"y":"x"}function Ht(t){return"y"===t?"height":"width"}const Zt=new Set(["top","bottom"]);function Vt(t){return Zt.has(Nt(t))?"y":"x"}function Yt(t){return Xt(Vt(t))}function Ut(t){return t.replace(/start|end/g,t=>Ct[t])}const Wt=["left","right"],Jt=["right","left"],qt=["top","bottom"],Gt=["bottom","top"];function Kt(t,e,n,l){const o=Lt(t);let i=function(t,e,n){switch(t){case"top":case"bottom":return n?e?Jt:Wt:e?Wt:Jt;case"left":case"right":return e?qt:Gt;default:return[]}}(Nt(t),"start"===n,l);return o&&(i=i.map(t=>t+"-"+o),e&&(i=i.concat(i.map(Ut)))),i}function Qt(t){return t.replace(/left|right|bottom|top/g,t=>Ft[t])}function te(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function ee(t){const{x:e,y:n,width:l,height:o}=t;return{width:l,height:o,top:n,left:e,right:e+l,bottom:n+o,x:e,y:n}}function ne(t,e,n){let{reference:l,floating:o}=t;const i=Vt(e),r=Yt(e),c=Ht(r),s=Nt(e),u="y"===i,a=l.x+l.width/2-o.width/2,f=l.y+l.height/2-o.height/2,d=l[c]/2-o[c]/2;let p;switch(s){case"top":p={x:a,y:l.y-o.height};break;case"bottom":p={x:a,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-o.width,y:f};break;default:p={x:l.x,y:l.y}}switch(Lt(e)){case"start":p[r]-=d*(n&&u?-1:1);break;case"end":p[r]+=d*(n&&u?-1:1)}return p}async function le(t,e){var n;void 0===e&&(e={});const{x:l,y:o,platform:i,rects:r,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:a="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Rt(e,t),m=te(p),x=c[d?"floating"===f?"reference":"floating":f],h=ee(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(x)))||n?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:a,strategy:s})),b="floating"===f?{x:l,y:o,width:r.floating.width,height:r.floating.height}:r.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},v=ee(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:g,strategy:s}):b);return{top:(h.top-v.top+m.top)/w.y,bottom:(v.bottom-h.bottom+m.bottom)/w.y,left:(h.left-v.left+m.left)/w.x,right:(v.right-h.right+m.right)/w.x}}const oe=new Set(["left","top"]);function ie(){return"undefined"!=typeof window}function re(t){return ue(t)?(t.nodeName||"").toLowerCase():"#document"}function ce(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function se(t){var e;return null==(e=(ue(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ue(t){return!!ie()&&(t instanceof Node||t instanceof ce(t).Node)}function ae(t){return!!ie()&&(t instanceof Element||t instanceof ce(t).Element)}function fe(t){return!!ie()&&(t instanceof HTMLElement||t instanceof ce(t).HTMLElement)}function de(t){return!(!ie()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof ce(t).ShadowRoot)}const pe=new Set(["inline","contents"]);function me(t){const{overflow:e,overflowX:n,overflowY:l,display:o}=je(t);return/auto|scroll|overlay|hidden|clip/.test(e+l+n)&&!pe.has(o)}const xe=new Set(["table","td","th"]);function he(t){return xe.has(re(t))}const be=[":popover-open",":modal"];function ge(t){return be.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const we=["transform","translate","scale","rotate","perspective"],ve=["transform","translate","scale","rotate","perspective","filter"],ye=["paint","layout","strict","content"];function $e(t){const e=ke(),n=ae(t)?je(t):t;return we.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||ve.some(t=>(n.willChange||"").includes(t))||ye.some(t=>(n.contain||"").includes(t))}function ke(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ze=new Set(["html","body","#document"]);function _e(t){return ze.has(re(t))}function je(t){return ce(t).getComputedStyle(t)}function Se(t){return ae(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ie(t){if("html"===re(t))return t;const e=t.assignedSlot||t.parentNode||de(t)&&t.host||se(t);return de(e)?e.host:e}function Ae(t){const e=Ie(t);return _e(e)?t.ownerDocument?t.ownerDocument.body:t.body:fe(e)&&me(e)?e:Ae(e)}function Me(t,e,n){var l;void 0===e&&(e=[]);const o=Ae(t),i=o===(null==(l=t.ownerDocument)?void 0:l.body),r=ce(o);return i?(De(r),e.concat(r,r.visualViewport||[],me(o)?o:[],[])):e.concat(o,Me(o,[]))}function De(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Be(t){const e=je(t);let n=parseFloat(e.width)||0,l=parseFloat(e.height)||0;const o=fe(t),i=o?t.offsetWidth:n,r=o?t.offsetHeight:l,c=Et(n)!==i||Et(l)!==r;return c&&(n=i,l=r),{width:n,height:l,$:c}}function Oe(t){return ae(t)?t:t.contextElement}function Ee(t){const e=Oe(t);if(!fe(e))return Tt(1);const n=e.getBoundingClientRect(),{width:l,height:o,$:i}=Be(e);let r=(i?Et(n.width):n.width)/l,c=(i?Et(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),c&&Number.isFinite(c)||(c=1),{x:r,y:c}}const Te=Tt(0);function Fe(t){const e=ce(t);return ke()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Te}function Ce(t,e,n,l){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),i=Oe(t);let r=Tt(1);e&&(l?ae(l)&&(r=Ee(l)):r=Ee(t));const c=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==ce(t))&&e}(i,n,l)?Fe(i):Tt(0);let s=(o.left+c.x)/r.x,u=(o.top+c.y)/r.y,a=o.width/r.x,f=o.height/r.y;if(i){const t=ce(i),e=l&&ae(l)?ce(l):l;let n=t,o=De(n);for(;o&&l&&e!==n;){const t=Ee(o),e=o.getBoundingClientRect(),l=je(o),i=e.left+(o.clientLeft+parseFloat(l.paddingLeft))*t.x,r=e.top+(o.clientTop+parseFloat(l.paddingTop))*t.y;s*=t.x,u*=t.y,a*=t.x,f*=t.y,s+=i,u+=r,n=ce(o),o=De(n)}}return ee({width:a,height:f,x:s,y:u})}function Pe(t,e){const n=Se(t).scrollLeft;return e?e.left+n:Ce(se(t)).left+n}function Re(t,e,n){void 0===n&&(n=!1);const l=t.getBoundingClientRect();return{x:l.left+e.scrollLeft-(n?0:Pe(t,l)),y:l.top+e.scrollTop}}const Ne=new Set(["absolute","fixed"]);function Le(t,e,n){let l;if("viewport"===e)l=function(t,e){const n=ce(t),l=se(t),o=n.visualViewport;let i=l.clientWidth,r=l.clientHeight,c=0,s=0;if(o){i=o.width,r=o.height;const t=ke();(!t||t&&"fixed"===e)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:r,x:c,y:s}}(t,n);else if("document"===e)l=function(t){const e=se(t),n=Se(t),l=t.ownerDocument.body,o=Ot(e.scrollWidth,e.clientWidth,l.scrollWidth,l.clientWidth),i=Ot(e.scrollHeight,e.clientHeight,l.scrollHeight,l.clientHeight);let r=-n.scrollLeft+Pe(t);const c=-n.scrollTop;return"rtl"===je(l).direction&&(r+=Ot(e.clientWidth,l.clientWidth)-o),{width:o,height:i,x:r,y:c}}(se(t));else if(ae(e))l=function(t,e){const n=Ce(t,!0,"fixed"===e),l=n.top+t.clientTop,o=n.left+t.clientLeft,i=fe(t)?Ee(t):Tt(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:o*i.x,y:l*i.y}}(e,n);else{const n=Fe(t);l={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ee(l)}function Xe(t,e){const n=Ie(t);return!(n===e||!ae(n)||_e(n))&&("fixed"===je(n).position||Xe(n,e))}function He(t,e,n){const l=fe(e),o=se(e),i="fixed"===n,r=Ce(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const s=Tt(0);function u(){s.x=Pe(o)}if(l||!l&&!i)if(("body"!==re(e)||me(o))&&(c=Se(e)),l){const t=Ce(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else o&&u();i&&!l&&o&&u();const a=!o||l||i?Tt(0):Re(o,c);return{x:r.left+c.scrollLeft-s.x-a.x,y:r.top+c.scrollTop-s.y-a.y,width:r.width,height:r.height}}function Ze(t){return"static"===je(t).position}function Ve(t,e){if(!fe(t)||"fixed"===je(t).position)return null;if(e)return e(t);let n=t.offsetParent;return se(t)===n&&(n=n.ownerDocument.body),n}function Ye(t,e){const n=ce(t);if(ge(t))return n;if(!fe(t)){let e=Ie(t);for(;e&&!_e(e);){if(ae(e)&&!Ze(e))return e;e=Ie(e)}return n}let l=Ve(t,e);for(;l&&he(l)&&Ze(l);)l=Ve(l,e);return l&&_e(l)&&Ze(l)&&!$e(l)?n:l||function(t){let e=Ie(t);for(;fe(e)&&!_e(e);){if($e(e))return e;if(ge(e))return null;e=Ie(e)}return null}(t)||n}const Ue={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:l,strategy:o}=t;const i="fixed"===o,r=se(l),c=!!e&&ge(e.floating);if(l===r||c&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Tt(1);const a=Tt(0),f=fe(l);if((f||!f&&!i)&&(("body"!==re(l)||me(r))&&(s=Se(l)),fe(l))){const t=Ce(l);u=Ee(l),a.x=t.x+l.clientLeft,a.y=t.y+l.clientTop}const d=!r||f||i?Tt(0):Re(r,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+a.x+d.x,y:n.y*u.y-s.scrollTop*u.y+a.y+d.y}},getDocumentElement:se,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:l,strategy:o}=t;const i="clippingAncestors"===n?ge(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let l=Me(t,[]).filter(t=>ae(t)&&"body"!==re(t)),o=null;const i="fixed"===je(t).position;let r=i?Ie(t):t;for(;ae(r)&&!_e(r);){const e=je(r),n=$e(r);n||"fixed"!==e.position||(o=null),(i?!n&&!o:!n&&"static"===e.position&&o&&Ne.has(o.position)||me(r)&&!n&&Xe(t,r))?l=l.filter(t=>t!==r):o=e,r=Ie(r)}return e.set(t,l),l}(e,this._c):[].concat(n),r=[...i,l],c=r[0],s=r.reduce((t,n)=>{const l=Le(e,n,o);return t.top=Ot(l.top,t.top),t.right=Bt(l.right,t.right),t.bottom=Bt(l.bottom,t.bottom),t.left=Ot(l.left,t.left),t},Le(e,c,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ye,getElementRects:async function(t){const e=this.getOffsetParent||Ye,n=this.getDimensions,l=await n(t.floating);return{reference:He(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Be(t);return{width:e,height:n}},getScale:Ee,isElement:ae,isRTL:function(t){return"rtl"===je(t).direction}},We=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,l;const{x:o,y:i,placement:r,middlewareData:c}=e,s=await async function(t,e){const{placement:n,platform:l,elements:o}=t,i=await(null==l.isRTL?void 0:l.isRTL(o.floating)),r=Nt(n),c=Lt(n),s="y"===Vt(n),u=oe.has(r)?-1:1,a=i&&s?-1:1,f=Rt(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&"number"==typeof m&&(p="end"===c?-1*m:m),s?{x:p*a,y:d*u}:{x:d*u,y:p*a}}(e,t);return r===(null==(n=c.offset)?void 0:n.placement)&&null!=(l=c.arrow)&&l.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:r}}}}},Je=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:l,placement:o}=e,{mainAxis:i=!0,crossAxis:r=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=Rt(t,e),u={x:n,y:l},a=await le(e,s),f=Vt(Nt(o)),d=Xt(f);let p=u[d],m=u[f];if(i){const t="y"===d?"bottom":"right";p=Pt(p+a["y"===d?"top":"left"],p,p-a[t])}if(r){const t="y"===f?"bottom":"right";m=Pt(m+a["y"===f?"top":"left"],m,m-a[t])}const x=c.fn({...e,[d]:p,[f]:m});return{...x,data:{x:x.x-n,y:x.y-l,enabled:{[d]:i,[f]:r}}}}}},qe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,l;const{placement:o,middlewareData:i,rects:r,initialPlacement:c,platform:s,elements:u}=e,{mainAxis:a=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:x=!0,...h}=Rt(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=Nt(o),g=Vt(c),w=Nt(c)===c,v=await(null==s.isRTL?void 0:s.isRTL(u.floating)),y=d||(w||!x?[Qt(c)]:function(t){const e=Qt(t);return[Ut(t),e,Ut(e)]}(c)),$="none"!==m;!d&&$&&y.push(...Kt(c,x,m,v));const k=[c,...y],z=await le(e,h),_=[];let j=(null==(l=i.flip)?void 0:l.overflows)||[];if(a&&_.push(z[b]),f){const t=function(t,e,n){void 0===n&&(n=!1);const l=Lt(t),o=Yt(t),i=Ht(o);let r="x"===o?l===(n?"end":"start")?"right":"left":"start"===l?"bottom":"top";return e.reference[i]>e.floating[i]&&(r=Qt(r)),[r,Qt(r)]}(o,r,v);_.push(z[t[0]],z[t[1]])}if(j=[...j,{placement:o,overflows:_}],!_.every(t=>t<=0)){var S,I;const t=((null==(S=i.flip)?void 0:S.index)||0)+1,e=k[t];if(e){if(!("alignment"===f&&g!==Vt(e))||j.every(t=>t.overflows[0]>0&&Vt(t.placement)===g))return{data:{index:t,overflows:j},reset:{placement:e}}}let n=null==(I=j.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var A;const t=null==(A=j.filter(t=>{if($){const e=Vt(t.placement);return e===g||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(n=t);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},Ge=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:l,placement:o,rects:i,platform:r,elements:c,middlewareData:s}=e,{element:u,padding:a=0}=Rt(t,e)||{};if(null==u)return{};const f=te(a),d={x:n,y:l},p=Yt(o),m=Ht(p),x=await r.getDimensions(u),h="y"===p,b=h?"top":"left",g=h?"bottom":"right",w=h?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[p]-d[p]-i.floating[m],y=d[p]-i.reference[p],$=await(null==r.getOffsetParent?void 0:r.getOffsetParent(u));let k=$?$[w]:0;k&&await(null==r.isElement?void 0:r.isElement($))||(k=c.floating[w]||i.floating[m]);const z=v/2-y/2,_=k/2-x[m]/2-1,j=Bt(f[b],_),S=Bt(f[g],_),I=j,A=k-x[m]-S,M=k/2-x[m]/2+z,D=Pt(I,M,A),B=!s.arrow&&null!=Lt(o)&&M!==D&&i.reference[m]/2-(M<I?j:S)-x[m]/2<0,O=B?M<I?M-I:M-A:0;return{[p]:d[p]+O,data:{[p]:D,centerOffset:M-D-O,...B&&{alignmentOffset:O}},reset:B}}}),Ke=(t,e,n)=>{const l=new Map,o={platform:Ue,...n},i={...o.platform,_c:l};return(async(t,e,n)=>{const{placement:l="bottom",strategy:o="absolute",middleware:i=[],platform:r}=n,c=i.filter(Boolean),s=await(null==r.isRTL?void 0:r.isRTL(e));let u=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:a,y:f}=ne(u,l,s),d=l,p={},m=0;for(let n=0;n<c.length;n++){const{name:i,fn:x}=c[n],{x:h,y:b,data:g,reset:w}=await x({x:a,y:f,initialPlacement:l,placement:d,strategy:o,middlewareData:p,rects:u,platform:r,elements:{reference:t,floating:e}});a=null!=h?h:a,f=null!=b?b:f,p={...p,[i]:{...p[i],...g}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(u=!0===w.rects?await r.getElementRects({reference:t,floating:e,strategy:o}):w.rects),({x:a,y:f}=ne(u,d,s))),n=-1)}return{x:a,y:f,placement:d,strategy:o,middlewareData:p}})(t,e,{...o,platform:i})},Qe=t=>({}),tn=t=>({});function en(t){let e;const n=t[13].default,l=i(n,t,t[12],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||4096&o)&&a(l,n,t,t[12],e?d(n,t[12],o,null):f(t[12]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function nn(t){let e,n,l,o,u,m;const h=t[13].default,g=i(h,t,t[12],null);let y=t[1]&&ln(t);return{c(){e=b("span"),g&&g.c(),n=w(),y&&y.c(),l=$(),p(e,"class","relative"),v(e,"line-height","0 ")},m(i,r){x(i,e,r),g&&g.m(e,null),x(i,n,r),y&&y.m(i,r),x(i,l,r),o=!0,u||(m=[S(e,"focus",t[4]),S(e,"blur",t[5]),S(e,"mouseenter",t[4]),S(e,"mouseleave",t[5])],u=!0)},p(t,e){g&&g.p&&(!o||4096&e)&&a(g,h,t,t[12],o?d(h,t[12],e,null):f(t[12]),null),t[1]?y?(y.p(t,e),2&e&&s(y,1)):(y=ln(t),y.c(),s(y,1),y.m(l.parentNode,l)):y&&(k(),c(y,1,1,()=>{y=null}),z())},i(t){o||(s(g,t),s(y),o=!0)},o(t){c(g,t),c(y),o=!1},d(t){t&&(r(e),r(n),r(l)),g&&g.d(t),y&&y.d(t),u=!1,j(m)}}}function ln(t){let e,n,l,o,u,m,g,y,k;const z=t[13].tooltip,_=i(z,t,t[12],tn),j=_||function(t){let e,n;return{c(){e=new D(!1),n=$(),e.a=n},m(l,o){e.m(t[0],l,o),x(l,n,o)},p(t,n){1&n&&e.p(t[0])},d(t){t&&(r(n),e.d())}}}(t);return{c(){e=b("button"),j&&j.c(),n=w(),l=b("div"),p(l,"class","absolute bg-c-800 w-2 h-2"),v(l,"transform","rotate(45deg)"),p(e,"class",o="fixed top-0 left-0 max-w-max min-w-max text-xs text-white z-[5000] bg-c-800 rounded-md p-2 "+(t[6].class||""))},m(o,i){x(o,e,i),j&&j.m(e,null),h(e,n),h(e,l),t[14](l),t[15](e),g=!0,y||(k=S(e,"click",t[5]),y=!0)},p(t,n){_?_.p&&(!g||4096&n)&&a(_,z,t,t[12],g?d(z,t[12],n,Qe):f(t[12]),tn):j&&j.p&&(!g||1&n)&&j.p(t,g?n:-1),(!g||64&n&&o!==(o="fixed top-0 left-0 max-w-max min-w-max text-xs text-white z-[5000] bg-c-800 rounded-md p-2 "+(t[6].class||"")))&&p(e,"class",o)},i(t){g||(s(j,t),t&&A(()=>{g&&(m&&m.end(1),u=M(e,At,{duration:300}),u.start())}),g=!0)},o(t){c(j,t),u&&u.invalidate(),t&&(m=I(e,At,{duration:300})),g=!1},d(n){n&&r(e),j&&j.d(n),t[14](null),t[15](null),n&&m&&m.end(),y=!1,k()}}}function on(t){let e,n,l,o;const i=[nn,en],u=[];function a(t,e){return t[0]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,[o]){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function rn(t,e,n){let i,r,c,{$$slots:s={},$$scope:u}=e,{tooltip:a}=e,{bottom:f,callback:d,left:p,right:m,maxtime:x=2e3}=e,h=!1;function b(){i&&clearTimeout(i),i=0,n(1,h=!1)}return t.$$set=t=>{n(6,e=l(l({},e),o(t))),"tooltip"in t&&n(0,a=t.tooltip),"bottom"in t&&n(7,f=t.bottom),"callback"in t&&n(8,d=t.callback),"left"in t&&n(9,p=t.left),"right"in t&&n(10,m=t.right),"maxtime"in t&&n(11,x=t.maxtime),"$$scope"in t&&n(12,u=t.$$scope)},e=o(e),[a,h,r,c,async function(t){d&&"function"==typeof d&&await d(),n(1,h=!0),await q(),function(t){t.target&&r&&c&&Ke(t.target,r,{placement:f?"bottom":p?"left":m?"right":"top",middleware:[We(6),qe(),Je({padding:5}),Ge({element:c})]}).then(({x:t,y:e,placement:n,middlewareData:l})=>{Object.assign(r.style,{left:`${t}px`,top:`${e}px`,zIndex:1e3});const{x:o,y:i}=l.arrow,s={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];c&&Object.assign(c.style,{left:null!=o?`${o}px`:"",top:null!=i?`${i}px`:"",right:"",bottom:"",[s]:"-4px"})})}(t),x&&(i=setTimeout(()=>{b()},x))},b,e,f,d,p,m,x,u,s,function(t){_[t?"unshift":"push"](()=>{c=t,n(3,c)})},function(t){_[t?"unshift":"push"](()=>{r=t,n(2,r)})}]}class cn extends t{constructor(t){super(),e(this,t,rn,on,n,{tooltip:0,bottom:7,callback:8,left:9,right:10,maxtime:11})}}function sn(t){let e,n,l,o,i,u,a,f;return n=new cn({props:{tooltip:t[16],$$slots:{default:[un]},$$scope:{ctx:t}}}),{c(){e=b("button"),F(n.$$.fragment),p(e,"aria-label",l=`btnico_${t[0]}`),p(e,"style",t[18]),p(e,"tabindex",o=t[13]?"0":"-1"),p(e,"class",i=t[20](t[1],t[6],t[8],t[11],t[3],t[2],t[5],t[9],t[4],t[7])),m(e,"noprint",!0),m(e,"cursor-pointer",!t[12])},m(l,o){x(l,e,o),O(n,e,null),u=!0,a||(f=S(e,"click",E(T(t[19]))),a=!0)},p(t,r){const c={};65536&r[0]&&(c.tooltip=t[16]),134272929&r[0]&&(c.$$scope={dirty:r,ctx:t}),n.$set(c),(!u||1&r[0]&&l!==(l=`btnico_${t[0]}`))&&p(e,"aria-label",l),(!u||262144&r[0])&&p(e,"style",t[18]),(!u||8192&r[0]&&o!==(o=t[13]?"0":"-1"))&&p(e,"tabindex",o),(!u||3070&r[0]&&i!==(i=t[20](t[1],t[6],t[8],t[11],t[3],t[2],t[5],t[9],t[4],t[7])))&&p(e,"class",i),(!u||3070&r[0])&&m(e,"noprint",!0),(!u||7166&r[0])&&m(e,"cursor-pointer",!t[12])},i(t){u||(s(n.$$.fragment,t),u=!0)},o(t){c(n.$$.fragment,t),u=!1},d(t){t&&r(e),B(n),a=!1,f()}}}function un(t){let e,n,l;e=new yt({props:{img:t[0],size:t[7]?t[15]:t[15]>4?t[15]-2:3,black:!(t[5]||t[9]||t[8]||t[10]),readonly:t[12],local:t[14],alt:t[8],color:t[10]?"text-header hover:text-white":t[5]||t[9]?"text-c-800 hover:text-black":""}});const o=t[26].default,u=i(o,t,t[27],null);return{c(){F(e.$$.fragment),n=w(),u&&u.c()},m(t,o){O(e,t,o),x(t,n,o),u&&u.m(t,o),l=!0},p(t,n){const i={};1&n[0]&&(i.img=t[0]),32896&n[0]&&(i.size=t[7]?t[15]:t[15]>4?t[15]-2:3),1824&n[0]&&(i.black=!(t[5]||t[9]||t[8]||t[10])),4096&n[0]&&(i.readonly=t[12]),16384&n[0]&&(i.local=t[14]),256&n[0]&&(i.alt=t[8]),1568&n[0]&&(i.color=t[10]?"text-header hover:text-white":t[5]||t[9]?"text-c-800 hover:text-black":""),e.$set(i),u&&u.p&&(!l||134217728&n[0])&&a(u,o,t,t[27],l?d(o,t[27],n,null):f(t[27]),null)},i(t){l||(s(e.$$.fragment,t),s(u,t),l=!0)},o(t){c(e.$$.fragment,t),c(u,t),l=!1},d(t){t&&r(n),B(e,t),u&&u.d(t)}}}function an(t){let e,n,l=t[17]&&sn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,n){t[17]?l?(l.p(t,n),131072&n[0]&&s(l,1)):(l=sn(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function fn(t,e,n){let i,r,c,s,{$$slots:u={},$$scope:a}=e;const{user:f,post:d}=kt(),p=G();let{img:m="yoga"}=e,{black:x=!1}=e,{right:h=!1}=e,{left:b=!1}=e,{center:g=!1}=e,{white:w=!1}=e,{danger:v=!1}=e,{noborder:y=!1}=e,{alt:$=!1}=e,{gray:k=!1}=e,{header:z=!1}=e,{tooltip:_}=e,{warning:j=!1}=e,{readonly:S=!1}=e,{auth:I=""}=e,{size:A=8}=e,{sm:M=!1}=e,{lg:D=!1}=e,{focus:B=!1}=e,{local:O=!1}=e;const E={file_download:"Esporta i dati in formato XLSX",filter_alt:"Seleziona e filtra le colonne","✚":"Aggiunge",delete:"Cancella","✎":"Modifica"};return t.$$set=t=>{n(32,e=l(l({},e),o(t))),"img"in t&&n(0,m=t.img),"black"in t&&n(1,x=t.black),"right"in t&&n(2,h=t.right),"left"in t&&n(3,b=t.left),"center"in t&&n(4,g=t.center),"white"in t&&n(5,w=t.white),"danger"in t&&n(6,v=t.danger),"noborder"in t&&n(7,y=t.noborder),"alt"in t&&n(8,$=t.alt),"gray"in t&&n(9,k=t.gray),"header"in t&&n(10,z=t.header),"tooltip"in t&&n(21,_=t.tooltip),"warning"in t&&n(11,j=t.warning),"readonly"in t&&n(12,S=t.readonly),"auth"in t&&n(22,I=t.auth),"size"in t&&n(23,A=t.size),"sm"in t&&n(24,M=t.sm),"lg"in t&&n(25,D=t.lg),"focus"in t&&n(13,B=t.focus),"local"in t&&n(14,O=t.local),"$$scope"in t&&n(27,a=t.$$scope)},t.$$.update=()=>{58720256&t.$$.dirty[0]&&n(15,i=D?10:M?6:A||8),32768&t.$$.dirty[0]&&n(18,r=`width: ${(i||12)/4}rem; height: ${(i||12)/4}rem; `),4194304&t.$$.dirty[0]&&n(17,c=!I||d.isauth(I)),2097153&t.$$.dirty[0]&&n(16,s=_||E[m])},e=o(e),[m,x,h,b,g,w,v,y,$,k,z,j,S,B,O,i,s,c,r,function(t){S||p("click",t.target)},function(){var t=[e.class||""];return t.push("relative"),z||(b?t.push("rounded-l outline-c-200"):h?t.push("rounded-r !ml-0 outline-c-200"):g?t.push("!mr-0 !ml-0 border-r border-c-100"):t.push("rounded"),e.class&&t.push(e.class),S?w||$?t.push("bg-transparent"):t.push("bg-c-150"):x?t.push("bg-c-800 hover:bg-black"):k?t.push("bg-c-150 border border-c-150 hover:bg-white"):w?(t.push("bg-transparent"),y||t.push("border border-c-200 hover:border-black")):$?t.push("bg-transparent "):(t.push("hover:bg-black"),v?t.push("bg-c-danger"):j?t.push("bg-c-warning"):t.push("bg-c-base"))),t.join(" ")},_,I,A,M,D,u,a]}class dn extends t{constructor(t){super(),e(this,t,fn,an,n,{img:0,black:1,right:2,left:3,center:4,white:5,danger:6,noborder:7,alt:8,gray:9,header:10,tooltip:21,warning:11,readonly:12,auth:22,size:23,sm:24,lg:25,focus:13,local:14},null,[-1,-1])}}function pn(t){let e,n,l,o,u,m,g,v,y,$,_;const j=t[14].default,I=i(j,t,t[13],null);let M=t[2]&&mn(t);return{c(){e=b("button"),o=w(),u=b("nav"),m=b("div"),I&&I.c(),g=w(),M&&M.c(),p(e,"aria-label","bpop"),p(e,"class",n="fixed inset-0 "+(t[3]?"bg-transparent":"bg-c-800 opacity-20")+" z-50"),p(m,"class","relative h-full"),p(u,"class","fixed bg-white border border-c-border rounded shadow-md")},m(n,l){x(n,e,l),x(n,o,l),x(n,u,l),h(u,m),I&&I.m(m,null),h(m,g),M&&M.m(m,null),t[18](u),y=!0,$||(_=S(e,"click",t[15]),$=!0)},p(t,l){(!y||8&l&&n!==(n="fixed inset-0 "+(t[3]?"bg-transparent":"bg-c-800 opacity-20")+" z-50"))&&p(e,"class",n),I&&I.p&&(!y||8192&l)&&a(I,j,t,t[13],y?d(j,t[13],l,null):f(t[13]),null),t[2]?M?(M.p(t,l),4&l&&s(M,1)):(M=mn(t),M.c(),s(M,1),M.m(m,null)):M&&(k(),c(M,1,1,()=>{M=null}),z())},i(t){y||(t&&A(()=>{y&&(l||(l=C(e,At,{duration:400},!0)),l.run(1))}),s(I,t),s(M),t&&A(()=>{y&&(v||(v=C(u,At,{duration:400},!0)),v.run(1))}),y=!0)},o(t){t&&(l||(l=C(e,At,{duration:400},!1)),l.run(0)),c(I,t),c(M),t&&(v||(v=C(u,At,{duration:400},!1)),v.run(0)),y=!1},d(n){n&&(r(e),r(o),r(u)),n&&l&&l.end(),I&&I.d(n),M&&M.d(),t[18](null),n&&v&&v.end(),$=!1,_()}}}function mn(t){let e,n,l,o,i;return n=new dn({props:{img:"close",alt:!0,size:6}}),n.$on("click",t[16]),o=new dn({props:{alt:!0,img:t[1]?"fullscreen_exit":"fullscreen",size:6,tooltip:t[1]?"riduci finestra":"espandi finestra",color:"text-c-400"}}),o.$on("click",t[17]),{c(){e=b("div"),F(n.$$.fragment),l=w(),F(o.$$.fragment),p(e,"class","absolute top-1 right-2 flex flex-row space-x-1 z-50")},m(t,r){x(t,e,r),O(n,e,null),h(e,l),O(o,e,null),i=!0},p(t,e){const n={};2&e&&(n.img=t[1]?"fullscreen_exit":"fullscreen"),2&e&&(n.tooltip=t[1]?"riduci finestra":"espandi finestra"),o.$set(n)},i(t){i||(s(n.$$.fragment,t),s(o.$$.fragment,t),i=!0)},o(t){c(n.$$.fragment,t),c(o.$$.fragment,t),i=!1},d(t){t&&r(e),B(n),B(o)}}}function xn(t){let e,n,l=t[0]&&pn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[0]?l?(l.p(t,n),1&n&&s(l,1)):(l=pn(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function hn(t,e,n){let{$$slots:l={},$$scope:o}=e;const i=G();let r,{placement:c="bottom"}=e,{full:s=!1}=e,{canexpand:u=!1}=e,{isexpand:a=!1}=e,f=null,{show:d,element:p,elexpand:m=!1,transparent:x=!1,padding:h=2}=e;function b(){d&&(n(1,a=!a),a?(r&&(f={top:r.style.top,left:r.style.left,width:r.style.width,height:r.style.height,zIndex:r.style.zIndex,position:r.style.position}),g()):function(){r&&f&&Object.assign(r.style,f);w()}())}function g(){if(!r)return;let t=m&&m.getBoundingClientRect?m.getBoundingClientRect():null;Object.assign(r.style,{position:"fixed",top:t?t.top+"px":"0px",left:t?t.left+"px":"0px",width:t?t.width+"px":"100vw",height:t?t.height+"px":"100vh",zIndex:1e3})}async function w(){if(d&&p){if(await q(),a)return void g();Ke(p,r,{placement:c,middleware:[We(4*h),qe(),Je({padding:4*h})]}).then(({x:t,y:e,placement:n,middlewareData:l})=>{let o={top:`${e}px`,zIndex:1e3};s||(o.left=`${t}px`),Object.assign(r.style,o)})}else n(0,d=!1)}return t.$$set=t=>{"placement"in t&&n(7,c=t.placement),"full"in t&&n(8,s=t.full),"canexpand"in t&&n(2,u=t.canexpand),"isexpand"in t&&n(1,a=t.isexpand),"show"in t&&n(0,d=t.show),"element"in t&&n(9,p=t.element),"elexpand"in t&&n(10,m=t.elexpand),"transparent"in t&&n(3,x=t.transparent),"padding"in t&&n(11,h=t.padding),"$$scope"in t&&n(13,o=t.$$scope)},t.$$.update=()=>{641&t.$$.dirty&&w()},[d,a,u,x,r,i,b,c,s,p,m,h,function(){n(0,d=!1)},o,l,()=>{n(0,d=!1),i("close")},()=>{n(0,d=!1),i("close")},()=>{b(),i("expand",a)},function(t){_[t?"unshift":"push"](()=>{r=t,n(4,r)})}]}class bn extends t{constructor(t){super(),e(this,t,hn,xn,n,{placement:7,full:8,canexpand:2,isexpand:1,show:0,element:9,elexpand:10,transparent:3,padding:11,close:12})}get close(){return this.$$.ctx[12]}}function gn(t){let e,n;return e=new cn({props:{tooltip:t[1],$$slots:{default:[vn]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.tooltip=t[1]),273416188&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function wn(t){let e,n;return{c(){e=b("div"),p(e,"class","btneffect")},m(t,n){x(t,e,n)},p(e,n){t=e},i(l){l&&(n||A(()=>{n=M(e,Dt,{duration:t[0]}),n.start()}))},o:y,d(t){t&&r(e)}}}function vn(t){let e,n,l,o,v,y,$,k,z=t[17]&&wn(t);const _=t[27].default,j=i(_,t,t[28],null),I=j||function(t){let e,n,l,o=t[20](t[19])+"";return{c(){e=b("div"),n=b("div"),l=g(o),p(e,"class","flex flex-row space-x-2")},m(t,o){x(t,e,o),h(e,n),h(n,l)},p(t,e){524288&e&&o!==(o=t[20](t[19])+"")&&u(l,o)},d(t){t&&r(e)}}}(t);return{c(){e=b("button"),z&&z.c(),n=w(),I&&I.c(),p(e,"aria-label",l=t[19]||"btn"),p(e,"class",o=(t[22].class||"")+" btn overflow-hidden "+(t[2]?"text-left-px-2":"")),p(e,"style",v=t[2]?"justify-ontent: left; width:fit-content;height:fit-content;":""),m(e,"fix",t[11]),m(e,"fixl",t[12]),m(e,"alt",t[3]),m(e,"warning",t[8]),m(e,"black",t[5]),m(e,"gray",t[7]),m(e,"danger",t[9]),m(e,"link",t[4]),m(e,"full",t[13]),m(e,"xs",t[15]),m(e,"sm",t[14]),m(e,"lg",t[16]),m(e,"white",t[6]),m(e,"readonly",t[10])},m(l,o){x(l,e,o),z&&z.m(e,null),h(e,n),I&&I.m(e,null),y=!0,$||(k=S(e,"click",E(t[21])),$=!0)},p(t,i){t[17]?z?131072&i&&s(z,1):(z=wn(t),z.c(),s(z,1),z.m(e,n)):z&&(z.d(1),z=null),j?j.p&&(!y||268435456&i)&&a(j,_,t,t[28],y?d(_,t[28],i,null):f(t[28]),null):I&&I.p&&(!y||524288&i)&&I.p(t,y?i:-1),(!y||524288&i&&l!==(l=t[19]||"btn"))&&p(e,"aria-label",l),(!y||4194308&i&&o!==(o=(t[22].class||"")+" btn overflow-hidden "+(t[2]?"text-left-px-2":"")))&&p(e,"class",o),(!y||4&i&&v!==(v=t[2]?"justify-ontent: left; width:fit-content;height:fit-content;":""))&&p(e,"style",v),(!y||4196356&i)&&m(e,"fix",t[11]),(!y||4198404&i)&&m(e,"fixl",t[12]),(!y||4194316&i)&&m(e,"alt",t[3]),(!y||4194564&i)&&m(e,"warning",t[8]),(!y||4194340&i)&&m(e,"black",t[5]),(!y||4194436&i)&&m(e,"gray",t[7]),(!y||4194820&i)&&m(e,"danger",t[9]),(!y||4194324&i)&&m(e,"link",t[4]),(!y||4202500&i)&&m(e,"full",t[13]),(!y||4227076&i)&&m(e,"xs",t[15]),(!y||4210692&i)&&m(e,"sm",t[14]),(!y||4259844&i)&&m(e,"lg",t[16]),(!y||4194372&i)&&m(e,"white",t[6]),(!y||4195332&i)&&m(e,"readonly",t[10])},i(t){y||(s(z),s(I,t),y=!0)},o(t){c(I,t),y=!1},d(t){t&&r(e),z&&z.d(),I&&I.d(t),$=!1,k()}}}function yn(t){let e,n,l=t[18]&&gn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[18]?l?(l.p(t,n),262144&n&&s(l,1)):(l=gn(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function $n(t,e,n){let i,r,{$$slots:c={},$$scope:s}=e;const{_:u,P:a}=kt(),f=G();let{duration:d=300}=e,{text:p="",title:m="",value:x="",auth:h="",tooltip:b="",left:g=!1,alt:w=!1,link:v=!1,black:y=!1,white:$=!1,gray:k=!1,warning:z=!1,danger:_=!1,readonly:j=!1,fix:S=!1,fixl:I=!1,full:A=!1,sm:M=!1,xs:D=!1,lg:B=!1}=e,O=!1;return t.$$set=t=>{n(22,e=l(l({},e),o(t))),"duration"in t&&n(0,d=t.duration),"text"in t&&n(23,p=t.text),"title"in t&&n(24,m=t.title),"value"in t&&n(25,x=t.value),"auth"in t&&n(26,h=t.auth),"tooltip"in t&&n(1,b=t.tooltip),"left"in t&&n(2,g=t.left),"alt"in t&&n(3,w=t.alt),"link"in t&&n(4,v=t.link),"black"in t&&n(5,y=t.black),"white"in t&&n(6,$=t.white),"gray"in t&&n(7,k=t.gray),"warning"in t&&n(8,z=t.warning),"danger"in t&&n(9,_=t.danger),"readonly"in t&&n(10,j=t.readonly),"fix"in t&&n(11,S=t.fix),"fixl"in t&&n(12,I=t.fixl),"full"in t&&n(13,A=t.full),"sm"in t&&n(14,M=t.sm),"xs"in t&&n(15,D=t.xs),"lg"in t&&n(16,B=t.lg),"$$scope"in t&&n(28,s=t.$$scope)},t.$$.update=()=>{58720256&t.$$.dirty&&n(19,i=p||m||x||".."),67108864&t.$$.dirty&&n(18,r=!h||a.isauth(h))},e=o(e),[d,b,g,w,v,y,$,k,z,_,j,S,I,A,M,D,B,O,r,i,u,async function(t){j||(n(17,O=!0),await q(),f("click",t.target),setTimeout(()=>{n(17,O=!1)},d))},e,p,m,x,h,c,s]}class kn extends t{constructor(t){super(),e(this,t,$n,yn,n,{duration:0,text:23,title:24,value:25,auth:26,tooltip:1,left:2,alt:3,link:4,black:5,white:6,gray:7,warning:8,danger:9,readonly:10,fix:11,fixl:12,full:13,sm:14,xs:15,lg:16})}}function zn(t){let e,n,l,o,i;return n=new yt({props:{img:"close",size:6,color:"text-c-200"}}),{c(){e=b("button"),F(n.$$.fragment),p(e,"class","hidden md:block md:absolute vcenter right-2 cursor-pointer")},m(r,c){x(r,e,c),O(n,e,null),l=!0,o||(i=S(e,"click",t[10]),o=!0)},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n),o=!1,i()}}}function _n(t){let e,n,l,o,i,u,a,f,d,g,v;u=new yt({props:{img:"search",size:t[3]?6:8,color:t[0]&&t[1]?"text-black":"text-c-200"}});let y=t[0]&&zn(t);return{c(){e=b("div"),n=b("div"),l=b("input"),o=w(),i=b("button"),F(u.$$.fragment),a=w(),y&&y.c(),p(l,"tabindex","0"),l.readOnly=t[2],p(l,"type","text"),p(l,"ref","input"),p(l,"class","w-full outline-none bg-white"),p(l,"placeholder",t[4]),p(n,"class","bg-white text-black border border-c-border rounded-full px-4 md:px-10 flex"),m(n,"py-1",!t[3]),m(n,"text-sm",t[3]),m(n,"py-0.5",t[3]),p(i,"class","hidden md:block md:absolute vcenter left-1"),m(i,"cursor-pointer",t[0]&&t[1]),p(e,"class",f="relative "+(t[8].class||""))},m(r,c){x(r,e,c),h(e,n),h(n,l),P(l,t[0]),h(e,o),h(e,i),O(u,i,null),h(e,a),y&&y.m(e,null),d=!0,g||(v=[S(l,"input",t[9]),S(l,"keyup",t[6]),S(i,"click",t[7]),S(i,"keypress",jn)],g=!0)},p(t,[o]){(!d||4&o)&&(l.readOnly=t[2]),(!d||16&o)&&p(l,"placeholder",t[4]),1&o&&l.value!==t[0]&&P(l,t[0]),(!d||8&o)&&m(n,"py-1",!t[3]),(!d||8&o)&&m(n,"text-sm",t[3]),(!d||8&o)&&m(n,"py-0.5",t[3]);const r={};8&o&&(r.size=t[3]?6:8),3&o&&(r.color=t[0]&&t[1]?"text-black":"text-c-200"),u.$set(r),(!d||3&o)&&m(i,"cursor-pointer",t[0]&&t[1]),t[0]?y?(y.p(t,o),1&o&&s(y,1)):(y=zn(t),y.c(),s(y,1),y.m(e,null)):y&&(k(),c(y,1,1,()=>{y=null}),z()),(!d||256&o&&f!==(f="relative "+(t[8].class||"")))&&p(e,"class",f)},i(t){d||(s(u.$$.fragment,t),s(y),d=!0)},o(t){c(u.$$.fragment,t),c(y),d=!1},d(t){t&&r(e),B(u),y&&y.d(),g=!1,j(v)}}}const jn=()=>{};function Sn(t,e,n){const i=G();let{evidenzia:r=!1,readonly:c=!1,sm:s=!1,value:u="",placeholder:a="Cerca"}=e;function f(){c||(i("click",u),i("cerca",u))}return t.$$set=t=>{n(8,e=l(l({},e),o(t))),"evidenzia"in t&&n(1,r=t.evidenzia),"readonly"in t&&n(2,c=t.readonly),"sm"in t&&n(3,s=t.sm),"value"in t&&n(0,u=t.value),"placeholder"in t&&n(4,a=t.placeholder)},e=o(e),[u,r,c,s,a,i,function(t){c||("Escape"==t.key&&n(0,u=""),i("input",t.target,u),"Enter"!=t.key&&"Escape"!=t.key||f())},f,e,function(){u=this.value,n(0,u)},()=>{n(0,u=""),i("input",""),i("click")}]}class In extends t{constructor(t){super(),e(this,t,Sn,_n,n,{evidenzia:1,readonly:2,sm:3,value:0,placeholder:4})}}function An(t){let e;return{c(){e=g(t[2])},m(t,n){x(t,e,n)},p(t,n){4&n&&u(e,t[2])},d(t){t&&r(e)}}}function Mn(t){let e,n,l=(t[2]||"").replaceAll("\n","<br/>")+"";return{c(){e=new D(!1),n=$(),e.a=n},m(t,o){e.m(l,t,o),x(t,n,o)},p(t,n){4&n&&l!==(l=(t[2]||"").replaceAll("\n","<br/>")+"")&&e.p(l)},d(t){t&&(r(n),e.d())}}}function Dn(t){let e,n,l;return{c(){e=b("button"),p(e,"aria-label","btntrad"),p(e,"class","bg-secondary absolute top-0 -right-2 rounded-full w-2 h-2")},m(o,i){x(o,e,i),n||(l=S(e,"click",E(T(t[8]))),n=!0)},p:y,d(t){t&&r(e),n=!1,l()}}}function Bn(t){let e,n,l;function o(t,e){return t[1]?Mn:An}let i=o(t),c=i(t),s=t[3]&&9==t[4].level&&!t[0]&&Dn(t);return{c(){e=b("span"),c.c(),n=w(),s&&s.c(),p(e,"class",l=`relative ${t[9].class||""}`)},m(t,l){x(t,e,l),c.m(e,null),h(e,n),s&&s.m(e,null)},p(t,[r]){i===(i=o(t))&&c?c.p(t,r):(c.d(1),c=i(t),c&&(c.c(),c.m(e,n))),t[3]&&9==t[4].level&&!t[0]?s?s.p(t,r):(s=Dn(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null),512&r&&l!==(l=`relative ${t[9].class||""}`)&&p(e,"class",l)},i:y,o:y,d(t){t&&r(e),c.d(),s&&s.d()}}}function On(t,e,n){let i,r,c,s;const{bus:u,langedit:a,_:f,user:d,lang:p}=kt();R(t,a,t=>n(3,c=t)),R(t,d,t=>n(4,s=t)),R(t,p,t=>n(11,r=t));let{id:m}=e,{noadd:x=!1}=e,{html:h=!1}=e;return t.$$set=t=>{n(9,e=l(l({},e),o(t))),"id"in t&&n(10,m=t.id),"noadd"in t&&n(0,x=t.noadd),"html"in t&&n(1,h=t.html)},t.$$.update=()=>{3073&t.$$.dirty&&n(2,i=f(m,r,x))},e=o(e),[x,h,i,c,s,a,d,p,function(){var t=(m||"").split("::")[0].trim().toLowerCase();"+"==t[0]&&(t=t.split(":")[0]),u.emit("asktrad",{id:t})},e,m,r]}class En extends t{constructor(t){super(),e(this,t,On,Bn,n,{id:10,noadd:0,html:1})}}function Tn(t){let e,n,l,o,u,m,g,v,y;const $=t[6].default,k=i($,t,t[5],null),z=k||function(t){let e,n,l;return n=new En({props:{id:t[0]}}),{c(){e=b("span"),F(n.$$.fragment),p(e,"class","btn primary")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};1&e&&(l.id=t[0]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}(t);return{c(){e=b("button"),z&&z.c(),n=w(),l=b("label"),o=b("input"),p(o,"type","file"),o.multiple=t[2],p(o,"accept",t[1]),p(o,"class","absolute inset-0 opacity-0 cursor-pointer"),p(l,"name",u="file"+t[0]),p(e,"class",m=`relative cursor-pointer ${t[4].class||""}`)},m(i,r){x(i,e,r),z&&z.m(e,null),h(e,n),h(e,l),h(l,o),g=!0,v||(y=[S(o,"click",E(Fn)),S(o,"change",E(t[7]))],v=!0)},p(t,[n]){k?k.p&&(!g||32&n)&&a(k,$,t,t[5],g?d($,t[5],n,null):f(t[5]),null):z&&z.p&&(!g||1&n)&&z.p(t,g?n:-1),(!g||4&n)&&(o.multiple=t[2]),(!g||2&n)&&p(o,"accept",t[1]),(!g||1&n&&u!==(u="file"+t[0]))&&p(l,"name",u),(!g||16&n&&m!==(m=`relative cursor-pointer ${t[4].class||""}`))&&p(e,"class",m)},i(t){g||(s(z,t),g=!0)},o(t){c(z,t),g=!1},d(t){t&&r(e),z&&z.d(t),v=!1,j(y)}}}const Fn=()=>{};function Cn(t,e,n){let{$$slots:i={},$$scope:r}=e,{value:c="file",accept:s="image/*,.pdf,.xlsx,.txt,.xls,.md,.log,.json,.yaml,.glb,.gltf,.3ds,.stl,.obj",multiple:u=!1}=e;const a=G();return t.$$set=t=>{n(4,e=l(l({},e),o(t))),"value"in t&&n(0,c=t.value),"accept"in t&&n(1,s=t.accept),"multiple"in t&&n(2,u=t.multiple),"$$scope"in t&&n(5,r=t.$$scope)},e=o(e),[c,s,u,a,e,r,i,t=>{a("click",t.target.files)}]}class Pn extends t{constructor(t){super(),e(this,t,Cn,Tn,n,{value:0,accept:1,multiple:2})}}function Rn(t){let e,n;return{c(){e=b("span"),n=g(t[2]),p(e,"class","lowercase pl-2 text-c-200"),m(e,"text-c-base",t[7])},m(t,l){x(t,e,l),h(e,n)},p(t,l){4&l&&u(n,t[2]),128&l&&m(e,"text-c-base",t[7])},d(t){t&&r(e)}}}function Nn(t){let e,n,l,o,i,c,s,a,f,d,v,$=t[2]&&Rn(t);return{c(){e=b("div"),n=b("input"),o=w(),i=b("label"),$&&$.c(),c=w(),s=b("span"),a=g(t[1]),p(n,"tabindex","-1"),p(n,"type","checkbox"),n.disabled=t[6],p(n,"id",t[9]),n.checked=t[7],p(n,"class",l=t[5]?"checkbox":"toggle"),m(n,"sm",t[3]),m(n,"xs",t[4]),p(s,"class","pl-2"),p(i,"class","text-sm font-base"),p(i,"for",t[9]),m(i,"font-bold",t[0]),p(e,"class",f=t[10].class||"")},m(l,r){x(l,e,r),h(e,n),h(e,o),h(e,i),$&&$.m(i,null),h(i,c),h(i,s),h(s,a),d||(v=S(n,"click",E(t[8])),d=!0)},p(t,[o]){64&o&&(n.disabled=t[6]),128&o&&(n.checked=t[7]),32&o&&l!==(l=t[5]?"checkbox":"toggle")&&p(n,"class",l),40&o&&m(n,"sm",t[3]),48&o&&m(n,"xs",t[4]),t[2]?$?$.p(t,o):($=Rn(t),$.c(),$.m(i,c)):$&&($.d(1),$=null),2&o&&u(a,t[1]),1&o&&m(i,"font-bold",t[0]),1024&o&&f!==(f=t[10].class||"")&&p(e,"class",f)},i:y,o:y,d(t){t&&r(e),$&&$.d(),d=!1,v()}}}function Ln(t,e,n){let i;const r=G();let{value:c=0}=e,{truevalue:s=1}=e,{falsevalue:u=0}=e,{bold:a=!1}=e,{label:f=""}=e,{labcod:d=""}=e,{sm:p=!1}=e,{xs:m=!1}=e,{checkbox:x=!1}=e,{readonly:h=!1}=e;J(()=>{c!=s&&c!=u&&(n(11,c=u),r("click",{value:c}))});const b=Math.random().toString(36).substring(2,15);return t.$$set=t=>{n(10,e=l(l({},e),o(t))),"value"in t&&n(11,c=t.value),"truevalue"in t&&n(12,s=t.truevalue),"falsevalue"in t&&n(13,u=t.falsevalue),"bold"in t&&n(0,a=t.bold),"label"in t&&n(1,f=t.label),"labcod"in t&&n(2,d=t.labcod),"sm"in t&&n(3,p=t.sm),"xs"in t&&n(4,m=t.xs),"checkbox"in t&&n(5,x=t.checkbox),"readonly"in t&&n(6,h=t.readonly)},t.$$.update=()=>{6144&t.$$.dirty&&n(7,i=c==s)},e=o(e),[a,f,d,p,m,x,h,i,function(t){t.stopPropagation(),t.target.checked?n(11,c=s):n(11,c=u),r("click",{value:c})},b,e,c,s,u]}class Xn extends t{constructor(t){super(),e(this,t,Ln,Nn,n,{value:11,truevalue:12,falsevalue:13,bold:0,label:1,labcod:2,sm:3,xs:4,checkbox:5,readonly:6})}}const Hn=t=>({}),Zn=t=>({});function Vn(t){let e,n,l;const o=t[8].popup,u=i(o,t,t[7],Zn);return{c(){e=b("div"),u&&u.c(),p(e,"class",n="fixed text-black p-2 text-sm "+(t[0]?"":"border bg-white")),p(e,"tabindex","-1")},m(n,o){x(n,e,o),u&&u.m(e,null),t[9](e),l=!0},p(t,i){u&&u.p&&(!l||128&i)&&a(u,o,t,t[7],l?d(o,t[7],i,Hn):f(t[7]),Zn),(!l||1&i&&n!==(n="fixed text-black p-2 text-sm "+(t[0]?"":"border bg-white")))&&p(e,"class",n)},i(t){l||(s(u,t),l=!0)},o(t){c(u,t),l=!1},d(n){n&&r(e),u&&u.d(n),t[9](null)}}}function Yn(t){let e,n,l,o,u;const m=t[8].default,g=i(m,t,t[7],null);let v=t[3]&&Vn(t);return{c(){e=b("div"),n=b("div"),g&&g.c(),l=w(),v&&v.c(),p(n,"class","z-10"),p(e,"class",o=t[4].class)},m(o,i){x(o,e,i),h(e,n),g&&g.m(n,null),h(e,l),v&&v.m(e,null),t[10](e),u=!0},p(t,[n]){g&&g.p&&(!u||128&n)&&a(g,m,t,t[7],u?d(m,t[7],n,null):f(t[7]),null),t[3]?v?(v.p(t,n),8&n&&s(v,1)):(v=Vn(t),v.c(),s(v,1),v.m(e,null)):v&&(k(),c(v,1,1,()=>{v=null}),z()),(!u||16&n&&o!==(o=t[4].class))&&p(e,"class",o)},i(t){u||(s(g,t),s(v),u=!0)},o(t){c(g,t),c(v),u=!1},d(n){n&&r(e),g&&g.d(n),v&&v.d(),t[10](null)}}}function Un(t){return!0}function Wn(t,e,n){let i,r,{$$slots:c={},$$scope:s}=e,{theme:u}=e,a=!1;async function f(t){if(t!==a&&(n(3,a=t),a)){await q();const t=u?180:r.offsetWidth;Ke(r,i,{placement:"bottom-start",middleware:[qe(),Je({padding:0})]}).then(({x:e,y:n,placement:l,middlewareData:o})=>{Object.assign(i.style,{left:`${e}px`,top:`${n}px`,width:`${t}px`,zIndex:1e3})})}}const d=G();function p(t){r.contains(t.target)&&d("gotfocus")}function m(t){setTimeout(()=>{r.contains(document.activeElement)||(f(!1),d("lostfocus"))},0)}return J(()=>{r.addEventListener("focusin",p),r.addEventListener("focusout",m)}),K(()=>{r.removeEventListener("focusin",p),r.removeEventListener("focusout",m)}),t.$$set=t=>{n(4,e=l(l({},e),o(t))),"theme"in t&&n(0,u=t.theme),"$$scope"in t&&n(7,s=t.$$scope)},e=o(e),[u,i,r,a,e,f,Un,s,c,function(t){_[t?"unshift":"push"](()=>{i=t,n(1,i)})},function(t){_[t?"unshift":"push"](()=>{r=t,n(2,r)})}]}class Jn extends t{constructor(t){super(),e(this,t,Wn,Yn,n,{theme:0,openmenu:5,checkvisibility:6})}get openmenu(){return this.$$.ctx[5]}get checkvisibility(){return Un}}function qn(t){let e,n,l,o,u,m;const h=t[7].default,g=i(h,t,t[6],null);return{c(){e=b("button"),n=w(),l=b("button"),g&&g.c(),p(e,"aria-label","full"),p(e,"class","z-10 fixed inset-0 opacity-0"),p(l,"class","fixed"),p(l,"tabindex","-1")},m(i,r){x(i,e,r),x(i,n,r),x(i,l,r),g&&g.m(l,null),t[10](l),o=!0,u||(m=[S(e,"click",T(t[8])),S(e,"contextmenu",T(t[9])),S(l,"contextmenu",T(t[11]))],u=!0)},p(t,e){g&&g.p&&(!o||64&e)&&a(g,h,t,t[6],o?d(h,t[6],e,null):f(t[6]),null)},i(t){o||(s(g,t),o=!0)},o(t){c(g,t),o=!1},d(o){o&&(r(e),r(n),r(l)),g&&g.d(o),t[10](null),u=!1,j(m)}}}function Gn(t){let e,n,l=t[0]&&qn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[0]?l?(l.p(t,n),1&n&&s(l,1)):(l=qn(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function Kn(t,e,n){let{$$slots:l={},$$scope:o}=e;const i=G();let r,{show:c=!1,mouseX:s=0,mouseY:u=0}=e;async function a(){if(!c)return;if(await q(),!r)return;await q();Ke({getBoundingClientRect:()=>({x:s,y:u,width:0,height:0,top:u,left:s,right:s,bottom:u})},r,{placement:"bottom-start",middleware:[We(10),qe(),Je()]}).then(({x:t,y:e,placement:n})=>{Object.assign(r.style,{left:`${t}px`,top:`${e}px`,zIndex:1e3})})}return t.$$set=t=>{"show"in t&&n(0,c=t.show),"mouseX"in t&&n(3,s=t.mouseX),"mouseY"in t&&n(4,u=t.mouseY),"$$scope"in t&&n(6,o=t.$$scope)},t.$$.update=()=>{25&t.$$.dirty&&a()},[c,r,i,s,u,a,o,l,()=>n(0,c=!1),()=>{n(0,c=!1),i("close")},function(t){_[t?"unshift":"push"](()=>{r=t,n(1,r)})},()=>{n(0,c=!1),i("close")}]}class Qn extends t{constructor(t){super(),e(this,t,Kn,Gn,n,{show:0,mouseX:3,mouseY:4,openmenu:5})}get openmenu(){return this.$$.ctx[5]}}function tl(t){return t&&t.t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var el,nl={exports:{}};var ll=tl(el?nl.exports:(el=1,nl.exports=function(){function t(t,e,n,l,o,i){if(!/^[1-8]$/.test(e))throw new Error("orientation should be [1-8]");null==n&&(n=0),null==l&&(l=0),null==o&&(o=t.width),null==i&&(i=t.height);var r=document.createElement("canvas"),c=r.getContext("2d");switch(r.width=o,r.height=i,c.save(),+e){case 1:break;case 2:c.translate(o,0),c.scale(-1,1);break;case 3:c.translate(o,i),c.rotate(1*Math.PI);break;case 4:c.translate(0,i),c.scale(1,-1);break;case 5:r.width=i,r.height=o,c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:r.width=i,r.height=o,c.rotate(.5*Math.PI),c.translate(0,-i);break;case 7:r.width=i,r.height=o,c.rotate(1.5*Math.PI),c.translate(-o,i),c.scale(1,-1);break;case 8:r.width=i,r.height=o,c.translate(0,o),c.rotate(1.5*Math.PI)}return c.drawImage(t,n,l,o,i),c.restore(),r}return{drawImage:t}}()));function ol(t,e,n,l){return{x:il(t.x,e.width,n.width,l),y:il(t.y,e.height,n.height,l)}}function il(t,e,n,l){const o=e*l/2-n/2;return Math.min(o,Math.max(t,-o))}function rl(t,e){return Math.sqrt(Math.pow(t.y-e.y,2)+Math.pow(t.x-e.x,2))}function cl(t,e){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}const{window:sl}=L;function ul(t){let e;return{c(){e=b("div"),p(e,"class","cropperArea svelte-11f68ic"),v(e,"width",t[7].width+"px"),v(e,"height",t[7].height+"px"),p(e,"data-testid","cropper"),m(e,"round","round"===t[4])},m(t,n){x(t,e,n)},p(t,n){128&n[0]&&v(e,"width",t[7].width+"px"),128&n[0]&&v(e,"height",t[7].height+"px"),16&n[0]&&m(e,"round","round"===t[4])},d(t){t&&r(e)}}}function al(t){let e,n,l,o,i,u,a,f,d,m,g,y,$=t[7]&&ul(t);return f=new yt({props:{img:"rotate_right",mat:!0,size:8}}),{c(){e=b("div"),n=b("div"),l=b("img"),i=w(),$&&$.c(),u=w(),a=b("button"),F(f.$$.fragment),p(l,"class","image svelte-11f68ic"),N(l.src,o=t[1])||p(l,"src",o),p(l,"alt",""),v(l,"transform","translate("+t[2].x+"px, "+t[2].y+"px) scale("+t[0]+")"),p(l,"crossorigin",t[5]),p(n,"class","container svelte-11f68ic"),p(n,"data-testid","container"),p(a,"class","absolute top-0 right-0 p-1 text-black hover:text-white z-10 cursor-pointer"),p(e,"style",d=`position: relative; width: ${t[3]}px; height: ${t[3]}px;`)},m(o,r){x(o,e,r),h(e,n),h(n,l),t[24](l),h(n,i),$&&$.m(n,null),t[25](n),h(e,u),h(e,a),O(f,a,null),m=!0,g||(y=[S(sl,"resize",t[11]),S(l,"load",t[10]),S(n,"mousedown",T(t[12])),S(n,"touchstart",T(t[13])),S(n,"wheel",T(t[14])),S(n,"gesturestart",T(t[22])),S(n,"gesturechange",T(t[23])),S(a,"click",E(t[9]))],g=!0)},p(t,i){(!m||2&i[0]&&!N(l.src,o=t[1]))&&p(l,"src",o),(!m||5&i[0])&&v(l,"transform","translate("+t[2].x+"px, "+t[2].y+"px) scale("+t[0]+")"),(!m||32&i[0])&&p(l,"crossorigin",t[5]),t[7]?$?$.p(t,i):($=ul(t),$.c(),$.m(n,null)):$&&($.d(1),$=null),(!m||8&i[0]&&d!==(d=`position: relative; width: ${t[3]}px; height: ${t[3]}px;`))&&p(e,"style",d)},i(t){m||(s(f.$$.fragment,t),m=!0)},o(t){c(f.$$.fragment,t),m=!1},d(n){n&&r(e),t[24](null),$&&$.d(),t[25](null),B(f),g=!1,j(y)}}}function fl(t,e,n){let l,o,i,r,c,s,u,{size:a=200}=e,{cropScale:f=1}=e,{image:d}=e,{crop:p={x:0,y:0}}=e,{zoom:m=1}=e,{aspect:x=1}=e,{minZoom:h=1}=e,{maxZoom:b=4}=e,{cropShape:g="round"}=e,{zoomSpeed:w=1}=e,{crossOrigin:v}=e,{restrictPosition:y=!0}=e,$={width:0,height:0,naturalWidth:0,naturalHeight:0},k={x:0,y:0},z={x:0,y:0},j=0;function S(){var t=$.width,e=$.height;return t&&e&&x?(t/e>x?e=t/x:t=e*x,{width:t,height:e}):$}const I=G();J(()=>{c&&c.complete&&M()}),K(()=>{A()});const A=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",P)},M=()=>{D(),H()},D=()=>{c&&($={width:c.width,height:c.height,naturalWidth:c.naturalWidth,naturalHeight:c.naturalHeight},n(7,o=l)),i&&(r=i.getBoundingClientRect())},B=t=>({x:Number(t.clientX),y:Number(t.clientY)}),O=t=>({x:Number(t.clientX),y:Number(t.clientY)}),E=t=>C(B(t)),T=t=>{t.preventDefault(),2===t.touches.length?N(t):1===t.touches.length&&C(O(t.touches[0]))},F=({x:t,y:e})=>{k={x:t,y:e},z={x:p.x,y:p.y}},C=({x:t,y:e})=>{s&&window.cancelAnimationFrame(s),s=window.requestAnimationFrame(()=>{if(void 0===t||void 0===e)return;const l=t-k.x,i=e-k.y,r={x:z.x+l,y:z.y+i};n(2,p=y?ol(r,S(),o,m):r)})},P=()=>{A(),H()},R=t=>{const e=O(t.touches[0]),n=O(t.touches[1]);j=rl(e,n),F(cl(e,n))},N=t=>{const e=O(t.touches[0]),n=O(t.touches[1]),l=cl(e,n);C(l),u&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame(()=>{const t=rl(e,n);L(m*(t/j),l),j=t})},L=(t,e)=>{const l=(({x:t,y:e})=>{if(!r)throw new Error("The Cropper is not mounted");return{x:r.width/2-(t-r.left),y:r.height/2-(e-r.top)}})(e),i=(({x:t,y:e})=>({x:(t+p.x)/m,y:(e+p.y)/m}))(l);n(0,m=Math.min(b,Math.max(t,h)));const c={x:i.x*m-l.x,y:i.y*m-l.y};n(2,p=y?ol(c,S(),o,m):c)},H=()=>{o&&0!==o.width&&I("cropcomplete",{size:a,zoom:m,aspect:x,crop:p,image:d,imageSize:$,cropScale:f})};return t.$$set=t=>{"size"in t&&n(3,a=t.size),"cropScale"in t&&n(15,f=t.cropScale),"image"in t&&n(1,d=t.image),"crop"in t&&n(2,p=t.crop),"zoom"in t&&n(0,m=t.zoom),"aspect"in t&&n(16,x=t.aspect),"minZoom"in t&&n(17,h=t.minZoom),"maxZoom"in t&&n(18,b=t.maxZoom),"cropShape"in t&&n(4,g=t.cropShape),"zoomSpeed"in t&&n(19,w=t.zoomSpeed),"crossOrigin"in t&&n(5,v=t.crossOrigin),"restrictPosition"in t&&n(20,y=t.restrictPosition)},t.$$.update=()=>{98312&t.$$.dirty[0]&&n(21,l={width:a*f,height:a*f/x}),2162752&t.$$.dirty[0]&&c&&n(7,o=l||function(t,e,n){return t>=e*n?{width:e*n,height:e}:{width:t,height:t/n}}(c.width,c.height,x)),1&t.$$.dirty[0]&&m&&H()},[m,d,p,a,g,v,c,o,i,async()=>{if(d){var t=new Image($.naturalWidth,$.naturalHeight);t.src=d;var e=ll.drawImage(t,6);n(1,d=e.toDataURL()),await q(),D(),H()}},M,D,t=>{document.addEventListener("mousemove",E),document.addEventListener("mouseup",P),F(B(t))},t=>{document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",P),2===t.touches.length?R(t):1===t.touches.length&&F(O(t.touches[0]))},t=>{const e=B(t),n=m-t.deltaY*w/200;L(n,e)},f,x,h,b,w,y,l,function(e){X.call(this,t,e)},function(e){X.call(this,t,e)},function(t){_[t?"unshift":"push"](()=>{c=t,n(6,c)})},function(t){_[t?"unshift":"push"](()=>{i=t,n(8,i)})}]}class dl extends t{constructor(t){super(),e(this,t,fl,al,n,{size:3,cropScale:15,image:1,crop:2,zoom:0,aspect:16,minZoom:17,maxZoom:18,cropShape:4,zoomSpeed:19,crossOrigin:5,restrictPosition:20},null,[-1,-1])}}function pl(t,e,n){const l=t.slice();return l[68]=e[n],l}function ml(t,e,n){const l=t.slice();return l[71]=e[n],l}function xl(t,e,n){const l=t.slice();return l[68]=e[n],l}function hl(t){let e,n,l,o,i;return{c(){e=b("input"),p(e,"type",t[12]),p(e,"maxlength",t[4]),e.value=n=t[0]||"",e.disabled=t[14],p(e,"placeholder",l=t[25](t[3],t[24])),p(e,"autocorrect","off"),p(e,"autocomplete","off"),m(e,"sm",t[11]),m(e,"valid",t[7]),m(e,"error",t[8]),m(e,"readonly",t[14])},m(n,l){x(n,e,l),o||(i=[S(e,"input",t[62]),S(e,"blur",t[63]),S(e,"keypress",t[40])],o=!0)},p(t,o){4096&o[0]&&p(e,"type",t[12]),16&o[0]&&p(e,"maxlength",t[4]),1&o[0]&&n!==(n=t[0]||"")&&e.value!==n&&(e.value=n),16384&o[0]&&(e.disabled=t[14]),16777224&o[0]&&l!==(l=t[25](t[3],t[24]))&&p(e,"placeholder",l),2048&o[0]&&m(e,"sm",t[11]),128&o[0]&&m(e,"valid",t[7]),256&o[0]&&m(e,"error",t[8]),16384&o[0]&&m(e,"readonly",t[14])},i:y,o:y,d(t){t&&r(e),o=!1,j(i)}}}function bl(t){let e,n,l,o,i;return{c(){e=b("input"),p(e,"type","time"),e.value=n=Bl(t[0]),e.disabled=t[14],p(e,"placeholder",l=t[25](t[3],t[24])),p(e,"autocorrect","off"),p(e,"autocomplete","off"),m(e,"sm",t[11]),m(e,"valid",t[7]),m(e,"error",t[8]),m(e,"readonly",t[14])},m(n,l){x(n,e,l),o||(i=[S(e,"keypress",t[60]),S(e,"blur",t[61])],o=!0)},p(t,o){1&o[0]&&n!==(n=Bl(t[0]))&&e.value!==n&&(e.value=n),16384&o[0]&&(e.disabled=t[14]),16777224&o[0]&&l!==(l=t[25](t[3],t[24]))&&p(e,"placeholder",l),2048&o[0]&&m(e,"sm",t[11]),128&o[0]&&m(e,"valid",t[7]),256&o[0]&&m(e,"error",t[8]),16384&o[0]&&m(e,"readonly",t[14])},i:y,o:y,d(t){t&&r(e),o=!1,j(i)}}}function gl(t){let e,n,l,o,i;return{c(){e=b("input"),p(e,"type","text"),e.value=n=t[18]?t[19]||"":t[35](t[0])||0,e.disabled=t[14],p(e,"placeholder",l=t[25](t[3],t[24])),p(e,"autocorrect","off"),p(e,"autocomplete","off"),m(e,"sm",t[11]),m(e,"valid",t[7]),m(e,"error",t[8]),m(e,"readonly",t[14])},m(n,l){x(n,e,l),o||(i=[S(e,"focus",t[57]),S(e,"keypress",t[58]),S(e,"blur",t[59])],o=!0)},p(t,o){786433&o[0]&&n!==(n=t[18]?t[19]||"":t[35](t[0])||0)&&e.value!==n&&(e.value=n),16384&o[0]&&(e.disabled=t[14]),16777224&o[0]&&l!==(l=t[25](t[3],t[24]))&&p(e,"placeholder",l),2048&o[0]&&m(e,"sm",t[11]),128&o[0]&&m(e,"valid",t[7]),256&o[0]&&m(e,"error",t[8]),16384&o[0]&&m(e,"readonly",t[14])},i:y,o:y,d(t){t&&r(e),o=!1,j(i)}}}function wl(t){let e,n,l,o=t[22]&&zl(t);return{c(){e=b("select"),o&&o.c(),e.disabled=t[14],m(e,"sm",t[11]),m(e,"border-none",t[10])},m(i,r){x(i,e,r),o&&o.m(e,null),H(e,t[21]),n||(l=[S(e,"change",E(t[31])),S(e,"click",E(Ol))],n=!0)},p(t,n){t[22]?o?o.p(t,n):(o=zl(t),o.c(),o.m(e,null)):o&&(o.d(1),o=null),16384&n[0]&&(e.disabled=t[14]),6291456&n[0]&&H(e,t[21]),2048&n[0]&&m(e,"sm",t[11]),1024&n[0]&&m(e,"border-none",t[10])},i:y,o:y,d(t){t&&r(e),o&&o.d(),n=!1,j(l)}}}function vl(t){let e,n,l,o,i,c;return{c(){e=b("div"),n=b("input"),l=w(),o=b("label"),p(n,"class","checkbox"),p(n,"type","checkbox"),p(n,"id",t[41]),n.checked=t[20],n.disabled=t[14],m(n,"sm",t[11]),p(o,"for",t[41]),p(e,"class","text-4xl ml-2")},m(r,s){x(r,e,s),h(e,n),h(e,l),h(e,o),i||(c=S(n,"click",t[39]),i=!0)},p(t,e){1048576&e[0]&&(n.checked=t[20]),16384&e[0]&&(n.disabled=t[14]),2048&e[0]&&m(n,"sm",t[11])},i:y,o:y,d(t){t&&r(e),i=!1,c()}}}function yl(t){let e;const n=t[48].default,l=i(n,t,t[64],null),o=l||function(){let t;return{c(){t=b("div"),t.textContent="slot",p(t,"class","bg-c-100")},m(e,n){x(e,t,n)},p:y,d(e){e&&r(t)}}}();return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||4&o[2])&&a(l,n,t,t[64],e?d(n,t[64],o,null):f(t[64]),null)},i(t){e||(s(o,t),e=!0)},o(t){c(o,t),e=!1},d(t){o&&o.d(t)}}}function $l(t){let e,n;return e=new Jn({props:{$$slots:{popup:[Ml],default:[Il]},$$scope:{ctx:t}}}),t[55](e),e.$on("lostfocus",t[56]),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};4440067&n[0]|4&n[2]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(n){t[55](null),B(e,n)}}}function kl(t){let e,n,l,o;return{c(){e=b("textarea"),p(e,"rows",t[13]),e.value=t[23],p(e,"maxlength",t[4]),e.disabled=t[14],p(e,"placeholder",n=t[25](t[3],t[24])),m(e,"sm",t[11]),m(e,"valid",t[7]),m(e,"error",t[8]),m(e,"readonly",t[14])},m(n,i){x(n,e,i),l||(o=[S(e,"keypress",t[49]),S(e,"blur",t[50])],l=!0)},p(t,l){8192&l[0]&&p(e,"rows",t[13]),8388608&l[0]&&(e.value=t[23]),16&l[0]&&p(e,"maxlength",t[4]),16384&l[0]&&(e.disabled=t[14]),16777224&l[0]&&n!==(n=t[25](t[3],t[24]))&&p(e,"placeholder",n),2048&l[0]&&m(e,"sm",t[11]),128&l[0]&&m(e,"valid",t[7]),256&l[0]&&m(e,"error",t[8]),16384&l[0]&&m(e,"readonly",t[14])},i:y,o:y,d(t){t&&r(e),l=!1,j(o)}}}function zl(t){let e,n=Z(t[22]),l=[];for(let e=0;e<n.length;e+=1)l[e]=_l(pl(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=$()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);x(t,e,n)},p(t,o){if(4194880&o[0]){let i;for(n=Z(t[22]),i=0;i<n.length;i+=1){const r=pl(t,n,i);l[i]?l[i].p(r,o):(l[i]=_l(r),l[i].c(),l[i].m(e.parentNode,e))}for(;i<l.length;i+=1)l[i].d(1);l.length=n.length}},d(t){t&&r(e),V(l,t)}}}function _l(t){let e,n,l,o=(t[6]?null!=t[68].cod?t[68].cod:null!=t[68].id?t[68].id:t[68]:t[9]&&(t[68].cod||t[68].id)&&t[68].des?`${t[68].cod}-${t[68].des||""}`:null!=t[68].des?t[68].des:t[68])+"";return{c(){e=b("option"),n=g(o),e.l=l=null!=t[68].cod?t[68].cod:null!=t[68].id?t[68].id:t[68],P(e,e.l)},m(t,l){x(t,e,l),h(e,n)},p(t,i){4194880&i[0]&&o!==(o=(t[6]?null!=t[68].cod?t[68].cod:null!=t[68].id?t[68].id:t[68]:t[9]&&(t[68].cod||t[68].id)&&t[68].des?`${t[68].cod}-${t[68].des||""}`:null!=t[68].des?t[68].des:t[68])+"")&&u(n,o),4194304&i[0]&&l!==(l=null!=t[68].cod?t[68].cod:null!=t[68].id?t[68].id:t[68])&&(e.l=l,P(e,e.l))},d(t){t&&r(e)}}}function jl(t){let e,n,l,o,i=t[71]+"";return{c(){e=b("div"),n=b("div"),l=g(i),o=w(),p(n,"class","bg-c-base px-2 text-sm text-white rounded"),p(e,"class","pr-2")},m(t,i){x(t,e,i),h(e,n),h(n,l),h(e,o)},p(t,e){1&e[0]&&i!==(i=t[71]+"")&&u(l,i)},d(t){t&&r(e)}}}function Sl(t){let e,n;return e=new yt({props:{img:"more_horiz",size:6}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Il(t){let e,n,l,o,i,u,a,f,d,m,g,v=t[30](t[0],t[15]),y=Z((t[0]||"").split(";")),$=[];for(let e=0;e<y.length;e+=1)$[e]=jl(ml(t,y,e));let _=v&&Sl();return f=new yt({props:{size:6,img:t[17]?"expand_less":"expand_more"}}),{c(){e=b("button"),n=b("div"),l=b("div"),o=b("div"),i=b("div");for(let t=0;t<$.length;t+=1)$[t].c();u=w(),_&&_.c(),a=w(),F(f.$$.fragment),p(i,"class","flex flex-auto"),p(o,"class","px-2 pt-1.5 overflow-hidden w-full h-full"),p(l,"class","absolute inset-0"),p(n,"class","flex-1 relative h-8"),p(e,"class","w-full flexrow border border-c-border bg-white h-8 items-center cursor-pointer")},m(r,c){x(r,e,c),h(e,n),h(n,l),h(l,o),h(o,i);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(i,null);t[53](i),h(e,u),_&&_.m(e,null),h(e,a),O(f,e,null),d=!0,m||(g=S(e,"click",t[54]),m=!0)},p(t,n){if(1&n[0]){let e;for(y=Z((t[0]||"").split(";")),e=0;e<y.length;e+=1){const l=ml(t,y,e);$[e]?$[e].p(l,n):($[e]=jl(l),$[e].c(),$[e].m(i,null))}for(;e<$.length;e+=1)$[e].d(1);$.length=y.length}32769&n[0]&&(v=t[30](t[0],t[15])),v?_?32769&n[0]&&s(_,1):(_=Sl(),_.c(),s(_,1),_.m(e,a)):_&&(k(),c(_,1,1,()=>{_=null}),z());const l={};131072&n[0]&&(l.img=t[17]?"expand_less":"expand_more"),f.$set(l)},i(t){d||(s(_),s(f.$$.fragment,t),d=!0)},o(t){c(_),c(f.$$.fragment,t),d=!1},d(n){n&&r(e),V($,n),t[53](null),_&&_.d(),B(f),m=!1,g()}}}function Al(t){let e,n,l,o;return n=new Xn({props:{checkbox:!0,xs:!0,labcod:(t[68].cod||t[68].id+"").toUpperCase(),label:(t[68].des||"").toLowerCase(),value:t[38](t[68])}}),n.$on("click",function(...e){return t[52](t[68],...e)}),{c(){e=b("div"),F(n.$$.fragment),l=w(),p(e,"class","w-full px-2 overflow-hidden")},m(t,i){x(t,e,i),O(n,e,null),h(e,l),o=!0},p(e,l){t=e;const o={};4194304&l[0]&&(o.labcod=(t[68].cod||t[68].id+"").toUpperCase()),4194304&l[0]&&(o.label=(t[68].des||"").toLowerCase()),4194304&l[0]&&(o.value=t[38](t[68])),n.$set(o)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),B(n)}}}function Ml(t){let e,n,l,o,i,u;o=new Xn({props:{class:"font-bold",checkbox:!0,xs:!0,label:"seleziona/deseleziona tutto",value:t[28]}}),o.$on("click",t[51]);let a=Z(t[22]),f=[];for(let e=0;e<a.length;e+=1)f[e]=Al(xl(t,a,e));const d=t=>c(f[t],1,1,()=>{f[t]=null});return{c(){e=b("div"),n=b("div"),l=b("div"),F(o.$$.fragment),i=w();for(let t=0;t<f.length;t+=1)f[t].c();p(l,"class","w-full px-2 overflow-hidden"),p(n,"class","w-full flex flex-col space-y-1"),p(e,"slot","popup"),p(e,"class","max-h-[16rem] overflow-x-hidden overflow-y-auto")},m(t,r){x(t,e,r),h(e,n),h(n,l),O(o,l,null),h(n,i);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);u=!0},p(t,e){if(4259840&e[0]|192&e[1]){let l;for(a=Z(t[22]),l=0;l<a.length;l+=1){const o=xl(t,a,l);f[l]?(f[l].p(o,e),s(f[l],1)):(f[l]=Al(o),f[l].c(),s(f[l],1),f[l].m(n,null))}for(k(),l=a.length;l<f.length;l+=1)d(l);z()}},i(t){if(!u){s(o.$$.fragment,t);for(let t=0;t<a.length;t+=1)s(f[t]);u=!0}},o(t){c(o.$$.fragment,t),f=f.filter(Boolean);for(let t=0;t<f.length;t+=1)c(f[t]);u=!1},d(t){t&&r(e),B(o),V(f,t)}}}function Dl(t){let e,n,l,o,i;const u=[kl,$l,yl,vl,wl,gl,bl,hl],a=[];function f(t,e){return"area"===t[12]?0:"multiple"==t[12]?1:"slot"==t[12]?2:"check"===t[12]||"checkbox"==t[12]?3:"select"===t[12]?4:"number"===t[12]||"integer"===t[12]?5:"time"===t[12]?6:7}return n=f(t),l=a[n]=u[n](t),{c(){e=b("div"),l.c(),p(e,"class",o=`relative ${t[42].class||""}`)},m(t,l){x(t,e,l),a[n].m(e,null),i=!0},p(t,r){let d=n;n=f(t),n===d?a[n].p(t,r):(k(),c(a[d],1,1,()=>{a[d]=null}),z(),l=a[n],l?l.p(t,r):(l=a[n]=u[n](t),l.c()),s(l,1),l.m(e,null)),(!i||2048&r[1]&&o!==(o=`relative ${t[42].class||""}`))&&p(e,"class",o)},i(t){i||(s(l),i=!0)},o(t){c(l),i=!1},d(t){t&&r(e),a[n].d()}}}function Bl(t){return t>0?("00"+t.toFixed(2)).slice(-5).replace(".",":"):"00:00"}const Ol=()=>{};function El(t,e,n){let i,r,c,s,u,{$$slots:a={},$$scope:f}=e;const{_:d,lang:p,tonum:m,listfromstring:x}=kt();let h,b;R(t,p,t=>n(24,u=t));const g=G();let{value:w="",placeholder:v="",options:y,maxlength:$,forcestring:k=!1,uppercase:z=!1,onlycod:j=!1,valid:S=!1,error:I=!1,showcod:A=!1,noborder:M=!1,sm:D=!1,autosize:B,truevalue:O=1,falsevalue:E=0,type:T="text",decimali:F=2,coeff:C=1,rows:P=5,readonly:N=!1}=e,L=!1;function X(t){if(!B||"string"!=typeof B)return;let e=B.split(","),n=4*parseInt(e[0]||20),l=4*parseInt(e[1]||40),o=t.target;if(o){const t=o.scrollWidth+2;o.style.width=`${Math.max(n,Math.min(t,l))}px`}}function H(){return!!h&&h.scrollWidth>h.clientWidth}function Z(t){t&&(n(0,w=parseFloat(t.replace(":","."))),g("change",w))}async function V(){g("change",w)}function Y(t){Array.isArray(w)?n(0,w=t.split("\n")):n(0,w=t)}let U,W=!1;function J(t){if(t)return t=parseFloat(t)||0,C&&(t*=C),parseFloat((t||0).toFixed("integer"==T?0:F))}function q(t){var e=m(t,"integer"==T?0:F);n(0,w=e.isNaN?0:e/(C||1)),n(19,U=J(w)),V()}function K(t,e){var l=(e.cod||e.id+"").toLowerCase(),o=(w||"").toLowerCase().split(";");t&&!o.includes(l)?w?o.push(l):o=[l]:o.includes(l)&&(o=o.filter(t=>t!=l)),o.sort(),n(0,w=o.join(";"))}const Q=`c_${Math.floor(1e10*Math.random())}`;return t.$$set=t=>{n(42,e=l(l({},e),o(t))),"value"in t&&n(0,w=t.value),"placeholder"in t&&n(3,v=t.placeholder),"options"in t&&n(1,y=t.options),"maxlength"in t&&n(4,$=t.maxlength),"forcestring"in t&&n(43,k=t.forcestring),"uppercase"in t&&n(5,z=t.uppercase),"onlycod"in t&&n(6,j=t.onlycod),"valid"in t&&n(7,S=t.valid),"error"in t&&n(8,I=t.error),"showcod"in t&&n(9,A=t.showcod),"noborder"in t&&n(10,M=t.noborder),"sm"in t&&n(11,D=t.sm),"autosize"in t&&n(44,B=t.autosize),"truevalue"in t&&n(45,O=t.truevalue),"falsevalue"in t&&n(46,E=t.falsevalue),"type"in t&&n(12,T=t.type),"decimali"in t&&n(47,F=t.decimali),"coeff"in t&&n(2,C=t.coeff),"rows"in t&&n(13,P=t.rows),"readonly"in t&&n(14,N=t.readonly),"$$scope"in t&&n(64,f=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(23,i=Array.isArray(w)?w.join("\n"):w||""),2&t.$$.dirty[0]&&n(22,r=y?x(y):[]),1&t.$$.dirty[0]&&n(21,c="object"==typeof w?w?.cod||w?.id:w),1&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(20,s=w==O),32768&t.$$.dirty[0]&&H()},e=o(e),[w,y,C,v,$,z,j,S,I,A,M,D,T,P,N,h,b,L,W,U,s,c,r,i,u,d,p,g,undefined,X,H,async function(t){var e=t.target.value;if("string"==typeof w||k)n(0,w=e);else if("number"==typeof w)n(0,w=parseInt(e));else{var l=r?.filter(t=>t.id==e||t.cod==e);n(0,w=l[0]||{cod:e})}g("click"),g("change",w)},Z,V,Y,J,q,K,function(t){var e=(t.cod||t.id+"").toLowerCase();return(w||"").toLowerCase().split(";").includes(e)?1:0},function(t){t.stopPropagation(),t.target.checked?n(0,w=O):n(0,w=E),g("click",w)},function(t){"Enter"==t.key&&g("click",w)},Q,e,k,B,O,E,F,a,t=>{Y(t.target.value),V()},t=>{Y(t.target.value)},t=>{for(var e of r)K(t.detail.value,e);t.detail.value||n(0,w=""),n(1,y=[...y])},(t,e)=>{b.checkvisibility(e)&&K(e.detail.value,t)},function(t){_[t?"unshift":"push"](()=>{h=t,n(15,h)})},()=>{N||(n(17,L=!L),b.openmenu(L))},function(t){_[t?"unshift":"push"](()=>{b=t,n(16,b)})},()=>n(17,L=!1),()=>{n(2,C=parseFloat(C)||1),n(19,U=J(w)),n(18,W=!0)},t=>{if("Escape"===t.key)n(19,U=J(w)),t.target.value=U;else if("Enter"===t.key){const e=w;q(t.target.value),e!=w&&g("click",w)}else n(19,U=t.target.value)},t=>{n(18,W=!1);const e=w;q(t.target.value),w!==e&&g("click",w)},t=>{n(18,W=!1),Z(t.target.value)},t=>{n(18,W=!1),Z(t.target.value)},t=>{n(0,w=z?(t.target.value||"").toUpperCase():t.target.value),V(),X(t)},t=>{w!=t.target.value&&(n(0,w=t.target.value),V())},f]}class Tl extends t{constructor(t){super(),e(this,t,El,Dl,n,{value:0,placeholder:3,options:1,maxlength:4,forcestring:43,uppercase:5,onlycod:6,valid:7,error:8,showcod:9,noborder:10,sm:11,autosize:44,truevalue:45,falsevalue:46,type:12,decimali:47,coeff:2,rows:13,readonly:14},null,[-1,-1,-1])}}function Fl(t){let e,n,l;return n=new En({props:{id:t[1]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","label pt-1 h-6")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};2&e[0]&&(l.id=t[1]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Cl(t){let e,n,l;return n=new En({props:{id:t[1]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","label leading-none pr-2"),p(e,"style","wlabel?'width: '+wlabel+'%;':''"),m(e,"text-right",!t[2]),m(e,"text-sm",t[15])},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,o){const i={};2&o[0]&&(i.id=t[1]),n.$set(i),(!l||4&o[0])&&m(e,"text-right",!t[2]),(!l||32768&o[0])&&m(e,"text-sm",t[15])},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Pl(t){let e;const n=t[26].default,l=i(n,t,t[31],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||1&o[1])&&a(l,n,t,t[31],e?d(n,t[31],o,null):f(t[31]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function Rl(t){let e,n,l="slot"==t[19]&&Pl(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,n){"slot"==t[19]?l?(l.p(t,n),524288&n[0]&&s(l,1)):(l=Pl(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function Nl(t){let e,n,l;function o(e){t[27](e)}let i={placeholder:t[3],options:t[10],onlycod:t[5],uppercase:t[7],forcestring:t[9],tooltip:t[12],valid:t[13],autosize:t[8],error:t[14],sm:t[15],showcod:t[6],noborder:t[11],truevalue:t[16],falsevalue:t[18],type:t[19],decimali:t[20],maxlength:t[17],rows:t[21],coeff:t[22],disabled:t[23],readonly:t[24],$$slots:{default:[Rl]},$$scope:{ctx:t}};return void 0!==t[0]&&(i.value=t[0]),e=new Tl({props:i}),_.push(()=>Y(e,"value",o)),e.$on("input",t[28]),e.$on("change",t[29]),e.$on("click",t[30]),{c(){F(e.$$.fragment)},m(t,n){O(e,t,n),l=!0},p(t,l){const o={};8&l[0]&&(o.placeholder=t[3]),1024&l[0]&&(o.options=t[10]),32&l[0]&&(o.onlycod=t[5]),128&l[0]&&(o.uppercase=t[7]),512&l[0]&&(o.forcestring=t[9]),4096&l[0]&&(o.tooltip=t[12]),8192&l[0]&&(o.valid=t[13]),256&l[0]&&(o.autosize=t[8]),16384&l[0]&&(o.error=t[14]),32768&l[0]&&(o.sm=t[15]),64&l[0]&&(o.showcod=t[6]),2048&l[0]&&(o.noborder=t[11]),65536&l[0]&&(o.truevalue=t[16]),262144&l[0]&&(o.falsevalue=t[18]),524288&l[0]&&(o.type=t[19]),1048576&l[0]&&(o.decimali=t[20]),131072&l[0]&&(o.maxlength=t[17]),2097152&l[0]&&(o.rows=t[21]),4194304&l[0]&&(o.coeff=t[22]),8388608&l[0]&&(o.disabled=t[23]),16777216&l[0]&&(o.readonly=t[24]),524288&l[0]|1&l[1]&&(o.$$scope={dirty:l,ctx:t}),!n&&1&l[0]&&(n=!0,o.value=t[0],U(()=>n=!1)),e.$set(o)},i(t){l||(s(e.$$.fragment,t),l=!0)},o(t){c(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Ll(t){let e;const n=t[26].default,l=i(n,t,t[31],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||1&o[1])&&a(l,n,t,t[31],e?d(n,t[31],o,null):f(t[31]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function Xl(t){let e,n,l,o,i,u,a,f,d,m=t[1]&&!t[4]&&Fl(t),g=t[1]&&t[4]&&Cl(t);u=new cn({props:{tooltip:t[12],$$slots:{default:[Nl]},$$scope:{ctx:t}}});let v="slot"!=t[19]&&Ll(t);return{c(){e=b("div"),m&&m.c(),n=w(),l=b("div"),g&&g.c(),o=w(),i=b("div"),F(u.$$.fragment),a=w(),v&&v.c(),p(i,"class","flex-1"),p(l,"class","flexrow w-full space-x-1 items-center"),p(e,"class",f=`labinput ${t[25].class||""}`)},m(t,r){x(t,e,r),m&&m.m(e,null),h(e,n),h(e,l),g&&g.m(l,null),h(l,o),h(l,i),O(u,i,null),h(l,a),v&&v.m(l,null),d=!0},p(t,i){t[1]&&!t[4]?m?(m.p(t,i),18&i[0]&&s(m,1)):(m=Fl(t),m.c(),s(m,1),m.m(e,n)):m&&(k(),c(m,1,1,()=>{m=null}),z()),t[1]&&t[4]?g?(g.p(t,i),18&i[0]&&s(g,1)):(g=Cl(t),g.c(),s(g,1),g.m(l,o)):g&&(k(),c(g,1,1,()=>{g=null}),z());const r={};4096&i[0]&&(r.tooltip=t[12]),33554409&i[0]|1&i[1]&&(r.$$scope={dirty:i,ctx:t}),u.$set(r),"slot"!=t[19]?v?(v.p(t,i),524288&i[0]&&s(v,1)):(v=Ll(t),v.c(),s(v,1),v.m(l,null)):v&&(k(),c(v,1,1,()=>{v=null}),z()),(!d||33554432&i[0]&&f!==(f=`labinput ${t[25].class||""}`))&&p(e,"class",f)},i(t){d||(s(m),s(g),s(u.$$.fragment,t),s(v),d=!0)},o(t){c(m),c(g),c(u.$$.fragment,t),c(v),d=!1},d(t){t&&r(e),m&&m.d(),g&&g.d(),B(u),v&&v.d()}}}function Hl(t,e,n){let{$$slots:i={},$$scope:r}=e;const{_:c}=kt();let{value:s="",label:u="",labelleft:a=!1,placeholder:f="",oriz:d=!1,onlycod:p=!1,showcod:m=!1,uppercase:x=!1,autosize:h,forcestring:b=!1,options:g,noborder:w=!1,tooltip:v="",valid:y=!1,error:$=!1,sm:k=!1,truevalue:z=1,maxlength:_,falsevalue:j=0,type:S="text",decimali:I=2,rows:A=5,coeff:M=1,disabled:D=!1,readonly:B=!1}=e;return t.$$set=t=>{n(25,e=l(l({},e),o(t))),"value"in t&&n(0,s=t.value),"label"in t&&n(1,u=t.label),"labelleft"in t&&n(2,a=t.labelleft),"placeholder"in t&&n(3,f=t.placeholder),"oriz"in t&&n(4,d=t.oriz),"onlycod"in t&&n(5,p=t.onlycod),"showcod"in t&&n(6,m=t.showcod),"uppercase"in t&&n(7,x=t.uppercase),"autosize"in t&&n(8,h=t.autosize),"forcestring"in t&&n(9,b=t.forcestring),"options"in t&&n(10,g=t.options),"noborder"in t&&n(11,w=t.noborder),"tooltip"in t&&n(12,v=t.tooltip),"valid"in t&&n(13,y=t.valid),"error"in t&&n(14,$=t.error),"sm"in t&&n(15,k=t.sm),"truevalue"in t&&n(16,z=t.truevalue),"maxlength"in t&&n(17,_=t.maxlength),"falsevalue"in t&&n(18,j=t.falsevalue),"type"in t&&n(19,S=t.type),"decimali"in t&&n(20,I=t.decimali),"rows"in t&&n(21,A=t.rows),"coeff"in t&&n(22,M=t.coeff),"disabled"in t&&n(23,D=t.disabled),"readonly"in t&&n(24,B=t.readonly),"$$scope"in t&&n(31,r=t.$$scope)},t.$$.update=()=>{t.$$.dirty[0]},e=o(e),[s,u,a,f,d,p,m,x,h,b,g,w,v,y,$,k,z,_,j,S,I,A,M,D,B,e,i,function(t){s=t,n(0,s)},function(e){X.call(this,t,e)},function(e){X.call(this,t,e)},function(e){X.call(this,t,e)},r]}class Zl extends t{constructor(t){super(),e(this,t,Hl,Xl,n,{value:0,label:1,labelleft:2,placeholder:3,oriz:4,onlycod:5,showcod:6,uppercase:7,autosize:8,forcestring:9,options:10,noborder:11,tooltip:12,valid:13,error:14,sm:15,truevalue:16,maxlength:17,falsevalue:18,type:19,decimali:20,rows:21,coeff:22,disabled:23,readonly:24},null,[-1,-1])}}const Vl=t=>({}),Yl=t=>({});function Ul(t){let e,n,l,o,i,u,a,f,d,m,g,v,y,$=t[5]&&Wl(t),_=(t[1]||t[7]||t[8])&&Jl(t);const I=[Gl,ql],M=[];function D(t,e){return t[8]||t[7]?0:1}return a=D(t),f=M[a]=I[a](t),{c(){e=b("div"),n=b("button"),l=w(),o=b("button"),$&&$.c(),i=w(),_&&_.c(),u=w(),f.c(),p(n,"aria-label","bg"),p(n,"class","bg svelte-l4jjoj"),p(o,"class",d=W(t[15])+" svelte-l4jjoj"),p(o,"style",t[14]),p(e,"class","contenitore svelte-l4jjoj")},m(r,c){x(r,e,c),h(e,n),h(e,l),h(e,o),$&&$.m(o,null),h(o,i),_&&_.m(o,null),h(o,u),M[a].m(o,null),t[36](o),g=!0,v||(y=[S(n,"click",t[20]),S(o,"click",t[37])],v=!0)},p(e,n){(t=e)[5]?$?($.p(t,n),32&n[0]&&s($,1)):($=Wl(t),$.c(),s($,1),$.m(o,i)):$&&(k(),c($,1,1,()=>{$=null}),z()),t[1]||t[7]||t[8]?_?(_.p(t,n),386&n[0]&&s(_,1)):(_=Jl(t),_.c(),s(_,1),_.m(o,u)):_&&(k(),c(_,1,1,()=>{_=null}),z());let l=a;a=D(t),a===l?M[a].p(t,n):(k(),c(M[l],1,1,()=>{M[l]=null}),z(),f=M[a],f?f.p(t,n):(f=M[a]=I[a](t),f.c()),s(f,1),f.m(o,null)),(!g||32768&n[0]&&d!==(d=W(t[15])+" svelte-l4jjoj"))&&p(o,"class",d),(!g||16384&n[0])&&p(o,"style",t[14])},i(e){g||(s($),s(_),s(f),e&&A(()=>{g&&(m||(m=C(o,Mt,t[9]?{x:-300,duration:400}:t[10]?{x:300,duration:400}:{y:200,duration:400},!0)),m.run(1))}),g=!0)},o(e){c($),c(_),c(f),e&&(m||(m=C(o,Mt,t[9]?{x:-300,duration:400}:t[10]?{x:300,duration:400}:{y:200,duration:400},!1)),m.run(0)),g=!1},d(n){n&&r(e),$&&$.d(),_&&_.d(),M[a].d(),t[36](null),n&&m&&m.end(),v=!1,j(y)}}}function Wl(t){let e,n,l;return n=new dn({props:{img:"close",alt:!0,size:8}}),n.$on("click",t[20]),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","absolute top-2 right-1")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Jl(t){let e,n,l,o,i,u;return n=new En({props:{id:t[1]||""}}),{c(){e=b("button"),F(n.$$.fragment),p(e,"class",l="w-full py-2 px-4 text-left "+t[13]+" text-xl text-header svelte-l4jjoj")},m(l,r){x(l,e,r),O(n,e,null),o=!0,i||(u=[S(e,"mousedown",t[17]),S(e,"mousemove",t[18]),S(e,"mouseleave",t[19]),S(e,"mouseup",t[19])],i=!0)},p(t,i){const r={};2&i[0]&&(r.id=t[1]||""),n.$set(r),(!o||8192&i[0]&&l!==(l="w-full py-2 px-4 text-left "+t[13]+" text-xl text-header svelte-l4jjoj"))&&p(e,"class",l)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),B(n),i=!1,j(u)}}}function ql(t){let e,n,l;const o=t[31].default,u=i(o,t,t[38],null),m=u||function(t){let e,n,l;return n=new En({props:{id:t[2],html:!0}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","p-2 flex flex-col space-y-2")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};4&e[0]&&(l.id=t[2]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}(t);let h=t[16]&&Kl(t);return{c(){m&&m.c(),e=w(),h&&h.c(),n=$()},m(t,o){m&&m.m(t,o),x(t,e,o),h&&h.m(t,o),x(t,n,o),l=!0},p(t,e){u?u.p&&(!l||128&e[1])&&a(u,o,t,t[38],l?d(o,t[38],e,null):f(t[38]),null):m&&m.p&&(!l||4&e[0])&&m.p(t,l?e:[-1,-1]),t[16]?h?(h.p(t,e),65536&e[0]&&s(h,1)):(h=Kl(t),h.c(),s(h,1),h.m(n.parentNode,n)):h&&(k(),c(h,1,1,()=>{h=null}),z())},i(t){l||(s(m,t),s(h),l=!0)},o(t){c(m,t),c(h),l=!1},d(t){t&&(r(e),r(n)),m&&m.d(t),h&&h.d(t)}}}function Gl(t){let e,n,l,o,u=!t[6]&&ro(t);const m=t[31].default,h=i(m,t,t[38],null);return{c(){u&&u.c(),e=w(),n=b("div"),h&&h.c(),p(n,"class",l="h-full bg-white overflow-y-auto "+(t[21].class||"")+" svelte-l4jjoj")},m(t,l){u&&u.m(t,l),x(t,e,l),x(t,n,l),h&&h.m(n,null),o=!0},p(t,i){t[6]?u&&(k(),c(u,1,1,()=>{u=null}),z()):u?(u.p(t,i),64&i[0]&&s(u,1)):(u=ro(t),u.c(),s(u,1),u.m(e.parentNode,e)),h&&h.p&&(!o||128&i[1])&&a(h,m,t,t[38],o?d(m,t[38],i,null):f(t[38]),null),(!o||2097152&i[0]&&l!==(l="h-full bg-white overflow-y-auto "+(t[21].class||"")+" svelte-l4jjoj"))&&p(n,"class",l)},i(t){o||(s(u),s(h,t),o=!0)},o(t){c(u),c(h,t),o=!1},d(t){t&&(r(e),r(n)),u&&u.d(t),h&&h.d(t)}}}function Kl(t){let e,n,l,o;const i=[to,Ql],u=[];function a(t,e){return t[3]||t[4]?0:1}return n=a(t),l=u[n]=i[n](t),{c(){e=b("div"),l.c(),p(e,"class","flexrow w-full space-x-2 p-4")},m(t,l){x(t,e,l),u[n].m(e,null),o=!0},p(t,o){let r=n;n=a(t),n===r?u[n].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),l=u[n],l?l.p(t,o):(l=u[n]=i[n](t),l.c()),s(l,1),l.m(e,null))},i(t){o||(s(l),o=!0)},o(t){c(l),o=!1},d(t){t&&r(e),u[n].d()}}}function Ql(t){let e,n,l,o,i,u;return i=new kn({props:{danger:t[11],$$slots:{default:[eo]},$$scope:{ctx:t}}}),i.$on("click",t[35]),{c(){e=b("div"),n=w(),l=b("div"),o=w(),F(i.$$.fragment),p(e,"class","flex-1"),p(l,"class","flex-1")},m(t,r){x(t,e,r),x(t,n,r),x(t,l,r),x(t,o,r),O(i,t,r),u=!0},p(t,e){const n={};2048&e[0]&&(n.danger=t[11]),128&e[1]&&(n.$$scope={dirty:e,ctx:t}),i.$set(n)},i(t){u||(s(i.$$.fragment,t),u=!0)},o(t){c(i.$$.fragment,t),u=!1},d(t){t&&(r(e),r(n),r(l),r(o)),B(i,t)}}}function to(t){let e,n,l,o,i,u,a;e=new kn({props:{alt:!0,$$slots:{default:[no]},$$scope:{ctx:t}}}),e.$on("click",t[32]);let f=t[4]&&lo(t);return u=new kn({props:{danger:t[11],$$slots:{default:[io]},$$scope:{ctx:t}}}),u.$on("click",t[34]),{c(){F(e.$$.fragment),n=w(),l=b("div"),o=w(),f&&f.c(),i=w(),F(u.$$.fragment),p(l,"class","flex-1")},m(t,r){O(e,t,r),x(t,n,r),x(t,l,r),x(t,o,r),f&&f.m(t,r),x(t,i,r),O(u,t,r),a=!0},p(t,n){const l={};128&n[1]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l),t[4]?f?(f.p(t,n),16&n[0]&&s(f,1)):(f=lo(t),f.c(),s(f,1),f.m(i.parentNode,i)):f&&(k(),c(f,1,1,()=>{f=null}),z());const o={};2048&n[0]&&(o.danger=t[11]),128&n[1]&&(o.$$scope={dirty:n,ctx:t}),u.$set(o)},i(t){a||(s(e.$$.fragment,t),s(f),s(u.$$.fragment,t),a=!0)},o(t){c(e.$$.fragment,t),c(f),c(u.$$.fragment,t),a=!1},d(t){t&&(r(n),r(l),r(o),r(i)),B(e,t),f&&f.d(t),B(u,t)}}}function eo(t){let e,n;return e=new En({props:{id:"ok"}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function no(t){let e,n;return e=new En({props:{id:"no"}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function lo(t){let e,n;return e=new kn({props:{alt:!0,$$slots:{default:[oo]},$$scope:{ctx:t}}}),e.$on("click",t[33]),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};128&n[1]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function oo(t){let e,n;return e=new En({props:{id:"cancella"}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function io(t){let e,n;return e=new En({props:{id:"si"}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function ro(t){let e,n;const l=t[31].Footer,o=i(l,t,t[38],Yl),u=o||function(){let t;return{c(){t=g("footer")},m(e,n){x(e,t,n)},d(e){e&&r(t)}}}();return{c(){e=b("div"),u&&u.c(),p(e,"class","outline-c-100 bg-c-group border-t p-2")},m(t,l){x(t,e,l),u&&u.m(e,null),n=!0},p(t,e){o&&o.p&&(!n||128&e[1])&&a(o,l,t,t[38],n?d(l,t[38],e,Vl):f(t[38]),Yl)},i(t){n||(s(u,t),n=!0)},o(t){c(u,t),n=!1},d(t){t&&r(e),u&&u.d(t)}}}function co(t){let e,n,l=t[0]&&Ul(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,n){t[0]?l?(l.p(t,n),1&n[0]&&s(l,1)):(l=Ul(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function so(t,e,n){let i,r,c,s,{$$slots:u={},$$scope:a}=e;const{autofocus:f}=kt(),d=G();var p,m,x=0,h=0,b=0,g=0,w=!1;function v(t){w&&(n(29,b=t.x-p),n(30,g=t.y-m))}function y(t){w&&(w=!1,n(27,x+=b),n(28,h+=g),n(29,b=0),n(30,g=0),cursorStyle="default",window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",y))}let $,{show:k=!1,title:z="",text:j="",yesno:S=!1,yesnocancel:I=!1,noscroll:A=!1,close:M=!1,ok:D=!1,nofooter:B=!1,xl:O,screen:E,wfull:T,hfull:F,left:C,right:P,warning:R=!1,danger:N=!1}=e;function L(t){d("close",t),d("click",t)}return t.$$set=t=>{n(21,e=l(l({},e),o(t))),"show"in t&&n(0,k=t.show),"title"in t&&n(1,z=t.title),"text"in t&&n(2,j=t.text),"yesno"in t&&n(3,S=t.yesno),"yesnocancel"in t&&n(4,I=t.yesnocancel),"noscroll"in t&&n(22,A=t.noscroll),"close"in t&&n(5,M=t.close),"ok"in t&&n(23,D=t.ok),"nofooter"in t&&n(6,B=t.nofooter),"xl"in t&&n(24,O=t.xl),"screen"in t&&n(7,E=t.screen),"wfull"in t&&n(25,T=t.wfull),"hfull"in t&&n(8,F=t.hfull),"left"in t&&n(9,C=t.left),"right"in t&&n(10,P=t.right),"warning"in t&&n(26,R=t.warning),"danger"in t&&n(11,N=t.danger),"$$scope"in t&&n(38,a=t.$$scope)},t.$$.update=()=>{var e;4097&t.$$.dirty[0]&&(n(27,x=0),n(28,h=0),n(29,b=0),n(30,g=0),w=!1,f(k,$),n(27,x=0),n(28,h=0),n(29,b=0),n(30,g=0),w=!1),8388632&t.$$.dirty[0]&&n(16,i=D||S||I),50332032&t.$$.dirty[0]&&n(15,r=function(){var t="max-w-lg";if(O){var e=parseInt(O);t=e>1&&e<9?`max-w-${e}xl`:"max-w-xl"}return(T||E)&&(t="w-screen"),`relative overflow-x-hidden msg ${t} ${C?"mr-auto":P?"ml-auto":"mx-auto"} \n ${T||F||E?"":"rounded-md"} \n ${F||E?B?"h-screen grid grid-rows-[auto_1fr]":"h-screen grid grid-rows-[auto_auto_1fr]":""} \n ${A||E||F?"overflow-y-hidden":"overflow-y-auto"}`}()),2013266304&t.$$.dirty[0]&&n(14,(e=x+b||h+g?`transform: translate(${x+b}px , ${h+g}px); `:"",(E||F)&&(e=`${e} height: ${F&&F>=20&&F<100?F+"vh":"100vh"};`),c=e)),67110912&t.$$.dirty[0]&&n(13,s=N?"bg-c-danger":R?"bg-c-warning":"bg-headerbg")},e=o(e),[k,z,j,S,I,M,B,E,F,C,P,N,$,s,c,r,i,function(t){E||T||F||(p=t.x,m=t.y,w=!0,cursorStyle="move",window.addEventListener("mousemove",v),window.addEventListener("mouseup",y))},v,y,L,e,A,D,O,T,R,x,h,b,g,u,()=>L("no"),()=>L("cancel"),()=>L("yes"),()=>L("yes"),function(t){_[t?"unshift":"push"](()=>{$=t,n(12,$)})},t=>{i&&(t.preventDefault(),t.stopPropagation())},a]}class uo extends t{constructor(t){super(),e(this,t,so,co,n,{show:0,title:1,text:2,yesno:3,yesnocancel:4,noscroll:22,close:5,ok:23,nofooter:6,xl:24,screen:7,wfull:25,hfull:8,left:9,right:10,warning:26,danger:11},null,[-1,-1])}}function ao(t,e,n){const l=t.slice();return l[101]=e[n],l}function fo(t,e,n){const l=t.slice();return l[104]=e[n],l[105]=e,l[106]=n,l}function po(t,e,n){const l=t.slice();return l[107]=e[n],l[108]=e,l[106]=n,l}function mo(t,e,n){const l=t.slice();return l[109]=e[n],l}const xo=t=>({bt:1048576&t[0],x:4&t[0]}),ho=t=>({bt:t[109],x:t[107],row:t[106]});function bo(t,e,n){const l=t.slice();return l[104]=e[n],l}const go=t=>({f:128&t[1],x:4&t[0]}),wo=t=>({f:t[104],x:t[107],row:t[106]});function vo(t,e,n){const l=t.slice();return l[104]=e[n],l[114]=e,l[115]=n,l}function yo(t,e,n){const l=t.slice();return l[104]=e[n],l}const $o=t=>({}),ko=t=>({}),zo=t=>({}),_o=t=>({}),jo=t=>({}),So=t=>({}),Io=t=>({}),Ao=t=>({});function Mo(t){let e,n,l,o,i,u,a,f,d,m,g;const v=[Bo,Do],y=[];function j(t,e){return t[8]?0:1}n=j(t),l=y[n]=v[n](t);let S=open&&function(t){let e,n,l,o;const i=[Xo,Lo],u=[];function a(t,e){return 2==t[1]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}(t);function I(e){t[88](e)}a=new uo({props:{show:t[32],xl:2,title:"Dettaglio",close:!0,$$slots:{default:[zi]},$$scope:{ctx:t}}}),a.$on("close",t[48]);let A={element:t[29],$$slots:{default:[Si]},$$scope:{ctx:t}};return void 0!==t[30]&&(A.show=t[30]),d=new bn({props:A}),_.push(()=>Y(d,"show",I)),{c(){e=b("div"),l.c(),o=w(),S&&S.c(),u=w(),F(a.$$.fragment),f=w(),F(d.$$.fragment),p(e,"class",i=t[53].class||"")},m(t,l){x(t,e,l),y[n].m(e,null),h(e,o),S&&S.m(e,null),x(t,u,l),O(a,t,l),x(t,f,l),O(d,t,l),g=!0},p(t,r){let u=n;n=j(t),n===u?y[n].p(t,r):(k(),c(y[u],1,1,()=>{y[u]=null}),z(),l=y[n],l?l.p(t,r):(l=y[n]=v[n](t),l.c()),s(l,1),l.m(e,o)),open&&S.p(t,r),(!g||4194304&r[1]&&i!==(i=t[53].class||""))&&p(e,"class",i);const f={};2&r[1]&&(f.show=t[32]),10485761&r[0]|1026&r[1]|134217728&r[2]&&(f.$$scope={dirty:r,ctx:t}),a.$set(f);const x={};536870912&r[0]&&(x.element=t[29]),1610612736&r[0]|17&r[1]|134217728&r[2]&&(x.$$scope={dirty:r,ctx:t}),!m&&1073741824&r[0]&&(m=!0,x.show=t[30],U(()=>m=!1)),d.$set(x)},i(t){g||(s(l),s(S),s(a.$$.fragment,t),s(d.$$.fragment,t),g=!0)},o(t){c(l),c(S),c(a.$$.fragment,t),c(d.$$.fragment,t),g=!1},d(t){t&&(r(e),r(u),r(f)),y[n].d(),S&&S.d(),B(a,t),B(d,t)}}}function Do(t){let e,n;return e=new cn({props:{tooltip:t[10],left:!0,bottom:!0,$$slots:{default:[No]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};1024&n[0]&&(l.tooltip=t[10]),407773315&n[0]|256&n[1]|134217728&n[2]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Bo(t){let e;const n=t[59].default,l=i(n,t,t[89],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||134217728&o[2])&&a(l,n,t,t[89],e?d(n,t[89],o,null):f(t[89]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function Oo(t){let e,n,l;return n=new dn({props:{white:!0,img:1==t[1]?"grid_view":"list",mat:!0,size:6}}),n.$on("click",t[60]),{c(){e=b("div"),F(n.$$.fragment)},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};2&e[0]&&(l.img=1==t[1]?"grid_view":"list"),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Eo(t){let e,n,l,o;function i(e){t[61](e)}let u={sm:!0};return void 0!==t[27]&&(u.value=t[27]),n=new In({props:u}),_.push(()=>Y(n,"value",i)),n.$on("input",t[62]),n.$on("click",t[63]),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","px-2 flex-1 md:w-64")},m(t,l){x(t,e,l),O(n,e,null),o=!0},p(t,e){const o={};!l&&134217728&e[0]&&(l=!0,o.value=t[27],U(()=>l=!1)),n.$set(o)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),B(n)}}}function To(t){let e,n,l;return n=new dn({props:{alt:!0,img:"content_copy",mat:!0,size:6,tooltip:"Copia dati su clipboard (CSV)"}}),n.$on("click",t[64]),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","h-6 w-6")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Fo(t){let e,n,l;return n=new dn({props:{alt:!0,img:"file_download",mat:!0,size:6,tooltip:"Export tabella"}}),n.$on("click",t[65]),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","h-6 w-6")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Co(t){let e,n,l;return n=new dn({props:{alt:!0,img:"file_upload",mat:!0,size:6,tooltip:"import tabella"}}),n.$on("click",t[66]),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","h-6 w-6")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Po(t){let e,n,l;return n=new dn({props:{size:6,img:t[28]?"filter_alt_off":"filter_alt"}}),n.$on("click",t[67]),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","h-6")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};268435456&e[0]&&(l.img=t[28]?"filter_alt_off":"filter_alt"),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Ro(t){let e,n;const l=t[59].btnadd,o=i(l,t,t[89],_o),u=o||function(t){let e,n;return e=new dn({props:{size:6,img:"add"}}),e.$on("click",t[68]),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}(t);return{c(){e=b("div"),u&&u.c(),p(e,"class","w-6 h-6")},m(t,l){x(t,e,l),u&&u.m(e,null),n=!0},p(t,e){o&&o.p&&(!n||134217728&e[2])&&a(o,l,t,t[89],n?d(l,t[89],e,zo):f(t[89]),_o)},i(t){n||(s(u,t),n=!0)},o(t){c(u,t),n=!1},d(t){t&&r(e),u&&u.d(t)}}}function No(t){let e,n,l,o,u,m,g,v,y,$,_,j=t[1]&&Oo(t);const S=t[59].title,I=i(S,t,t[89],Ao),A=I||function(t){let e,n,l;return n=new En({props:{id:t[22]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","hidden px-2 md:block flex-1 text-xs md:text-sm text-left font-bold uppercase")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};4194304&e[0]&&(l.id=t[22]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}(t),M=t[59].default,D=i(M,t,t[89],null);let E=!t[7]&&Eo(t),T=t[17]&&To(t),C=t[18]&&Fo(t),P=t[19]&&Co(t),R=!t[13]&&Po(t);const N=t[59].btntitle,L=i(N,t,t[89],So);let X=t[39]&&Ro(t);return{c(){e=b("button"),j&&j.c(),n=w(),A&&A.c(),l=w(),D&&D.c(),o=w(),E&&E.c(),u=w(),T&&T.c(),m=w(),C&&C.c(),g=w(),P&&P.c(),v=w(),R&&R.c(),y=w(),L&&L.c(),$=w(),X&&X.c(),p(e,"class","titolo items-center")},m(t,i){x(t,e,i),j&&j.m(e,null),h(e,n),A&&A.m(e,null),h(e,l),D&&D.m(e,null),h(e,o),E&&E.m(e,null),h(e,u),T&&T.m(e,null),h(e,m),C&&C.m(e,null),h(e,g),P&&P.m(e,null),h(e,v),R&&R.m(e,null),h(e,y),L&&L.m(e,null),h(e,$),X&&X.m(e,null),_=!0},p(t,l){t[1]?j?(j.p(t,l),2&l[0]&&s(j,1)):(j=Oo(t),j.c(),s(j,1),j.m(e,n)):j&&(k(),c(j,1,1,()=>{j=null}),z()),I?I.p&&(!_||134217728&l[2])&&a(I,S,t,t[89],_?d(S,t[89],l,Io):f(t[89]),Ao):A&&A.p&&(!_||4194304&l[0])&&A.p(t,_?l:[-1,-1,-1,-1]),D&&D.p&&(!_||134217728&l[2])&&a(D,M,t,t[89],_?d(M,t[89],l,null):f(t[89]),null),t[7]?E&&(k(),c(E,1,1,()=>{E=null}),z()):E?(E.p(t,l),128&l[0]&&s(E,1)):(E=Eo(t),E.c(),s(E,1),E.m(e,u)),t[17]?T?(T.p(t,l),131072&l[0]&&s(T,1)):(T=To(t),T.c(),s(T,1),T.m(e,m)):T&&(k(),c(T,1,1,()=>{T=null}),z()),t[18]?C?(C.p(t,l),262144&l[0]&&s(C,1)):(C=Fo(t),C.c(),s(C,1),C.m(e,g)):C&&(k(),c(C,1,1,()=>{C=null}),z()),t[19]?P?(P.p(t,l),524288&l[0]&&s(P,1)):(P=Co(t),P.c(),s(P,1),P.m(e,v)):P&&(k(),c(P,1,1,()=>{P=null}),z()),t[13]?R&&(k(),c(R,1,1,()=>{R=null}),z()):R?(R.p(t,l),8192&l[0]&&s(R,1)):(R=Po(t),R.c(),s(R,1),R.m(e,y)),L&&L.p&&(!_||134217728&l[2])&&a(L,N,t,t[89],_?d(N,t[89],l,jo):f(t[89]),So),t[39]?X?(X.p(t,l),256&l[1]&&s(X,1)):(X=Ro(t),X.c(),s(X,1),X.m(e,null)):X&&(k(),c(X,1,1,()=>{X=null}),z())},i(t){_||(s(j),s(A,t),s(D,t),s(E),s(T),s(C),s(P),s(R),s(L,t),s(X),_=!0)},o(t){c(j),c(A,t),c(D,t),c(E),c(T),c(C),c(P),c(R),c(L,t),c(X),_=!1},d(t){t&&r(e),j&&j.d(),A&&A.d(t),D&&D.d(t),E&&E.d(),T&&T.d(),C&&C.d(),P&&P.d(),R&&R.d(),L&&L.d(t),X&&X.d()}}}function Lo(t){let e,n,l,o,i,u,a,f,d,m,g,v,y,$=t[15]&&Ho(),_=t[16]&&Zo(t),j=Z(t[38]),I=[];for(let e=0;e<j.length;e+=1)I[e]=Wo(yo(t,j,e));const A=t=>c(I[t],1,1,()=>{I[t]=null});let M=t[37]&&Jo(t),D=!t[13]&&t[28]&&t[0]&&qo(t),B=Z(t[2]),O=[];for(let e=0;e<B.length;e+=1)O[e]=wi(po(t,B,e));const E=t=>c(O[t],1,1,()=>{O[t]=null});return{c(){e=b("div"),n=b("table"),l=b("thead"),o=b("tr"),$&&$.c(),i=w(),_&&_.c(),u=w();for(let t=0;t<I.length;t+=1)I[t].c();a=w(),M&&M.c(),f=w(),D&&D.c(),d=w(),m=b("tbody");for(let t=0;t<O.length;t+=1)O[t].c();p(n,"class","table text-sm sm"),p(e,"class","relative w-full")},m(r,c){x(r,e,c),h(e,n),h(n,l),h(l,o),$&&$.m(o,null),h(o,i),_&&_.m(o,null),h(o,u);for(let t=0;t<I.length;t+=1)I[t]&&I[t].m(o,null);h(o,a),M&&M.m(o,null),h(l,f),D&&D.m(l,null),h(n,d),h(n,m);for(let t=0;t<O.length;t+=1)O[t]&&O[t].m(m,null);g=!0,v||(y=S(n,"mouseleave",t[83]),v=!0)},p(t,e){if(t[15]?$||($=Ho(),$.c(),$.m(o,i)):$&&($.d(1),$=null),t[16]?_?(_.p(t,e),65536&e[0]&&s(_,1)):(_=Zo(t),_.c(),s(_,1),_.m(o,u)):_&&(k(),c(_,1,1,()=>{_=null}),z()),24&e[0]|8320&e[1]){let n;for(j=Z(t[38]),n=0;n<j.length;n+=1){const l=yo(t,j,n);I[n]?(I[n].p(l,e),s(I[n],1)):(I[n]=Wo(l),I[n].c(),s(I[n],1),I[n].m(o,a))}for(k(),n=j.length;n<I.length;n+=1)A(n);z()}if(t[37]?M?(M.p(t,e),64&e[1]&&s(M,1)):(M=Jo(t),M.c(),s(M,1),M.m(o,null)):M&&(k(),c(M,1,1,()=>{M=null}),z()),!t[13]&&t[28]&&t[0]?D?(D.p(t,e),268443649&e[0]&&s(D,1)):(D=qo(t),D.c(),s(D,1),D.m(l,null)):D&&(k(),c(D,1,1,()=>{D=null}),z()),1729223268&e[0]|3956989&e[1]|134217728&e[2]){let n;for(B=Z(t[2]),n=0;n<B.length;n+=1){const l=po(t,B,n);O[n]?(O[n].p(l,e),s(O[n],1)):(O[n]=wi(l),O[n].c(),s(O[n],1),O[n].m(m,null))}for(k(),n=B.length;n<O.length;n+=1)E(n);z()}},i(t){if(!g){s(_);for(let t=0;t<j.length;t+=1)s(I[t]);s(M),s(D);for(let t=0;t<B.length;t+=1)s(O[t]);g=!0}},o(t){c(_),I=I.filter(Boolean);for(let t=0;t<I.length;t+=1)c(I[t]);c(M),c(D),O=O.filter(Boolean);for(let t=0;t<O.length;t+=1)c(O[t]);g=!1},d(t){t&&r(e),$&&$.d(),_&&_.d(),V(I,t),M&&M.d(),D&&D.d(),V(O,t),v=!1,y()}}}function Xo(t){let e;const n=t[59].grid,l=i(n,t,t[89],ko),o=l||function(){let t;return{c(){t=b("div"),t.textContent="mostra la griglia"},m(e,n){x(e,t,n)},p:y,d(e){e&&r(t)}}}();return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||134217728&o[2])&&a(l,n,t,t[89],e?d(n,t[89],o,$o):f(t[89]),ko)},i(t){e||(s(o,t),e=!0)},o(t){c(o,t),e=!1},d(t){o&&o.d(t)}}}function Ho(t){let e;return{c(){e=b("th"),p(e,"class","w-5")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function Zo(t){let e,n,l;return n=new cn({props:{tooltip:"seleziona righe",$$slots:{default:[Vo]},$$scope:{ctx:t}}}),{c(){e=b("th"),F(n.$$.fragment),p(e,"class","w-6")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};134217728&e[2]&&(l.$$scope={dirty:e,ctx:t}),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Vo(t){let e,n;return e=new Xn({props:{checkbox:!0,xs:!0}}),e.$on("click",t[69]),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Yo(t){let e,n=("."==t[104]?.des?"":t[104]?.des||t[104]?.cod||"")+"";return{c(){e=g(n)},m(t,n){x(t,e,n)},p(t,l){128&l[1]&&n!==(n=("."==t[104]?.des?"":t[104]?.des||t[104]?.cod||"")+"")&&u(e,n)},d(t){t&&r(e)}}}function Uo(t){let e;return{c(){e=b("div"),e.textContent="⇳",p(e,"class","absolute left-0 inset-y-0 text-sm text-c-200")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function Wo(t){let e,n,l,o,i,u,a;l=new cn({props:{tooltip:t[104].tooltip,$$slots:{default:[Yo]},$$scope:{ctx:t}}});let f=t[104].sort&&Uo();function d(){return t[70](t[104])}return{c(){e=b("th"),n=b("div"),F(l.$$.fragment),o=w(),f&&f.c(),p(n,"class","relative"),m(n,"pl-2",t[104].sort),m(e,"selected",t[104].cod==t[3])},m(t,r){x(t,e,r),h(e,n),O(l,n,null),h(n,o),f&&f.m(n,null),i=!0,u||(a=S(e,"click",d),u=!0)},p(o,r){t=o;const c={};128&r[1]&&(c.tooltip=t[104].tooltip),128&r[1]|134217728&r[2]&&(c.$$scope={dirty:r,ctx:t}),l.$set(c),t[104].sort?f||(f=Uo(),f.c(),f.m(n,null)):f&&(f.d(1),f=null),(!i||128&r[1])&&m(n,"pl-2",t[104].sort),(!i||8&r[0]|128&r[1])&&m(e,"selected",t[104].cod==t[3])},i(t){i||(s(l.$$.fragment,t),i=!0)},o(t){c(l.$$.fragment,t),i=!1},d(t){t&&r(e),B(l),f&&f.d(),u=!1,a()}}}function Jo(t){let e,n,l,o;return n=new En({props:{id:"azioni"}}),{c(){e=b("th"),F(n.$$.fragment),p(e,"style",l=`width: ${1.75*t[36]+.5}rem;`)},m(t,l){x(t,e,l),O(n,e,null),o=!0},p(t,n){(!o||32&n[1]&&l!==(l=`width: ${1.75*t[36]+.5}rem;`))&&p(e,"style",l)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),B(n)}}}function qo(t){let e,n,l,o,i,u,a,f,d=t[15]&&Go(),m=t[16]&&Ko(),g=Z(t[38]),v=[];for(let e=0;e<g.length;e+=1)v[e]=ti(vo(t,g,e));const y=t=>c(v[t],1,1,()=>{v[t]=null});return a=new dn({props:{size:6,tooltip:"Filtra",img:"view_column"}}),a.$on("click",t[73]),{c(){e=b("tr"),d&&d.c(),n=w(),m&&m.c(),l=w();for(let t=0;t<v.length;t+=1)v[t].c();o=w(),i=b("td"),u=b("div"),F(a.$$.fragment),p(u,"class","flex flex-row w-full mt-1 px-2 space-x-1 justify-end")},m(t,r){x(t,e,r),d&&d.m(e,null),h(e,n),m&&m.m(e,null),h(e,l);for(let t=0;t<v.length;t+=1)v[t]&&v[t].m(e,null);h(e,o),h(e,i),h(i,u),O(a,u,null),f=!0},p(t,i){if(t[15]?d||(d=Go(),d.c(),d.m(e,n)):d&&(d.d(1),d=null),t[16]?m||(m=Ko(),m.c(),m.m(e,l)):m&&(m.d(1),m=null),1&i[0]|8320&i[1]){let n;for(g=Z(t[38]),n=0;n<g.length;n+=1){const l=vo(t,g,n);v[n]?(v[n].p(l,i),s(v[n],1)):(v[n]=ti(l),v[n].c(),s(v[n],1),v[n].m(e,o))}for(k(),n=g.length;n<v.length;n+=1)y(n);z()}},i(t){if(!f){for(let t=0;t<g.length;t+=1)s(v[t]);s(a.$$.fragment,t),f=!0}},o(t){v=v.filter(Boolean);for(let t=0;t<v.length;t+=1)c(v[t]);c(a.$$.fragment,t),f=!1},d(t){t&&r(e),d&&d.d(),m&&m.d(),V(v,t),B(a)}}}function Go(t){let e;return{c(){e=b("th"),p(e,"class","w-5")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function Ko(t){let e;return{c(){e=b("th"),e.innerHTML="",p(e,"class","w-6")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function Qo(t){let e,n,l;function o(e){t[71](e,t[104])}let i={class:"w-10",autosize:"10-80",sm:!0,readonly:!t[104].visible,type:"text"};return void 0!==t[0][t[104]?.cod]&&(i.value=t[0][t[104]?.cod]),e=new Zl({props:i}),_.push(()=>Y(e,"value",o)),e.$on("click",t[72]),{c(){F(e.$$.fragment)},m(t,n){O(e,t,n),l=!0},p(l,o){t=l;const i={};128&o[1]&&(i.readonly=!t[104].visible),!n&&1&o[0]|128&o[1]&&(n=!0,i.value=t[0][t[104]?.cod],U(()=>n=!1)),e.$set(i)},i(t){l||(s(e.$$.fragment,t),l=!0)},o(t){c(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function ti(t){let e,n,l=t[104].sort&&!["date","datetime","time","perc","euro","int","float"].includes((t[104].type||"").split("|")[0]),o=l&&Qo(t);return{c(){e=b("td"),o&&o.c()},m(t,l){x(t,e,l),o&&o.m(e,null),n=!0},p(t,n){128&n[1]&&(l=t[104].sort&&!["date","datetime","time","perc","euro","int","float"].includes((t[104].type||"").split("|")[0])),l?o?(o.p(t,n),128&n[1]&&s(o,1)):(o=Qo(t),o.c(),s(o,1),o.m(e,null)):o&&(k(),c(o,1,1,()=>{o=null}),z())},i(t){n||(s(o),n=!0)},o(t){c(o),n=!1},d(t){t&&r(e),o&&o.d()}}}function ei(t){let e,n,l,o,i,u;function a(...e){return t[74](t[106],...e)}return l=new yt({props:{size:6,img:"drag_indicator"}}),{c(){e=b("td"),n=b("button"),F(l.$$.fragment),p(n,"class","cursor-pointer"),p(e,"class","w-5 h-8 relative")},m(t,r){x(t,e,r),h(e,n),O(l,n,null),o=!0,i||(u=S(n,"mousedown",a),i=!0)},p(e,n){t=e},i(t){o||(s(l.$$.fragment,t),o=!0)},o(t){c(l.$$.fragment,t),o=!1},d(t){t&&r(e),B(l),i=!1,u()}}}function ni(t){let e,n,l,o;function i(e){t[75](e,t[107])}let u={checkbox:!0,xs:!0};return void 0!==t[107]._sel&&(u.value=t[107]._sel),n=new Xn({props:u}),_.push(()=>Y(n,"value",i)),{c(){e=b("td"),F(n.$$.fragment),p(e,"class","w-5")},m(t,l){x(t,e,l),O(n,e,null),o=!0},p(e,o){t=e;const i={};!l&&4&o[0]&&(l=!0,i.value=t[107]._sel,U(()=>l=!1)),n.$set(i)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),B(n)}}}function li(t){let e,n,l=t[49](t[104],t[107])+"";return{c(){e=b("div"),n=g(l),p(e,"class","px-1")},m(t,l){x(t,e,l),h(e,n)},p(t,e){4&e[0]|128&e[1]&&l!==(l=t[49](t[104],t[107])+"")&&u(n,l)},i:y,o:y,d(t){t&&r(e)}}}function oi(t){let e,n,l,o,i;const u=[si,ci],a=[];function f(t,n){return 4&n[0]|128&n[1]&&(e=null),null==e&&(e=!!t[49](t[104],t[107])),e?0:1}return n=f(t,[-1,-1,-1,-1]),l=a[n]=u[n](t),{c(){l.c(),o=$()},m(t,e){a[n].m(t,e),x(t,o,e),i=!0},p(t,e){let i=n;n=f(t,e),n!==i&&(k(),c(a[i],1,1,()=>{a[i]=null}),z(),l=a[n],l||(l=a[n]=u[n](t),l.c()),s(l,1),l.m(o.parentNode,o))},i(t){i||(s(l),i=!0)},o(t){c(l),i=!1},d(t){t&&r(o),a[n].d(t)}}}function ii(t){let e,n=t[49](t[104],t[107])+"";return{c(){e=b("div"),p(e,"class","px-1")},m(t,l){x(t,e,l),e.innerHTML=n},p(t,l){4&l[0]|128&l[1]&&n!==(n=t[49](t[104],t[107])+"")&&(e.innerHTML=n)},i:y,o:y,d(t){t&&r(e)}}}function ri(t){let e;const n=t[59].row,l=i(n,t,t[89],wo),o=l||function(t){let e,n,l=t[104].type+"";return{c(){e=b("div"),n=g(l),p(e,"class","bg-c-warning px-1")},m(t,l){x(t,e,l),h(e,n)},p(t,e){128&e[1]&&l!==(l=t[104].type+"")&&u(n,l)},d(t){t&&r(e)}}}(t);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,i){l?l.p&&(!e||4&i[0]|128&i[1]|134217728&i[2])&&a(l,n,t,t[89],e?d(n,t[89],i,go):f(t[89]),wo):o&&o.p&&(!e||128&i[1])&&o.p(t,e?i:[-1,-1,-1,-1])},i(t){e||(s(o,t),e=!0)},o(t){c(o,t),e=!1},d(t){o&&o.d(t)}}}function ci(t){let e,n;return e=new yt({props:{img:"do_not_disturb_on",color:"text-c-danger",size:6}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function si(t){let e,n;return e=new yt({props:{img:"check_circle",color:"text-c-success",size:6}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function ui(t){let e,n,l,o,i,u,a,f,d;const m=[ri,ii,oi,li],g=[];function w(t,e){return 128&e[1]&&(l=null),128&e[1]&&(o=null),"."==(t[104].type||"")[0]?0:(null==l&&(l=!("html"!=(t[104].type||"").split("|")[0])),l?1:(null==o&&(o=!("check"!=(t[104].type||"").split("|")[0])),o?2:3))}return i=w(t,[-1,-1,-1,-1]),u=g[i]=m[i](t),{c(){e=b("td"),n=b("div"),u.c(),p(n,"class","flex flex-col"),p(e,"class",a=Ai(t[104])),p(e,"data-name",f=t[104]?.des||t[104]?.cod||"")},m(t,l){x(t,e,l),h(e,n),g[i].m(n,null),d=!0},p(t,l){let o=i;i=w(t,l),i===o?g[i].p(t,l):(k(),c(g[o],1,1,()=>{g[o]=null}),z(),u=g[i],u?u.p(t,l):(u=g[i]=m[i](t),u.c()),s(u,1),u.m(n,null)),(!d||128&l[1]&&a!==(a=Ai(t[104])))&&p(e,"class",a),(!d||128&l[1]&&f!==(f=t[104]?.des||t[104]?.cod||""))&&p(e,"data-name",f)},i(t){d||(s(u),d=!0)},o(t){c(u),d=!1},d(t){t&&r(e),g[i].d()}}}function ai(t){let e,n,l,o,i,u,a,f=(t[25]||"function"==typeof t[6]&&t[6](t[107],t[106]))&&(!t[12]||!t[107].annulla),d=Z(t[20]),m=[];for(let e=0;e<d.length;e+=1)m[e]=pi(mo(t,d,e));const g=t=>c(m[t],1,1,()=>{m[t]=null});let v=(t[24]||"function"==typeof t[5])&&(!t[12]||!t[107].annulla)&&mi(t),y=f&&bi(t),$=t[35].length&&gi(t);return{c(){e=b("td"),n=b("div");for(let t=0;t<m.length;t+=1)m[t].c();l=w(),v&&v.c(),o=w(),y&&y.c(),i=w(),$&&$.c(),p(n,"class","flex flex-wrap items-center justify-start space-x-1 p-1"),p(n,"style",u=`width: ${1.75*t[36]+.5}rem;`),p(e,"data-name","azioni")},m(t,r){x(t,e,r),h(e,n);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(n,null);h(n,l),v&&v.m(n,null),h(n,o),y&&y.m(n,null),h(n,i),$&&$.m(n,null),a=!0},p(t,e){if(1048580&e[0]|8192&e[1]|134217728&e[2]){let o;for(d=Z(t[20]),o=0;o<d.length;o+=1){const i=mo(t,d,o);m[o]?(m[o].p(i,e),s(m[o],1)):(m[o]=pi(i),m[o].c(),s(m[o],1),m[o].m(n,l))}for(k(),o=d.length;o<m.length;o+=1)g(o);z()}!t[24]&&"function"!=typeof t[5]||t[12]&&t[107].annulla?v&&(k(),c(v,1,1,()=>{v=null}),z()):v?(v.p(t,e),16781348&e[0]&&s(v,1)):(v=mi(t),v.c(),s(v,1),v.m(n,o)),33558596&e[0]&&(f=(t[25]||"function"==typeof t[6]&&t[6](t[107],t[106]))&&(!t[12]||!t[107].annulla)),f?y?(y.p(t,e),33558596&e[0]&&s(y,1)):(y=bi(t),y.c(),s(y,1),y.m(n,i)):y&&(k(),c(y,1,1,()=>{y=null}),z()),t[35].length?$?($.p(t,e),16&e[1]&&s($,1)):($=gi(t),$.c(),s($,1),$.m(n,null)):$&&(k(),c($,1,1,()=>{$=null}),z()),(!a||32&e[1]&&u!==(u=`width: ${1.75*t[36]+.5}rem;`))&&p(n,"style",u)},i(t){if(!a){for(let t=0;t<d.length;t+=1)s(m[t]);s(v),s(y),s($),a=!0}},o(t){m=m.filter(Boolean);for(let t=0;t<m.length;t+=1)c(m[t]);c(v),c(y),c($),a=!1},d(t){t&&r(e),V(m,t),v&&v.d(),y&&y.d(),$&&$.d()}}}function fi(t){let e,n;return e=new dn({props:{size:6,tooltip:t[109].tooltip||"",img:t[109].icon,gray:"gray"==t[109].decor,danger:"danger"==t[109].decor,warning:"warning"==t[109].decor,white:"white"==t[109].decor,black:"black"==t[109].decor}}),e.$on("click",function(){return t[76](t[107],t[106],t[108],t[109])}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(n,l){t=n;const o={};1048576&l[0]&&(o.tooltip=t[109].tooltip||""),1048576&l[0]&&(o.img=t[109].icon),1048576&l[0]&&(o.gray="gray"==t[109].decor),1048576&l[0]&&(o.danger="danger"==t[109].decor),1048576&l[0]&&(o.warning="warning"==t[109].decor),1048576&l[0]&&(o.white="white"==t[109].decor),1048576&l[0]&&(o.black="black"==t[109].decor),e.$set(o)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function di(t){let e;const n=t[59].extra,l=i(n,t,t[89],ho);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||1048580&o[0]|134217728&o[2])&&a(l,n,t,t[89],e?d(n,t[89],o,xo):f(t[89]),ho)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function pi(t){let e,n,l,o;const i=[di,fi],u=[];function a(t,e){return t[109].slot?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function mi(t){let e,n,l,o,i;const u=[hi,xi],a=[];function f(t,n){return 16777252&n[0]&&(e=null),null==e&&(e=!!(t[24]||"function"==typeof t[5]&&t[5](t[107],t[106]))),e?0:1}return n=f(t,[-1,-1,-1,-1]),l=a[n]=u[n](t),{c(){l.c(),o=$()},m(t,e){a[n].m(t,e),x(t,o,e),i=!0},p(t,e){let i=n;n=f(t,e),n===i?a[n].p(t,e):(k(),c(a[i],1,1,()=>{a[i]=null}),z(),l=a[n],l?l.p(t,e):(l=a[n]=u[n](t),l.c()),s(l,1),l.m(o.parentNode,o))},i(t){i||(s(l),i=!0)},o(t){c(l),i=!1},d(t){t&&r(o),a[n].d(t)}}}function xi(t){let e;return{c(){e=b("div"),p(e,"class","w-6 h-6")},m(t,n){x(t,e,n)},p:y,i:y,o:y,d(t){t&&r(e)}}}function hi(t){let e,n;return e=new dn({props:{size:6,img:t[107].annulla?"restore_from_trash":"delete",white:!t[107].annulla,black:t[107].annulla}}),e.$on("click",function(...e){return t[77](t[107],t[106],t[108],...e)}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(n,l){t=n;const o={};4&l[0]&&(o.img=t[107].annulla?"restore_from_trash":"delete"),4&l[0]&&(o.white=!t[107].annulla),4&l[0]&&(o.black=t[107].annulla),e.$set(o)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function bi(t){let e,n;return e=new dn({props:{size:6,img:"edit",base:!0,black:!0}}),e.$on("click",function(...e){return t[78](t[107],t[106],t[108],...e)}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(e,n){t=e},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function gi(t){let e,n;return e=new dn({props:{size:8,white:!0,noborder:!0,img:"more_vert"}}),e.$on("click",function(...e){return t[79](t[107],...e)}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(e,n){t=e},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function wi(t){let e,n,l,o,i,u,a,f,d,g=t[15]&&ei(t),v=t[16]&&ni(t),y=Z(t[38]),$=[];for(let e=0;e<y.length;e+=1)$[e]=ui(bo(t,y,e));const _=t=>c($[t],1,1,()=>{$[t]=null});let I=t[37]&&ai(t);function A(...e){return t[80](t[106],...e)}function M(...e){return t[81](t[106],...e)}function D(...e){return t[82](t[106],t[107],t[108],...e)}return{c(){e=b("tr"),g&&g.c(),n=w(),v&&v.c(),l=w();for(let t=0;t<$.length;t+=1)$[t].c();o=w(),I&&I.c(),i=w(),p(e,"class",u="cursor-pointer text-c-800 hover:text-black hover:bg-c-50 "+("function"==typeof t[14]&&t[14](t[107],t[106])||"")),m(e,"bg-c-100",t[9]&&t[107].annulla),m(e,"text-c-400",t[9]&&t[107].annulla)},m(t,r){x(t,e,r),g&&g.m(e,null),h(e,n),v&&v.m(e,null),h(e,l);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(e,null);h(e,o),I&&I.m(e,null),h(e,i),a=!0,f||(d=[S(e,"mousemove",A),S(e,"mouseup",M),S(e,"click",D)],f=!0)},p(r,f){if((t=r)[15]?g?(g.p(t,f),32768&f[0]&&s(g,1)):(g=ei(t),g.c(),s(g,1),g.m(e,n)):g&&(k(),c(g,1,1,()=>{g=null}),z()),t[16]?v?(v.p(t,f),65536&f[0]&&s(v,1)):(v=ni(t),v.c(),s(v,1),v.m(e,l)):v&&(k(),c(v,1,1,()=>{v=null}),z()),4&f[0]|262272&f[1]|134217728&f[2]){let n;for(y=Z(t[38]),n=0;n<y.length;n+=1){const l=bo(t,y,n);$[n]?($[n].p(l,f),s($[n],1)):($[n]=ui(l),$[n].c(),s($[n],1),$[n].m(e,o))}for(k(),n=y.length;n<$.length;n+=1)_(n);z()}t[37]?I?(I.p(t,f),64&f[1]&&s(I,1)):(I=ai(t),I.c(),s(I,1),I.m(e,i)):I&&(k(),c(I,1,1,()=>{I=null}),z()),(!a||16388&f[0]&&u!==(u="cursor-pointer text-c-800 hover:text-black hover:bg-c-50 "+("function"==typeof t[14]&&t[14](t[107],t[106])||"")))&&p(e,"class",u),(!a||16900&f[0])&&m(e,"bg-c-100",t[9]&&t[107].annulla),(!a||16900&f[0])&&m(e,"text-c-400",t[9]&&t[107].annulla)},i(t){if(!a){s(g),s(v);for(let t=0;t<y.length;t+=1)s($[t]);s(I),a=!0}},o(t){c(g),c(v),$=$.filter(Boolean);for(let t=0;t<$.length;t+=1)c($[t]);c(I),a=!1},d(t){t&&r(e),g&&g.d(),v&&v.d(),V($,t),I&&I.d(),f=!1,j(d)}}}function vi(t){let e,n,l,o,i;function u(e){t[84](e,t[104])}let a={class:"flex-1",trueval:!0,falseval:!1,label:t[104]?.des||t[104]?.cod||""};return void 0!==t[104].visible&&(a.value=t[104].visible),n=new Xn({props:a}),_.push(()=>Y(n,"value",u)),{c(){e=b("div"),F(n.$$.fragment),o=w(),p(e,"class","flex flex-wrap items-center space-x-2 h-10")},m(t,l){x(t,e,l),O(n,e,null),h(e,o),i=!0},p(e,o){t=e;const i={};8388608&o[0]&&(i.label=t[104]?.des||t[104]?.cod||""),!l&&8388608&o[0]&&(l=!0,i.value=t[104].visible,U(()=>l=!1)),n.$set(i)},i(t){i||(s(n.$$.fragment,t),i=!0)},o(t){c(n.$$.fragment,t),i=!1},d(t){t&&r(e),B(n)}}}function yi(t){let e,n;return e=new kn({props:{alt:!0,$$slots:{default:[$i]},$$scope:{ctx:t}}}),e.$on("click",t[85]),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};134217728&n[2]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function $i(t){let e;return{c(){e=g("Reset filtri")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function ki(t){let e,n;return e=new En({props:{id:"Salva e chiudi"}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function zi(t){let e,n,l,o,i,u,a,f,d=Z(t[23]),m=[];for(let e=0;e<d.length;e+=1)m[e]=vi(fo(t,d,e));const g=t=>c(m[t],1,1,()=>{m[t]=null});let v=t[0]&&yi(t);return a=new kn({props:{primary:!0,$$slots:{default:[ki]},$$scope:{ctx:t}}}),a.$on("click",t[48]),{c(){e=b("div");for(let t=0;t<m.length;t+=1)m[t].c();n=w(),l=b("div"),v&&v.c(),o=w(),i=b("div"),u=w(),F(a.$$.fragment),p(e,"class","grid grid-cols-2 p-4 gap-x-2"),p(i,"class","flex-1"),p(l,"class","flex flex-wrap space-x-2 p-3")},m(t,r){x(t,e,r);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(e,null);x(t,n,r),x(t,l,r),v&&v.m(l,null),h(l,o),h(l,i),h(l,u),O(a,l,null),f=!0},p(t,n){if(8388608&n[0]){let l;for(d=Z(t[23]),l=0;l<d.length;l+=1){const o=fo(t,d,l);m[l]?(m[l].p(o,n),s(m[l],1)):(m[l]=vi(o),m[l].c(),s(m[l],1),m[l].m(e,null))}for(k(),l=d.length;l<m.length;l+=1)g(l);z()}t[0]?v?(v.p(t,n),1&n[0]&&s(v,1)):(v=yi(t),v.c(),s(v,1),v.m(l,o)):v&&(k(),c(v,1,1,()=>{v=null}),z());const i={};134217728&n[2]&&(i.$$scope={dirty:n,ctx:t}),a.$set(i)},i(t){if(!f){for(let t=0;t<d.length;t+=1)s(m[t]);s(v),s(a.$$.fragment,t),f=!0}},o(t){m=m.filter(Boolean);for(let t=0;t<m.length;t+=1)c(m[t]);c(v),c(a.$$.fragment,t),f=!1},d(t){t&&(r(e),r(n),r(l)),V(m,t),v&&v.d(),B(a)}}}function _i(t){let e,n;return e=new yt({props:{size:6,img:t[101].icon}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};16&n[1]&&(l.img=t[101].icon),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function ji(t){let e,n,l,o,i,a,f,d,m,v=(t[101].des||"")+"",y=t[101].icon&&_i(t);function $(){return t[87](t[101])}return{c(){e=b("button"),n=b("div"),y&&y.c(),l=w(),o=b("div"),i=g(v),a=w(),p(n,"class","w-8"),p(o,"class","flex-1 text-left"),p(e,"class","flex flex-row space-x-2 items-center hover:bg-c-50 px-1 py-0.5 rounded")},m(t,r){x(t,e,r),h(e,n),y&&y.m(n,null),h(e,l),h(e,o),h(o,i),h(e,a),f=!0,d||(m=S(e,"click",$),d=!0)},p(e,l){(t=e)[101].icon?y?(y.p(t,l),16&l[1]&&s(y,1)):(y=_i(t),y.c(),s(y,1),y.m(n,null)):y&&(k(),c(y,1,1,()=>{y=null}),z()),(!f||16&l[1])&&v!==(v=(t[101].des||"")+"")&&u(i,v)},i(t){f||(s(y),f=!0)},o(t){c(y),f=!1},d(t){t&&r(e),y&&y.d(),d=!1,m()}}}function Si(t){let e,n,l,o,i;l=new dn({props:{img:"close",mat:!0,size:4}}),l.$on("click",t[86]);let u=Z(t[35]),a=[];for(let e=0;e<u.length;e+=1)a[e]=ji(ao(t,u,e));const f=t=>c(a[t],1,1,()=>{a[t]=null});return{c(){e=b("div"),n=b("div"),F(l.$$.fragment),o=w();for(let t=0;t<a.length;t+=1)a[t].c();p(n,"class","absolute top-1 right-1"),p(e,"class","z-100 w-64 border rounded shadow border-c-border bg-whiterelative p-2 flex flex-col space-y-2 py-2")},m(t,r){x(t,e,r),h(e,n),O(l,n,null),h(e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);i=!0},p(t,n){if(1610612736&n[0]|8209&n[1]){let l;for(u=Z(t[35]),l=0;l<u.length;l+=1){const o=ao(t,u,l);a[l]?(a[l].p(o,n),s(a[l],1)):(a[l]=ji(o),a[l].c(),s(a[l],1),a[l].m(e,null))}for(k(),l=u.length;l<a.length;l+=1)f(l);z()}},i(t){if(!i){s(l.$$.fragment,t);for(let t=0;t<u.length;t+=1)s(a[t]);i=!0}},o(t){c(l.$$.fragment,t),a=a.filter(Boolean);for(let t=0;t<a.length;t+=1)c(a[t]);i=!1},d(t){t&&r(e),B(l),V(a,t)}}}function Ii(t){let e,n,l,o,i=t[40]&&Mo(t);return{c(){i&&i.c(),e=$()},m(r,c){i&&i.m(r,c),x(r,e,c),n=!0,l||(o=S(window,"keydown",t[46]),l=!0)},p(t,n){t[40]?i?(i.p(t,n),512&n[1]&&s(i,1)):(i=Mo(t),i.c(),s(i,1),i.m(e.parentNode,e)):i&&(k(),c(i,1,1,()=>{i=null}),z())},i(t){n||(s(i),n=!0)},o(t){c(i),n=!1},d(t){t&&r(e),i&&i.d(t),l=!1,o()}}}function Ai(t){let[e,n]=(t.type||"").split("|");switch(n=n||"",e){case"date":case"datetime":case"time":return`text-center ${n}`;case"check":return`text-left text-xl ${n}`;case"number":case"float":case"float1":case"float2":case"float3":case"float4":case"real":case"int":case"euro":case"perc":return`text-right mr-1 ${n}`;default:return`text-left ${n}`}}function Mi(t,e,n){let i,r,c,s,u,a,f,d,p,{$$slots:m={},$$scope:x}=e;const{bus:h,user:b,post:g,_:w,setStorage:v,getStorage:y,strDate:$,toEuro:k}=kt();R(t,b,t=>n(41,p=t));const z=G();let _,j,S,I,A,M,D,B,{authdel:O,auth:E,authedit:T,authadd:F,menu:C,nosearch:P=!1,noheader:N=!1,annullati:L=!1,tooltip:X="",lockrows:H=!1,cannotrestore:Z=!1,nofilter:V=!1,checkcampi:Y,classrow:U,ismove:W=!1,isselect:Q=!1,filtri:tt,isclipboard:et=!1,isexport:nt=!1,isimport:lt=!1,isgrid:ot=!1,extrabtn:it=[],value:rt=[]}=e,{campi:ct,name:st,ordina:ut=!1,desc:at=!1,title:ft="tabella"}=e,dt=[],pt=-1,mt="",xt=!1,ht=!1;function bt(t,e){if(t>=0&&t<rt.length&&t!=e&&e>=0&&e<rt.length){var l=rt.splice(t,1)[0];rt.splice(e,0,l),n(2,rt=[...rt]),z("move",rt),n(26,pt=e)}}function gt(t){Array.isArray(rt)&&(rt.forEach(e=>e._sel=t.value),n(2,rt=[...rt]))}async function wt(){z("more")}function vt(t,e){t.stopPropagation(),n(33,I=!0),A=t.x,M=t.y,n(34,B=e),D=t.target}function yt(){D&&(D.style="transform : translate(0px, 0px);\n z-index:0 ; background-color: transparent"),n(33,I=!1),A=0,M=0,D=void 0}function $t(t,e){D&&I&&(D.style=`transform : translate(${t.x-A+20}px, ${t.y-M}px);\n z-index:-10 ; background-color: aliceblue`)}J(async()=>{h.on("scrollbottom",wt)}),K(()=>{h.off("scrollbottom",wt)});return t.$$set=t=>{n(53,e=l(l({},e),o(t))),"authdel"in t&&n(5,O=t.authdel),"auth"in t&&n(54,E=t.auth),"authedit"in t&&n(6,T=t.authedit),"authadd"in t&&n(55,F=t.authadd),"menu"in t&&n(56,C=t.menu),"nosearch"in t&&n(7,P=t.nosearch),"noheader"in t&&n(8,N=t.noheader),"annullati"in t&&n(9,L=t.annullati),"tooltip"in t&&n(10,X=t.tooltip),"lockrows"in t&&n(11,H=t.lockrows),"cannotrestore"in t&&n(12,Z=t.cannotrestore),"nofilter"in t&&n(13,V=t.nofilter),"checkcampi"in t&&n(57,Y=t.checkcampi),"classrow"in t&&n(14,U=t.classrow),"ismove"in t&&n(15,W=t.ismove),"isselect"in t&&n(16,Q=t.isselect),"filtri"in t&&n(0,tt=t.filtri),"isclipboard"in t&&n(17,et=t.isclipboard),"isexport"in t&&n(18,nt=t.isexport),"isimport"in t&&n(19,lt=t.isimport),"isgrid"in t&&n(1,ot=t.isgrid),"extrabtn"in t&&n(20,it=t.extrabtn),"value"in t&&n(2,rt=t.value),"campi"in t&&n(58,ct=t.campi),"name"in t&&n(21,st=t.name),"ordina"in t&&n(3,ut=t.ordina),"desc"in t&&n(4,at=t.desc),"title"in t&&n(22,ft=t.title),"$$scope"in t&&n(89,x=t.$$scope)},t.$$.update=()=>{8388608&t.$$.dirty[1]&&n(40,i=g.isauth(E)),32&t.$$.dirty[0]&&n(24,r="function"!=typeof O&&g.isauth(O)),16777216&t.$$.dirty[1]&&n(39,c=g.isauth(F)),64&t.$$.dirty[0]&&n(25,s="function"!=typeof T&&g.isauth(T)),201326592&t.$$.dirty[1]&&function(t){let e;if(n(23,dt=t),st){var l=y(`fields_${st}_${p.id}`);if(l&&l.length>0)for(e of dt)e.visible=l.includes(e.cod)}if(dt&&dt.length>0)for(e of dt)Y&&Y(e)}(ct),8388608&t.$$.dirty[0]&&n(38,u=(dt||[]).filter(t=>t.visible)),51380320&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(37,a=C||r||"function"==typeof O||s||"function"==typeof T||it.length),51380320&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(36,f=(C?1:0)+it.length+(s||"function"==typeof T?1:0)+(r||"function"==typeof O?1:0)),33554432&t.$$.dirty[1]&&n(35,d=C?(C()||[]).filter(t=>g.isauth(t.auth)):[])},e=o(e),[tt,ot,rt,ut,at,O,T,P,N,L,X,H,Z,V,U,W,Q,et,nt,lt,it,st,ft,dt,r,s,pt,mt,xt,_,j,S,ht,I,B,d,f,a,u,c,i,p,b,v,z,bt,function(t){if("Escape"==t.key&&yt(),W&&t.metaKey&&("ArrowDown"===t.key||"ArrowUp"==t.key)&&pt>=0&&pt<rt.length){let e;t.stopPropagation(),t.preventDefault(),"ArrowDown"==t.key?pt<rt.length-1&&(e=rt[pt],n(2,rt[pt]=rt[pt+1],rt),n(2,rt[pt+1]=e,rt),n(26,pt++,pt),n(2,rt=[...rt]),z("move")):pt>0&&(e=rt[pt],n(2,rt[pt]=rt[pt-1],rt),n(2,rt[pt-1]=e,rt),n(26,pt--,pt),n(2,rt=[...rt]),z("move"))}},gt,function(){if(n(32,ht=!1),st){var t=[];for(var e of dt)e.visible&&t.push(e.cod);tt&&z("filtra"),v(`fields_${st}_${p.id}`,t)}},function(t,e){var n=e[t.cod];if(n){"object"==typeof n&&(n=n.cod||n.des||"");let e=(t.type||"").split("|")[0];if("date"==e)n=$(n,"ggmmaaaa");else if("datetime"==e)n=$(n,"datetime");else if("time"==e)n=$(n,"hhmm");else if("perc"==e){var l=parseFloat(n);l<1&&(l*=100),n=l?l.toFixed(2)+"%":""}else"euro"==e?n=k(n):"int"==e?n=parseInt(n)||"":"float"==e||"float2"==e?n=(parseFloat(n)||0).toFixed(2):"float1"==e?n=(parseFloat(n)||0).toFixed(1):"float3"==e?n=(parseFloat(n)||0).toFixed(3):"float4"==e&&(n=(parseFloat(n)||0).toFixed(4))}return n||""},vt,yt,$t,e,E,F,C,Y,ct,m,()=>n(1,ot=1==ot?2:1),function(t){mt=t,n(27,mt)},()=>{z("cercai",mt)},()=>{z("cerca",mt)},()=>z("clipboard"),()=>z("export"),()=>z("import"),()=>{xt&&tt&&Object.keys(tt).length&&(n(0,tt={}),z("filtra")),n(28,xt=!xt)},t=>{z("add",t.detail)},t=>gt(t.detail),t=>{t.sort&&(n(4,at=ut==t.cod&&!at),n(3,ut=t.cod),z("ordina",{ordina:ut,desc:at}))},function(e,l){t.$$.not_equal(tt[l?.cod],e)&&(tt[l?.cod]=e,n(0,tt))},()=>{z("filtra")},()=>{n(32,ht=!0)},(t,e)=>vt(e,t),function(e,l){t.$$.not_equal(l._sel,e)&&(l._sel=e,n(2,rt))},(t,e,l,o)=>{n(2,l[e].u=e,rt),z(o.cod,t)},(t,e,l,o)=>{n(2,l[e].u=e,rt),z("xdelete",{x:t,e:o.detail,row:e}),z("delete",t)},(t,e,l,o)=>{n(2,l[e].u=e,rt),z("xedit",{x:t,row:e,e:o.detail}),z("edit",t)},(t,e)=>{n(29,_=e.detail),n(31,S=t),n(30,j=!0)},(t,e)=>$t(e),(t,e)=>{I&&bt(B,t),yt()},(t,e,l,o)=>{pt!=t||W?n(26,pt=t):H||("function"==typeof T?T(e,t)&&(n(2,l[t].u=t,rt),z("xedit",{x:e,row:t,e:o.target}),z("edit",e)):s&&(n(2,l[t].u=t,rt),z("xedit",{x:e,row:t,e:o.target}),z("edit",e)))},()=>{yt()},function(e,l){t.$$.not_equal(l.visible,e)&&(l.visible=e,n(23,dt))},()=>{n(0,tt={}),v(`fields_${st}_${p.id}`),n(32,ht=!1)},()=>n(30,j=!1),async t=>{n(30,j=!1),await q(),z(t.cod||t.des,{x:S,e:_})},function(t){j=t,n(30,j)},x]}class Di extends t{constructor(t){super(),e(this,t,Mi,Ii,n,{authdel:5,auth:54,authedit:6,authadd:55,menu:56,nosearch:7,noheader:8,annullati:9,tooltip:10,lockrows:11,cannotrestore:12,nofilter:13,checkcampi:57,classrow:14,ismove:15,isselect:16,filtri:0,isclipboard:17,isexport:18,isimport:19,isgrid:1,extrabtn:20,value:2,campi:58,name:21,ordina:3,desc:4,title:22},null,[-1,-1,-1,-1])}}const Bi=t=>({}),Oi=t=>({}),Ei=t=>({}),Ti=t=>({});function Fi(t){let e,n,l,o,i,u;n=new cn({props:{tooltip:t[5],$$slots:{default:[Ri]},$$scope:{ctx:t}}});let a=t[9]&&Ni(t);return{c(){e=b("div"),F(n.$$.fragment),l=w(),o=b("div"),a&&a.c(),p(e,"class",i="w-full relative "+(t[12].class||""))},m(i,r){x(i,e,r),O(n,e,null),h(e,l),h(e,o),a&&a.m(o,null),t[16](o),u=!0},p(t,l){const r={};32&l&&(r.tooltip=t[5]),131807&l&&(r.$$scope={dirty:l,ctx:t}),n.$set(r),t[9]?a?(a.p(t,l),512&l&&s(a,1)):(a=Ni(t),a.c(),s(a,1),a.m(o,null)):a&&(k(),c(a,1,1,()=>{a=null}),z()),(!u||4096&l&&i!==(i="w-full relative "+(t[12].class||"")))&&p(e,"class",i)},i(t){u||(s(n.$$.fragment,t),s(a),u=!0)},o(t){c(n.$$.fragment,t),c(a),u=!1},d(l){l&&r(e),B(n),a&&a.d(),t[16](null)}}}function Ci(t){let e;const n=t[14].btn,l=i(n,t,t[17],Oi);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||131072&o)&&a(l,n,t,t[17],e?d(n,t[17],o,Bi):f(t[17]),Oi)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function Pi(t){let e,n;return e=new yt({props:{img:t[9]?"expand_less":"expand_more",size:6}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};512&n&&(l.img=t[9]?"expand_less":"expand_more"),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Ri(t){let e,n,l,o,u,m,g;const v=t[14].title,y=i(v,t,t[17],Ti),$=y||function(t){let e,n,l;return n=new En({props:{id:t[1]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","flex-1 pl-2 font-bold")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};2&e&&(l.id=t[1]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}(t);let _=(!t[3]&&!t[4]||t[9])&&Ci(t),j=(t[3]||t[4])&&Pi(t);return{c(){e=b("button"),$&&$.c(),n=w(),_&&_.c(),l=w(),j&&j.c(),p(e,"class",o=(t[2]?"titolot":"titolo")+" text-left w-full mb-1")},m(o,i){x(o,e,i),$&&$.m(e,null),h(e,n),_&&_.m(e,null),h(e,l),j&&j.m(e,null),u=!0,m||(g=S(e,"click",t[15]),m=!0)},p(t,n){y?y.p&&(!u||131072&n)&&a(y,v,t,t[17],u?d(v,t[17],n,Ei):f(t[17]),Ti):$&&$.p&&(!u||2&n)&&$.p(t,u?n:-1),!t[3]&&!t[4]||t[9]?_?(_.p(t,n),536&n&&s(_,1)):(_=Ci(t),_.c(),s(_,1),_.m(e,l)):_&&(k(),c(_,1,1,()=>{_=null}),z()),t[3]||t[4]?j?(j.p(t,n),24&n&&s(j,1)):(j=Pi(t),j.c(),s(j,1),j.m(e,null)):j&&(k(),c(j,1,1,()=>{j=null}),z()),(!u||4&n&&o!==(o=(t[2]?"titolot":"titolo")+" text-left w-full mb-1"))&&p(e,"class",o)},i(t){u||(s($,t),s(_),s(j),u=!0)},o(t){c($,t),c(_),c(j),u=!1},d(t){t&&r(e),$&&$.d(t),_&&_.d(),j&&j.d(),m=!1,g()}}}function Ni(t){let e,n;const l=t[14].default,o=i(l,t,t[17],null),u=o||function(){let t;return{c(){t=g("Impostare il contenuto qui")},m(e,n){x(e,t,n)},d(e){e&&r(t)}}}();return{c(){e=b("div"),u&&u.c()},m(t,l){x(t,e,l),u&&u.m(e,null),n=!0},p(t,e){o&&o.p&&(!n||131072&e)&&a(o,l,t,t[17],n?d(l,t[17],e,null):f(t[17]),null)},i(t){n||(s(u,t),n=!0)},o(t){c(u,t),n=!1},d(t){t&&r(e),u&&u.d(t)}}}function Li(t){let e,n,l=t[8]&&Fi(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[8]?l?(l.p(t,n),256&n&&s(l,1)):(l=Fi(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function Xi(t,e,n){let i,r,{$$slots:c={},$$scope:s}=e;const{_:u,P:a,autofocus:f}=kt(),d=G();let p,m=!0,{auth:x="",title:h="",transparent:b=!1,canclose:g=!1,click:w=!1,tooltip:v=!1,closed:y=!1}=e;return t.$$set=t=>{n(12,e=l(l({},e),o(t))),"auth"in t&&n(13,x=t.auth),"title"in t&&n(1,h=t.title),"transparent"in t&&n(2,b=t.transparent),"canclose"in t&&n(3,g=t.canclose),"click"in t&&n(4,w=t.click),"tooltip"in t&&n(5,v=t.tooltip),"closed"in t&&n(0,y=t.closed),"$$scope"in t&&n(17,s=t.$$scope)},t.$$.update=()=>{81&t.$$.dirty&&n(9,i=w?!y:y?!m:m),8192&t.$$.dirty&&n(8,r=!x||a.isauth(x))},e=o(e),[y,h,b,g,w,v,m,p,r,i,f,d,e,x,c,()=>{(g||w)&&(i||f(!0,p,200),w?d("click"):g?n(6,m=!m):(n(0,y=!y),d("click",y)))},function(t){_[t?"unshift":"push"](()=>{p=t,n(7,p)})},s]}class Hi extends t{constructor(t){super(),e(this,t,Xi,Li,n,{auth:13,title:1,transparent:2,canclose:3,click:4,tooltip:5,closed:0})}}function Zi(t,e,n){const l=t.slice();return l[23]=e[n],l[25]=n,l}function Vi(t,e,n){const l=t.slice();return l[23]=e[n],l[25]=n,l}function Yi(t){let e,n,l;return n=new En({props:{id:t[1]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","label pt-1 h-6")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};2&e&&(l.id=t[1]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Ui(t){let e,n,l,o,i=t[1]&&(t[2]||t[5])&&Ji(t),u=Z(t[7]),a=[];for(let e=0;e<u.length;e+=1)a[e]=Ki(Zi(t,u,e));const f=t=>c(a[t],1,1,()=>{a[t]=null});return{c(){e=b("div"),i&&i.c(),n=w(),l=b("div");for(let t=0;t<a.length;t+=1)a[t].c();p(l,"class","flexrow items-center cursor-pointer text-sm"),p(e,"class","flexrow space-x-1 items-center overflow-x-hidden"),m(e,"mt-2",t[2])},m(t,r){x(t,e,r),i&&i.m(e,null),h(e,n),h(e,l);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(l,null);o=!0},p(t,r){if(t[1]&&(t[2]||t[5])?i?(i.p(t,r),38&r&&s(i,1)):(i=Ji(t),i.c(),s(i,1),i.m(e,n)):i&&(k(),c(i,1,1,()=>{i=null}),z()),3777&r){let e;for(u=Z(t[7]),e=0;e<u.length;e+=1){const n=Zi(t,u,e);a[e]?(a[e].p(n,r),s(a[e],1)):(a[e]=Ki(n),a[e].c(),s(a[e],1),a[e].m(l,null))}for(k(),e=u.length;e<a.length;e+=1)f(e);z()}(!o||4&r)&&m(e,"mt-2",t[2])},i(t){if(!o){s(i);for(let t=0;t<u.length;t+=1)s(a[t]);o=!0}},o(t){c(i),a=a.filter(Boolean);for(let t=0;t<a.length;t+=1)c(a[t]);o=!1},d(t){t&&r(e),i&&i.d(),V(a,t)}}}function Wi(t){let e,n,l=Z(t[7]),o=[];for(let e=0;e<l.length;e+=1)o[e]=er(Vi(t,l,e));const i=t=>c(o[t],1,1,()=>{o[t]=null});return{c(){e=b("div");for(let t=0;t<o.length;t+=1)o[t].c();p(e,"class","flex flex-col w-full items-center cursor-pointer text-sm")},m(t,l){x(t,e,l);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);n=!0},p(t,n){if(3777&n){let r;for(l=Z(t[7]),r=0;r<l.length;r+=1){const i=Vi(t,l,r);o[r]?(o[r].p(i,n),s(o[r],1)):(o[r]=er(i),o[r].c(),s(o[r],1),o[r].m(e,null))}for(k(),r=l.length;r<o.length;r+=1)i(r);z()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)s(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)c(o[t]);n=!1},d(t){t&&r(e),V(o,t)}}}function Ji(t){let e,n,l,o;return n=new En({props:{id:t[1]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","label leading-none text-right pr-2"),p(e,"style",l=`width: ${t[8]}%;`)},m(t,l){x(t,e,l),O(n,e,null),o=!0},p(t,i){const r={};2&i&&(r.id=t[1]),n.$set(r),(!o||256&i&&l!==(l=`width: ${t[8]}%;`))&&p(e,"style",l)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),B(n)}}}function qi(t){let e,n=t[10](t[25],t[7],t[0])+"";return{c(){e=g(n)},m(t,n){x(t,e,n)},p(t,l){129&l&&n!==(n=t[10](t[25],t[7],t[0])+"")&&u(e,n)},i:y,o:y,d(t){t&&r(e)}}}function Gi(t){let e,n;return e=new yt({props:{size:6,img:t[23].img}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};128&n&&(l.img=t[23].img),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Ki(t){let e,n,l,o,i,u,a,f;const d=[Gi,qi],m=[];function g(t,e){return t[23].img?0:1}function v(){return t[18](t[23])}return n=g(t),l=m[n]=d[n](t),{c(){e=b("button"),l.c(),o=w(),p(e,"name",`imulti${t[25]}`),p(e,"class",i=t[11](t[25],t[7],t[0]))},m(t,l){x(t,e,l),m[n].m(e,null),h(e,o),u=!0,a||(f=S(e,"click",E(v)),a=!0)},p(r,a){let f=n;n=g(t=r),n===f?m[n].p(t,a):(k(),c(m[f],1,1,()=>{m[f]=null}),z(),l=m[n],l?l.p(t,a):(l=m[n]=d[n](t),l.c()),s(l,1),l.m(e,o)),(!u||129&a&&i!==(i=t[11](t[25],t[7],t[0])))&&p(e,"class",i)},i(t){u||(s(l),u=!0)},o(t){c(l),u=!1},d(t){t&&r(e),m[n].d(),a=!1,f()}}}function Qi(t){let e,n=t[10](t[25],t[7],t[0])+"";return{c(){e=g(n)},m(t,n){x(t,e,n)},p(t,l){129&l&&n!==(n=t[10](t[25],t[7],t[0])+"")&&u(e,n)},i:y,o:y,d(t){t&&r(e)}}}function tr(t){let e,n;return e=new yt({props:{size:6,img:t[23].img}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};128&n&&(l.img=t[23].img),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function er(t){let e,n,l,o,i,u,a,f;const d=[tr,Qi],m=[];function g(t,e){return t[23].img?0:1}function v(){return t[17](t[23])}return n=g(t),l=m[n]=d[n](t),{c(){e=b("button"),l.c(),o=w(),p(e,"name",`imulti${t[25]}`),p(e,"class",i=t[11](t[25],t[7],t[0]))},m(t,l){x(t,e,l),m[n].m(e,null),h(e,o),u=!0,a||(f=S(e,"click",v),a=!0)},p(r,a){let f=n;n=g(t=r),n===f?m[n].p(t,a):(k(),c(m[f],1,1,()=>{m[f]=null}),z(),l=m[n],l?l.p(t,a):(l=m[n]=d[n](t),l.c()),s(l,1),l.m(e,o)),(!u||129&a&&i!==(i=t[11](t[25],t[7],t[0])))&&p(e,"class",i)},i(t){u||(s(l),u=!0)},o(t){c(l),u=!1},d(t){t&&r(e),m[n].d(),a=!1,f()}}}function nr(t){let e,n,l,o;const i=[Wi,Ui],u=[];function a(t,e){return t[3]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function lr(t){let e,n,l,o,i,u=t[1]&&(!t[2]&&!t[5]||t[3])&&Yi(t);return l=new cn({props:{tooltip:t[4],$$slots:{default:[nr]},$$scope:{ctx:t}}}),{c(){e=b("label"),u&&u.c(),n=w(),F(l.$$.fragment),p(e,"class",o=`labinput ${t[12].class||""}`)},m(t,o){x(t,e,o),u&&u.m(e,null),h(e,n),O(l,e,null),i=!0},p(t,[r]){t[1]&&(!t[2]&&!t[5]||t[3])?u?(u.p(t,r),46&r&&s(u,1)):(u=Yi(t),u.c(),s(u,1),u.m(e,n)):u&&(k(),c(u,1,1,()=>{u=null}),z());const a={};16&r&&(a.tooltip=t[4]),134218223&r&&(a.$$scope={dirty:r,ctx:t}),l.$set(a),(!i||4096&r&&o!==(o=`labinput ${t[12].class||""}`))&&p(e,"class",o)},i(t){i||(s(u),s(l.$$.fragment,t),i=!0)},o(t){c(u),c(l.$$.fragment,t),i=!1},d(t){t&&r(e),u&&u.d(),B(l)}}}function or(t,e,n){let i,r;const{_:c,listfromstring:s}=kt(),u=G();let{value:a="",label:f="",black:d=!1,oriz:p=!1,vert:m=!1,tooltip:x="",options:h=[],info:b="",sm:g=!1,xs:w=!1,readonly:v=!1}=e;function y(t){if(t>=0&&t<r.length){var e=r[t];if("string"==typeof e){if(e==a)return!0}else if(e.id==a||e.cod==a)return!0}return!1}return t.$$set=t=>{n(12,e=l(l({},e),o(t))),"value"in t&&n(0,a=t.value),"label"in t&&n(1,f=t.label),"black"in t&&n(13,d=t.black),"oriz"in t&&n(2,p=t.oriz),"vert"in t&&n(3,m=t.vert),"tooltip"in t&&n(4,x=t.tooltip),"options"in t&&n(14,h=t.options),"info"in t&&n(15,b=t.info),"sm"in t&&n(5,g=t.sm),"xs"in t&&n(16,w=t.xs),"readonly"in t&&n(6,v=t.readonly)},t.$$.update=()=>{4&t.$$.dirty&&n(8,i=p&&parseInt(p)>10?parseInt(p):40),49152&t.$$.dirty&&n(7,r=h?s(h).filter(t=>!t.valid||t.valid()):[])},e=o(e),[a,f,p,m,x,g,v,r,i,u,function(t){var e="";if(t>=0&&t<r.length){var n=r[t];e="string"==typeof n?n:n.des||n.id||n.cod||""}return e},function(t){var e=[];return e.push("border-c-border px-2 hover:border-c-base"),e.push(g?"h-6 text-xs":w?"h-4 text-xxs":"h-8 text-sm "),m&&e.push("w-full"),d?e.push(y(t)?"bg-c-base text-white rounded":""):(0==t?e.push(m?"rounded-t-md border":"rounded-l-md border"):(e.push(m?"border-x border-b":"border-r border-y"),t==r.length-1&&e.push(m?"rounded-b-md":"rounded-r-md")),v?e.push(y(t)?"bg-c-200 text-white":"bg-white text-c-200"):e.push(y(t)?"bg-c-base text-white":"bg-white")),e.join(" ")},e,d,h,b,w,t=>{v||(n(0,a="string"==typeof t?t:t.cod?t.cod:t.id),u("click",t))},t=>{v||(n(0,a="string"==typeof t?t:t.cod?t.cod:t.id),u("click",t))}]}class ir extends t{constructor(t){super(),e(this,t,or,lr,n,{value:0,label:1,black:13,oriz:2,vert:3,tooltip:4,options:14,info:15,sm:5,xs:16,readonly:6})}}function rr(t,e,n){const l=t.slice();return l[9]=e[n],l}function cr(t,e,n){const l=t.slice();return l[8]=e[n],l}function sr(t,e,n){const l=t.slice();return l[9]=e[n],l[13]=n,l}function ur(t,e,n){const l=t.slice();return l[8]=e[n][0],l[9]=e[n][1],l}function ar(t){let e,n,l,o,i,c,s=t[2]&&dr(t);return{c(){e=b("p"),s&&s.c(),n=w(),l=b("span"),o=g(t[3]),p(l,"class",i=W(`json_${t[6]}`)+" svelte-1i5mpub"),p(e,"style",c=`margin-left: ${.8*t[1]}em`)},m(t,i){x(t,e,i),s&&s.m(e,null),h(e,n),h(e,l),h(l,o)},p(t,r){t[2]?s?s.p(t,r):(s=dr(t),s.c(),s.m(e,n)):s&&(s.d(1),s=null),8&r&&u(o,t[3]),64&r&&i!==(i=W(`json_${t[6]}`)+" svelte-1i5mpub")&&p(l,"class",i),2&r&&c!==(c=`margin-left: ${.8*t[1]}em`)&&p(e,"style",c)},i:y,o:y,d(t){t&&r(e),s&&s.d()}}}function fr(t){let e,n,l,o;const i=[mr,pr],u=[];function a(t,e){return t[5]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function dr(t){let e,n,l,o;return{c(){e=b("span"),n=g(t[2]),l=w(),o=b("span"),p(e,"class","json_key"),p(o,"class","json_dot")},m(t,i){x(t,e,i),h(e,n),x(t,l,i),x(t,o,i)},p(t,e){4&e&&u(n,t[2])},d(t){t&&(r(e),r(l),r(o))}}}function pr(t){let e,n,l,o,i,u,a,f,d=t[2]&&xr(t),m=t[0]&&hr(t);return{c(){e=b("details"),n=b("summary"),d&&d.c(),l=w(),m&&m.c(),p(e,"style",o=`margin-left: ${.8*t[1]}em`),p(e,"class",i=W(`json_${t[6]}`)+" svelte-1i5mpub")},m(o,i){x(o,e,i),h(e,n),d&&d.m(n,null),h(e,l),m&&m.m(e,null),e.open=t[0],u=!0,a||(f=S(e,"toggle",t[7]),a=!0)},p(t,l){t[2]?d?d.p(t,l):(d=xr(t),d.c(),d.m(n,null)):d&&(d.d(1),d=null),t[0]?m?(m.p(t,l),1&l&&s(m,1)):(m=hr(t),m.c(),s(m,1),m.m(e,null)):m&&(k(),c(m,1,1,()=>{m=null}),z()),(!u||2&l&&o!==(o=`margin-left: ${.8*t[1]}em`))&&p(e,"style",o),(!u||64&l&&i!==(i=W(`json_${t[6]}`)+" svelte-1i5mpub"))&&p(e,"class",i),1&l&&(e.open=t[0])},i(t){u||(s(m),u=!0)},o(t){c(m),u=!1},d(t){t&&r(e),d&&d.d(),m&&m.d(),a=!1,f()}}}function mr(t){let e,n,l,o,i,u,a=t[2]&&yr(t);const f=[kr,$r],d=[];function m(t,e){return"object"==t[6]?0:"array"==t[6]?1:-1}return~(o=m(t))&&(i=d[o]=f[o](t)),{c(){e=b("div"),a&&a.c(),n=w(),l=b("table"),i&&i.c(),p(l,"class","json-table svelte-1i5mpub"),p(e,"class","json-table-container svelte-1i5mpub")},m(t,i){x(t,e,i),a&&a.m(e,null),h(e,n),h(e,l),~o&&d[o].m(l,null),u=!0},p(t,r){t[2]?a?a.p(t,r):(a=yr(t),a.c(),a.m(e,n)):a&&(a.d(1),a=null);let u=o;o=m(t),o===u?~o&&d[o].p(t,r):(i&&(k(),c(d[u],1,1,()=>{d[u]=null}),z()),~o?(i=d[o],i?i.p(t,r):(i=d[o]=f[o](t),i.c()),s(i,1),i.m(l,null)):i=null)},i(t){u||(s(i),u=!0)},o(t){c(i),u=!1},d(t){t&&r(e),a&&a.d(),~o&&d[o].d()}}}function xr(t){let e,n,l,o;return{c(){e=b("span"),n=g(t[2]),l=w(),o=b("span"),p(e,"class","json_key"),p(o,"class","json_dot")},m(t,i){x(t,e,i),h(e,n),x(t,l,i),x(t,o,i)},p(t,e){4&e&&u(n,t[2])},d(t){t&&(r(e),r(l),r(o))}}}function hr(t){let e,n,l,o;const i=[gr,br],u=[];function a(t,e){return"object"==t[6]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function br(t){let e,n,l=Z(t[3]),o=[];for(let e=0;e<l.length;e+=1)o[e]=wr(rr(t,l,e));const i=t=>c(o[t],1,1,()=>{o[t]=null});return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=$()},m(t,l){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,l);x(t,e,l),n=!0},p(t,n){if(24&n){let r;for(l=Z(t[3]),r=0;r<l.length;r+=1){const i=rr(t,l,r);o[r]?(o[r].p(i,n),s(o[r],1)):(o[r]=wr(i),o[r].c(),s(o[r],1),o[r].m(e.parentNode,e))}for(k(),r=l.length;r<o.length;r+=1)i(r);z()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)s(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)c(o[t]);n=!1},d(t){t&&r(e),V(o,t)}}}function gr(t){let e,n,l=Z(Object.keys(t[3])),o=[];for(let e=0;e<l.length;e+=1)o[e]=vr(cr(t,l,e));const i=t=>c(o[t],1,1,()=>{o[t]=null});return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=$()},m(t,l){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,l);x(t,e,l),n=!0},p(t,n){if(24&n){let r;for(l=Z(Object.keys(t[3])),r=0;r<l.length;r+=1){const i=cr(t,l,r);o[r]?(o[r].p(i,n),s(o[r],1)):(o[r]=vr(i),o[r].c(),s(o[r],1),o[r].m(e.parentNode,e))}for(k(),r=l.length;r<o.length;r+=1)i(r);z()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)s(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)c(o[t]);n=!1},d(t){t&&r(e),V(o,t)}}}function wr(t){let e,n;return e=new Br({props:{space:2,name:"",value:t[9],fullopen:t[4],open:t[4]}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.value=t[9]),16&n&&(l.fullopen=t[4]),16&n&&(l.open=t[4]),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function vr(t){let e,n;return e=new Br({props:{space:1,name:t[8],value:t[3][t[8]],fullopen:t[4],open:t[4]}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.name=t[8]),8&n&&(l.value=t[3][t[8]]),16&n&&(l.fullopen=t[4]),16&n&&(l.open=t[4]),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function yr(t){let e,n;return{c(){e=b("div"),n=g(t[2]),p(e,"class","json-table-title svelte-1i5mpub")},m(t,l){x(t,e,l),h(e,n)},p(t,e){4&e&&u(n,t[2])},d(t){t&&r(e)}}}function $r(t){let e,n,l,o,i=Z(t[3]),u=[];for(let e=0;e<i.length;e+=1)u[e]=jr(sr(t,i,e));const a=t=>c(u[t],1,1,()=>{u[t]=null});return{c(){e=b("thead"),e.innerHTML='<tr><th class="svelte-1i5mpub">Indice</th> <th class="svelte-1i5mpub">Valore</th></tr>',n=w(),l=b("tbody");for(let t=0;t<u.length;t+=1)u[t].c()},m(t,i){x(t,e,i),x(t,n,i),x(t,l,i);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(l,null);o=!0},p(t,e){if(24&e){let n;for(i=Z(t[3]),n=0;n<i.length;n+=1){const o=sr(t,i,n);u[n]?(u[n].p(o,e),s(u[n],1)):(u[n]=jr(o),u[n].c(),s(u[n],1),u[n].m(l,null))}for(k(),n=i.length;n<u.length;n+=1)a(n);z()}},i(t){if(!o){for(let t=0;t<i.length;t+=1)s(u[t]);o=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)c(u[t]);o=!1},d(t){t&&(r(e),r(n),r(l)),V(u,t)}}}function kr(t){let e,n,l,o,i=Z(Object.entries(t[3])),u=[];for(let e=0;e<i.length;e+=1)u[e]=Ar(ur(t,i,e));const a=t=>c(u[t],1,1,()=>{u[t]=null});return{c(){e=b("thead"),e.innerHTML='<tr><th class="svelte-1i5mpub">Chiave</th> <th class="svelte-1i5mpub">Valore</th></tr>',n=w(),l=b("tbody");for(let t=0;t<u.length;t+=1)u[t].c()},m(t,i){x(t,e,i),x(t,n,i),x(t,l,i);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(l,null);o=!0},p(t,e){if(24&e){let n;for(i=Z(Object.entries(t[3])),n=0;n<i.length;n+=1){const o=ur(t,i,n);u[n]?(u[n].p(o,e),s(u[n],1)):(u[n]=Ar(o),u[n].c(),s(u[n],1),u[n].m(l,null))}for(k(),n=i.length;n<u.length;n+=1)a(n);z()}},i(t){if(!o){for(let t=0;t<i.length;t+=1)s(u[t]);o=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)c(u[t]);o=!1},d(t){t&&(r(e),r(n),r(l)),V(u,t)}}}function zr(t){let e,n,l,o=t[9]+"";return{c(){e=b("span"),n=g(o),p(e,"class",l=W("json_"+typeof t[9])+" svelte-1i5mpub")},m(t,l){x(t,e,l),h(e,n)},p(t,i){8&i&&o!==(o=t[9]+"")&&u(n,o),8&i&&l!==(l=W("json_"+typeof t[9])+" svelte-1i5mpub")&&p(e,"class",l)},i:y,o:y,d(t){t&&r(e)}}}function _r(t){let e,n;return e=new Br({props:{name:"",value:t[9],fullopen:t[4],open:t[4],tabular:!0}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.value=t[9]),16&n&&(l.fullopen=t[4]),16&n&&(l.open=t[4]),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function jr(t){let e,n,l,o,i,u,a,f;const d=[_r,zr],m=[];function g(t,e){return"object"==typeof t[9]&&null!==t[9]?0:1}return i=g(t),u=m[i]=d[i](t),{c(){e=b("tr"),n=b("td"),n.textContent=`${t[13]}`,l=w(),o=b("td"),u.c(),a=w(),p(n,"class","json-table-key svelte-1i5mpub"),p(o,"class","svelte-1i5mpub")},m(t,r){x(t,e,r),h(e,n),h(e,l),h(e,o),m[i].m(o,null),h(e,a),f=!0},p(t,e){let n=i;i=g(t),i===n?m[i].p(t,e):(k(),c(m[n],1,1,()=>{m[n]=null}),z(),u=m[i],u?u.p(t,e):(u=m[i]=d[i](t),u.c()),s(u,1),u.m(o,null))},i(t){f||(s(u),f=!0)},o(t){c(u),f=!1},d(t){t&&r(e),m[i].d()}}}function Sr(t){let e,n,l,o=t[9]+"";return{c(){e=b("span"),n=g(o),p(e,"class",l=W("json_"+typeof t[9])+" svelte-1i5mpub")},m(t,l){x(t,e,l),h(e,n)},p(t,i){8&i&&o!==(o=t[9]+"")&&u(n,o),8&i&&l!==(l=W("json_"+typeof t[9])+" svelte-1i5mpub")&&p(e,"class",l)},i:y,o:y,d(t){t&&r(e)}}}function Ir(t){let e,n;return e=new Br({props:{name:"",value:t[9],fullopen:t[4],open:t[4],tabular:!0}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.value=t[9]),16&n&&(l.fullopen=t[4]),16&n&&(l.open=t[4]),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Ar(t){let e,n,l,o,i,a,f,d,m,v=t[8]+"";const y=[Ir,Sr],$=[];function _(t,e){return"object"==typeof t[9]&&null!==t[9]?0:1}return a=_(t),f=$[a]=y[a](t),{c(){e=b("tr"),n=b("td"),l=g(v),o=w(),i=b("td"),f.c(),d=w(),p(n,"class","json-table-key svelte-1i5mpub"),p(i,"class","svelte-1i5mpub")},m(t,r){x(t,e,r),h(e,n),h(n,l),h(e,o),h(e,i),$[a].m(i,null),h(e,d),m=!0},p(t,e){(!m||8&e)&&v!==(v=t[8]+"")&&u(l,v);let n=a;a=_(t),a===n?$[a].p(t,e):(k(),c($[n],1,1,()=>{$[n]=null}),z(),f=$[a],f?f.p(t,e):(f=$[a]=y[a](t),f.c()),s(f,1),f.m(i,null))},i(t){m||(s(f),m=!0)},o(t){c(f),m=!1},d(t){t&&r(e),$[a].d()}}}function Mr(t){let e,n,l,o;const i=[fr,ar],u=[];function a(t,e){return"object"==t[6]||"array"==t[6]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,[o]){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function Dr(t,e,n){let l,{space:o=0}=e,{name:i=""}=e,{value:r}=e,{fullopen:c=!1}=e,{open:s=!1}=e,{tabular:u=!1}=e;return t.$$set=t=>{"space"in t&&n(1,o=t.space),"name"in t&&n(2,i=t.name),"value"in t&&n(3,r=t.value),"fullopen"in t&&n(4,c=t.fullopen),"open"in t&&n(0,s=t.open),"tabular"in t&&n(5,u=t.tabular)},t.$$.update=()=>{8&t.$$.dirty&&(Array.isArray(r)?n(6,l="array"):n(6,l=null===r?"null":typeof r))},[s,o,i,r,c,u,l,function(){s=this.open,n(0,s)}]}class Br extends t{constructor(t){super(),e(this,t,Dr,Mr,n,{space:1,name:2,value:3,fullopen:4,open:0,tabular:5})}}function Or(t){let e;return{c(){e=b("link"),p(e,"rel","stylesheet"),p(e,"href",t[2]),p(e,"integrity",t[3]),p(e,"crossorigin","")},m(t,n){x(t,e,n)},p(t,n){4&n&&p(e,"href",t[2]),8&n&&p(e,"integrity",t[3])},d(t){t&&r(e)}}}function Er(t){let e,n,l=t[2]&&Or(t);return{c(){l&&l.c(),e=b("script"),N(e.src,n=t[0])||p(e,"src",n),p(e,"integrity",t[1]),p(e,"crossorigin","")},m(n,o){l&&l.m(document.head,null),h(document.head,e),t[5](e)},p(t,[o]){t[2]?l?l.p(t,o):(l=Or(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),1&o&&!N(e.src,n=t[0])&&p(e,"src",n),2&o&&p(e,"integrity",t[1])},i:y,o:y,d(n){l&&l.d(n),r(e),t[5](null)}}}function Tr(t,e,n){const l=G();let o,{url:i="",integrity:r="",css:c="",cssintegrity:s=""}=e;function u(t){l("error",t)}function a(t){l("loaded",t)}return J(async()=>{o.addEventListener("load",a),o.addEventListener("error",u)}),t.$$set=t=>{"url"in t&&n(0,i=t.url),"integrity"in t&&n(1,r=t.integrity),"css"in t&&n(2,c=t.css),"cssintegrity"in t&&n(3,s=t.cssintegrity)},[i,r,c,s,o,function(t){_[t?"unshift":"push"](()=>{o=t,n(4,o)})}]}class Fr extends t{constructor(t){super(),e(this,t,Tr,Er,n,{url:0,integrity:1,css:2,cssintegrity:3})}}function Cr(t){let e,n,l,o,i,u,a,f,d,m,g,v,y,$,_;o=new yt({props:{img:t[4],size:10,black:!0}});let j=t[0]&&Pr(t);m=new kn({props:{sm:!0,black:!0,value:"chiudi"}}),m.$on("click",t[6]);let S=t[2]&&Rr(t);return{c(){e=b("div"),n=b("div"),l=b("div"),F(o.$$.fragment),i=w(),u=b("div"),j&&j.c(),a=w(),f=b("div"),d=w(),F(m.$$.fragment),g=w(),S&&S.c(),p(f,"class","text-sm font-ligth"),p(u,"class","flex-1 overflow-hidden flex flex-col"),p(l,"class","flexrow space-x-2 items-center"),p(n,"class",v=(2==t[5]?"bg-c-danger text-white":1==t[5]?"shadow-lg bg-c-warning text-white":"bg-c-success text-white")+" p-4 w-full text-left rounded-md shadow-lg z-50 border border-c-border"),p(e,"class","max-w-md mx-auto fixed bottom-[10%] inset-x-0 z-50 noprint")},m(r,c){x(r,e,c),h(e,n),h(n,l),O(o,l,null),h(l,i),h(l,u),j&&j.m(u,null),h(u,a),h(u,f),f.innerHTML=t[1],h(l,d),O(m,l,null),h(n,g),S&&S.m(n,null),_=!0},p(t,e){const l={};16&e&&(l.img=t[4]),o.$set(l),t[0]?j?(j.p(t,e),1&e&&s(j,1)):(j=Pr(t),j.c(),s(j,1),j.m(u,a)):j&&(k(),c(j,1,1,()=>{j=null}),z()),(!_||2&e)&&(f.innerHTML=t[1]),t[2]?S?S.p(t,e):(S=Rr(t),S.c(),S.m(n,null)):S&&(S.d(1),S=null),(!_||32&e&&v!==(v=(2==t[5]?"bg-c-danger text-white":1==t[5]?"shadow-lg bg-c-warning text-white":"bg-c-success text-white")+" p-4 w-full text-left rounded-md shadow-lg z-50 border border-c-border"))&&p(n,"class",v)},i(t){_||(s(o.$$.fragment,t),s(j),s(m.$$.fragment,t),t&&A(()=>{_&&($&&$.end(1),y=M(e,Dt,{duration:500,easing:It}),y.start())}),_=!0)},o(t){c(o.$$.fragment,t),c(j),c(m.$$.fragment,t),y&&y.invalidate(),t&&($=I(e,At,{duration:300})),_=!1},d(t){t&&r(e),B(o),j&&j.d(),B(m),S&&S.d(),t&&$&&$.end()}}}function Pr(t){let e,n,l;return n=new En({props:{id:t[0]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","font-bold text-xl")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};1&e&&(l.id=t[0]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function Rr(t){let e,n,l,o;return{c(){e=b("div"),e.textContent="Details:",n=w(),l=b("pre"),o=g(t[2]),p(e,"class","text-xs pt-4 mb-2 w-full border-b border-c-100 font-ligth"),p(l,"class","text-c-200 font-mono text-xs p-1 rounded bg-white max-h-48 overflow-y-auto")},m(t,i){x(t,e,i),x(t,n,i),x(t,l,i),h(l,o)},p(t,e){4&e&&u(o,t[2])},d(t){t&&(r(e),r(n),r(l))}}}function Nr(t){let e,n,l=t[3]&&Cr(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[3]?l?(l.p(t,n),8&n&&s(l,1)):(l=Cr(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function Lr(t,e,n){const{bus:l}=kt();let o,i,r,c,s,u=!1;function a(t){m(t,0,"check_circle")}function f(t){m(t,1,"warning")}function d(t){n(5,s=2),m(t,2,"error")}J(()=>{l.on("message",a),l.on("messaggio",a),l.on("warning",f),l.on("error",d)}),K(()=>{l.off("message",a),l.off("messaggio",a),l.off("warning",f),l.off("error",d)});var p=0;function m(t,e,l){if(n(0,o=n(2,r="")),n(5,s=e),n(4,c=l),"string"==typeof t){let e=t.split("\n"),l=e[0].indexOf(":");l>0?(n(0,o=e[0].slice(0,l)),n(1,i=e[0].slice(l+1))):(n(0,o=e[0]),n(1,i="")),e.splice(0,1),n(2,r=e.join("\n"))}else t?(n(1,i=t?.value||t?.des||t?.text||t?.msg),n(0,o=t?.title),n(2,r=t?.extra)):n(1,i="undefined message");p&&clearInterval(p),n(3,u=!0),2!=e&&(p=setTimeout(()=>{n(3,u=!1)},0==e?2e3:4e3))}return[o,i,r,u,c,s,()=>n(3,u=!1)]}class Xr extends t{constructor(t){super(),e(this,t,Lr,Nr,n,{})}}const Hr=t=>({}),Zr=t=>({});function Vr(t){let e,n,l;const o=t[4].logo,u=i(o,t,t[3],Zr),m=u||function(){let t;return{c(){t=g("Inserisci lo slot su logo")},m(e,n){x(e,t,n)},d(e){e&&r(t)}}}();return{c(){e=b("div"),n=b("div"),m&&m.c(),p(n,"class","p-8 bg-c-50 rounded-xl shadow"),p(e,"class","grid items-center h-full justify-center overflow-hidden")},m(t,o){x(t,e,o),h(e,n),m&&m.m(n,null),l=!0},p(t,e){u&&u.p&&(!l||8&e)&&a(u,o,t,t[3],l?d(o,t[3],e,Hr):f(t[3]),Zr)},i(t){l||(s(m,t),l=!0)},o(t){c(m,t),l=!1},d(t){t&&r(e),m&&m.d(t)}}}function Yr(t){let e,n,l,o,u,m;const h=t[4].default,g=i(h,t,t[3],null);return{c(){e=b("iframe"),l=w(),g&&g.c(),p(e,"title","PDF"),N(e.src,n=`${t[0]}${t[1]?"#view=FitH&zoom=page-width&navpanes=0&toolbar=0":""}`)||p(e,"src",n),p(e,"class","w-full h-full border-none")},m(n,i){x(n,e,i),x(n,l,i),g&&g.m(n,i),o=!0,u||(m=[S(e,"load",t[2]),S(e,"error",t[2])],u=!0)},p(t,l){(!o||3&l&&!N(e.src,n=`${t[0]}${t[1]?"#view=FitH&zoom=page-width&navpanes=0&toolbar=0":""}`))&&p(e,"src",n),g&&g.p&&(!o||8&l)&&a(g,h,t,t[3],o?d(h,t[3],l,null):f(t[3]),null)},i(t){o||(s(g,t),o=!0)},o(t){c(g,t),o=!1},d(t){t&&(r(e),r(l)),g&&g.d(t),u=!1,j(m)}}}function Ur(t){let e,n,l,o;const i=[Yr,Vr],u=[];function a(t,e){return t[0]?0:1}return n=a(t),l=u[n]=i[n](t),{c(){e=b("div"),l.c(),p(e,"class","w-full h-full overflow-auto relative")},m(t,l){x(t,e,l),u[n].m(e,null),o=!0},p(t,[o]){let r=n;n=a(t),n===r?u[n].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),l=u[n],l?l.p(t,o):(l=u[n]=i[n](t),l.c()),s(l,1),l.m(e,null))},i(t){o||(s(l),o=!0)},o(t){c(l),o=!1},d(t){t&&r(e),u[n].d()}}}function Wr(t,e,n){let{$$slots:l={},$$scope:o}=e;const{bus:i}=kt();G();let{value:r=""}=e,{fullsize:c=!1}=e;return t.$$set=t=>{"value"in t&&n(0,r=t.value),"fullsize"in t&&n(1,c=t.fullsize),"$$scope"in t&&n(3,o=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&async function(){r&&(i.wait(!0),await q())}()},[r,c,async function(){i.wait(!1)},o,l]}class Jr extends t{constructor(t){super(),e(this,t,Wr,Ur,n,{value:0,fullsize:1})}}function qr(t){let e,n,l,o,u;const m=t[4].default,h=i(m,t,t[3],null);return{c(){e=b("div"),h&&h.c(),p(e,"class",n=(t[2].class||"")+" h-full relative overflow-y-auto")},m(n,i){x(n,e,i),h&&h.m(e,null),t[5](e),l=!0,o||(u=S(e,"scroll",t[1]),o=!0)},p(t,[o]){h&&h.p&&(!l||8&o)&&a(h,m,t,t[3],l?d(m,t[3],o,null):f(t[3]),null),(!l||4&o&&n!==(n=(t[2].class||"")+" h-full relative overflow-y-auto"))&&p(e,"class",n)},i(t){l||(s(h,t),l=!0)},o(t){c(h,t),l=!1},d(n){n&&r(e),h&&h.d(n),t[5](null),o=!1,u()}}}function Gr(t,e,n){let{$$slots:i={},$$scope:r}=e;const{bus:c}=kt();let s;return t.$$set=t=>{n(2,e=l(l({},e),o(t))),"$$scope"in t&&n(3,r=t.$$scope)},e=o(e),[s,function(t){var e=t.target;e.scrollTop,this.smallmenu=!(e.scrollTop<50),e.scrollTop+1.3*e.getClientRects()[0].height>e.scrollHeight&&c.emit("scrollbottom")},e,r,i,function(t){_[t?"unshift":"push"](()=>{s=t,n(0,s)})}]}class Kr extends t{constructor(t){super(),e(this,t,Gr,qr,n,{})}}function Qr(t,e,n){const l=t.slice();return l[44]=e[n],l[46]=n,l}function tc(t,e,n){const l=t.slice();return l[47]=e[n],l}function ec(t){let e,n,l;return n=new En({props:{id:t[2]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","label pt-1 h-6")},m(t,o){x(t,e,o),O(n,e,null),l=!0},p(t,e){const l={};4&e[0]&&(l.id=t[2]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n)}}}function nc(t){let e,n,l,o;return n=new En({props:{id:t[2]}}),{c(){e=b("div"),F(n.$$.fragment),p(e,"class","label leading-none text-right pr-2"),p(e,"style",l=`width: ${t[18]}%;`)},m(t,l){x(t,e,l),O(n,e,null),o=!0},p(t,i){const r={};4&i[0]&&(r.id=t[2]),n.$set(r),(!o||262144&i[0]&&l!==(l=`width: ${t[18]}%;`))&&p(e,"style",l)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),B(n)}}}function lc(t){let e,n,l=(t[0].cod||t[0].id||"")+"";return{c(){e=b("div"),n=g(l),p(e,"class","rounded-l bg-c-base text-white px-2 text-xs flex flex-col justify-center"),m(e,"h-8",!t[5]),m(e,"h-6",t[5])},m(t,l){x(t,e,l),h(e,n)},p(t,o){1&o[0]&&l!==(l=(t[0].cod||t[0].id||"")+"")&&u(n,l),32&o[0]&&m(e,"h-8",!t[5]),32&o[0]&&m(e,"h-6",t[5])},d(t){t&&r(e)}}}function oc(t){let e,n,l,o,i;return{c(){e=b("input"),p(e,"type","text"),p(e,"class","!rounded-none !pr-6"),e.value=n=t[8]?t[0]||"":t[7]?t[0]?.cod||"":t[0]?.des||"",p(e,"placeholder",l=t[20](t[4],t[19])),e.disabled=t[6],p(e,"autocorrect","off"),p(e,"autocomplete","off"),m(e,"sm",t[5])},m(n,l){x(n,e,l),t[35](e),o||(i=S(e,"keyup",t[36]),o=!0)},p(t,o){385&o[0]&&n!==(n=t[8]?t[0]||"":t[7]?t[0]?.cod||"":t[0]?.des||"")&&e.value!==n&&(e.value=n),524304&o[0]&&l!==(l=t[20](t[4],t[19]))&&p(e,"placeholder",l),64&o[0]&&(e.disabled=t[6]),32&o[0]&&m(e,"sm",t[5])},d(n){n&&r(e),t[35](null),o=!1,i()}}}function ic(t){let e,n,l,o,i;return n=new yt({props:{size:5,img:t[13].length?"expand_less":"expand_more"}}),{c(){e=b("button"),F(n.$$.fragment),p(e,"tabindex","-1"),p(e,"class","absolute right-1 vcenter cursor-pointer")},m(r,c){x(r,e,c),O(n,e,null),l=!0,o||(i=S(e,"click",E(t[37])),o=!0)},p(t,e){const l={};8192&e[0]&&(l.img=t[13].length?"expand_less":"expand_more"),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n),o=!1,i()}}}function rc(t){let e,n,l,o;n=new cn({props:{tooltip:t[10],$$slots:{default:[oc]},$$scope:{ctx:t}}});let i=!t[6]&&ic(t);return{c(){e=b("div"),F(n.$$.fragment),l=w(),i&&i.c()},m(t,r){x(t,e,r),O(n,e,null),h(e,l),i&&i.m(e,null),o=!0},p(t,l){const o={};1024&l[0]&&(o.tooltip=t[10]),526833&l[0]|512&l[1]&&(o.$$scope={dirty:l,ctx:t}),n.$set(o),t[6]?i&&(k(),c(i,1,1,()=>{i=null}),z()):i?(i.p(t,l),64&l[0]&&s(i,1)):(i=ic(t),i.c(),s(i,1),i.m(e,null))},i(t){o||(s(n.$$.fragment,t),s(i),o=!0)},o(t){c(n.$$.fragment,t),c(i),o=!1},d(t){t&&r(e),B(n),i&&i.d()}}}function cc(t){let e,n,l,o,i,u,a=Z(t[13]),f=[];for(let e=0;e<a.length;e+=1)f[e]=fc(Qr(t,a,e));let d=t[1]&&t[15]>0&&dc(t),m=t[1]&&pc(t);return{c(){e=b("div"),n=b("table"),l=b("tbody");for(let t=0;t<f.length;t+=1)f[t].c();o=w(),d&&d.c(),i=w(),m&&m.c(),p(n,"class","w-full"),p(e,"class","relative w-full")},m(t,r){x(t,e,r),h(e,n),h(n,l);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(l,null);h(e,o),d&&d.m(e,null),h(e,i),m&&m.m(e,null),u=!0},p(t,n){if(29518217&n[0]){let e;for(a=Z(t[13]),e=0;e<a.length;e+=1){const o=Qr(t,a,e);f[e]?f[e].p(o,n):(f[e]=fc(o),f[e].c(),f[e].m(l,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=a.length}t[1]&&t[15]>0?d?(d.p(t,n),32770&n[0]&&s(d,1)):(d=dc(t),d.c(),s(d,1),d.m(e,i)):d&&(k(),c(d,1,1,()=>{d=null}),z()),t[1]?m?(m.p(t,n),2&n[0]&&s(m,1)):(m=pc(t),m.c(),s(m,1),m.m(e,null)):m&&(k(),c(m,1,1,()=>{m=null}),z())},i(t){u||(s(d),s(m),u=!0)},o(t){c(d),c(m),u=!1},d(t){t&&r(e),V(f,t),d&&d.d(),m&&m.d()}}}function sc(t){let e,n,l,o,i,c,s=t[44].des+"",a=t[3]&&uc(t);return{c(){e=b("td"),n=b("div"),l=b("div"),o=g(s),i=w(),a&&a.c(),c=$(),p(l,"class","w-full whitespace-pre-line line-clamp-2"),p(n,"class","text-xs pl-2 pr-4")},m(t,r){x(t,e,r),h(e,n),h(n,l),h(l,o),x(t,i,r),a&&a.m(t,r),x(t,c,r)},p(t,e){8192&e[0]&&s!==(s=t[44].des+"")&&u(o,s),t[3]?a?a.p(t,e):(a=uc(t),a.c(),a.m(c.parentNode,c)):a&&(a.d(1),a=null)},d(t){t&&(r(e),r(i),r(c)),a&&a.d(t)}}}function uc(t){let e,n=Z(t[3]),l=[];for(let e=0;e<n.length;e+=1)l[e]=ac(tc(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=$()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);x(t,e,n)},p(t,o){if(8200&o[0]){let i;for(n=Z(t[3]),i=0;i<n.length;i+=1){const r=tc(t,n,i);l[i]?l[i].p(r,o):(l[i]=ac(r),l[i].c(),l[i].m(e.parentNode,e))}for(;i<l.length;i+=1)l[i].d(1);l.length=n.length}},d(t){t&&r(e),V(l,t)}}}function ac(t){let e,n,l,o,i,c=t[44][t[47]]+"";return{c(){e=b("td"),n=b("div"),l=b("div"),o=g(c),i=w(),p(l,"class","w-full whitespace-pre-line line-clamp-2"),p(n,"class","text-xs pl-2 pr-4")},m(t,r){x(t,e,r),h(e,n),h(n,l),h(l,o),h(e,i)},p(t,e){8200&e[0]&&c!==(c=t[44][t[47]]+"")&&u(o,c)},d(t){t&&r(e)}}}function fc(t){let e,n,l,o,i,c,s,a,f=(t[44].cod||t[44].id||"")+"",d=!t[7]&&sc(t);function y(){return t[32](t[44])}return{c(){e=b("tr"),n=b("td"),l=b("div"),o=g(f),i=w(),d&&d.c(),c=w(),v(l,"max-width","calc(100% - 20px)"),v(l,"min-width","fit-content"),p(l,"class","rounded bg-c-base text-white px-2 my-1 text-xs text-center"),p(e,"tabindex","-1"),p(e,"class","cursor-pointer"),m(e,"bg-c-150",t[46]==t[14]),m(e,"text-black",t[46]==t[14])},m(t,r){x(t,e,r),h(e,n),h(n,l),h(l,o),h(e,i),d&&d.m(e,null),h(e,c),s||(a=S(e,"mousedown",y),s=!0)},p(n,l){t=n,8192&l[0]&&f!==(f=(t[44].cod||t[44].id||"")+"")&&u(o,f),t[7]?d&&(d.d(1),d=null):d?d.p(t,l):(d=sc(t),d.c(),d.m(e,c)),16384&l[0]&&m(e,"bg-c-150",t[46]==t[14]),16384&l[0]&&m(e,"text-black",t[46]==t[14])},d(t){t&&r(e),d&&d.d(),s=!1,a()}}}function dc(t){let e,n,l,o,i;return n=new yt({props:{size:6,img:"keyboard_arrow_up",color:"text-c-base hover:text-black"}}),{c(){e=b("button"),F(n.$$.fragment),p(e,"tabindex","-1"),p(e,"class","absolute top-0 right-0 cursor-pointer")},m(r,c){x(r,e,c),O(n,e,null),l=!0,o||(i=S(e,"click",t[33]),o=!0)},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),B(n),o=!1,i()}}}function pc(t){let e,n,l,o,i=t[16]&&mc();return{c(){e=b("button"),i&&i.c(),p(e,"tabindex","-1"),p(e,"class","absolute bottom-0 right-0 cursor-pointer")},m(r,c){x(r,e,c),i&&i.m(e,null),n=!0,l||(o=S(e,"click",t[34]),l=!0)},p(t,n){t[16]?i?65536&n[0]&&s(i,1):(i=mc(),i.c(),s(i,1),i.m(e,null)):i&&(k(),c(i,1,1,()=>{i=null}),z())},i(t){n||(s(i),n=!0)},o(t){c(i),n=!1},d(t){t&&r(e),i&&i.d(),l=!1,o()}}}function mc(t){let e,n;return e=new yt({props:{size:6,img:"keyboard_arrow_down",color:"text-c-base hover:text-black"}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function xc(t){let e,n,l=t[13].length&&cc(t);return{c(){e=b("div"),l&&l.c(),p(e,"slot","popup")},m(t,o){x(t,e,o),l&&l.m(e,null),n=!0},p(t,n){t[13].length?l?(l.p(t,n),8192&n[0]&&s(l,1)):(l=cc(t),l.c(),s(l,1),l.m(e,null)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d()}}}function hc(t){let e,n,l,o,u,m,g,v,y,$=t[2]&&!t[9]&&ec(t),_=t[2]&&t[9]&&nc(t),j=!t[7]&&(t[0]?.cod||"number"==typeof t[0]?.id)&&lc(t),S={class:"flex-1 relative apptema-base",popup:t[13]?.length,$$slots:{popup:[xc],default:[rc]},$$scope:{ctx:t}};m=new Jn({props:S}),t[38](m),m.$on("lostfocus",t[39]);const I=t[31].default,A=i(I,t,t[40],null);return{c(){e=b("label"),$&&$.c(),n=w(),l=b("div"),_&&_.c(),o=w(),j&&j.c(),u=w(),F(m.$$.fragment),g=w(),A&&A.c(),p(l,"class","flexrow"),p(e,"class",v=`labinput ${t[27].class||""}`)},m(t,i){x(t,e,i),$&&$.m(e,null),h(e,n),h(e,l),_&&_.m(l,null),h(l,o),j&&j.m(l,null),h(l,u),O(m,l,null),h(l,g),A&&A.m(l,null),y=!0},p(t,i){t[2]&&!t[9]?$?($.p(t,i),516&i[0]&&s($,1)):($=ec(t),$.c(),s($,1),$.m(e,n)):$&&(k(),c($,1,1,()=>{$=null}),z()),t[2]&&t[9]?_?(_.p(t,i),516&i[0]&&s(_,1)):(_=nc(t),_.c(),s(_,1),_.m(l,o)):_&&(k(),c(_,1,1,()=>{_=null}),z()),t[7]||!t[0]?.cod&&"number"!=typeof t[0]?.id?j&&(j.d(1),j=null):j?j.p(t,i):(j=lc(t),j.c(),j.m(l,u));const r={};8192&i[0]&&(r.popup=t[13]?.length),781819&i[0]|512&i[1]&&(r.$$scope={dirty:i,ctx:t}),m.$set(r),A&&A.p&&(!y||512&i[1])&&a(A,I,t,t[40],y?d(I,t[40],i,null):f(t[40]),null),(!y||134217728&i[0]&&v!==(v=`labinput ${t[27].class||""}`))&&p(e,"class",v)},i(t){y||(s($),s(_),s(m.$$.fragment,t),s(A,t),y=!0)},o(t){c($),c(_),c(m.$$.fragment,t),c(A,t),y=!1},d(n){n&&r(e),$&&$.d(),_&&_.d(),j&&j.d(),t[38](null),B(m),A&&A.d(n)}}}function bc(t,e,n){let i,r,{$$slots:c={},$$scope:s}=e;const{PP:u,_:a,lang:f}=kt();R(t,f,t=>n(19,r=t));const d=G();let p,m,x,h=[],b=0,g=0,w=!1,v={},y="",{label:$="",cat:k="",extracols:z,placeholder:j="scrivi per cercare",value:S={},service:I="",sm:A=!1,readonly:M=!1,onlycod:D=!1,stringa:B=!1,oriz:O,tooltip:E,pages:T=!1,max:F=6}=e;async function C(){n(13,h=[]),n(14,b=0),y="",m.openmenu(!1)}function P(t){t!=x&&(x=t,d("select",t),y&&d("des",y),y="")}async function N(){var t=B?S:D?S?.cod||"":S?.des||"";if(I){var e=I.split(":"),l=e[0];e.splice(0,1),t="?"==t||" "==t?"":t.trim();var o=await u(l,{id:k,extra:e.join(":"),input:t,max:F,page:g});0==g&&n(1,T=!!o.rows),T?(o?(n(13,h=o.rows||[]),n(16,w=o.hasmore)):(o=[],n(16,w=!1)),n(14,b=0)):(n(13,h=o?.rows||o||[]),n(16,w=!1),n(14,b=0)),await m.openmenu(!!h?.length)}else C()}async function L(t){if(!M&&"Tab"!=t.key&&"Shift"!=t.key&&"Alt"!=t.key){var e=t.target.value;if(B?n(0,S=t.target.value):("object"!=typeof S&&n(0,S={}),n(0,D?S.cod=t.target.value:S.des=t.target.value,S)),t.key&&!t.metaKey){if(M)return;var l=[];t.ctrlKey&&l.push("Ctrl"),t.altKey&&l.push("Alt"),t.shiftKey&&l.push("Shift"),l.push(t.key);let o=l.join("+");switch("Backspace"!=o||e||(o="Escape"),o){case"Escape":n(0,S=B?"":{}),n(15,g=0),await C(),t.preventDefault(),n(17,v=B?"":{}),P(v),d("click"),d("input",v);break;case"ArrowDown":t.preventDefault(),h.length>0?(b<h.length-1?n(14,b++,b):T&&w&&(n(15,g++,g),await N(),n(14,b=0)),n(17,v=B?h[b].cod:h[b]),y=h[b]?.des||"",P(v)):(n(15,g=0),await N());break;case"ArrowUp":t.preventDefault(),h.length>0?(b>0?n(14,b--,b):T&&g>0&&(n(15,g--,g),await N(),n(14,b=h.length-1)),n(17,v=B?h[b].cod:h[b]),y=h[b]?.des||"",P(v)):(y="",n(14,b=0));break;case"ArrowLeft":break;case"ArrowRight":case"Tab":case"Enter":if(t.preventDefault(),b<h.length){n(17,v=B?h[b].cod:h[b]),n(0,S=B?h[b].cod:h[b]);let t=h[b].des||"";C(),y=t}"Enter"==o&&(d("input",v),d("click")),P(v);break;default:t.ctrlKey||t.altKey||(n(15,g=0),await N())}}}}return t.$$set=t=>{n(27,e=l(l({},e),o(t))),"label"in t&&n(2,$=t.label),"cat"in t&&n(28,k=t.cat),"extracols"in t&&n(3,z=t.extracols),"placeholder"in t&&n(4,j=t.placeholder),"value"in t&&n(0,S=t.value),"service"in t&&n(29,I=t.service),"sm"in t&&n(5,A=t.sm),"readonly"in t&&n(6,M=t.readonly),"onlycod"in t&&n(7,D=t.onlycod),"stringa"in t&&n(8,B=t.stringa),"oriz"in t&&n(9,O=t.oriz),"tooltip"in t&&n(10,E=t.tooltip),"pages"in t&&n(1,T=t.pages),"max"in t&&n(30,F=t.max),"$$scope"in t&&n(40,s=t.$$scope)},t.$$.update=()=>{512&t.$$.dirty[0]&&n(18,i=O&&parseInt(O)>10?parseInt(O):40)},e=o(e),[S,T,$,z,j,A,M,D,B,O,E,p,m,h,b,g,w,v,i,r,a,f,d,C,P,N,L,e,k,I,F,c,t=>{n(17,v=B?t.cod:t),n(0,S=B?t.cod:t),p.focus(),P(v),d("input",v),d("click"),t?.des&&d("des",t.des),C()},async()=>{n(15,g--,g),await N(),n(14,b=h.length-1)},()=>{n(15,g++,g),N()},function(t){_[t?"unshift":"push"](()=>{p=t,n(11,p)})},t=>{L(t)},async()=>{h.length?await C():(n(0,S=B?"":{}),n(15,g=0),await N(),p.focus())},function(t){_[t?"unshift":"push"](()=>{m=t,n(12,m)})},async()=>{d("input",v),P(v),d("click"),await C()},s]}class gc extends t{constructor(t){super(),e(this,t,bc,hc,n,{label:2,cat:28,extracols:3,placeholder:4,value:0,service:29,sm:5,readonly:6,onlycod:7,stringa:8,oriz:9,tooltip:10,pages:1,max:30},null,[-1,-1])}}function wc(t){let e,n,l,o;const i=[yc,vc],u=[];function a(t,e){return t[2]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function vc(t){let e,n,l;const o=t[10].default,u=i(o,t,t[9],null);return{c(){e=b("div"),u&&u.c(),p(e,"class",n=(t[4].class||"")+" h-reset w-full"),p(e,"aria-label",t[1])},m(t,n){x(t,e,n),u&&u.m(e,null),l=!0},p(t,i){u&&u.p&&(!l||512&i)&&a(u,o,t,t[9],l?d(o,t[9],i,null):f(t[9]),null),(!l||16&i&&n!==(n=(t[4].class||"")+" h-reset w-full"))&&p(e,"class",n),(!l||2&i)&&p(e,"aria-label",t[1])},i(t){l||(s(u,t),l=!0)},o(t){c(u,t),l=!1},d(t){t&&r(e),u&&u.d(t)}}}function yc(t){let e;const n=t[10].default,l=i(n,t,t[9],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||512&o)&&a(l,n,t,t[9],e?d(n,t[9],o,null):f(t[9]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function $c(t){let e,n,l=t[3]&&t[0]&&wc(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[3]&&t[0]?l?(l.p(t,n),1&n&&s(l,1)):(l=wc(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function kc(t,e,n){let{$$slots:i={},$$scope:r}=e;const{myuuid:c}=kt();let s,{title:u="tab",auth:a,icon:f,active:d,noauto:p=!1,valid:m,tooltip:x}=e,{getdata:h,setdata:b}=Q("TABS")||{};function g(t){n(0,d=t)}return K(()=>{if(h){var{tabs:t,curtab:e}=h();t=t.filter(t=>t.id!==s),e===s&&(e=t.length?t[0].id:void 0),b(t,e)}}),t.$$set=t=>{n(4,e=l(l({},e),o(t))),"title"in t&&n(1,u=t.title),"auth"in t&&n(5,a=t.auth),"icon"in t&&n(6,f=t.icon),"active"in t&&n(0,d=t.active),"noauto"in t&&n(2,p=t.noauto),"valid"in t&&n(7,m=t.valid),"tooltip"in t&&n(8,x=t.tooltip),"$$scope"in t&&n(9,r=t.$$scope)},t.$$.update=()=>{483&t.$$.dirty&&function(){if(h){var{tabs:t,curtab:e}=h();if(s){var n=t.find(t=>t.id===s);n&&(n.title=u,n.auth=a,n.icon=f,n.valid=m,n.tooltip=x)}else s=c(),t=[...t,{id:s,title:u,auth:a,icon:f,valid:m,tooltip:x,setactive:g}],e=d?s:e||s;b(t,e)}}()},e=o(e),[d,u,p,h,e,a,f,m,x,r,i]}class zc extends t{constructor(t){super(),e(this,t,kc,$c,n,{title:1,auth:5,icon:6,active:0,noauto:2,valid:7,tooltip:8})}}const _c=t=>({}),jc=t=>({});function Sc(t,e,n){const l=t.slice();return l[17]=e[n],l[19]=n,l}function Ic(t){let e,n;return e=new cn({props:{tooltip:t[17].tooltip,bottom:!0,$$slots:{default:[Mc]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};4&n&&(l.tooltip=t[17].tooltip),4110&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Ac(t){let e,n;return e=new yt({props:{gray:t[3]!=t[17].id,alt:t[3]==t[17].id,size:6,img:t[17].icon}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};12&n&&(l.gray=t[3]!=t[17].id),12&n&&(l.alt=t[3]==t[17].id),4&n&&(l.img=t[17].icon),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Mc(t){let e,n,l,o,i,u,a,f,d,m=t[17].icon&&Ac(t);function g(){return t[11](t[17],t[19])}return o=new En({props:{id:t[17].title}}),{c(){e=b("button"),m&&m.c(),n=w(),l=b("div"),F(o.$$.fragment),p(e,"aria-label",i=`tab_${t[17].title}/${t[17].auth}`),p(e,"class",u="text-sm "+(t[1]?"":"h-8")+" cursor-pointer z-10 flexrow items-center space-x-1 text-black mr-2 px-3 "+(t[1]?"text-xs py-0":"px-2")+" border rounded "+(t[3]==t[17].id?"bg-white border-c-base font-bold text-c-base hover:border-black":"bg-c-50 text-c-500 border-c-150 hover:border-c-200"))},m(t,i){x(t,e,i),m&&m.m(e,null),h(e,n),h(e,l),O(o,l,null),a=!0,f||(d=S(e,"click",g),f=!0)},p(l,r){(t=l)[17].icon?m?(m.p(t,r),4&r&&s(m,1)):(m=Ac(t),m.c(),s(m,1),m.m(e,n)):m&&(k(),c(m,1,1,()=>{m=null}),z());const f={};4&r&&(f.id=t[17].title),o.$set(f),(!a||4&r&&i!==(i=`tab_${t[17].title}/${t[17].auth}`))&&p(e,"aria-label",i),(!a||14&r&&u!==(u="text-sm "+(t[1]?"":"h-8")+" cursor-pointer z-10 flexrow items-center space-x-1 text-black mr-2 px-3 "+(t[1]?"text-xs py-0":"px-2")+" border rounded "+(t[3]==t[17].id?"bg-white border-c-base font-bold text-c-base hover:border-black":"bg-c-50 text-c-500 border-c-150 hover:border-c-200")))&&p(e,"class",u)},i(t){a||(s(m),s(o.$$.fragment,t),a=!0)},o(t){c(m),c(o.$$.fragment,t),a=!1},d(t){t&&r(e),m&&m.d(),B(o),f=!1,d()}}}function Dc(t){let e,n,l=t[8](t[17]),o=l&&Ic(t);return{c(){o&&o.c(),e=$()},m(t,l){o&&o.m(t,l),x(t,e,l),n=!0},p(t,n){4&n&&(l=t[8](t[17])),l?o?(o.p(t,n),4&n&&s(o,1)):(o=Ic(t),o.c(),s(o,1),o.m(e.parentNode,e)):o&&(k(),c(o,1,1,()=>{o=null}),z())},i(t){n||(s(o),n=!0)},o(t){c(o),n=!1},d(t){t&&r(e),o&&o.d(t)}}}function Bc(t){let e,n,l,o,u,m,g,v,y,$,_=Z(t[2]),j=[];for(let e=0;e<_.length;e+=1)j[e]=Dc(Sc(t,_,e));const S=t=>c(j[t],1,1,()=>{j[t]=null}),I=t[10].head,A=i(I,t,t[12],jc),M=t[10].default,D=i(M,t,t[12],null);return{c(){e=b("div"),n=b("div"),l=b("div");for(let t=0;t<j.length;t+=1)j[t].c();o=w(),u=b("div"),m=w(),A&&A.c(),g=w(),v=b("div"),D&&D.c(),p(u,"class","flex-1"),p(l,"class","flexrow w-full items-end pb-0.5 border-b"),p(v,"class","h-full overflow-y-auto"),p(n,"id",t[0]),p(n,"class",y=(t[9].class||"")+" w-full h-full grid grid-rows-[auto_1fr]"),p(e,"class","h-reset")},m(t,i){x(t,e,i),h(e,n),h(n,l);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(l,null);h(l,o),h(l,u),h(l,m),A&&A.m(l,null),h(n,g),h(n,v),D&&D.m(v,null),$=!0},p(t,[e]){if(510&e){let n;for(_=Z(t[2]),n=0;n<_.length;n+=1){const i=Sc(t,_,n);j[n]?(j[n].p(i,e),s(j[n],1)):(j[n]=Dc(i),j[n].c(),s(j[n],1),j[n].m(l,o))}for(k(),n=_.length;n<j.length;n+=1)S(n);z()}A&&A.p&&(!$||4096&e)&&a(A,I,t,t[12],$?d(I,t[12],e,_c):f(t[12]),jc),D&&D.p&&(!$||4096&e)&&a(D,M,t,t[12],$?d(M,t[12],e,null):f(t[12]),null),(!$||1&e)&&p(n,"id",t[0]),(!$||512&e&&y!==(y=(t[9].class||"")+" w-full h-full grid grid-rows-[auto_1fr]"))&&p(n,"class",y)},i(t){if(!$){for(let t=0;t<_.length;t+=1)s(j[t]);s(A,t),s(D,t),$=!0}},o(t){j=j.filter(Boolean);for(let t=0;t<j.length;t+=1)c(j[t]);c(A,t),c(D,t),$=!1},d(t){t&&r(e),V(j,t),A&&A.d(t),D&&D.d(t)}}}function Oc(t,e,n){let{$$slots:i={},$$scope:r}=e;const{autofocus:c,post:s}=kt();let{name:u,xs:a=!1}=e;const f=G();let d,p=[],m=null;function x(t){for(var e of(n(3,m=t),p))e.setactive(e.id===t);n(2,p=[...p])}tt("TABS",{getdata:function(){return{tabs:p,curtab:m}},setdata:function(t,e){n(2,p=t),x(e)},updatecurrent:x});return t.$$set=t=>{n(9,e=l(l({},e),o(t))),"name"in t&&n(0,u=t.name),"xs"in t&&n(1,a=t.xs),"$$scope"in t&&n(12,r=t.$$scope)},e=o(e),[u,a,p,m,c,f,d,x,function(t){var e=!0;return!(t.valid&&!(e=t.valid()))&&(t.auth&&(e=s.isauth(t.auth)),e)},e,i,async(t,e)=>{x(t.id),c(!0,d),f("click",{id:e,v:t})},r]}class Ec extends t{constructor(t){super(),e(this,t,Oc,Bc,n,{name:0,xs:1})}}function Tc(t){let e,n,l,o,i=(t[0]?.name||"").slice(0,1)+"";return{c(){e=b("div"),n=b("div"),l=g(i),p(e,"class","w-full h-full rounded-full overflow-hidden text-white flex flex-col items-center justify-center uppercase select-none"),p(e,"style",o=`background-color: ${t[9]}; font-size: ${t[1]<20?3.5*t[1]:t[1]}px;`)},m(t,o){x(t,e,o),h(e,n),h(n,l)},p(t,n){1&n&&i!==(i=(t[0]?.name||"").slice(0,1)+"")&&u(l,i),514&n&&o!==(o=`background-color: ${t[9]}; font-size: ${t[1]<20?3.5*t[1]:t[1]}px;`)&&p(e,"style",o)},i:y,o:y,d(t){t&&r(e)}}}function Fc(t){let e,n;return e=new yt({props:{img:"person",size:t[1],pixel:t[2],color:t[4]?"text-c-800":"text-c-150"}}),{c(){F(e.$$.fragment)},m(t,l){O(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.size=t[1]),4&n&&(l.pixel=t[2]),16&n&&(l.color=t[4]?"text-c-800":"text-c-150"),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Cc(t){let e,n,l,o;return{c(){e=b("div"),n=b("img"),N(n.src,l=t[0]?.img)||p(n,"src",l),p(n,"alt",o="avatar_"+t[0]?.name),p(n,"class","w-full h-full object-contain object-center"),p(e,"class","overflow-hidden border border-c-border rounded-full"),p(e,"style",t[7])},m(t,l){x(t,e,l),h(e,n)},p(t,i){1&i&&!N(n.src,l=t[0]?.img)&&p(n,"src",l),1&i&&o!==(o="avatar_"+t[0]?.name)&&p(n,"alt",o),128&i&&p(e,"style",t[7])},i:y,o:y,d(t){t&&r(e)}}}function Pc(t){let e,n;return{c(){e=b("div"),p(e,"class","absolute bottom-0 right-0 rounded-full"),p(e,"style",n=t[2]?`width: ${t[1]/5}px; height: ${t[1]/5}px ; background-color: ${t[8]}`:`width: ${(t[1]||12)/16}rem; height: ${(t[1]||12)/16}rem ; background-color: ${t[8]}`)},m(t,n){x(t,e,n)},p(t,l){262&l&&n!==(n=t[2]?`width: ${t[1]/5}px; height: ${t[1]/5}px ; background-color: ${t[8]}`:`width: ${(t[1]||12)/16}rem; height: ${(t[1]||12)/16}rem ; background-color: ${t[8]}`)&&p(e,"style",n)},d(t){t&&r(e)}}}function Rc(t){let e,n,l,o,m,v,y,$=t[0]?.name+"",k=(t[0]?.nome||t[0]?.cognome)&&Nc(t);const z=t[13].default,_=i(z,t,t[12],null);return{c(){e=b("div"),n=b("div"),l=g("@"),o=g($),m=w(),k&&k.c(),v=w(),_&&_.c(),p(n,"class","text-xs font-bold"),p(e,"class","flex flex-col text-left space-y-0.5")},m(t,i){x(t,e,i),h(e,n),h(n,l),h(n,o),h(e,m),k&&k.m(e,null),h(e,v),_&&_.m(e,null),y=!0},p(t,n){(!y||1&n)&&$!==($=t[0]?.name+"")&&u(o,$),t[0]?.nome||t[0]?.cognome?k?k.p(t,n):(k=Nc(t),k.c(),k.m(e,v)):k&&(k.d(1),k=null),_&&_.p&&(!y||4096&n)&&a(_,z,t,t[12],y?d(z,t[12],n,null):f(t[12]),null)},i(t){y||(s(_,t),y=!0)},o(t){c(_,t),y=!1},d(t){t&&r(e),k&&k.d(),_&&_.d(t)}}}function Nc(t){let e,n,l,o,i=(t[0]?.nome||"")+"",c=(t[0]?.cognome||"")+"";return{c(){e=b("div"),n=g(i),l=w(),o=g(c),p(e,"class","text-xxs")},m(t,i){x(t,e,i),h(e,n),h(e,l),h(e,o)},p(t,e){1&e&&i!==(i=(t[0]?.nome||"")+"")&&u(n,i),1&e&&c!==(c=(t[0]?.cognome||"")+"")&&u(o,c)},d(t){t&&r(e)}}}function Lc(t){let e,n,l,o,i,u,a,f,d,m;const g=[Cc,Fc,Tc],v=[];function y(t,e){return t[0]?.img?0:t[0]?.id?2:1}l=y(t),o=v[l]=g[l](t);let $=t[3]&&Pc(t),_=t[5]&&t[0]?.name&&Rc(t);return{c(){e=b("button"),n=b("div"),o.c(),i=w(),$&&$.c(),u=w(),_&&_.c(),p(n,"class","relative"),p(n,"style",t[7]),p(e,"class",a=`flex ${t[6]?"flex-row space-x-2 items-center":"flex-col space-y-1.5 items-start"} ${t[11].class||""}`)},m(o,r){x(o,e,r),h(e,n),v[l].m(n,null),h(n,i),$&&$.m(n,null),h(e,u),_&&_.m(e,null),f=!0,d||(m=S(e,"click",t[10]),d=!0)},p(t,[r]){let u=l;l=y(t),l===u?v[l].p(t,r):(k(),c(v[u],1,1,()=>{v[u]=null}),z(),o=v[l],o?o.p(t,r):(o=v[l]=g[l](t),o.c()),s(o,1),o.m(n,i)),t[3]?$?$.p(t,r):($=Pc(t),$.c(),$.m(n,null)):$&&($.d(1),$=null),(!f||128&r)&&p(n,"style",t[7]),t[5]&&t[0]?.name?_?(_.p(t,r),33&r&&s(_,1)):(_=Rc(t),_.c(),s(_,1),_.m(e,null)):_&&(k(),c(_,1,1,()=>{_=null}),z()),(!f||2112&r&&a!==(a=`flex ${t[6]?"flex-row space-x-2 items-center":"flex-col space-y-1.5 items-start"} ${t[11].class||""}`))&&p(e,"class",a)},i(t){f||(s(o),s(_),f=!0)},o(t){c(o),c(_),f=!1},d(t){t&&r(e),v[l].d(),$&&$.d(),_&&_.d(),d=!1,m()}}}function Xc(t,e,n){let i,r,c,{$$slots:s={},$$scope:u}=e,{value:a={}}=e,{size:f=10}=e,{pixel:d=!1}=e,{level:p=!1}=e,{selected:m=!1}=e,{extended:x=!1}=e,{row:h=!1}=e;const b=G();return t.$$set=t=>{n(11,e=l(l({},e),o(t))),"value"in t&&n(0,a=t.value),"size"in t&&n(1,f=t.size),"pixel"in t&&n(2,d=t.pixel),"level"in t&&n(3,p=t.level),"selected"in t&&n(4,m=t.selected),"extended"in t&&n(5,x=t.extended),"row"in t&&n(6,h=t.row),"$$scope"in t&&n(12,u=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&n(9,i=["#f5bfd2","#a1cdce","#e5db9c","#beb4c5","#e6a57e","#218b82","#eb96aa","#2cced2","#4382bb","#9c9359","#8c7386","#40393e","#000"][(a?.id||0)%13]),1&t.$$.dirty&&n(8,r=function(t){if(t){if(9==t.level)return"danger";if(3==t.level)return"base";if(2==t.level)return"alt";if(1==t.level)return"transparent"}return"whitesmoke"}(a)),6&t.$$.dirty&&n(7,c=d?`width: ${f}px; height: ${f}px;`:`width: ${(f||12)/4}rem; height: ${(f||12)/4}rem;`)},e=o(e),[a,f,d,p,m,x,h,c,r,i,function(){b("click")},e,u,s]}class Hc extends t{constructor(t){super(),e(this,t,Xc,Lc,n,{value:0,size:1,pixel:2,level:3,selected:4,extended:5,row:6})}}function Zc(t){let e;return{c(){e=b("div"),e.innerHTML='<div class="loader svelte-1r2cbtk"></div>',v(e,"z-index","200"),p(e,"class","fixed top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%]")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function Vc(t){let e,n=t[0]&&Zc();return{c(){n&&n.c(),e=$()},m(t,l){n&&n.m(t,l),x(t,e,l)},p(t,[l]){t[0]?n||(n=Zc(),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:y,o:y,d(t){t&&r(e),n&&n.d(t)}}}function Yc(t,e,n){const{bus:l}=kt();let o,i=!1,r=0;const c=t=>{t?(r||(clearTimeout(o),o=setTimeout(async()=>{n(0,i=!0),await q()},200)),r++):(r--,r<=0&&(r=0,clearTimeout(o),n(0,i=!1)))};return J(()=>{l.on("wait",c)}),K(()=>{l.off("wait",c)}),[i]}class Uc extends t{constructor(t){super(),e(this,t,Yc,Vc,n,{})}}function Wc(t,e,n=100){t&&e&&e.querySelectorAll&&setTimeout(()=>{var t=e.querySelectorAll("input,select,area");(t&&t[0]||(t=e.querySelectorAll("button"))&&t[0])&&t[0].focus()},n)}export{mt as Badge,dn as Bicon,bn as Bpop,kn as Btn,In as BtnCerca,Pn as BtnFile,Xn as Check,Jn as Contenitore,Qn as ContenitoreXY,dl as Cropper,Di as Dtable,Hi as Group,yt as Icon,ir as Imulti,Zl as Input,Br as Json,Fr as Libloader,Xr as Messaggio,uo as Msg,Jr as Pdf,Kr as Scroller,gc as Sinput,En as T,zc as Tab,Ec as Tabs,cn as Tooltip,Hc as User,Uc as Wait,Wc as autofocus,rt as bus,zt as extendcommons,ot as formatDate,lt as getdim,ct as listfromstring,nt as myuuid,ft as strDate,it as toDateStr,ut as toEuro,st as tonum};
|
|
1
|
+
import{SvelteComponent as t,init as e,safe_not_equal as n,assign as l,exclude_internal_props as o,create_slot as i,detach as r,transition_out as c,transition_in as s,set_data as u,update_slot_base as a,get_all_dirty_from_scope as f,get_slot_changes as d,attr as p,toggle_class as m,insert as x,append as h,element as b,text as w,space as g,set_style as v,noop as y,empty as $,group_outros as k,check_outros as z,binding_callbacks as _,run_all as j,listen as S,create_out_transition as I,add_render_callback as A,create_in_transition as M,HtmlTag as B,destroy_component as D,mount_component as F,stop_propagation as E,prevent_default as O,create_component as T,create_bidirectional_transition as C,set_input_value as P,component_subscribe as R,src_url_equal as N,globals as L,bubble as X,select_option as H,ensure_array_like as Z,destroy_each as U,bind as V,add_flush_callback as Y,null_to_empty as W}from"svelte/internal";import{onMount as J,tick as q,createEventDispatcher as G,onDestroy as K,getContext as Q,setContext as tt}from"svelte";import{goto as et}from"$app/navigation";let nt=1e3;function lt(){return nt++,nt}function ot(t,e,n,l,o,i,r,c,s){let u,a=[];function f(t,e,n){return t||(t=e),e?"X"==(n=(n||"_").trim().toLowerCase())&&t!=e?t+"*":"M"==n?t+"M":t:t}return u=f(t,l,r),u&&a.push(u),u=f(e,o,c),u&&a.push(u),u=f(n,i,s),u&&a.push(u),(""+r+c+s).replace(/[_XM]/gi,""),a.join("x")}function it(t){const e=new Date(t),n=e.getDate().toString().padStart(2,"0"),l=(e.getMonth()+1).toString().padStart(2,"0");return`${e.getFullYear()}-${l}-${n}`}function rt(t){if(!t)return"";"number"==typeof t&&(t=t.toDate());let e=t.getDate(),n=t.getMonth()+1,l=t.getFullYear(),o=t.getHours(),i=t.getMinutes();return e=e<10?"0"+e:e,n=n<10?"0"+n:n,o=o<10?"0"+o:o,i=i<10?"0"+i:i,`${e}/${n}/${l} ${o}:${i}`}const ct=new class{constructor(){this.buslist={}}on(t,e){return this.buslist[t]||(this.buslist[t]=[]),this.buslist[t].push(e),this.buslist[t].length-1}emit(t,...e){this.buslist[t]&&this.buslist[t].forEach(t=>t(...e))}off(t,e){this.buslist[t]&&("number"==typeof e?e>=0&&e<this.buslist[t].length&&this.buslist[t].splice(e,1):this.buslist[t]=this.buslist[t].filter(t=>t!==e))}$on(t,e){this.on(t,e)}$off(t,e){this.off(t,e)}$emit(t,...e){this.emit(t,...e)}};function st(t){if(Array.isArray(t))return t;var e=[],n={};if(t){var l=t.split(/[\n;,]/);for(var o of l){var i,r,c=o.search(/[:=#]/);c<0?i=r=o.trim():(i=o.slice(0,c),r=o.slice(c+1)),(i=i.toLowerCase())&&!n[i]&&(n[i]=1,e.push({cod:i,des:r}))}}return e}ct.messaggio=t=>ct.emit("messaggio",t),ct.warning=t=>ct.emit("warning",t),ct.errore=t=>ct.emit("error",t),ct.salvato=t=>ct.emit("messaggio","dati memorizzati!"),ct.wait=t=>ct.emit("wait",t);var ut=(t,e=-1)=>{if(!t)return 0;if("number"==typeof t)return t||0;let n=0;if("string"==typeof t){let e=(t=t.replaceAll(",",".")).match(/^-?[0-9.]+$/g);e&&e.length>0?n=Number(e[0]):/^\s*-?\s*[0-9]+(\.[0-9]+)?\s*$/gi.test(t)?n=parseFloat(t):/[\s\d()-+/*^.]+/gi.test(t)&&(n=0)}if(e>=0){const t=Math.pow(10,e);n=Math.round(n*t)/t}return n||0},at=(t,e,n="")=>0==t?e||"":new Intl.NumberFormat("it-IT",{style:"currency",currency:"EUR"}).format(ut(t))+n;let ft={};var dt=(t,e)=>{if(Date.prototype.getWeek||(Date.prototype.getWeek=function(){var t=new Date(this.getFullYear(),0,1);return Math.ceil(((this-t)/864e5+t.getDay()+1)/7)}),"object"!=typeof t){if(!(t=parseFloat(t||0)))return"";t=t.toDate()}if("week"==e)return"w"+t.getWeek();if(!ft[e])switch(e){case"giorni":{let e=t.toInt();var n=e.diffgiorni((new Date).toInt());return 0==n?"Oggi":-1==n?"Domani":1==n?"Ieri":Math.abs(n)<6?new Intl.DateTimeFormat("it",{weekday:"long"}).format(t).trim():dt(e,"ggmmm")}case"date":case"shortdate":ft[e]=new Intl.DateTimeFormat("it",{weekday:"short",day:"numeric",month:"short",year:"numeric"});break;case"ggmmaa":case"ggmmyy":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"2-digit",year:"2-digit"});break;case"datetime":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"2-digit",year:"numeric",hour12:!1,hour:"numeric",minute:"2-digit"});break;case"yyyy":case"anno":ft[e]=new Intl.DateTimeFormat("it",{year:"numeric"});break;case"ggmmaaaa":case"ggmmyyyy":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"2-digit",year:"numeric"});break;case"ggmm":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"2-digit"});break;case"giorno":case"gg":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit"});break;case"ggmmmaaaa":case"ggmmmyyyy":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"short",year:"numeric"});break;case"ggmmmaa":case"ggmmmyy":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"short",year:"2-digit"});break;case"ggmmm":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"short"});break;case"ggmmmm":ft[e]=new Intl.DateTimeFormat("it",{day:"2-digit",month:"long"});break;case"mmmyy":case"mmmaa":case"mmmyyyy":case"mmmaaaa":ft[e]=new Intl.DateTimeFormat("it",{month:"short",year:"numeric"});break;case"weekday":ft[e]=new Intl.DateTimeFormat("it",{weekday:"long"});break;case"hhmm":ft[e]=new Intl.DateTimeFormat("it",{hour12:!1,hour:"numeric",minute:"2-digit"});break;case"hhmmss":ft[e]=new Intl.DateTimeFormat("it",{hour12:!1,hour:"numeric",minute:"2-digit",second:"2-digit"});break;case"mese":ft[e]=new Intl.DateTimeFormat("it",{month:"long"});break;default:ft[e="."]||(ft[e]=new Intl.DateTimeFormat("it",{weekday:"long",day:"numeric",month:"long",year:"numeric",hour12:!1,hour:"numeric",minute:"2-digit"}))}return ft[e].format(t).trim()};function pt(t){let e,n,l,o,y,$,k=(t[0]||"")+"";const z=t[23].default,_=i(z,t,t[22],null);return{c(){e=b("div"),n=b("div"),l=w(k),o=g(),_&&_.c(),v(e,"width","fit-content"),p(e,"class",y=(t[7].class||"")+" px-2 py-0.5 rounded flex flex-col items-center "+t[6]+" "+(t[4]?"":"whitespace-nowrap")),m(e,"font-bold",t[5]),m(e,"text-sm",t[1]),m(e,"text-xs",t[2]),m(e,"text-lg",t[3])},m(t,i){x(t,e,i),h(e,n),h(n,l),h(e,o),_&&_.m(e,null),$=!0},p(t,[n]){(!$||1&n)&&k!==(k=(t[0]||"")+"")&&u(l,k),_&&_.p&&(!$||4194304&n)&&a(_,z,t,t[22],$?d(z,t[22],n,null):f(t[22]),null),(!$||208&n&&y!==(y=(t[7].class||"")+" px-2 py-0.5 rounded flex flex-col items-center "+t[6]+" "+(t[4]?"":"whitespace-nowrap")))&&p(e,"class",y),(!$||240&n)&&m(e,"font-bold",t[5]),(!$||210&n)&&m(e,"text-sm",t[1]),(!$||212&n)&&m(e,"text-xs",t[2]),(!$||216&n)&&m(e,"text-lg",t[3])},i(t){$||(s(_,t),$=!0)},o(t){c(_,t),$=!1},d(t){t&&r(e),_&&_.d(t)}}}function mt(t,e,n){let i,{$$slots:r={},$$scope:c}=e,{value:s,tipo:u="",warning:a=!1,alt:f=!1,ialt:d=!1,iwarning:p=!1,success:m=!1,isuccess:x=!1,danger:h=!1,idanger:b=!1,base:w=!1,ibase:g=!1,gray:v=!1,igray:y=!1,sm:$=!1,xs:k=!1,lg:z=!1,wrap:_=!1,bold:j=!1,black:S=!1}=e;return t.$$set=t=>{n(7,e=l(l({},e),o(t))),"value"in t&&n(0,s=t.value),"tipo"in t&&n(8,u=t.tipo),"warning"in t&&n(9,a=t.warning),"alt"in t&&n(10,f=t.alt),"ialt"in t&&n(11,d=t.ialt),"iwarning"in t&&n(12,p=t.iwarning),"success"in t&&n(13,m=t.success),"isuccess"in t&&n(14,x=t.isuccess),"danger"in t&&n(15,h=t.danger),"idanger"in t&&n(16,b=t.idanger),"base"in t&&n(17,w=t.base),"ibase"in t&&n(18,g=t.ibase),"gray"in t&&n(19,v=t.gray),"igray"in t&&n(20,y=t.igray),"sm"in t&&n(1,$=t.sm),"xs"in t&&n(2,k=t.xs),"lg"in t&&n(3,z=t.lg),"wrap"in t&&n(4,_=t.wrap),"bold"in t&&n(5,j=t.bold),"black"in t&&n(21,S=t.black),"$$scope"in t&&n(22,c=t.$$scope)},t.$$.update=()=>{1045249&t.$$.dirty&&n(6,i=a||"warning"==u?"bg-b-warning text-c-warning":p||"iwarning"==u?"bg-c-warning text-b-warning":m||"success"==u?"bg-b-success text-c-success":x||"isuccess"==u?"bg-c-success text-b-success":h||"danger"==u?"bg-c-danger text-b-danger":b||"idanger"==u?"bg-b-danger text-c-danger":w||"base"==u?"bg-b-base text-c-base":g||"ibase"==u?"bg-c-base text-b-base":f||"alt"==u?"bg-pink-100 text-pink-700":d||"ialt"==u?"bg-pink-700 text-pink-100":v||"gray"==u?"bg-c-100 text-c-500":y||"igray"==u?"bg-c-800 text-c-100":S||"black"==u?"bg-black text-white":"text-xl monospace")},e=o(e),[s,$,k,z,_,j,i,e,u,a,f,d,p,m,x,h,b,w,g,v,y,S,c,r]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class xt extends t{constructor(t){super(),e(this,t,mt,pt,n,{value:0,tipo:8,warning:9,alt:10,ialt:11,iwarning:12,success:13,isuccess:14,danger:15,idanger:16,base:17,ibase:18,gray:19,igray:20,sm:1,xs:2,lg:3,wrap:4,bold:5,black:21})}}function ht(t){let e;function n(t,e){return t[4]?gt:t[1]?bt:wt}let l=n(t),o=l(t);return{c(){o.c(),e=$()},m(t,n){o.m(t,n),x(t,e,n)},p(t,i){l===(l=n(t))&&o?o.p(t,i):(o.d(1),o=l(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&r(e),o.d(t)}}}function bt(t){let e,n,l,o,i;return{c(){e=b("figure"),n=b("canvas"),p(n,"class",l=`w-full h-full ${t[5]()}`),p(n,"style",o=`-webkit-mask: url(${t[9]}) 50% 50% no-repeat;\n mask: url(${t[9]}) 50% 50% no-repeat;\n -webkit-mask-size:contain;\n mask-size:contain;\n aspect-ratio: 1 / 1;`),p(e,"class",i=t[11].class||""),p(e,"style",t[8])},m(t,l){x(t,e,l),h(e,n)},p(t,r){32&r&&l!==(l=`w-full h-full ${t[5]()}`)&&p(n,"class",l),512&r&&o!==(o=`-webkit-mask: url(${t[9]}) 50% 50% no-repeat;\n mask: url(${t[9]}) 50% 50% no-repeat;\n -webkit-mask-size:contain;\n mask-size:contain;\n aspect-ratio: 1 / 1;`)&&p(n,"style",o),2048&r&&i!==(i=t[11].class||"")&&p(e,"class",i),256&r&&p(e,"style",t[8])},d(t){t&&r(e)}}}function wt(t){let e,n,l=(t[10][t[0]]?t[10][t[0]]:t[0])+"";return{c(){e=b("div"),p(e,"class",n=`select-none bg-transparent block material-symbols-rounded leading-none notranslate ${t[11].class||""} ${t[2]}`),p(e,"style",t[7])},m(t,n){x(t,e,n),e.innerHTML=l},p(t,o){1&o&&l!==(l=(t[10][t[0]]?t[10][t[0]]:t[0])+"")&&(e.innerHTML=l),2052&o&&n!==(n=`select-none bg-transparent block material-symbols-rounded leading-none notranslate ${t[11].class||""} ${t[2]}`)&&p(e,"class",n),128&o&&p(e,"style",t[7])},d(t){t&&r(e)}}}function gt(t){let e,n,l,o;return{c(){e=b("div"),n=w(t[0]),p(e,"class",l=t[2]+" "+(t[11].class||"")+" w-full h-full text-center flex items-center justify-center"),p(e,"style",o=t[6]+" "+t[8])},m(t,l){x(t,e,l),h(e,n)},p(t,i){1&i&&u(n,t[0]),2052&i&&l!==(l=t[2]+" "+(t[11].class||"")+" w-full h-full text-center flex items-center justify-center")&&p(e,"class",l),320&i&&o!==(o=t[6]+" "+t[8])&&p(e,"style",o)},d(t){t&&r(e)}}}function vt(t){let e,n=t[3]&&ht(t);return{c(){n&&n.c(),e=$()},m(t,l){n&&n.m(t,l),x(t,e,l)},p(t,[l]){t[3]?n?n.p(t,l):(n=ht(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:y,o:y,d(t){t&&r(e),n&&n.d(t)}}}function yt(t,e,n){let i,r,c,s,u,a,f,{img:d="close"}=e,{size:p=8}=e,{color:m="text-c-800 hover:text-black"}=e,{pixel:x=!1}=e,{local:h=!1}=e,{black:b=!1,alt:w=!1,readonly:g=!1}=e;let v=!1;return J(async()=>{await document.fonts.ready,n(3,v=!0)}),t.$$set=t=>{n(11,e=l(l({},e),o(t))),"img"in t&&n(0,d=t.img),"size"in t&&n(12,p=t.size),"color"in t&&n(13,m=t.color),"pixel"in t&&n(14,x=t.pixel),"local"in t&&n(1,h=t.local),"black"in t&&n(15,b=t.black),"alt"in t&&n(16,w=t.alt),"readonly"in t&&n(17,g=t.readonly)},t.$$.update=()=>{237568&t.$$.dirty&&n(2,i=g?"text-c-200":w?"text-c-base hover:text-black":b?"text-c-100 hover:text-white":m),20480&t.$$.dirty&&n(8,c=x?`width: ${p}px; height: ${p}px;`:`width: ${(p||12)/4}rem; height: ${(p||12)/4}rem;`),20480&t.$$.dirty&&n(7,s=x?`font-size: ${p}px;`:`font-size: ${(p||12)/4}rem;`),20480&t.$$.dirty&&n(6,u=x?`font-size: ${.8*p}px;`:`font-size: ${.8*(p||12)/4}rem;`),8196&t.$$.dirty&&n(5,a=()=>i.replaceAll("text-","bg-"))},n(9,r=`/svg/${d}.svg`),n(4,f=d?.length>0&&(38==d.charCodeAt(0)||d.charCodeAt(0)>1e3)),e=o(e),[d,h,i,v,f,a,u,s,c,r,{dashboard:"",people_alt:"",local_offer:"",local_shipping:"",view_list:"",calendar_month:"",auto_mode:"",store:"",paid:"",account_balance:"",tips_and_updates:"",bug_report:""},e,p,m,x,b,w,g]}class $t extends t{constructor(t){super(),e(this,t,yt,vt,n,{img:0,size:12,color:13,pixel:14,local:1,black:15,alt:16,readonly:17})}}let kt={bus:ct,myuuid:lt,formatDate:it,toDateStr:rt,listfromstring:st,toEuro:at,tonum:ut,strDate:dt,getdim:ot,autofocus:function(t,e,n=100){if(!t)return;e&&e.querySelectorAll&&setTimeout(()=>{var t=e.querySelectorAll("input,select,area");(t&&t[0]||(t=e.querySelectorAll("button"))&&t[0])&&t[0].focus()},n)},setStorage:function(t,e){window?.localStorage&&(null==e||""===e?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e)))},getStorage:function(t,e){var n;window?.localStorage&&(n=window.localStorage.getItem(t));return n?JSON.parse(n):e}};function zt(){return kt}function _t(t){t||(t={});for(let e in t)kt[e]=t[e];return kt}const jt=t=>t;function St(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function It(t){const e=t-1;return e*e*e+1}function At(t){return Math.sin(-13*(t+1)*Math.PI/2)*Math.pow(2,-10*t)+1}function Mt(t,{delay:e=0,duration:n=400,easing:l=jt}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:l,css:t=>"opacity: "+t*o}}function Bt(t,{delay:e=0,duration:n=400,easing:l=It,x:o=0,y:i=0,opacity:r=0}={}){const c=getComputedStyle(t),s=+c.opacity,u="none"===c.transform?"":c.transform,a=s*(1-r),[f,d]=St(o),[p,m]=St(i);return{delay:e,duration:n,easing:l,css:(t,e)=>`\n\t\t\ttransform: ${u} translate(${(1-t)*f}${d}, ${(1-t)*p}${m});\n\t\t\topacity: ${s-a*e}`}}function Dt(t,{delay:e=0,duration:n=400,easing:l=It,start:o=0,opacity:i=0}={}){const r=getComputedStyle(t),c=+r.opacity,s="none"===r.transform?"":r.transform,u=1-o,a=c*(1-i);return{delay:e,duration:n,easing:l,css:(t,e)=>`\n\t\t\ttransform: ${s} scale(${1-u*e});\n\t\t\topacity: ${c-a*e}\n\t\t`}}const Ft=Math.min,Et=Math.max,Ot=Math.round,Tt=t=>({x:t,y:t}),Ct={left:"right",right:"left",bottom:"top",top:"bottom"},Pt={start:"end",end:"start"};function Rt(t,e,n){return Et(t,Ft(e,n))}function Nt(t,e){return"function"==typeof t?t(e):t}function Lt(t){return t.split("-")[0]}function Xt(t){return t.split("-")[1]}function Ht(t){return"x"===t?"y":"x"}function Zt(t){return"y"===t?"height":"width"}const Ut=new Set(["top","bottom"]);function Vt(t){return Ut.has(Lt(t))?"y":"x"}function Yt(t){return Ht(Vt(t))}function Wt(t){return t.replace(/start|end/g,t=>Pt[t])}const Jt=["left","right"],qt=["right","left"],Gt=["top","bottom"],Kt=["bottom","top"];function Qt(t,e,n,l){const o=Xt(t);let i=function(t,e,n){switch(t){case"top":case"bottom":return n?e?qt:Jt:e?Jt:qt;case"left":case"right":return e?Gt:Kt;default:return[]}}(Lt(t),"start"===n,l);return o&&(i=i.map(t=>t+"-"+o),e&&(i=i.concat(i.map(Wt)))),i}function te(t){return t.replace(/left|right|bottom|top/g,t=>Ct[t])}function ee(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function ne(t){const{x:e,y:n,width:l,height:o}=t;return{width:l,height:o,top:n,left:e,right:e+l,bottom:n+o,x:e,y:n}}function le(t,e,n){let{reference:l,floating:o}=t;const i=Vt(e),r=Yt(e),c=Zt(r),s=Lt(e),u="y"===i,a=l.x+l.width/2-o.width/2,f=l.y+l.height/2-o.height/2,d=l[c]/2-o[c]/2;let p;switch(s){case"top":p={x:a,y:l.y-o.height};break;case"bottom":p={x:a,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-o.width,y:f};break;default:p={x:l.x,y:l.y}}switch(Xt(e)){case"start":p[r]-=d*(n&&u?-1:1);break;case"end":p[r]+=d*(n&&u?-1:1)}return p}async function oe(t,e){var n;void 0===e&&(e={});const{x:l,y:o,platform:i,rects:r,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:a="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Nt(e,t),m=ee(p),x=c[d?"floating"===f?"reference":"floating":f],h=ne(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(x)))||n?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:a,strategy:s})),b="floating"===f?{x:l,y:o,width:r.floating.width,height:r.floating.height}:r.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),g=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},v=ne(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:w,strategy:s}):b);return{top:(h.top-v.top+m.top)/g.y,bottom:(v.bottom-h.bottom+m.bottom)/g.y,left:(h.left-v.left+m.left)/g.x,right:(v.right-h.right+m.right)/g.x}}const ie=new Set(["left","top"]);function re(){return"undefined"!=typeof window}function ce(t){return ae(t)?(t.nodeName||"").toLowerCase():"#document"}function se(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ue(t){var e;return null==(e=(ae(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ae(t){return!!re()&&(t instanceof Node||t instanceof se(t).Node)}function fe(t){return!!re()&&(t instanceof Element||t instanceof se(t).Element)}function de(t){return!!re()&&(t instanceof HTMLElement||t instanceof se(t).HTMLElement)}function pe(t){return!(!re()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof se(t).ShadowRoot)}const me=new Set(["inline","contents"]);function xe(t){const{overflow:e,overflowX:n,overflowY:l,display:o}=Se(t);return/auto|scroll|overlay|hidden|clip/.test(e+l+n)&&!me.has(o)}const he=new Set(["table","td","th"]);function be(t){return he.has(ce(t))}const we=[":popover-open",":modal"];function ge(t){return we.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const ve=["transform","translate","scale","rotate","perspective"],ye=["transform","translate","scale","rotate","perspective","filter"],$e=["paint","layout","strict","content"];function ke(t){const e=ze(),n=fe(t)?Se(t):t;return ve.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||ye.some(t=>(n.willChange||"").includes(t))||$e.some(t=>(n.contain||"").includes(t))}function ze(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const _e=new Set(["html","body","#document"]);function je(t){return _e.has(ce(t))}function Se(t){return se(t).getComputedStyle(t)}function Ie(t){return fe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ae(t){if("html"===ce(t))return t;const e=t.assignedSlot||t.parentNode||pe(t)&&t.host||ue(t);return pe(e)?e.host:e}function Me(t){const e=Ae(t);return je(e)?t.ownerDocument?t.ownerDocument.body:t.body:de(e)&&xe(e)?e:Me(e)}function Be(t,e,n){var l;void 0===e&&(e=[]);const o=Me(t),i=o===(null==(l=t.ownerDocument)?void 0:l.body),r=se(o);return i?(De(r),e.concat(r,r.visualViewport||[],xe(o)?o:[],[])):e.concat(o,Be(o,[]))}function De(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Fe(t){const e=Se(t);let n=parseFloat(e.width)||0,l=parseFloat(e.height)||0;const o=de(t),i=o?t.offsetWidth:n,r=o?t.offsetHeight:l,c=Ot(n)!==i||Ot(l)!==r;return c&&(n=i,l=r),{width:n,height:l,$:c}}function Ee(t){return fe(t)?t:t.contextElement}function Oe(t){const e=Ee(t);if(!de(e))return Tt(1);const n=e.getBoundingClientRect(),{width:l,height:o,$:i}=Fe(e);let r=(i?Ot(n.width):n.width)/l,c=(i?Ot(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),c&&Number.isFinite(c)||(c=1),{x:r,y:c}}const Te=Tt(0);function Ce(t){const e=se(t);return ze()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Te}function Pe(t,e,n,l){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),i=Ee(t);let r=Tt(1);e&&(l?fe(l)&&(r=Oe(l)):r=Oe(t));const c=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==se(t))&&e}(i,n,l)?Ce(i):Tt(0);let s=(o.left+c.x)/r.x,u=(o.top+c.y)/r.y,a=o.width/r.x,f=o.height/r.y;if(i){const t=se(i),e=l&&fe(l)?se(l):l;let n=t,o=De(n);for(;o&&l&&e!==n;){const t=Oe(o),e=o.getBoundingClientRect(),l=Se(o),i=e.left+(o.clientLeft+parseFloat(l.paddingLeft))*t.x,r=e.top+(o.clientTop+parseFloat(l.paddingTop))*t.y;s*=t.x,u*=t.y,a*=t.x,f*=t.y,s+=i,u+=r,n=se(o),o=De(n)}}return ne({width:a,height:f,x:s,y:u})}function Re(t,e){const n=Ie(t).scrollLeft;return e?e.left+n:Pe(ue(t)).left+n}function Ne(t,e,n){void 0===n&&(n=!1);const l=t.getBoundingClientRect();return{x:l.left+e.scrollLeft-(n?0:Re(t,l)),y:l.top+e.scrollTop}}const Le=new Set(["absolute","fixed"]);function Xe(t,e,n){let l;if("viewport"===e)l=function(t,e){const n=se(t),l=ue(t),o=n.visualViewport;let i=l.clientWidth,r=l.clientHeight,c=0,s=0;if(o){i=o.width,r=o.height;const t=ze();(!t||t&&"fixed"===e)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:r,x:c,y:s}}(t,n);else if("document"===e)l=function(t){const e=ue(t),n=Ie(t),l=t.ownerDocument.body,o=Et(e.scrollWidth,e.clientWidth,l.scrollWidth,l.clientWidth),i=Et(e.scrollHeight,e.clientHeight,l.scrollHeight,l.clientHeight);let r=-n.scrollLeft+Re(t);const c=-n.scrollTop;return"rtl"===Se(l).direction&&(r+=Et(e.clientWidth,l.clientWidth)-o),{width:o,height:i,x:r,y:c}}(ue(t));else if(fe(e))l=function(t,e){const n=Pe(t,!0,"fixed"===e),l=n.top+t.clientTop,o=n.left+t.clientLeft,i=de(t)?Oe(t):Tt(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:o*i.x,y:l*i.y}}(e,n);else{const n=Ce(t);l={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ne(l)}function He(t,e){const n=Ae(t);return!(n===e||!fe(n)||je(n))&&("fixed"===Se(n).position||He(n,e))}function Ze(t,e,n){const l=de(e),o=ue(e),i="fixed"===n,r=Pe(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const s=Tt(0);function u(){s.x=Re(o)}if(l||!l&&!i)if(("body"!==ce(e)||xe(o))&&(c=Ie(e)),l){const t=Pe(e,!0,i,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else o&&u();i&&!l&&o&&u();const a=!o||l||i?Tt(0):Ne(o,c);return{x:r.left+c.scrollLeft-s.x-a.x,y:r.top+c.scrollTop-s.y-a.y,width:r.width,height:r.height}}function Ue(t){return"static"===Se(t).position}function Ve(t,e){if(!de(t)||"fixed"===Se(t).position)return null;if(e)return e(t);let n=t.offsetParent;return ue(t)===n&&(n=n.ownerDocument.body),n}function Ye(t,e){const n=se(t);if(ge(t))return n;if(!de(t)){let e=Ae(t);for(;e&&!je(e);){if(fe(e)&&!Ue(e))return e;e=Ae(e)}return n}let l=Ve(t,e);for(;l&&be(l)&&Ue(l);)l=Ve(l,e);return l&&je(l)&&Ue(l)&&!ke(l)?n:l||function(t){let e=Ae(t);for(;de(e)&&!je(e);){if(ke(e))return e;if(ge(e))return null;e=Ae(e)}return null}(t)||n}const We={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:l,strategy:o}=t;const i="fixed"===o,r=ue(l),c=!!e&&ge(e.floating);if(l===r||c&&i)return n;let s={scrollLeft:0,scrollTop:0},u=Tt(1);const a=Tt(0),f=de(l);if((f||!f&&!i)&&(("body"!==ce(l)||xe(r))&&(s=Ie(l)),de(l))){const t=Pe(l);u=Oe(l),a.x=t.x+l.clientLeft,a.y=t.y+l.clientTop}const d=!r||f||i?Tt(0):Ne(r,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+a.x+d.x,y:n.y*u.y-s.scrollTop*u.y+a.y+d.y}},getDocumentElement:ue,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:l,strategy:o}=t;const i="clippingAncestors"===n?ge(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let l=Be(t,[]).filter(t=>fe(t)&&"body"!==ce(t)),o=null;const i="fixed"===Se(t).position;let r=i?Ae(t):t;for(;fe(r)&&!je(r);){const e=Se(r),n=ke(r);n||"fixed"!==e.position||(o=null),(i?!n&&!o:!n&&"static"===e.position&&o&&Le.has(o.position)||xe(r)&&!n&&He(t,r))?l=l.filter(t=>t!==r):o=e,r=Ae(r)}return e.set(t,l),l}(e,this._c):[].concat(n),r=[...i,l],c=r[0],s=r.reduce((t,n)=>{const l=Xe(e,n,o);return t.top=Et(l.top,t.top),t.right=Ft(l.right,t.right),t.bottom=Ft(l.bottom,t.bottom),t.left=Et(l.left,t.left),t},Xe(e,c,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ye,getElementRects:async function(t){const e=this.getOffsetParent||Ye,n=this.getDimensions,l=await n(t.floating);return{reference:Ze(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Fe(t);return{width:e,height:n}},getScale:Oe,isElement:fe,isRTL:function(t){return"rtl"===Se(t).direction}},Je=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,l;const{x:o,y:i,placement:r,middlewareData:c}=e,s=await async function(t,e){const{placement:n,platform:l,elements:o}=t,i=await(null==l.isRTL?void 0:l.isRTL(o.floating)),r=Lt(n),c=Xt(n),s="y"===Vt(n),u=ie.has(r)?-1:1,a=i&&s?-1:1,f=Nt(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&"number"==typeof m&&(p="end"===c?-1*m:m),s?{x:p*a,y:d*u}:{x:d*u,y:p*a}}(e,t);return r===(null==(n=c.offset)?void 0:n.placement)&&null!=(l=c.arrow)&&l.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:r}}}}},qe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:l,placement:o}=e,{mainAxis:i=!0,crossAxis:r=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=Nt(t,e),u={x:n,y:l},a=await oe(e,s),f=Vt(Lt(o)),d=Ht(f);let p=u[d],m=u[f];if(i){const t="y"===d?"bottom":"right";p=Rt(p+a["y"===d?"top":"left"],p,p-a[t])}if(r){const t="y"===f?"bottom":"right";m=Rt(m+a["y"===f?"top":"left"],m,m-a[t])}const x=c.fn({...e,[d]:p,[f]:m});return{...x,data:{x:x.x-n,y:x.y-l,enabled:{[d]:i,[f]:r}}}}}},Ge=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,l;const{placement:o,middlewareData:i,rects:r,initialPlacement:c,platform:s,elements:u}=e,{mainAxis:a=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:x=!0,...h}=Nt(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=Lt(o),w=Vt(c),g=Lt(c)===c,v=await(null==s.isRTL?void 0:s.isRTL(u.floating)),y=d||(g||!x?[te(c)]:function(t){const e=te(t);return[Wt(t),e,Wt(e)]}(c)),$="none"!==m;!d&&$&&y.push(...Qt(c,x,m,v));const k=[c,...y],z=await oe(e,h),_=[];let j=(null==(l=i.flip)?void 0:l.overflows)||[];if(a&&_.push(z[b]),f){const t=function(t,e,n){void 0===n&&(n=!1);const l=Xt(t),o=Yt(t),i=Zt(o);let r="x"===o?l===(n?"end":"start")?"right":"left":"start"===l?"bottom":"top";return e.reference[i]>e.floating[i]&&(r=te(r)),[r,te(r)]}(o,r,v);_.push(z[t[0]],z[t[1]])}if(j=[...j,{placement:o,overflows:_}],!_.every(t=>t<=0)){var S,I;const t=((null==(S=i.flip)?void 0:S.index)||0)+1,e=k[t];if(e){if(!("alignment"===f&&w!==Vt(e))||j.every(t=>t.overflows[0]>0&&Vt(t.placement)===w))return{data:{index:t,overflows:j},reset:{placement:e}}}let n=null==(I=j.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var A;const t=null==(A=j.filter(t=>{if($){const e=Vt(t.placement);return e===w||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(n=t);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},Ke=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:l,placement:o,rects:i,platform:r,elements:c,middlewareData:s}=e,{element:u,padding:a=0}=Nt(t,e)||{};if(null==u)return{};const f=ee(a),d={x:n,y:l},p=Yt(o),m=Zt(p),x=await r.getDimensions(u),h="y"===p,b=h?"top":"left",w=h?"bottom":"right",g=h?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[p]-d[p]-i.floating[m],y=d[p]-i.reference[p],$=await(null==r.getOffsetParent?void 0:r.getOffsetParent(u));let k=$?$[g]:0;k&&await(null==r.isElement?void 0:r.isElement($))||(k=c.floating[g]||i.floating[m]);const z=v/2-y/2,_=k/2-x[m]/2-1,j=Ft(f[b],_),S=Ft(f[w],_),I=j,A=k-x[m]-S,M=k/2-x[m]/2+z,B=Rt(I,M,A),D=!s.arrow&&null!=Xt(o)&&M!==B&&i.reference[m]/2-(M<I?j:S)-x[m]/2<0,F=D?M<I?M-I:M-A:0;return{[p]:d[p]+F,data:{[p]:B,centerOffset:M-B-F,...D&&{alignmentOffset:F}},reset:D}}}),Qe=(t,e,n)=>{const l=new Map,o={platform:We,...n},i={...o.platform,_c:l};return(async(t,e,n)=>{const{placement:l="bottom",strategy:o="absolute",middleware:i=[],platform:r}=n,c=i.filter(Boolean),s=await(null==r.isRTL?void 0:r.isRTL(e));let u=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:a,y:f}=le(u,l,s),d=l,p={},m=0;for(let n=0;n<c.length;n++){const{name:i,fn:x}=c[n],{x:h,y:b,data:w,reset:g}=await x({x:a,y:f,initialPlacement:l,placement:d,strategy:o,middlewareData:p,rects:u,platform:r,elements:{reference:t,floating:e}});a=null!=h?h:a,f=null!=b?b:f,p={...p,[i]:{...p[i],...w}},g&&m<=50&&(m++,"object"==typeof g&&(g.placement&&(d=g.placement),g.rects&&(u=!0===g.rects?await r.getElementRects({reference:t,floating:e,strategy:o}):g.rects),({x:a,y:f}=le(u,d,s))),n=-1)}return{x:a,y:f,placement:d,strategy:o,middlewareData:p}})(t,e,{...o,platform:i})},tn=t=>({}),en=t=>({});function nn(t){let e;const n=t[13].default,l=i(n,t,t[12],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||4096&o)&&a(l,n,t,t[12],e?d(n,t[12],o,null):f(t[12]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function ln(t){let e,n,l,o,u,m;const h=t[13].default,w=i(h,t,t[12],null);let y=t[1]&&on(t);return{c(){e=b("span"),w&&w.c(),n=g(),y&&y.c(),l=$(),p(e,"class","relative"),v(e,"line-height","0 ")},m(i,r){x(i,e,r),w&&w.m(e,null),x(i,n,r),y&&y.m(i,r),x(i,l,r),o=!0,u||(m=[S(e,"focus",t[4]),S(e,"blur",t[5]),S(e,"mouseenter",t[4]),S(e,"mouseleave",t[5])],u=!0)},p(t,e){w&&w.p&&(!o||4096&e)&&a(w,h,t,t[12],o?d(h,t[12],e,null):f(t[12]),null),t[1]?y?(y.p(t,e),2&e&&s(y,1)):(y=on(t),y.c(),s(y,1),y.m(l.parentNode,l)):y&&(k(),c(y,1,1,()=>{y=null}),z())},i(t){o||(s(w,t),s(y),o=!0)},o(t){c(w,t),c(y),o=!1},d(t){t&&(r(e),r(n),r(l)),w&&w.d(t),y&&y.d(t),u=!1,j(m)}}}function on(t){let e,n,l,o,u,m,w,y,k;const z=t[13].tooltip,_=i(z,t,t[12],en),j=_||function(t){let e,n;return{c(){e=new B(!1),n=$(),e.a=n},m(l,o){e.m(t[0],l,o),x(l,n,o)},p(t,n){1&n&&e.p(t[0])},d(t){t&&(r(n),e.d())}}}(t);return{c(){e=b("button"),j&&j.c(),n=g(),l=b("div"),p(l,"class","absolute bg-c-800 w-2 h-2"),v(l,"transform","rotate(45deg)"),p(e,"class",o="fixed top-0 left-0 max-w-max min-w-max text-xs text-white z-[5000] bg-c-800 rounded-md p-2 "+(t[6].class||""))},m(o,i){x(o,e,i),j&&j.m(e,null),h(e,n),h(e,l),t[14](l),t[15](e),w=!0,y||(k=S(e,"click",t[5]),y=!0)},p(t,n){_?_.p&&(!w||4096&n)&&a(_,z,t,t[12],w?d(z,t[12],n,tn):f(t[12]),en):j&&j.p&&(!w||1&n)&&j.p(t,w?n:-1),(!w||64&n&&o!==(o="fixed top-0 left-0 max-w-max min-w-max text-xs text-white z-[5000] bg-c-800 rounded-md p-2 "+(t[6].class||"")))&&p(e,"class",o)},i(t){w||(s(j,t),t&&A(()=>{w&&(m&&m.end(1),u=M(e,Mt,{duration:300}),u.start())}),w=!0)},o(t){c(j,t),u&&u.invalidate(),t&&(m=I(e,Mt,{duration:300})),w=!1},d(n){n&&r(e),j&&j.d(n),t[14](null),t[15](null),n&&m&&m.end(),y=!1,k()}}}function rn(t){let e,n,l,o;const i=[ln,nn],u=[];function a(t,e){return t[0]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,[o]){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function cn(t,e,n){let i,r,c,{$$slots:s={},$$scope:u}=e,{tooltip:a}=e,{bottom:f,callback:d,left:p,right:m,maxtime:x=2e3}=e,h=!1;function b(){i&&clearTimeout(i),i=0,n(1,h=!1)}return t.$$set=t=>{n(6,e=l(l({},e),o(t))),"tooltip"in t&&n(0,a=t.tooltip),"bottom"in t&&n(7,f=t.bottom),"callback"in t&&n(8,d=t.callback),"left"in t&&n(9,p=t.left),"right"in t&&n(10,m=t.right),"maxtime"in t&&n(11,x=t.maxtime),"$$scope"in t&&n(12,u=t.$$scope)},e=o(e),[a,h,r,c,async function(t){d&&"function"==typeof d&&await d(),n(1,h=!0),await q(),function(t){t.target&&r&&c&&Qe(t.target,r,{placement:f?"bottom":p?"left":m?"right":"top",middleware:[Je(6),Ge(),qe({padding:5}),Ke({element:c})]}).then(({x:t,y:e,placement:n,middlewareData:l})=>{Object.assign(r.style,{left:`${t}px`,top:`${e}px`,zIndex:1e3});const{x:o,y:i}=l.arrow,s={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];c&&Object.assign(c.style,{left:null!=o?`${o}px`:"",top:null!=i?`${i}px`:"",right:"",bottom:"",[s]:"-4px"})})}(t),x&&(i=setTimeout(()=>{b()},x))},b,e,f,d,p,m,x,u,s,function(t){_[t?"unshift":"push"](()=>{c=t,n(3,c)})},function(t){_[t?"unshift":"push"](()=>{r=t,n(2,r)})}]}class sn extends t{constructor(t){super(),e(this,t,cn,rn,n,{tooltip:0,bottom:7,callback:8,left:9,right:10,maxtime:11})}}function un(t){let e,n,l,o,i,u,a,f;return n=new sn({props:{tooltip:t[16],$$slots:{default:[an]},$$scope:{ctx:t}}}),{c(){e=b("button"),T(n.$$.fragment),p(e,"aria-label",l=`btnico_${t[0]}`),p(e,"style",t[18]),p(e,"tabindex",o=t[13]?"0":"-1"),p(e,"class",i=t[20](t[1],t[6],t[8],t[11],t[3],t[2],t[5],t[9],t[4],t[7])),m(e,"noprint",!0),m(e,"cursor-pointer",!t[12])},m(l,o){x(l,e,o),F(n,e,null),u=!0,a||(f=S(e,"click",E(O(t[19]))),a=!0)},p(t,r){const c={};65536&r[0]&&(c.tooltip=t[16]),134272929&r[0]&&(c.$$scope={dirty:r,ctx:t}),n.$set(c),(!u||1&r[0]&&l!==(l=`btnico_${t[0]}`))&&p(e,"aria-label",l),(!u||262144&r[0])&&p(e,"style",t[18]),(!u||8192&r[0]&&o!==(o=t[13]?"0":"-1"))&&p(e,"tabindex",o),(!u||3070&r[0]&&i!==(i=t[20](t[1],t[6],t[8],t[11],t[3],t[2],t[5],t[9],t[4],t[7])))&&p(e,"class",i),(!u||3070&r[0])&&m(e,"noprint",!0),(!u||7166&r[0])&&m(e,"cursor-pointer",!t[12])},i(t){u||(s(n.$$.fragment,t),u=!0)},o(t){c(n.$$.fragment,t),u=!1},d(t){t&&r(e),D(n),a=!1,f()}}}function an(t){let e,n,l;e=new $t({props:{img:t[0],size:t[7]?t[15]:t[15]>4?t[15]-2:3,black:!(t[5]||t[9]||t[8]||t[10]),readonly:t[12],local:t[14],alt:t[8],color:t[10]?"text-header hover:text-white":t[5]||t[9]?"text-c-800 hover:text-black":""}});const o=t[26].default,u=i(o,t,t[27],null);return{c(){T(e.$$.fragment),n=g(),u&&u.c()},m(t,o){F(e,t,o),x(t,n,o),u&&u.m(t,o),l=!0},p(t,n){const i={};1&n[0]&&(i.img=t[0]),32896&n[0]&&(i.size=t[7]?t[15]:t[15]>4?t[15]-2:3),1824&n[0]&&(i.black=!(t[5]||t[9]||t[8]||t[10])),4096&n[0]&&(i.readonly=t[12]),16384&n[0]&&(i.local=t[14]),256&n[0]&&(i.alt=t[8]),1568&n[0]&&(i.color=t[10]?"text-header hover:text-white":t[5]||t[9]?"text-c-800 hover:text-black":""),e.$set(i),u&&u.p&&(!l||134217728&n[0])&&a(u,o,t,t[27],l?d(o,t[27],n,null):f(t[27]),null)},i(t){l||(s(e.$$.fragment,t),s(u,t),l=!0)},o(t){c(e.$$.fragment,t),c(u,t),l=!1},d(t){t&&r(n),D(e,t),u&&u.d(t)}}}function fn(t){let e,n,l=t[17]&&un(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,n){t[17]?l?(l.p(t,n),131072&n[0]&&s(l,1)):(l=un(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function dn(t,e,n){let i,r,c,s,{$$slots:u={},$$scope:a}=e;const{user:f,post:d}=zt(),p=G();let{img:m="yoga"}=e,{black:x=!1}=e,{right:h=!1}=e,{left:b=!1}=e,{center:w=!1}=e,{white:g=!1}=e,{danger:v=!1}=e,{noborder:y=!1}=e,{alt:$=!1}=e,{gray:k=!1}=e,{header:z=!1}=e,{tooltip:_}=e,{warning:j=!1}=e,{readonly:S=!1}=e,{auth:I=""}=e,{size:A=8}=e,{sm:M=!1}=e,{lg:B=!1}=e,{focus:D=!1}=e,{local:F=!1}=e;const E={file_download:"Esporta i dati in formato XLSX",filter_alt:"Seleziona e filtra le colonne","✚":"Aggiunge",delete:"Cancella","✎":"Modifica"};return t.$$set=t=>{n(32,e=l(l({},e),o(t))),"img"in t&&n(0,m=t.img),"black"in t&&n(1,x=t.black),"right"in t&&n(2,h=t.right),"left"in t&&n(3,b=t.left),"center"in t&&n(4,w=t.center),"white"in t&&n(5,g=t.white),"danger"in t&&n(6,v=t.danger),"noborder"in t&&n(7,y=t.noborder),"alt"in t&&n(8,$=t.alt),"gray"in t&&n(9,k=t.gray),"header"in t&&n(10,z=t.header),"tooltip"in t&&n(21,_=t.tooltip),"warning"in t&&n(11,j=t.warning),"readonly"in t&&n(12,S=t.readonly),"auth"in t&&n(22,I=t.auth),"size"in t&&n(23,A=t.size),"sm"in t&&n(24,M=t.sm),"lg"in t&&n(25,B=t.lg),"focus"in t&&n(13,D=t.focus),"local"in t&&n(14,F=t.local),"$$scope"in t&&n(27,a=t.$$scope)},t.$$.update=()=>{58720256&t.$$.dirty[0]&&n(15,i=B?10:M?6:A||8),32768&t.$$.dirty[0]&&n(18,r=`width: ${(i||12)/4}rem; height: ${(i||12)/4}rem; `),4194304&t.$$.dirty[0]&&n(17,c=!I||d.isauth(I)),2097153&t.$$.dirty[0]&&n(16,s=_||E[m])},e=o(e),[m,x,h,b,w,g,v,y,$,k,z,j,S,D,F,i,s,c,r,function(t){S||p("click",t.target)},function(){var t=[e.class||""];return t.push("relative"),z||(b?t.push("rounded-l outline-c-200"):h?t.push("rounded-r !ml-0 outline-c-200"):w?t.push("!mr-0 !ml-0 border-r border-c-100"):t.push("rounded"),e.class&&t.push(e.class),S?g||$?t.push("bg-transparent"):t.push("bg-c-150"):x?t.push("bg-c-800 hover:bg-black"):k?t.push("bg-c-150 border border-c-150 hover:bg-white"):g?(t.push("bg-transparent"),y||t.push("border border-c-200 hover:border-black")):$?t.push("bg-transparent "):(t.push("hover:bg-black"),v?t.push("bg-c-danger"):j?t.push("bg-c-warning"):t.push("bg-c-base"))),t.join(" ")},_,I,A,M,B,u,a]}class pn extends t{constructor(t){super(),e(this,t,dn,fn,n,{img:0,black:1,right:2,left:3,center:4,white:5,danger:6,noborder:7,alt:8,gray:9,header:10,tooltip:21,warning:11,readonly:12,auth:22,size:23,sm:24,lg:25,focus:13,local:14},null,[-1,-1])}}function mn(t){let e,n,l,o,u,m,w,v,y,$,_;const j=t[14].default,I=i(j,t,t[13],null);let M=t[2]&&xn(t);return{c(){e=b("button"),o=g(),u=b("nav"),m=b("div"),I&&I.c(),w=g(),M&&M.c(),p(e,"aria-label","bpop"),p(e,"class",n="fixed inset-0 "+(t[3]?"bg-transparent":"bg-c-800 opacity-20")+" z-50"),p(m,"class","relative h-full"),p(u,"class","fixed bg-white border border-c-border rounded shadow-md")},m(n,l){x(n,e,l),x(n,o,l),x(n,u,l),h(u,m),I&&I.m(m,null),h(m,w),M&&M.m(m,null),t[18](u),y=!0,$||(_=S(e,"click",t[15]),$=!0)},p(t,l){(!y||8&l&&n!==(n="fixed inset-0 "+(t[3]?"bg-transparent":"bg-c-800 opacity-20")+" z-50"))&&p(e,"class",n),I&&I.p&&(!y||8192&l)&&a(I,j,t,t[13],y?d(j,t[13],l,null):f(t[13]),null),t[2]?M?(M.p(t,l),4&l&&s(M,1)):(M=xn(t),M.c(),s(M,1),M.m(m,null)):M&&(k(),c(M,1,1,()=>{M=null}),z())},i(t){y||(t&&A(()=>{y&&(l||(l=C(e,Mt,{duration:400},!0)),l.run(1))}),s(I,t),s(M),t&&A(()=>{y&&(v||(v=C(u,Mt,{duration:400},!0)),v.run(1))}),y=!0)},o(t){t&&(l||(l=C(e,Mt,{duration:400},!1)),l.run(0)),c(I,t),c(M),t&&(v||(v=C(u,Mt,{duration:400},!1)),v.run(0)),y=!1},d(n){n&&(r(e),r(o),r(u)),n&&l&&l.end(),I&&I.d(n),M&&M.d(),t[18](null),n&&v&&v.end(),$=!1,_()}}}function xn(t){let e,n,l,o,i;return n=new pn({props:{img:"close",alt:!0,size:6}}),n.$on("click",t[16]),o=new pn({props:{alt:!0,img:t[1]?"fullscreen_exit":"fullscreen",size:6,tooltip:t[1]?"riduci finestra":"espandi finestra",color:"text-c-400"}}),o.$on("click",t[17]),{c(){e=b("div"),T(n.$$.fragment),l=g(),T(o.$$.fragment),p(e,"class","absolute top-1 right-2 flex flex-row space-x-1 z-50")},m(t,r){x(t,e,r),F(n,e,null),h(e,l),F(o,e,null),i=!0},p(t,e){const n={};2&e&&(n.img=t[1]?"fullscreen_exit":"fullscreen"),2&e&&(n.tooltip=t[1]?"riduci finestra":"espandi finestra"),o.$set(n)},i(t){i||(s(n.$$.fragment,t),s(o.$$.fragment,t),i=!0)},o(t){c(n.$$.fragment,t),c(o.$$.fragment,t),i=!1},d(t){t&&r(e),D(n),D(o)}}}function hn(t){let e,n,l=t[0]&&mn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[0]?l?(l.p(t,n),1&n&&s(l,1)):(l=mn(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function bn(t,e,n){let{$$slots:l={},$$scope:o}=e;const i=G();let r,{placement:c="bottom"}=e,{full:s=!1}=e,{canexpand:u=!1}=e,{isexpand:a=!1}=e,f=null,{show:d,element:p,elexpand:m=!1,transparent:x=!1,padding:h=2}=e;function b(){d&&(n(1,a=!a),a?(r&&(f={top:r.style.top,left:r.style.left,width:r.style.width,height:r.style.height,zIndex:r.style.zIndex,position:r.style.position}),w()):function(){r&&f&&Object.assign(r.style,f);g()}())}function w(){if(!r)return;let t=m&&m.getBoundingClientRect?m.getBoundingClientRect():null;Object.assign(r.style,{position:"fixed",top:t?t.top+"px":"0px",left:t?t.left+"px":"0px",width:t?t.width+"px":"100vw",height:t?t.height+"px":"100vh",zIndex:1e3})}async function g(){if(d&&p){if(await q(),a)return void w();Qe(p,r,{placement:c,middleware:[Je(4*h),Ge(),qe({padding:4*h})]}).then(({x:t,y:e,placement:n,middlewareData:l})=>{let o={top:`${e}px`,zIndex:1e3};s||(o.left=`${t}px`),Object.assign(r.style,o)})}else n(0,d=!1)}return t.$$set=t=>{"placement"in t&&n(7,c=t.placement),"full"in t&&n(8,s=t.full),"canexpand"in t&&n(2,u=t.canexpand),"isexpand"in t&&n(1,a=t.isexpand),"show"in t&&n(0,d=t.show),"element"in t&&n(9,p=t.element),"elexpand"in t&&n(10,m=t.elexpand),"transparent"in t&&n(3,x=t.transparent),"padding"in t&&n(11,h=t.padding),"$$scope"in t&&n(13,o=t.$$scope)},t.$$.update=()=>{641&t.$$.dirty&&g()},[d,a,u,x,r,i,b,c,s,p,m,h,function(){n(0,d=!1)},o,l,()=>{n(0,d=!1),i("close")},()=>{n(0,d=!1),i("close")},()=>{b(),i("expand",a)},function(t){_[t?"unshift":"push"](()=>{r=t,n(4,r)})}]}class wn extends t{constructor(t){super(),e(this,t,bn,hn,n,{placement:7,full:8,canexpand:2,isexpand:1,show:0,element:9,elexpand:10,transparent:3,padding:11,close:12})}get close(){return this.$$.ctx[12]}}function gn(t){let e,n;return e=new sn({props:{tooltip:t[1],$$slots:{default:[yn]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.tooltip=t[1]),273416188&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function vn(t){let e,n;return{c(){e=b("div"),p(e,"class","btneffect")},m(t,n){x(t,e,n)},p(e,n){t=e},i(l){l&&(n||A(()=>{n=M(e,Dt,{duration:t[0]}),n.start()}))},o:y,d(t){t&&r(e)}}}function yn(t){let e,n,l,o,v,y,$,k,z=t[17]&&vn(t);const _=t[27].default,j=i(_,t,t[28],null),I=j||function(t){let e,n,l,o=t[20](t[19])+"";return{c(){e=b("div"),n=b("div"),l=w(o),p(e,"class","flex flex-row space-x-2")},m(t,o){x(t,e,o),h(e,n),h(n,l)},p(t,e){524288&e&&o!==(o=t[20](t[19])+"")&&u(l,o)},d(t){t&&r(e)}}}(t);return{c(){e=b("button"),z&&z.c(),n=g(),I&&I.c(),p(e,"aria-label",l=t[19]||"btn"),p(e,"class",o=(t[22].class||"")+" btn overflow-hidden "+(t[2]?"text-left-px-2":"")),p(e,"style",v=t[2]?"justify-ontent: left; width:fit-content;height:fit-content;":""),m(e,"fix",t[11]),m(e,"fixl",t[12]),m(e,"alt",t[3]),m(e,"warning",t[8]),m(e,"black",t[5]),m(e,"gray",t[7]),m(e,"danger",t[9]),m(e,"link",t[4]),m(e,"full",t[13]),m(e,"xs",t[15]),m(e,"sm",t[14]),m(e,"lg",t[16]),m(e,"white",t[6]),m(e,"readonly",t[10])},m(l,o){x(l,e,o),z&&z.m(e,null),h(e,n),I&&I.m(e,null),y=!0,$||(k=S(e,"click",E(t[21])),$=!0)},p(t,i){t[17]?z?131072&i&&s(z,1):(z=vn(t),z.c(),s(z,1),z.m(e,n)):z&&(z.d(1),z=null),j?j.p&&(!y||268435456&i)&&a(j,_,t,t[28],y?d(_,t[28],i,null):f(t[28]),null):I&&I.p&&(!y||524288&i)&&I.p(t,y?i:-1),(!y||524288&i&&l!==(l=t[19]||"btn"))&&p(e,"aria-label",l),(!y||4194308&i&&o!==(o=(t[22].class||"")+" btn overflow-hidden "+(t[2]?"text-left-px-2":"")))&&p(e,"class",o),(!y||4&i&&v!==(v=t[2]?"justify-ontent: left; width:fit-content;height:fit-content;":""))&&p(e,"style",v),(!y||4196356&i)&&m(e,"fix",t[11]),(!y||4198404&i)&&m(e,"fixl",t[12]),(!y||4194316&i)&&m(e,"alt",t[3]),(!y||4194564&i)&&m(e,"warning",t[8]),(!y||4194340&i)&&m(e,"black",t[5]),(!y||4194436&i)&&m(e,"gray",t[7]),(!y||4194820&i)&&m(e,"danger",t[9]),(!y||4194324&i)&&m(e,"link",t[4]),(!y||4202500&i)&&m(e,"full",t[13]),(!y||4227076&i)&&m(e,"xs",t[15]),(!y||4210692&i)&&m(e,"sm",t[14]),(!y||4259844&i)&&m(e,"lg",t[16]),(!y||4194372&i)&&m(e,"white",t[6]),(!y||4195332&i)&&m(e,"readonly",t[10])},i(t){y||(s(z),s(I,t),y=!0)},o(t){c(I,t),y=!1},d(t){t&&r(e),z&&z.d(),I&&I.d(t),$=!1,k()}}}function $n(t){let e,n,l=t[18]&&gn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[18]?l?(l.p(t,n),262144&n&&s(l,1)):(l=gn(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function kn(t,e,n){let i,r,{$$slots:c={},$$scope:s}=e;const{_:u,P:a}=zt(),f=G();let{duration:d=300}=e,{text:p="",title:m="",value:x="",auth:h="",tooltip:b="",left:w=!1,alt:g=!1,link:v=!1,black:y=!1,white:$=!1,gray:k=!1,warning:z=!1,danger:_=!1,readonly:j=!1,fix:S=!1,fixl:I=!1,full:A=!1,sm:M=!1,xs:B=!1,lg:D=!1}=e,F=!1;return t.$$set=t=>{n(22,e=l(l({},e),o(t))),"duration"in t&&n(0,d=t.duration),"text"in t&&n(23,p=t.text),"title"in t&&n(24,m=t.title),"value"in t&&n(25,x=t.value),"auth"in t&&n(26,h=t.auth),"tooltip"in t&&n(1,b=t.tooltip),"left"in t&&n(2,w=t.left),"alt"in t&&n(3,g=t.alt),"link"in t&&n(4,v=t.link),"black"in t&&n(5,y=t.black),"white"in t&&n(6,$=t.white),"gray"in t&&n(7,k=t.gray),"warning"in t&&n(8,z=t.warning),"danger"in t&&n(9,_=t.danger),"readonly"in t&&n(10,j=t.readonly),"fix"in t&&n(11,S=t.fix),"fixl"in t&&n(12,I=t.fixl),"full"in t&&n(13,A=t.full),"sm"in t&&n(14,M=t.sm),"xs"in t&&n(15,B=t.xs),"lg"in t&&n(16,D=t.lg),"$$scope"in t&&n(28,s=t.$$scope)},t.$$.update=()=>{58720256&t.$$.dirty&&n(19,i=p||m||x||".."),67108864&t.$$.dirty&&n(18,r=!h||a.isauth(h))},e=o(e),[d,b,w,g,v,y,$,k,z,_,j,S,I,A,M,B,D,F,r,i,u,async function(t){j||(n(17,F=!0),await q(),f("click",t.target),setTimeout(()=>{n(17,F=!1)},d))},e,p,m,x,h,c,s]}class zn extends t{constructor(t){super(),e(this,t,kn,$n,n,{duration:0,text:23,title:24,value:25,auth:26,tooltip:1,left:2,alt:3,link:4,black:5,white:6,gray:7,warning:8,danger:9,readonly:10,fix:11,fixl:12,full:13,sm:14,xs:15,lg:16})}}function _n(t){let e,n,l,o,i;return n=new $t({props:{img:"close",size:6,color:"text-c-200"}}),{c(){e=b("button"),T(n.$$.fragment),p(e,"class","hidden md:block md:absolute vcenter right-2 cursor-pointer")},m(r,c){x(r,e,c),F(n,e,null),l=!0,o||(i=S(e,"click",t[10]),o=!0)},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n),o=!1,i()}}}function jn(t){let e,n,l,o,i,u,a,f,d,w,v;u=new $t({props:{img:"search",size:t[3]?6:8,color:t[0]&&t[1]?"text-black":"text-c-200"}});let y=t[0]&&_n(t);return{c(){e=b("div"),n=b("div"),l=b("input"),o=g(),i=b("button"),T(u.$$.fragment),a=g(),y&&y.c(),p(l,"tabindex","0"),l.readOnly=t[2],p(l,"type","text"),p(l,"ref","input"),p(l,"class","w-full outline-none bg-white"),p(l,"placeholder",t[4]),p(n,"class","bg-white text-black border border-c-border rounded-full px-4 md:px-10 flex"),m(n,"py-1",!t[3]),m(n,"text-sm",t[3]),m(n,"py-0.5",t[3]),p(i,"class","hidden md:block md:absolute vcenter left-1"),m(i,"cursor-pointer",t[0]&&t[1]),p(e,"class",f="relative "+(t[8].class||""))},m(r,c){x(r,e,c),h(e,n),h(n,l),P(l,t[0]),h(e,o),h(e,i),F(u,i,null),h(e,a),y&&y.m(e,null),d=!0,w||(v=[S(l,"input",t[9]),S(l,"keyup",t[6]),S(i,"click",t[7]),S(i,"keypress",Sn)],w=!0)},p(t,[o]){(!d||4&o)&&(l.readOnly=t[2]),(!d||16&o)&&p(l,"placeholder",t[4]),1&o&&l.value!==t[0]&&P(l,t[0]),(!d||8&o)&&m(n,"py-1",!t[3]),(!d||8&o)&&m(n,"text-sm",t[3]),(!d||8&o)&&m(n,"py-0.5",t[3]);const r={};8&o&&(r.size=t[3]?6:8),3&o&&(r.color=t[0]&&t[1]?"text-black":"text-c-200"),u.$set(r),(!d||3&o)&&m(i,"cursor-pointer",t[0]&&t[1]),t[0]?y?(y.p(t,o),1&o&&s(y,1)):(y=_n(t),y.c(),s(y,1),y.m(e,null)):y&&(k(),c(y,1,1,()=>{y=null}),z()),(!d||256&o&&f!==(f="relative "+(t[8].class||"")))&&p(e,"class",f)},i(t){d||(s(u.$$.fragment,t),s(y),d=!0)},o(t){c(u.$$.fragment,t),c(y),d=!1},d(t){t&&r(e),D(u),y&&y.d(),w=!1,j(v)}}}const Sn=()=>{};function In(t,e,n){const i=G();let{evidenzia:r=!1,readonly:c=!1,sm:s=!1,value:u="",placeholder:a="Cerca"}=e;function f(){c||(i("click",u),i("cerca",u))}return t.$$set=t=>{n(8,e=l(l({},e),o(t))),"evidenzia"in t&&n(1,r=t.evidenzia),"readonly"in t&&n(2,c=t.readonly),"sm"in t&&n(3,s=t.sm),"value"in t&&n(0,u=t.value),"placeholder"in t&&n(4,a=t.placeholder)},e=o(e),[u,r,c,s,a,i,function(t){c||("Escape"==t.key&&n(0,u=""),i("input",t.target,u),"Enter"!=t.key&&"Escape"!=t.key||f())},f,e,function(){u=this.value,n(0,u)},()=>{n(0,u=""),i("input",""),i("click")}]}class An extends t{constructor(t){super(),e(this,t,In,jn,n,{evidenzia:1,readonly:2,sm:3,value:0,placeholder:4})}}function Mn(t){let e;return{c(){e=w(t[2])},m(t,n){x(t,e,n)},p(t,n){4&n&&u(e,t[2])},d(t){t&&r(e)}}}function Bn(t){let e,n,l=(t[2]||"").replaceAll("\n","<br/>")+"";return{c(){e=new B(!1),n=$(),e.a=n},m(t,o){e.m(l,t,o),x(t,n,o)},p(t,n){4&n&&l!==(l=(t[2]||"").replaceAll("\n","<br/>")+"")&&e.p(l)},d(t){t&&(r(n),e.d())}}}function Dn(t){let e,n,l;return{c(){e=b("button"),p(e,"aria-label","btntrad"),p(e,"class","bg-secondary absolute top-0 -right-2 rounded-full w-2 h-2")},m(o,i){x(o,e,i),n||(l=S(e,"click",E(O(t[8]))),n=!0)},p:y,d(t){t&&r(e),n=!1,l()}}}function Fn(t){let e,n,l;function o(t,e){return t[1]?Bn:Mn}let i=o(t),c=i(t),s=t[3]&&9==t[4].level&&!t[0]&&Dn(t);return{c(){e=b("span"),c.c(),n=g(),s&&s.c(),p(e,"class",l=`relative ${t[9].class||""}`)},m(t,l){x(t,e,l),c.m(e,null),h(e,n),s&&s.m(e,null)},p(t,[r]){i===(i=o(t))&&c?c.p(t,r):(c.d(1),c=i(t),c&&(c.c(),c.m(e,n))),t[3]&&9==t[4].level&&!t[0]?s?s.p(t,r):(s=Dn(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null),512&r&&l!==(l=`relative ${t[9].class||""}`)&&p(e,"class",l)},i:y,o:y,d(t){t&&r(e),c.d(),s&&s.d()}}}function En(t,e,n){let i,r,c,s;const{bus:u,langedit:a,_:f,user:d,lang:p}=zt();R(t,a,t=>n(3,c=t)),R(t,d,t=>n(4,s=t)),R(t,p,t=>n(11,r=t));let{id:m}=e,{noadd:x=!1}=e,{html:h=!1}=e;return t.$$set=t=>{n(9,e=l(l({},e),o(t))),"id"in t&&n(10,m=t.id),"noadd"in t&&n(0,x=t.noadd),"html"in t&&n(1,h=t.html)},t.$$.update=()=>{3073&t.$$.dirty&&n(2,i=f(m,r,x))},e=o(e),[x,h,i,c,s,a,d,p,function(){var t=(m||"").split("::")[0].trim().toLowerCase();"+"==t[0]&&(t=t.split(":")[0]),u.emit("asktrad",{id:t})},e,m,r]}class On extends t{constructor(t){super(),e(this,t,En,Fn,n,{id:10,noadd:0,html:1})}}function Tn(t){let e,n,l,o,u,m,w,v,y;const $=t[6].default,k=i($,t,t[5],null),z=k||function(t){let e,n,l;return n=new On({props:{id:t[0]}}),{c(){e=b("span"),T(n.$$.fragment),p(e,"class","btn primary")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};1&e&&(l.id=t[0]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}(t);return{c(){e=b("button"),z&&z.c(),n=g(),l=b("label"),o=b("input"),p(o,"type","file"),o.multiple=t[2],p(o,"accept",t[1]),p(o,"class","absolute inset-0 opacity-0 cursor-pointer"),p(l,"name",u="file"+t[0]),p(e,"class",m=`relative cursor-pointer ${t[4].class||""}`)},m(i,r){x(i,e,r),z&&z.m(e,null),h(e,n),h(e,l),h(l,o),w=!0,v||(y=[S(o,"click",E(Cn)),S(o,"change",E(t[7]))],v=!0)},p(t,[n]){k?k.p&&(!w||32&n)&&a(k,$,t,t[5],w?d($,t[5],n,null):f(t[5]),null):z&&z.p&&(!w||1&n)&&z.p(t,w?n:-1),(!w||4&n)&&(o.multiple=t[2]),(!w||2&n)&&p(o,"accept",t[1]),(!w||1&n&&u!==(u="file"+t[0]))&&p(l,"name",u),(!w||16&n&&m!==(m=`relative cursor-pointer ${t[4].class||""}`))&&p(e,"class",m)},i(t){w||(s(z,t),w=!0)},o(t){c(z,t),w=!1},d(t){t&&r(e),z&&z.d(t),v=!1,j(y)}}}const Cn=()=>{};function Pn(t,e,n){let{$$slots:i={},$$scope:r}=e,{value:c="file",accept:s="image/*,.pdf,.xlsx,.txt,.xls,.md,.log,.json,.yaml,.glb,.gltf,.3ds,.stl,.obj",multiple:u=!1}=e;const a=G();return t.$$set=t=>{n(4,e=l(l({},e),o(t))),"value"in t&&n(0,c=t.value),"accept"in t&&n(1,s=t.accept),"multiple"in t&&n(2,u=t.multiple),"$$scope"in t&&n(5,r=t.$$scope)},e=o(e),[c,s,u,a,e,r,i,t=>{a("click",t.target.files)}]}class Rn extends t{constructor(t){super(),e(this,t,Pn,Tn,n,{value:0,accept:1,multiple:2})}}function Nn(t){let e,n;return{c(){e=b("span"),n=w(t[2]),p(e,"class","lowercase pl-2 text-c-200"),m(e,"text-c-base",t[7])},m(t,l){x(t,e,l),h(e,n)},p(t,l){4&l&&u(n,t[2]),128&l&&m(e,"text-c-base",t[7])},d(t){t&&r(e)}}}function Ln(t){let e,n,l,o,i,c,s,a,f,d,v,$=t[2]&&Nn(t);return{c(){e=b("div"),n=b("input"),o=g(),i=b("label"),$&&$.c(),c=g(),s=b("span"),a=w(t[1]),p(n,"tabindex","-1"),p(n,"type","checkbox"),n.disabled=t[6],p(n,"id",t[9]),n.checked=t[7],p(n,"class",l=t[5]?"checkbox":"toggle"),m(n,"sm",t[3]),m(n,"xs",t[4]),p(s,"class","pl-2"),p(i,"class","text-sm font-base"),p(i,"for",t[9]),m(i,"font-bold",t[0]),p(e,"class",f=t[10].class||"")},m(l,r){x(l,e,r),h(e,n),h(e,o),h(e,i),$&&$.m(i,null),h(i,c),h(i,s),h(s,a),d||(v=S(n,"click",E(t[8])),d=!0)},p(t,[o]){64&o&&(n.disabled=t[6]),128&o&&(n.checked=t[7]),32&o&&l!==(l=t[5]?"checkbox":"toggle")&&p(n,"class",l),40&o&&m(n,"sm",t[3]),48&o&&m(n,"xs",t[4]),t[2]?$?$.p(t,o):($=Nn(t),$.c(),$.m(i,c)):$&&($.d(1),$=null),2&o&&u(a,t[1]),1&o&&m(i,"font-bold",t[0]),1024&o&&f!==(f=t[10].class||"")&&p(e,"class",f)},i:y,o:y,d(t){t&&r(e),$&&$.d(),d=!1,v()}}}function Xn(t,e,n){let i;const r=G();let{value:c=0}=e,{truevalue:s=1}=e,{falsevalue:u=0}=e,{bold:a=!1}=e,{label:f=""}=e,{labcod:d=""}=e,{sm:p=!1}=e,{xs:m=!1}=e,{checkbox:x=!1}=e,{readonly:h=!1}=e;J(()=>{c!=s&&c!=u&&(n(11,c=u),r("click",{value:c}))});const b=Math.random().toString(36).substring(2,15);return t.$$set=t=>{n(10,e=l(l({},e),o(t))),"value"in t&&n(11,c=t.value),"truevalue"in t&&n(12,s=t.truevalue),"falsevalue"in t&&n(13,u=t.falsevalue),"bold"in t&&n(0,a=t.bold),"label"in t&&n(1,f=t.label),"labcod"in t&&n(2,d=t.labcod),"sm"in t&&n(3,p=t.sm),"xs"in t&&n(4,m=t.xs),"checkbox"in t&&n(5,x=t.checkbox),"readonly"in t&&n(6,h=t.readonly)},t.$$.update=()=>{6144&t.$$.dirty&&n(7,i=c==s)},e=o(e),[a,f,d,p,m,x,h,i,function(t){t.stopPropagation(),t.target.checked?n(11,c=s):n(11,c=u),r("click",{value:c})},b,e,c,s,u]}class Hn extends t{constructor(t){super(),e(this,t,Xn,Ln,n,{value:11,truevalue:12,falsevalue:13,bold:0,label:1,labcod:2,sm:3,xs:4,checkbox:5,readonly:6})}}const Zn=t=>({}),Un=t=>({});function Vn(t){let e,n,l;const o=t[8].popup,u=i(o,t,t[7],Un);return{c(){e=b("div"),u&&u.c(),p(e,"class",n="fixed text-black p-2 text-sm "+(t[0]?"":"border bg-white")),p(e,"tabindex","-1")},m(n,o){x(n,e,o),u&&u.m(e,null),t[9](e),l=!0},p(t,i){u&&u.p&&(!l||128&i)&&a(u,o,t,t[7],l?d(o,t[7],i,Zn):f(t[7]),Un),(!l||1&i&&n!==(n="fixed text-black p-2 text-sm "+(t[0]?"":"border bg-white")))&&p(e,"class",n)},i(t){l||(s(u,t),l=!0)},o(t){c(u,t),l=!1},d(n){n&&r(e),u&&u.d(n),t[9](null)}}}function Yn(t){let e,n,l,o,u;const m=t[8].default,w=i(m,t,t[7],null);let v=t[3]&&Vn(t);return{c(){e=b("div"),n=b("div"),w&&w.c(),l=g(),v&&v.c(),p(n,"class","z-10"),p(e,"class",o=t[4].class)},m(o,i){x(o,e,i),h(e,n),w&&w.m(n,null),h(e,l),v&&v.m(e,null),t[10](e),u=!0},p(t,[n]){w&&w.p&&(!u||128&n)&&a(w,m,t,t[7],u?d(m,t[7],n,null):f(t[7]),null),t[3]?v?(v.p(t,n),8&n&&s(v,1)):(v=Vn(t),v.c(),s(v,1),v.m(e,null)):v&&(k(),c(v,1,1,()=>{v=null}),z()),(!u||16&n&&o!==(o=t[4].class))&&p(e,"class",o)},i(t){u||(s(w,t),s(v),u=!0)},o(t){c(w,t),c(v),u=!1},d(n){n&&r(e),w&&w.d(n),v&&v.d(),t[10](null)}}}function Wn(t){return!0}function Jn(t,e,n){let i,r,{$$slots:c={},$$scope:s}=e,{theme:u}=e,a=!1;async function f(t){if(t!==a&&(n(3,a=t),a)){await q();const t=u?180:r.offsetWidth;Qe(r,i,{placement:"bottom-start",middleware:[Ge(),qe({padding:0})]}).then(({x:e,y:n,placement:l,middlewareData:o})=>{Object.assign(i.style,{left:`${e}px`,top:`${n}px`,width:`${t}px`,zIndex:1e3})})}}const d=G();function p(t){r.contains(t.target)&&d("gotfocus")}function m(t){setTimeout(()=>{r.contains(document.activeElement)||(f(!1),d("lostfocus"))},0)}return J(()=>{r.addEventListener("focusin",p),r.addEventListener("focusout",m)}),K(()=>{r.removeEventListener("focusin",p),r.removeEventListener("focusout",m)}),t.$$set=t=>{n(4,e=l(l({},e),o(t))),"theme"in t&&n(0,u=t.theme),"$$scope"in t&&n(7,s=t.$$scope)},e=o(e),[u,i,r,a,e,f,Wn,s,c,function(t){_[t?"unshift":"push"](()=>{i=t,n(1,i)})},function(t){_[t?"unshift":"push"](()=>{r=t,n(2,r)})}]}class qn extends t{constructor(t){super(),e(this,t,Jn,Yn,n,{theme:0,openmenu:5,checkvisibility:6})}get openmenu(){return this.$$.ctx[5]}get checkvisibility(){return Wn}}function Gn(t){let e,n,l,o,u,m;const h=t[7].default,w=i(h,t,t[6],null);return{c(){e=b("button"),n=g(),l=b("button"),w&&w.c(),p(e,"aria-label","full"),p(e,"class","z-10 fixed inset-0 opacity-0"),p(l,"class","fixed"),p(l,"tabindex","-1")},m(i,r){x(i,e,r),x(i,n,r),x(i,l,r),w&&w.m(l,null),t[10](l),o=!0,u||(m=[S(e,"click",O(t[8])),S(e,"contextmenu",O(t[9])),S(l,"contextmenu",O(t[11]))],u=!0)},p(t,e){w&&w.p&&(!o||64&e)&&a(w,h,t,t[6],o?d(h,t[6],e,null):f(t[6]),null)},i(t){o||(s(w,t),o=!0)},o(t){c(w,t),o=!1},d(o){o&&(r(e),r(n),r(l)),w&&w.d(o),t[10](null),u=!1,j(m)}}}function Kn(t){let e,n,l=t[0]&&Gn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[0]?l?(l.p(t,n),1&n&&s(l,1)):(l=Gn(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function Qn(t,e,n){let{$$slots:l={},$$scope:o}=e;const i=G();let r,{show:c=!1,mouseX:s=0,mouseY:u=0}=e;async function a(){if(!c)return;if(await q(),!r)return;await q();Qe({getBoundingClientRect:()=>({x:s,y:u,width:0,height:0,top:u,left:s,right:s,bottom:u})},r,{placement:"bottom-start",middleware:[Je(10),Ge(),qe()]}).then(({x:t,y:e,placement:n})=>{Object.assign(r.style,{left:`${t}px`,top:`${e}px`,zIndex:1e3})})}return t.$$set=t=>{"show"in t&&n(0,c=t.show),"mouseX"in t&&n(3,s=t.mouseX),"mouseY"in t&&n(4,u=t.mouseY),"$$scope"in t&&n(6,o=t.$$scope)},t.$$.update=()=>{25&t.$$.dirty&&a()},[c,r,i,s,u,a,o,l,()=>n(0,c=!1),()=>{n(0,c=!1),i("close")},function(t){_[t?"unshift":"push"](()=>{r=t,n(1,r)})},()=>{n(0,c=!1),i("close")}]}class tl extends t{constructor(t){super(),e(this,t,Qn,Kn,n,{show:0,mouseX:3,mouseY:4,openmenu:5})}get openmenu(){return this.$$.ctx[5]}}function el(t){return t&&t.t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nl,ll={exports:{}};var ol=el(nl?ll.exports:(nl=1,ll.exports=function(){function t(t,e,n,l,o,i){if(!/^[1-8]$/.test(e))throw new Error("orientation should be [1-8]");null==n&&(n=0),null==l&&(l=0),null==o&&(o=t.width),null==i&&(i=t.height);var r=document.createElement("canvas"),c=r.getContext("2d");switch(r.width=o,r.height=i,c.save(),+e){case 1:break;case 2:c.translate(o,0),c.scale(-1,1);break;case 3:c.translate(o,i),c.rotate(1*Math.PI);break;case 4:c.translate(0,i),c.scale(1,-1);break;case 5:r.width=i,r.height=o,c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:r.width=i,r.height=o,c.rotate(.5*Math.PI),c.translate(0,-i);break;case 7:r.width=i,r.height=o,c.rotate(1.5*Math.PI),c.translate(-o,i),c.scale(1,-1);break;case 8:r.width=i,r.height=o,c.translate(0,o),c.rotate(1.5*Math.PI)}return c.drawImage(t,n,l,o,i),c.restore(),r}return{drawImage:t}}()));function il(t,e,n,l){return{x:rl(t.x,e.width,n.width,l),y:rl(t.y,e.height,n.height,l)}}function rl(t,e,n,l){const o=e*l/2-n/2;return Math.min(o,Math.max(t,-o))}function cl(t,e){return Math.sqrt(Math.pow(t.y-e.y,2)+Math.pow(t.x-e.x,2))}function sl(t,e){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}const{window:ul}=L;function al(t){let e;return{c(){e=b("div"),p(e,"class","cropperArea svelte-11f68ic"),v(e,"width",t[7].width+"px"),v(e,"height",t[7].height+"px"),p(e,"data-testid","cropper"),m(e,"round","round"===t[4])},m(t,n){x(t,e,n)},p(t,n){128&n[0]&&v(e,"width",t[7].width+"px"),128&n[0]&&v(e,"height",t[7].height+"px"),16&n[0]&&m(e,"round","round"===t[4])},d(t){t&&r(e)}}}function fl(t){let e,n,l,o,i,u,a,f,d,m,w,y,$=t[7]&&al(t);return f=new $t({props:{img:"rotate_right",mat:!0,size:8}}),{c(){e=b("div"),n=b("div"),l=b("img"),i=g(),$&&$.c(),u=g(),a=b("button"),T(f.$$.fragment),p(l,"class","image svelte-11f68ic"),N(l.src,o=t[1])||p(l,"src",o),p(l,"alt",""),v(l,"transform","translate("+t[2].x+"px, "+t[2].y+"px) scale("+t[0]+")"),p(l,"crossorigin",t[5]),p(n,"class","container svelte-11f68ic"),p(n,"data-testid","container"),p(a,"class","absolute top-0 right-0 p-1 text-black hover:text-white z-10 cursor-pointer"),p(e,"style",d=`position: relative; width: ${t[3]}px; height: ${t[3]}px;`)},m(o,r){x(o,e,r),h(e,n),h(n,l),t[24](l),h(n,i),$&&$.m(n,null),t[25](n),h(e,u),h(e,a),F(f,a,null),m=!0,w||(y=[S(ul,"resize",t[11]),S(l,"load",t[10]),S(n,"mousedown",O(t[12])),S(n,"touchstart",O(t[13])),S(n,"wheel",O(t[14])),S(n,"gesturestart",O(t[22])),S(n,"gesturechange",O(t[23])),S(a,"click",E(t[9]))],w=!0)},p(t,i){(!m||2&i[0]&&!N(l.src,o=t[1]))&&p(l,"src",o),(!m||5&i[0])&&v(l,"transform","translate("+t[2].x+"px, "+t[2].y+"px) scale("+t[0]+")"),(!m||32&i[0])&&p(l,"crossorigin",t[5]),t[7]?$?$.p(t,i):($=al(t),$.c(),$.m(n,null)):$&&($.d(1),$=null),(!m||8&i[0]&&d!==(d=`position: relative; width: ${t[3]}px; height: ${t[3]}px;`))&&p(e,"style",d)},i(t){m||(s(f.$$.fragment,t),m=!0)},o(t){c(f.$$.fragment,t),m=!1},d(n){n&&r(e),t[24](null),$&&$.d(),t[25](null),D(f),w=!1,j(y)}}}function dl(t,e,n){let l,o,i,r,c,s,u,{size:a=200}=e,{cropScale:f=1}=e,{image:d}=e,{crop:p={x:0,y:0}}=e,{zoom:m=1}=e,{aspect:x=1}=e,{minZoom:h=1}=e,{maxZoom:b=4}=e,{cropShape:w="round"}=e,{zoomSpeed:g=1}=e,{crossOrigin:v}=e,{restrictPosition:y=!0}=e,$={width:0,height:0,naturalWidth:0,naturalHeight:0},k={x:0,y:0},z={x:0,y:0},j=0;function S(){var t=$.width,e=$.height;return t&&e&&x?(t/e>x?e=t/x:t=e*x,{width:t,height:e}):$}const I=G();J(()=>{c&&c.complete&&M()}),K(()=>{A()});const A=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",O),document.removeEventListener("touchend",P)},M=()=>{B(),H()},B=()=>{c&&($={width:c.width,height:c.height,naturalWidth:c.naturalWidth,naturalHeight:c.naturalHeight},n(7,o=l)),i&&(r=i.getBoundingClientRect())},D=t=>({x:Number(t.clientX),y:Number(t.clientY)}),F=t=>({x:Number(t.clientX),y:Number(t.clientY)}),E=t=>C(D(t)),O=t=>{t.preventDefault(),2===t.touches.length?N(t):1===t.touches.length&&C(F(t.touches[0]))},T=({x:t,y:e})=>{k={x:t,y:e},z={x:p.x,y:p.y}},C=({x:t,y:e})=>{s&&window.cancelAnimationFrame(s),s=window.requestAnimationFrame(()=>{if(void 0===t||void 0===e)return;const l=t-k.x,i=e-k.y,r={x:z.x+l,y:z.y+i};n(2,p=y?il(r,S(),o,m):r)})},P=()=>{A(),H()},R=t=>{const e=F(t.touches[0]),n=F(t.touches[1]);j=cl(e,n),T(sl(e,n))},N=t=>{const e=F(t.touches[0]),n=F(t.touches[1]),l=sl(e,n);C(l),u&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame(()=>{const t=cl(e,n);L(m*(t/j),l),j=t})},L=(t,e)=>{const l=(({x:t,y:e})=>{if(!r)throw new Error("The Cropper is not mounted");return{x:r.width/2-(t-r.left),y:r.height/2-(e-r.top)}})(e),i=(({x:t,y:e})=>({x:(t+p.x)/m,y:(e+p.y)/m}))(l);n(0,m=Math.min(b,Math.max(t,h)));const c={x:i.x*m-l.x,y:i.y*m-l.y};n(2,p=y?il(c,S(),o,m):c)},H=()=>{o&&0!==o.width&&I("cropcomplete",{size:a,zoom:m,aspect:x,crop:p,image:d,imageSize:$,cropScale:f})};return t.$$set=t=>{"size"in t&&n(3,a=t.size),"cropScale"in t&&n(15,f=t.cropScale),"image"in t&&n(1,d=t.image),"crop"in t&&n(2,p=t.crop),"zoom"in t&&n(0,m=t.zoom),"aspect"in t&&n(16,x=t.aspect),"minZoom"in t&&n(17,h=t.minZoom),"maxZoom"in t&&n(18,b=t.maxZoom),"cropShape"in t&&n(4,w=t.cropShape),"zoomSpeed"in t&&n(19,g=t.zoomSpeed),"crossOrigin"in t&&n(5,v=t.crossOrigin),"restrictPosition"in t&&n(20,y=t.restrictPosition)},t.$$.update=()=>{98312&t.$$.dirty[0]&&n(21,l={width:a*f,height:a*f/x}),2162752&t.$$.dirty[0]&&c&&n(7,o=l||function(t,e,n){return t>=e*n?{width:e*n,height:e}:{width:t,height:t/n}}(c.width,c.height,x)),1&t.$$.dirty[0]&&m&&H()},[m,d,p,a,w,v,c,o,i,async()=>{if(d){var t=new Image($.naturalWidth,$.naturalHeight);t.src=d;var e=ol.drawImage(t,6);n(1,d=e.toDataURL()),await q(),B(),H()}},M,B,t=>{document.addEventListener("mousemove",E),document.addEventListener("mouseup",P),T(D(t))},t=>{document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",P),2===t.touches.length?R(t):1===t.touches.length&&T(F(t.touches[0]))},t=>{const e=D(t),n=m-t.deltaY*g/200;L(n,e)},f,x,h,b,g,y,l,function(e){X.call(this,t,e)},function(e){X.call(this,t,e)},function(t){_[t?"unshift":"push"](()=>{c=t,n(6,c)})},function(t){_[t?"unshift":"push"](()=>{i=t,n(8,i)})}]}class pl extends t{constructor(t){super(),e(this,t,dl,fl,n,{size:3,cropScale:15,image:1,crop:2,zoom:0,aspect:16,minZoom:17,maxZoom:18,cropShape:4,zoomSpeed:19,crossOrigin:5,restrictPosition:20},null,[-1,-1])}}function ml(t,e,n){const l=t.slice();return l[68]=e[n],l}function xl(t,e,n){const l=t.slice();return l[71]=e[n],l}function hl(t,e,n){const l=t.slice();return l[68]=e[n],l}function bl(t){let e,n,l,o,i;return{c(){e=b("input"),p(e,"type",t[12]),p(e,"maxlength",t[4]),e.value=n=t[0]||"",e.disabled=t[14],p(e,"placeholder",l=t[25](t[3],t[24])),p(e,"autocorrect","off"),p(e,"autocomplete","off"),m(e,"sm",t[11]),m(e,"valid",t[7]),m(e,"error",t[8]),m(e,"readonly",t[14])},m(n,l){x(n,e,l),o||(i=[S(e,"input",t[62]),S(e,"blur",t[63]),S(e,"keypress",t[40])],o=!0)},p(t,o){4096&o[0]&&p(e,"type",t[12]),16&o[0]&&p(e,"maxlength",t[4]),1&o[0]&&n!==(n=t[0]||"")&&e.value!==n&&(e.value=n),16384&o[0]&&(e.disabled=t[14]),16777224&o[0]&&l!==(l=t[25](t[3],t[24]))&&p(e,"placeholder",l),2048&o[0]&&m(e,"sm",t[11]),128&o[0]&&m(e,"valid",t[7]),256&o[0]&&m(e,"error",t[8]),16384&o[0]&&m(e,"readonly",t[14])},i:y,o:y,d(t){t&&r(e),o=!1,j(i)}}}function wl(t){let e,n,l,o,i;return{c(){e=b("input"),p(e,"type","time"),e.value=n=Fl(t[0]),e.disabled=t[14],p(e,"placeholder",l=t[25](t[3],t[24])),p(e,"autocorrect","off"),p(e,"autocomplete","off"),m(e,"sm",t[11]),m(e,"valid",t[7]),m(e,"error",t[8]),m(e,"readonly",t[14])},m(n,l){x(n,e,l),o||(i=[S(e,"keypress",t[60]),S(e,"blur",t[61])],o=!0)},p(t,o){1&o[0]&&n!==(n=Fl(t[0]))&&e.value!==n&&(e.value=n),16384&o[0]&&(e.disabled=t[14]),16777224&o[0]&&l!==(l=t[25](t[3],t[24]))&&p(e,"placeholder",l),2048&o[0]&&m(e,"sm",t[11]),128&o[0]&&m(e,"valid",t[7]),256&o[0]&&m(e,"error",t[8]),16384&o[0]&&m(e,"readonly",t[14])},i:y,o:y,d(t){t&&r(e),o=!1,j(i)}}}function gl(t){let e,n,l,o,i;return{c(){e=b("input"),p(e,"type","text"),e.value=n=t[18]?t[19]||"":t[35](t[0])||0,e.disabled=t[14],p(e,"placeholder",l=t[25](t[3],t[24])),p(e,"autocorrect","off"),p(e,"autocomplete","off"),m(e,"sm",t[11]),m(e,"valid",t[7]),m(e,"error",t[8]),m(e,"readonly",t[14])},m(n,l){x(n,e,l),o||(i=[S(e,"focus",t[57]),S(e,"keypress",t[58]),S(e,"blur",t[59])],o=!0)},p(t,o){786433&o[0]&&n!==(n=t[18]?t[19]||"":t[35](t[0])||0)&&e.value!==n&&(e.value=n),16384&o[0]&&(e.disabled=t[14]),16777224&o[0]&&l!==(l=t[25](t[3],t[24]))&&p(e,"placeholder",l),2048&o[0]&&m(e,"sm",t[11]),128&o[0]&&m(e,"valid",t[7]),256&o[0]&&m(e,"error",t[8]),16384&o[0]&&m(e,"readonly",t[14])},i:y,o:y,d(t){t&&r(e),o=!1,j(i)}}}function vl(t){let e,n,l,o=t[22]&&_l(t);return{c(){e=b("select"),o&&o.c(),e.disabled=t[14],m(e,"sm",t[11]),m(e,"border-none",t[10])},m(i,r){x(i,e,r),o&&o.m(e,null),H(e,t[21]),n||(l=[S(e,"change",E(t[31])),S(e,"click",E(El))],n=!0)},p(t,n){t[22]?o?o.p(t,n):(o=_l(t),o.c(),o.m(e,null)):o&&(o.d(1),o=null),16384&n[0]&&(e.disabled=t[14]),6291456&n[0]&&H(e,t[21]),2048&n[0]&&m(e,"sm",t[11]),1024&n[0]&&m(e,"border-none",t[10])},i:y,o:y,d(t){t&&r(e),o&&o.d(),n=!1,j(l)}}}function yl(t){let e,n,l,o,i,c;return{c(){e=b("div"),n=b("input"),l=g(),o=b("label"),p(n,"class","checkbox"),p(n,"type","checkbox"),p(n,"id",t[41]),n.checked=t[20],n.disabled=t[14],m(n,"sm",t[11]),p(o,"for",t[41]),p(e,"class","text-4xl ml-2")},m(r,s){x(r,e,s),h(e,n),h(e,l),h(e,o),i||(c=S(n,"click",t[39]),i=!0)},p(t,e){1048576&e[0]&&(n.checked=t[20]),16384&e[0]&&(n.disabled=t[14]),2048&e[0]&&m(n,"sm",t[11])},i:y,o:y,d(t){t&&r(e),i=!1,c()}}}function $l(t){let e;const n=t[48].default,l=i(n,t,t[64],null),o=l||function(){let t;return{c(){t=b("div"),t.textContent="slot",p(t,"class","bg-c-100")},m(e,n){x(e,t,n)},p:y,d(e){e&&r(t)}}}();return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||4&o[2])&&a(l,n,t,t[64],e?d(n,t[64],o,null):f(t[64]),null)},i(t){e||(s(o,t),e=!0)},o(t){c(o,t),e=!1},d(t){o&&o.d(t)}}}function kl(t){let e,n;return e=new qn({props:{$$slots:{popup:[Bl],default:[Al]},$$scope:{ctx:t}}}),t[55](e),e.$on("lostfocus",t[56]),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};4440067&n[0]|4&n[2]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(n){t[55](null),D(e,n)}}}function zl(t){let e,n,l,o;return{c(){e=b("textarea"),p(e,"rows",t[13]),e.value=t[23],p(e,"maxlength",t[4]),e.disabled=t[14],p(e,"placeholder",n=t[25](t[3],t[24])),m(e,"sm",t[11]),m(e,"valid",t[7]),m(e,"error",t[8]),m(e,"readonly",t[14])},m(n,i){x(n,e,i),l||(o=[S(e,"keypress",t[49]),S(e,"blur",t[50])],l=!0)},p(t,l){8192&l[0]&&p(e,"rows",t[13]),8388608&l[0]&&(e.value=t[23]),16&l[0]&&p(e,"maxlength",t[4]),16384&l[0]&&(e.disabled=t[14]),16777224&l[0]&&n!==(n=t[25](t[3],t[24]))&&p(e,"placeholder",n),2048&l[0]&&m(e,"sm",t[11]),128&l[0]&&m(e,"valid",t[7]),256&l[0]&&m(e,"error",t[8]),16384&l[0]&&m(e,"readonly",t[14])},i:y,o:y,d(t){t&&r(e),l=!1,j(o)}}}function _l(t){let e,n=Z(t[22]),l=[];for(let e=0;e<n.length;e+=1)l[e]=jl(ml(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=$()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);x(t,e,n)},p(t,o){if(4194880&o[0]){let i;for(n=Z(t[22]),i=0;i<n.length;i+=1){const r=ml(t,n,i);l[i]?l[i].p(r,o):(l[i]=jl(r),l[i].c(),l[i].m(e.parentNode,e))}for(;i<l.length;i+=1)l[i].d(1);l.length=n.length}},d(t){t&&r(e),U(l,t)}}}function jl(t){let e,n,l,o=(t[6]?null!=t[68].cod?t[68].cod:null!=t[68].id?t[68].id:t[68]:t[9]&&(t[68].cod||t[68].id)&&t[68].des?`${t[68].cod}-${t[68].des||""}`:null!=t[68].des?t[68].des:t[68])+"";return{c(){e=b("option"),n=w(o),e.l=l=null!=t[68].cod?t[68].cod:null!=t[68].id?t[68].id:t[68],P(e,e.l)},m(t,l){x(t,e,l),h(e,n)},p(t,i){4194880&i[0]&&o!==(o=(t[6]?null!=t[68].cod?t[68].cod:null!=t[68].id?t[68].id:t[68]:t[9]&&(t[68].cod||t[68].id)&&t[68].des?`${t[68].cod}-${t[68].des||""}`:null!=t[68].des?t[68].des:t[68])+"")&&u(n,o),4194304&i[0]&&l!==(l=null!=t[68].cod?t[68].cod:null!=t[68].id?t[68].id:t[68])&&(e.l=l,P(e,e.l))},d(t){t&&r(e)}}}function Sl(t){let e,n,l,o,i=t[71]+"";return{c(){e=b("div"),n=b("div"),l=w(i),o=g(),p(n,"class","bg-c-base px-2 text-sm text-white rounded"),p(e,"class","pr-2")},m(t,i){x(t,e,i),h(e,n),h(n,l),h(e,o)},p(t,e){1&e[0]&&i!==(i=t[71]+"")&&u(l,i)},d(t){t&&r(e)}}}function Il(t){let e,n;return e=new $t({props:{img:"more_horiz",size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Al(t){let e,n,l,o,i,u,a,f,d,m,w,v=t[30](t[0],t[15]),y=Z((t[0]||"").split(";")),$=[];for(let e=0;e<y.length;e+=1)$[e]=Sl(xl(t,y,e));let _=v&&Il();return f=new $t({props:{size:6,img:t[17]?"expand_less":"expand_more"}}),{c(){e=b("button"),n=b("div"),l=b("div"),o=b("div"),i=b("div");for(let t=0;t<$.length;t+=1)$[t].c();u=g(),_&&_.c(),a=g(),T(f.$$.fragment),p(i,"class","flex flex-auto"),p(o,"class","px-2 pt-1.5 overflow-hidden w-full h-full"),p(l,"class","absolute inset-0"),p(n,"class","flex-1 relative h-8"),p(e,"class","w-full flexrow border border-c-border bg-white h-8 items-center cursor-pointer")},m(r,c){x(r,e,c),h(e,n),h(n,l),h(l,o),h(o,i);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(i,null);t[53](i),h(e,u),_&&_.m(e,null),h(e,a),F(f,e,null),d=!0,m||(w=S(e,"click",t[54]),m=!0)},p(t,n){if(1&n[0]){let e;for(y=Z((t[0]||"").split(";")),e=0;e<y.length;e+=1){const l=xl(t,y,e);$[e]?$[e].p(l,n):($[e]=Sl(l),$[e].c(),$[e].m(i,null))}for(;e<$.length;e+=1)$[e].d(1);$.length=y.length}32769&n[0]&&(v=t[30](t[0],t[15])),v?_?32769&n[0]&&s(_,1):(_=Il(),_.c(),s(_,1),_.m(e,a)):_&&(k(),c(_,1,1,()=>{_=null}),z());const l={};131072&n[0]&&(l.img=t[17]?"expand_less":"expand_more"),f.$set(l)},i(t){d||(s(_),s(f.$$.fragment,t),d=!0)},o(t){c(_),c(f.$$.fragment,t),d=!1},d(n){n&&r(e),U($,n),t[53](null),_&&_.d(),D(f),m=!1,w()}}}function Ml(t){let e,n,l,o;return n=new Hn({props:{checkbox:!0,xs:!0,labcod:(t[68].cod||t[68].id+"").toUpperCase(),label:(t[68].des||"").toLowerCase(),value:t[38](t[68])}}),n.$on("click",function(...e){return t[52](t[68],...e)}),{c(){e=b("div"),T(n.$$.fragment),l=g(),p(e,"class","w-full px-2 overflow-hidden")},m(t,i){x(t,e,i),F(n,e,null),h(e,l),o=!0},p(e,l){t=e;const o={};4194304&l[0]&&(o.labcod=(t[68].cod||t[68].id+"").toUpperCase()),4194304&l[0]&&(o.label=(t[68].des||"").toLowerCase()),4194304&l[0]&&(o.value=t[38](t[68])),n.$set(o)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),D(n)}}}function Bl(t){let e,n,l,o,i,u;o=new Hn({props:{class:"font-bold",checkbox:!0,xs:!0,label:"seleziona/deseleziona tutto",value:t[28]}}),o.$on("click",t[51]);let a=Z(t[22]),f=[];for(let e=0;e<a.length;e+=1)f[e]=Ml(hl(t,a,e));const d=t=>c(f[t],1,1,()=>{f[t]=null});return{c(){e=b("div"),n=b("div"),l=b("div"),T(o.$$.fragment),i=g();for(let t=0;t<f.length;t+=1)f[t].c();p(l,"class","w-full px-2 overflow-hidden"),p(n,"class","w-full flex flex-col space-y-1"),p(e,"slot","popup"),p(e,"class","max-h-[16rem] overflow-x-hidden overflow-y-auto")},m(t,r){x(t,e,r),h(e,n),h(n,l),F(o,l,null),h(n,i);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);u=!0},p(t,e){if(4259840&e[0]|192&e[1]){let l;for(a=Z(t[22]),l=0;l<a.length;l+=1){const o=hl(t,a,l);f[l]?(f[l].p(o,e),s(f[l],1)):(f[l]=Ml(o),f[l].c(),s(f[l],1),f[l].m(n,null))}for(k(),l=a.length;l<f.length;l+=1)d(l);z()}},i(t){if(!u){s(o.$$.fragment,t);for(let t=0;t<a.length;t+=1)s(f[t]);u=!0}},o(t){c(o.$$.fragment,t),f=f.filter(Boolean);for(let t=0;t<f.length;t+=1)c(f[t]);u=!1},d(t){t&&r(e),D(o),U(f,t)}}}function Dl(t){let e,n,l,o,i;const u=[zl,kl,$l,yl,vl,gl,wl,bl],a=[];function f(t,e){return"area"===t[12]?0:"multiple"==t[12]?1:"slot"==t[12]?2:"check"===t[12]||"checkbox"==t[12]?3:"select"===t[12]?4:"number"===t[12]||"integer"===t[12]?5:"time"===t[12]?6:7}return n=f(t),l=a[n]=u[n](t),{c(){e=b("div"),l.c(),p(e,"class",o=`relative ${t[42].class||""}`)},m(t,l){x(t,e,l),a[n].m(e,null),i=!0},p(t,r){let d=n;n=f(t),n===d?a[n].p(t,r):(k(),c(a[d],1,1,()=>{a[d]=null}),z(),l=a[n],l?l.p(t,r):(l=a[n]=u[n](t),l.c()),s(l,1),l.m(e,null)),(!i||2048&r[1]&&o!==(o=`relative ${t[42].class||""}`))&&p(e,"class",o)},i(t){i||(s(l),i=!0)},o(t){c(l),i=!1},d(t){t&&r(e),a[n].d()}}}function Fl(t){return t>0?("00"+t.toFixed(2)).slice(-5).replace(".",":"):"00:00"}const El=()=>{};function Ol(t,e,n){let i,r,c,s,u,{$$slots:a={},$$scope:f}=e;const{_:d,lang:p,tonum:m,listfromstring:x}=zt();let h,b;R(t,p,t=>n(24,u=t));const w=G();let{value:g="",placeholder:v="",options:y,maxlength:$,forcestring:k=!1,uppercase:z=!1,onlycod:j=!1,valid:S=!1,error:I=!1,showcod:A=!1,noborder:M=!1,sm:B=!1,autosize:D,truevalue:F=1,falsevalue:E=0,type:O="text",decimali:T=2,coeff:C=1,rows:P=5,readonly:N=!1}=e,L=!1;function X(t){if(!D||"string"!=typeof D)return;let e=D.split(","),n=4*parseInt(e[0]||20),l=4*parseInt(e[1]||40),o=t.target;if(o){const t=o.scrollWidth+2;o.style.width=`${Math.max(n,Math.min(t,l))}px`}}function H(){return!!h&&h.scrollWidth>h.clientWidth}function Z(t){t&&(n(0,g=parseFloat(t.replace(":","."))),w("change",g))}async function U(){w("change",g)}function V(t){Array.isArray(g)?n(0,g=t.split("\n")):n(0,g=t)}let Y,W=!1;function J(t){if(t)return t=parseFloat(t)||0,C&&(t*=C),parseFloat((t||0).toFixed("integer"==O?0:T))}function q(t){var e=m(t,"integer"==O?0:T);n(0,g=e.isNaN?0:e/(C||1)),n(19,Y=J(g)),U()}function K(t,e){var l=(e.cod||e.id+"").toLowerCase(),o=(g||"").toLowerCase().split(";");t&&!o.includes(l)?g?o.push(l):o=[l]:o.includes(l)&&(o=o.filter(t=>t!=l)),o.sort(),n(0,g=o.join(";"))}const Q=`c_${Math.floor(1e10*Math.random())}`;return t.$$set=t=>{n(42,e=l(l({},e),o(t))),"value"in t&&n(0,g=t.value),"placeholder"in t&&n(3,v=t.placeholder),"options"in t&&n(1,y=t.options),"maxlength"in t&&n(4,$=t.maxlength),"forcestring"in t&&n(43,k=t.forcestring),"uppercase"in t&&n(5,z=t.uppercase),"onlycod"in t&&n(6,j=t.onlycod),"valid"in t&&n(7,S=t.valid),"error"in t&&n(8,I=t.error),"showcod"in t&&n(9,A=t.showcod),"noborder"in t&&n(10,M=t.noborder),"sm"in t&&n(11,B=t.sm),"autosize"in t&&n(44,D=t.autosize),"truevalue"in t&&n(45,F=t.truevalue),"falsevalue"in t&&n(46,E=t.falsevalue),"type"in t&&n(12,O=t.type),"decimali"in t&&n(47,T=t.decimali),"coeff"in t&&n(2,C=t.coeff),"rows"in t&&n(13,P=t.rows),"readonly"in t&&n(14,N=t.readonly),"$$scope"in t&&n(64,f=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(23,i=Array.isArray(g)?g.join("\n"):g||""),2&t.$$.dirty[0]&&n(22,r=y?x(y):[]),1&t.$$.dirty[0]&&n(21,c="object"==typeof g?g?.cod||g?.id:g),1&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(20,s=g==F),32768&t.$$.dirty[0]&&H()},e=o(e),[g,y,C,v,$,z,j,S,I,A,M,B,O,P,N,h,b,L,W,Y,s,c,r,i,u,d,p,w,undefined,X,H,async function(t){var e=t.target.value;if("string"==typeof g||k)n(0,g=e);else if("number"==typeof g)n(0,g=parseInt(e));else{var l=r?.filter(t=>t.id==e||t.cod==e);n(0,g=l[0]||{cod:e})}w("click"),w("change",g)},Z,U,V,J,q,K,function(t){var e=(t.cod||t.id+"").toLowerCase();return(g||"").toLowerCase().split(";").includes(e)?1:0},function(t){t.stopPropagation(),t.target.checked?n(0,g=F):n(0,g=E),w("click",g)},function(t){"Enter"==t.key&&w("click",g)},Q,e,k,D,F,E,T,a,t=>{V(t.target.value),U()},t=>{V(t.target.value)},t=>{for(var e of r)K(t.detail.value,e);t.detail.value||n(0,g=""),n(1,y=[...y])},(t,e)=>{b.checkvisibility(e)&&K(e.detail.value,t)},function(t){_[t?"unshift":"push"](()=>{h=t,n(15,h)})},()=>{N||(n(17,L=!L),b.openmenu(L))},function(t){_[t?"unshift":"push"](()=>{b=t,n(16,b)})},()=>n(17,L=!1),()=>{n(2,C=parseFloat(C)||1),n(19,Y=J(g)),n(18,W=!0)},t=>{if("Escape"===t.key)n(19,Y=J(g)),t.target.value=Y;else if("Enter"===t.key){const e=g;q(t.target.value),e!=g&&w("click",g)}else n(19,Y=t.target.value)},t=>{n(18,W=!1);const e=g;q(t.target.value),g!==e&&w("click",g)},t=>{n(18,W=!1),Z(t.target.value)},t=>{n(18,W=!1),Z(t.target.value)},t=>{n(0,g=z?(t.target.value||"").toUpperCase():t.target.value),U(),X(t)},t=>{g!=t.target.value&&(n(0,g=t.target.value),U())},f]}class Tl extends t{constructor(t){super(),e(this,t,Ol,Dl,n,{value:0,placeholder:3,options:1,maxlength:4,forcestring:43,uppercase:5,onlycod:6,valid:7,error:8,showcod:9,noborder:10,sm:11,autosize:44,truevalue:45,falsevalue:46,type:12,decimali:47,coeff:2,rows:13,readonly:14},null,[-1,-1,-1])}}function Cl(t){let e,n,l;return n=new On({props:{id:t[1]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","label pt-1 h-6")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};2&e[0]&&(l.id=t[1]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Pl(t){let e,n,l;return n=new On({props:{id:t[1]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","label leading-none pr-2"),p(e,"style","wlabel?'width: '+wlabel+'%;':''"),m(e,"text-right",!t[2]),m(e,"text-sm",t[15])},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,o){const i={};2&o[0]&&(i.id=t[1]),n.$set(i),(!l||4&o[0])&&m(e,"text-right",!t[2]),(!l||32768&o[0])&&m(e,"text-sm",t[15])},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Rl(t){let e;const n=t[26].default,l=i(n,t,t[31],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||1&o[1])&&a(l,n,t,t[31],e?d(n,t[31],o,null):f(t[31]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function Nl(t){let e,n,l="slot"==t[19]&&Rl(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,n){"slot"==t[19]?l?(l.p(t,n),524288&n[0]&&s(l,1)):(l=Rl(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function Ll(t){let e,n,l;function o(e){t[27](e)}let i={placeholder:t[3],options:t[10],onlycod:t[5],uppercase:t[7],forcestring:t[9],tooltip:t[12],valid:t[13],autosize:t[8],error:t[14],sm:t[15],showcod:t[6],noborder:t[11],truevalue:t[16],falsevalue:t[18],type:t[19],decimali:t[20],maxlength:t[17],rows:t[21],coeff:t[22],disabled:t[23],readonly:t[24],$$slots:{default:[Nl]},$$scope:{ctx:t}};return void 0!==t[0]&&(i.value=t[0]),e=new Tl({props:i}),_.push(()=>V(e,"value",o)),e.$on("input",t[28]),e.$on("change",t[29]),e.$on("click",t[30]),{c(){T(e.$$.fragment)},m(t,n){F(e,t,n),l=!0},p(t,l){const o={};8&l[0]&&(o.placeholder=t[3]),1024&l[0]&&(o.options=t[10]),32&l[0]&&(o.onlycod=t[5]),128&l[0]&&(o.uppercase=t[7]),512&l[0]&&(o.forcestring=t[9]),4096&l[0]&&(o.tooltip=t[12]),8192&l[0]&&(o.valid=t[13]),256&l[0]&&(o.autosize=t[8]),16384&l[0]&&(o.error=t[14]),32768&l[0]&&(o.sm=t[15]),64&l[0]&&(o.showcod=t[6]),2048&l[0]&&(o.noborder=t[11]),65536&l[0]&&(o.truevalue=t[16]),262144&l[0]&&(o.falsevalue=t[18]),524288&l[0]&&(o.type=t[19]),1048576&l[0]&&(o.decimali=t[20]),131072&l[0]&&(o.maxlength=t[17]),2097152&l[0]&&(o.rows=t[21]),4194304&l[0]&&(o.coeff=t[22]),8388608&l[0]&&(o.disabled=t[23]),16777216&l[0]&&(o.readonly=t[24]),524288&l[0]|1&l[1]&&(o.$$scope={dirty:l,ctx:t}),!n&&1&l[0]&&(n=!0,o.value=t[0],Y(()=>n=!1)),e.$set(o)},i(t){l||(s(e.$$.fragment,t),l=!0)},o(t){c(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function Xl(t){let e;const n=t[26].default,l=i(n,t,t[31],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||1&o[1])&&a(l,n,t,t[31],e?d(n,t[31],o,null):f(t[31]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function Hl(t){let e,n,l,o,i,u,a,f,d,m=t[1]&&!t[4]&&Cl(t),w=t[1]&&t[4]&&Pl(t);u=new sn({props:{tooltip:t[12],$$slots:{default:[Ll]},$$scope:{ctx:t}}});let v="slot"!=t[19]&&Xl(t);return{c(){e=b("div"),m&&m.c(),n=g(),l=b("div"),w&&w.c(),o=g(),i=b("div"),T(u.$$.fragment),a=g(),v&&v.c(),p(i,"class","flex-1"),p(l,"class","flexrow w-full space-x-1 items-center"),p(e,"class",f=`labinput ${t[25].class||""}`)},m(t,r){x(t,e,r),m&&m.m(e,null),h(e,n),h(e,l),w&&w.m(l,null),h(l,o),h(l,i),F(u,i,null),h(l,a),v&&v.m(l,null),d=!0},p(t,i){t[1]&&!t[4]?m?(m.p(t,i),18&i[0]&&s(m,1)):(m=Cl(t),m.c(),s(m,1),m.m(e,n)):m&&(k(),c(m,1,1,()=>{m=null}),z()),t[1]&&t[4]?w?(w.p(t,i),18&i[0]&&s(w,1)):(w=Pl(t),w.c(),s(w,1),w.m(l,o)):w&&(k(),c(w,1,1,()=>{w=null}),z());const r={};4096&i[0]&&(r.tooltip=t[12]),33554409&i[0]|1&i[1]&&(r.$$scope={dirty:i,ctx:t}),u.$set(r),"slot"!=t[19]?v?(v.p(t,i),524288&i[0]&&s(v,1)):(v=Xl(t),v.c(),s(v,1),v.m(l,null)):v&&(k(),c(v,1,1,()=>{v=null}),z()),(!d||33554432&i[0]&&f!==(f=`labinput ${t[25].class||""}`))&&p(e,"class",f)},i(t){d||(s(m),s(w),s(u.$$.fragment,t),s(v),d=!0)},o(t){c(m),c(w),c(u.$$.fragment,t),c(v),d=!1},d(t){t&&r(e),m&&m.d(),w&&w.d(),D(u),v&&v.d()}}}function Zl(t,e,n){let{$$slots:i={},$$scope:r}=e;const{_:c}=zt();let{value:s="",label:u="",labelleft:a=!1,placeholder:f="",oriz:d=!1,onlycod:p=!1,showcod:m=!1,uppercase:x=!1,autosize:h,forcestring:b=!1,options:w,noborder:g=!1,tooltip:v="",valid:y=!1,error:$=!1,sm:k=!1,truevalue:z=1,maxlength:_,falsevalue:j=0,type:S="text",decimali:I=2,rows:A=5,coeff:M=1,disabled:B=!1,readonly:D=!1}=e;return t.$$set=t=>{n(25,e=l(l({},e),o(t))),"value"in t&&n(0,s=t.value),"label"in t&&n(1,u=t.label),"labelleft"in t&&n(2,a=t.labelleft),"placeholder"in t&&n(3,f=t.placeholder),"oriz"in t&&n(4,d=t.oriz),"onlycod"in t&&n(5,p=t.onlycod),"showcod"in t&&n(6,m=t.showcod),"uppercase"in t&&n(7,x=t.uppercase),"autosize"in t&&n(8,h=t.autosize),"forcestring"in t&&n(9,b=t.forcestring),"options"in t&&n(10,w=t.options),"noborder"in t&&n(11,g=t.noborder),"tooltip"in t&&n(12,v=t.tooltip),"valid"in t&&n(13,y=t.valid),"error"in t&&n(14,$=t.error),"sm"in t&&n(15,k=t.sm),"truevalue"in t&&n(16,z=t.truevalue),"maxlength"in t&&n(17,_=t.maxlength),"falsevalue"in t&&n(18,j=t.falsevalue),"type"in t&&n(19,S=t.type),"decimali"in t&&n(20,I=t.decimali),"rows"in t&&n(21,A=t.rows),"coeff"in t&&n(22,M=t.coeff),"disabled"in t&&n(23,B=t.disabled),"readonly"in t&&n(24,D=t.readonly),"$$scope"in t&&n(31,r=t.$$scope)},t.$$.update=()=>{t.$$.dirty[0]},e=o(e),[s,u,a,f,d,p,m,x,h,b,w,g,v,y,$,k,z,_,j,S,I,A,M,B,D,e,i,function(t){s=t,n(0,s)},function(e){X.call(this,t,e)},function(e){X.call(this,t,e)},function(e){X.call(this,t,e)},r]}class Ul extends t{constructor(t){super(),e(this,t,Zl,Hl,n,{value:0,label:1,labelleft:2,placeholder:3,oriz:4,onlycod:5,showcod:6,uppercase:7,autosize:8,forcestring:9,options:10,noborder:11,tooltip:12,valid:13,error:14,sm:15,truevalue:16,maxlength:17,falsevalue:18,type:19,decimali:20,rows:21,coeff:22,disabled:23,readonly:24},null,[-1,-1])}}const Vl=t=>({}),Yl=t=>({});function Wl(t){let e,n,l,o,i,u,a,f,d,m,w,v,y,$=t[5]&&Jl(t),_=(t[1]||t[7]||t[8])&&ql(t);const I=[Kl,Gl],M=[];function B(t,e){return t[8]||t[7]?0:1}return a=B(t),f=M[a]=I[a](t),{c(){e=b("div"),n=b("button"),l=g(),o=b("button"),$&&$.c(),i=g(),_&&_.c(),u=g(),f.c(),p(n,"aria-label","bg"),p(n,"class","bg svelte-l4jjoj"),p(o,"class",d=W(t[15])+" svelte-l4jjoj"),p(o,"style",t[14]),p(e,"class","contenitore svelte-l4jjoj")},m(r,c){x(r,e,c),h(e,n),h(e,l),h(e,o),$&&$.m(o,null),h(o,i),_&&_.m(o,null),h(o,u),M[a].m(o,null),t[36](o),w=!0,v||(y=[S(n,"click",t[20]),S(o,"click",t[37])],v=!0)},p(e,n){(t=e)[5]?$?($.p(t,n),32&n[0]&&s($,1)):($=Jl(t),$.c(),s($,1),$.m(o,i)):$&&(k(),c($,1,1,()=>{$=null}),z()),t[1]||t[7]||t[8]?_?(_.p(t,n),386&n[0]&&s(_,1)):(_=ql(t),_.c(),s(_,1),_.m(o,u)):_&&(k(),c(_,1,1,()=>{_=null}),z());let l=a;a=B(t),a===l?M[a].p(t,n):(k(),c(M[l],1,1,()=>{M[l]=null}),z(),f=M[a],f?f.p(t,n):(f=M[a]=I[a](t),f.c()),s(f,1),f.m(o,null)),(!w||32768&n[0]&&d!==(d=W(t[15])+" svelte-l4jjoj"))&&p(o,"class",d),(!w||16384&n[0])&&p(o,"style",t[14])},i(e){w||(s($),s(_),s(f),e&&A(()=>{w&&(m||(m=C(o,Bt,t[9]?{x:-300,duration:400}:t[10]?{x:300,duration:400}:{y:200,duration:400},!0)),m.run(1))}),w=!0)},o(e){c($),c(_),c(f),e&&(m||(m=C(o,Bt,t[9]?{x:-300,duration:400}:t[10]?{x:300,duration:400}:{y:200,duration:400},!1)),m.run(0)),w=!1},d(n){n&&r(e),$&&$.d(),_&&_.d(),M[a].d(),t[36](null),n&&m&&m.end(),v=!1,j(y)}}}function Jl(t){let e,n,l;return n=new pn({props:{img:"close",alt:!0,size:8}}),n.$on("click",t[20]),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","absolute top-2 right-1")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function ql(t){let e,n,l,o,i,u;return n=new On({props:{id:t[1]||""}}),{c(){e=b("button"),T(n.$$.fragment),p(e,"class",l="w-full py-2 px-4 text-left "+t[13]+" text-xl text-header svelte-l4jjoj")},m(l,r){x(l,e,r),F(n,e,null),o=!0,i||(u=[S(e,"mousedown",t[17]),S(e,"mousemove",t[18]),S(e,"mouseleave",t[19]),S(e,"mouseup",t[19])],i=!0)},p(t,i){const r={};2&i[0]&&(r.id=t[1]||""),n.$set(r),(!o||8192&i[0]&&l!==(l="w-full py-2 px-4 text-left "+t[13]+" text-xl text-header svelte-l4jjoj"))&&p(e,"class",l)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),D(n),i=!1,j(u)}}}function Gl(t){let e,n,l;const o=t[31].default,u=i(o,t,t[38],null),m=u||function(t){let e,n,l;return n=new On({props:{id:t[2],html:!0}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","p-2 flex flex-col space-y-2")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};4&e[0]&&(l.id=t[2]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}(t);let h=t[16]&&Ql(t);return{c(){m&&m.c(),e=g(),h&&h.c(),n=$()},m(t,o){m&&m.m(t,o),x(t,e,o),h&&h.m(t,o),x(t,n,o),l=!0},p(t,e){u?u.p&&(!l||128&e[1])&&a(u,o,t,t[38],l?d(o,t[38],e,null):f(t[38]),null):m&&m.p&&(!l||4&e[0])&&m.p(t,l?e:[-1,-1]),t[16]?h?(h.p(t,e),65536&e[0]&&s(h,1)):(h=Ql(t),h.c(),s(h,1),h.m(n.parentNode,n)):h&&(k(),c(h,1,1,()=>{h=null}),z())},i(t){l||(s(m,t),s(h),l=!0)},o(t){c(m,t),c(h),l=!1},d(t){t&&(r(e),r(n)),m&&m.d(t),h&&h.d(t)}}}function Kl(t){let e,n,l,o,u=!t[6]&&co(t);const m=t[31].default,h=i(m,t,t[38],null);return{c(){u&&u.c(),e=g(),n=b("div"),h&&h.c(),p(n,"class",l="h-full bg-white overflow-y-auto "+(t[21].class||"")+" svelte-l4jjoj")},m(t,l){u&&u.m(t,l),x(t,e,l),x(t,n,l),h&&h.m(n,null),o=!0},p(t,i){t[6]?u&&(k(),c(u,1,1,()=>{u=null}),z()):u?(u.p(t,i),64&i[0]&&s(u,1)):(u=co(t),u.c(),s(u,1),u.m(e.parentNode,e)),h&&h.p&&(!o||128&i[1])&&a(h,m,t,t[38],o?d(m,t[38],i,null):f(t[38]),null),(!o||2097152&i[0]&&l!==(l="h-full bg-white overflow-y-auto "+(t[21].class||"")+" svelte-l4jjoj"))&&p(n,"class",l)},i(t){o||(s(u),s(h,t),o=!0)},o(t){c(u),c(h,t),o=!1},d(t){t&&(r(e),r(n)),u&&u.d(t),h&&h.d(t)}}}function Ql(t){let e,n,l,o;const i=[eo,to],u=[];function a(t,e){return t[3]||t[4]?0:1}return n=a(t),l=u[n]=i[n](t),{c(){e=b("div"),l.c(),p(e,"class","flexrow w-full space-x-2 p-4")},m(t,l){x(t,e,l),u[n].m(e,null),o=!0},p(t,o){let r=n;n=a(t),n===r?u[n].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),l=u[n],l?l.p(t,o):(l=u[n]=i[n](t),l.c()),s(l,1),l.m(e,null))},i(t){o||(s(l),o=!0)},o(t){c(l),o=!1},d(t){t&&r(e),u[n].d()}}}function to(t){let e,n,l,o,i,u;return i=new zn({props:{danger:t[11],$$slots:{default:[no]},$$scope:{ctx:t}}}),i.$on("click",t[35]),{c(){e=b("div"),n=g(),l=b("div"),o=g(),T(i.$$.fragment),p(e,"class","flex-1"),p(l,"class","flex-1")},m(t,r){x(t,e,r),x(t,n,r),x(t,l,r),x(t,o,r),F(i,t,r),u=!0},p(t,e){const n={};2048&e[0]&&(n.danger=t[11]),128&e[1]&&(n.$$scope={dirty:e,ctx:t}),i.$set(n)},i(t){u||(s(i.$$.fragment,t),u=!0)},o(t){c(i.$$.fragment,t),u=!1},d(t){t&&(r(e),r(n),r(l),r(o)),D(i,t)}}}function eo(t){let e,n,l,o,i,u,a;e=new zn({props:{alt:!0,$$slots:{default:[lo]},$$scope:{ctx:t}}}),e.$on("click",t[32]);let f=t[4]&&oo(t);return u=new zn({props:{danger:t[11],$$slots:{default:[ro]},$$scope:{ctx:t}}}),u.$on("click",t[34]),{c(){T(e.$$.fragment),n=g(),l=b("div"),o=g(),f&&f.c(),i=g(),T(u.$$.fragment),p(l,"class","flex-1")},m(t,r){F(e,t,r),x(t,n,r),x(t,l,r),x(t,o,r),f&&f.m(t,r),x(t,i,r),F(u,t,r),a=!0},p(t,n){const l={};128&n[1]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l),t[4]?f?(f.p(t,n),16&n[0]&&s(f,1)):(f=oo(t),f.c(),s(f,1),f.m(i.parentNode,i)):f&&(k(),c(f,1,1,()=>{f=null}),z());const o={};2048&n[0]&&(o.danger=t[11]),128&n[1]&&(o.$$scope={dirty:n,ctx:t}),u.$set(o)},i(t){a||(s(e.$$.fragment,t),s(f),s(u.$$.fragment,t),a=!0)},o(t){c(e.$$.fragment,t),c(f),c(u.$$.fragment,t),a=!1},d(t){t&&(r(n),r(l),r(o),r(i)),D(e,t),f&&f.d(t),D(u,t)}}}function no(t){let e,n;return e=new On({props:{id:"ok"}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function lo(t){let e,n;return e=new On({props:{id:"no"}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function oo(t){let e,n;return e=new zn({props:{alt:!0,$$slots:{default:[io]},$$scope:{ctx:t}}}),e.$on("click",t[33]),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};128&n[1]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function io(t){let e,n;return e=new On({props:{id:"cancella"}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function ro(t){let e,n;return e=new On({props:{id:"si"}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function co(t){let e,n;const l=t[31].Footer,o=i(l,t,t[38],Yl),u=o||function(){let t;return{c(){t=w("footer")},m(e,n){x(e,t,n)},d(e){e&&r(t)}}}();return{c(){e=b("div"),u&&u.c(),p(e,"class","outline-c-100 bg-c-group border-t p-2")},m(t,l){x(t,e,l),u&&u.m(e,null),n=!0},p(t,e){o&&o.p&&(!n||128&e[1])&&a(o,l,t,t[38],n?d(l,t[38],e,Vl):f(t[38]),Yl)},i(t){n||(s(u,t),n=!0)},o(t){c(u,t),n=!1},d(t){t&&r(e),u&&u.d(t)}}}function so(t){let e,n,l=t[0]&&Wl(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,n){t[0]?l?(l.p(t,n),1&n[0]&&s(l,1)):(l=Wl(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function uo(t,e,n){let i,r,c,s,{$$slots:u={},$$scope:a}=e;const{autofocus:f}=zt(),d=G();var p,m,x=0,h=0,b=0,w=0,g=!1;function v(t){g&&(n(29,b=t.x-p),n(30,w=t.y-m))}function y(t){g&&(g=!1,n(27,x+=b),n(28,h+=w),n(29,b=0),n(30,w=0),cursorStyle="default",window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",y))}let $,{show:k=!1,title:z="",text:j="",yesno:S=!1,yesnocancel:I=!1,noscroll:A=!1,close:M=!1,ok:B=!1,nofooter:D=!1,xl:F,screen:E,wfull:O,hfull:T,left:C,right:P,warning:R=!1,danger:N=!1}=e;function L(t){d("close",t),d("click",t)}return t.$$set=t=>{n(21,e=l(l({},e),o(t))),"show"in t&&n(0,k=t.show),"title"in t&&n(1,z=t.title),"text"in t&&n(2,j=t.text),"yesno"in t&&n(3,S=t.yesno),"yesnocancel"in t&&n(4,I=t.yesnocancel),"noscroll"in t&&n(22,A=t.noscroll),"close"in t&&n(5,M=t.close),"ok"in t&&n(23,B=t.ok),"nofooter"in t&&n(6,D=t.nofooter),"xl"in t&&n(24,F=t.xl),"screen"in t&&n(7,E=t.screen),"wfull"in t&&n(25,O=t.wfull),"hfull"in t&&n(8,T=t.hfull),"left"in t&&n(9,C=t.left),"right"in t&&n(10,P=t.right),"warning"in t&&n(26,R=t.warning),"danger"in t&&n(11,N=t.danger),"$$scope"in t&&n(38,a=t.$$scope)},t.$$.update=()=>{var e;4097&t.$$.dirty[0]&&(n(27,x=0),n(28,h=0),n(29,b=0),n(30,w=0),g=!1,f(k,$),n(27,x=0),n(28,h=0),n(29,b=0),n(30,w=0),g=!1),8388632&t.$$.dirty[0]&&n(16,i=B||S||I),50332032&t.$$.dirty[0]&&n(15,r=function(){var t="max-w-lg";if(F){var e=parseInt(F);t=e>1&&e<9?`max-w-${e}xl`:"max-w-xl"}return(O||E)&&(t="w-screen"),`relative overflow-x-hidden msg ${t} ${C?"mr-auto":P?"ml-auto":"mx-auto"} \n ${O||T||E?"":"rounded-md"} \n ${T||E?D?"h-screen grid grid-rows-[auto_1fr]":"h-screen grid grid-rows-[auto_auto_1fr]":""} \n ${A||E||T?"overflow-y-hidden":"overflow-y-auto"}`}()),2013266304&t.$$.dirty[0]&&n(14,(e=x+b||h+w?`transform: translate(${x+b}px , ${h+w}px); `:"",(E||T)&&(e=`${e} height: ${T&&T>=20&&T<100?T+"vh":"100vh"};`),c=e)),67110912&t.$$.dirty[0]&&n(13,s=N?"bg-c-danger":R?"bg-c-warning":"bg-headerbg")},e=o(e),[k,z,j,S,I,M,D,E,T,C,P,N,$,s,c,r,i,function(t){E||O||T||(p=t.x,m=t.y,g=!0,cursorStyle="move",window.addEventListener("mousemove",v),window.addEventListener("mouseup",y))},v,y,L,e,A,B,F,O,R,x,h,b,w,u,()=>L("no"),()=>L("cancel"),()=>L("yes"),()=>L("yes"),function(t){_[t?"unshift":"push"](()=>{$=t,n(12,$)})},t=>{i&&(t.preventDefault(),t.stopPropagation())},a]}class ao extends t{constructor(t){super(),e(this,t,uo,so,n,{show:0,title:1,text:2,yesno:3,yesnocancel:4,noscroll:22,close:5,ok:23,nofooter:6,xl:24,screen:7,wfull:25,hfull:8,left:9,right:10,warning:26,danger:11},null,[-1,-1])}}function fo(t,e,n){const l=t.slice();return l[101]=e[n],l}function po(t,e,n){const l=t.slice();return l[104]=e[n],l[105]=e,l[106]=n,l}function mo(t,e,n){const l=t.slice();return l[107]=e[n],l[108]=e,l[106]=n,l}function xo(t,e,n){const l=t.slice();return l[109]=e[n],l}const ho=t=>({bt:1048576&t[0],x:4&t[0]}),bo=t=>({bt:t[109],x:t[107],row:t[106]});function wo(t,e,n){const l=t.slice();return l[104]=e[n],l}const go=t=>({f:128&t[1],x:4&t[0]}),vo=t=>({f:t[104],x:t[107],row:t[106]});function yo(t,e,n){const l=t.slice();return l[104]=e[n],l[114]=e,l[115]=n,l}function $o(t,e,n){const l=t.slice();return l[104]=e[n],l}const ko=t=>({}),zo=t=>({}),_o=t=>({}),jo=t=>({}),So=t=>({}),Io=t=>({}),Ao=t=>({}),Mo=t=>({});function Bo(t){let e,n,l,o,i,u,a,f,d,m,w;const v=[Fo,Do],y=[];function j(t,e){return t[8]?0:1}n=j(t),l=y[n]=v[n](t);let S=open&&function(t){let e,n,l,o;const i=[Ho,Xo],u=[];function a(t,e){return 2==t[1]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}(t);function I(e){t[88](e)}a=new ao({props:{show:t[32],xl:2,title:"Dettaglio",close:!0,$$slots:{default:[_i]},$$scope:{ctx:t}}}),a.$on("close",t[48]);let A={element:t[29],$$slots:{default:[Ii]},$$scope:{ctx:t}};return void 0!==t[30]&&(A.show=t[30]),d=new wn({props:A}),_.push(()=>V(d,"show",I)),{c(){e=b("div"),l.c(),o=g(),S&&S.c(),u=g(),T(a.$$.fragment),f=g(),T(d.$$.fragment),p(e,"class",i=t[53].class||"")},m(t,l){x(t,e,l),y[n].m(e,null),h(e,o),S&&S.m(e,null),x(t,u,l),F(a,t,l),x(t,f,l),F(d,t,l),w=!0},p(t,r){let u=n;n=j(t),n===u?y[n].p(t,r):(k(),c(y[u],1,1,()=>{y[u]=null}),z(),l=y[n],l?l.p(t,r):(l=y[n]=v[n](t),l.c()),s(l,1),l.m(e,o)),open&&S.p(t,r),(!w||4194304&r[1]&&i!==(i=t[53].class||""))&&p(e,"class",i);const f={};2&r[1]&&(f.show=t[32]),10485761&r[0]|1026&r[1]|134217728&r[2]&&(f.$$scope={dirty:r,ctx:t}),a.$set(f);const x={};536870912&r[0]&&(x.element=t[29]),1610612736&r[0]|17&r[1]|134217728&r[2]&&(x.$$scope={dirty:r,ctx:t}),!m&&1073741824&r[0]&&(m=!0,x.show=t[30],Y(()=>m=!1)),d.$set(x)},i(t){w||(s(l),s(S),s(a.$$.fragment,t),s(d.$$.fragment,t),w=!0)},o(t){c(l),c(S),c(a.$$.fragment,t),c(d.$$.fragment,t),w=!1},d(t){t&&(r(e),r(u),r(f)),y[n].d(),S&&S.d(),D(a,t),D(d,t)}}}function Do(t){let e,n;return e=new sn({props:{tooltip:t[10],left:!0,bottom:!0,$$slots:{default:[Lo]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};1024&n[0]&&(l.tooltip=t[10]),407773315&n[0]|256&n[1]|134217728&n[2]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Fo(t){let e;const n=t[59].default,l=i(n,t,t[89],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||134217728&o[2])&&a(l,n,t,t[89],e?d(n,t[89],o,null):f(t[89]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function Eo(t){let e,n,l;return n=new pn({props:{white:!0,img:1==t[1]?"grid_view":"list",mat:!0,size:6}}),n.$on("click",t[60]),{c(){e=b("div"),T(n.$$.fragment)},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};2&e[0]&&(l.img=1==t[1]?"grid_view":"list"),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Oo(t){let e,n,l,o;function i(e){t[61](e)}let u={sm:!0};return void 0!==t[27]&&(u.value=t[27]),n=new An({props:u}),_.push(()=>V(n,"value",i)),n.$on("input",t[62]),n.$on("click",t[63]),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","px-2 flex-1 md:w-64")},m(t,l){x(t,e,l),F(n,e,null),o=!0},p(t,e){const o={};!l&&134217728&e[0]&&(l=!0,o.value=t[27],Y(()=>l=!1)),n.$set(o)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),D(n)}}}function To(t){let e,n,l;return n=new pn({props:{alt:!0,img:"content_copy",mat:!0,size:6,tooltip:"Copia dati su clipboard (CSV)"}}),n.$on("click",t[64]),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","h-6 w-6")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Co(t){let e,n,l;return n=new pn({props:{alt:!0,img:"file_download",mat:!0,size:6,tooltip:"Export tabella"}}),n.$on("click",t[65]),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","h-6 w-6")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Po(t){let e,n,l;return n=new pn({props:{alt:!0,img:"file_upload",mat:!0,size:6,tooltip:"import tabella"}}),n.$on("click",t[66]),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","h-6 w-6")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Ro(t){let e,n,l;return n=new pn({props:{size:6,img:t[28]?"filter_alt_off":"filter_alt"}}),n.$on("click",t[67]),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","h-6")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};268435456&e[0]&&(l.img=t[28]?"filter_alt_off":"filter_alt"),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function No(t){let e,n;const l=t[59].btnadd,o=i(l,t,t[89],jo),u=o||function(t){let e,n;return e=new pn({props:{size:6,img:"add"}}),e.$on("click",t[68]),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}(t);return{c(){e=b("div"),u&&u.c(),p(e,"class","w-6 h-6")},m(t,l){x(t,e,l),u&&u.m(e,null),n=!0},p(t,e){o&&o.p&&(!n||134217728&e[2])&&a(o,l,t,t[89],n?d(l,t[89],e,_o):f(t[89]),jo)},i(t){n||(s(u,t),n=!0)},o(t){c(u,t),n=!1},d(t){t&&r(e),u&&u.d(t)}}}function Lo(t){let e,n,l,o,u,m,w,v,y,$,_,j=t[1]&&Eo(t);const S=t[59].title,I=i(S,t,t[89],Mo),A=I||function(t){let e,n,l;return n=new On({props:{id:t[22]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","hidden px-2 md:block flex-1 text-xs md:text-sm text-left font-bold uppercase")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};4194304&e[0]&&(l.id=t[22]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}(t),M=t[59].default,B=i(M,t,t[89],null);let E=!t[7]&&Oo(t),O=t[17]&&To(t),C=t[18]&&Co(t),P=t[19]&&Po(t),R=!t[13]&&Ro(t);const N=t[59].btntitle,L=i(N,t,t[89],Io);let X=t[39]&&No(t);return{c(){e=b("button"),j&&j.c(),n=g(),A&&A.c(),l=g(),B&&B.c(),o=g(),E&&E.c(),u=g(),O&&O.c(),m=g(),C&&C.c(),w=g(),P&&P.c(),v=g(),R&&R.c(),y=g(),L&&L.c(),$=g(),X&&X.c(),p(e,"class","titolo items-center")},m(t,i){x(t,e,i),j&&j.m(e,null),h(e,n),A&&A.m(e,null),h(e,l),B&&B.m(e,null),h(e,o),E&&E.m(e,null),h(e,u),O&&O.m(e,null),h(e,m),C&&C.m(e,null),h(e,w),P&&P.m(e,null),h(e,v),R&&R.m(e,null),h(e,y),L&&L.m(e,null),h(e,$),X&&X.m(e,null),_=!0},p(t,l){t[1]?j?(j.p(t,l),2&l[0]&&s(j,1)):(j=Eo(t),j.c(),s(j,1),j.m(e,n)):j&&(k(),c(j,1,1,()=>{j=null}),z()),I?I.p&&(!_||134217728&l[2])&&a(I,S,t,t[89],_?d(S,t[89],l,Ao):f(t[89]),Mo):A&&A.p&&(!_||4194304&l[0])&&A.p(t,_?l:[-1,-1,-1,-1]),B&&B.p&&(!_||134217728&l[2])&&a(B,M,t,t[89],_?d(M,t[89],l,null):f(t[89]),null),t[7]?E&&(k(),c(E,1,1,()=>{E=null}),z()):E?(E.p(t,l),128&l[0]&&s(E,1)):(E=Oo(t),E.c(),s(E,1),E.m(e,u)),t[17]?O?(O.p(t,l),131072&l[0]&&s(O,1)):(O=To(t),O.c(),s(O,1),O.m(e,m)):O&&(k(),c(O,1,1,()=>{O=null}),z()),t[18]?C?(C.p(t,l),262144&l[0]&&s(C,1)):(C=Co(t),C.c(),s(C,1),C.m(e,w)):C&&(k(),c(C,1,1,()=>{C=null}),z()),t[19]?P?(P.p(t,l),524288&l[0]&&s(P,1)):(P=Po(t),P.c(),s(P,1),P.m(e,v)):P&&(k(),c(P,1,1,()=>{P=null}),z()),t[13]?R&&(k(),c(R,1,1,()=>{R=null}),z()):R?(R.p(t,l),8192&l[0]&&s(R,1)):(R=Ro(t),R.c(),s(R,1),R.m(e,y)),L&&L.p&&(!_||134217728&l[2])&&a(L,N,t,t[89],_?d(N,t[89],l,So):f(t[89]),Io),t[39]?X?(X.p(t,l),256&l[1]&&s(X,1)):(X=No(t),X.c(),s(X,1),X.m(e,null)):X&&(k(),c(X,1,1,()=>{X=null}),z())},i(t){_||(s(j),s(A,t),s(B,t),s(E),s(O),s(C),s(P),s(R),s(L,t),s(X),_=!0)},o(t){c(j),c(A,t),c(B,t),c(E),c(O),c(C),c(P),c(R),c(L,t),c(X),_=!1},d(t){t&&r(e),j&&j.d(),A&&A.d(t),B&&B.d(t),E&&E.d(),O&&O.d(),C&&C.d(),P&&P.d(),R&&R.d(),L&&L.d(t),X&&X.d()}}}function Xo(t){let e,n,l,o,i,u,a,f,d,m,w,v,y,$=t[15]&&Zo(),_=t[16]&&Uo(t),j=Z(t[38]),I=[];for(let e=0;e<j.length;e+=1)I[e]=Jo($o(t,j,e));const A=t=>c(I[t],1,1,()=>{I[t]=null});let M=t[37]&&qo(t),B=!t[13]&&t[28]&&t[0]&&Go(t),D=Z(t[2]),F=[];for(let e=0;e<D.length;e+=1)F[e]=vi(mo(t,D,e));const E=t=>c(F[t],1,1,()=>{F[t]=null});return{c(){e=b("div"),n=b("table"),l=b("thead"),o=b("tr"),$&&$.c(),i=g(),_&&_.c(),u=g();for(let t=0;t<I.length;t+=1)I[t].c();a=g(),M&&M.c(),f=g(),B&&B.c(),d=g(),m=b("tbody");for(let t=0;t<F.length;t+=1)F[t].c();p(n,"class","table text-sm sm"),p(e,"class","relative w-full")},m(r,c){x(r,e,c),h(e,n),h(n,l),h(l,o),$&&$.m(o,null),h(o,i),_&&_.m(o,null),h(o,u);for(let t=0;t<I.length;t+=1)I[t]&&I[t].m(o,null);h(o,a),M&&M.m(o,null),h(l,f),B&&B.m(l,null),h(n,d),h(n,m);for(let t=0;t<F.length;t+=1)F[t]&&F[t].m(m,null);w=!0,v||(y=S(n,"mouseleave",t[83]),v=!0)},p(t,e){if(t[15]?$||($=Zo(),$.c(),$.m(o,i)):$&&($.d(1),$=null),t[16]?_?(_.p(t,e),65536&e[0]&&s(_,1)):(_=Uo(t),_.c(),s(_,1),_.m(o,u)):_&&(k(),c(_,1,1,()=>{_=null}),z()),24&e[0]|8320&e[1]){let n;for(j=Z(t[38]),n=0;n<j.length;n+=1){const l=$o(t,j,n);I[n]?(I[n].p(l,e),s(I[n],1)):(I[n]=Jo(l),I[n].c(),s(I[n],1),I[n].m(o,a))}for(k(),n=j.length;n<I.length;n+=1)A(n);z()}if(t[37]?M?(M.p(t,e),64&e[1]&&s(M,1)):(M=qo(t),M.c(),s(M,1),M.m(o,null)):M&&(k(),c(M,1,1,()=>{M=null}),z()),!t[13]&&t[28]&&t[0]?B?(B.p(t,e),268443649&e[0]&&s(B,1)):(B=Go(t),B.c(),s(B,1),B.m(l,null)):B&&(k(),c(B,1,1,()=>{B=null}),z()),1729223268&e[0]|3956989&e[1]|134217728&e[2]){let n;for(D=Z(t[2]),n=0;n<D.length;n+=1){const l=mo(t,D,n);F[n]?(F[n].p(l,e),s(F[n],1)):(F[n]=vi(l),F[n].c(),s(F[n],1),F[n].m(m,null))}for(k(),n=D.length;n<F.length;n+=1)E(n);z()}},i(t){if(!w){s(_);for(let t=0;t<j.length;t+=1)s(I[t]);s(M),s(B);for(let t=0;t<D.length;t+=1)s(F[t]);w=!0}},o(t){c(_),I=I.filter(Boolean);for(let t=0;t<I.length;t+=1)c(I[t]);c(M),c(B),F=F.filter(Boolean);for(let t=0;t<F.length;t+=1)c(F[t]);w=!1},d(t){t&&r(e),$&&$.d(),_&&_.d(),U(I,t),M&&M.d(),B&&B.d(),U(F,t),v=!1,y()}}}function Ho(t){let e;const n=t[59].grid,l=i(n,t,t[89],zo),o=l||function(){let t;return{c(){t=b("div"),t.textContent="mostra la griglia"},m(e,n){x(e,t,n)},p:y,d(e){e&&r(t)}}}();return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||134217728&o[2])&&a(l,n,t,t[89],e?d(n,t[89],o,ko):f(t[89]),zo)},i(t){e||(s(o,t),e=!0)},o(t){c(o,t),e=!1},d(t){o&&o.d(t)}}}function Zo(t){let e;return{c(){e=b("th"),p(e,"class","w-5")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function Uo(t){let e,n,l;return n=new sn({props:{tooltip:"seleziona righe",$$slots:{default:[Vo]},$$scope:{ctx:t}}}),{c(){e=b("th"),T(n.$$.fragment),p(e,"class","w-6")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};134217728&e[2]&&(l.$$scope={dirty:e,ctx:t}),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Vo(t){let e,n;return e=new Hn({props:{checkbox:!0,xs:!0}}),e.$on("click",t[69]),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Yo(t){let e,n=("."==t[104]?.des?"":t[104]?.des||t[104]?.cod||"")+"";return{c(){e=w(n)},m(t,n){x(t,e,n)},p(t,l){128&l[1]&&n!==(n=("."==t[104]?.des?"":t[104]?.des||t[104]?.cod||"")+"")&&u(e,n)},d(t){t&&r(e)}}}function Wo(t){let e;return{c(){e=b("div"),e.textContent="⇳",p(e,"class","absolute left-0 inset-y-0 text-sm text-c-200")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function Jo(t){let e,n,l,o,i,u,a;l=new sn({props:{tooltip:t[104].tooltip,$$slots:{default:[Yo]},$$scope:{ctx:t}}});let f=t[104].sort&&Wo();function d(){return t[70](t[104])}return{c(){e=b("th"),n=b("div"),T(l.$$.fragment),o=g(),f&&f.c(),p(n,"class","relative"),m(n,"pl-2",t[104].sort),m(e,"selected",t[104].cod==t[3])},m(t,r){x(t,e,r),h(e,n),F(l,n,null),h(n,o),f&&f.m(n,null),i=!0,u||(a=S(e,"click",d),u=!0)},p(o,r){t=o;const c={};128&r[1]&&(c.tooltip=t[104].tooltip),128&r[1]|134217728&r[2]&&(c.$$scope={dirty:r,ctx:t}),l.$set(c),t[104].sort?f||(f=Wo(),f.c(),f.m(n,null)):f&&(f.d(1),f=null),(!i||128&r[1])&&m(n,"pl-2",t[104].sort),(!i||8&r[0]|128&r[1])&&m(e,"selected",t[104].cod==t[3])},i(t){i||(s(l.$$.fragment,t),i=!0)},o(t){c(l.$$.fragment,t),i=!1},d(t){t&&r(e),D(l),f&&f.d(),u=!1,a()}}}function qo(t){let e,n,l,o;return n=new On({props:{id:"azioni"}}),{c(){e=b("th"),T(n.$$.fragment),p(e,"style",l=`width: ${1.75*t[36]+.5}rem;`)},m(t,l){x(t,e,l),F(n,e,null),o=!0},p(t,n){(!o||32&n[1]&&l!==(l=`width: ${1.75*t[36]+.5}rem;`))&&p(e,"style",l)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),D(n)}}}function Go(t){let e,n,l,o,i,u,a,f,d=t[15]&&Ko(),m=t[16]&&Qo(),w=Z(t[38]),v=[];for(let e=0;e<w.length;e+=1)v[e]=ei(yo(t,w,e));const y=t=>c(v[t],1,1,()=>{v[t]=null});return a=new pn({props:{size:6,tooltip:"Filtra",img:"view_column"}}),a.$on("click",t[73]),{c(){e=b("tr"),d&&d.c(),n=g(),m&&m.c(),l=g();for(let t=0;t<v.length;t+=1)v[t].c();o=g(),i=b("td"),u=b("div"),T(a.$$.fragment),p(u,"class","flex flex-row w-full mt-1 px-2 space-x-1 justify-end")},m(t,r){x(t,e,r),d&&d.m(e,null),h(e,n),m&&m.m(e,null),h(e,l);for(let t=0;t<v.length;t+=1)v[t]&&v[t].m(e,null);h(e,o),h(e,i),h(i,u),F(a,u,null),f=!0},p(t,i){if(t[15]?d||(d=Ko(),d.c(),d.m(e,n)):d&&(d.d(1),d=null),t[16]?m||(m=Qo(),m.c(),m.m(e,l)):m&&(m.d(1),m=null),1&i[0]|8320&i[1]){let n;for(w=Z(t[38]),n=0;n<w.length;n+=1){const l=yo(t,w,n);v[n]?(v[n].p(l,i),s(v[n],1)):(v[n]=ei(l),v[n].c(),s(v[n],1),v[n].m(e,o))}for(k(),n=w.length;n<v.length;n+=1)y(n);z()}},i(t){if(!f){for(let t=0;t<w.length;t+=1)s(v[t]);s(a.$$.fragment,t),f=!0}},o(t){v=v.filter(Boolean);for(let t=0;t<v.length;t+=1)c(v[t]);c(a.$$.fragment,t),f=!1},d(t){t&&r(e),d&&d.d(),m&&m.d(),U(v,t),D(a)}}}function Ko(t){let e;return{c(){e=b("th"),p(e,"class","w-5")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function Qo(t){let e;return{c(){e=b("th"),e.innerHTML="",p(e,"class","w-6")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function ti(t){let e,n,l;function o(e){t[71](e,t[104])}let i={class:"w-10",autosize:"10-80",sm:!0,readonly:!t[104].visible,type:"text"};return void 0!==t[0][t[104]?.cod]&&(i.value=t[0][t[104]?.cod]),e=new Ul({props:i}),_.push(()=>V(e,"value",o)),e.$on("click",t[72]),{c(){T(e.$$.fragment)},m(t,n){F(e,t,n),l=!0},p(l,o){t=l;const i={};128&o[1]&&(i.readonly=!t[104].visible),!n&&1&o[0]|128&o[1]&&(n=!0,i.value=t[0][t[104]?.cod],Y(()=>n=!1)),e.$set(i)},i(t){l||(s(e.$$.fragment,t),l=!0)},o(t){c(e.$$.fragment,t),l=!1},d(t){D(e,t)}}}function ei(t){let e,n,l=t[104].sort&&!["date","datetime","time","perc","euro","int","float"].includes((t[104].type||"").split("|")[0]),o=l&&ti(t);return{c(){e=b("td"),o&&o.c()},m(t,l){x(t,e,l),o&&o.m(e,null),n=!0},p(t,n){128&n[1]&&(l=t[104].sort&&!["date","datetime","time","perc","euro","int","float"].includes((t[104].type||"").split("|")[0])),l?o?(o.p(t,n),128&n[1]&&s(o,1)):(o=ti(t),o.c(),s(o,1),o.m(e,null)):o&&(k(),c(o,1,1,()=>{o=null}),z())},i(t){n||(s(o),n=!0)},o(t){c(o),n=!1},d(t){t&&r(e),o&&o.d()}}}function ni(t){let e,n,l,o,i,u;function a(...e){return t[74](t[106],...e)}return l=new $t({props:{size:6,img:"drag_indicator"}}),{c(){e=b("td"),n=b("button"),T(l.$$.fragment),p(n,"class","cursor-pointer"),p(e,"class","w-5 h-8 relative")},m(t,r){x(t,e,r),h(e,n),F(l,n,null),o=!0,i||(u=S(n,"mousedown",a),i=!0)},p(e,n){t=e},i(t){o||(s(l.$$.fragment,t),o=!0)},o(t){c(l.$$.fragment,t),o=!1},d(t){t&&r(e),D(l),i=!1,u()}}}function li(t){let e,n,l,o;function i(e){t[75](e,t[107])}let u={checkbox:!0,xs:!0};return void 0!==t[107]._sel&&(u.value=t[107]._sel),n=new Hn({props:u}),_.push(()=>V(n,"value",i)),{c(){e=b("td"),T(n.$$.fragment),p(e,"class","w-5")},m(t,l){x(t,e,l),F(n,e,null),o=!0},p(e,o){t=e;const i={};!l&&4&o[0]&&(l=!0,i.value=t[107]._sel,Y(()=>l=!1)),n.$set(i)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),D(n)}}}function oi(t){let e,n,l=t[49](t[104],t[107])+"";return{c(){e=b("div"),n=w(l),p(e,"class","px-1")},m(t,l){x(t,e,l),h(e,n)},p(t,e){4&e[0]|128&e[1]&&l!==(l=t[49](t[104],t[107])+"")&&u(n,l)},i:y,o:y,d(t){t&&r(e)}}}function ii(t){let e,n,l,o,i;const u=[ui,si],a=[];function f(t,n){return 4&n[0]|128&n[1]&&(e=null),null==e&&(e=!!t[49](t[104],t[107])),e?0:1}return n=f(t,[-1,-1,-1,-1]),l=a[n]=u[n](t),{c(){l.c(),o=$()},m(t,e){a[n].m(t,e),x(t,o,e),i=!0},p(t,e){let i=n;n=f(t,e),n!==i&&(k(),c(a[i],1,1,()=>{a[i]=null}),z(),l=a[n],l||(l=a[n]=u[n](t),l.c()),s(l,1),l.m(o.parentNode,o))},i(t){i||(s(l),i=!0)},o(t){c(l),i=!1},d(t){t&&r(o),a[n].d(t)}}}function ri(t){let e,n=t[49](t[104],t[107])+"";return{c(){e=b("div"),p(e,"class","px-1")},m(t,l){x(t,e,l),e.innerHTML=n},p(t,l){4&l[0]|128&l[1]&&n!==(n=t[49](t[104],t[107])+"")&&(e.innerHTML=n)},i:y,o:y,d(t){t&&r(e)}}}function ci(t){let e;const n=t[59].row,l=i(n,t,t[89],vo),o=l||function(t){let e,n,l=t[104].type+"";return{c(){e=b("div"),n=w(l),p(e,"class","bg-c-warning px-1")},m(t,l){x(t,e,l),h(e,n)},p(t,e){128&e[1]&&l!==(l=t[104].type+"")&&u(n,l)},d(t){t&&r(e)}}}(t);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,i){l?l.p&&(!e||4&i[0]|128&i[1]|134217728&i[2])&&a(l,n,t,t[89],e?d(n,t[89],i,go):f(t[89]),vo):o&&o.p&&(!e||128&i[1])&&o.p(t,e?i:[-1,-1,-1,-1])},i(t){e||(s(o,t),e=!0)},o(t){c(o,t),e=!1},d(t){o&&o.d(t)}}}function si(t){let e,n;return e=new $t({props:{img:"do_not_disturb_on",color:"text-c-danger",size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function ui(t){let e,n;return e=new $t({props:{img:"check_circle",color:"text-c-success",size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function ai(t){let e,n,l,o,i,u,a,f,d;const m=[ci,ri,ii,oi],w=[];function g(t,e){return 128&e[1]&&(l=null),128&e[1]&&(o=null),"."==(t[104].type||"")[0]?0:(null==l&&(l=!("html"!=(t[104].type||"").split("|")[0])),l?1:(null==o&&(o=!("check"!=(t[104].type||"").split("|")[0])),o?2:3))}return i=g(t,[-1,-1,-1,-1]),u=w[i]=m[i](t),{c(){e=b("td"),n=b("div"),u.c(),p(n,"class","flex flex-col"),p(e,"class",a=Mi(t[104])),p(e,"data-name",f=t[104]?.des||t[104]?.cod||"")},m(t,l){x(t,e,l),h(e,n),w[i].m(n,null),d=!0},p(t,l){let o=i;i=g(t,l),i===o?w[i].p(t,l):(k(),c(w[o],1,1,()=>{w[o]=null}),z(),u=w[i],u?u.p(t,l):(u=w[i]=m[i](t),u.c()),s(u,1),u.m(n,null)),(!d||128&l[1]&&a!==(a=Mi(t[104])))&&p(e,"class",a),(!d||128&l[1]&&f!==(f=t[104]?.des||t[104]?.cod||""))&&p(e,"data-name",f)},i(t){d||(s(u),d=!0)},o(t){c(u),d=!1},d(t){t&&r(e),w[i].d()}}}function fi(t){let e,n,l,o,i,u,a,f=(t[25]||"function"==typeof t[6]&&t[6](t[107],t[106]))&&(!t[12]||!t[107].annulla),d=Z(t[20]),m=[];for(let e=0;e<d.length;e+=1)m[e]=mi(xo(t,d,e));const w=t=>c(m[t],1,1,()=>{m[t]=null});let v=(t[24]||"function"==typeof t[5])&&(!t[12]||!t[107].annulla)&&xi(t),y=f&&wi(t),$=t[35].length&&gi(t);return{c(){e=b("td"),n=b("div");for(let t=0;t<m.length;t+=1)m[t].c();l=g(),v&&v.c(),o=g(),y&&y.c(),i=g(),$&&$.c(),p(n,"class","flex flex-wrap items-center justify-start space-x-1 p-1"),p(n,"style",u=`width: ${1.75*t[36]+.5}rem;`),p(e,"data-name","azioni")},m(t,r){x(t,e,r),h(e,n);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(n,null);h(n,l),v&&v.m(n,null),h(n,o),y&&y.m(n,null),h(n,i),$&&$.m(n,null),a=!0},p(t,e){if(1048580&e[0]|8192&e[1]|134217728&e[2]){let o;for(d=Z(t[20]),o=0;o<d.length;o+=1){const i=xo(t,d,o);m[o]?(m[o].p(i,e),s(m[o],1)):(m[o]=mi(i),m[o].c(),s(m[o],1),m[o].m(n,l))}for(k(),o=d.length;o<m.length;o+=1)w(o);z()}!t[24]&&"function"!=typeof t[5]||t[12]&&t[107].annulla?v&&(k(),c(v,1,1,()=>{v=null}),z()):v?(v.p(t,e),16781348&e[0]&&s(v,1)):(v=xi(t),v.c(),s(v,1),v.m(n,o)),33558596&e[0]&&(f=(t[25]||"function"==typeof t[6]&&t[6](t[107],t[106]))&&(!t[12]||!t[107].annulla)),f?y?(y.p(t,e),33558596&e[0]&&s(y,1)):(y=wi(t),y.c(),s(y,1),y.m(n,i)):y&&(k(),c(y,1,1,()=>{y=null}),z()),t[35].length?$?($.p(t,e),16&e[1]&&s($,1)):($=gi(t),$.c(),s($,1),$.m(n,null)):$&&(k(),c($,1,1,()=>{$=null}),z()),(!a||32&e[1]&&u!==(u=`width: ${1.75*t[36]+.5}rem;`))&&p(n,"style",u)},i(t){if(!a){for(let t=0;t<d.length;t+=1)s(m[t]);s(v),s(y),s($),a=!0}},o(t){m=m.filter(Boolean);for(let t=0;t<m.length;t+=1)c(m[t]);c(v),c(y),c($),a=!1},d(t){t&&r(e),U(m,t),v&&v.d(),y&&y.d(),$&&$.d()}}}function di(t){let e,n;return e=new pn({props:{size:6,tooltip:t[109].tooltip||"",img:t[109].icon,gray:"gray"==t[109].decor,danger:"danger"==t[109].decor,warning:"warning"==t[109].decor,white:"white"==t[109].decor,black:"black"==t[109].decor}}),e.$on("click",function(){return t[76](t[107],t[106],t[108],t[109])}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(n,l){t=n;const o={};1048576&l[0]&&(o.tooltip=t[109].tooltip||""),1048576&l[0]&&(o.img=t[109].icon),1048576&l[0]&&(o.gray="gray"==t[109].decor),1048576&l[0]&&(o.danger="danger"==t[109].decor),1048576&l[0]&&(o.warning="warning"==t[109].decor),1048576&l[0]&&(o.white="white"==t[109].decor),1048576&l[0]&&(o.black="black"==t[109].decor),e.$set(o)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function pi(t){let e;const n=t[59].extra,l=i(n,t,t[89],bo);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||1048580&o[0]|134217728&o[2])&&a(l,n,t,t[89],e?d(n,t[89],o,ho):f(t[89]),bo)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function mi(t){let e,n,l,o;const i=[pi,di],u=[];function a(t,e){return t[109].slot?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function xi(t){let e,n,l,o,i;const u=[bi,hi],a=[];function f(t,n){return 16777252&n[0]&&(e=null),null==e&&(e=!!(t[24]||"function"==typeof t[5]&&t[5](t[107],t[106]))),e?0:1}return n=f(t,[-1,-1,-1,-1]),l=a[n]=u[n](t),{c(){l.c(),o=$()},m(t,e){a[n].m(t,e),x(t,o,e),i=!0},p(t,e){let i=n;n=f(t,e),n===i?a[n].p(t,e):(k(),c(a[i],1,1,()=>{a[i]=null}),z(),l=a[n],l?l.p(t,e):(l=a[n]=u[n](t),l.c()),s(l,1),l.m(o.parentNode,o))},i(t){i||(s(l),i=!0)},o(t){c(l),i=!1},d(t){t&&r(o),a[n].d(t)}}}function hi(t){let e;return{c(){e=b("div"),p(e,"class","w-6 h-6")},m(t,n){x(t,e,n)},p:y,i:y,o:y,d(t){t&&r(e)}}}function bi(t){let e,n;return e=new pn({props:{size:6,img:t[107].annulla?"restore_from_trash":"delete",white:!t[107].annulla,black:t[107].annulla}}),e.$on("click",function(...e){return t[77](t[107],t[106],t[108],...e)}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(n,l){t=n;const o={};4&l[0]&&(o.img=t[107].annulla?"restore_from_trash":"delete"),4&l[0]&&(o.white=!t[107].annulla),4&l[0]&&(o.black=t[107].annulla),e.$set(o)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function wi(t){let e,n;return e=new pn({props:{size:6,img:"edit",base:!0,black:!0}}),e.$on("click",function(...e){return t[78](t[107],t[106],t[108],...e)}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(e,n){t=e},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function gi(t){let e,n;return e=new pn({props:{size:8,white:!0,noborder:!0,img:"more_vert"}}),e.$on("click",function(...e){return t[79](t[107],...e)}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(e,n){t=e},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function vi(t){let e,n,l,o,i,u,a,f,d,w=t[15]&&ni(t),v=t[16]&&li(t),y=Z(t[38]),$=[];for(let e=0;e<y.length;e+=1)$[e]=ai(wo(t,y,e));const _=t=>c($[t],1,1,()=>{$[t]=null});let I=t[37]&&fi(t);function A(...e){return t[80](t[106],...e)}function M(...e){return t[81](t[106],...e)}function B(...e){return t[82](t[106],t[107],t[108],...e)}return{c(){e=b("tr"),w&&w.c(),n=g(),v&&v.c(),l=g();for(let t=0;t<$.length;t+=1)$[t].c();o=g(),I&&I.c(),i=g(),p(e,"class",u="cursor-pointer text-c-800 hover:text-black hover:bg-c-50 "+("function"==typeof t[14]&&t[14](t[107],t[106])||"")),m(e,"bg-c-100",t[9]&&t[107].annulla),m(e,"text-c-400",t[9]&&t[107].annulla)},m(t,r){x(t,e,r),w&&w.m(e,null),h(e,n),v&&v.m(e,null),h(e,l);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(e,null);h(e,o),I&&I.m(e,null),h(e,i),a=!0,f||(d=[S(e,"mousemove",A),S(e,"mouseup",M),S(e,"click",B)],f=!0)},p(r,f){if((t=r)[15]?w?(w.p(t,f),32768&f[0]&&s(w,1)):(w=ni(t),w.c(),s(w,1),w.m(e,n)):w&&(k(),c(w,1,1,()=>{w=null}),z()),t[16]?v?(v.p(t,f),65536&f[0]&&s(v,1)):(v=li(t),v.c(),s(v,1),v.m(e,l)):v&&(k(),c(v,1,1,()=>{v=null}),z()),4&f[0]|262272&f[1]|134217728&f[2]){let n;for(y=Z(t[38]),n=0;n<y.length;n+=1){const l=wo(t,y,n);$[n]?($[n].p(l,f),s($[n],1)):($[n]=ai(l),$[n].c(),s($[n],1),$[n].m(e,o))}for(k(),n=y.length;n<$.length;n+=1)_(n);z()}t[37]?I?(I.p(t,f),64&f[1]&&s(I,1)):(I=fi(t),I.c(),s(I,1),I.m(e,i)):I&&(k(),c(I,1,1,()=>{I=null}),z()),(!a||16388&f[0]&&u!==(u="cursor-pointer text-c-800 hover:text-black hover:bg-c-50 "+("function"==typeof t[14]&&t[14](t[107],t[106])||"")))&&p(e,"class",u),(!a||16900&f[0])&&m(e,"bg-c-100",t[9]&&t[107].annulla),(!a||16900&f[0])&&m(e,"text-c-400",t[9]&&t[107].annulla)},i(t){if(!a){s(w),s(v);for(let t=0;t<y.length;t+=1)s($[t]);s(I),a=!0}},o(t){c(w),c(v),$=$.filter(Boolean);for(let t=0;t<$.length;t+=1)c($[t]);c(I),a=!1},d(t){t&&r(e),w&&w.d(),v&&v.d(),U($,t),I&&I.d(),f=!1,j(d)}}}function yi(t){let e,n,l,o,i;function u(e){t[84](e,t[104])}let a={class:"flex-1",trueval:!0,falseval:!1,label:t[104]?.des||t[104]?.cod||""};return void 0!==t[104].visible&&(a.value=t[104].visible),n=new Hn({props:a}),_.push(()=>V(n,"value",u)),{c(){e=b("div"),T(n.$$.fragment),o=g(),p(e,"class","flex flex-wrap items-center space-x-2 h-10")},m(t,l){x(t,e,l),F(n,e,null),h(e,o),i=!0},p(e,o){t=e;const i={};8388608&o[0]&&(i.label=t[104]?.des||t[104]?.cod||""),!l&&8388608&o[0]&&(l=!0,i.value=t[104].visible,Y(()=>l=!1)),n.$set(i)},i(t){i||(s(n.$$.fragment,t),i=!0)},o(t){c(n.$$.fragment,t),i=!1},d(t){t&&r(e),D(n)}}}function $i(t){let e,n;return e=new zn({props:{alt:!0,$$slots:{default:[ki]},$$scope:{ctx:t}}}),e.$on("click",t[85]),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};134217728&n[2]&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function ki(t){let e;return{c(){e=w("Reset filtri")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function zi(t){let e,n;return e=new On({props:{id:"Salva e chiudi"}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p:y,i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function _i(t){let e,n,l,o,i,u,a,f,d=Z(t[23]),m=[];for(let e=0;e<d.length;e+=1)m[e]=yi(po(t,d,e));const w=t=>c(m[t],1,1,()=>{m[t]=null});let v=t[0]&&$i(t);return a=new zn({props:{primary:!0,$$slots:{default:[zi]},$$scope:{ctx:t}}}),a.$on("click",t[48]),{c(){e=b("div");for(let t=0;t<m.length;t+=1)m[t].c();n=g(),l=b("div"),v&&v.c(),o=g(),i=b("div"),u=g(),T(a.$$.fragment),p(e,"class","grid grid-cols-2 p-4 gap-x-2"),p(i,"class","flex-1"),p(l,"class","flex flex-wrap space-x-2 p-3")},m(t,r){x(t,e,r);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(e,null);x(t,n,r),x(t,l,r),v&&v.m(l,null),h(l,o),h(l,i),h(l,u),F(a,l,null),f=!0},p(t,n){if(8388608&n[0]){let l;for(d=Z(t[23]),l=0;l<d.length;l+=1){const o=po(t,d,l);m[l]?(m[l].p(o,n),s(m[l],1)):(m[l]=yi(o),m[l].c(),s(m[l],1),m[l].m(e,null))}for(k(),l=d.length;l<m.length;l+=1)w(l);z()}t[0]?v?(v.p(t,n),1&n[0]&&s(v,1)):(v=$i(t),v.c(),s(v,1),v.m(l,o)):v&&(k(),c(v,1,1,()=>{v=null}),z());const i={};134217728&n[2]&&(i.$$scope={dirty:n,ctx:t}),a.$set(i)},i(t){if(!f){for(let t=0;t<d.length;t+=1)s(m[t]);s(v),s(a.$$.fragment,t),f=!0}},o(t){m=m.filter(Boolean);for(let t=0;t<m.length;t+=1)c(m[t]);c(v),c(a.$$.fragment,t),f=!1},d(t){t&&(r(e),r(n),r(l)),U(m,t),v&&v.d(),D(a)}}}function ji(t){let e,n;return e=new $t({props:{size:6,img:t[101].icon}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};16&n[1]&&(l.img=t[101].icon),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Si(t){let e,n,l,o,i,a,f,d,m,v=(t[101].des||"")+"",y=t[101].icon&&ji(t);function $(){return t[87](t[101])}return{c(){e=b("button"),n=b("div"),y&&y.c(),l=g(),o=b("div"),i=w(v),a=g(),p(n,"class","w-8"),p(o,"class","flex-1 text-left"),p(e,"class","flex flex-row space-x-2 items-center hover:bg-c-50 px-1 py-0.5 rounded")},m(t,r){x(t,e,r),h(e,n),y&&y.m(n,null),h(e,l),h(e,o),h(o,i),h(e,a),f=!0,d||(m=S(e,"click",$),d=!0)},p(e,l){(t=e)[101].icon?y?(y.p(t,l),16&l[1]&&s(y,1)):(y=ji(t),y.c(),s(y,1),y.m(n,null)):y&&(k(),c(y,1,1,()=>{y=null}),z()),(!f||16&l[1])&&v!==(v=(t[101].des||"")+"")&&u(i,v)},i(t){f||(s(y),f=!0)},o(t){c(y),f=!1},d(t){t&&r(e),y&&y.d(),d=!1,m()}}}function Ii(t){let e,n,l,o,i;l=new pn({props:{img:"close",mat:!0,size:4}}),l.$on("click",t[86]);let u=Z(t[35]),a=[];for(let e=0;e<u.length;e+=1)a[e]=Si(fo(t,u,e));const f=t=>c(a[t],1,1,()=>{a[t]=null});return{c(){e=b("div"),n=b("div"),T(l.$$.fragment),o=g();for(let t=0;t<a.length;t+=1)a[t].c();p(n,"class","absolute top-1 right-1"),p(e,"class","z-100 w-64 border rounded shadow border-c-border bg-whiterelative p-2 flex flex-col space-y-2 py-2")},m(t,r){x(t,e,r),h(e,n),F(l,n,null),h(e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);i=!0},p(t,n){if(1610612736&n[0]|8209&n[1]){let l;for(u=Z(t[35]),l=0;l<u.length;l+=1){const o=fo(t,u,l);a[l]?(a[l].p(o,n),s(a[l],1)):(a[l]=Si(o),a[l].c(),s(a[l],1),a[l].m(e,null))}for(k(),l=u.length;l<a.length;l+=1)f(l);z()}},i(t){if(!i){s(l.$$.fragment,t);for(let t=0;t<u.length;t+=1)s(a[t]);i=!0}},o(t){c(l.$$.fragment,t),a=a.filter(Boolean);for(let t=0;t<a.length;t+=1)c(a[t]);i=!1},d(t){t&&r(e),D(l),U(a,t)}}}function Ai(t){let e,n,l,o,i=t[40]&&Bo(t);return{c(){i&&i.c(),e=$()},m(r,c){i&&i.m(r,c),x(r,e,c),n=!0,l||(o=S(window,"keydown",t[46]),l=!0)},p(t,n){t[40]?i?(i.p(t,n),512&n[1]&&s(i,1)):(i=Bo(t),i.c(),s(i,1),i.m(e.parentNode,e)):i&&(k(),c(i,1,1,()=>{i=null}),z())},i(t){n||(s(i),n=!0)},o(t){c(i),n=!1},d(t){t&&r(e),i&&i.d(t),l=!1,o()}}}function Mi(t){let[e,n]=(t.type||"").split("|");switch(n=n||"",e){case"date":case"datetime":case"time":return`text-center ${n}`;case"check":return`text-left text-xl ${n}`;case"number":case"float":case"float1":case"float2":case"float3":case"float4":case"real":case"int":case"euro":case"perc":return`text-right mr-1 ${n}`;default:return`text-left ${n}`}}function Bi(t,e,n){let i,r,c,s,u,a,f,d,p,{$$slots:m={},$$scope:x}=e;const{bus:h,user:b,post:w,_:g,setStorage:v,getStorage:y,strDate:$,toEuro:k}=zt();R(t,b,t=>n(41,p=t));const z=G();let _,j,S,I,A,M,B,D,{authdel:F,auth:E,authedit:O,authadd:T,menu:C,nosearch:P=!1,noheader:N=!1,annullati:L=!1,tooltip:X="",lockrows:H=!1,cannotrestore:Z=!1,nofilter:U=!1,checkcampi:V,classrow:Y,ismove:W=!1,isselect:Q=!1,filtri:tt,isclipboard:et=!1,isexport:nt=!1,isimport:lt=!1,isgrid:ot=!1,extrabtn:it=[],value:rt=[]}=e,{campi:ct,name:st,ordina:ut=!1,desc:at=!1,title:ft="tabella"}=e,dt=[],pt=-1,mt="",xt=!1,ht=!1;function bt(t,e){if(t>=0&&t<rt.length&&t!=e&&e>=0&&e<rt.length){var l=rt.splice(t,1)[0];rt.splice(e,0,l),n(2,rt=[...rt]),z("move",rt),n(26,pt=e)}}function wt(t){Array.isArray(rt)&&(rt.forEach(e=>e._sel=t.value),n(2,rt=[...rt]))}async function gt(){z("more")}function vt(t,e){t.stopPropagation(),n(33,I=!0),A=t.x,M=t.y,n(34,D=e),B=t.target}function yt(){B&&(B.style="transform : translate(0px, 0px);\n z-index:0 ; background-color: transparent"),n(33,I=!1),A=0,M=0,B=void 0}function $t(t,e){B&&I&&(B.style=`transform : translate(${t.x-A+20}px, ${t.y-M}px);\n z-index:-10 ; background-color: aliceblue`)}J(async()=>{h.on("scrollbottom",gt)}),K(()=>{h.off("scrollbottom",gt)});return t.$$set=t=>{n(53,e=l(l({},e),o(t))),"authdel"in t&&n(5,F=t.authdel),"auth"in t&&n(54,E=t.auth),"authedit"in t&&n(6,O=t.authedit),"authadd"in t&&n(55,T=t.authadd),"menu"in t&&n(56,C=t.menu),"nosearch"in t&&n(7,P=t.nosearch),"noheader"in t&&n(8,N=t.noheader),"annullati"in t&&n(9,L=t.annullati),"tooltip"in t&&n(10,X=t.tooltip),"lockrows"in t&&n(11,H=t.lockrows),"cannotrestore"in t&&n(12,Z=t.cannotrestore),"nofilter"in t&&n(13,U=t.nofilter),"checkcampi"in t&&n(57,V=t.checkcampi),"classrow"in t&&n(14,Y=t.classrow),"ismove"in t&&n(15,W=t.ismove),"isselect"in t&&n(16,Q=t.isselect),"filtri"in t&&n(0,tt=t.filtri),"isclipboard"in t&&n(17,et=t.isclipboard),"isexport"in t&&n(18,nt=t.isexport),"isimport"in t&&n(19,lt=t.isimport),"isgrid"in t&&n(1,ot=t.isgrid),"extrabtn"in t&&n(20,it=t.extrabtn),"value"in t&&n(2,rt=t.value),"campi"in t&&n(58,ct=t.campi),"name"in t&&n(21,st=t.name),"ordina"in t&&n(3,ut=t.ordina),"desc"in t&&n(4,at=t.desc),"title"in t&&n(22,ft=t.title),"$$scope"in t&&n(89,x=t.$$scope)},t.$$.update=()=>{8388608&t.$$.dirty[1]&&n(40,i=w.isauth(E)),32&t.$$.dirty[0]&&n(24,r="function"!=typeof F&&w.isauth(F)),16777216&t.$$.dirty[1]&&n(39,c=w.isauth(T)),64&t.$$.dirty[0]&&n(25,s="function"!=typeof O&&w.isauth(O)),201326592&t.$$.dirty[1]&&function(t){let e;if(n(23,dt=t),st){var l=y(`fields_${st}_${p.id}`);if(l&&l.length>0)for(e of dt)e.visible=l.includes(e.cod)}if(dt&&dt.length>0)for(e of dt)V&&V(e)}(ct),8388608&t.$$.dirty[0]&&n(38,u=(dt||[]).filter(t=>t.visible)),51380320&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(37,a=C||r||"function"==typeof F||s||"function"==typeof O||it.length),51380320&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(36,f=(C?1:0)+it.length+(s||"function"==typeof O?1:0)+(r||"function"==typeof F?1:0)),33554432&t.$$.dirty[1]&&n(35,d=C?(C()||[]).filter(t=>w.isauth(t.auth)):[])},e=o(e),[tt,ot,rt,ut,at,F,O,P,N,L,X,H,Z,U,Y,W,Q,et,nt,lt,it,st,ft,dt,r,s,pt,mt,xt,_,j,S,ht,I,D,d,f,a,u,c,i,p,b,v,z,bt,function(t){if("Escape"==t.key&&yt(),W&&t.metaKey&&("ArrowDown"===t.key||"ArrowUp"==t.key)&&pt>=0&&pt<rt.length){let e;t.stopPropagation(),t.preventDefault(),"ArrowDown"==t.key?pt<rt.length-1&&(e=rt[pt],n(2,rt[pt]=rt[pt+1],rt),n(2,rt[pt+1]=e,rt),n(26,pt++,pt),n(2,rt=[...rt]),z("move")):pt>0&&(e=rt[pt],n(2,rt[pt]=rt[pt-1],rt),n(2,rt[pt-1]=e,rt),n(26,pt--,pt),n(2,rt=[...rt]),z("move"))}},wt,function(){if(n(32,ht=!1),st){var t=[];for(var e of dt)e.visible&&t.push(e.cod);tt&&z("filtra"),v(`fields_${st}_${p.id}`,t)}},function(t,e){var n=e[t.cod];if(n){"object"==typeof n&&(n=n.cod||n.des||"");let e=(t.type||"").split("|")[0];if("date"==e)n=$(n,"ggmmaaaa");else if("datetime"==e)n=$(n,"datetime");else if("time"==e)n=$(n,"hhmm");else if("perc"==e){var l=parseFloat(n);l<1&&(l*=100),n=l?l.toFixed(2)+"%":""}else"euro"==e?n=k(n):"int"==e?n=parseInt(n)||"":"float"==e||"float2"==e?n=(parseFloat(n)||0).toFixed(2):"float1"==e?n=(parseFloat(n)||0).toFixed(1):"float3"==e?n=(parseFloat(n)||0).toFixed(3):"float4"==e&&(n=(parseFloat(n)||0).toFixed(4))}return n||""},vt,yt,$t,e,E,T,C,V,ct,m,()=>n(1,ot=1==ot?2:1),function(t){mt=t,n(27,mt)},()=>{z("cercai",mt)},()=>{z("cerca",mt)},()=>z("clipboard"),()=>z("export"),()=>z("import"),()=>{xt&&tt&&Object.keys(tt).length&&(n(0,tt={}),z("filtra")),n(28,xt=!xt)},t=>{z("add",t.detail)},t=>wt(t.detail),t=>{t.sort&&(n(4,at=ut==t.cod&&!at),n(3,ut=t.cod),z("ordina",{ordina:ut,desc:at}))},function(e,l){t.$$.not_equal(tt[l?.cod],e)&&(tt[l?.cod]=e,n(0,tt))},()=>{z("filtra")},()=>{n(32,ht=!0)},(t,e)=>vt(e,t),function(e,l){t.$$.not_equal(l._sel,e)&&(l._sel=e,n(2,rt))},(t,e,l,o)=>{n(2,l[e].u=e,rt),z(o.cod,t)},(t,e,l,o)=>{n(2,l[e].u=e,rt),z("xdelete",{x:t,e:o.detail,row:e}),z("delete",t)},(t,e,l,o)=>{n(2,l[e].u=e,rt),z("xedit",{x:t,row:e,e:o.detail}),z("edit",t)},(t,e)=>{n(29,_=e.detail),n(31,S=t),n(30,j=!0)},(t,e)=>$t(e),(t,e)=>{I&&bt(D,t),yt()},(t,e,l,o)=>{pt!=t||W?n(26,pt=t):H||("function"==typeof O?O(e,t)&&(n(2,l[t].u=t,rt),z("xedit",{x:e,row:t,e:o.target}),z("edit",e)):s&&(n(2,l[t].u=t,rt),z("xedit",{x:e,row:t,e:o.target}),z("edit",e)))},()=>{yt()},function(e,l){t.$$.not_equal(l.visible,e)&&(l.visible=e,n(23,dt))},()=>{n(0,tt={}),v(`fields_${st}_${p.id}`),n(32,ht=!1)},()=>n(30,j=!1),async t=>{n(30,j=!1),await q(),z(t.cod||t.des,{x:S,e:_})},function(t){j=t,n(30,j)},x]}class Di extends t{constructor(t){super(),e(this,t,Bi,Ai,n,{authdel:5,auth:54,authedit:6,authadd:55,menu:56,nosearch:7,noheader:8,annullati:9,tooltip:10,lockrows:11,cannotrestore:12,nofilter:13,checkcampi:57,classrow:14,ismove:15,isselect:16,filtri:0,isclipboard:17,isexport:18,isimport:19,isgrid:1,extrabtn:20,value:2,campi:58,name:21,ordina:3,desc:4,title:22},null,[-1,-1,-1,-1])}}const Fi=t=>({}),Ei=t=>({}),Oi=t=>({}),Ti=t=>({});function Ci(t){let e,n,l,o,i,u;n=new sn({props:{tooltip:t[5],$$slots:{default:[Ni]},$$scope:{ctx:t}}});let a=t[9]&&Li(t);return{c(){e=b("div"),T(n.$$.fragment),l=g(),o=b("div"),a&&a.c(),p(e,"class",i="w-full relative "+(t[12].class||""))},m(i,r){x(i,e,r),F(n,e,null),h(e,l),h(e,o),a&&a.m(o,null),t[16](o),u=!0},p(t,l){const r={};32&l&&(r.tooltip=t[5]),131807&l&&(r.$$scope={dirty:l,ctx:t}),n.$set(r),t[9]?a?(a.p(t,l),512&l&&s(a,1)):(a=Li(t),a.c(),s(a,1),a.m(o,null)):a&&(k(),c(a,1,1,()=>{a=null}),z()),(!u||4096&l&&i!==(i="w-full relative "+(t[12].class||"")))&&p(e,"class",i)},i(t){u||(s(n.$$.fragment,t),s(a),u=!0)},o(t){c(n.$$.fragment,t),c(a),u=!1},d(l){l&&r(e),D(n),a&&a.d(),t[16](null)}}}function Pi(t){let e;const n=t[14].btn,l=i(n,t,t[17],Ei);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||131072&o)&&a(l,n,t,t[17],e?d(n,t[17],o,Fi):f(t[17]),Ei)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function Ri(t){let e,n;return e=new $t({props:{img:t[9]?"expand_less":"expand_more",size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};512&n&&(l.img=t[9]?"expand_less":"expand_more"),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Ni(t){let e,n,l,o,u,m,w;const v=t[14].title,y=i(v,t,t[17],Ti),$=y||function(t){let e,n,l;return n=new On({props:{id:t[1]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","flex-1 pl-2 font-bold")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};2&e&&(l.id=t[1]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}(t);let _=(!t[3]&&!t[4]||t[9])&&Pi(t),j=(t[3]||t[4])&&Ri(t);return{c(){e=b("button"),$&&$.c(),n=g(),_&&_.c(),l=g(),j&&j.c(),p(e,"class",o=(t[2]?"titolot":"titolo")+" text-left w-full mb-1")},m(o,i){x(o,e,i),$&&$.m(e,null),h(e,n),_&&_.m(e,null),h(e,l),j&&j.m(e,null),u=!0,m||(w=S(e,"click",t[15]),m=!0)},p(t,n){y?y.p&&(!u||131072&n)&&a(y,v,t,t[17],u?d(v,t[17],n,Oi):f(t[17]),Ti):$&&$.p&&(!u||2&n)&&$.p(t,u?n:-1),!t[3]&&!t[4]||t[9]?_?(_.p(t,n),536&n&&s(_,1)):(_=Pi(t),_.c(),s(_,1),_.m(e,l)):_&&(k(),c(_,1,1,()=>{_=null}),z()),t[3]||t[4]?j?(j.p(t,n),24&n&&s(j,1)):(j=Ri(t),j.c(),s(j,1),j.m(e,null)):j&&(k(),c(j,1,1,()=>{j=null}),z()),(!u||4&n&&o!==(o=(t[2]?"titolot":"titolo")+" text-left w-full mb-1"))&&p(e,"class",o)},i(t){u||(s($,t),s(_),s(j),u=!0)},o(t){c($,t),c(_),c(j),u=!1},d(t){t&&r(e),$&&$.d(t),_&&_.d(),j&&j.d(),m=!1,w()}}}function Li(t){let e,n;const l=t[14].default,o=i(l,t,t[17],null),u=o||function(){let t;return{c(){t=w("Impostare il contenuto qui")},m(e,n){x(e,t,n)},d(e){e&&r(t)}}}();return{c(){e=b("div"),u&&u.c()},m(t,l){x(t,e,l),u&&u.m(e,null),n=!0},p(t,e){o&&o.p&&(!n||131072&e)&&a(o,l,t,t[17],n?d(l,t[17],e,null):f(t[17]),null)},i(t){n||(s(u,t),n=!0)},o(t){c(u,t),n=!1},d(t){t&&r(e),u&&u.d(t)}}}function Xi(t){let e,n,l=t[8]&&Ci(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[8]?l?(l.p(t,n),256&n&&s(l,1)):(l=Ci(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function Hi(t,e,n){let i,r,{$$slots:c={},$$scope:s}=e;const{_:u,P:a,autofocus:f}=zt(),d=G();let p,m=!0,{auth:x="",title:h="",transparent:b=!1,canclose:w=!1,click:g=!1,tooltip:v=!1,closed:y=!1}=e;return t.$$set=t=>{n(12,e=l(l({},e),o(t))),"auth"in t&&n(13,x=t.auth),"title"in t&&n(1,h=t.title),"transparent"in t&&n(2,b=t.transparent),"canclose"in t&&n(3,w=t.canclose),"click"in t&&n(4,g=t.click),"tooltip"in t&&n(5,v=t.tooltip),"closed"in t&&n(0,y=t.closed),"$$scope"in t&&n(17,s=t.$$scope)},t.$$.update=()=>{81&t.$$.dirty&&n(9,i=g?!y:y?!m:m),8192&t.$$.dirty&&n(8,r=!x||a.isauth(x))},e=o(e),[y,h,b,w,g,v,m,p,r,i,f,d,e,x,c,()=>{(w||g)&&(i||f(!0,p,200),g?d("click"):w?n(6,m=!m):(n(0,y=!y),d("click",y)))},function(t){_[t?"unshift":"push"](()=>{p=t,n(7,p)})},s]}class Zi extends t{constructor(t){super(),e(this,t,Hi,Xi,n,{auth:13,title:1,transparent:2,canclose:3,click:4,tooltip:5,closed:0})}}function Ui(t,e,n){const l=t.slice();return l[23]=e[n],l[25]=n,l}function Vi(t,e,n){const l=t.slice();return l[23]=e[n],l[25]=n,l}function Yi(t){let e,n,l;return n=new On({props:{id:t[1]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","label pt-1 h-6")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};2&e&&(l.id=t[1]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Wi(t){let e,n,l,o,i=t[1]&&(t[2]||t[5])&&qi(t),u=Z(t[7]),a=[];for(let e=0;e<u.length;e+=1)a[e]=Qi(Ui(t,u,e));const f=t=>c(a[t],1,1,()=>{a[t]=null});return{c(){e=b("div"),i&&i.c(),n=g(),l=b("div");for(let t=0;t<a.length;t+=1)a[t].c();p(l,"class","flexrow items-center cursor-pointer text-sm"),p(e,"class","flexrow space-x-1 items-center overflow-x-hidden"),m(e,"mt-2",t[2])},m(t,r){x(t,e,r),i&&i.m(e,null),h(e,n),h(e,l);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(l,null);o=!0},p(t,r){if(t[1]&&(t[2]||t[5])?i?(i.p(t,r),38&r&&s(i,1)):(i=qi(t),i.c(),s(i,1),i.m(e,n)):i&&(k(),c(i,1,1,()=>{i=null}),z()),3777&r){let e;for(u=Z(t[7]),e=0;e<u.length;e+=1){const n=Ui(t,u,e);a[e]?(a[e].p(n,r),s(a[e],1)):(a[e]=Qi(n),a[e].c(),s(a[e],1),a[e].m(l,null))}for(k(),e=u.length;e<a.length;e+=1)f(e);z()}(!o||4&r)&&m(e,"mt-2",t[2])},i(t){if(!o){s(i);for(let t=0;t<u.length;t+=1)s(a[t]);o=!0}},o(t){c(i),a=a.filter(Boolean);for(let t=0;t<a.length;t+=1)c(a[t]);o=!1},d(t){t&&r(e),i&&i.d(),U(a,t)}}}function Ji(t){let e,n,l=Z(t[7]),o=[];for(let e=0;e<l.length;e+=1)o[e]=nr(Vi(t,l,e));const i=t=>c(o[t],1,1,()=>{o[t]=null});return{c(){e=b("div");for(let t=0;t<o.length;t+=1)o[t].c();p(e,"class","flex flex-col w-full items-center cursor-pointer text-sm")},m(t,l){x(t,e,l);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);n=!0},p(t,n){if(3777&n){let r;for(l=Z(t[7]),r=0;r<l.length;r+=1){const i=Vi(t,l,r);o[r]?(o[r].p(i,n),s(o[r],1)):(o[r]=nr(i),o[r].c(),s(o[r],1),o[r].m(e,null))}for(k(),r=l.length;r<o.length;r+=1)i(r);z()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)s(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)c(o[t]);n=!1},d(t){t&&r(e),U(o,t)}}}function qi(t){let e,n,l,o;return n=new On({props:{id:t[1]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","label leading-none text-right pr-2"),p(e,"style",l=`width: ${t[8]}%;`)},m(t,l){x(t,e,l),F(n,e,null),o=!0},p(t,i){const r={};2&i&&(r.id=t[1]),n.$set(r),(!o||256&i&&l!==(l=`width: ${t[8]}%;`))&&p(e,"style",l)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),D(n)}}}function Gi(t){let e,n=t[10](t[25],t[7],t[0])+"";return{c(){e=w(n)},m(t,n){x(t,e,n)},p(t,l){129&l&&n!==(n=t[10](t[25],t[7],t[0])+"")&&u(e,n)},i:y,o:y,d(t){t&&r(e)}}}function Ki(t){let e,n;return e=new $t({props:{size:6,img:t[23].img}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};128&n&&(l.img=t[23].img),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Qi(t){let e,n,l,o,i,u,a,f;const d=[Ki,Gi],m=[];function w(t,e){return t[23].img?0:1}function v(){return t[18](t[23])}return n=w(t),l=m[n]=d[n](t),{c(){e=b("button"),l.c(),o=g(),p(e,"name",`imulti${t[25]}`),p(e,"class",i=t[11](t[25],t[7],t[0]))},m(t,l){x(t,e,l),m[n].m(e,null),h(e,o),u=!0,a||(f=S(e,"click",E(v)),a=!0)},p(r,a){let f=n;n=w(t=r),n===f?m[n].p(t,a):(k(),c(m[f],1,1,()=>{m[f]=null}),z(),l=m[n],l?l.p(t,a):(l=m[n]=d[n](t),l.c()),s(l,1),l.m(e,o)),(!u||129&a&&i!==(i=t[11](t[25],t[7],t[0])))&&p(e,"class",i)},i(t){u||(s(l),u=!0)},o(t){c(l),u=!1},d(t){t&&r(e),m[n].d(),a=!1,f()}}}function tr(t){let e,n=t[10](t[25],t[7],t[0])+"";return{c(){e=w(n)},m(t,n){x(t,e,n)},p(t,l){129&l&&n!==(n=t[10](t[25],t[7],t[0])+"")&&u(e,n)},i:y,o:y,d(t){t&&r(e)}}}function er(t){let e,n;return e=new $t({props:{size:6,img:t[23].img}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};128&n&&(l.img=t[23].img),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function nr(t){let e,n,l,o,i,u,a,f;const d=[er,tr],m=[];function w(t,e){return t[23].img?0:1}function v(){return t[17](t[23])}return n=w(t),l=m[n]=d[n](t),{c(){e=b("button"),l.c(),o=g(),p(e,"name",`imulti${t[25]}`),p(e,"class",i=t[11](t[25],t[7],t[0]))},m(t,l){x(t,e,l),m[n].m(e,null),h(e,o),u=!0,a||(f=S(e,"click",v),a=!0)},p(r,a){let f=n;n=w(t=r),n===f?m[n].p(t,a):(k(),c(m[f],1,1,()=>{m[f]=null}),z(),l=m[n],l?l.p(t,a):(l=m[n]=d[n](t),l.c()),s(l,1),l.m(e,o)),(!u||129&a&&i!==(i=t[11](t[25],t[7],t[0])))&&p(e,"class",i)},i(t){u||(s(l),u=!0)},o(t){c(l),u=!1},d(t){t&&r(e),m[n].d(),a=!1,f()}}}function lr(t){let e,n,l,o;const i=[Ji,Wi],u=[];function a(t,e){return t[3]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function or(t){let e,n,l,o,i,u=t[1]&&(!t[2]&&!t[5]||t[3])&&Yi(t);return l=new sn({props:{tooltip:t[4],$$slots:{default:[lr]},$$scope:{ctx:t}}}),{c(){e=b("label"),u&&u.c(),n=g(),T(l.$$.fragment),p(e,"class",o=`labinput ${t[12].class||""}`)},m(t,o){x(t,e,o),u&&u.m(e,null),h(e,n),F(l,e,null),i=!0},p(t,[r]){t[1]&&(!t[2]&&!t[5]||t[3])?u?(u.p(t,r),46&r&&s(u,1)):(u=Yi(t),u.c(),s(u,1),u.m(e,n)):u&&(k(),c(u,1,1,()=>{u=null}),z());const a={};16&r&&(a.tooltip=t[4]),134218223&r&&(a.$$scope={dirty:r,ctx:t}),l.$set(a),(!i||4096&r&&o!==(o=`labinput ${t[12].class||""}`))&&p(e,"class",o)},i(t){i||(s(u),s(l.$$.fragment,t),i=!0)},o(t){c(u),c(l.$$.fragment,t),i=!1},d(t){t&&r(e),u&&u.d(),D(l)}}}function ir(t,e,n){let i,r;const{_:c,listfromstring:s}=zt(),u=G();let{value:a="",label:f="",black:d=!1,oriz:p=!1,vert:m=!1,tooltip:x="",options:h=[],info:b="",sm:w=!1,xs:g=!1,readonly:v=!1}=e;function y(t){if(t>=0&&t<r.length){var e=r[t];if("string"==typeof e){if(e==a)return!0}else if(e.id==a||e.cod==a)return!0}return!1}return t.$$set=t=>{n(12,e=l(l({},e),o(t))),"value"in t&&n(0,a=t.value),"label"in t&&n(1,f=t.label),"black"in t&&n(13,d=t.black),"oriz"in t&&n(2,p=t.oriz),"vert"in t&&n(3,m=t.vert),"tooltip"in t&&n(4,x=t.tooltip),"options"in t&&n(14,h=t.options),"info"in t&&n(15,b=t.info),"sm"in t&&n(5,w=t.sm),"xs"in t&&n(16,g=t.xs),"readonly"in t&&n(6,v=t.readonly)},t.$$.update=()=>{4&t.$$.dirty&&n(8,i=p&&parseInt(p)>10?parseInt(p):40),49152&t.$$.dirty&&n(7,r=h?s(h).filter(t=>!t.valid||t.valid()):[])},e=o(e),[a,f,p,m,x,w,v,r,i,u,function(t){var e="";if(t>=0&&t<r.length){var n=r[t];e="string"==typeof n?n:n.des||n.id||n.cod||""}return e},function(t){var e=[];return e.push("border-c-border px-2 hover:border-c-base"),e.push(w?"h-6 text-xs":g?"h-4 text-xxs":"h-8 text-sm "),m&&e.push("w-full"),d?e.push(y(t)?"bg-c-base text-white rounded":""):(0==t?e.push(m?"rounded-t-md border":"rounded-l-md border"):(e.push(m?"border-x border-b":"border-r border-y"),t==r.length-1&&e.push(m?"rounded-b-md":"rounded-r-md")),v?e.push(y(t)?"bg-c-200 text-white":"bg-white text-c-200"):e.push(y(t)?"bg-c-base text-white":"bg-white")),e.join(" ")},e,d,h,b,g,t=>{v||(n(0,a="string"==typeof t?t:t.cod?t.cod:t.id),u("click",t))},t=>{v||(n(0,a="string"==typeof t?t:t.cod?t.cod:t.id),u("click",t))}]}class rr extends t{constructor(t){super(),e(this,t,ir,or,n,{value:0,label:1,black:13,oriz:2,vert:3,tooltip:4,options:14,info:15,sm:5,xs:16,readonly:6})}}function cr(t,e,n){const l=t.slice();return l[9]=e[n],l}function sr(t,e,n){const l=t.slice();return l[8]=e[n],l}function ur(t,e,n){const l=t.slice();return l[9]=e[n],l[13]=n,l}function ar(t,e,n){const l=t.slice();return l[8]=e[n][0],l[9]=e[n][1],l}function fr(t){let e,n,l,o,i,c,s=t[2]&&pr(t);return{c(){e=b("p"),s&&s.c(),n=g(),l=b("span"),o=w(t[3]),p(l,"class",i=W(`json_${t[6]}`)+" svelte-1i5mpub"),p(e,"style",c=`margin-left: ${.8*t[1]}em`)},m(t,i){x(t,e,i),s&&s.m(e,null),h(e,n),h(e,l),h(l,o)},p(t,r){t[2]?s?s.p(t,r):(s=pr(t),s.c(),s.m(e,n)):s&&(s.d(1),s=null),8&r&&u(o,t[3]),64&r&&i!==(i=W(`json_${t[6]}`)+" svelte-1i5mpub")&&p(l,"class",i),2&r&&c!==(c=`margin-left: ${.8*t[1]}em`)&&p(e,"style",c)},i:y,o:y,d(t){t&&r(e),s&&s.d()}}}function dr(t){let e,n,l,o;const i=[xr,mr],u=[];function a(t,e){return t[5]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function pr(t){let e,n,l,o;return{c(){e=b("span"),n=w(t[2]),l=g(),o=b("span"),p(e,"class","json_key"),p(o,"class","json_dot")},m(t,i){x(t,e,i),h(e,n),x(t,l,i),x(t,o,i)},p(t,e){4&e&&u(n,t[2])},d(t){t&&(r(e),r(l),r(o))}}}function mr(t){let e,n,l,o,i,u,a,f,d=t[2]&&hr(t),m=t[0]&&br(t);return{c(){e=b("details"),n=b("summary"),d&&d.c(),l=g(),m&&m.c(),p(e,"style",o=`margin-left: ${.8*t[1]}em`),p(e,"class",i=W(`json_${t[6]}`)+" svelte-1i5mpub")},m(o,i){x(o,e,i),h(e,n),d&&d.m(n,null),h(e,l),m&&m.m(e,null),e.open=t[0],u=!0,a||(f=S(e,"toggle",t[7]),a=!0)},p(t,l){t[2]?d?d.p(t,l):(d=hr(t),d.c(),d.m(n,null)):d&&(d.d(1),d=null),t[0]?m?(m.p(t,l),1&l&&s(m,1)):(m=br(t),m.c(),s(m,1),m.m(e,null)):m&&(k(),c(m,1,1,()=>{m=null}),z()),(!u||2&l&&o!==(o=`margin-left: ${.8*t[1]}em`))&&p(e,"style",o),(!u||64&l&&i!==(i=W(`json_${t[6]}`)+" svelte-1i5mpub"))&&p(e,"class",i),1&l&&(e.open=t[0])},i(t){u||(s(m),u=!0)},o(t){c(m),u=!1},d(t){t&&r(e),d&&d.d(),m&&m.d(),a=!1,f()}}}function xr(t){let e,n,l,o,i,u,a=t[2]&&$r(t);const f=[zr,kr],d=[];function m(t,e){return"object"==t[6]?0:"array"==t[6]?1:-1}return~(o=m(t))&&(i=d[o]=f[o](t)),{c(){e=b("div"),a&&a.c(),n=g(),l=b("table"),i&&i.c(),p(l,"class","json-table svelte-1i5mpub"),p(e,"class","json-table-container svelte-1i5mpub")},m(t,i){x(t,e,i),a&&a.m(e,null),h(e,n),h(e,l),~o&&d[o].m(l,null),u=!0},p(t,r){t[2]?a?a.p(t,r):(a=$r(t),a.c(),a.m(e,n)):a&&(a.d(1),a=null);let u=o;o=m(t),o===u?~o&&d[o].p(t,r):(i&&(k(),c(d[u],1,1,()=>{d[u]=null}),z()),~o?(i=d[o],i?i.p(t,r):(i=d[o]=f[o](t),i.c()),s(i,1),i.m(l,null)):i=null)},i(t){u||(s(i),u=!0)},o(t){c(i),u=!1},d(t){t&&r(e),a&&a.d(),~o&&d[o].d()}}}function hr(t){let e,n,l,o;return{c(){e=b("span"),n=w(t[2]),l=g(),o=b("span"),p(e,"class","json_key"),p(o,"class","json_dot")},m(t,i){x(t,e,i),h(e,n),x(t,l,i),x(t,o,i)},p(t,e){4&e&&u(n,t[2])},d(t){t&&(r(e),r(l),r(o))}}}function br(t){let e,n,l,o;const i=[gr,wr],u=[];function a(t,e){return"object"==t[6]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function wr(t){let e,n,l=Z(t[3]),o=[];for(let e=0;e<l.length;e+=1)o[e]=vr(cr(t,l,e));const i=t=>c(o[t],1,1,()=>{o[t]=null});return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=$()},m(t,l){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,l);x(t,e,l),n=!0},p(t,n){if(24&n){let r;for(l=Z(t[3]),r=0;r<l.length;r+=1){const i=cr(t,l,r);o[r]?(o[r].p(i,n),s(o[r],1)):(o[r]=vr(i),o[r].c(),s(o[r],1),o[r].m(e.parentNode,e))}for(k(),r=l.length;r<o.length;r+=1)i(r);z()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)s(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)c(o[t]);n=!1},d(t){t&&r(e),U(o,t)}}}function gr(t){let e,n,l=Z(Object.keys(t[3])),o=[];for(let e=0;e<l.length;e+=1)o[e]=yr(sr(t,l,e));const i=t=>c(o[t],1,1,()=>{o[t]=null});return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=$()},m(t,l){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,l);x(t,e,l),n=!0},p(t,n){if(24&n){let r;for(l=Z(Object.keys(t[3])),r=0;r<l.length;r+=1){const i=sr(t,l,r);o[r]?(o[r].p(i,n),s(o[r],1)):(o[r]=yr(i),o[r].c(),s(o[r],1),o[r].m(e.parentNode,e))}for(k(),r=l.length;r<o.length;r+=1)i(r);z()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)s(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)c(o[t]);n=!1},d(t){t&&r(e),U(o,t)}}}function vr(t){let e,n;return e=new Fr({props:{space:2,name:"",value:t[9],fullopen:t[4],open:t[4]}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.value=t[9]),16&n&&(l.fullopen=t[4]),16&n&&(l.open=t[4]),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function yr(t){let e,n;return e=new Fr({props:{space:1,name:t[8],value:t[3][t[8]],fullopen:t[4],open:t[4]}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.name=t[8]),8&n&&(l.value=t[3][t[8]]),16&n&&(l.fullopen=t[4]),16&n&&(l.open=t[4]),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function $r(t){let e,n;return{c(){e=b("div"),n=w(t[2]),p(e,"class","json-table-title svelte-1i5mpub")},m(t,l){x(t,e,l),h(e,n)},p(t,e){4&e&&u(n,t[2])},d(t){t&&r(e)}}}function kr(t){let e,n,l,o,i=Z(t[3]),u=[];for(let e=0;e<i.length;e+=1)u[e]=Sr(ur(t,i,e));const a=t=>c(u[t],1,1,()=>{u[t]=null});return{c(){e=b("thead"),e.innerHTML='<tr><th class="svelte-1i5mpub">Indice</th> <th class="svelte-1i5mpub">Valore</th></tr>',n=g(),l=b("tbody");for(let t=0;t<u.length;t+=1)u[t].c()},m(t,i){x(t,e,i),x(t,n,i),x(t,l,i);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(l,null);o=!0},p(t,e){if(24&e){let n;for(i=Z(t[3]),n=0;n<i.length;n+=1){const o=ur(t,i,n);u[n]?(u[n].p(o,e),s(u[n],1)):(u[n]=Sr(o),u[n].c(),s(u[n],1),u[n].m(l,null))}for(k(),n=i.length;n<u.length;n+=1)a(n);z()}},i(t){if(!o){for(let t=0;t<i.length;t+=1)s(u[t]);o=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)c(u[t]);o=!1},d(t){t&&(r(e),r(n),r(l)),U(u,t)}}}function zr(t){let e,n,l,o,i=Z(Object.entries(t[3])),u=[];for(let e=0;e<i.length;e+=1)u[e]=Mr(ar(t,i,e));const a=t=>c(u[t],1,1,()=>{u[t]=null});return{c(){e=b("thead"),e.innerHTML='<tr><th class="svelte-1i5mpub">Chiave</th> <th class="svelte-1i5mpub">Valore</th></tr>',n=g(),l=b("tbody");for(let t=0;t<u.length;t+=1)u[t].c()},m(t,i){x(t,e,i),x(t,n,i),x(t,l,i);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(l,null);o=!0},p(t,e){if(24&e){let n;for(i=Z(Object.entries(t[3])),n=0;n<i.length;n+=1){const o=ar(t,i,n);u[n]?(u[n].p(o,e),s(u[n],1)):(u[n]=Mr(o),u[n].c(),s(u[n],1),u[n].m(l,null))}for(k(),n=i.length;n<u.length;n+=1)a(n);z()}},i(t){if(!o){for(let t=0;t<i.length;t+=1)s(u[t]);o=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)c(u[t]);o=!1},d(t){t&&(r(e),r(n),r(l)),U(u,t)}}}function _r(t){let e,n,l,o=t[9]+"";return{c(){e=b("span"),n=w(o),p(e,"class",l=W("json_"+typeof t[9])+" svelte-1i5mpub")},m(t,l){x(t,e,l),h(e,n)},p(t,i){8&i&&o!==(o=t[9]+"")&&u(n,o),8&i&&l!==(l=W("json_"+typeof t[9])+" svelte-1i5mpub")&&p(e,"class",l)},i:y,o:y,d(t){t&&r(e)}}}function jr(t){let e,n;return e=new Fr({props:{name:"",value:t[9],fullopen:t[4],open:t[4],tabular:!0}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.value=t[9]),16&n&&(l.fullopen=t[4]),16&n&&(l.open=t[4]),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Sr(t){let e,n,l,o,i,u,a,f;const d=[jr,_r],m=[];function w(t,e){return"object"==typeof t[9]&&null!==t[9]?0:1}return i=w(t),u=m[i]=d[i](t),{c(){e=b("tr"),n=b("td"),n.textContent=`${t[13]}`,l=g(),o=b("td"),u.c(),a=g(),p(n,"class","json-table-key svelte-1i5mpub"),p(o,"class","svelte-1i5mpub")},m(t,r){x(t,e,r),h(e,n),h(e,l),h(e,o),m[i].m(o,null),h(e,a),f=!0},p(t,e){let n=i;i=w(t),i===n?m[i].p(t,e):(k(),c(m[n],1,1,()=>{m[n]=null}),z(),u=m[i],u?u.p(t,e):(u=m[i]=d[i](t),u.c()),s(u,1),u.m(o,null))},i(t){f||(s(u),f=!0)},o(t){c(u),f=!1},d(t){t&&r(e),m[i].d()}}}function Ir(t){let e,n,l,o=t[9]+"";return{c(){e=b("span"),n=w(o),p(e,"class",l=W("json_"+typeof t[9])+" svelte-1i5mpub")},m(t,l){x(t,e,l),h(e,n)},p(t,i){8&i&&o!==(o=t[9]+"")&&u(n,o),8&i&&l!==(l=W("json_"+typeof t[9])+" svelte-1i5mpub")&&p(e,"class",l)},i:y,o:y,d(t){t&&r(e)}}}function Ar(t){let e,n;return e=new Fr({props:{name:"",value:t[9],fullopen:t[4],open:t[4],tabular:!0}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.value=t[9]),16&n&&(l.fullopen=t[4]),16&n&&(l.open=t[4]),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Mr(t){let e,n,l,o,i,a,f,d,m,v=t[8]+"";const y=[Ar,Ir],$=[];function _(t,e){return"object"==typeof t[9]&&null!==t[9]?0:1}return a=_(t),f=$[a]=y[a](t),{c(){e=b("tr"),n=b("td"),l=w(v),o=g(),i=b("td"),f.c(),d=g(),p(n,"class","json-table-key svelte-1i5mpub"),p(i,"class","svelte-1i5mpub")},m(t,r){x(t,e,r),h(e,n),h(n,l),h(e,o),h(e,i),$[a].m(i,null),h(e,d),m=!0},p(t,e){(!m||8&e)&&v!==(v=t[8]+"")&&u(l,v);let n=a;a=_(t),a===n?$[a].p(t,e):(k(),c($[n],1,1,()=>{$[n]=null}),z(),f=$[a],f?f.p(t,e):(f=$[a]=y[a](t),f.c()),s(f,1),f.m(i,null))},i(t){m||(s(f),m=!0)},o(t){c(f),m=!1},d(t){t&&r(e),$[a].d()}}}function Br(t){let e,n,l,o;const i=[dr,fr],u=[];function a(t,e){return"object"==t[6]||"array"==t[6]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,[o]){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function Dr(t,e,n){let l,{space:o=0}=e,{name:i=""}=e,{value:r}=e,{fullopen:c=!1}=e,{open:s=!1}=e,{tabular:u=!1}=e;return t.$$set=t=>{"space"in t&&n(1,o=t.space),"name"in t&&n(2,i=t.name),"value"in t&&n(3,r=t.value),"fullopen"in t&&n(4,c=t.fullopen),"open"in t&&n(0,s=t.open),"tabular"in t&&n(5,u=t.tabular)},t.$$.update=()=>{8&t.$$.dirty&&(Array.isArray(r)?n(6,l="array"):n(6,l=null===r?"null":typeof r))},[s,o,i,r,c,u,l,function(){s=this.open,n(0,s)}]}class Fr extends t{constructor(t){super(),e(this,t,Dr,Br,n,{space:1,name:2,value:3,fullopen:4,open:0,tabular:5})}}function Er(t){let e;return{c(){e=b("link"),p(e,"rel","stylesheet"),p(e,"href",t[2]),p(e,"integrity",t[3]),p(e,"crossorigin","")},m(t,n){x(t,e,n)},p(t,n){4&n&&p(e,"href",t[2]),8&n&&p(e,"integrity",t[3])},d(t){t&&r(e)}}}function Or(t){let e,n,l=t[2]&&Er(t);return{c(){l&&l.c(),e=b("script"),N(e.src,n=t[0])||p(e,"src",n),p(e,"integrity",t[1]),p(e,"crossorigin","")},m(n,o){l&&l.m(document.head,null),h(document.head,e),t[5](e)},p(t,[o]){t[2]?l?l.p(t,o):(l=Er(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),1&o&&!N(e.src,n=t[0])&&p(e,"src",n),2&o&&p(e,"integrity",t[1])},i:y,o:y,d(n){l&&l.d(n),r(e),t[5](null)}}}function Tr(t,e,n){const l=G();let o,{url:i="",integrity:r="",css:c="",cssintegrity:s=""}=e;function u(t){l("error",t)}function a(t){l("loaded",t)}return J(async()=>{o.addEventListener("load",a),o.addEventListener("error",u)}),t.$$set=t=>{"url"in t&&n(0,i=t.url),"integrity"in t&&n(1,r=t.integrity),"css"in t&&n(2,c=t.css),"cssintegrity"in t&&n(3,s=t.cssintegrity)},[i,r,c,s,o,function(t){_[t?"unshift":"push"](()=>{o=t,n(4,o)})}]}class Cr extends t{constructor(t){super(),e(this,t,Tr,Or,n,{url:0,integrity:1,css:2,cssintegrity:3})}}function Pr(t){let e,n,l,o,i,u,a,f,d,m,w,v,y,$,_;o=new $t({props:{img:t[4],size:10,black:!0}});let j=t[0]&&Rr(t);m=new zn({props:{sm:!0,black:!0,value:"chiudi"}}),m.$on("click",t[6]);let S=t[2]&&Nr(t);return{c(){e=b("div"),n=b("div"),l=b("div"),T(o.$$.fragment),i=g(),u=b("div"),j&&j.c(),a=g(),f=b("div"),d=g(),T(m.$$.fragment),w=g(),S&&S.c(),p(f,"class","text-sm font-ligth"),p(u,"class","flex-1 overflow-hidden flex flex-col"),p(l,"class","flexrow space-x-2 items-center"),p(n,"class",v=(2==t[5]?"bg-c-danger text-white":1==t[5]?"shadow-lg bg-c-warning text-white":"bg-c-success text-white")+" p-4 w-full text-left rounded-md shadow-lg z-50 border border-c-border"),p(e,"class","max-w-md mx-auto fixed bottom-[10%] inset-x-0 z-50 noprint")},m(r,c){x(r,e,c),h(e,n),h(n,l),F(o,l,null),h(l,i),h(l,u),j&&j.m(u,null),h(u,a),h(u,f),f.innerHTML=t[1],h(l,d),F(m,l,null),h(n,w),S&&S.m(n,null),_=!0},p(t,e){const l={};16&e&&(l.img=t[4]),o.$set(l),t[0]?j?(j.p(t,e),1&e&&s(j,1)):(j=Rr(t),j.c(),s(j,1),j.m(u,a)):j&&(k(),c(j,1,1,()=>{j=null}),z()),(!_||2&e)&&(f.innerHTML=t[1]),t[2]?S?S.p(t,e):(S=Nr(t),S.c(),S.m(n,null)):S&&(S.d(1),S=null),(!_||32&e&&v!==(v=(2==t[5]?"bg-c-danger text-white":1==t[5]?"shadow-lg bg-c-warning text-white":"bg-c-success text-white")+" p-4 w-full text-left rounded-md shadow-lg z-50 border border-c-border"))&&p(n,"class",v)},i(t){_||(s(o.$$.fragment,t),s(j),s(m.$$.fragment,t),t&&A(()=>{_&&($&&$.end(1),y=M(e,Dt,{duration:500,easing:At}),y.start())}),_=!0)},o(t){c(o.$$.fragment,t),c(j),c(m.$$.fragment,t),y&&y.invalidate(),t&&($=I(e,Mt,{duration:300})),_=!1},d(t){t&&r(e),D(o),j&&j.d(),D(m),S&&S.d(),t&&$&&$.end()}}}function Rr(t){let e,n,l;return n=new On({props:{id:t[0]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","font-bold text-xl")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};1&e&&(l.id=t[0]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Nr(t){let e,n,l,o;return{c(){e=b("div"),e.textContent="Details:",n=g(),l=b("pre"),o=w(t[2]),p(e,"class","text-xs pt-4 mb-2 w-full border-b border-c-100 font-ligth"),p(l,"class","text-c-200 font-mono text-xs p-1 rounded bg-white max-h-48 overflow-y-auto")},m(t,i){x(t,e,i),x(t,n,i),x(t,l,i),h(l,o)},p(t,e){4&e&&u(o,t[2])},d(t){t&&(r(e),r(n),r(l))}}}function Lr(t){let e,n,l=t[3]&&Pr(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[3]?l?(l.p(t,n),8&n&&s(l,1)):(l=Pr(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function Xr(t,e,n){const{bus:l}=zt();let o,i,r,c,s,u=!1;function a(t){m(t,0,"check_circle")}function f(t){m(t,1,"warning")}function d(t){n(5,s=2),m(t,2,"error")}J(()=>{l.on("message",a),l.on("messaggio",a),l.on("warning",f),l.on("error",d)}),K(()=>{l.off("message",a),l.off("messaggio",a),l.off("warning",f),l.off("error",d)});var p=0;function m(t,e,l){if(n(0,o=n(2,r="")),n(5,s=e),n(4,c=l),"string"==typeof t){let e=t.split("\n"),l=e[0].indexOf(":");l>0?(n(0,o=e[0].slice(0,l)),n(1,i=e[0].slice(l+1))):(n(0,o=e[0]),n(1,i="")),e.splice(0,1),n(2,r=e.join("\n"))}else t?(n(1,i=t?.value||t?.des||t?.text||t?.msg),n(0,o=t?.title),n(2,r=t?.extra)):n(1,i="undefined message");p&&clearInterval(p),n(3,u=!0),2!=e&&(p=setTimeout(()=>{n(3,u=!1)},0==e?2e3:4e3))}return[o,i,r,u,c,s,()=>n(3,u=!1)]}class Hr extends t{constructor(t){super(),e(this,t,Xr,Lr,n,{})}}const Zr=t=>({}),Ur=t=>({});function Vr(t){let e,n,l;const o=t[4].logo,u=i(o,t,t[3],Ur),m=u||function(){let t;return{c(){t=w("Inserisci lo slot su logo")},m(e,n){x(e,t,n)},d(e){e&&r(t)}}}();return{c(){e=b("div"),n=b("div"),m&&m.c(),p(n,"class","p-8 bg-c-50 rounded-xl shadow"),p(e,"class","grid items-center h-full justify-center overflow-hidden")},m(t,o){x(t,e,o),h(e,n),m&&m.m(n,null),l=!0},p(t,e){u&&u.p&&(!l||8&e)&&a(u,o,t,t[3],l?d(o,t[3],e,Zr):f(t[3]),Ur)},i(t){l||(s(m,t),l=!0)},o(t){c(m,t),l=!1},d(t){t&&r(e),m&&m.d(t)}}}function Yr(t){let e,n,l,o,u,m;const h=t[4].default,w=i(h,t,t[3],null);return{c(){e=b("iframe"),l=g(),w&&w.c(),p(e,"title","PDF"),N(e.src,n=`${t[0]}${t[1]?"#view=FitH&zoom=page-width&navpanes=0&toolbar=0":""}`)||p(e,"src",n),p(e,"class","w-full h-full border-none")},m(n,i){x(n,e,i),x(n,l,i),w&&w.m(n,i),o=!0,u||(m=[S(e,"load",t[2]),S(e,"error",t[2])],u=!0)},p(t,l){(!o||3&l&&!N(e.src,n=`${t[0]}${t[1]?"#view=FitH&zoom=page-width&navpanes=0&toolbar=0":""}`))&&p(e,"src",n),w&&w.p&&(!o||8&l)&&a(w,h,t,t[3],o?d(h,t[3],l,null):f(t[3]),null)},i(t){o||(s(w,t),o=!0)},o(t){c(w,t),o=!1},d(t){t&&(r(e),r(l)),w&&w.d(t),u=!1,j(m)}}}function Wr(t){let e,n,l,o;const i=[Yr,Vr],u=[];function a(t,e){return t[0]?0:1}return n=a(t),l=u[n]=i[n](t),{c(){e=b("div"),l.c(),p(e,"class","w-full h-full overflow-auto relative")},m(t,l){x(t,e,l),u[n].m(e,null),o=!0},p(t,[o]){let r=n;n=a(t),n===r?u[n].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),l=u[n],l?l.p(t,o):(l=u[n]=i[n](t),l.c()),s(l,1),l.m(e,null))},i(t){o||(s(l),o=!0)},o(t){c(l),o=!1},d(t){t&&r(e),u[n].d()}}}function Jr(t,e,n){let{$$slots:l={},$$scope:o}=e;const{bus:i}=zt();G();let{value:r=""}=e,{fullsize:c=!1}=e;return t.$$set=t=>{"value"in t&&n(0,r=t.value),"fullsize"in t&&n(1,c=t.fullsize),"$$scope"in t&&n(3,o=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&async function(){r&&(i.wait(!0),await q())}()},[r,c,async function(){i.wait(!1)},o,l]}class qr extends t{constructor(t){super(),e(this,t,Jr,Wr,n,{value:0,fullsize:1})}}function Gr(t){let e,n,l,o,u;const m=t[4].default,h=i(m,t,t[3],null);return{c(){e=b("div"),h&&h.c(),p(e,"class",n=(t[2].class||"")+" h-full relative overflow-y-auto")},m(n,i){x(n,e,i),h&&h.m(e,null),t[5](e),l=!0,o||(u=S(e,"scroll",t[1]),o=!0)},p(t,[o]){h&&h.p&&(!l||8&o)&&a(h,m,t,t[3],l?d(m,t[3],o,null):f(t[3]),null),(!l||4&o&&n!==(n=(t[2].class||"")+" h-full relative overflow-y-auto"))&&p(e,"class",n)},i(t){l||(s(h,t),l=!0)},o(t){c(h,t),l=!1},d(n){n&&r(e),h&&h.d(n),t[5](null),o=!1,u()}}}function Kr(t,e,n){let{$$slots:i={},$$scope:r}=e;const{bus:c}=zt();let s;return t.$$set=t=>{n(2,e=l(l({},e),o(t))),"$$scope"in t&&n(3,r=t.$$scope)},e=o(e),[s,function(t){var e=t.target;e.scrollTop,this.smallmenu=!(e.scrollTop<50),e.scrollTop+1.3*e.getClientRects()[0].height>e.scrollHeight&&c.emit("scrollbottom")},e,r,i,function(t){_[t?"unshift":"push"](()=>{s=t,n(0,s)})}]}class Qr extends t{constructor(t){super(),e(this,t,Kr,Gr,n,{})}}function tc(t){let e,n,l,o,i,c,s,u;return{c(){e=b("div"),n=b("input"),l=g(),o=b("input"),n.disabled=t[1],p(n,"type","range"),p(n,"min",t[3]),p(n,"max",t[5]),p(n,"step","1"),n.value=t[4],p(n,"class","w-28 modern-slider svelte-1vv3oyu"),o.disabled=i=!t[2]||t[1],p(o,"type","text"),o.value=t[0],p(o,"class",c="w-14 text-xs py-1 px-2 text-right rounded-lg focus:outline-none focus:ring-1 focus:ring-c-base "+(t[2]?"bg-white":"bg-c-100")),p(e,"class","flex items-center space-x-2 rounded-lg")},m(i,r){x(i,e,r),h(e,n),h(e,l),h(e,o),s||(u=[S(n,"input",t[7]),S(o,"change",t[8]),S(o,"blur",t[8])],s=!0)},p(t,e){2&e&&(n.disabled=t[1]),8&e&&p(n,"min",t[3]),32&e&&p(n,"max",t[5]),16&e&&(n.value=t[4]),6&e&&i!==(i=!t[2]||t[1])&&(o.disabled=i),1&e&&o.value!==t[0]&&(o.value=t[0]),4&e&&c!==(c="w-14 text-xs py-1 px-2 text-right rounded-lg focus:outline-none focus:ring-1 focus:ring-c-base "+(t[2]?"bg-white":"bg-c-100"))&&p(o,"class",c)},d(t){t&&r(e),s=!1,j(u)}}}function ec(t){let e,n=t[6]&&tc(t);return{c(){n&&n.c(),e=$()},m(t,l){n&&n.m(t,l),x(t,e,l)},p(t,[l]){t[6]?n?n.p(t,l):(n=tc(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:y,o:y,d(t){t&&r(e),n&&n.d(t)}}}function nc(t,e=-1/0,n=1/0){return(t=Number(t)||0)<e&&(t=e),t>n&&(t=n),t}function lc(t,e,n){const l=G();let o,i,r,c,{min:s=0,max:u=100,value:a=50,readonly:f,step:d=1,range:p,fm:m=!1}=e,x=[],h=!1;function b(t){let e,c=function(t){let e=0,n=1/0;for(let l=0;l<x.length;l++){let o=Math.abs(x[l]-t);o<n&&(n=o,e=l)}return{id:e,v:x[e]}}(t);return n(4,i=c.id),e=m?nc(t,x[o],x[r]):c.v,e!=a&&(n(0,a=e),l("change",e)),a}return t.$$set=t=>{"min"in t&&n(9,s=t.min),"max"in t&&n(10,u=t.max),"value"in t&&n(0,a=t.value),"readonly"in t&&n(1,f=t.readonly),"step"in t&&n(11,d=t.step),"range"in t&&n(12,p=t.range),"fm"in t&&n(2,m=t.fm)},t.$$.update=()=>{7684&t.$$.dirty&&function(){if(p&&p.length)x=p.map(t=>parseFloat(t)??0).sort((t,e)=>t-e);else{n(3,o=Number(s)??0),n(5,r=Number(u)??100),c=d??1,r<o&&n(5,r=o),x=[];let t=o,e=c>0?c:1;for(;;)if(x.push(t),t+=e,t=Math.round(100*t)/100,t>=u){x.push(u);break}}n(3,o=0),n(5,r=x.length-1),c=1,b(a),n(6,h=!0)}()},[a,f,m,o,i,r,h,function(t){let e=parseInt(t.target.value);if(e>=0&&e<x.length){b(x[e])}},function(t){let e=parseFloat(t.target.value)??0;e=Math.round(100*e)/100,b(nc(e,x[o],x[r]))},s,u,d,p]}class oc extends t{constructor(t){super(),e(this,t,lc,ec,n,{min:9,max:10,value:0,readonly:1,step:11,range:12,fm:2})}}function ic(t,e,n){const l=t.slice();return l[21]=e[n],l[23]=n,l}function rc(t,e,n){const l=t.slice();return l[24]=e[n],l[26]=n,l}function cc(t,e,n){const l=t.slice();return l[27]=e[n],l[29]=n,l}function sc(t,e,n){const l=t.slice();return l[30]=e[n],l[32]=n,l}function uc(t){let e,n;return e=new $t({props:{img:"expand_more",size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function ac(t){let e,n,l,o=Z(t[21].data),i=[];for(let e=0;e<o.length;e+=1)i[e]=jc(rc(t,o,e));const u=t=>c(i[t],1,1,()=>{i[t]=null});return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();p(e,"class","absolute z-10 top-6 -left-10 py-2 bg-white flex flex-col space-y-2 border shadow-sm"),p(e,"style",n=`width: ${t[0]/4}rem`)},m(t,n){x(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);l=!0},p(t,r){if(187&r[0]){let n;for(o=Z(t[21].data),n=0;n<o.length;n+=1){const l=rc(t,o,n);i[n]?(i[n].p(l,r),s(i[n],1)):(i[n]=jc(l),i[n].c(),s(i[n],1),i[n].m(e,null))}for(k(),n=o.length;n<i.length;n+=1)u(n);z()}(!l||1&r[0]&&n!==(n=`width: ${t[0]/4}rem`))&&p(e,"style",n)},i(t){if(!l){for(let t=0;t<o.length;t+=1)s(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)c(i[t]);l=!1},d(t){t&&r(e),U(i,t)}}}function fc(t){let e,n,l,o,i,u,a,f,d,w,v,y=t[24].icon&&pc(t);i=new On({props:{id:t[24].name}});let $=t[24].data&&t[24].data.length>0&&mc(),_=t[3][1]==t[26]&&t[24].data&&t[24].data.length>0&&xc(t);function I(){return t[14](t[26],t[21])}function A(){return t[15](t[24],t[26],t[21])}return{c(){e=b("div"),n=b("div"),y&&y.c(),l=g(),o=b("div"),T(i.$$.fragment),u=g(),$&&$.c(),a=g(),_&&_.c(),f=g(),p(n,"class","mx-2 w-8 h-8 p-1"),p(o,"class","flex-1"),p(e,"class","flex flex-wrap items-center cursor-pointer relative"),m(e,"selected",t[3][1]==t[26])},m(t,r){x(t,e,r),h(e,n),y&&y.m(n,null),h(e,l),h(e,o),F(i,o,null),h(e,u),$&&$.m(e,null),h(e,a),_&&_.m(e,null),h(e,f),d=!0,w||(v=[S(e,"mouseover",I),S(e,"click",A)],w=!0)},p(l,o){(t=l)[24].icon?y?(y.p(t,o),2&o[0]&&s(y,1)):(y=pc(t),y.c(),s(y,1),y.m(n,null)):y&&(k(),c(y,1,1,()=>{y=null}),z());const r={};2&o[0]&&(r.id=t[24].name),i.$set(r),t[24].data&&t[24].data.length>0?$?2&o[0]&&s($,1):($=mc(),$.c(),s($,1),$.m(e,a)):$&&(k(),c($,1,1,()=>{$=null}),z()),t[3][1]==t[26]&&t[24].data&&t[24].data.length>0?_?(_.p(t,o),10&o[0]&&s(_,1)):(_=xc(t),_.c(),s(_,1),_.m(e,f)):_&&(k(),c(_,1,1,()=>{_=null}),z()),(!d||8&o[0])&&m(e,"selected",t[3][1]==t[26])},i(t){d||(s(y),s(i.$$.fragment,t),s($),s(_),d=!0)},o(t){c(y),c(i.$$.fragment,t),c($),c(_),d=!1},d(t){t&&r(e),y&&y.d(),D(i),$&&$.d(),_&&_.d(),w=!1,j(v)}}}function dc(t){let e;return{c(){e=b("div"),p(e,"class","w-full border-b")},m(t,n){x(t,e,n)},p:y,i:y,o:y,d(t){t&&r(e)}}}function pc(t){let e,n;return e=new $t({props:{img:t[24].icon,size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};2&n[0]&&(l.img=t[24].icon),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function mc(t){let e,n;return e=new $t({props:{img:"chevron_right",size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function xc(t){let e,n,l,o=Z(t[24].data),i=[];for(let e=0;e<o.length;e+=1)i[e]=_c(cc(t,o,e));const u=t=>c(i[t],1,1,()=>{i[t]=null});return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();p(e,"class","absolute z-10 top-0 bg-white flex flex-col space-y-2 border shadow-sm"),p(e,"style",n=`left: ${(t[0]-1)/4}rem; width:${t[0]/4}rem`)},m(t,n){x(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);l=!0},p(t,r){if(187&r[0]){let n;for(o=Z(t[24].data),n=0;n<o.length;n+=1){const l=cc(t,o,n);i[n]?(i[n].p(l,r),s(i[n],1)):(i[n]=_c(l),i[n].c(),s(i[n],1),i[n].m(e,null))}for(k(),n=o.length;n<i.length;n+=1)u(n);z()}(!l||1&r[0]&&n!==(n=`left: ${(t[0]-1)/4}rem; width:${t[0]/4}rem`))&&p(e,"style",n)},i(t){if(!l){for(let t=0;t<o.length;t+=1)s(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)c(i[t]);l=!1},d(t){t&&r(e),U(i,t)}}}function hc(t){let e,n,l,o,i,u,a,f,d,w,v,y=t[27].icon&&wc(t);i=new On({props:{id:t[27].name}});let $=t[27].data&&t[27].data.length>0&&gc(),_=t[3][2]==t[29]&&t[27].data&&t[27].data.length>0&&vc(t);function I(){return t[12](t[29],t[24])}function A(){return t[13](t[27],t[29],t[24])}return{c(){e=b("div"),n=b("div"),y&&y.c(),l=g(),o=b("div"),T(i.$$.fragment),u=g(),$&&$.c(),a=g(),_&&_.c(),f=g(),p(n,"class","mx-2 w-8 h-8 p-1"),p(o,"class","flex-1"),p(e,"class","flex flex-wrap items-center cursor-pointer relative"),m(e,"selected",t[3][2]==t[29])},m(t,r){x(t,e,r),h(e,n),y&&y.m(n,null),h(e,l),h(e,o),F(i,o,null),h(e,u),$&&$.m(e,null),h(e,a),_&&_.m(e,null),h(e,f),d=!0,w||(v=[S(e,"mouseover",I),S(e,"click",A)],w=!0)},p(l,o){(t=l)[27].icon?y?(y.p(t,o),2&o[0]&&s(y,1)):(y=wc(t),y.c(),s(y,1),y.m(n,null)):y&&(k(),c(y,1,1,()=>{y=null}),z());const r={};2&o[0]&&(r.id=t[27].name),i.$set(r),t[27].data&&t[27].data.length>0?$?2&o[0]&&s($,1):($=gc(),$.c(),s($,1),$.m(e,a)):$&&(k(),c($,1,1,()=>{$=null}),z()),t[3][2]==t[29]&&t[27].data&&t[27].data.length>0?_?(_.p(t,o),10&o[0]&&s(_,1)):(_=vc(t),_.c(),s(_,1),_.m(e,f)):_&&(k(),c(_,1,1,()=>{_=null}),z()),(!d||8&o[0])&&m(e,"selected",t[3][2]==t[29])},i(t){d||(s(y),s(i.$$.fragment,t),s($),s(_),d=!0)},o(t){c(y),c(i.$$.fragment,t),c($),c(_),d=!1},d(t){t&&r(e),y&&y.d(),D(i),$&&$.d(),_&&_.d(),w=!1,j(v)}}}function bc(t){let e;return{c(){e=b("div"),p(e,"class","w-full border-b")},m(t,n){x(t,e,n)},p:y,i:y,o:y,d(t){t&&r(e)}}}function wc(t){let e,n;return e=new $t({props:{img:t[27].icon,size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};2&n[0]&&(l.img=t[27].icon),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function gc(t){let e,n;return e=new $t({props:{img:"chevron_right",size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function vc(t){let e,n,l,o=Z(t[27].data),i=[];for(let e=0;e<o.length;e+=1)i[e]=zc(sc(t,o,e));const u=t=>c(i[t],1,1,()=>{i[t]=null});return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();p(e,"class","absolute z-10 top-0 bg-white flex flex-col space-y-2 border shadow-sm"),p(e,"style",n=`left: ${(t[0]-1)/4}rem; width:${t[0]/4}rem`)},m(t,n){x(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);l=!0},p(t,r){if(186&r[0]){let n;for(o=Z(t[27].data),n=0;n<o.length;n+=1){const l=sc(t,o,n);i[n]?(i[n].p(l,r),s(i[n],1)):(i[n]=zc(l),i[n].c(),s(i[n],1),i[n].m(e,null))}for(k(),n=o.length;n<i.length;n+=1)u(n);z()}(!l||1&r[0]&&n!==(n=`left: ${(t[0]-1)/4}rem; width:${t[0]/4}rem`))&&p(e,"style",n)},i(t){if(!l){for(let t=0;t<o.length;t+=1)s(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)c(i[t]);l=!1},d(t){t&&r(e),U(i,t)}}}function yc(t){let e,n,l,o,i,u,a,f,d,w=t[30].icon&&kc(t);function v(){return t[10](t[32],t[27])}function y(){return t[11](t[30],t[32],t[27])}return i=new On({props:{id:t[30].name}}),{c(){e=b("div"),n=b("div"),w&&w.c(),l=g(),o=b("div"),T(i.$$.fragment),u=g(),p(n,"class","mx-2 w-8 h-8 p-1"),p(o,"class","flex-1"),p(e,"class","flex flex-wrap items-center cursor-pointer relative"),m(e,"selected",t[3][3]==t[32])},m(t,r){x(t,e,r),h(e,n),w&&w.m(n,null),h(e,l),h(e,o),F(i,o,null),h(e,u),a=!0,f||(d=[S(e,"mouseover",v),S(e,"click",y)],f=!0)},p(l,o){(t=l)[30].icon?w?(w.p(t,o),2&o[0]&&s(w,1)):(w=kc(t),w.c(),s(w,1),w.m(n,null)):w&&(k(),c(w,1,1,()=>{w=null}),z());const r={};2&o[0]&&(r.id=t[30].name),i.$set(r),(!a||8&o[0])&&m(e,"selected",t[3][3]==t[32])},i(t){a||(s(w),s(i.$$.fragment,t),a=!0)},o(t){c(w),c(i.$$.fragment,t),a=!1},d(t){t&&r(e),w&&w.d(),D(i),f=!1,j(d)}}}function $c(t){let e;return{c(){e=b("div"),p(e,"class","w-full border-b")},m(t,n){x(t,e,n)},p:y,i:y,o:y,d(t){t&&r(e)}}}function kc(t){let e,n;return e=new $t({props:{img:t[30].icon,size:6}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};2&n[0]&&(l.img=t[30].icon),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function zc(t){let e,n,l,o;const i=[$c,yc],u=[];function a(t,e){return t[30].sep?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function _c(t){let e,n,l,o;const i=[bc,hc],u=[];function a(t,e){return t[27].sep?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function jc(t){let e,n,l,o;const i=[dc,fc],u=[];function a(t,e){return t[24].sep?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function Sc(t){let e,n,l,o,i,u,a,f,d,w;o=new On({props:{id:t[21].name}});let v=t[21].data&&t[21].data.length>0&&uc(),y=t[3][0]==t[23]&&t[21].data&&t[21].data.length>0&&ac(t);function $(){return t[16](t[23])}function _(){return t[17](t[23])}function I(){return t[18](t[21],t[23])}return{c(){e=b("div"),n=b("div"),l=b("div"),T(o.$$.fragment),i=g(),v&&v.c(),u=g(),y&&y.c(),a=g(),p(l,"class","flex-1"),p(n,"class","flex flex-wrap"),p(e,"class","cursor-pointer px-2 relative"),m(e,"selected",t[3][0]==t[23])},m(t,r){x(t,e,r),h(e,n),h(n,l),F(o,l,null),h(n,i),v&&v.m(n,null),h(e,u),y&&y.m(e,null),h(e,a),f=!0,d||(w=[S(e,"mouseover",$),S(e,"mouseleave",_),S(e,"click",I)],d=!0)},p(l,i){t=l;const r={};2&i[0]&&(r.id=t[21].name),o.$set(r),t[21].data&&t[21].data.length>0?v?2&i[0]&&s(v,1):(v=uc(),v.c(),s(v,1),v.m(n,null)):v&&(k(),c(v,1,1,()=>{v=null}),z()),t[3][0]==t[23]&&t[21].data&&t[21].data.length>0?y?(y.p(t,i),10&i[0]&&s(y,1)):(y=ac(t),y.c(),s(y,1),y.m(e,a)):y&&(k(),c(y,1,1,()=>{y=null}),z()),(!f||8&i[0])&&m(e,"selected",t[3][0]==t[23])},i(t){f||(s(o.$$.fragment,t),s(v),s(y),f=!0)},o(t){c(o.$$.fragment,t),c(v),c(y),f=!1},d(t){t&&r(e),D(o),v&&v.d(),y&&y.d(),d=!1,j(w)}}}function Ic(t){let e,n,l,o,i=Z(t[1]),u=[];for(let e=0;e<i.length;e+=1)u[e]=Sc(ic(t,i,e));const a=t=>c(u[t],1,1,()=>{u[t]=null});return{c(){e=b("div");for(let t=0;t<u.length;t+=1)u[t].c();p(e,"class","flex flex-wrap items-center")},m(i,r){x(i,e,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(e,null);n=!0,l||(o=S(window,"keydown",t[6]),l=!0)},p(t,n){if(191&n[0]){let l;for(i=Z(t[1]),l=0;l<i.length;l+=1){const o=ic(t,i,l);u[l]?(u[l].p(o,n),s(u[l],1)):(u[l]=Sc(o),u[l].c(),s(u[l],1),u[l].m(e,null))}for(k(),l=i.length;l<u.length;l+=1)a(l);z()}},i(t){if(!n){for(let t=0;t<i.length;t+=1)s(u[t]);n=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)c(u[t]);n=!1},d(t){t&&r(e),U(u,t),l=!1,o()}}}function Ac(t,e,n){let{naviga:l=!1}=e,{size:o=60}=e,{value:i=[]}=e,{escape:r=!1}=e;const c=G();function s(t){n(2,a=!1),n(3,f=[-1,-1,-1,-1]),n(4,d=[i]),n(5,p=0),l&&t.link?et(t.link):c("select",t)}function u(t){t.data&&t.data.length||s(t)}let a=!1,f=[-1,-1,-1,-1],d=[],p=0;return t.$$set=t=>{"naviga"in t&&n(8,l=t.naviga),"size"in t&&n(0,o=t.size),"value"in t&&n(1,i=t.value),"escape"in t&&n(9,r=t.escape)},[o,i,a,f,d,p,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey))switch(t.key){case"F1":return void(r&&(a?(n(2,a=!1),n(3,f=[-1,-1,-1,-1]),n(5,p=0)):(n(2,a=!0),n(4,d[0]=i,d),n(5,p=0),n(3,f=[0,-1,-1,-1])),t.stopPropagation()));case"Enter":if(a)(e=d[p][f[p]]).data&&e.data.length>0&&p<3?(n(5,p++,p),n(3,f[p]=0,f),n(4,d[p]=e.data,d)):s(e);return void t.stopPropagation();case"ArrowLeft":return a&&(0==p?n(3,f[0]=f[0]>0?f[0]-1:d[0].length-1,f):(n(3,f[p]=-1,f),n(5,p--,p)),t.stopPropagation()),void t.stopPropagation();case"ArrowRight":if(a){if(0==p)n(3,f[0]=f[0]<i.length-1?f[0]+1:0,f);else if(p<3){var e;(e=d[p][f[p]]).data&&e.data.length&&(n(5,p++,p),n(4,d[p]=e.data,d),n(3,f[p]=0,f))}t.stopPropagation()}return;case"ArrowUp":if(a){if(0==p)return;1==p&&0==f[p]?(n(3,f[p]=-1,f),n(5,p--,p)):n(3,f[p]=f[p]>0?f[p]-1:d[p].length-1,f),t.stopPropagation()}return;case"ArrowDown":if(a){var l=d[p][f[p]];0==p?l.data&&l.data.length&&(n(5,p++,p),n(3,f[p]=0,f),n(4,d[p]=l.data,d)):n(3,f[p]=f[p]<d[p].length-1?f[p]+1:0,f),t.stopPropagation()}return}},u,l,r,(t,e)=>{f[3]!=t&&(n(5,p=3),n(4,d[p]=e.data,d),n(3,f[3]=t,f))},(t,e,n)=>u(t,n.data),(t,e)=>{f[2]!=t&&(n(5,p=2),n(4,d[p]=e.data,d),n(3,f[2]=t,f),n(3,f[3]=-1,f))},(t,e,n)=>u(t,n.data),(t,e)=>{f[1]!=t&&(n(5,p=1),n(4,d[p]=e.data,d),n(3,f[1]=t,f),n(3,f[2]=-1,f))},(t,e,n)=>u(t,n.data),t=>{f[0]!=t&&(n(5,p=0),n(3,f[0]=t,f),n(4,d[p]=i,d),n(2,a=!0),n(3,f[1]=-1,f))},t=>{f[0]==t&&n(3,f[0]=-1,f),n(2,a=!1)},(t,e)=>u(t)]}class Mc extends t{constructor(t){super(),e(this,t,Ac,Ic,n,{naviga:8,size:0,value:1,escape:9},null,[-1,-1])}}function Bc(t,e,n){const l=t.slice();return l[44]=e[n],l[46]=n,l}function Dc(t,e,n){const l=t.slice();return l[47]=e[n],l}function Fc(t){let e,n,l;return n=new On({props:{id:t[2]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","label pt-1 h-6")},m(t,o){x(t,e,o),F(n,e,null),l=!0},p(t,e){const l={};4&e[0]&&(l.id=t[2]),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n)}}}function Ec(t){let e,n,l,o;return n=new On({props:{id:t[2]}}),{c(){e=b("div"),T(n.$$.fragment),p(e,"class","label leading-none text-right pr-2"),p(e,"style",l=`width: ${t[18]}%;`)},m(t,l){x(t,e,l),F(n,e,null),o=!0},p(t,i){const r={};4&i[0]&&(r.id=t[2]),n.$set(r),(!o||262144&i[0]&&l!==(l=`width: ${t[18]}%;`))&&p(e,"style",l)},i(t){o||(s(n.$$.fragment,t),o=!0)},o(t){c(n.$$.fragment,t),o=!1},d(t){t&&r(e),D(n)}}}function Oc(t){let e,n,l=(t[0].cod||t[0].id||"")+"";return{c(){e=b("div"),n=w(l),p(e,"class","rounded-l bg-c-base text-white px-2 text-xs flex flex-col justify-center"),m(e,"h-8",!t[5]),m(e,"h-6",t[5])},m(t,l){x(t,e,l),h(e,n)},p(t,o){1&o[0]&&l!==(l=(t[0].cod||t[0].id||"")+"")&&u(n,l),32&o[0]&&m(e,"h-8",!t[5]),32&o[0]&&m(e,"h-6",t[5])},d(t){t&&r(e)}}}function Tc(t){let e,n,l,o,i;return{c(){e=b("input"),p(e,"type","text"),p(e,"class","!rounded-none !pr-6"),e.value=n=t[8]?t[0]||"":t[7]?t[0]?.cod||"":t[0]?.des||"",p(e,"placeholder",l=t[20](t[4],t[19])),e.disabled=t[6],p(e,"autocorrect","off"),p(e,"autocomplete","off"),m(e,"sm",t[5])},m(n,l){x(n,e,l),t[35](e),o||(i=S(e,"keyup",t[36]),o=!0)},p(t,o){385&o[0]&&n!==(n=t[8]?t[0]||"":t[7]?t[0]?.cod||"":t[0]?.des||"")&&e.value!==n&&(e.value=n),524304&o[0]&&l!==(l=t[20](t[4],t[19]))&&p(e,"placeholder",l),64&o[0]&&(e.disabled=t[6]),32&o[0]&&m(e,"sm",t[5])},d(n){n&&r(e),t[35](null),o=!1,i()}}}function Cc(t){let e,n,l,o,i;return n=new $t({props:{size:5,img:t[13].length?"expand_less":"expand_more"}}),{c(){e=b("button"),T(n.$$.fragment),p(e,"tabindex","-1"),p(e,"class","absolute right-1 vcenter cursor-pointer")},m(r,c){x(r,e,c),F(n,e,null),l=!0,o||(i=S(e,"click",E(t[37])),o=!0)},p(t,e){const l={};8192&e[0]&&(l.img=t[13].length?"expand_less":"expand_more"),n.$set(l)},i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n),o=!1,i()}}}function Pc(t){let e,n,l,o;n=new sn({props:{tooltip:t[10],$$slots:{default:[Tc]},$$scope:{ctx:t}}});let i=!t[6]&&Cc(t);return{c(){e=b("div"),T(n.$$.fragment),l=g(),i&&i.c()},m(t,r){x(t,e,r),F(n,e,null),h(e,l),i&&i.m(e,null),o=!0},p(t,l){const o={};1024&l[0]&&(o.tooltip=t[10]),526833&l[0]|512&l[1]&&(o.$$scope={dirty:l,ctx:t}),n.$set(o),t[6]?i&&(k(),c(i,1,1,()=>{i=null}),z()):i?(i.p(t,l),64&l[0]&&s(i,1)):(i=Cc(t),i.c(),s(i,1),i.m(e,null))},i(t){o||(s(n.$$.fragment,t),s(i),o=!0)},o(t){c(n.$$.fragment,t),c(i),o=!1},d(t){t&&r(e),D(n),i&&i.d()}}}function Rc(t){let e,n,l,o,i,u,a=Z(t[13]),f=[];for(let e=0;e<a.length;e+=1)f[e]=Hc(Bc(t,a,e));let d=t[1]&&t[15]>0&&Zc(t),m=t[1]&&Uc(t);return{c(){e=b("div"),n=b("table"),l=b("tbody");for(let t=0;t<f.length;t+=1)f[t].c();o=g(),d&&d.c(),i=g(),m&&m.c(),p(n,"class","w-full"),p(e,"class","relative w-full")},m(t,r){x(t,e,r),h(e,n),h(n,l);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(l,null);h(e,o),d&&d.m(e,null),h(e,i),m&&m.m(e,null),u=!0},p(t,n){if(29518217&n[0]){let e;for(a=Z(t[13]),e=0;e<a.length;e+=1){const o=Bc(t,a,e);f[e]?f[e].p(o,n):(f[e]=Hc(o),f[e].c(),f[e].m(l,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=a.length}t[1]&&t[15]>0?d?(d.p(t,n),32770&n[0]&&s(d,1)):(d=Zc(t),d.c(),s(d,1),d.m(e,i)):d&&(k(),c(d,1,1,()=>{d=null}),z()),t[1]?m?(m.p(t,n),2&n[0]&&s(m,1)):(m=Uc(t),m.c(),s(m,1),m.m(e,null)):m&&(k(),c(m,1,1,()=>{m=null}),z())},i(t){u||(s(d),s(m),u=!0)},o(t){c(d),c(m),u=!1},d(t){t&&r(e),U(f,t),d&&d.d(),m&&m.d()}}}function Nc(t){let e,n,l,o,i,c,s=t[44].des+"",a=t[3]&&Lc(t);return{c(){e=b("td"),n=b("div"),l=b("div"),o=w(s),i=g(),a&&a.c(),c=$(),p(l,"class","w-full whitespace-pre-line line-clamp-2"),p(n,"class","text-xs pl-2 pr-4")},m(t,r){x(t,e,r),h(e,n),h(n,l),h(l,o),x(t,i,r),a&&a.m(t,r),x(t,c,r)},p(t,e){8192&e[0]&&s!==(s=t[44].des+"")&&u(o,s),t[3]?a?a.p(t,e):(a=Lc(t),a.c(),a.m(c.parentNode,c)):a&&(a.d(1),a=null)},d(t){t&&(r(e),r(i),r(c)),a&&a.d(t)}}}function Lc(t){let e,n=Z(t[3]),l=[];for(let e=0;e<n.length;e+=1)l[e]=Xc(Dc(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=$()},m(t,n){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,n);x(t,e,n)},p(t,o){if(8200&o[0]){let i;for(n=Z(t[3]),i=0;i<n.length;i+=1){const r=Dc(t,n,i);l[i]?l[i].p(r,o):(l[i]=Xc(r),l[i].c(),l[i].m(e.parentNode,e))}for(;i<l.length;i+=1)l[i].d(1);l.length=n.length}},d(t){t&&r(e),U(l,t)}}}function Xc(t){let e,n,l,o,i,c=t[44][t[47]]+"";return{c(){e=b("td"),n=b("div"),l=b("div"),o=w(c),i=g(),p(l,"class","w-full whitespace-pre-line line-clamp-2"),p(n,"class","text-xs pl-2 pr-4")},m(t,r){x(t,e,r),h(e,n),h(n,l),h(l,o),h(e,i)},p(t,e){8200&e[0]&&c!==(c=t[44][t[47]]+"")&&u(o,c)},d(t){t&&r(e)}}}function Hc(t){let e,n,l,o,i,c,s,a,f=(t[44].cod||t[44].id||"")+"",d=!t[7]&&Nc(t);function y(){return t[32](t[44])}return{c(){e=b("tr"),n=b("td"),l=b("div"),o=w(f),i=g(),d&&d.c(),c=g(),v(l,"max-width","calc(100% - 20px)"),v(l,"min-width","fit-content"),p(l,"class","rounded bg-c-base text-white px-2 my-1 text-xs text-center"),p(e,"tabindex","-1"),p(e,"class","cursor-pointer"),m(e,"bg-c-150",t[46]==t[14]),m(e,"text-black",t[46]==t[14])},m(t,r){x(t,e,r),h(e,n),h(n,l),h(l,o),h(e,i),d&&d.m(e,null),h(e,c),s||(a=S(e,"mousedown",y),s=!0)},p(n,l){t=n,8192&l[0]&&f!==(f=(t[44].cod||t[44].id||"")+"")&&u(o,f),t[7]?d&&(d.d(1),d=null):d?d.p(t,l):(d=Nc(t),d.c(),d.m(e,c)),16384&l[0]&&m(e,"bg-c-150",t[46]==t[14]),16384&l[0]&&m(e,"text-black",t[46]==t[14])},d(t){t&&r(e),d&&d.d(),s=!1,a()}}}function Zc(t){let e,n,l,o,i;return n=new $t({props:{size:6,img:"keyboard_arrow_up",color:"text-c-base hover:text-black"}}),{c(){e=b("button"),T(n.$$.fragment),p(e,"tabindex","-1"),p(e,"class","absolute top-0 right-0 cursor-pointer")},m(r,c){x(r,e,c),F(n,e,null),l=!0,o||(i=S(e,"click",t[33]),o=!0)},p:y,i(t){l||(s(n.$$.fragment,t),l=!0)},o(t){c(n.$$.fragment,t),l=!1},d(t){t&&r(e),D(n),o=!1,i()}}}function Uc(t){let e,n,l,o,i=t[16]&&Vc();return{c(){e=b("button"),i&&i.c(),p(e,"tabindex","-1"),p(e,"class","absolute bottom-0 right-0 cursor-pointer")},m(r,c){x(r,e,c),i&&i.m(e,null),n=!0,l||(o=S(e,"click",t[34]),l=!0)},p(t,n){t[16]?i?65536&n[0]&&s(i,1):(i=Vc(),i.c(),s(i,1),i.m(e,null)):i&&(k(),c(i,1,1,()=>{i=null}),z())},i(t){n||(s(i),n=!0)},o(t){c(i),n=!1},d(t){t&&r(e),i&&i.d(),l=!1,o()}}}function Vc(t){let e,n;return e=new $t({props:{size:6,img:"keyboard_arrow_down",color:"text-c-base hover:text-black"}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function Yc(t){let e,n,l=t[13].length&&Rc(t);return{c(){e=b("div"),l&&l.c(),p(e,"slot","popup")},m(t,o){x(t,e,o),l&&l.m(e,null),n=!0},p(t,n){t[13].length?l?(l.p(t,n),8192&n[0]&&s(l,1)):(l=Rc(t),l.c(),s(l,1),l.m(e,null)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d()}}}function Wc(t){let e,n,l,o,u,m,w,v,y,$=t[2]&&!t[9]&&Fc(t),_=t[2]&&t[9]&&Ec(t),j=!t[7]&&(t[0]?.cod||"number"==typeof t[0]?.id)&&Oc(t),S={class:"flex-1 relative apptema-base",popup:t[13]?.length,$$slots:{popup:[Yc],default:[Pc]},$$scope:{ctx:t}};m=new qn({props:S}),t[38](m),m.$on("lostfocus",t[39]);const I=t[31].default,A=i(I,t,t[40],null);return{c(){e=b("label"),$&&$.c(),n=g(),l=b("div"),_&&_.c(),o=g(),j&&j.c(),u=g(),T(m.$$.fragment),w=g(),A&&A.c(),p(l,"class","flexrow"),p(e,"class",v=`labinput ${t[27].class||""}`)},m(t,i){x(t,e,i),$&&$.m(e,null),h(e,n),h(e,l),_&&_.m(l,null),h(l,o),j&&j.m(l,null),h(l,u),F(m,l,null),h(l,w),A&&A.m(l,null),y=!0},p(t,i){t[2]&&!t[9]?$?($.p(t,i),516&i[0]&&s($,1)):($=Fc(t),$.c(),s($,1),$.m(e,n)):$&&(k(),c($,1,1,()=>{$=null}),z()),t[2]&&t[9]?_?(_.p(t,i),516&i[0]&&s(_,1)):(_=Ec(t),_.c(),s(_,1),_.m(l,o)):_&&(k(),c(_,1,1,()=>{_=null}),z()),t[7]||!t[0]?.cod&&"number"!=typeof t[0]?.id?j&&(j.d(1),j=null):j?j.p(t,i):(j=Oc(t),j.c(),j.m(l,u));const r={};8192&i[0]&&(r.popup=t[13]?.length),781819&i[0]|512&i[1]&&(r.$$scope={dirty:i,ctx:t}),m.$set(r),A&&A.p&&(!y||512&i[1])&&a(A,I,t,t[40],y?d(I,t[40],i,null):f(t[40]),null),(!y||134217728&i[0]&&v!==(v=`labinput ${t[27].class||""}`))&&p(e,"class",v)},i(t){y||(s($),s(_),s(m.$$.fragment,t),s(A,t),y=!0)},o(t){c($),c(_),c(m.$$.fragment,t),c(A,t),y=!1},d(n){n&&r(e),$&&$.d(),_&&_.d(),j&&j.d(),t[38](null),D(m),A&&A.d(n)}}}function Jc(t,e,n){let i,r,{$$slots:c={},$$scope:s}=e;const{PP:u,_:a,lang:f}=zt();R(t,f,t=>n(19,r=t));const d=G();let p,m,x,h=[],b=0,w=0,g=!1,v={},y="",{label:$="",cat:k="",extracols:z,placeholder:j="scrivi per cercare",value:S={},service:I="",sm:A=!1,readonly:M=!1,onlycod:B=!1,stringa:D=!1,oriz:F,tooltip:E,pages:O=!1,max:T=6}=e;async function C(){n(13,h=[]),n(14,b=0),y="",m.openmenu(!1)}function P(t){t!=x&&(x=t,d("select",t),y&&d("des",y),y="")}async function N(){var t=D?S:B?S?.cod||"":S?.des||"";if(I){var e=I.split(":"),l=e[0];e.splice(0,1),t="?"==t||" "==t?"":t.trim();var o=await u(l,{id:k,extra:e.join(":"),input:t,max:T,page:w});0==w&&n(1,O=!!o.rows),O?(o?(n(13,h=o.rows||[]),n(16,g=o.hasmore)):(o=[],n(16,g=!1)),n(14,b=0)):(n(13,h=o?.rows||o||[]),n(16,g=!1),n(14,b=0)),await m.openmenu(!!h?.length)}else C()}async function L(t){if(!M&&"Tab"!=t.key&&"Shift"!=t.key&&"Alt"!=t.key){var e=t.target.value;if(D?n(0,S=t.target.value):("object"!=typeof S&&n(0,S={}),n(0,B?S.cod=t.target.value:S.des=t.target.value,S)),t.key&&!t.metaKey){if(M)return;var l=[];t.ctrlKey&&l.push("Ctrl"),t.altKey&&l.push("Alt"),t.shiftKey&&l.push("Shift"),l.push(t.key);let o=l.join("+");switch("Backspace"!=o||e||(o="Escape"),o){case"Escape":n(0,S=D?"":{}),n(15,w=0),await C(),t.preventDefault(),n(17,v=D?"":{}),P(v),d("click"),d("input",v);break;case"ArrowDown":t.preventDefault(),h.length>0?(b<h.length-1?n(14,b++,b):O&&g&&(n(15,w++,w),await N(),n(14,b=0)),n(17,v=D?h[b].cod:h[b]),y=h[b]?.des||"",P(v)):(n(15,w=0),await N());break;case"ArrowUp":t.preventDefault(),h.length>0?(b>0?n(14,b--,b):O&&w>0&&(n(15,w--,w),await N(),n(14,b=h.length-1)),n(17,v=D?h[b].cod:h[b]),y=h[b]?.des||"",P(v)):(y="",n(14,b=0));break;case"ArrowLeft":break;case"ArrowRight":case"Tab":case"Enter":if(t.preventDefault(),b<h.length){n(17,v=D?h[b].cod:h[b]),n(0,S=D?h[b].cod:h[b]);let t=h[b].des||"";C(),y=t}"Enter"==o&&(d("input",v),d("click")),P(v);break;default:t.ctrlKey||t.altKey||(n(15,w=0),await N())}}}}return t.$$set=t=>{n(27,e=l(l({},e),o(t))),"label"in t&&n(2,$=t.label),"cat"in t&&n(28,k=t.cat),"extracols"in t&&n(3,z=t.extracols),"placeholder"in t&&n(4,j=t.placeholder),"value"in t&&n(0,S=t.value),"service"in t&&n(29,I=t.service),"sm"in t&&n(5,A=t.sm),"readonly"in t&&n(6,M=t.readonly),"onlycod"in t&&n(7,B=t.onlycod),"stringa"in t&&n(8,D=t.stringa),"oriz"in t&&n(9,F=t.oriz),"tooltip"in t&&n(10,E=t.tooltip),"pages"in t&&n(1,O=t.pages),"max"in t&&n(30,T=t.max),"$$scope"in t&&n(40,s=t.$$scope)},t.$$.update=()=>{512&t.$$.dirty[0]&&n(18,i=F&&parseInt(F)>10?parseInt(F):40)},e=o(e),[S,O,$,z,j,A,M,B,D,F,E,p,m,h,b,w,g,v,i,r,a,f,d,C,P,N,L,e,k,I,T,c,t=>{n(17,v=D?t.cod:t),n(0,S=D?t.cod:t),p.focus(),P(v),d("input",v),d("click"),t?.des&&d("des",t.des),C()},async()=>{n(15,w--,w),await N(),n(14,b=h.length-1)},()=>{n(15,w++,w),N()},function(t){_[t?"unshift":"push"](()=>{p=t,n(11,p)})},t=>{L(t)},async()=>{h.length?await C():(n(0,S=D?"":{}),n(15,w=0),await N(),p.focus())},function(t){_[t?"unshift":"push"](()=>{m=t,n(12,m)})},async()=>{d("input",v),P(v),d("click"),await C()},s]}class qc extends t{constructor(t){super(),e(this,t,Jc,Wc,n,{label:2,cat:28,extracols:3,placeholder:4,value:0,service:29,sm:5,readonly:6,onlycod:7,stringa:8,oriz:9,tooltip:10,pages:1,max:30},null,[-1,-1])}}function Gc(t){let e,n,l,o;const i=[Qc,Kc],u=[];function a(t,e){return t[2]?0:1}return e=a(t),n=u[e]=i[e](t),{c(){n.c(),l=$()},m(t,n){u[e].m(t,n),x(t,l,n),o=!0},p(t,o){let r=e;e=a(t),e===r?u[e].p(t,o):(k(),c(u[r],1,1,()=>{u[r]=null}),z(),n=u[e],n?n.p(t,o):(n=u[e]=i[e](t),n.c()),s(n,1),n.m(l.parentNode,l))},i(t){o||(s(n),o=!0)},o(t){c(n),o=!1},d(t){t&&r(l),u[e].d(t)}}}function Kc(t){let e,n,l;const o=t[10].default,u=i(o,t,t[9],null);return{c(){e=b("div"),u&&u.c(),p(e,"class",n=(t[4].class||"")+" h-reset w-full"),p(e,"aria-label",t[1])},m(t,n){x(t,e,n),u&&u.m(e,null),l=!0},p(t,i){u&&u.p&&(!l||512&i)&&a(u,o,t,t[9],l?d(o,t[9],i,null):f(t[9]),null),(!l||16&i&&n!==(n=(t[4].class||"")+" h-reset w-full"))&&p(e,"class",n),(!l||2&i)&&p(e,"aria-label",t[1])},i(t){l||(s(u,t),l=!0)},o(t){c(u,t),l=!1},d(t){t&&r(e),u&&u.d(t)}}}function Qc(t){let e;const n=t[10].default,l=i(n,t,t[9],null);return{c(){l&&l.c()},m(t,n){l&&l.m(t,n),e=!0},p(t,o){l&&l.p&&(!e||512&o)&&a(l,n,t,t[9],e?d(n,t[9],o,null):f(t[9]),null)},i(t){e||(s(l,t),e=!0)},o(t){c(l,t),e=!1},d(t){l&&l.d(t)}}}function ts(t){let e,n,l=t[3]&&t[0]&&Gc(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),x(t,e,o),n=!0},p(t,[n]){t[3]&&t[0]?l?(l.p(t,n),1&n&&s(l,1)):(l=Gc(t),l.c(),s(l,1),l.m(e.parentNode,e)):l&&(k(),c(l,1,1,()=>{l=null}),z())},i(t){n||(s(l),n=!0)},o(t){c(l),n=!1},d(t){t&&r(e),l&&l.d(t)}}}function es(t,e,n){let{$$slots:i={},$$scope:r}=e;const{myuuid:c}=zt();let s,{title:u="tab",auth:a,icon:f,active:d,noauto:p=!1,valid:m,tooltip:x}=e,{getdata:h,setdata:b}=Q("TABS")||{};function w(t){n(0,d=t)}return K(()=>{if(h){var{tabs:t,curtab:e}=h();t=t.filter(t=>t.id!==s),e===s&&(e=t.length?t[0].id:void 0),b(t,e)}}),t.$$set=t=>{n(4,e=l(l({},e),o(t))),"title"in t&&n(1,u=t.title),"auth"in t&&n(5,a=t.auth),"icon"in t&&n(6,f=t.icon),"active"in t&&n(0,d=t.active),"noauto"in t&&n(2,p=t.noauto),"valid"in t&&n(7,m=t.valid),"tooltip"in t&&n(8,x=t.tooltip),"$$scope"in t&&n(9,r=t.$$scope)},t.$$.update=()=>{483&t.$$.dirty&&function(){if(h){var{tabs:t,curtab:e}=h();if(s){var n=t.find(t=>t.id===s);n&&(n.title=u,n.auth=a,n.icon=f,n.valid=m,n.tooltip=x)}else s=c(),t=[...t,{id:s,title:u,auth:a,icon:f,valid:m,tooltip:x,setactive:w}],e=d?s:e||s;b(t,e)}}()},e=o(e),[d,u,p,h,e,a,f,m,x,r,i]}class ns extends t{constructor(t){super(),e(this,t,es,ts,n,{title:1,auth:5,icon:6,active:0,noauto:2,valid:7,tooltip:8})}}const ls=t=>({}),os=t=>({});function is(t,e,n){const l=t.slice();return l[17]=e[n],l[19]=n,l}function rs(t){let e,n;return e=new sn({props:{tooltip:t[17].tooltip,bottom:!0,$$slots:{default:[ss]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};4&n&&(l.tooltip=t[17].tooltip),4110&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function cs(t){let e,n;return e=new $t({props:{gray:t[3]!=t[17].id,alt:t[3]==t[17].id,size:6,img:t[17].icon}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};12&n&&(l.gray=t[3]!=t[17].id),12&n&&(l.alt=t[3]==t[17].id),4&n&&(l.img=t[17].icon),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function ss(t){let e,n,l,o,i,u,a,f,d,m=t[17].icon&&cs(t);function w(){return t[11](t[17],t[19])}return o=new On({props:{id:t[17].title}}),{c(){e=b("button"),m&&m.c(),n=g(),l=b("div"),T(o.$$.fragment),p(e,"aria-label",i=`tab_${t[17].title}/${t[17].auth}`),p(e,"class",u="text-sm "+(t[1]?"":"h-8")+" cursor-pointer z-10 flexrow items-center space-x-1 text-black mr-2 px-3 "+(t[1]?"text-xs py-0":"px-2")+" border rounded "+(t[3]==t[17].id?"bg-white border-c-base font-bold text-c-base hover:border-black":"bg-c-50 text-c-500 border-c-150 hover:border-c-200"))},m(t,i){x(t,e,i),m&&m.m(e,null),h(e,n),h(e,l),F(o,l,null),a=!0,f||(d=S(e,"click",w),f=!0)},p(l,r){(t=l)[17].icon?m?(m.p(t,r),4&r&&s(m,1)):(m=cs(t),m.c(),s(m,1),m.m(e,n)):m&&(k(),c(m,1,1,()=>{m=null}),z());const f={};4&r&&(f.id=t[17].title),o.$set(f),(!a||4&r&&i!==(i=`tab_${t[17].title}/${t[17].auth}`))&&p(e,"aria-label",i),(!a||14&r&&u!==(u="text-sm "+(t[1]?"":"h-8")+" cursor-pointer z-10 flexrow items-center space-x-1 text-black mr-2 px-3 "+(t[1]?"text-xs py-0":"px-2")+" border rounded "+(t[3]==t[17].id?"bg-white border-c-base font-bold text-c-base hover:border-black":"bg-c-50 text-c-500 border-c-150 hover:border-c-200")))&&p(e,"class",u)},i(t){a||(s(m),s(o.$$.fragment,t),a=!0)},o(t){c(m),c(o.$$.fragment,t),a=!1},d(t){t&&r(e),m&&m.d(),D(o),f=!1,d()}}}function us(t){let e,n,l=t[8](t[17]),o=l&&rs(t);return{c(){o&&o.c(),e=$()},m(t,l){o&&o.m(t,l),x(t,e,l),n=!0},p(t,n){4&n&&(l=t[8](t[17])),l?o?(o.p(t,n),4&n&&s(o,1)):(o=rs(t),o.c(),s(o,1),o.m(e.parentNode,e)):o&&(k(),c(o,1,1,()=>{o=null}),z())},i(t){n||(s(o),n=!0)},o(t){c(o),n=!1},d(t){t&&r(e),o&&o.d(t)}}}function as(t){let e,n,l,o,u,m,w,v,y,$,_=Z(t[2]),j=[];for(let e=0;e<_.length;e+=1)j[e]=us(is(t,_,e));const S=t=>c(j[t],1,1,()=>{j[t]=null}),I=t[10].head,A=i(I,t,t[12],os),M=t[10].default,B=i(M,t,t[12],null);return{c(){e=b("div"),n=b("div"),l=b("div");for(let t=0;t<j.length;t+=1)j[t].c();o=g(),u=b("div"),m=g(),A&&A.c(),w=g(),v=b("div"),B&&B.c(),p(u,"class","flex-1"),p(l,"class","flexrow w-full items-end pb-0.5 border-b"),p(v,"class","h-full overflow-y-auto"),p(n,"id",t[0]),p(n,"class",y=(t[9].class||"")+" w-full h-full grid grid-rows-[auto_1fr]"),p(e,"class","h-reset")},m(t,i){x(t,e,i),h(e,n),h(n,l);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(l,null);h(l,o),h(l,u),h(l,m),A&&A.m(l,null),h(n,w),h(n,v),B&&B.m(v,null),$=!0},p(t,[e]){if(510&e){let n;for(_=Z(t[2]),n=0;n<_.length;n+=1){const i=is(t,_,n);j[n]?(j[n].p(i,e),s(j[n],1)):(j[n]=us(i),j[n].c(),s(j[n],1),j[n].m(l,o))}for(k(),n=_.length;n<j.length;n+=1)S(n);z()}A&&A.p&&(!$||4096&e)&&a(A,I,t,t[12],$?d(I,t[12],e,ls):f(t[12]),os),B&&B.p&&(!$||4096&e)&&a(B,M,t,t[12],$?d(M,t[12],e,null):f(t[12]),null),(!$||1&e)&&p(n,"id",t[0]),(!$||512&e&&y!==(y=(t[9].class||"")+" w-full h-full grid grid-rows-[auto_1fr]"))&&p(n,"class",y)},i(t){if(!$){for(let t=0;t<_.length;t+=1)s(j[t]);s(A,t),s(B,t),$=!0}},o(t){j=j.filter(Boolean);for(let t=0;t<j.length;t+=1)c(j[t]);c(A,t),c(B,t),$=!1},d(t){t&&r(e),U(j,t),A&&A.d(t),B&&B.d(t)}}}function fs(t,e,n){let{$$slots:i={},$$scope:r}=e;const{autofocus:c,post:s}=zt();let{name:u,xs:a=!1}=e;const f=G();let d,p=[],m=null;function x(t){for(var e of(n(3,m=t),p))e.setactive(e.id===t);n(2,p=[...p])}tt("TABS",{getdata:function(){return{tabs:p,curtab:m}},setdata:function(t,e){n(2,p=t),x(e)},updatecurrent:x});return t.$$set=t=>{n(9,e=l(l({},e),o(t))),"name"in t&&n(0,u=t.name),"xs"in t&&n(1,a=t.xs),"$$scope"in t&&n(12,r=t.$$scope)},e=o(e),[u,a,p,m,c,f,d,x,function(t){var e=!0;return!(t.valid&&!(e=t.valid()))&&(t.auth&&(e=s.isauth(t.auth)),e)},e,i,async(t,e)=>{x(t.id),c(!0,d),f("click",{id:e,v:t})},r]}class ds extends t{constructor(t){super(),e(this,t,fs,as,n,{name:0,xs:1})}}function ps(t){let e,n,l,o,i=(t[0]?.name||"").slice(0,1)+"";return{c(){e=b("div"),n=b("div"),l=w(i),p(e,"class","w-full h-full rounded-full overflow-hidden text-white flex flex-col items-center justify-center uppercase select-none"),p(e,"style",o=`background-color: ${t[9]}; font-size: ${t[1]<20?3.5*t[1]:t[1]}px;`)},m(t,o){x(t,e,o),h(e,n),h(n,l)},p(t,n){1&n&&i!==(i=(t[0]?.name||"").slice(0,1)+"")&&u(l,i),514&n&&o!==(o=`background-color: ${t[9]}; font-size: ${t[1]<20?3.5*t[1]:t[1]}px;`)&&p(e,"style",o)},i:y,o:y,d(t){t&&r(e)}}}function ms(t){let e,n;return e=new $t({props:{img:"person",size:t[1],pixel:t[2],color:t[4]?"text-c-800":"text-c-150"}}),{c(){T(e.$$.fragment)},m(t,l){F(e,t,l),n=!0},p(t,n){const l={};2&n&&(l.size=t[1]),4&n&&(l.pixel=t[2]),16&n&&(l.color=t[4]?"text-c-800":"text-c-150"),e.$set(l)},i(t){n||(s(e.$$.fragment,t),n=!0)},o(t){c(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function xs(t){let e,n,l,o;return{c(){e=b("div"),n=b("img"),N(n.src,l=t[0]?.img)||p(n,"src",l),p(n,"alt",o="avatar_"+t[0]?.name),p(n,"class","w-full h-full object-contain object-center"),p(e,"class","overflow-hidden border border-c-border rounded-full"),p(e,"style",t[7])},m(t,l){x(t,e,l),h(e,n)},p(t,i){1&i&&!N(n.src,l=t[0]?.img)&&p(n,"src",l),1&i&&o!==(o="avatar_"+t[0]?.name)&&p(n,"alt",o),128&i&&p(e,"style",t[7])},i:y,o:y,d(t){t&&r(e)}}}function hs(t){let e,n;return{c(){e=b("div"),p(e,"class","absolute bottom-0 right-0 rounded-full"),p(e,"style",n=t[2]?`width: ${t[1]/5}px; height: ${t[1]/5}px ; background-color: ${t[8]}`:`width: ${(t[1]||12)/16}rem; height: ${(t[1]||12)/16}rem ; background-color: ${t[8]}`)},m(t,n){x(t,e,n)},p(t,l){262&l&&n!==(n=t[2]?`width: ${t[1]/5}px; height: ${t[1]/5}px ; background-color: ${t[8]}`:`width: ${(t[1]||12)/16}rem; height: ${(t[1]||12)/16}rem ; background-color: ${t[8]}`)&&p(e,"style",n)},d(t){t&&r(e)}}}function bs(t){let e,n,l,o,m,v,y,$=t[0]?.name+"",k=(t[0]?.nome||t[0]?.cognome)&&ws(t);const z=t[13].default,_=i(z,t,t[12],null);return{c(){e=b("div"),n=b("div"),l=w("@"),o=w($),m=g(),k&&k.c(),v=g(),_&&_.c(),p(n,"class","text-xs font-bold"),p(e,"class","flex flex-col text-left space-y-0.5")},m(t,i){x(t,e,i),h(e,n),h(n,l),h(n,o),h(e,m),k&&k.m(e,null),h(e,v),_&&_.m(e,null),y=!0},p(t,n){(!y||1&n)&&$!==($=t[0]?.name+"")&&u(o,$),t[0]?.nome||t[0]?.cognome?k?k.p(t,n):(k=ws(t),k.c(),k.m(e,v)):k&&(k.d(1),k=null),_&&_.p&&(!y||4096&n)&&a(_,z,t,t[12],y?d(z,t[12],n,null):f(t[12]),null)},i(t){y||(s(_,t),y=!0)},o(t){c(_,t),y=!1},d(t){t&&r(e),k&&k.d(),_&&_.d(t)}}}function ws(t){let e,n,l,o,i=(t[0]?.nome||"")+"",c=(t[0]?.cognome||"")+"";return{c(){e=b("div"),n=w(i),l=g(),o=w(c),p(e,"class","text-xxs")},m(t,i){x(t,e,i),h(e,n),h(e,l),h(e,o)},p(t,e){1&e&&i!==(i=(t[0]?.nome||"")+"")&&u(n,i),1&e&&c!==(c=(t[0]?.cognome||"")+"")&&u(o,c)},d(t){t&&r(e)}}}function gs(t){let e,n,l,o,i,u,a,f,d,m;const w=[xs,ms,ps],v=[];function y(t,e){return t[0]?.img?0:t[0]?.id?2:1}l=y(t),o=v[l]=w[l](t);let $=t[3]&&hs(t),_=t[5]&&t[0]?.name&&bs(t);return{c(){e=b("button"),n=b("div"),o.c(),i=g(),$&&$.c(),u=g(),_&&_.c(),p(n,"class","relative"),p(n,"style",t[7]),p(e,"class",a=`flex ${t[6]?"flex-row space-x-2 items-center":"flex-col space-y-1.5 items-start"} ${t[11].class||""}`)},m(o,r){x(o,e,r),h(e,n),v[l].m(n,null),h(n,i),$&&$.m(n,null),h(e,u),_&&_.m(e,null),f=!0,d||(m=S(e,"click",t[10]),d=!0)},p(t,[r]){let u=l;l=y(t),l===u?v[l].p(t,r):(k(),c(v[u],1,1,()=>{v[u]=null}),z(),o=v[l],o?o.p(t,r):(o=v[l]=w[l](t),o.c()),s(o,1),o.m(n,i)),t[3]?$?$.p(t,r):($=hs(t),$.c(),$.m(n,null)):$&&($.d(1),$=null),(!f||128&r)&&p(n,"style",t[7]),t[5]&&t[0]?.name?_?(_.p(t,r),33&r&&s(_,1)):(_=bs(t),_.c(),s(_,1),_.m(e,null)):_&&(k(),c(_,1,1,()=>{_=null}),z()),(!f||2112&r&&a!==(a=`flex ${t[6]?"flex-row space-x-2 items-center":"flex-col space-y-1.5 items-start"} ${t[11].class||""}`))&&p(e,"class",a)},i(t){f||(s(o),s(_),f=!0)},o(t){c(o),c(_),f=!1},d(t){t&&r(e),v[l].d(),$&&$.d(),_&&_.d(),d=!1,m()}}}function vs(t,e,n){let i,r,c,{$$slots:s={},$$scope:u}=e,{value:a={}}=e,{size:f=10}=e,{pixel:d=!1}=e,{level:p=!1}=e,{selected:m=!1}=e,{extended:x=!1}=e,{row:h=!1}=e;const b=G();return t.$$set=t=>{n(11,e=l(l({},e),o(t))),"value"in t&&n(0,a=t.value),"size"in t&&n(1,f=t.size),"pixel"in t&&n(2,d=t.pixel),"level"in t&&n(3,p=t.level),"selected"in t&&n(4,m=t.selected),"extended"in t&&n(5,x=t.extended),"row"in t&&n(6,h=t.row),"$$scope"in t&&n(12,u=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&n(9,i=["#f5bfd2","#a1cdce","#e5db9c","#beb4c5","#e6a57e","#218b82","#eb96aa","#2cced2","#4382bb","#9c9359","#8c7386","#40393e","#000"][(a?.id||0)%13]),1&t.$$.dirty&&n(8,r=function(t){if(t){if(9==t.level)return"danger";if(3==t.level)return"base";if(2==t.level)return"alt";if(1==t.level)return"transparent"}return"whitesmoke"}(a)),6&t.$$.dirty&&n(7,c=d?`width: ${f}px; height: ${f}px;`:`width: ${(f||12)/4}rem; height: ${(f||12)/4}rem;`)},e=o(e),[a,f,d,p,m,x,h,c,r,i,function(){b("click")},e,u,s]}class ys extends t{constructor(t){super(),e(this,t,vs,gs,n,{value:0,size:1,pixel:2,level:3,selected:4,extended:5,row:6})}}function $s(t){let e;return{c(){e=b("div"),e.innerHTML='<div class="loader svelte-1r2cbtk"></div>',v(e,"z-index","200"),p(e,"class","fixed top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%]")},m(t,n){x(t,e,n)},d(t){t&&r(e)}}}function ks(t){let e,n=t[0]&&$s();return{c(){n&&n.c(),e=$()},m(t,l){n&&n.m(t,l),x(t,e,l)},p(t,[l]){t[0]?n||(n=$s(),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:y,o:y,d(t){t&&r(e),n&&n.d(t)}}}function zs(t,e,n){const{bus:l}=zt();let o,i=!1,r=0;const c=t=>{t?(r||(clearTimeout(o),o=setTimeout(async()=>{n(0,i=!0),await q()},200)),r++):(r--,r<=0&&(r=0,clearTimeout(o),n(0,i=!1)))};return J(()=>{l.on("wait",c)}),K(()=>{l.off("wait",c)}),[i]}class _s extends t{constructor(t){super(),e(this,t,zs,ks,n,{})}}function js(t,e,n=100){t&&e&&e.querySelectorAll&&setTimeout(()=>{var t=e.querySelectorAll("input,select,area");(t&&t[0]||(t=e.querySelectorAll("button"))&&t[0])&&t[0].focus()},n)}export{xt as Badge,pn as Bicon,wn as Bpop,zn as Btn,An as BtnCerca,Rn as BtnFile,Hn as Check,qn as Contenitore,tl as ContenitoreXY,pl as Cropper,Di as Dtable,Zi as Group,$t as Icon,rr as Imulti,Ul as Input,Fr as Json,Cr as Libloader,Mc as Menu,Hr as Messaggio,ao as Msg,qr as Pdf,oc as Range,Qr as Scroller,qc as Sinput,On as T,ns as Tab,ds as Tabs,sn as Tooltip,ys as User,_s as Wait,js as autofocus,ct as bus,_t as extendcommons,it as formatDate,ot as getdim,st as listfromstring,lt as myuuid,dt as strDate,rt as toDateStr,at as toEuro,ut as tonum};
|
package/dist/safelist.js
CHANGED
|
@@ -3,6 +3,7 @@ export const safelist = [
|
|
|
3
3
|
"!pl-3",
|
|
4
4
|
"!text-danger-foreground",
|
|
5
5
|
"!w-full",
|
|
6
|
+
"-left-10",
|
|
6
7
|
"-right-2",
|
|
7
8
|
"-translate-x-[50%]",
|
|
8
9
|
"-translate-y-[50%]",
|
|
@@ -68,6 +69,9 @@ export const safelist = [
|
|
|
68
69
|
"flex-wrap",
|
|
69
70
|
"float-left",
|
|
70
71
|
"float-right",
|
|
72
|
+
"focus:outline-none",
|
|
73
|
+
"focus:ring-1",
|
|
74
|
+
"focus:ring-c-base",
|
|
71
75
|
"font-base",
|
|
72
76
|
"font-bold",
|
|
73
77
|
"font-ligth",
|
|
@@ -147,12 +151,14 @@ export const safelist = [
|
|
|
147
151
|
"ml-0",
|
|
148
152
|
"ml-2",
|
|
149
153
|
"ml-auto",
|
|
154
|
+
"modern-slider",
|
|
150
155
|
"mr-0",
|
|
151
156
|
"mr-1",
|
|
152
157
|
"mr-2",
|
|
153
158
|
"mr-auto",
|
|
154
159
|
"mt-1",
|
|
155
160
|
"mt-2",
|
|
161
|
+
"mx-2",
|
|
156
162
|
"mx-auto",
|
|
157
163
|
"my-1",
|
|
158
164
|
"object-center",
|
|
@@ -213,6 +219,7 @@ export const safelist = [
|
|
|
213
219
|
"rounded-full",
|
|
214
220
|
"rounded-l",
|
|
215
221
|
"rounded-l-md",
|
|
222
|
+
"rounded-lg",
|
|
216
223
|
"rounded-md",
|
|
217
224
|
"rounded-none",
|
|
218
225
|
"rounded-r",
|
|
@@ -223,6 +230,7 @@ export const safelist = [
|
|
|
223
230
|
"select-none",
|
|
224
231
|
"shadow-lg",
|
|
225
232
|
"shadow-md",
|
|
233
|
+
"shadow-sm",
|
|
226
234
|
"space-x-1",
|
|
227
235
|
"space-x-2",
|
|
228
236
|
"space-y-0.5",
|
|
@@ -264,10 +272,13 @@ export const safelist = [
|
|
|
264
272
|
"top-0",
|
|
265
273
|
"top-1",
|
|
266
274
|
"top-2",
|
|
275
|
+
"top-6",
|
|
267
276
|
"top-[50%]",
|
|
268
277
|
"w-10",
|
|
278
|
+
"w-14",
|
|
269
279
|
"w-2",
|
|
270
280
|
"w-2.5",
|
|
281
|
+
"w-28",
|
|
271
282
|
"w-4",
|
|
272
283
|
"w-5",
|
|
273
284
|
"w-6",
|