@htmlbricks/hb-terms-doc-templates 0.66.1 → 0.66.2
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/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(ni){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const kn=1,wn=2,ri=4,bn=8,zn=16,$n=1,xn=2,ai="[",It="[!",oi="[?",Pt="]",Fe={},C=Symbol(),si="http://www.w3.org/1999/xhtml",Tn=!1;var li=Array.isArray,En=Array.prototype.indexOf,Ue=Array.prototype.includes,dt=Array.from,ft=Object.keys,ht=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Sn=Object.getOwnPropertyDescriptors,In=Object.prototype,Pn=Array.prototype,ci=Object.getPrototypeOf,ui=Object.isExtensible;const Cn=()=>{};function An(e){for(var t=0;t<e.length;t++)e[t]()}function di(){var e,t,i=new Promise((n,r)=>{e=n,t=r});return{promise:i,resolve:e,reject:t}}const I=2,Ge=4,pt=8,fi=1<<24,ye=16,ie=32,_e=64,Ct=128,Y=512,S=1024,A=2048,oe=4096,G=8192,W=16384,ke=32768,hi=1<<25,He=65536,pi=1<<17,Ln=1<<18,Ie=1<<19,Nn=1<<20,se=1<<25,Pe=65536,At=1<<21,Lt=1<<22,we=1<<23,Nt=Symbol("$state"),qn=Symbol("legacy props"),Dn=Symbol(""),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Rn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Xe=3,Ze=8;function Mn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function On(e,t,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Fn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Un(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Vn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Bn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function vt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Qn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ne(e){w=e}let k;function D(e){if(e===null)throw vt(),Fe;return k=e}function mt(){return D(le(k))}function Ve(e){if(w){if(le(k)!==null)throw vt(),Fe;k=e}}function Jn(e=1){if(w){for(var t=e,i=k;t--;)i=le(i);k=i}}function gt(e=!0){for(var t=0,i=k;;){if(i.nodeType===Ze){var n=i.data;if(n===Pt){if(t===0)return i;t-=1}else(n===ai||n===It||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var r=le(i);e&&i.remove(),i=r}}function vi(e){if(!e||e.nodeType!==Ze)throw vt(),Fe;return e.data}function mi(e){return e===this.v}function Kn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function gi(e){return!Kn(e,this.v)}let Xn=!1,B=null;function Ye(e){B=e}function yi(e,t=!1,i){B={p:B,i:!1,c:null,e:null,s:e,x:null,r:y,l:null}}function _i(e){var t=B,i=t.e;if(i!==null){t.e=null;for(var n of i)Hi(n)}return e!==void 0&&(t.x=e),t.i=!0,B=t.p,e??{}}function ki(){return!0}let Ce=[];function wi(){var e=Ce;Ce=[],An(e)}function Ae(e){if(Ce.length===0&&!et){var t=Ce;queueMicrotask(()=>{t===Ce&&wi()})}Ce.push(e)}function Zn(){for(;Ce.length>0;)wi()}function bi(e){var t=y;if(t===null)return g.f|=we,e;if((t.f&ke)===0&&(t.f&Ge)===0)throw e;be(e,t)}function be(e,t){for(;t!==null;){if((t.f&Ct)!==0){if((t.f&ke)===0)throw e;try{t.b.error(e);return}catch(i){e=i}}t=t.parent}throw e}const er=-7169;function x(e,t){e.f=e.f&er|t}function qt(e){(e.f&Y)!==0||e.deps===null?x(e,S):x(e,oe)}function zi(e){if(e!==null)for(const t of e)(t.f&I)===0||(t.f&Pe)===0||(t.f^=Pe,zi(t.deps))}function $i(e,t,i){(e.f&A)!==0?t.add(e):(e.f&oe)!==0&&i.add(e),zi(e.deps),x(e,S)}const ze=new Set;let z=null,re=null,Dt=null,et=!1,Rt=!1,We=null,yt=null;var xi=0;let tr=1;class pe{id=tr++;current=new Map;previous=new Map;#e=new Set;#i=new Set;#t=new Map;#r=new Map;#a=null;#n=[];#o=new Set;#s=new Set;#l=new Map;is_fork=!1;#d=!1;#c=new Set;#f(){return this.is_fork||this.#r.size>0}#p(){for(const n of this.#c)for(const r of n.#r.keys()){for(var t=!1,i=r;i.parent!==null;){if(this.#l.has(i)){t=!0;break}i=i.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var i=this.#l.get(t);if(i){this.#l.delete(t);for(var n of i.d)x(n,A),this.schedule(n);for(n of i.m)x(n,oe),this.schedule(n)}}#h(){if(xi++>1e3&&(ze.delete(this),ir()),!this.#f()){for(const l of this.#o)this.#s.delete(l),x(l,A),this.schedule(l);for(const l of this.#s)x(l,oe),this.schedule(l)}const t=this.#n;this.#n=[],this.apply();var i=We=[],n=[],r=yt=[];for(const l of t)try{this.#u(l,i,n)}catch(c){throw Pi(l),c}if(z=null,r.length>0){var a=pe.ensure();for(const l of r)a.schedule(l)}if(We=null,yt=null,this.#f()||this.#p()){this.#v(n),this.#v(i);for(const[l,c]of this.#l)Ii(l,c)}else{this.#t.size===0&&ze.delete(this),this.#o.clear(),this.#s.clear();for(const l of this.#e)l(this);this.#e.clear(),Ti(n),Ti(i),this.#a?.resolve()}var s=z;if(this.#n.length>0){const l=s??=this;l.#n.push(...this.#n.filter(c=>!l.#n.includes(c)))}s!==null&&(ze.add(s),s.#h()),ze.has(this)||this.#m()}#u(t,i,n){t.f^=S;for(var r=t.first;r!==null;){var a=r.f,s=(a&(ie|_e))!==0,l=s&&(a&S)!==0,c=l||(a&G)!==0||this.#l.has(r);if(!c&&r.fn!==null){s?r.f^=S:(a&Ge)!==0?i.push(r):ot(r)&&((a&ye)!==0&&this.#s.add(r),Qe(r));var u=r.first;if(u!==null){r=u;continue}}for(;r!==null;){var o=r.next;if(o!==null){r=o;break}r=r.parent}}}#v(t){for(var i=0;i<t.length;i+=1)$i(t[i],this.#o,this.#s)}capture(t,i,n=!1){i!==C&&!this.previous.has(t)&&this.previous.set(t,i),(t.f&we)===0&&(this.current.set(t,[t.v,n]),re?.set(t,t.v))}activate(){z=this}deactivate(){z=null,re=null}flush(){try{Rt=!0,z=this,this.#h()}finally{xi=0,Dt=null,We=null,yt=null,Rt=!1,z=null,re=null,$e.clear()}}discard(){for(const t of this.#i)t(this);this.#i.clear(),ze.delete(this)}#m(){for(const u of ze){var t=u.id<this.id,i=[];for(const[o,[p,d]]of this.current){if(u.current.has(o)){var n=u.current.get(o)[0];if(t&&p!==n)u.current.set(o,[p,d]);else continue}i.push(o)}var r=[...u.current.keys()].filter(o=>!this.current.has(o));if(r.length===0)t&&u.discard();else if(i.length>0){u.activate();var a=new Set,s=new Map;for(var l of i)Ei(l,r,a,s);if(u.#n.length>0){u.apply();for(var c of u.#n)u.#u(c,[],[]);u.#n=[]}u.deactivate()}}for(const u of ze)u.#c.has(this)&&(u.#c.delete(this),u.#c.size===0&&!u.#f()&&(u.activate(),u.#h()))}increment(t,i){let n=this.#t.get(i)??0;if(this.#t.set(i,n+1),t){let r=this.#r.get(i)??0;this.#r.set(i,r+1)}}decrement(t,i,n){let r=this.#t.get(i)??0;if(r===1?this.#t.delete(i):this.#t.set(i,r-1),t){let a=this.#r.get(i)??0;a===1?this.#r.delete(i):this.#r.set(i,a-1)}this.#d||n||(this.#d=!0,Ae(()=>{this.#d=!1,this.flush()}))}transfer_effects(t,i){for(const n of t)this.#o.add(n);for(const n of i)this.#s.add(n);t.clear(),i.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#i.add(t)}settled(){return(this.#a??=di()).promise}static ensure(){if(z===null){const t=z=new pe;Rt||(ze.add(z),et||Ae(()=>{z===t&&t.flush()}))}return z}apply(){{re=null;return}}schedule(t){if(Dt=t,t.b?.is_pending&&(t.f&(Ge|pt|fi))!==0&&(t.f&ke)===0){t.b.defer_effect(t);return}for(var i=t;i.parent!==null;){i=i.parent;var n=i.f;if(We!==null&&i===y&&(g===null||(g.f&I)===0))return;if((n&(_e|ie))!==0){if((n&S)===0)return;i.f^=S}}this.#n.push(i)}}function _t(e){var t=et;et=!0;try{for(var i;;){if(Zn(),z===null)return i;z.flush()}}finally{et=t}}function ir(){try{Gn()}catch(e){be(e,Dt)}}let ve=null;function Ti(e){var t=e.length;if(t!==0){for(var i=0;i<t;){var n=e[i++];if((n.f&(W|G))===0&&ot(n)&&(ve=new Set,Qe(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Wi(n),ve?.size>0)){$e.clear();for(const r of ve){if((r.f&(W|G))!==0)continue;const a=[r];let s=r.parent;for(;s!==null;)ve.has(s)&&(ve.delete(s),a.push(s)),s=s.parent;for(let l=a.length-1;l>=0;l--){const c=a[l];(c.f&(W|G))===0&&Qe(c)}}ve.clear()}}ve=null}}function Ei(e,t,i,n){if(!i.has(e)&&(i.add(e),e.reactions!==null))for(const r of e.reactions){const a=r.f;(a&I)!==0?Ei(r,t,i,n):(a&(Lt|ye))!==0&&(a&A)===0&&Si(r,t,n)&&(x(r,A),Mt(r))}}function Si(e,t,i){const n=i.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const r of e.deps){if(Ue.call(t,r))return!0;if((r.f&I)!==0&&Si(r,t,i))return i.set(r,!0),!0}return i.set(e,!1),!1}function Mt(e){z.schedule(e)}function Ii(e,t){if(!((e.f&ie)!==0&&(e.f&S)!==0)){(e.f&A)!==0?t.d.push(e):(e.f&oe)!==0&&t.m.push(e),x(e,S);for(var i=e.first;i!==null;)Ii(i,t),i=i.next}}function Pi(e){x(e,S);for(var t=e.first;t!==null;)Pi(t),t=t.next}function nr(e){let t=0,i=Le(0),n;return()=>{Ht()&&(b(i),Vi(()=>(t===0&&(n=Sr(()=>e(()=>tt(i)))),t+=1,()=>{Ae(()=>{t-=1,t===0&&(n?.(),n=void 0,tt(i))})})))}}var rr=He|Ie;function ar(e,t,i,n){new or(e,t,i,n)}class or{parent;is_pending=!1;transform_error;#e;#i=w?k:null;#t;#r;#a;#n=null;#o=null;#s=null;#l=null;#d=0;#c=0;#f=!1;#p=new Set;#h=new Set;#u=null;#v=nr(()=>(this.#u=Le(this.#d),()=>{this.#u=null}));constructor(t,i,n,r){this.#e=t,this.#t=i,this.#r=a=>{var s=y;s.b=this,s.f|=Ct,n(a)},this.parent=y.b,this.transform_error=r??this.parent?.transform_error??(a=>a),this.#a=Vt(()=>{if(w){const a=this.#i;mt();const s=a.data===It;if(a.data.startsWith(oi)){const c=JSON.parse(a.data.slice(oi.length));this.#w(c)}else s?this.#b():this.#m()}else this.#_()},rr),w&&(this.#e=k)}#m(){try{this.#n=Q(()=>this.#r(this.#e))}catch(t){this.error(t)}}#w(t){const i=this.#t.failed;i&&(this.#s=Q(()=>{i(this.#e,()=>t,()=>()=>{})}))}#b(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=Q(()=>t(this.#e)),Ae(()=>{var i=this.#l=document.createDocumentFragment(),n=O();i.append(n),this.#n=this.#y(()=>Q(()=>this.#r(n))),this.#c===0&&(this.#e.before(i),this.#l=null,De(this.#o,()=>{this.#o=null}),this.#g(z))}))}#_(){try{if(this.is_pending=this.has_pending_snippet(),this.#c=0,this.#d=0,this.#n=Q(()=>{this.#r(this.#e)}),this.#c>0){var t=this.#l=document.createDocumentFragment();Bt(this.#n,t);const i=this.#t.pending;this.#o=Q(()=>i(this.#e))}else this.#g(z)}catch(i){this.error(i)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#p,this.#h)}defer_effect(t){$i(t,this.#p,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#y(t){var i=y,n=g,r=B;J(this.#a),F(this.#a),Ye(this.#a.ctx);try{return pe.ensure(),t()}catch(a){return bi(a),null}finally{J(i),F(n),Ye(r)}}#k(t,i){if(!this.has_pending_snippet()){this.parent&&this.parent.#k(t,i);return}this.#c+=t,this.#c===0&&(this.#g(i),this.#o&&De(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,i){this.#k(t,i),this.#d+=t,!(!this.#u||this.#f)&&(this.#f=!0,Ae(()=>{this.#f=!1,this.#u&&Be(this.#u,this.#d)}))}get_effect_pending(){return this.#v(),b(this.#u)}error(t){var i=this.#t.onerror;let n=this.#t.failed;if(!i&&!n)throw t;this.#n&&(R(this.#n),this.#n=null),this.#o&&(R(this.#o),this.#o=null),this.#s&&(R(this.#s),this.#s=null),w&&(D(this.#i),Jn(),D(gt()));var r=!1,a=!1;const s=()=>{if(r){Qn();return}r=!0,a&&Bn(),this.#s!==null&&De(this.#s,()=>{this.#s=null}),this.#y(()=>{this.#_()})},l=c=>{try{a=!0,i?.(c,s),a=!1}catch(u){be(u,this.#a&&this.#a.parent)}n&&(this.#s=this.#y(()=>{try{return Q(()=>{var u=y;u.b=this,u.f|=Ct,n(this.#e,()=>c,()=>s)})}catch(u){return be(u,this.#a.parent),null}}))};Ae(()=>{var c;try{c=this.transform_error(t)}catch(u){be(u,this.#a&&this.#a.parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(l,u=>be(u,this.#a&&this.#a.parent)):l(c)})}}function sr(e,t,i,n){const r=Ot;var a=e.filter(d=>!d.settled);if(i.length===0&&a.length===0){n(t.map(r));return}var s=y,l=lr(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(d=>d.promise)):null;function u(d){l();try{n(d)}catch(v){(s.f&W)===0&&be(v,s)}kt()}if(i.length===0){c.then(()=>u(t.map(r)));return}var o=Ci();function p(){Promise.all(i.map(d=>cr(d))).then(d=>u([...t.map(r),...d])).catch(d=>be(d,s)).finally(()=>o())}c?c.then(()=>{l(),p(),kt()}):p()}function lr(){var e=y,t=g,i=B,n=z;return function(a=!0){J(e),F(t),Ye(i),a&&(e.f&W)===0&&(n?.activate(),n?.apply())}}function kt(e=!0){J(null),F(null),Ye(null),e&&z?.deactivate()}function Ci(){var e=y,t=e.b,i=z,n=t.is_rendered();return t.update_pending_count(1,i),i.increment(n,e),(r=!1)=>{t.update_pending_count(-1,i),i.decrement(n,e,r)}}function Ot(e){var t=I|A,i=g!==null&&(g.f&I)!==0?g:null;return y!==null&&(y.f|=Ie),{ctx:B,deps:null,effects:null,equals:mi,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:i??y,ac:null}}function cr(e,t,i){let n=y;n===null&&Mn();var r=void 0,a=Le(C),s=!g,l=new Map;return br(()=>{var c=y,u=di();r=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(kt)}catch(v){u.reject(v),kt()}var o=z;if(s){if((c.f&ke)!==0)var p=Ci();if(n.b.is_rendered())l.get(o)?.reject(he),l.delete(o);else{for(const v of l.values())v.reject(he);l.clear()}l.set(o,u)}const d=(v,h=void 0)=>{if(p){var _=h===he;p(_)}if(!(h===he||(c.f&W)!==0)){if(o.activate(),h)a.f|=we,Be(a,h);else{(a.f&we)!==0&&(a.f^=we),Be(a,v);for(const[f,m]of l){if(l.delete(f),f===o)break;m.reject(he)}}o.deactivate()}};u.promise.then(d,v=>d(null,v||"unknown"))}),gr(()=>{for(const c of l.values())c.reject(he)}),new Promise(c=>{function u(o){function p(){o===r?c(a):u(r)}o.then(p,p)}u(r)})}function ur(e){const t=Ot(e);return t.equals=gi,t}function dr(e){var t=e.effects;if(t!==null){e.effects=null;for(var i=0;i<t.length;i+=1)R(t[i])}}function fr(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return(t.f&W)===0?t:null;t=t.parent}return null}function Ft(e){var t,i=y;J(fr(e));try{e.f&=~Pe,dr(e),t=tn(e)}finally{J(i)}return t}function Ai(e){var t=e.v,i=Ft(e);if(!e.equals(i)&&(e.wv=Zi(),(!z?.is_fork||e.deps===null)&&(e.v=i,z?.capture(e,t,!0),e.deps===null))){x(e,S);return}xe||(re!==null?(Ht()||z?.is_fork)&&re.set(e,i):qt(e))}function hr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=Cn,t.ac=null,st(t,0),Yt(t))}function Li(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Qe(t)}let Ut=new Set;const $e=new Map;let Ni=!1;function Le(e,t){var i={f:0,v:e,reactions:null,equals:mi,rv:0,wv:0};return i}function me(e,t){const i=Le(e);return xr(i),i}function qi(e,t=!1,i=!0){const n=Le(e);return t||(n.equals=gi),n}function H(e,t,i=!1){g!==null&&(!ae||(g.f&pi)!==0)&&ki()&&(g.f&(I|ye|Lt|pi))!==0&&(K===null||!Ue.call(K,e))&&Wn();let n=i?it(t):t;return Be(e,n,yt)}function Be(e,t,i=null){if(!e.equals(t)){var n=e.v;xe?$e.set(e,t):$e.set(e,n),e.v=t;var r=pe.ensure();if(r.capture(e,n),(e.f&I)!==0){const a=e;(e.f&A)!==0&&Ft(a),re===null&&qt(a)}e.wv=Zi(),Di(e,A,i),y!==null&&(y.f&S)!==0&&(y.f&(ie|_e))===0&&(X===null?Tr([e]):X.push(e)),!r.is_fork&&Ut.size>0&&!Ni&&pr()}return t}function pr(){Ni=!1;for(const e of Ut)(e.f&S)!==0&&x(e,oe),ot(e)&&Qe(e);Ut.clear()}function tt(e){H(e,e.v+1)}function Di(e,t,i){var n=e.reactions;if(n!==null)for(var r=n.length,a=0;a<r;a++){var s=n[a],l=s.f,c=(l&A)===0;if(c&&x(s,t),(l&I)!==0){var u=s;re?.delete(u),(l&Pe)===0&&(l&Y&&(s.f|=Pe),Di(u,oe,i))}else if(c){var o=s;(l&ye)!==0&&ve!==null&&ve.add(o),i!==null?i.push(o):Mt(o)}}}function it(e){if(typeof e!="object"||e===null||Nt in e)return e;const t=ci(e);if(t!==In&&t!==Pn)return e;var i=new Map,n=li(e),r=me(0),a=Me,s=l=>{if(Me===a)return l();var c=g,u=Me;F(null),Xi(a);var o=l();return F(c),Xi(u),o};return n&&i.set("length",me(e.length)),new Proxy(e,{defineProperty(l,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Vn();var o=i.get(c);return o===void 0?s(()=>{var p=me(u.value);return i.set(c,p),p}):H(o,u.value,!0),!0},deleteProperty(l,c){var u=i.get(c);if(u===void 0){if(c in l){const o=s(()=>me(C));i.set(c,o),tt(r)}}else H(u,C),tt(r);return!0},get(l,c,u){if(c===Nt)return e;var o=i.get(c),p=c in l;if(o===void 0&&(!p||je(l,c)?.writable)&&(o=s(()=>{var v=it(p?l[c]:C),h=me(v);return h}),i.set(c,o)),o!==void 0){var d=b(o);return d===C?void 0:d}return Reflect.get(l,c,u)},getOwnPropertyDescriptor(l,c){var u=Reflect.getOwnPropertyDescriptor(l,c);if(u&&"value"in u){var o=i.get(c);o&&(u.value=b(o))}else if(u===void 0){var p=i.get(c),d=p?.v;if(p!==void 0&&d!==C)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(l,c){if(c===Nt)return!0;var u=i.get(c),o=u!==void 0&&u.v!==C||Reflect.has(l,c);if(u!==void 0||y!==null&&(!o||je(l,c)?.writable)){u===void 0&&(u=s(()=>{var d=o?it(l[c]):C,v=me(d);return v}),i.set(c,u));var p=b(u);if(p===C)return!1}return o},set(l,c,u,o){var p=i.get(c),d=c in l;if(n&&c==="length")for(var v=u;v<p.v;v+=1){var h=i.get(v+"");h!==void 0?H(h,C):v in l&&(h=s(()=>me(C)),i.set(v+"",h))}if(p===void 0)(!d||je(l,c)?.writable)&&(p=s(()=>me(void 0)),H(p,it(u)),i.set(c,p));else{d=p.v!==C;var _=s(()=>it(u));H(p,_)}var f=Reflect.getOwnPropertyDescriptor(l,c);if(f?.set&&f.set.call(o,u),!d){if(n&&typeof c=="string"){var m=i.get("length"),T=Number(c);Number.isInteger(T)&&T>=m.v&&H(m,T+1)}tt(r)}return!0},ownKeys(l){b(r);var c=Reflect.ownKeys(l).filter(p=>{var d=i.get(p);return d===void 0||d.v!==C});for(var[u,o]of i)o.v!==C&&!(u in l)&&c.push(u);return c},setPrototypeOf(){Yn()}})}var Ri,Mi,Oi,Fi;function jt(){if(Ri===void 0){Ri=window,Mi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,i=Text.prototype;Oi=je(t,"firstChild").get,Fi=je(t,"nextSibling").get,ui(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ui(i)&&(i.__t=void 0)}}function O(e=""){return document.createTextNode(e)}function Ne(e){return Oi.call(e)}function le(e){return Fi.call(e)}function nt(e,t){if(!w)return Ne(e);var i=Ne(k);if(i===null)i=k.appendChild(O());else if(t&&i.nodeType!==Xe){var n=O();return i?.before(n),D(n),n}return t&&wt(i),D(i),i}function rt(e,t=!1){if(!w){var i=Ne(e);return i instanceof Comment&&i.data===""?le(i):i}if(t){if(k?.nodeType!==Xe){var n=O();return k?.before(n),D(n),n}wt(k)}return k}function at(e,t=1,i=!1){let n=w?k:e;for(var r;t--;)r=n,n=le(n);if(!w)return n;if(i){if(n?.nodeType!==Xe){var a=O();return n===null?r?.after(a):n.before(a),D(a),a}wt(n)}return D(n),n}function Ui(e){e.textContent=""}function ji(){return!1}function Gt(e,t,i){return document.createElementNS(si,e,void 0)}function wt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Xe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Gi(e){var t=g,i=y;F(null),J(null);try{return e()}finally{F(t),J(i)}}function vr(e){y===null&&(g===null&&jn(),Un()),xe&&Fn()}function mr(e,t){var i=t.last;i===null?t.last=t.first=e:(i.next=e,e.prev=i,t.last=e)}function ce(e,t){var i=y;i!==null&&(i.f&G)!==0&&(e|=G);var n={ctx:B,deps:null,nodes:null,f:e|A|Y,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null},r=n;if((e&Ge)!==0)We!==null?We.push(n):pe.ensure().schedule(n);else if(t!==null){try{Qe(n)}catch(s){throw R(n),s}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&(r.f&Ie)===0&&(r=r.first,(e&ye)!==0&&(e&He)!==0&&r!==null&&(r.f|=He))}if(r!==null&&(r.parent=i,i!==null&&mr(r,i),g!==null&&(g.f&I)!==0&&(e&_e)===0)){var a=g;(a.effects??=[]).push(r)}return n}function Ht(){return g!==null&&!ae}function gr(e){const t=ce(pt,null);return x(t,S),t.teardown=e,t}function yr(e){vr();var t=y.f,i=!g&&(t&ie)!==0&&(t&ke)===0;if(i){var n=B;(n.e??=[]).push(e)}else return Hi(e)}function Hi(e){return ce(Ge|Nn,e)}function _r(e){pe.ensure();const t=ce(_e|Ie,e);return()=>{R(t)}}function kr(e){pe.ensure();const t=ce(_e|Ie,e);return(i={})=>new Promise(n=>{i.outro?De(t,()=>{R(t),n(void 0)}):(R(t),n(void 0))})}function wr(e){return ce(Ge,e)}function br(e){return ce(Lt|Ie,e)}function Vi(e,t=0){return ce(pt|t,e)}function qe(e,t=[],i=[],n=[]){sr(n,t,i,r=>{ce(pt,()=>e(...r.map(b)))})}function Vt(e,t=0){var i=ce(ye|t,e);return i}function Q(e){return ce(ie|Ie,e)}function Yi(e){var t=e.teardown;if(t!==null){const i=xe,n=g;Ji(!0),F(null);try{t.call(null)}finally{Ji(i),F(n)}}}function Yt(e,t=!1){var i=e.first;for(e.first=e.last=null;i!==null;){const r=i.ac;r!==null&&Gi(()=>{r.abort(he)});var n=i.next;(i.f&_e)!==0?i.parent=null:R(i,t),i=n}}function zr(e){for(var t=e.first;t!==null;){var i=t.next;(t.f&ie)===0&&R(t),t=i}}function R(e,t=!0){var i=!1;(t||(e.f&Ln)!==0)&&e.nodes!==null&&e.nodes.end!==null&&($r(e.nodes.start,e.nodes.end),i=!0),x(e,hi),Yt(e,t&&!i),st(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)a.stop();Yi(e),e.f^=hi,e.f|=W;var r=e.parent;r!==null&&r.first!==null&&Wi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function $r(e,t){for(;e!==null;){var i=e===t?null:le(e);e.remove(),e=i}}function Wi(e){var t=e.parent,i=e.prev,n=e.next;i!==null&&(i.next=n),n!==null&&(n.prev=i),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=i))}function De(e,t,i=!0){var n=[];Bi(e,n,!0);var r=()=>{i&&R(e),t&&t()},a=n.length;if(a>0){var s=()=>--a||r();for(var l of n)l.out(s)}else r()}function Bi(e,t,i){if((e.f&G)===0){e.f^=G;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||i)&&t.push(l);for(var r=e.first;r!==null;){var a=r.next,s=(r.f&He)!==0||(r.f&ie)!==0&&(e.f&ye)!==0;Bi(r,t,s?i:!1),r=a}}}function Wt(e){Qi(e,!0)}function Qi(e,t){if((e.f&G)!==0){e.f^=G,(e.f&S)===0&&(x(e,A),pe.ensure().schedule(e));for(var i=e.first;i!==null;){var n=i.next,r=(i.f&He)!==0||(i.f&ie)!==0;Qi(i,r?t:!1),i=n}var a=e.nodes&&e.nodes.t;if(a!==null)for(const s of a)(s.is_global||t)&&s.in()}}function Bt(e,t){if(e.nodes)for(var i=e.nodes.start,n=e.nodes.end;i!==null;){var r=i===n?null:le(i);t.append(i),i=r}}let bt=!1,xe=!1;function Ji(e){xe=e}let g=null,ae=!1;function F(e){g=e}let y=null;function J(e){y=e}let K=null;function xr(e){g!==null&&(K===null?K=[e]:K.push(e))}let U=null,V=0,X=null;function Tr(e){X=e}let Ki=1,Re=0,Me=Re;function Xi(e){Me=e}function Zi(){return++Ki}function ot(e){var t=e.f;if((t&A)!==0)return!0;if(t&I&&(e.f&=~Pe),(t&oe)!==0){for(var i=e.deps,n=i.length,r=0;r<n;r++){var a=i[r];if(ot(a)&&Ai(a),a.wv>e.wv)return!0}(t&Y)!==0&&re===null&&x(e,S)}return!1}function en(e,t,i=!0){var n=e.reactions;if(n!==null&&!(K!==null&&Ue.call(K,e)))for(var r=0;r<n.length;r++){var a=n[r];(a.f&I)!==0?en(a,t,!1):t===a&&(i?x(a,A):(a.f&S)!==0&&x(a,oe),Mt(a))}}function tn(e){var t=U,i=V,n=X,r=g,a=K,s=B,l=ae,c=Me,u=e.f;U=null,V=0,X=null,g=(u&(ie|_e))===0?e:null,K=null,Ye(e.ctx),ae=!1,Me=++Re,e.ac!==null&&(Gi(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=At;var o=e.fn,p=o();e.f|=ke;var d=e.deps,v=z?.is_fork;if(U!==null){var h;if(v||st(e,V),d!==null&&V>0)for(d.length=V+U.length,h=0;h<U.length;h++)d[V+h]=U[h];else e.deps=d=U;if(Ht()&&(e.f&Y)!==0)for(h=V;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!v&&d!==null&&V<d.length&&(st(e,V),d.length=V);if(ki()&&X!==null&&!ae&&d!==null&&(e.f&(I|oe|A))===0)for(h=0;h<X.length;h++)en(X[h],e);if(r!==null&&r!==e){if(Re++,r.deps!==null)for(let _=0;_<i;_+=1)r.deps[_].rv=Re;if(t!==null)for(const _ of t)_.rv=Re;X!==null&&(n===null?n=X:n.push(...X))}return(e.f&we)!==0&&(e.f^=we),p}catch(_){return bi(_)}finally{e.f^=At,U=t,V=i,X=n,g=r,K=a,Ye(s),ae=l,Me=c}}function Er(e,t){let i=t.reactions;if(i!==null){var n=En.call(i,e);if(n!==-1){var r=i.length-1;r===0?i=t.reactions=null:(i[n]=i[r],i.pop())}}if(i===null&&(t.f&I)!==0&&(U===null||!Ue.call(U,t))){var a=t;(a.f&Y)!==0&&(a.f^=Y,a.f&=~Pe),qt(a),hr(a),st(a,0)}}function st(e,t){var i=e.deps;if(i!==null)for(var n=t;n<i.length;n++)Er(e,i[n])}function Qe(e){var t=e.f;if((t&W)===0){x(e,S);var i=y,n=bt;y=e,bt=!0;try{(t&(ye|fi))!==0?zr(e):Yt(e),Yi(e);var r=tn(e);e.teardown=typeof r=="function"?r:null,e.wv=Ki;var a;Tn&&Xn&&(e.f&A)!==0&&e.deps}finally{bt=n,y=i}}}function b(e){var t=e.f,i=(t&I)!==0;if(g!==null&&!ae){var n=y!==null&&(y.f&W)!==0;if(!n&&(K===null||!Ue.call(K,e))){var r=g.deps;if((g.f&At)!==0)e.rv<Re&&(e.rv=Re,U===null&&r!==null&&r[V]===e?V++:U===null?U=[e]:U.push(e));else{(g.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[g]:Ue.call(a,g)||a.push(g)}}}if(xe&&$e.has(e))return $e.get(e);if(i){var s=e;if(xe){var l=s.v;return((s.f&S)===0&&s.reactions!==null||rn(s))&&(l=Ft(s)),$e.set(s,l),l}var c=(s.f&Y)===0&&!ae&&g!==null&&(bt||(g.f&Y)!==0),u=(s.f&ke)===0;ot(s)&&(c&&(s.f|=Y),Ai(s)),c&&!u&&(Li(s),nn(s))}if(re?.has(e))return re.get(e);if((e.f&we)!==0)throw e.v;return e.v}function nn(e){if(e.f|=Y,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&I)!==0&&(t.f&Y)===0&&(Li(t),nn(t))}function rn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($e.has(t)||(t.f&I)!==0&&rn(t))return!0;return!1}function Sr(e){var t=ae;try{return ae=!0,e()}finally{ae=t}}const zt=Symbol("events"),Ir=new Set,an=new Set;let on=null;function sn(e){var t=this,i=t.ownerDocument,n=e.type,r=e.composedPath?.()||[],a=r[0]||e.target;on=e;var s=0,l=on===e&&e[zt];if(l){var c=r.indexOf(l);if(c!==-1&&(t===document||t===window)){e[zt]=t;return}var u=r.indexOf(t);if(u===-1)return;c<=u&&(s=c)}if(a=r[s]||e.target,a!==t){ht(e,"currentTarget",{configurable:!0,get(){return a||i}});var o=g,p=y;F(null),J(null);try{for(var d,v=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var _=a[zt]?.[n];_!=null&&(!a.disabled||e.target===a)&&_.call(a,e)}catch(f){d?v.push(f):d=f}if(e.cancelBubble||h===t||h===null)break;a=h}if(d){for(let f of v)queueMicrotask(()=>{throw f});throw d}}finally{e[zt]=t,delete e.currentTarget,F(o),J(p)}}}const Pr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Cr(e){return Pr?.createHTML(e)??e}function Ar(e){var t=Gt("template");return t.innerHTML=Cr(e.replaceAll("<!>","<!---->")),t.content}function Te(e,t){var i=y;i.nodes===null&&(i.nodes={start:e,end:t,a:null,t:null})}function Ee(e,t){var i=(t&$n)!==0,n=(t&xn)!==0,r,a=!e.startsWith("<!>");return()=>{if(w)return Te(k,null),k;r===void 0&&(r=Ar(a?e:"<!>"+e),i||(r=Ne(r)));var s=n||Mi?document.importNode(r,!0):r.cloneNode(!0);if(i){var l=Ne(s),c=s.lastChild;Te(l,c)}else Te(s,s);return s}}function Lr(e=""){if(!w){var t=O(e+"");return Te(t,t),t}var i=k;return i.nodeType!==Xe?(i.before(i=O()),D(i)):wt(i),Te(i,i),i}function ln(){if(w)return Te(k,null),k;var e=document.createDocumentFragment(),t=document.createComment(""),i=O();return e.append(t,i),Te(t,i),e}function Z(e,t){if(w){var i=y;((i.f&ke)===0||i.nodes.end===null)&&(i.nodes.end=k),mt();return}e!==null&&e.before(t)}const Nr=["touchstart","touchmove"];function qr(e){return Nr.includes(e)}function lt(e,t){var i=t==null?"":typeof t=="object"?`${t}`:t;i!==(e.__t??=e.nodeValue)&&(e.__t=i,e.nodeValue=`${i}`)}function cn(e,t){return un(e,t)}function Dr(e,t){jt(),t.intro=t.intro??!1;const i=t.target,n=w,r=k;try{for(var a=Ne(i);a&&(a.nodeType!==Ze||a.data!==ai);)a=le(a);if(!a)throw Fe;ne(!0),D(a);const s=un(e,{...t,anchor:a});return ne(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==Fe&&console.warn("Failed to hydrate: ",s),t.recover===!1&&Hn(),jt(),Ui(i),ne(!1),cn(e,t)}finally{ne(n),D(r)}}const $t=new Map;function un(e,{target:t,anchor:i,props:n={},events:r,context:a,intro:s=!0,transformError:l}){jt();var c=void 0,u=kr(()=>{var o=i??t.appendChild(O());ar(o,{pending:()=>{}},v=>{yi({});var h=B;if(a&&(h.c=a),r&&(n.$$events=r),w&&Te(v,null),c=e(v,n)||{},w&&(y.nodes.end=k,k===null||k.nodeType!==Ze||k.data!==Pt))throw vt(),Fe;_i()},l);var p=new Set,d=v=>{for(var h=0;h<v.length;h++){var _=v[h];if(!p.has(_)){p.add(_);var f=qr(_);for(const $ of[t,document]){var m=$t.get($);m===void 0&&(m=new Map,$t.set($,m));var T=m.get(_);T===void 0?($.addEventListener(_,sn,{passive:f}),m.set(_,1)):m.set(_,T+1)}}}};return d(dt(Ir)),an.add(d),()=>{for(var v of p)for(const f of[t,document]){var h=$t.get(f),_=h.get(v);--_==0?(f.removeEventListener(v,sn),h.delete(v),h.size===0&&$t.delete(f)):h.set(v,_)}an.delete(d),o!==i&&o.parentNode?.removeChild(o)}});return Qt.set(c,u),c}let Qt=new WeakMap;function Rr(e,t){const i=Qt.get(e);return i?(Qt.delete(e),i(t)):Promise.resolve()}class Mr{anchor;#e=new Map;#i=new Map;#t=new Map;#r=new Set;#a=!0;constructor(t,i=!0){this.anchor=t,this.#a=i}#n=t=>{if(this.#e.has(t)){var i=this.#e.get(t),n=this.#i.get(i);if(n)Wt(n),this.#r.delete(i);else{var r=this.#t.get(i);r&&(this.#i.set(i,r.effect),this.#t.delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[a,s]of this.#e){if(this.#e.delete(a),a===t)break;const l=this.#t.get(s);l&&(R(l.effect),this.#t.delete(s))}for(const[a,s]of this.#i){if(a===i||this.#r.has(a))continue;const l=()=>{if(Array.from(this.#e.values()).includes(a)){var u=document.createDocumentFragment();Bt(s,u),u.append(O()),this.#t.set(a,{effect:s,fragment:u})}else R(s);this.#r.delete(a),this.#i.delete(a)};this.#a||!n?(this.#r.add(a),De(s,l,!1)):l()}}};#o=t=>{this.#e.delete(t);const i=Array.from(this.#e.values());for(const[n,r]of this.#t)i.includes(n)||(R(r.effect),this.#t.delete(n))};ensure(t,i){var n=z,r=ji();if(i&&!this.#i.has(t)&&!this.#t.has(t))if(r){var a=document.createDocumentFragment(),s=O();a.append(s),this.#t.set(t,{effect:Q(()=>i(s)),fragment:a})}else this.#i.set(t,Q(()=>i(this.anchor)));if(this.#e.set(n,t),r){for(const[l,c]of this.#i)l===t?n.unskip_effect(c):n.skip_effect(c);for(const[l,c]of this.#t)l===t?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else w&&(this.anchor=k),this.#n(n)}}function Je(e,t,i=!1){var n;w&&(n=k,mt());var r=new Mr(e),a=i?He:0;function s(l,c){if(w){var u=vi(n);if(l!==parseInt(u.substring(1))){var o=gt();D(o),r.anchor=o,ne(!1),r.ensure(l,c),ne(!0);return}}r.ensure(l,c)}Vt(()=>{var l=!1;t((c,u=0)=>{l=!0,s(u,c)}),l||s(-1,null)},a)}function Or(e,t,i){for(var n=[],r=t.length,a,s=t.length,l=0;l<r;l++){let p=t[l];De(p,()=>{if(a){if(a.pending.delete(p),a.done.add(p),a.pending.size===0){var d=e.outrogroups;Jt(e,dt(a.done)),d.delete(a),d.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=n.length===0&&i!==null;if(c){var u=i,o=u.parentNode;Ui(o),o.append(u),e.items.clear()}Jt(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Jt(e,t,i=!0){var n;if(e.pending.size>0){n=new Set;for(const s of e.pending.values())for(const l of s)n.add(e.items.get(l).e)}for(var r=0;r<t.length;r++){var a=t[r];if(n?.has(a)){a.f|=se;const s=document.createDocumentFragment();Bt(a,s)}else R(t[r],i)}}var dn;function Kt(e,t,i,n,r,a=null){var s=e,l=new Map,c=(t&ri)!==0;if(c){var u=e;s=w?D(Ne(u)):u.appendChild(O())}w&&mt();var o=null,p=ur(()=>{var $=i();return li($)?$:$==null?[]:dt($)}),d,v=new Map,h=!0;function _($){(T.effect.f&W)===0&&(T.pending.delete($),T.fallback=o,Fr(T,d,s,t,n),o!==null&&(d.length===0?(o.f&se)===0?Wt(o):(o.f^=se,ut(o,null,s)):De(o,()=>{o=null})))}function f($){T.pending.delete($)}var m=Vt(()=>{d=b(p);var $=d.length;let j=!1;if(w){var Ke=vi(s)===It;Ke!==($===0)&&(s=gt(),D(s),ne(!1),j=!0)}for(var ee=new Set,q=z,ue=ji(),de=0;de<$;de+=1){w&&k.nodeType===Ze&&k.data===Pt&&(s=k,j=!0,ne(!1));var te=d[de],fe=n(te,de),E=h?null:l.get(fe);E?(E.v&&Be(E.v,te),E.i&&Be(E.i,de),ue&&q.unskip_effect(E.e)):(E=Ur(l,h?s:dn??=O(),te,fe,de,r,t,i),h||(E.e.f|=se),l.set(fe,E)),ee.add(fe)}if($===0&&a&&!o&&(h?o=Q(()=>a(s)):(o=Q(()=>a(dn??=O())),o.f|=se)),$>ee.size&&On(),w&&$>0&&D(gt()),!h)if(v.set(q,ee),ue){for(const[Et,St]of l)ee.has(Et)||q.skip_effect(St.e);q.oncommit(_),q.ondiscard(f)}else _(q);j&&ne(!0),b(p)}),T={effect:m,items:l,pending:v,outrogroups:null,fallback:o};h=!1,w&&(s=k)}function ct(e){for(;e!==null&&(e.f&ie)===0;)e=e.next;return e}function Fr(e,t,i,n,r){var a=(n&bn)!==0,s=t.length,l=e.items,c=ct(e.effect.first),u,o=null,p,d=[],v=[],h,_,f,m;if(a)for(m=0;m<s;m+=1)h=t[m],_=r(h,m),f=l.get(_).e,(f.f&se)===0&&(f.nodes?.a?.measure(),(p??=new Set).add(f));for(m=0;m<s;m+=1){if(h=t[m],_=r(h,m),f=l.get(_).e,e.outrogroups!==null)for(const te of e.outrogroups)te.pending.delete(f),te.done.delete(f);if((f.f&G)!==0&&(Wt(f),a&&(f.nodes?.a?.unfix(),(p??=new Set).delete(f))),(f.f&se)!==0)if(f.f^=se,f===c)ut(f,null,i);else{var T=o?o.next:c;f===e.effect.last&&(e.effect.last=f.prev),f.prev&&(f.prev.next=f.next),f.next&&(f.next.prev=f.prev),Se(e,o,f),Se(e,f,T),ut(f,T,i),o=f,d=[],v=[],c=ct(o.next);continue}if(f!==c){if(u!==void 0&&u.has(f)){if(d.length<v.length){var $=v[0],j;o=$.prev;var Ke=d[0],ee=d[d.length-1];for(j=0;j<d.length;j+=1)ut(d[j],$,i);for(j=0;j<v.length;j+=1)u.delete(v[j]);Se(e,Ke.prev,ee.next),Se(e,o,Ke),Se(e,ee,$),c=$,o=ee,m-=1,d=[],v=[]}else u.delete(f),ut(f,c,i),Se(e,f.prev,f.next),Se(e,f,o===null?e.effect.first:o.next),Se(e,o,f),o=f;continue}for(d=[],v=[];c!==null&&c!==f;)(u??=new Set).add(c),v.push(c),c=ct(c.next);if(c===null)continue}(f.f&se)===0&&d.push(f),o=f,c=ct(f.next)}if(e.outrogroups!==null){for(const te of e.outrogroups)te.pending.size===0&&(Jt(e,dt(te.done)),e.outrogroups?.delete(te));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||u!==void 0){var q=[];if(u!==void 0)for(f of u)(f.f&G)===0&&q.push(f);for(;c!==null;)(c.f&G)===0&&c!==e.fallback&&q.push(c),c=ct(c.next);var ue=q.length;if(ue>0){var de=(n&ri)!==0&&s===0?i:null;if(a){for(m=0;m<ue;m+=1)q[m].nodes?.a?.measure();for(m=0;m<ue;m+=1)q[m].nodes?.a?.fix()}Or(e,q,de)}}a&&Ae(()=>{if(p!==void 0)for(f of p)f.nodes?.a?.apply()})}function Ur(e,t,i,n,r,a,s,l){var c=(s&kn)!==0?(s&zn)===0?qi(i,!1,!1):Le(i):null,u=(s&wn)!==0?Le(r):null;return{v:c,i:u,e:Q(()=>(a(t,c??i,u??r,l),()=>{e.delete(n)}))}}function ut(e,t,i){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end,a=t&&(t.f&se)===0?t.nodes.start:i;n!==null;){var s=le(n);if(a.before(n),n===r)return;n=s}}function Se(e,t,i){t===null?e.effect.first=i:t.next=i,i===null?e.effect.last=t:i.prev=t}function jr(e,t){wr(()=>{var i=e.getRootNode(),n=i.host?i:i.head??i.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const r=Gt("style");r.id=t.hash,r.textContent=t.code,n.appendChild(r)}})}function Gr(e,t,i){var n=""+e;return n}function Hr(e,t,i,n,r,a){var s=e.__className;if(w||s!==i||s===void 0){var l=Gr(i);(!w||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=i}return a}const Vr=Symbol("is custom element"),Yr=Symbol("is html"),Wr=Rn?"link":"LINK";function Br(e,t,i,n){var r=Qr(e);w&&(r[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Wr)||r[t]!==(r[t]=i)&&(t==="loading"&&(e[Dn]=i),i==null?e.removeAttribute(t):typeof i!="string"&&fn(e).includes(t)?e[t]=i:e.setAttribute(t,i))}function xt(e,t,i){var n=g,r=y;let a=w;w&&ne(!1),F(null),J(null);try{t!=="style"&&(Xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?fn(e).includes(t):i&&typeof i=="object")?e[t]=i:Br(e,t,i==null?i:String(i))}finally{F(n),J(r),a&&ne(!0)}}function Qr(e){return e.__attributes??={[Vr]:e.nodeName.includes("-"),[Yr]:e.namespaceURI===si}}var Xt=new Map;function fn(e){var t=e.getAttribute("is")||e.nodeName,i=Xt.get(t);if(i)return i;Xt.set(t,i=[]);for(var n,r=e,a=Element.prototype;a!==r;){n=Sn(r);for(var s in n)n[s].set&&i.push(s);r=ci(r)}return i}function Zt(e,t,i,n){var r=n,a=!0,s=()=>(a&&(a=!1,r=n),r),l;l=e[t],l===void 0&&n!==void 0&&(l=s());var c;c=()=>{var d=e[t];return d===void 0?s():(a=!0,d)};var u=!1,o=Ot(()=>(u=!1,c())),p=y;return(function(d,v){if(arguments.length>0){const h=v?b(o):d;return H(o,h),u=!0,r!==void 0&&(r=h),d}return xe&&u||(p.f&W)!==0?o.v:b(o)})}function Jr(e){return new Kr(e)}class Kr{#e;#i;constructor(t){var i=new Map,n=(a,s)=>{var l=qi(s,!1,!1);return i.set(a,l),l};const r=new Proxy({...t.props||{},$$events:{}},{get(a,s){return b(i.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===qn?!0:(b(i.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return H(i.get(s)??n(s,l),l),Reflect.set(a,s,l)}});this.#i=(t.hydrate?Dr:cn)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&_t(),this.#e=r.$$events;for(const a of Object.keys(this.#i))a==="$set"||a==="$destroy"||a==="$on"||ht(this,a,{get(){return this.#i[a]},set(s){this.#i[a]=s},enumerable:!0});this.#i.$set=a=>{Object.assign(r,a)},this.#i.$destroy=()=>{Rr(this.#i)}}$set(t){this.#i.$set(t)}$on(t,i){this.#e[t]=this.#e[t]||[];const n=(...r)=>i.call(this,...r);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(r=>r!==n)}}$destroy(){this.#i.$destroy()}}let hn;typeof HTMLElement=="function"&&(hn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,i){super(),this.$$ctor=e,this.$$s=t,i&&(this.$$shadowRoot=this.attachShadow(i))}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return r=>{const a=Gt("slot");n!=="default"&&(a.name=n),Z(r,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Xr(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const r=this.$$g_p(n.name);r in this.$$d||(this.$$d[r]=Tt(r,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Jr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_r(()=>{Vi(()=>{this.$$r=!0;for(const n of ft(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const r=Tt(n,this.$$d[n],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,r)}this.$$r=!1})});for(const n in this.$$l)for(const r of this.$$l[n]){const a=this.$$c.$on(n,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(e,t,i){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Tt(e,i,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ft(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Tt(e,t,i,n){const r=i[e]?.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!i[e])return t;if(n==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Xr(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}function Zr(e,t,i,n,r,a){let s=class extends hn{constructor(){super(e,i,r),this.$$p_d=t}static get observedAttributes(){return ft(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ft(t).forEach(l=>{ht(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){c=Tt(l,c,t),this.$$d[l]=c;var u=this.$$c;if(u){var o=je(u,l)?.get;o?u[l]=c:u.$set({[l]:c})}}})}),n.forEach(l=>{ht(s.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=s,s}const ea={version:"0.66.1"};var Oe={},pn;function ta(){if(pn)return Oe;pn=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.LanguageTranslator=void 0,Oe.getChildStyleToPass=e,Oe.addComponent=t;function e(n,r){var a,s,l="";try{if(n&&r?.length&&(!((a=Object.keys(n))===null||a===void 0)&&a.length)&&(!((s=r?.filter(function(d){return Object.keys(n).includes(d.name)}))===null||s===void 0)&&s.length))for(var c=function(d){var v=r?.filter(function(h){return h.name===d&&h.defaultValue!==n[d]});v&&(l+="".concat(d,":").concat(n[d],";"))},u=0,o=Object.keys(n);u<o.length;u++){var p=o[u];c(p)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}function t(n){var r,a=((r=n?.repoName.split("/"))===null||r===void 0?void 0:r[1])||n?.repoName;if(!a)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var s=n?.iifePath||"main.iife.js";if(!document.getElementById(a+"-script"))try{var l=document.createElement("script");if(l.id=a+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(s),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var c=a.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(a.replace(c+"-",""),"/").concat(s)}document.head.appendChild(l)}catch(u){console.warn(u)}}var i=(function(){function n(r){if(this.lang="",!r?.dictionary)throw new Error("no dictionary provided");this.dictionary=r.dictionary,this.setLang(r?.lang)}return n.prototype.setLang=function(r){r||(r=n.getDefaultLang()),this.lang=r},n.prototype.translateWord=function(r,a){return n.getDictionaryWord(r,this.dictionary,a||this.lang)},n.prototype.translateDate=function(r,a,s){return n.formatDate(r,a,s||this.lang)},n.getDefaultLang=function(){var r,a,s,l="en";return navigator?.languages&&(!((s=(a=(r=navigator.languages[0])===null||r===void 0?void 0:r.split("-")[0])===null||a===void 0?void 0:a.toLowerCase())===null||s===void 0)&&s.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(r,a,s){var l;if(!r)throw new Error("no wordKey provided");if(!a)throw new Error("no dictionary provided");if(s&&(!((l=a[s])===null||l===void 0)&&l[r]))return a[s][r];var c="",u=n.getDefaultLang();if(!s||u!==s){var o=a?.[u];o?.[r]&&(c=o[r])}return c},n.formatDate=function(r,a,s){if(!r)throw new Error("no date provided");if(typeof r.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(s||n.getDefaultLang(),a);return l.format(r)},n})();return Oe.LanguageTranslator=i,Oe}var ei=ta();function ti(e){let t=1;const i=e.chapters.filter(n=>n).sort((n,r)=>n.index-r.index);for(const n of i){n.index=t,t++;let r=1;const a=n.paragraphs.filter(s=>s).sort((s,l)=>s.index-l.index);for(const s of a){s.index=r,r++;let l=1;if(s.list?.length){const c=s.list.filter(u=>u).sort((u,o)=>u.index-o.index);for(const u of c)u.index=l,l++;s.list=c}}n.paragraphs=a}return e.chapters=i,e}const L=[{key:"name",label:"Nome",nosort:!0},{key:"service",label:"Servizio",nosort:!0},{key:"porpose",label:"Scope",nosort:!0},{key:"details",label:"Tipologie e Durata",nosort:!0}];function N(e){return{_id:e.name,name:e.name,service:e.service,porpose:e.purpose,details:(e.storage==="persistent",""+e.durate)}}function ia(e){const t={id:e.id,title:"INFORMATIVA PRIVACY",int:{key:"it",flag:""},chapters:[{title:"Informazioni relative alla Privacy del sito",index:0,paragraphs:[{key:"i1",content:`In questa sezione sono contenute le informazioni relative alle modalità di gestione di ${e.site.name}, di
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==Fe&&console.warn("Failed to hydrate: ",s),t.recover===!1&&Hn(),jt(),Ui(i),ne(!1),cn(e,t)}finally{ne(n),D(r)}}const $t=new Map;function un(e,{target:t,anchor:i,props:n={},events:r,context:a,intro:s=!0,transformError:l}){jt();var c=void 0,u=kr(()=>{var o=i??t.appendChild(O());ar(o,{pending:()=>{}},v=>{yi({});var h=B;if(a&&(h.c=a),r&&(n.$$events=r),w&&Te(v,null),c=e(v,n)||{},w&&(y.nodes.end=k,k===null||k.nodeType!==Ze||k.data!==Pt))throw vt(),Fe;_i()},l);var p=new Set,d=v=>{for(var h=0;h<v.length;h++){var _=v[h];if(!p.has(_)){p.add(_);var f=qr(_);for(const $ of[t,document]){var m=$t.get($);m===void 0&&(m=new Map,$t.set($,m));var T=m.get(_);T===void 0?($.addEventListener(_,sn,{passive:f}),m.set(_,1)):m.set(_,T+1)}}}};return d(dt(Ir)),an.add(d),()=>{for(var v of p)for(const f of[t,document]){var h=$t.get(f),_=h.get(v);--_==0?(f.removeEventListener(v,sn),h.delete(v),h.size===0&&$t.delete(f)):h.set(v,_)}an.delete(d),o!==i&&o.parentNode?.removeChild(o)}});return Qt.set(c,u),c}let Qt=new WeakMap;function Rr(e,t){const i=Qt.get(e);return i?(Qt.delete(e),i(t)):Promise.resolve()}class Mr{anchor;#e=new Map;#i=new Map;#t=new Map;#r=new Set;#a=!0;constructor(t,i=!0){this.anchor=t,this.#a=i}#n=t=>{if(this.#e.has(t)){var i=this.#e.get(t),n=this.#i.get(i);if(n)Wt(n),this.#r.delete(i);else{var r=this.#t.get(i);r&&(this.#i.set(i,r.effect),this.#t.delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[a,s]of this.#e){if(this.#e.delete(a),a===t)break;const l=this.#t.get(s);l&&(R(l.effect),this.#t.delete(s))}for(const[a,s]of this.#i){if(a===i||this.#r.has(a))continue;const l=()=>{if(Array.from(this.#e.values()).includes(a)){var u=document.createDocumentFragment();Bt(s,u),u.append(O()),this.#t.set(a,{effect:s,fragment:u})}else R(s);this.#r.delete(a),this.#i.delete(a)};this.#a||!n?(this.#r.add(a),De(s,l,!1)):l()}}};#o=t=>{this.#e.delete(t);const i=Array.from(this.#e.values());for(const[n,r]of this.#t)i.includes(n)||(R(r.effect),this.#t.delete(n))};ensure(t,i){var n=z,r=ji();if(i&&!this.#i.has(t)&&!this.#t.has(t))if(r){var a=document.createDocumentFragment(),s=O();a.append(s),this.#t.set(t,{effect:Q(()=>i(s)),fragment:a})}else this.#i.set(t,Q(()=>i(this.anchor)));if(this.#e.set(n,t),r){for(const[l,c]of this.#i)l===t?n.unskip_effect(c):n.skip_effect(c);for(const[l,c]of this.#t)l===t?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else w&&(this.anchor=k),this.#n(n)}}function Je(e,t,i=!1){var n;w&&(n=k,mt());var r=new Mr(e),a=i?He:0;function s(l,c){if(w){var u=vi(n);if(l!==parseInt(u.substring(1))){var o=gt();D(o),r.anchor=o,ne(!1),r.ensure(l,c),ne(!0);return}}r.ensure(l,c)}Vt(()=>{var l=!1;t((c,u=0)=>{l=!0,s(u,c)}),l||s(-1,null)},a)}function Or(e,t,i){for(var n=[],r=t.length,a,s=t.length,l=0;l<r;l++){let p=t[l];De(p,()=>{if(a){if(a.pending.delete(p),a.done.add(p),a.pending.size===0){var d=e.outrogroups;Jt(e,dt(a.done)),d.delete(a),d.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=n.length===0&&i!==null;if(c){var u=i,o=u.parentNode;Ui(o),o.append(u),e.items.clear()}Jt(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Jt(e,t,i=!0){var n;if(e.pending.size>0){n=new Set;for(const s of e.pending.values())for(const l of s)n.add(e.items.get(l).e)}for(var r=0;r<t.length;r++){var a=t[r];if(n?.has(a)){a.f|=se;const s=document.createDocumentFragment();Bt(a,s)}else R(t[r],i)}}var dn;function Kt(e,t,i,n,r,a=null){var s=e,l=new Map,c=(t&ri)!==0;if(c){var u=e;s=w?D(Ne(u)):u.appendChild(O())}w&&mt();var o=null,p=ur(()=>{var $=i();return li($)?$:$==null?[]:dt($)}),d,v=new Map,h=!0;function _($){(T.effect.f&W)===0&&(T.pending.delete($),T.fallback=o,Fr(T,d,s,t,n),o!==null&&(d.length===0?(o.f&se)===0?Wt(o):(o.f^=se,ut(o,null,s)):De(o,()=>{o=null})))}function f($){T.pending.delete($)}var m=Vt(()=>{d=b(p);var $=d.length;let j=!1;if(w){var Ke=vi(s)===It;Ke!==($===0)&&(s=gt(),D(s),ne(!1),j=!0)}for(var ee=new Set,q=z,ue=ji(),de=0;de<$;de+=1){w&&k.nodeType===Ze&&k.data===Pt&&(s=k,j=!0,ne(!1));var te=d[de],fe=n(te,de),E=h?null:l.get(fe);E?(E.v&&Be(E.v,te),E.i&&Be(E.i,de),ue&&q.unskip_effect(E.e)):(E=Ur(l,h?s:dn??=O(),te,fe,de,r,t,i),h||(E.e.f|=se),l.set(fe,E)),ee.add(fe)}if($===0&&a&&!o&&(h?o=Q(()=>a(s)):(o=Q(()=>a(dn??=O())),o.f|=se)),$>ee.size&&On(),w&&$>0&&D(gt()),!h)if(v.set(q,ee),ue){for(const[Et,St]of l)ee.has(Et)||q.skip_effect(St.e);q.oncommit(_),q.ondiscard(f)}else _(q);j&&ne(!0),b(p)}),T={effect:m,items:l,pending:v,outrogroups:null,fallback:o};h=!1,w&&(s=k)}function ct(e){for(;e!==null&&(e.f&ie)===0;)e=e.next;return e}function Fr(e,t,i,n,r){var a=(n&bn)!==0,s=t.length,l=e.items,c=ct(e.effect.first),u,o=null,p,d=[],v=[],h,_,f,m;if(a)for(m=0;m<s;m+=1)h=t[m],_=r(h,m),f=l.get(_).e,(f.f&se)===0&&(f.nodes?.a?.measure(),(p??=new Set).add(f));for(m=0;m<s;m+=1){if(h=t[m],_=r(h,m),f=l.get(_).e,e.outrogroups!==null)for(const te of e.outrogroups)te.pending.delete(f),te.done.delete(f);if((f.f&G)!==0&&(Wt(f),a&&(f.nodes?.a?.unfix(),(p??=new Set).delete(f))),(f.f&se)!==0)if(f.f^=se,f===c)ut(f,null,i);else{var T=o?o.next:c;f===e.effect.last&&(e.effect.last=f.prev),f.prev&&(f.prev.next=f.next),f.next&&(f.next.prev=f.prev),Se(e,o,f),Se(e,f,T),ut(f,T,i),o=f,d=[],v=[],c=ct(o.next);continue}if(f!==c){if(u!==void 0&&u.has(f)){if(d.length<v.length){var $=v[0],j;o=$.prev;var Ke=d[0],ee=d[d.length-1];for(j=0;j<d.length;j+=1)ut(d[j],$,i);for(j=0;j<v.length;j+=1)u.delete(v[j]);Se(e,Ke.prev,ee.next),Se(e,o,Ke),Se(e,ee,$),c=$,o=ee,m-=1,d=[],v=[]}else u.delete(f),ut(f,c,i),Se(e,f.prev,f.next),Se(e,f,o===null?e.effect.first:o.next),Se(e,o,f),o=f;continue}for(d=[],v=[];c!==null&&c!==f;)(u??=new Set).add(c),v.push(c),c=ct(c.next);if(c===null)continue}(f.f&se)===0&&d.push(f),o=f,c=ct(f.next)}if(e.outrogroups!==null){for(const te of e.outrogroups)te.pending.size===0&&(Jt(e,dt(te.done)),e.outrogroups?.delete(te));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||u!==void 0){var q=[];if(u!==void 0)for(f of u)(f.f&G)===0&&q.push(f);for(;c!==null;)(c.f&G)===0&&c!==e.fallback&&q.push(c),c=ct(c.next);var ue=q.length;if(ue>0){var de=(n&ri)!==0&&s===0?i:null;if(a){for(m=0;m<ue;m+=1)q[m].nodes?.a?.measure();for(m=0;m<ue;m+=1)q[m].nodes?.a?.fix()}Or(e,q,de)}}a&&Ae(()=>{if(p!==void 0)for(f of p)f.nodes?.a?.apply()})}function Ur(e,t,i,n,r,a,s,l){var c=(s&kn)!==0?(s&zn)===0?qi(i,!1,!1):Le(i):null,u=(s&wn)!==0?Le(r):null;return{v:c,i:u,e:Q(()=>(a(t,c??i,u??r,l),()=>{e.delete(n)}))}}function ut(e,t,i){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end,a=t&&(t.f&se)===0?t.nodes.start:i;n!==null;){var s=le(n);if(a.before(n),n===r)return;n=s}}function Se(e,t,i){t===null?e.effect.first=i:t.next=i,i===null?e.effect.last=t:i.prev=t}function jr(e,t){wr(()=>{var i=e.getRootNode(),n=i.host?i:i.head??i.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const r=Gt("style");r.id=t.hash,r.textContent=t.code,n.appendChild(r)}})}function Gr(e,t,i){var n=""+e;return n}function Hr(e,t,i,n,r,a){var s=e.__className;if(w||s!==i||s===void 0){var l=Gr(i);(!w||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=i}return a}const Vr=Symbol("is custom element"),Yr=Symbol("is html"),Wr=Rn?"link":"LINK";function Br(e,t,i,n){var r=Qr(e);w&&(r[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Wr)||r[t]!==(r[t]=i)&&(t==="loading"&&(e[Dn]=i),i==null?e.removeAttribute(t):typeof i!="string"&&fn(e).includes(t)?e[t]=i:e.setAttribute(t,i))}function xt(e,t,i){var n=g,r=y;let a=w;w&&ne(!1),F(null),J(null);try{t!=="style"&&(Xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?fn(e).includes(t):i&&typeof i=="object")?e[t]=i:Br(e,t,i==null?i:String(i))}finally{F(n),J(r),a&&ne(!0)}}function Qr(e){return e.__attributes??={[Vr]:e.nodeName.includes("-"),[Yr]:e.namespaceURI===si}}var Xt=new Map;function fn(e){var t=e.getAttribute("is")||e.nodeName,i=Xt.get(t);if(i)return i;Xt.set(t,i=[]);for(var n,r=e,a=Element.prototype;a!==r;){n=Sn(r);for(var s in n)n[s].set&&i.push(s);r=ci(r)}return i}function Zt(e,t,i,n){var r=n,a=!0,s=()=>(a&&(a=!1,r=n),r),l;l=e[t],l===void 0&&n!==void 0&&(l=s());var c;c=()=>{var d=e[t];return d===void 0?s():(a=!0,d)};var u=!1,o=Ot(()=>(u=!1,c())),p=y;return(function(d,v){if(arguments.length>0){const h=v?b(o):d;return H(o,h),u=!0,r!==void 0&&(r=h),d}return xe&&u||(p.f&W)!==0?o.v:b(o)})}function Jr(e){return new Kr(e)}class Kr{#e;#i;constructor(t){var i=new Map,n=(a,s)=>{var l=qi(s,!1,!1);return i.set(a,l),l};const r=new Proxy({...t.props||{},$$events:{}},{get(a,s){return b(i.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===qn?!0:(b(i.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return H(i.get(s)??n(s,l),l),Reflect.set(a,s,l)}});this.#i=(t.hydrate?Dr:cn)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&_t(),this.#e=r.$$events;for(const a of Object.keys(this.#i))a==="$set"||a==="$destroy"||a==="$on"||ht(this,a,{get(){return this.#i[a]},set(s){this.#i[a]=s},enumerable:!0});this.#i.$set=a=>{Object.assign(r,a)},this.#i.$destroy=()=>{Rr(this.#i)}}$set(t){this.#i.$set(t)}$on(t,i){this.#e[t]=this.#e[t]||[];const n=(...r)=>i.call(this,...r);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(r=>r!==n)}}$destroy(){this.#i.$destroy()}}let hn;typeof HTMLElement=="function"&&(hn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,i){super(),this.$$ctor=e,this.$$s=t,i&&(this.$$shadowRoot=this.attachShadow(i))}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return r=>{const a=Gt("slot");n!=="default"&&(a.name=n),Z(r,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Xr(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const r=this.$$g_p(n.name);r in this.$$d||(this.$$d[r]=Tt(r,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Jr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_r(()=>{Vi(()=>{this.$$r=!0;for(const n of ft(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const r=Tt(n,this.$$d[n],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,r)}this.$$r=!1})});for(const n in this.$$l)for(const r of this.$$l[n]){const a=this.$$c.$on(n,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(e,t,i){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Tt(e,i,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ft(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Tt(e,t,i,n){const r=i[e]?.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!i[e])return t;if(n==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Xr(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}function Zr(e,t,i,n,r,a){let s=class extends hn{constructor(){super(e,i,r),this.$$p_d=t}static get observedAttributes(){return ft(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ft(t).forEach(l=>{ht(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){c=Tt(l,c,t),this.$$d[l]=c;var u=this.$$c;if(u){var o=je(u,l)?.get;o?u[l]=c:u.$set({[l]:c})}}})}),n.forEach(l=>{ht(s.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=s,s}const ea={version:"0.66.2"};var Oe={},pn;function ta(){if(pn)return Oe;pn=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.LanguageTranslator=void 0,Oe.getChildStyleToPass=e,Oe.addComponent=t;function e(n,r){var a,s,l="";try{if(n&&r?.length&&(!((a=Object.keys(n))===null||a===void 0)&&a.length)&&(!((s=r?.filter(function(d){return Object.keys(n).includes(d.name)}))===null||s===void 0)&&s.length))for(var c=function(d){var v=r?.filter(function(h){return h.name===d&&h.defaultValue!==n[d]});v&&(l+="".concat(d,":").concat(n[d],";"))},u=0,o=Object.keys(n);u<o.length;u++){var p=o[u];c(p)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}function t(n){var r,a=((r=n?.repoName.split("/"))===null||r===void 0?void 0:r[1])||n?.repoName;if(!a)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var s=n?.iifePath||"main.iife.js";if(!document.getElementById(a+"-script"))try{var l=document.createElement("script");if(l.id=a+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(s),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var c=a.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(a.replace(c+"-",""),"/").concat(s)}document.head.appendChild(l)}catch(u){console.warn(u)}}var i=(function(){function n(r){if(this.lang="",!r?.dictionary)throw new Error("no dictionary provided");this.dictionary=r.dictionary,this.setLang(r?.lang)}return n.prototype.setLang=function(r){r||(r=n.getDefaultLang()),this.lang=r},n.prototype.translateWord=function(r,a){return n.getDictionaryWord(r,this.dictionary,a||this.lang)},n.prototype.translateDate=function(r,a,s){return n.formatDate(r,a,s||this.lang)},n.getDefaultLang=function(){var r,a,s,l="en";return navigator?.languages&&(!((s=(a=(r=navigator.languages[0])===null||r===void 0?void 0:r.split("-")[0])===null||a===void 0?void 0:a.toLowerCase())===null||s===void 0)&&s.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(r,a,s){var l;if(!r)throw new Error("no wordKey provided");if(!a)throw new Error("no dictionary provided");if(s&&(!((l=a[s])===null||l===void 0)&&l[r]))return a[s][r];var c="",u=n.getDefaultLang();if(!s||u!==s){var o=a?.[u];o?.[r]&&(c=o[r])}return c},n.formatDate=function(r,a,s){if(!r)throw new Error("no date provided");if(typeof r.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(s||n.getDefaultLang(),a);return l.format(r)},n})();return Oe.LanguageTranslator=i,Oe}var ei=ta();function ti(e){let t=1;const i=e.chapters.filter(n=>n).sort((n,r)=>n.index-r.index);for(const n of i){n.index=t,t++;let r=1;const a=n.paragraphs.filter(s=>s).sort((s,l)=>s.index-l.index);for(const s of a){s.index=r,r++;let l=1;if(s.list?.length){const c=s.list.filter(u=>u).sort((u,o)=>u.index-o.index);for(const u of c)u.index=l,l++;s.list=c}}n.paragraphs=a}return e.chapters=i,e}const L=[{key:"name",label:"Nome",nosort:!0},{key:"service",label:"Servizio",nosort:!0},{key:"porpose",label:"Scope",nosort:!0},{key:"details",label:"Tipologie e Durata",nosort:!0}];function N(e){return{_id:e.name,name:e.name,service:e.service,porpose:e.purpose,details:(e.storage==="persistent",""+e.durate)}}function ia(e){const t={id:e.id,title:"INFORMATIVA PRIVACY",int:{key:"it",flag:""},chapters:[{title:"Informazioni relative alla Privacy del sito",index:0,paragraphs:[{key:"i1",content:`In questa sezione sono contenute le informazioni relative alle modalità di gestione di ${e.site.name}, di
|
|
3
3
|
proprietà di ${e.company.name}, in riferimento al trattamento dei dati degli utenti del sito stesso.`,index:0},{key:"i2",content:`La presente informativa ha valore anche ai fini dell'articolo 13 del Regolamento (UE) n. 2016/679, relativo alla protezione delle persone fisiche con
|
|
4
4
|
riguardo al trattamento dei dati personali nonché alla libera circolazione di tali dati, per i soggetti che interagiscono con ${e.site.name}`,index:1},{key:"i3",content:`L'informativa è resa solo per ${e.site.name} e non anche per altri siti web eventualmente consultati dall'utente tramite
|
|
5
5
|
link in esso contenuti.`,index:2},{key:"i4",content:`Scopo del presente documento è fornire indicazioni circa le modalità, i tempi e la natura delle informazioni che i titolari del trattamento devono
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-terms-doc-templates",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.2",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Renders legal-style documents from `data`: privacy templates with site, company, and admin fields, or cookie policies with a `cookies` list. Use `i18nlang` with registered languages for localized copy; emits `event` for integrations.",
|
|
6
6
|
"licenses": [
|