File size: 8,581 Bytes
aa3e783
1
2
function L(){}function Z(t,e){for(const n in e)t[n]=e[n];return t}function J(t){return t()}function I(){return Object.create(null)}function v(t){t.forEach(J)}function tt(t){return typeof t=="function"}function xt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let k;function wt(t,e){return k||(k=document.createElement("a")),k.href=e,t===k.href}function et(t){return Object.keys(t).length===0}function nt(t,...e){if(t==null)return L;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function vt(t,e,n){t.$$.on_destroy.push(nt(e,n))}function $t(t,e,n,i){if(t){const r=K(t,e,n,i);return t[0](r)}}function K(t,e,n,i){return t[1]&&i?Z(n.ctx.slice(),t[1](i(e))):n.ctx}function Et(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const o=[],c=Math.max(e.dirty.length,r.length);for(let u=0;u<c;u+=1)o[u]=e.dirty[u]|r[u];return o}return e.dirty|r}return e.dirty}function kt(t,e,n,i,r,o){if(r){const c=K(e,n,i,o);t.p(c,r)}}function Nt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function St(t,e,n){return t.set(n),e}let M=!1;function it(){M=!0}function rt(){M=!1}function ct(t,e,n,i){for(;t<e;){const r=t+(e-t>>1);n(r)<=i?t=r+1:e=r}return t}function lt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let s=0;s<e.length;s++){const f=e[s];f.claim_order!==void 0&&l.push(f)}e=l}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let r=0;for(let l=0;l<e.length;l++){const s=e[l].claim_order,f=(r>0&&e[n[r]].claim_order<=s?r+1:ct(1,r,_=>e[n[_]].claim_order,s))-1;i[l]=n[f]+1;const d=f+1;n[d]=l,r=Math.max(d,r)}const o=[],c=[];let u=e.length-1;for(let l=n[r]+1;l!=0;l=i[l-1]){for(o.push(e[l-1]);u>=l;u--)c.push(e[u]);u--}for(;u>=0;u--)c.push(e[u]);o.reverse(),c.sort((l,s)=>l.claim_order-s.claim_order);for(let l=0,s=0;l<c.length;l++){for(;s<o.length&&c[l].claim_order>=o[s].claim_order;)s++;const f=s<o.length?o[s]:null;t.insertBefore(c[l],f)}}function st(t,e){if(M){for(lt(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function At(t,e,n){M&&!n?st(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function ut(t){t.parentNode.removeChild(t)}function Mt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function ot(t){return document.createElement(t)}function at(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function O(t){return document.createTextNode(t)}function jt(){return O(" ")}function Ct(){return O("")}function Pt(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Tt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function qt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Bt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ft(t){return Array.from(t.childNodes)}function _t(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Q(t,e,n,i,r=!1){_t(t);const o=(()=>{for(let c=t.claim_info.last_index;c<t.length;c++){const u=t[c];if(e(u)){const l=n(u);return l===void 0?t.splice(c,1):t[c]=l,r||(t.claim_info.last_index=c),u}}for(let c=t.claim_info.last_index-1;c>=0;c--){const u=t[c];if(e(u)){const l=n(u);return l===void 0?t.splice(c,1):t[c]=l,r?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,u}}return i()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function R(t,e,n,i){return Q(t,r=>r.nodeName===e,r=>{const o=[];for(let c=0;c<r.attributes.length;c++){const u=r.attributes[c];n[u.name]||o.push(u.name)}o.forEach(c=>r.removeAttribute(c))},()=>i(e))}function Dt(t,e,n){return R(t,e,n,ot)}function Lt(t,e,n){return R(t,e,n,at)}function dt(t,e){return Q(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>O(e),!0)}function Ot(t){return dt(t," ")}function zt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ft(t,e){t.value=e==null?"":e}function Ht(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function ht(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,i,e),r}let w;function x(t){w=t}function z(){if(!w)throw new Error("Function called outside component initialization");return w}function It(t){z().$$.on_mount.push(t)}function Wt(t){z().$$.after_update.push(t)}function Gt(){const t=z();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const o=ht(e,n,{cancelable:i});return r.slice().forEach(c=>{c.call(t,o)}),!o.defaultPrevented}return!0}}function Jt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const b=[],W=[],S=[],G=[],U=Promise.resolve();let B=!1;function V(){B||(B=!0,U.then(X))}function Kt(){return V(),U}function D(t){S.push(t)}const q=new Set;let N=0;function X(){const t=w;do{for(;N<b.length;){const e=b[N];N++,x(e),mt(e.$$)}for(x(null),b.length=0,N=0;W.length;)W.pop()();for(let e=0;e<S.length;e+=1){const n=S[e];q.has(n)||(q.add(n),n())}S.length=0}while(b.length);for(;G.length;)G.pop()();B=!1,q.clear(),x(t)}function mt(t){if(t.fragment!==null){t.update(),v(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(D)}}const A=new Set;let g;function Qt(){g={r:0,c:[],p:g}}function Rt(){g.r||v(g.c),g=g.p}function Y(t,e){t&&t.i&&(A.delete(t),t.i(e))}function pt(t,e,n,i){if(t&&t.o){if(A.has(t))return;A.add(t),g.c.push(()=>{A.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Ut(t,e){pt(t,1,1,()=>{e.delete(t.key)})}function Vt(t,e,n,i,r,o,c,u,l,s,f,d){let _=t.length,m=o.length,h=_;const j={};for(;h--;)j[t[h].key]=h;const $=[],C=new Map,P=new Map;for(h=m;h--;){const a=d(r,o,h),p=n(a);let y=c.get(p);y?i&&y.p(a,e):(y=s(p,a),y.c()),C.set(p,$[h]=y),p in j&&P.set(p,Math.abs(h-j[p]))}const F=new Set,H=new Set;function T(a){Y(a,1),a.m(u,f),c.set(a.key,a),f=a.first,m--}for(;_&&m;){const a=$[m-1],p=t[_-1],y=a.key,E=p.key;a===p?(f=a.first,_--,m--):C.has(E)?!c.has(y)||F.has(y)?T(a):H.has(E)?_--:P.get(y)>P.get(E)?(H.add(y),T(a)):(F.add(E),_--):(l(p,c),_--)}for(;_--;){const a=t[_];C.has(a.key)||l(a,c)}for(;m;)T($[m-1]);return $}function Xt(t){t&&t.c()}function Yt(t,e){t&&t.l(e)}function yt(t,e,n,i){const{fragment:r,on_mount:o,on_destroy:c,after_update:u}=t.$$;r&&r.m(e,n),i||D(()=>{const l=o.map(J).filter(tt);c?c.push(...l):v(l),t.$$.on_mount=[]}),u.forEach(D)}function gt(t,e){const n=t.$$;n.fragment!==null&&(v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function bt(t,e){t.$$.dirty[0]===-1&&(b.push(t),V(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Zt(t,e,n,i,r,o,c,u=[-1]){const l=w;x(t);const s=t.$$={fragment:null,ctx:null,props:o,update:L,not_equal:r,bound:I(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:I(),dirty:u,skip_bound:!1,root:e.target||l.$$.root};c&&c(s.root);let f=!1;if(s.ctx=n?n(t,e.props||{},(d,_,...m)=>{const h=m.length?m[0]:_;return s.ctx&&r(s.ctx[d],s.ctx[d]=h)&&(!s.skip_bound&&s.bound[d]&&s.bound[d](h),f&&bt(t,d)),_}):[],s.update(),f=!0,v(s.before_update),s.fragment=i?i(s.ctx):!1,e.target){if(e.hydrate){it();const d=ft(e.target);s.fragment&&s.fragment.l(d),d.forEach(ut)}else s.fragment&&s.fragment.c();e.intro&&Y(t.$$.fragment),yt(t,e.target,e.anchor,e.customElement),rt(),X()}x(l)}class te{$destroy(){gt(this,1),this.$destroy=L}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!et(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{L as A,$t as B,kt as C,Nt as D,Et as E,st as F,vt as G,at as H,Lt as I,wt as J,St as K,W as L,Ft as M,Pt as N,qt as O,Tt as P,v as Q,Gt as R,te as S,Jt as T,Mt as U,Vt as V,Ut as W,jt as a,At as b,Ot as c,Rt as d,Ct as e,Y as f,Qt as g,ut as h,Zt as i,Wt as j,ot as k,Dt as l,ft as m,Bt as n,It as o,Ht as p,O as q,dt as r,xt as s,pt as t,zt as u,Xt as v,Yt as w,yt as x,gt as y,Kt as z};