text: import { S as SvelteComponentDev, i as init, s as safe_not_equal, d as dispatch_dev, a as validate_slots, p as space, q as element, t as text, u as query_selector_all, g as detach_dev, w as claim_space, c as claim_element, f as children, y as claim_text, j as add_location, h as attr_dev, k as insert_dev, m as append_dev, D as set_data_dev, n as noop } from './client.ea8d23ee.js';
  
  /* src/routes/blog/[slug].svelte generated by Svelte v3.38.2 */
  
  const file = "src/routes/blog/[slug].svelte";
  
  function create_fragment(ctx) {
  	let title_value;
  	let t0;
  	let h1;
  	let t1_value = /*post*/ ctx[0].title + "";
  	let t1;
  	let t2;
  	let div;
  	let raw_value = /*post*/ ctx[0].html + "";
  	document.title = title_value = /*post*/ ctx[0].title;
  
  	const block = {
  		c: function create() {
  			t0 = space();
  			h1 = element("h1");
  			t1 = text(t1_value);
  			t2 = space();
  			div = element("div");
  			this.h();
  		},
  		l: function claim(nodes) {
  			const head_nodes = query_selector_all("[data-svelte=\"svelte-1uty71u\"]", document.head);
  			head_nodes.forEach(detach_dev);
  			t0 = claim_space(nodes);
  			h1 = claim_element(nodes, "H1", {});
  			var h1_nodes = children(h1);
  			t1 = claim_text(h1_nodes, t1_value);
  			h1_nodes.forEach(detach_dev);
  			t2 = claim_space(nodes);
  			div = claim_element(nodes, "DIV", { class: true });
  			var div_nodes = children(div);
  			div_nodes.forEach(detach_dev);
  			this.h();
  		},
  		h: function hydrate() {
  			add_location(h1, file, 59, 0, 1206);
  			attr_dev(div, "class", "content svelte-1vxpoc2");
  			add_location(div, file, 61, 0, 1229);
  		},
  		m: function mount(target, anchor) {
  			insert_dev(target, t0, anchor);
  			insert_dev(target, h1, anchor);
  			append_dev(h1, t1);
  			insert_dev(target, t2, anchor);
  			insert_dev(target, div, anchor);
  			div.innerHTML = raw_value;
  		},
  		p: function update(ctx, [dirty]) {
  			if (dirty & /*post*/ 1 && title_value !== (title_value = /*post*/ ctx[0].title)) {
  				document.title = title_value;
  			}
  
  			if (dirty & /*post*/ 1 && t1_value !== (t1_value = /*post*/ ctx[0].title + "")) set_data_dev(t1, t1_value);
  			if (dirty & /*post*/ 1 && raw_value !== (raw_value = /*post*/ ctx[0].html + "")) div.innerHTML = raw_value;		},
  		i: noop,
  		o: noop,
  		d: function destroy(detaching) {
  			if (detaching) detach_dev(t0);
  			if (detaching) detach_dev(h1);
  			if (detaching) detach_dev(t2);
  			if (detaching) detach_dev(div);
  		}
  	};
  
  	dispatch_dev("SvelteRegisterBlock", {
  		block,
  		id: create_fragment.name,
  		type: "component",
  		source: "",
  		ctx
  	});
  
  	return block;
  }
  
  async function preload({ params }) {
  	// the `slug` parameter is available because
  	// this file is called [slug].svelte
  	const res = await this.fetch(`blog/${params.slug}.json`);
  
  	const data = await res.json();
  
  	if (res.status === 200) {
  		return { post: data };
  	} else {
  		this.error(res.status, data.message);
  	}
  }
  
  function instance($$self, $$props, $$invalidate) {
  	let { $$slots: slots = {}, $$scope } = $$props;
  	validate_slots("U5Bslugu5D", slots, []);
  	let { post } = $$props;
  	const writable_props = ["post"];
  
  	Object.keys($$props).forEach(key => {
  		if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<U5Bslugu5D> was created with unknown prop '${key}'`);
  	});
  
  	$$self.$$set = $$props => {
  		if ("post" in $$props) $$invalidate(0, post = $$props.post);
  	};
  
  	$$self.$capture_state = () => ({ preload, post });
  
  	$$self.$inject_state = $$props => {
  		if ("post" in $$props) $$invalidate(0, post = $$props.post);
  	};
  
  	if ($$props && "$$inject" in $$props) {
  		$$self.$inject_state($$props.$$inject);
  	}
  
  	return [post];
  }
  
  class U5Bslugu5D extends SvelteComponentDev {
  	constructor(options) {
  		super(options);
  		init(this, options, instance, create_fragment, safe_not_equal, { post: 0 });
  
  		dispatch_dev("SvelteRegisterComponent", {
  			component: this,
  			tagName: "U5Bslugu5D",
  			options,
  			id: create_fragment.name
  		});
  
  		const { ctx } = this.$$;
  		const props = options.props || {};
  
  		if (/*post*/ ctx[0] === undefined && !("post" in props)) {
  			console.warn("<U5Bslugu5D> was created without expected prop 'post'");
  		}
  	}
  
  	get post() {
  		throw new Error("<U5Bslugu5D>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
  	}
  
  	set post(value) {
  		throw new Error("<U5Bslugu5D>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
  	}
  }
  
  export default U5Bslugu5D;
  export { preload };
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiW3NsdWddLmM3MzA1ZmRiLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcm91dGVzL2Jsb2cvW3NsdWddLnN2ZWx0ZSJdLCJzb3VyY2VzQ29udGVudCI6WyI8c2NyaXB0IGNvbnRleHQ9XCJtb2R1bGVcIj5cblx0ZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHByZWxvYWQoeyBwYXJhbXMgfSkge1xuXHRcdC8vIHRoZSBgc2x1Z2AgcGFyYW1ldGVyIGlzIGF2YWlsYWJsZSBiZWNhdXNlXG5cdFx0Ly8gdGhpcyBmaWxlIGlzIGNhbGxlZCBbc2x1Z10uc3ZlbHRlXG5cdFx0Y29uc3QgcmVzID0gYXdhaXQgdGhpcy5mZXRjaChgYmxvZy8ke3BhcmFtcy5zbHVnfS5qc29uYCk7XG5cdFx0Y29uc3QgZGF0YSA9IGF3YWl0IHJlcy5qc29uKCk7XG5cblx0XHRpZiAocmVzLnN0YXR1cyA9PT0gMjAwKSB7XG5cdFx0XHRyZXR1cm4geyBwb3N0OiBkYXRhIH07XG5cdFx0fSBlbHNlIHtcblx0XHRcdHRoaXMuZXJyb3IocmVzLnN0YXR1cywgZGF0YS5tZXNzYWdlKTtcblx0XHR9XG5cdH1cbjwvc2NyaXB0PlxuXG48c2NyaXB0PlxuXHRleHBvcnQgbGV0IHBvc3Q7XG48L3NjcmlwdD5cblxuPHN0eWxlPlxuXHQvKlxuXHRcdEJ5IGRlZmF1bHQsIENTUyBpcyB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