lula2 0.9.1-nightly.8 → 0.9.2-nightly.0

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.
Files changed (29) hide show
  1. package/dist/_app/immutable/chunks/BVHnoumq.js +2 -0
  2. package/dist/_app/immutable/chunks/{DZ96D1WN.js → C0h_pRbt.js} +2 -2
  3. package/dist/_app/immutable/chunks/CMWllJtD.js +1 -0
  4. package/dist/_app/immutable/chunks/{DQq2RX99.js → CXlfyapv.js} +1 -1
  5. package/dist/_app/immutable/chunks/ClAy7rRd.js +1 -0
  6. package/dist/_app/immutable/chunks/{DbH5_T2A.js → Cnfh9taG.js} +1 -1
  7. package/dist/_app/immutable/chunks/CoZ7nipL.js +1 -0
  8. package/dist/_app/immutable/chunks/{LrT5hVIb.js → DOGsFeRA.js} +1 -1
  9. package/dist/_app/immutable/chunks/{-7DmAfz7.js → DRFf9tm2.js} +1 -1
  10. package/dist/_app/immutable/chunks/{BGf19awK.js → DfupqHy2.js} +37 -37
  11. package/dist/_app/immutable/chunks/{C1N7m5A8.js → k3mXGuiP.js} +1 -1
  12. package/dist/_app/immutable/entry/{app.ySkyelwQ.js → app.Bkr2469x.js} +2 -2
  13. package/dist/_app/immutable/entry/start.B61v0Y3F.js +1 -0
  14. package/dist/_app/immutable/nodes/{0.CIZ1Mbdx.js → 0.DNFQJQQp.js} +1 -1
  15. package/dist/_app/immutable/nodes/1.PuUf8izs.js +1 -0
  16. package/dist/_app/immutable/nodes/{2.Dr2YZjLM.js → 2.DVPKxcko.js} +1 -1
  17. package/dist/_app/immutable/nodes/{3.BjOPHkNf.js → 3.iuRBlc39.js} +1 -1
  18. package/dist/_app/immutable/nodes/{4.DZS0Oq36.js → 4.DWXAS_pg.js} +1 -1
  19. package/dist/_app/version.json +1 -1
  20. package/dist/cli/commands/crawl.js +115 -13
  21. package/dist/index.html +11 -11
  22. package/dist/index.js +114 -13
  23. package/package.json +2 -2
  24. package/dist/_app/immutable/chunks/00yL0Rbo.js +0 -1
  25. package/dist/_app/immutable/chunks/B89acguF.js +0 -2
  26. package/dist/_app/immutable/chunks/BtEocggt.js +0 -1
  27. package/dist/_app/immutable/chunks/DMZdfGjo.js +0 -1
  28. package/dist/_app/immutable/entry/start.BoDUeNUx.js +0 -1
  29. package/dist/_app/immutable/nodes/1.DZj5dH3b.js +0 -1
package/dist/index.js CHANGED
@@ -6061,17 +6061,108 @@ function getChangedBlocks(oldText, newText) {
6061
6061
  const changed = [];
6062
6062
  const oldLines = oldText.split("\n");
6063
6063
  const newLines = newText.split("\n");
6064
- for (const newBlock of newBlocks) {
6065
- const oldMatch = oldBlocks.find((b) => b.uuid === newBlock.uuid);
6066
- if (!oldMatch) continue;
6067
- const oldContent = extractBlockContent(oldLines, oldMatch.startLine, oldMatch.endLine);
6068
- const newContent = extractBlockContent(newLines, newBlock.startLine, newBlock.endLine);
6069
- if (oldContent !== newContent) {
6070
- changed.push(newBlock);
6064
+ const oldBlocksByUuid = /* @__PURE__ */ new Map();
6065
+ const newBlocksByUuid = /* @__PURE__ */ new Map();
6066
+ oldBlocks.forEach((block) => {
6067
+ if (!oldBlocksByUuid.has(block.uuid)) {
6068
+ oldBlocksByUuid.set(block.uuid, []);
6069
+ }
6070
+ oldBlocksByUuid.get(block.uuid).push(block);
6071
+ });
6072
+ newBlocks.forEach((block) => {
6073
+ if (!newBlocksByUuid.has(block.uuid)) {
6074
+ newBlocksByUuid.set(block.uuid, []);
6075
+ }
6076
+ newBlocksByUuid.get(block.uuid).push(block);
6077
+ });
6078
+ for (const [uuid, newUuidBlocks] of newBlocksByUuid) {
6079
+ const oldUuidBlocks = oldBlocksByUuid.get(uuid) || [];
6080
+ if (oldUuidBlocks.length === 0) continue;
6081
+ if (oldUuidBlocks.length !== newUuidBlocks.length) {
6082
+ const exactMatches = /* @__PURE__ */ new Set();
6083
+ const oldBlocksWithoutMatches = [];
6084
+ for (let oldIndex = 0; oldIndex < oldUuidBlocks.length; oldIndex++) {
6085
+ const oldBlock = oldUuidBlocks[oldIndex];
6086
+ const oldContent = extractBlockContent(oldLines, oldBlock.startLine, oldBlock.endLine);
6087
+ let foundMatch = false;
6088
+ for (let newIndex = 0; newIndex < newUuidBlocks.length; newIndex++) {
6089
+ if (exactMatches.has(newIndex)) continue;
6090
+ const newBlock = newUuidBlocks[newIndex];
6091
+ const newContent = extractBlockContent(newLines, newBlock.startLine, newBlock.endLine);
6092
+ if (oldContent === newContent) {
6093
+ exactMatches.add(newIndex);
6094
+ foundMatch = true;
6095
+ break;
6096
+ }
6097
+ }
6098
+ if (!foundMatch) {
6099
+ oldBlocksWithoutMatches.push(oldIndex);
6100
+ }
6101
+ }
6102
+ const usedNewBlocks = new Set(exactMatches);
6103
+ for (const oldIndex of oldBlocksWithoutMatches) {
6104
+ const oldBlock = oldUuidBlocks[oldIndex];
6105
+ const candidates = [];
6106
+ for (let newIndex = 0; newIndex < newUuidBlocks.length; newIndex++) {
6107
+ if (!usedNewBlocks.has(newIndex)) {
6108
+ candidates.push({ index: newIndex, block: newUuidBlocks[newIndex] });
6109
+ }
6110
+ }
6111
+ if (candidates.length > 0) {
6112
+ const closest = candidates.reduce((best, candidate) => {
6113
+ const bestDistance = Math.abs(oldBlock.startLine - best.block.startLine);
6114
+ const candidateDistance = Math.abs(oldBlock.startLine - candidate.block.startLine);
6115
+ return candidateDistance < bestDistance ? candidate : best;
6116
+ });
6117
+ changed.push(closest.block);
6118
+ usedNewBlocks.add(closest.index);
6119
+ }
6120
+ }
6121
+ continue;
6122
+ }
6123
+ const pairings = findOptimalPairings(oldUuidBlocks, newUuidBlocks, oldLines, newLines);
6124
+ for (const { oldBlock, newBlock } of pairings) {
6125
+ const oldContent = extractBlockContent(oldLines, oldBlock.startLine, oldBlock.endLine);
6126
+ const newContent = extractBlockContent(newLines, newBlock.startLine, newBlock.endLine);
6127
+ if (oldContent !== newContent) {
6128
+ changed.push(newBlock);
6129
+ }
6071
6130
  }
6072
6131
  }
6073
6132
  return changed;
6074
6133
  }
6134
+ function findOptimalPairings(oldBlocks, newBlocks, oldLines, newLines) {
6135
+ const pairings = [];
6136
+ const usedOldBlocks = /* @__PURE__ */ new Set();
6137
+ const usedNewBlocks = /* @__PURE__ */ new Set();
6138
+ const similarities = [];
6139
+ for (let oldIndex = 0; oldIndex < oldBlocks.length; oldIndex++) {
6140
+ for (let newIndex = 0; newIndex < newBlocks.length; newIndex++) {
6141
+ const oldBlock = oldBlocks[oldIndex];
6142
+ const newBlock = newBlocks[newIndex];
6143
+ const oldContent = extractBlockContent(oldLines, oldBlock.startLine, oldBlock.endLine);
6144
+ const newContent = extractBlockContent(newLines, newBlock.startLine, newBlock.endLine);
6145
+ const contentSimilarity = oldContent === newContent ? 1 : 0;
6146
+ const positionDistance = Math.abs(oldBlock.startLine - newBlock.startLine);
6147
+ const maxDistance = Math.max(oldBlocks.length, newBlocks.length) * 10;
6148
+ const positionSimilarity = 1 - Math.min(positionDistance / maxDistance, 1);
6149
+ const score = contentSimilarity * 0.8 + positionSimilarity * 0.2;
6150
+ similarities.push({ oldIndex, newIndex, score });
6151
+ }
6152
+ }
6153
+ similarities.sort((a, b) => b.score - a.score);
6154
+ for (const { oldIndex, newIndex } of similarities) {
6155
+ if (!usedOldBlocks.has(oldIndex) && !usedNewBlocks.has(newIndex)) {
6156
+ pairings.push({
6157
+ oldBlock: oldBlocks[oldIndex],
6158
+ newBlock: newBlocks[newIndex]
6159
+ });
6160
+ usedOldBlocks.add(oldIndex);
6161
+ usedNewBlocks.add(newIndex);
6162
+ }
6163
+ }
6164
+ return pairings;
6165
+ }
6075
6166
  function extractBlockContent(lines, startLine, endLine) {
6076
6167
  return lines.slice(startLine + 1, endLine - 1).join("\n");
6077
6168
  }
@@ -6241,13 +6332,23 @@ async function analyzeModifiedFiles(context) {
6241
6332
  ]);
6242
6333
  const changedBlocks = getChangedBlocks(oldText, newText);
6243
6334
  const removedBlocks = getRemovedBlocks(oldText, newText);
6244
- if (changedBlocks.length > 0) {
6335
+ const hasActualComplianceChanges = changedBlocks.length > 0 || removedBlocks.length > 0;
6336
+ if (hasActualComplianceChanges) {
6245
6337
  hasFindings = true;
6246
- changesContent += generateChangedBlocksContent(file.filename, changedBlocks, newText);
6247
- }
6248
- if (removedBlocks.length > 0) {
6249
- hasFindings = true;
6250
- changesContent += generateRemovedBlocksContent(file.filename, removedBlocks, oldText);
6338
+ if (changedBlocks.length > 0) {
6339
+ changesContent += generateChangedBlocksContent(file.filename, changedBlocks, newText);
6340
+ }
6341
+ if (removedBlocks.length > 0) {
6342
+ changesContent += generateRemovedBlocksContent(file.filename, removedBlocks, oldText);
6343
+ }
6344
+ } else {
6345
+ const oldBlocks = extractMapBlocks(oldText);
6346
+ const newBlocks = extractMapBlocks(newText);
6347
+ if (newBlocks.length > oldBlocks.length) {
6348
+ console.log(
6349
+ `Skipping ${file.filename}: only new Lula annotations added, no existing compliance content modified`
6350
+ );
6351
+ }
6251
6352
  }
6252
6353
  } catch (err) {
6253
6354
  console.error(`Error processing ${file.filename}: ${err}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lula2",
3
- "version": "0.9.1-nightly.8",
3
+ "version": "0.9.2-nightly.0",
4
4
  "description": "A tool for managing compliance as code in your GitHub repositories.",
5
5
  "bin": {
6
6
  "lula2": "./dist/lula2"
@@ -86,7 +86,7 @@
86
86
  "husky": "^9.1.7",
87
87
  "jsdom": "^27.0.0",
88
88
  "playwright": "^1.55.0",
89
- "prettier": "3.7.4",
89
+ "prettier": "3.8.0",
90
90
  "prettier-plugin-svelte": "^3.4.0",
91
91
  "semantic-release": "^25.0.1",
92
92
  "shellcheck": "^4.1.0",
@@ -1 +0,0 @@
1
- var ut=Array.isArray,Kt=Array.prototype.indexOf,jn=Array.from,qn=Object.defineProperty,he=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyDescriptors,Xt=Object.prototype,Zt=Array.prototype,ot=Object.getPrototypeOf,tt=Object.isExtensible;function Yn(e){return typeof e=="function"}const ae=()=>{};function Hn(e){return e()}function ct(e){for(var t=0;t<e.length;t++)e[t]()}function _t(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Bn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const g=2,Be=4,Pe=8,vt=1<<24,j=16,q=32,re=64,Ue=128,D=512,b=1024,x=2048,N=4096,C=8192,H=16384,Ve=32768,Te=65536,nt=1<<17,dt=1<<18,we=1<<19,ht=1<<20,Un=1<<25,Q=32768,je=1<<21,$e=1<<22,B=1<<23,Z=Symbol("$state"),Vn=Symbol("legacy props"),$n=Symbol(""),ie=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ge=3,pt=8;function Ke(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Wt(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Jt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qt(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function en(e){throw new Error("https://svelte.dev/e/effect_orphan")}function tn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kn(){throw new Error("https://svelte.dev/e/hydration_failed")}function zn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function nn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Zn=1,Wn=2,Jn=4,Qn=8,er=16,tr=1,nr=2,rr=4,sr=8,fr=16,ir=4,ar=1,lr=2,fn="[",an="[!",ln="]",ze={},m=Symbol(),ur="http://www.w3.org/1999/xhtml",or="@attach";function Xe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function cr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function _r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let V=!1;function vr(e){V=e}let S;function le(e){if(e===null)throw Xe(),ze;return S=e}function dr(){return le(G(S))}function hr(e){if(V){if(G(S)!==null)throw Xe(),ze;S=e}}function pr(e=1){if(V){for(var t=e,n=S;t--;)n=G(n);S=n}}function yr(e=!0){for(var t=0,n=S;;){if(n.nodeType===pt){var r=n.data;if(r===ln){if(t===0)return n;t-=1}else(r===fn||r===an)&&(t+=1)}var s=G(n);e&&n.remove(),n=s}}function wr(e){if(!e||e.nodeType!==pt)throw Xe(),ze;return e.data}function yt(e){return e===this.v}function wt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function bt(e){return!wt(e,this.v)}let be=!1;function br(){be=!0}let p=null;function Ae(e){p=e}function Er(e,t=!1,n){p={p,i:!1,c:null,e:null,s:e,x:null,l:be&&!t?{s:null,u:null,$:[]}:null}}function gr(e){var t=p,n=t.e;if(n!==null){t.e=null;for(var r of n)It(r)}return t.i=!0,p=t.p,{}}function Ee(){return!be||p!==null&&p.l===null}let z=[];function Et(){var e=z;z=[],ct(e)}function gt(e){if(z.length===0&&!pe){var t=z;queueMicrotask(()=>{t===z&&Et()})}z.push(e)}function un(){for(;z.length>0;)Et()}function on(e){var t=h;if(t===null)return v.f|=B,e;if((t.f&Ve)===0){if((t.f&Ue)===0)throw e;t.b.error(e)}else Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&Ue)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const me=new Set;let y=null,Me=null,k=null,O=[],Ce=null,qe=!1,pe=!1;class ee{committed=!1;current=new Map;previous=new Map;#r=new Set;#s=new Set;#e=0;#t=0;#a=null;#f=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#t>0}process(t){O=[],Me=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const r of t)this.#l(r,n);this.is_fork||this.#o(),this.is_deferred()?(this.#n(n.effects),this.#n(n.render_effects)):(Me=this,y=null,rt(n.render_effects),rt(n.effects),Me=null,this.#a?.resolve()),k=null}#l(t,n){t.f^=b;for(var r=t.first;r!==null;){var s=r.f,f=(s&(q|re))!==0,u=f&&(s&b)!==0,l=u||(s&C)!==0||this.skipped_effects.has(r);if((r.f&Ue)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!l&&r.fn!==null){f?r.f^=b:(s&Be)!==0?n.effects.push(r):_e(r)&&((r.f&j)!==0&&this.#f.add(r),oe(r));var a=r.first;if(a!==null){r=a;continue}}var i=r.parent;for(r=r.next;r===null&&i!==null;)i===n.effect&&(this.#n(n.effects),this.#n(n.render_effects),n=n.parent),r=i.next,i=i.parent}}#n(t){for(const n of t)(n.f&x)!==0?this.#f.add(n):(n.f&N)!==0&&this.#i.add(n),this.#u(n.deps),E(n,b)}#u(t){if(t!==null)for(const n of t)(n.f&g)===0||(n.f&Q)===0||(n.f^=Q,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&B)===0&&(this.current.set(t,t.v),k?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y===this&&(y=null,k=null)}flush(){if(this.activate(),O.length>0){if(mt(),y!==null&&y!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#o(){if(this.#t===0){for(const t of this.#r)t();this.#r.clear()}this.#e===0&&this.#c()}#c(){if(me.size>1){this.previous.clear();var t=k,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const f of me){if(f===this){n=!1;continue}const u=[];for(const[a,i]of this.current){if(f.current.has(a))if(n&&i!==f.current.get(a))f.current.set(a,i);else continue;u.push(a)}if(u.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var s=O;O=[];const a=new Set,i=new Map;for(const o of u)Tt(o,l,a,i);if(O.length>0){y=f,f.apply();for(const o of O)f.#l(o,r);f.deactivate()}O=s}}y=null,k=t}this.committed=!0,me.delete(this)}increment(t){this.#e+=1,t&&(this.#t+=1)}decrement(t){this.#e-=1,t&&(this.#t-=1),this.revive()}revive(){for(const t of this.#f)this.#i.delete(t),E(t,x),te(t);for(const t of this.#i)E(t,N),te(t);this.flush()}oncommit(t){this.#r.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#a??=_t()).promise}static ensure(){if(y===null){const t=y=new ee;me.add(y),pe||ee.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){gt(t)}apply(){}}function cn(e){var t=pe;pe=!0;try{for(var n;;){if(un(),O.length===0&&(y?.flush(),O.length===0))return Ce=null,n;mt()}}finally{pe=t}}function mt(){var e=W;qe=!0;var t=null;try{var n=0;for(Ne(!0);O.length>0;){var r=ee.ensure();if(n++>1e3){var s,f;_n()}r.process(O),U.clear()}}finally{qe=!1,Ne(e),Ce=null}}function _n(){try{tn()}catch(e){Se(e,Ce)}}let F=null;function rt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|C))===0&&_e(r)&&(F=new Set,oe(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?Mt(r):r.fn=null),F?.size>0)){U.clear();for(const s of F){if((s.f&(H|C))!==0)continue;const f=[s];let u=s.parent;for(;u!==null;)F.has(u)&&(F.delete(u),f.push(u)),u=u.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(H|C))===0&&oe(a)}}F.clear()}}F=null}}function Tt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&g)!==0?Tt(s,t,n,r):(f&($e|j))!==0&&(f&x)===0&&At(s,t,r)&&(E(s,x),te(s))}}function At(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&g)!==0&&At(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function te(e){for(var t=Ce=e;t.parent!==null;){t=t.parent;var n=t.f;if(qe&&t===h&&(n&j)!==0&&(n&dt)===0)return;if((n&(re|q))!==0){if((n&b)===0)return;t.f^=b}}O.push(t)}function vn(e,t,n,r){const s=Ee()?Ze:pn;if(n.length===0&&e.length===0){r(t.map(s));return}var f=y,u=h,l=dn();function a(){Promise.all(n.map(i=>hn(i))).then(i=>{l();try{r([...t.map(s),...i])}catch(o){(u.f&H)===0&&Se(o,u)}f?.deactivate(),xe()}).catch(i=>{Se(i,u)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{f?.deactivate(),xe()}}):a()}function dn(){var e=h,t=v,n=p,r=y;return function(f=!0){ue(e),$(t),Ae(n),f&&r?.activate()}}function xe(){ue(null),$(null),Ae(null)}function Ze(e){var t=g|x,n=v!==null&&(v.f&g)!==0?v:null;return h!==null&&(h.f|=we),{ctx:p,deps:null,effects:null,equals:yt,f:t,fn:e,reactions:null,rv:0,v:m,wv:0,parent:n??h,ac:null}}function hn(e,t){let n=h;n===null&&Wt();var r=n.b,s=void 0,f=Je(m),u=!v,l=new Map;return Sn(()=>{var a=_t();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{i===y&&i.committed&&i.deactivate(),xe()})}catch(c){a.reject(c),xe()}var i=y;if(u){var o=!r.is_pending();r.update_pending_count(1),i.increment(o),l.get(i)?.reject(ie),l.delete(i),l.set(i,a)}const _=(c,d=void 0)=>{if(i.activate(),d)d!==ie&&(f.f|=B,Re(f,d));else{(f.f&B)!==0&&(f.f^=B),Re(f,c);for(const[w,K]of l){if(l.delete(w),w===i)break;K.reject(ie)}}u&&(r.update_pending_count(-1),i.decrement(o))};a.promise.then(_,c=>_(null,c||"unknown"))}),Tn(()=>{for(const a of l.values())a.reject(ie)}),new Promise(a=>{function i(o){function _(){o===s?a(f):i(s)}o.then(_,_)}i(s)})}function mr(e){const t=Ze(e);return qt(t),t}function pn(e){const t=Ze(e);return t.equals=bt,t}function St(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ne(t[n])}}function yn(e){for(var t=e.parent;t!==null;){if((t.f&g)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function We(e){var t,n=h;ue(yn(e));try{e.f&=~Q,St(e),t=Ut(e)}finally{ue(n)}return t}function xt(e){var t=We(e);if(e.equals(t)||(y?.is_fork||(e.v=t),e.wv=Ht()),!ce)if(k!==null)(De()||y?.is_fork)&&k.set(e,t);else{var n=(e.f&D)===0?N:b;E(e,n)}}let Ye=new Set;const U=new Map;let Rt=!1;function Je(e,t){var n={f:0,v:e,reactions:null,equals:yt,rv:0,wv:0};return n}function Y(e,t){const n=Je(e);return qt(n),n}function Tr(e,t=!1,n=!0){const r=Je(e);return t||(r.equals=bt),be&&n&&p!==null&&p.l!==null&&(p.l.s??=[]).push(r),r}function Ar(e,t){return M(e,ve(()=>X(e))),t}function M(e,t,n=!1){v!==null&&(!P||(v.f&nt)!==0)&&Ee()&&(v.f&(g|j|$e|nt))!==0&&!L?.includes(e)&&sn();let r=n?de(t):t;return Re(e,r)}function Re(e,t){if(!e.equals(t)){var n=e.v;ce?U.set(e,t):U.set(e,n),e.v=t;var r=ee.ensure();r.capture(e,n),(e.f&g)!==0&&((e.f&x)!==0&&We(e),E(e,(e.f&D)!==0?b:N)),e.wv=Ht(),Ot(e,x),Ee()&&h!==null&&(h.f&b)!==0&&(h.f&(q|re))===0&&(R===null?Dn([e]):R.push(e)),!r.is_fork&&Ye.size>0&&!Rt&&wn()}return t}function wn(){Rt=!1;var e=W;Ne(!0);const t=Array.from(Ye);try{for(const n of t)(n.f&b)!==0&&E(n,N),_e(n)&&oe(n)}finally{Ne(e)}Ye.clear()}function Sr(e,t=1){var n=X(e),r=t===1?n++:n--;return M(e,n),r}function Le(e){M(e,e.v+1)}function Ot(e,t){var n=e.reactions;if(n!==null)for(var r=Ee(),s=n.length,f=0;f<s;f++){var u=n[f],l=u.f;if(!(!r&&u===h)){var a=(l&x)===0;if(a&&E(u,t),(l&g)!==0){var i=u;k?.delete(i),(l&Q)===0&&(l&D&&(u.f|=Q),Ot(i,N))}else a&&((l&j)!==0&&F!==null&&F.add(u),te(u))}}}function de(e){if(typeof e!="object"||e===null||Z in e)return e;const t=ot(e);if(t!==Xt&&t!==Zt)return e;var n=new Map,r=ut(e),s=Y(0),f=J,u=l=>{if(J===f)return l();var a=v,i=J;$(null),lt(f);var o=l();return $(a),lt(i),o};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&nn();var o=n.get(a);return o===void 0?o=u(()=>{var _=Y(i.value);return n.set(a,_),_}):M(o,i.value,!0),!0},deleteProperty(l,a){var i=n.get(a);if(i===void 0){if(a in l){const o=u(()=>Y(m));n.set(a,o),Le(s)}}else M(i,m),Le(s);return!0},get(l,a,i){if(a===Z)return e;var o=n.get(a),_=a in l;if(o===void 0&&(!_||he(l,a)?.writable)&&(o=u(()=>{var d=de(_?l[a]:m),w=Y(d);return w}),n.set(a,o)),o!==void 0){var c=X(o);return c===m?void 0:c}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var o=n.get(a);o&&(i.value=X(o))}else if(i===void 0){var _=n.get(a),c=_?.v;if(_!==void 0&&c!==m)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return i},has(l,a){if(a===Z)return!0;var i=n.get(a),o=i!==void 0&&i.v!==m||Reflect.has(l,a);if(i!==void 0||h!==null&&(!o||he(l,a)?.writable)){i===void 0&&(i=u(()=>{var c=o?de(l[a]):m,d=Y(c);return d}),n.set(a,i));var _=X(i);if(_===m)return!1}return o},set(l,a,i,o){var _=n.get(a),c=a in l;if(r&&a==="length")for(var d=i;d<_.v;d+=1){var w=n.get(d+"");w!==void 0?M(w,m):d in l&&(w=u(()=>Y(m)),n.set(d+"",w))}if(_===void 0)(!c||he(l,a)?.writable)&&(_=u(()=>Y(void 0)),M(_,de(i)),n.set(a,_));else{c=_.v!==m;var K=u(()=>de(i));M(_,K)}var ge=Reflect.getOwnPropertyDescriptor(l,a);if(ge?.set&&ge.set.call(o,i),!c){if(r&&typeof a=="string"){var et=n.get("length"),Fe=Number(a);Number.isInteger(Fe)&&Fe>=et.v&&M(et,Fe+1)}Le(s)}return!0},ownKeys(l){X(s);var a=Reflect.ownKeys(l).filter(_=>{var c=n.get(_);return c===void 0||c.v!==m});for(var[i,o]of n)o.v!==m&&!(i in l)&&a.push(i);return a},setPrototypeOf(){rn()}})}function st(e){try{if(e!==null&&typeof e=="object"&&Z in e)return e[Z]}catch{}return e}function xr(e,t){return Object.is(st(e),st(t))}var ft,bn,kt,Dt;function Rr(){if(ft===void 0){ft=window,bn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;kt=he(t,"firstChild").get,Dt=he(t,"nextSibling").get,tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tt(n)&&(n.__t=void 0)}}function Oe(e=""){return document.createTextNode(e)}function ke(e){return kt.call(e)}function G(e){return Dt.call(e)}function Or(e,t){if(!V)return ke(e);var n=ke(S);if(n===null)n=S.appendChild(Oe());else if(t&&n.nodeType!==Ge){var r=Oe();return n?.before(r),le(r),r}return le(n),n}function kr(e,t=!1){if(!V){var n=ke(e);return n instanceof Comment&&n.data===""?G(n):n}if(t&&S?.nodeType!==Ge){var r=Oe();return S?.before(r),le(r),r}return S}function Dr(e,t=1,n=!1){let r=V?S:e;for(var s;t--;)s=r,r=G(r);if(!V)return r;if(n&&r?.nodeType!==Ge){var f=Oe();return r===null?s?.after(f):r.before(f),le(f),f}return le(r),r}function En(e){e.textContent=""}function Nr(){return!1}function Ir(e,t){if(t){const n=document.body;e.autofocus=!0,gt(()=>{document.activeElement===n&&e.focus()})}}function Pr(e){V&&ke(e)!==null&&En(e)}let it=!1;function gn(){it||(it=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Qe(e){var t=v,n=h;$(null),ue(null);try{return e()}finally{$(t),ue(n)}}function Cr(e,t,n,r=n){e.addEventListener(t,()=>Qe(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),gn()}function Nt(e){h===null&&(v===null&&en(),Qt()),ce&&Jt()}function mn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function I(e,t,n){var r=h;r!==null&&(r.f&C)!==0&&(e|=C);var s={ctx:p,deps:null,nodes:null,f:e|x|D,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{oe(s),s.f|=Ve}catch(l){throw ne(s),l}else t!==null&&te(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&we)===0&&(f=f.first,(e&j)!==0&&(e&Te)!==0&&f!==null&&(f.f|=Te)),f!==null&&(f.parent=r,r!==null&&mn(f,r),v!==null&&(v.f&g)!==0&&(e&re)===0)){var u=v;(u.effects??=[]).push(f)}return s}function De(){return v!==null&&!P}function Tn(e){const t=I(Pe,null,!1);return E(t,b),t.teardown=e,t}function An(e){Nt();var t=h.f,n=!v&&(t&q)!==0&&(t&Ve)===0;if(n){var r=p;(r.e??=[]).push(e)}else return It(e)}function It(e){return I(Be|ht,e,!1)}function Fr(e){return Nt(),I(Pe|ht,e,!0)}function Mr(e){ee.ensure();const t=I(re|we,e,!0);return(n={})=>new Promise(r=>{n.outro?On(t,()=>{ne(t),r(void 0)}):(ne(t),r(void 0))})}function Lr(e){return I(Be,e,!1)}function jr(e,t){var n=p,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Pt(()=>{e(),!r.ran&&(r.ran=!0,ve(t))})}function qr(){var e=p;Pt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&b)!==0&&E(n,N),_e(n)&&oe(n),t.ran=!1}})}function Sn(e){return I($e|we,e,!0)}function Pt(e,t=0){return I(Pe|t,e,!0)}function Yr(e,t=[],n=[],r=[]){vn(r,t,n,s=>{I(Pe,()=>e(...s.map(X)),!0)})}function Hr(e,t=0){var n=I(j|t,e,!0);return n}function Br(e,t=0){var n=I(vt|t,e,!0);return n}function Ur(e){return I(q|we,e,!0)}function Ct(e){var t=e.teardown;if(t!==null){const n=ce,r=v;at(!0),$(null);try{t.call(null)}finally{at(n),$(r)}}}function Ft(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Qe(()=>{s.abort(ie)});var r=n.next;(n.f&re)!==0?n.parent=null:ne(n,t),n=r}}function xn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&q)===0&&ne(t),t=n}}function ne(e,t=!0){var n=!1;(t||(e.f&dt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Rn(e.nodes.start,e.nodes.end),n=!0),Ft(e,t&&!n),Ie(e,0),E(e,H);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();Ct(e);var s=e.parent;s!==null&&s.first!==null&&Mt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Rn(e,t){for(;e!==null;){var n=e===t?null:G(e);e.remove(),e=n}}function Mt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function On(e,t,n=!0){var r=[];Lt(e,r,!0);var s=()=>{n&&ne(e),t&&t()},f=r.length;if(f>0){var u=()=>--f||s();for(var l of r)l.out(u)}else s()}function Lt(e,t,n){if((e.f&C)===0){e.f^=C;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var f=s.next,u=(s.f&Te)!==0||(s.f&q)!==0&&(e.f&j)!==0;Lt(s,t,u?n:!1),s=f}}}function Vr(e){jt(e,!0)}function jt(e,t){if((e.f&C)!==0){e.f^=C,(e.f&b)===0&&(E(e,x),te(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Te)!==0||(n.f&q)!==0;jt(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const u of f)(u.is_global||t)&&u.in()}}function $r(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:G(n);t.append(n),n=s}}let fe=null;function kn(e){var t=fe;try{if(fe=new Set,ve(e),t!==null)for(var n of fe)t.add(n);return fe}finally{fe=t}}function Gr(e){for(var t of kn(e))Re(t,t.v)}let W=!1;function Ne(e){W=e}let ce=!1;function at(e){ce=e}let v=null,P=!1;function $(e){v=e}let h=null;function ue(e){h=e}let L=null;function qt(e){v!==null&&(L===null?L=[e]:L.push(e))}let T=null,A=0,R=null;function Dn(e){R=e}let Yt=1,ye=0,J=ye;function lt(e){J=e}function Ht(){return++Yt}function _e(e){var t=e.f;if((t&x)!==0)return!0;if(t&g&&(e.f&=~Q),(t&N)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var f=n[s];if(_e(f)&&xt(f),f.wv>e.wv)return!0}(t&D)!==0&&k===null&&E(e,b)}return!1}function Bt(e,t,n=!0){var r=e.reactions;if(r!==null&&!L?.includes(e))for(var s=0;s<r.length;s++){var f=r[s];(f.f&g)!==0?Bt(f,t,!1):t===f&&(n?E(f,x):(f.f&b)!==0&&E(f,N),te(f))}}function Ut(e){var t=T,n=A,r=R,s=v,f=L,u=p,l=P,a=J,i=e.f;T=null,A=0,R=null,v=(i&(q|re))===0?e:null,L=null,Ae(e.ctx),P=!1,J=++ye,e.ac!==null&&(Qe(()=>{e.ac.abort(ie)}),e.ac=null);try{e.f|=je;var o=e.fn,_=o(),c=e.deps;if(T!==null){var d;if(Ie(e,A),c!==null&&A>0)for(c.length=A+T.length,d=0;d<T.length;d++)c[A+d]=T[d];else e.deps=c=T;if(De()&&(e.f&D)!==0)for(d=A;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&A<c.length&&(Ie(e,A),c.length=A);if(Ee()&&R!==null&&!P&&c!==null&&(e.f&(g|N|x))===0)for(d=0;d<R.length;d++)Bt(R[d],e);return s!==null&&s!==e&&(ye++,R!==null&&(r===null?r=R:r.push(...R))),(e.f&B)!==0&&(e.f^=B),_}catch(w){return on(w)}finally{e.f^=je,T=t,A=n,R=r,v=s,L=f,Ae(u),P=l,J=a}}function Nn(e,t){let n=t.reactions;if(n!==null){var r=Kt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&g)!==0&&(T===null||!T.includes(t))&&(E(t,N),(t.f&D)!==0&&(t.f^=D,t.f&=~Q),St(t),Ie(t,0))}function Ie(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Nn(e,n[r])}function oe(e){var t=e.f;if((t&H)===0){E(e,b);var n=h,r=W;h=e,W=!0;try{(t&(j|vt))!==0?xn(e):Ft(e),Ct(e);var s=Ut(e);e.teardown=typeof s=="function"?s:null,e.wv=Yt;var f}finally{W=r,h=n}}}async function Kr(){await Promise.resolve(),cn()}function zr(){return ee.ensure().settled()}function X(e){var t=e.f,n=(t&g)!==0;if(fe?.add(e),v!==null&&!P){var r=h!==null&&(h.f&H)!==0;if(!r&&!L?.includes(e)){var s=v.deps;if((v.f&je)!==0)e.rv<ye&&(e.rv=ye,T===null&&s!==null&&s[A]===e?A++:T===null?T=[e]:T.includes(e)||T.push(e));else{(v.deps??=[]).push(e);var f=e.reactions;f===null?e.reactions=[v]:f.includes(v)||f.push(v)}}}if(ce){if(U.has(e))return U.get(e);if(n){var u=e,l=u.v;return((u.f&b)===0&&u.reactions!==null||$t(u))&&(l=We(u)),U.set(u,l),l}}else n&&(!k?.has(e)||y?.is_fork&&!De())&&(u=e,_e(u)&&xt(u),W&&De()&&(u.f&D)===0&&Vt(u));if(k?.has(e))return k.get(e);if((e.f&B)!==0)throw e.v;return e.v}function Vt(e){if(e.deps!==null){e.f^=D;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&g)!==0&&(t.f&D)===0&&Vt(t)}}function $t(e){if(e.v===m)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(U.has(t)||(t.f&g)!==0&&$t(t))return!0;return!1}function ve(e){var t=P;try{return P=!0,e()}finally{P=t}}const In=-7169;function E(e,t){e.f=e.f&In|t}function Xr(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Z in e)He(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Z in n&&He(n)}}}function He(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{He(e[r],t)}catch{}const n=ot(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=zt(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function Gt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),ae;const r=ve(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const se=[];function Pn(e,t){return{subscribe:Cn(e,t).subscribe}}function Cn(e,t=ae){let n=null;const r=new Set;function s(l){if(wt(e,l)&&(e=l,n)){const a=!se.length;for(const i of r)i[1](),se.push(i,e);if(a){for(let i=0;i<se.length;i+=2)se[i][0](se[i+1]);se.length=0}}}function f(l){s(l(e))}function u(l,a=ae){const i=[l,a];return r.add(i),r.size===1&&(n=t(s,f)||ae),l(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:u}}function Zr(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const f=t.length<2;return Pn(n,(u,l)=>{let a=!1;const i=[];let o=0,_=ae;const c=()=>{if(o)return;_();const w=t(r?i[0]:i,u,l);f?u(w):_=typeof w=="function"?w:ae},d=s.map((w,K)=>Gt(w,ge=>{i[K]=ge,o&=~(1<<K),a&&c()},()=>{o|=1<<K}));return a=!0,c(),function(){ct(d),_(),a=!1}})}function Wr(e){let t;return Gt(e,n=>t=n)(),t}function Fn(e){p===null&&Ke(),be&&p.l!==null?Ln(p).m.push(e):An(()=>{const t=ve(e);if(typeof t=="function")return t})}function Jr(e){p===null&&Ke(),Fn(()=>()=>ve(e))}function Mn(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Qr(){const e=p;return e===null&&Ke(),(t,n,r)=>{const s=e.s.$$events?.[t];if(s){const f=ut(s)?s.slice():[s],u=Mn(t,n,r);for(const l of f)l.call(e.x,u);return!u.defaultPrevented}return!0}}function Ln(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{h as $,br as A,y as B,Vr as C,ne as D,Te as E,On as F,Oe as G,Ur as H,S as I,$r as J,Nr as K,wr as L,an as M,yr as N,le as O,vr as P,Tn as Q,qn as R,Z as S,ae as T,Tr as U,Gt as V,Wr as W,he as X,zn as Y,rr as Z,de as _,gr as a,xr as a$,H as a0,pn as a1,sr as a2,be as a3,nr as a4,tr as a5,fr as a6,ce as a7,Vn as a8,Je as a9,bn as aA,ar as aB,lr as aC,Ve as aD,Ge as aE,Rr as aF,fn as aG,G as aH,ze as aI,Kn as aJ,En as aK,jn as aL,Mr as aM,ln as aN,Xe as aO,ut as aP,Wn as aQ,Zn as aR,er as aS,Un as aT,Jn as aU,C as aV,Qn as aW,Br as aX,Cr as aY,Me as aZ,cr as a_,Sr as aa,ue as ab,cn as ac,Kr as ad,mr as ae,jr as af,qr as ag,Qr as ah,Gr as ai,Bn as aj,De as ak,Le as al,pt as am,ee as an,$ as ao,Ae as ap,on as aq,v as ar,Re as as,Se as at,Xn as au,we as av,Ue as aw,_r as ax,Qe as ay,ke as az,M as b,vn as b0,or as b1,Ir as b2,m as b3,gn as b4,ur as b5,ot as b6,$n as b7,zt as b8,Cn as b9,j as ba,ir as bb,Yn as bc,wt as bd,ft as be,Jr as bf,Rn as bg,Pr as bh,Zr as bi,Ar as bj,zr as bk,Or as c,Y as d,Lr as e,kr as f,X as g,Pt as h,ve as i,V as j,dr as k,Hr as l,p as m,pr as n,Fn as o,Er as p,gt as q,hr as r,Dr as s,Yr as t,An as u,Fr as v,ct as w,Hn as x,Xr as y,Ze as z};
@@ -1,2 +0,0 @@
1
- import{ak as X,g as Y,a9 as G,h as Z,i as ee,al as H,q as V,I as f,j as h,$ as v,l as te,k as U,am as B,M as re,H as p,an as A,F as L,G as w,ab as O,ao as E,ap as W,aq as ne,ar as F,m as z,J as se,as as ae,D as M,O as N,n as ie,N as oe,at as $,au as ue,E as le,av as fe,aw as ce,ax as he,Q as de,ay as _e,R as pe,az as k,aA as ve,aB as ge,aC as me,aD as ye,aE as Ee,aF as I,aG as be,aH as Te,aI as C,P as S,aJ as we,aK as Ne,aL as ke,aM as Re,p as Ae,aN as Se,aO as Oe,a as De}from"./00yL0Rbo.js";function Le(t){let e=0,r=G(0),a;return()=>{X()&&(Y(r),Z(()=>(e===0&&(a=ee(()=>t(()=>H(r)))),e+=1,()=>{V(()=>{e-=1,e===0&&(a?.(),a=void 0,H(r))})})))}}var Me=le|fe|ce;function Fe(t,e,r){new Ie(t,e,r)}class Ie{parent;#r=!1;#t;#v=h?f:null;#s;#c;#a;#n=null;#e=null;#i=null;#o=null;#u=null;#h=0;#l=0;#d=!1;#f=null;#y=Le(()=>(this.#f=G(this.#h),()=>{this.#f=null}));constructor(e,r,a){this.#t=e,this.#s=r,this.#c=a,this.parent=v.b,this.#r=!!this.#s.pending,this.#a=te(()=>{if(v.b=this,h){const n=this.#v;U(),n.nodeType===B&&n.data===re?this.#b():this.#E()}else{var s=this.#g();try{this.#n=p(()=>a(s))}catch(n){this.error(n)}this.#l>0?this.#p():this.#r=!1}return()=>{this.#u?.remove()}},Me),h&&(this.#t=f)}#E(){try{this.#n=p(()=>this.#c(this.#t))}catch(e){this.error(e)}this.#r=!1}#b(){const e=this.#s.pending;e&&(this.#e=p(()=>e(this.#t)),A.enqueue(()=>{var r=this.#g();this.#n=this.#_(()=>(A.ensure(),p(()=>this.#c(r)))),this.#l>0?this.#p():(L(this.#e,()=>{this.#e=null}),this.#r=!1)}))}#g(){var e=this.#t;return this.#r&&(this.#u=w(),this.#t.before(this.#u),e=this.#u),e}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#_(e){var r=v,a=F,s=z;O(this.#a),E(this.#a),W(this.#a.ctx);try{return e()}catch(n){return ne(n),null}finally{O(r),E(a),W(s)}}#p(){const e=this.#s.pending;this.#n!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),se(this.#n,this.#o)),this.#e===null&&(this.#e=p(()=>e(this.#t)))}#m(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e);return}this.#l+=e,this.#l===0&&(this.#r=!1,this.#e&&L(this.#e,()=>{this.#e=null}),this.#o&&(this.#t.before(this.#o),this.#o=null))}update_pending_count(e){this.#m(e),this.#h+=e,this.#f&&ae(this.#f,this.#h)}get_effect_pending(){return this.#y(),Y(this.#f)}error(e){var r=this.#s.onerror;let a=this.#s.failed;if(this.#d||!r&&!a)throw e;this.#n&&(M(this.#n),this.#n=null),this.#e&&(M(this.#e),this.#e=null),this.#i&&(M(this.#i),this.#i=null),h&&(N(this.#v),ie(),N(oe()));var s=!1,n=!1;const i=()=>{if(s){he();return}s=!0,n&&ue(),A.ensure(),this.#h=0,this.#i!==null&&L(this.#i,()=>{this.#i=null}),this.#r=this.has_pending_snippet(),this.#n=this.#_(()=>(this.#d=!1,p(()=>this.#c(this.#t)))),this.#l>0?this.#p():this.#r=!1};var c=F;try{E(null),n=!0,r?.(e,i),n=!1}catch(o){$(o,this.#a&&this.#a.parent)}finally{E(c)}a&&V(()=>{this.#i=this.#_(()=>{A.ensure(),this.#d=!0;try{return p(()=>{a(this.#t,()=>e,()=>i)})}catch(o){return $(o,this.#a.parent),null}finally{this.#d=!1}})})}}function qe(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Ce=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ye(t){return Ce.includes(t)}const Pe={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ge(t){return t=t.toLowerCase(),Pe[t]??t}const xe=["touchstart","touchmove"];function Ve(t){return xe.includes(t)}const J=new Set,P=new Set;function Be(t,e,r,a={}){function s(n){if(a.capture||T.call(e,n),!n.cancelBubble)return _e(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?V(()=>{e.addEventListener(t,s,a)}):e.addEventListener(t,s,a),s}function Ue(t,e,r,a,s){var n={capture:a,passive:s},i=Be(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&de(()=>{e.removeEventListener(t,i,n)})}function ze(t){for(var e=0;e<t.length;e++)J.add(t[e]);for(var r of P)r(t)}let j=null;function T(t){var e=this,r=e.ownerDocument,a=t.type,s=t.composedPath?.()||[],n=s[0]||t.target;j=t;var i=0,c=j===t&&t.__root;if(c){var o=s.indexOf(c);if(o!==-1&&(e===document||e===window)){t.__root=e;return}var g=s.indexOf(e);if(g===-1)return;o<=g&&(i=o)}if(n=s[i]||t.target,n!==e){pe(t,"currentTarget",{configurable:!0,get(){return n||r}});var D=F,_=v;E(null),O(null);try{for(var u,l=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var b=n["__"+a];b!=null&&(!n.disabled||t.target===n)&&b.call(n,t)}catch(R){u?l.push(R):u=R}if(t.cancelBubble||m===e||m===null)break;n=m}if(u){for(let R of l)queueMicrotask(()=>{throw R});throw u}}finally{t.__root=e,delete t.currentTarget,E(D),O(_)}}}function K(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function d(t,e){var r=v;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Je(t,e){var r=(e&ge)!==0,a=(e&me)!==0,s,n=!t.startsWith("<!>");return()=>{if(h)return d(f,null),f;s===void 0&&(s=K(n?t:"<!>"+t),r||(s=k(s)));var i=a||ve?document.importNode(s,!0):s.cloneNode(!0);if(r){var c=k(i),o=i.lastChild;d(c,o)}else d(i,i);return i}}function He(t,e,r="svg"){var a=!t.startsWith("<!>"),s=`<${r}>${a?t:"<!>"+t}</${r}>`,n;return()=>{if(h)return d(f,null),f;if(!n){var i=K(s),c=k(i);n=k(c)}var o=n.cloneNode(!0);return d(o,o),o}}function Ke(t,e){return He(t,e,"svg")}function Qe(t=""){if(!h){var e=w(t+"");return d(e,e),e}var r=f;return r.nodeType!==Ee&&(r.before(r=w()),N(r)),d(r,r),r}function Xe(){if(h)return d(f,null),f;var t=document.createDocumentFragment(),e=document.createComment(""),r=w();return t.append(e,r),d(e,r),t}function Ze(t,e){if(h){var r=v;((r.f&ye)===0||r.nodes.end===null)&&(r.nodes.end=f),U();return}t!==null&&t.before(e)}let q=!0;function et(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function We(t,e){return Q(t,e)}function tt(t,e){I(),e.intro=e.intro??!1;const r=e.target,a=h,s=f;try{for(var n=k(r);n&&(n.nodeType!==B||n.data!==be);)n=Te(n);if(!n)throw C;S(!0),N(n);const i=Q(t,{...e,anchor:n});return S(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(c=>c.startsWith("https://svelte.dev/e/")))throw i;return i!==C&&console.warn("Failed to hydrate: ",i),e.recover===!1&&we(),I(),Ne(r),S(!1),We(t,e)}finally{S(a),N(s)}}const y=new Map;function Q(t,{target:e,anchor:r,props:a={},events:s,context:n,intro:i=!0}){I();var c=new Set,o=_=>{for(var u=0;u<_.length;u++){var l=_[u];if(!c.has(l)){c.add(l);var m=Ve(l);e.addEventListener(l,T,{passive:m});var b=y.get(l);b===void 0?(document.addEventListener(l,T,{passive:m}),y.set(l,1)):y.set(l,b+1)}}};o(ke(J)),P.add(o);var g=void 0,D=Re(()=>{var _=r??e.appendChild(w());return Fe(_,{pending:()=>{}},u=>{if(n){Ae({});var l=z;l.c=n}if(s&&(a.$$events=s),h&&d(u,null),q=i,g=t(u,a)||{},q=!0,h&&(v.nodes.end=f,f===null||f.nodeType!==B||f.data!==Se))throw Oe(),C;n&&De()}),()=>{for(var u of c){e.removeEventListener(u,T);var l=y.get(u);--l===0?(document.removeEventListener(u,T),y.delete(u)):y.set(u,l)}P.delete(o),_!==r&&_.parentNode?.removeChild(_)}});return x.set(g,D),g}let x=new WeakMap;function rt(t,e){const r=x.get(t);return r?(x.delete(t),r(e)):Promise.resolve()}const $e="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add($e);export{Ze as a,Ke as b,Xe as c,Be as d,Ue as e,Je as f,ze as g,tt as h,qe as i,Ye as j,q as k,d as l,We as m,Ge as n,K as o,et as s,Qe as t,rt as u};
@@ -1 +0,0 @@
1
- import{j as s,k as c,l as m,E as i}from"./00yL0Rbo.js";import{B as p}from"./DbH5_T2A.js";function l(n,r,o){s&&c();var e=new p(n);m(()=>{var a=r()??null;e.ensure(a,a&&(t=>o(t,a)))},i)}export{l as c};
@@ -1 +0,0 @@
1
- import{b9 as ke,o as Ne,d as A,g as T,b as I,ad as Z,bk as ht}from"./00yL0Rbo.js";class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function pt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function gt(e){return e.split("%25").map(decodeURI).join("%25")}function _t(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function he({href:e}){return e.split("#")[0]}function mt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function wt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const vt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&M.delete(xe(e)),vt(e,t));const M=new Map;function yt(e,t){const n=xe(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...s}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&M.set(n,{body:r,init:s,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=wt(r)),Promise.resolve(new Response(r,s))}return window.fetch(e,t)}function bt(e,t,n){if(M.size>0){const a=xe(e,n),r=M.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);M.delete(a)}}return window.fetch(t,n)}function xe(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${mt(...r)}"]`}return a}const kt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Et(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Rt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return pe(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const f=kt.exec(c),[,h,w,u,g]=f;return t.push({name:u,matcher:g,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return pe(c)}).join("")}).join("")}/?$`),params:t}}function St(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Rt(e){return e.slice(1).split("/").filter(St)}function xt(e,t,n){const a={},r=e.slice(1),s=r.filter(i=>i!==void 0);let o=0;for(let i=0;i<t.length;i+=1){const c=t[i];let l=r[i-o];if(c.chained&&c.rest&&o&&(l=r.slice(i-o,i+1).filter(f=>f).join("/"),o=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[i+1],h=r[i+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===s.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Lt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([i,[c,l,f]])=>{const{pattern:h,params:w}=Et(i),u={id:i,exec:g=>{const m=h.exec(g);if(m)return xt(m,w,a)},errors:[1,...f||[]].map(g=>e[g]),layouts:[0,...l||[]].map(o),leaf:s(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function s(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function o(i){return i===void 0?i:[r.has(i),e[i]]}}function Fe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const x=globalThis.__sveltekit_2uz6ja?.base??"",Ut=globalThis.__sveltekit_2uz6ja?.assets??x??"",At="1768437207916",Ge="sveltekit:snapshot",We="sveltekit:scroll",Ye="sveltekit:states",Tt="sveltekit:pageurl",z="sveltekit:history",G="sveltekit:navigation",$={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ce=location.origin;function Le(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function le(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const qe={...$,"":$.hover};function He(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Je(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=He(e)}}function me(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";a.hash=`#${i}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,s=!a||!!r||ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===ce&&e.hasAttribute("download");return{url:a,external:s,target:r,download:o}}function ee(e){let t=null,n=null,a=null,r=null,s=null,o=null,i=e;for(;i&&i!==document.documentElement;)a===null&&(a=V(i,"preload-code")),r===null&&(r=V(i,"preload-data")),t===null&&(t=V(i,"keepfocus")),n===null&&(n=V(i,"noscroll")),s===null&&(s=V(i,"reload")),o===null&&(o=V(i,"replacestate")),i=He(i);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:qe[a??"off"],preload_data:qe[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(o)}}function Ve(e){const t=ke(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function s(o){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&o(i=c)})}return{notify:a,set:r,subscribe:s}}const Xe={v:()=>{}};function It(){const{set:e,subscribe:t}=ke(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==At;return o&&(e(!0),Xe.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function ue(e,t,n){return e.origin!==ce||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function an(e){}const Qe=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Qe];const Ot=new Set([...Qe]);[...Ot];function Pt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof Re?e.status:500}function jt(e){return e instanceof Re?e.text:"Internal Error"}let k,W,ge;const Ct=Ne.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ne.toString());Ct?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},W={current:null},ge={current:!1}):(k=new class{#e=A({});get data(){return T(this.#e)}set data(t){I(this.#e,t)}#t=A(null);get form(){return T(this.#t)}set form(t){I(this.#t,t)}#n=A(null);get error(){return T(this.#n)}set error(t){I(this.#n,t)}#a=A({});get params(){return T(this.#a)}set params(t){I(this.#a,t)}#r=A({id:null});get route(){return T(this.#r)}set route(t){I(this.#r,t)}#o=A({});get state(){return T(this.#o)}set state(t){I(this.#o,t)}#s=A(-1);get status(){return T(this.#s)}set status(t){I(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){I(this.#i,t)}},W=new class{#e=A(null);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},ge=new class{#e=A(!1);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},Xe.v=()=>ge.current=!0);function $t(e){Object.assign(k,e)}const Nt=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Fe(We)??{},Y=Fe(Ge)??{},C={url:Ve({}),page:Ve({}),navigating:ke(null),updated:It()};function Ae(e){D[e]=le()}function Dt(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;Y[n];)delete Y[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ze(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function ze(){}let Te,we,te,O,ve,v;const ne=[],ae=[];let L=null;function ye(){L?.fork?.then(e=>e?.discard()),L=null}const Q=new Map,et=new Set,qt=new Set,F=new Set;let _={branch:[],error:null,url:null},tt=!1,re=!1,Be=!0,J=!1,K=!1,nt=!1,Ie=!1,at,y,R,N;const oe=new Set,Ke=new Map;async function cn(e,t,n){globalThis.__sveltekit_2uz6ja?.data&&globalThis.__sveltekit_2uz6ja.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=Lt(e),O=document.documentElement,ve=t,we=e.nodes[0],te=e.nodes[1],we(),te(),y=history.state?.[z],R=history.state?.[G],y||(y=R=Date.now(),history.replaceState({...history.state,[z]:y,[G]:R},""));const a=D[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Qt(ve,n)):(await B({type:"enter",url:Le(v.hash?tn(new URL(location.href)):location.href),replace_state:!0}),r()),Xt()}function Vt(){ne.length=0,Ie=!1}function rt(e){ae.some(t=>t?.snapshot)&&(Y[e]=ae.map(t=>t?.snapshot?.capture()))}function ot(e){Y[e]?.forEach((t,n)=>{ae[n]?.snapshot?.restore(t)})}function Me(){Ae(y),De(We,D),rt(R),De(Ge,Y)}async function st(e,t,n,a){let r;t.invalidateAll&&ye(),await B({type:"goto",url:Le(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Ie=!0,r=[...Ke.keys()]),t.invalidate&&t.invalidate.forEach(Jt)}}),t.invalidateAll&&Z().then(Z).then(()=>{Ke.forEach(({resource:s},o)=>{r?.includes(o)&&s.refresh?.()})})}async function zt(e){if(e.id!==L?.id){ye();const t={};oe.add(t),L={id:e.id,token:t,promise:ct({...e,preload:t}).then(n=>(oe.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null}}return L.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function it(e,t,n){_=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),at=new v.root({target:t,props:{...e.props,stores:C,components:ae},hydrate:n,sync:!1}),await Promise.resolve(),ot(R),n){const r={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};F.forEach(s=>s(r))}re=!0}function se({url:e,params:t,branch:n,status:a,error:r,route:s,form:o}){let i="never";if(x&&(e.pathname===x||e.pathname===x+"/"))i="always";else for(const u of n)u?.slash!==void 0&&(i=u.slash);e.pathname=pt(e.pathname,i),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:s},props:{constructors:Pt(n).map(u=>u.node.component),page:$e(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const g=n[u],m=_.branch[u];g?.data!==m?.data&&(f=!0),g&&(l={...l,...g.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!_.url||e.href!==_.url.href||_.error!==r||o!==void 0&&o!==k.form||f)&&(c.props.page={error:r,params:t,route:{id:s?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:k.data}),c}async function Oe({loader:e,parent:t,url:n,params:a,route:r,server_data_node:s}){let o=null;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:s,universal:c.universal?.load?{type:"data",data:o,uses:i}:null,data:o??s?.data??null,slash:c.universal?.trailingSlash??s?.slash}}function Bt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const s=re?bt(a,r.href,t):yt(a,t);return{resolved:r,promise:s}}function Kt(e,t,n,a,r,s){if(Ie)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(s[o]!==_.params[o])return!0;for(const o of r.dependencies)if(ne.some(i=>i(new URL(o))))return!0;return!1}function Pe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Mt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),s=t.searchParams.getAll(a);r.every(o=>s.includes(o))&&s.every(o=>r.includes(o))&&n.delete(a)}return n}function Ft({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:$e(k),constructors:[]}}}async function ct({id:e,invalidating:t,url:n,params:a,route:r,preload:s}){if(L?.id===e)return oe.delete(L.token),L.promise;const{errors:o,layouts:i,leaf:c}=r,l=[...i,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const f=_.url?e!==ie(_.url):!1,h=_.route?r.id!==_.route.id:!1,w=Mt(_.url,n);let u=!1;const g=l.map(async(p,d)=>{if(!p)return;const E=_.branch[d];return p[1]===E?.loader&&!Kt(u,h,f,w,E.universal?.uses,a)?E:(u=!0,Oe({loader:p[1],url:n,params:a,route:r,parent:async()=>{const P={};for(let U=0;U<d;U+=1)Object.assign(P,(await g[U])?.data);return P},server_data_node:Pe(p[0]?{type:"skip"}:null,p[0]?E?.server:void 0)}))});for(const p of g)p.catch(()=>{});const m=[];for(let p=0;p<l.length;p+=1)if(l[p])try{m.push(await g[p])}catch(d){if(d instanceof Se)return{type:"redirect",location:d.location};if(oe.has(s))return Ft({error:await X(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let E=Ue(d),S;if(d instanceof Ee)S=d.body;else{if(await C.updated.check())return await Ze(),await H(n);S=await X(d,{params:a,url:n,route:{id:r.id}})}const P=await Gt(p,m,o);return P?se({url:n,params:a,branch:m.slice(0,P.idx).concat(P.node),status:E,error:S,route:r}):await ut(n,{id:r.id},S,E)}else m.push(void 0);return se({url:n,params:a,branch:m,status:200,error:null,route:r,form:t?void 0:null})}async function Gt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function je({status:e,error:t,url:n,route:a}){const r={};let s=null;try{const o=await Oe({loader:we,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Pe(s)}),i={node:await te(),loader:te,universal:null,server:null,data:null};return se({url:n,params:r,branch:[o,i],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return st(new URL(o.location,location.href),{},0);throw o}}async function Wt(e){const t=e.href;if(Q.has(t))return Q.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(s,o)=>Bt(s,o,e).promise})??e;if(typeof r=="string"){const s=new URL(e);v.hash?s.hash=r:s.pathname=r,r=s}return r})();Q.set(t,a),n=await a}catch{Q.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,v.hash)){const n=await Wt(e);if(!n)return;const a=Yt(n);for(const r of Te){const s=r.exec(a);if(s)return{id:ie(e),invalidating:t,route:r,params:_t(s),url:e}}}}function Yt(e){return gt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ie(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function lt({url:e,type:t,intent:n,delta:a,event:r}){let s=!1;const o=Ce(_,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const i={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return J||et.forEach(c=>c(i)),s?null:o}async function B({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:o={},redirect_count:i=0,nav_token:c={},accept:l=ze,block:f=ze,event:h}){const w=N;N=c;const u=await fe(t,!1),g=e==="enter"?Ce(_,u,t,e):lt({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!g){f(),N===c&&(N=w);return}const m=y,p=R;l(),J=!0,re&&g.navigation.type!=="enter"&&C.navigating.set(W.current=g.navigation);let d=u&&await ct(u);if(!d){if(ue(t,x,v.hash))return await H(t,s);d=await ut(t,{id:null},await X(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=u?.url||t,N!==c)return g.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(i<20){await B({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:s,state:o,redirect_count:i+1,nav_token:c}),g.fulfil(void 0);return}d=await je({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await C.updated.check()&&(await Ze(),await H(t,s));if(Vt(),Ae(m),rt(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=s?0:1,q={[z]:y+=b,[G]:R+=b,[Ye]:o};(s?history.replaceState:history.pushState).call(history,q,"",t),s||Dt(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,d.props.page.state=o;let S;if(re){const b=(await Promise.all(Array.from(qt,j=>j(g.navigation)))).filter(j=>typeof j=="function");if(b.length>0){let j=function(){b.forEach(de=>{F.delete(de)})};b.push(j),b.forEach(de=>{F.add(de)})}_=d.state,d.props.page&&(d.props.page.url=t);const q=E&&await E;q?S=q.commit():(at.$set(d.props),$t(d.props.page),S=ht?.()),nt=!0}else await it(d,ve,!1);const{activeElement:P}=document;await S,await Z(),await Z();let U=n?n.scroll:r?le():null;if(Be){const b=t.hash&&document.getElementById(ft(t));if(U)scrollTo(U.x,U.y);else if(b){b.scrollIntoView();const{top:q,left:j}=b.getBoundingClientRect();U={x:pageXOffset+j,y:pageYOffset+q}}else scrollTo(0,0)}const dt=document.activeElement!==P&&document.activeElement!==document.body;!a&&!dt&&en(t,U),Be=!0,d.props.page&&Object.assign(k,d.props.page),J=!1,e==="popstate"&&ot(R),g.fulfil(void 0),F.forEach(b=>b(g.navigation)),C.navigating.set(W.current=null)}async function ut(e,t,n,a,r){return e.origin===ce&&e.pathname===location.pathname&&!tt?await je({status:a,error:n,url:e,route:t}):await H(e,r)}function Ht(){let e,t,n;O.addEventListener("mousemove",i=>{const c=i.target;clearTimeout(e),e=setTimeout(()=>{s(c,$.hover)},20)});function a(i){i.defaultPrevented||s(i.composedPath()[0],$.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(i=>{for(const c of i)c.isIntersecting&&(_e(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function s(i,c){const l=Je(i,O),f=l===t&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=me(l,x,v.hash);if(w||u)return;const g=ee(l),m=h&&ie(_.url)===ie(h);if(!(g.reload||m))if(c<=g.preload_data){t=l,n=$.tap;const p=await fe(h,!1);if(!p)return;zt(p)}else c<=g.preload_code&&(t=l,n=c,_e(h))}function o(){r.disconnect();for(const i of O.querySelectorAll("a")){const{url:c,external:l,download:f}=me(i,x,v.hash);if(l||f)continue;const h=ee(i);h.reload||(h.preload_code===$.viewport&&r.observe(i),h.preload_code===$.eager&&_e(c))}}F.add(o),o()}function X(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),a=jt(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function ln(e,t={}){return e=new URL(Le(e)),e.origin!==ce?Promise.reject(new Error("goto: invalid URL")):st(e,t,0)}function Jt(e){if(typeof e=="function")ne.push(e);else{const{href:t}=new URL(e,location.href);ne.push(n=>n.href===t)}}function Xt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Me(),!J){const a=Ce(_,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};et.forEach(s=>s(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Me()}),navigator.connection?.saveData||Ht(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Je(t.composedPath()[0],O);if(!n)return;const{url:a,external:r,target:s,download:o}=me(n,x,v.hash);if(!a)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const i=ee(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===he(location);if(r||i.reload&&(!h||!f)){lt({url:a,type:"link",event:t})?J=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=_.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(K=!0,Ae(y),e(a),!i.replace_state)return;K=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await B({type:"link",url:a,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??a.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ue(o,x,!1))return;const i=t.target,c=ee(i);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(i,a);o.search=new URLSearchParams(l).toString(),B({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[z]){const n=t.state[z];if(N={},n===y)return;const a=D[n],r=t.state[Ye]??{},s=new URL(t.state[Tt]??location.href),o=t.state[G],i=_.url?he(location)===he(_.url):!1;if(o===R&&(nt||i)){r!==k.state&&(k.state=r),e(s),D[y]=le(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await B({type:"popstate",url:s,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,R=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!K){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{K&&(K=!1,history.replaceState({...history.state,[z]:++y,[G]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Nt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(W.current=null)});function e(t){_.url=k.url=t,C.page.set($e(k)),C.page.notify()}}async function Qt(e,{status:t=200,error:n,node_ids:a,params:r,route:s,server_route:o,data:i,form:c}){tt=!0;const l=new URL(location.href);let f;({params:r={},route:s={id:null}}=await fe(l,!1)||{}),f=Te.find(({id:u})=>u===s.id);let h,w=!0;try{const u=a.map(async(m,p)=>{const d=i[p];return d?.uses&&(d.uses=Zt(d.uses)),Oe({loader:v.nodes[m],url:l,params:r,route:s,parent:async()=>{const E={};for(let S=0;S<p;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Pe(d)})}),g=await Promise.all(u);if(f){const m=f.layouts;for(let p=0;p<m.length;p++)m[p]||g.splice(p,0,void 0)}h=se({url:l,params:r,branch:g,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Se){await H(new URL(u.location,location.href));return}h=await je({status:Ue(u),error:await X(u,{url:l,params:r,route:s}),url:l,route:s}),e.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await it(h,e,w)}function Zt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let be=!1;function en(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=ft(e);if(a&&document.getElementById(a)){const{x:s,y:o}=t??le();setTimeout(()=>{const i=history.state;be=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(s,o),be=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const s=[];for(let o=0;o<r.rangeCount;o+=1)s.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===s.length){for(let o=0;o<r.rangeCount;o+=1){const i=s[o],c=r.getRangeAt(o);if(i.commonAncestorContainer!==c.commonAncestorContainer||i.startContainer!==c.startContainer||i.endContainer!==c.endContainer||i.startOffset!==c.startOffset||i.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function Ce(e,t,n,a){let r,s;const o=new Promise((c,l)=>{r=c,s=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:s}}function $e(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function tn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function ft(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{cn as a,ln as g,an as l,k as p,C as s};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/DMZdfGjo.js";export{o as load_css,r as start};
@@ -1 +0,0 @@
1
- import{f as h,a as c,s}from"../chunks/B89acguF.js";import{i as l}from"../chunks/C1N7m5A8.js";import{p as v,f as u,t as _,a as g,c as e,r as o,s as x}from"../chunks/00yL0Rbo.js";import{p}from"../chunks/DQq2RX99.js";var d=h("<h1> </h1> <p> </p>",1);function q(m,f){v(f,!1),l();var a=d(),r=u(a),i=e(r,!0);o(r);var t=x(r,2),n=e(t,!0);o(t),_(()=>{s(i,p.status),s(n,p.error?.message)}),c(m,a),g()}export{q as component};