|
- (function(t) {
- function e(e) {
- for (var a, i, o = e[0], c = e[1], l = e[2], d = 0, p = []; d < o.length; d++) i = o[d], Object.prototype
- .hasOwnProperty.call(n, i) && n[i] && p.push(n[i][0]), n[i] = 0;
- for (a in c) Object.prototype.hasOwnProperty.call(c, a) && (t[a] = c[a]);
- u && u(e);
- while (p.length) p.shift()();
- return s.push.apply(s, l || []), r()
- }
-
- function r() {
- for (var t, e = 0; e < s.length; e++) {
- for (var r = s[e], a = !0, o = 1; o < r.length; o++) {
- var c = r[o];
- 0 !== n[c] && (a = !1)
- }
- a && (s.splice(e--, 1), t = i(i.s = r[0]))
- }
- return t
- }
- var a = {},
- n = {
- app: 0
- },
- s = [];
-
- function i(e) {
- if (a[e]) return a[e].exports;
- var r = a[e] = {
- i: e,
- l: !1,
- exports: {}
- };
- return t[e].call(r.exports, r, r.exports, i), r.l = !0, r.exports
- }
- i.m = t, i.c = a, i.d = function(t, e, r) {
- i.o(t, e) || Object.defineProperty(t, e, {
- enumerable: !0,
- get: r
- })
- }, i.r = function(t) {
- "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
- value: "Module"
- }), Object.defineProperty(t, "__esModule", {
- value: !0
- })
- }, i.t = function(t, e) {
- if (1 & e && (t = i(t)), 8 & e) return t;
- if (4 & e && "object" === typeof t && t && t.__esModule) return t;
- var r = Object.create(null);
- if (i.r(r), Object.defineProperty(r, "default", {
- enumerable: !0,
- value: t
- }), 2 & e && "string" != typeof t)
- for (var a in t) i.d(r, a, function(e) {
- return t[e]
- }.bind(null, a));
- return r
- }, i.n = function(t) {
- var e = t && t.__esModule ? function() {
- return t["default"]
- } : function() {
- return t
- };
- return i.d(e, "a", e), e
- }, i.o = function(t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- }, i.p = "";
- var o = window["webpackJsonp"] = window["webpackJsonp"] || [],
- c = o.push.bind(o);
- o.push = e, o = o.slice();
- for (var l = 0; l < o.length; l++) e(o[l]);
- var u = c;
- s.push([1, "chunk-vendors"]), r()
- })({
- 0: function(t, e) {},
- "0156": function(t, e, r) {
- "use strict";
- r("fa7c")
- },
- "034f": function(t, e, r) {
- "use strict";
- r("85ec")
- },
- 1: function(t, e, r) {
- t.exports = r("56d7")
- },
- 2: function(t, e) {},
- 2679: function(t, e, r) {},
- 3: function(t, e) {},
- 4: function(t, e) {},
- 4462: function(t, e, r) {
- "use strict";
- r("5544")
- },
- 4678: function(t, e, r) {
- var a = {
- "./af": "2bfb",
- "./af.js": "2bfb",
- "./ar": "8e73",
- "./ar-dz": "a356",
- "./ar-dz.js": "a356",
- "./ar-kw": "423e",
- "./ar-kw.js": "423e",
- "./ar-ly": "1cfd",
- "./ar-ly.js": "1cfd",
- "./ar-ma": "0a84",
- "./ar-ma.js": "0a84",
- "./ar-sa": "8230",
- "./ar-sa.js": "8230",
- "./ar-tn": "6d83",
- "./ar-tn.js": "6d83",
- "./ar.js": "8e73",
- "./az": "485c",
- "./az.js": "485c",
- "./be": "1fc1",
- "./be.js": "1fc1",
- "./bg": "84aa",
- "./bg.js": "84aa",
- "./bm": "a7fa",
- "./bm.js": "a7fa",
- "./bn": "9043",
- "./bn.js": "9043",
- "./bo": "d26a",
- "./bo.js": "d26a",
- "./br": "6887",
- "./br.js": "6887",
- "./bs": "2554",
- "./bs.js": "2554",
- "./ca": "d716",
- "./ca.js": "d716",
- "./cs": "3c0d",
- "./cs.js": "3c0d",
- "./cv": "03ec",
- "./cv.js": "03ec",
- "./cy": "9797",
- "./cy.js": "9797",
- "./da": "0f14",
- "./da.js": "0f14",
- "./de": "b469",
- "./de-at": "b3eb",
- "./de-at.js": "b3eb",
- "./de-ch": "bb71",
- "./de-ch.js": "bb71",
- "./de.js": "b469",
- "./dv": "598a",
- "./dv.js": "598a",
- "./el": "8d47",
- "./el.js": "8d47",
- "./en-SG": "cdab",
- "./en-SG.js": "cdab",
- "./en-au": "0e6b",
- "./en-au.js": "0e6b",
- "./en-ca": "3886",
- "./en-ca.js": "3886",
- "./en-gb": "39a6",
- "./en-gb.js": "39a6",
- "./en-ie": "e1d3",
- "./en-ie.js": "e1d3",
- "./en-il": "7333",
- "./en-il.js": "7333",
- "./en-nz": "6f50",
- "./en-nz.js": "6f50",
- "./eo": "65db",
- "./eo.js": "65db",
- "./es": "898b",
- "./es-do": "0a3c",
- "./es-do.js": "0a3c",
- "./es-us": "55c9",
- "./es-us.js": "55c9",
- "./es.js": "898b",
- "./et": "ec18",
- "./et.js": "ec18",
- "./eu": "0ff2",
- "./eu.js": "0ff2",
- "./fa": "8df4",
- "./fa.js": "8df4",
- "./fi": "81e9",
- "./fi.js": "81e9",
- "./fo": "0721",
- "./fo.js": "0721",
- "./fr": "9f26",
- "./fr-ca": "d9f8",
- "./fr-ca.js": "d9f8",
- "./fr-ch": "0e49",
- "./fr-ch.js": "0e49",
- "./fr.js": "9f26",
- "./fy": "7118",
- "./fy.js": "7118",
- "./ga": "5120",
- "./ga.js": "5120",
- "./gd": "f6b4",
- "./gd.js": "f6b4",
- "./gl": "8840",
- "./gl.js": "8840",
- "./gom-latn": "0caa",
- "./gom-latn.js": "0caa",
- "./gu": "e0c5",
- "./gu.js": "e0c5",
- "./he": "c7aa",
- "./he.js": "c7aa",
- "./hi": "dc4d",
- "./hi.js": "dc4d",
- "./hr": "4ba9",
- "./hr.js": "4ba9",
- "./hu": "5b14",
- "./hu.js": "5b14",
- "./hy-am": "d6b6",
- "./hy-am.js": "d6b6",
- "./id": "5038",
- "./id.js": "5038",
- "./is": "0558",
- "./is.js": "0558",
- "./it": "6e98",
- "./it-ch": "6f12",
- "./it-ch.js": "6f12",
- "./it.js": "6e98",
- "./ja": "079e",
- "./ja.js": "079e",
- "./jv": "b540",
- "./jv.js": "b540",
- "./ka": "201b",
- "./ka.js": "201b",
- "./kk": "6d79",
- "./kk.js": "6d79",
- "./km": "e81d",
- "./km.js": "e81d",
- "./kn": "3e92",
- "./kn.js": "3e92",
- "./ko": "22f8",
- "./ko.js": "22f8",
- "./ku": "2421",
- "./ku.js": "2421",
- "./ky": "9609",
- "./ky.js": "9609",
- "./lb": "440c",
- "./lb.js": "440c",
- "./lo": "b29d",
- "./lo.js": "b29d",
- "./lt": "26f9",
- "./lt.js": "26f9",
- "./lv": "b97c",
- "./lv.js": "b97c",
- "./me": "293c",
- "./me.js": "293c",
- "./mi": "688b",
- "./mi.js": "688b",
- "./mk": "6909",
- "./mk.js": "6909",
- "./ml": "02fb",
- "./ml.js": "02fb",
- "./mn": "958b",
- "./mn.js": "958b",
- "./mr": "39bd",
- "./mr.js": "39bd",
- "./ms": "ebe4",
- "./ms-my": "6403",
- "./ms-my.js": "6403",
- "./ms.js": "ebe4",
- "./mt": "1b45",
- "./mt.js": "1b45",
- "./my": "8689",
- "./my.js": "8689",
- "./nb": "6ce3",
- "./nb.js": "6ce3",
- "./ne": "3a39",
- "./ne.js": "3a39",
- "./nl": "facd",
- "./nl-be": "db29",
- "./nl-be.js": "db29",
- "./nl.js": "facd",
- "./nn": "b84c",
- "./nn.js": "b84c",
- "./pa-in": "f3ff",
- "./pa-in.js": "f3ff",
- "./pl": "8d57",
- "./pl.js": "8d57",
- "./pt": "f260",
- "./pt-br": "d2d4",
- "./pt-br.js": "d2d4",
- "./pt.js": "f260",
- "./ro": "972c",
- "./ro.js": "972c",
- "./ru": "957c",
- "./ru.js": "957c",
- "./sd": "6784",
- "./sd.js": "6784",
- "./se": "ffff",
- "./se.js": "ffff",
- "./si": "eda5",
- "./si.js": "eda5",
- "./sk": "7be6",
- "./sk.js": "7be6",
- "./sl": "8155",
- "./sl.js": "8155",
- "./sq": "c8f3",
- "./sq.js": "c8f3",
- "./sr": "cf1e",
- "./sr-cyrl": "13e9",
- "./sr-cyrl.js": "13e9",
- "./sr.js": "cf1e",
- "./ss": "52bd",
- "./ss.js": "52bd",
- "./sv": "5fbd",
- "./sv.js": "5fbd",
- "./sw": "74dc",
- "./sw.js": "74dc",
- "./ta": "3de5",
- "./ta.js": "3de5",
- "./te": "5cbb",
- "./te.js": "5cbb",
- "./tet": "576c",
- "./tet.js": "576c",
- "./tg": "3b1b",
- "./tg.js": "3b1b",
- "./th": "10e8",
- "./th.js": "10e8",
- "./tl-ph": "0f38",
- "./tl-ph.js": "0f38",
- "./tlh": "cf75",
- "./tlh.js": "cf75",
- "./tr": "0e81",
- "./tr.js": "0e81",
- "./tzl": "cf51",
- "./tzl.js": "cf51",
- "./tzm": "c109",
- "./tzm-latn": "b53d",
- "./tzm-latn.js": "b53d",
- "./tzm.js": "c109",
- "./ug-cn": "6117",
- "./ug-cn.js": "6117",
- "./uk": "ada2",
- "./uk.js": "ada2",
- "./ur": "5294",
- "./ur.js": "5294",
- "./uz": "2e8c",
- "./uz-latn": "010e",
- "./uz-latn.js": "010e",
- "./uz.js": "2e8c",
- "./vi": "2921",
- "./vi.js": "2921",
- "./x-pseudo": "fd7e",
- "./x-pseudo.js": "fd7e",
- "./yo": "7f33",
- "./yo.js": "7f33",
- "./zh-cn": "5c3a",
- "./zh-cn.js": "5c3a",
- "./zh-hk": "49ab",
- "./zh-hk.js": "49ab",
- "./zh-tw": "90ea",
- "./zh-tw.js": "90ea"
- };
-
- function n(t) {
- var e = s(t);
- return r(e)
- }
-
- function s(t) {
- if (!r.o(a, t)) {
- var e = new Error("Cannot find module '" + t + "'");
- throw e.code = "MODULE_NOT_FOUND", e
- }
- return a[t]
- }
- n.keys = function() {
- return Object.keys(a)
- }, n.resolve = s, t.exports = n, n.id = "4678"
- },
- 5: function(t, e) {},
- 5046: function(t, e, r) {},
- 5544: function(t, e, r) {},
- "56d7": function(t, e, r) {
- "use strict";
- r.r(e);
- r("e260"), r("e6cf"), r("cca6"), r("a79d");
- var a = r("a026"),
- n = function() {
- var t = this,
- e = t.$createElement,
- r = t._self._c || e;
- return r("div", {
- attrs: {
- id: "app"
- }
- }, [r("HelloWorld", {
- attrs: {
- msg: "Welcome to Your Vue.js App"
- }
- })], 1)
- },
- s = [],
- i = function() {
- var t = this,
- e = t.$createElement,
- r = t._self._c || e;
- return r("div", {
- class: {
- hidden: t.hidden
- }
- }, [r("div", {
- staticClass: "banner"
- }, [r("div", {
- staticClass: "container"
- }, [r("h1", [r("div", [t._v(" 在线文档查看 "), r("input", {
- staticClass: "file-select",
- attrs: {
- type: "file"
- },
- on: {
- change: t.handleChange
- }
- })])])])]), r("div", {
- staticClass: "container"
- }, [r("div", {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: t.loading,
- expression: "loading"
- }],
- staticClass: "well loading"
- }, [t._v("正在加载中,请耐心等待...")]), r("div", {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: !t.loading,
- expression: "!loading"
- }],
- ref: "output",
- staticClass: "well"
- })])])
- },
- o = [],
- c = r("3835"),
- l = r("1da1"),
- u = (r("96cf"), r("ac1f"), r("841c"), r("b0c0"), r("d3b7"), r("159b"), r("376d")),
- d = r("2909"),
- p = (r("d9e2"), r("d81d"), r("a630"), r("3ca3"), r("ddb0"), r("7db0"), r("a9e3"), r("1276"), r(
- "a15b"), r("5319"), r("5cc6"), r("907a"), r("9a8c"), r("a975"), r("735e"), r("c1ac"), r(
- "d139"), r("3a7b"), r("d5d6"), r("82f8"), r("e91f"), r("60bd"), r("5f96"), r("3280"), r(
- "3fcc"), r("ca91"), r("25a1"), r("cd26"), r("3c5d"), r("2954"), r("649e"), r("219c"), r(
- "170b"), r("b39a"), r("72f7"), r("25f0"), r("b64b"), r("2315"), r("c19f"), r("498a"), r(
- "a434"), r("fb6a"), r("4e82"), r("53ca")),
- f = 1;
-
- function h(t) {
- var e = "<",
- r = "<".charCodeAt(0),
- a = ">",
- n = ">".charCodeAt(0),
- s = "-".charCodeAt(0),
- i = "/".charCodeAt(0),
- o = "!".charCodeAt(0),
- c = "'".charCodeAt(0),
- l = '"'.charCodeAt(0),
- u = "?".charCodeAt(0),
- d = "\r\n\t>/= ",
- p = 0;
-
- function h() {
- var f = [];
- while (t[p]) {
- if (t.charCodeAt(p) === r) {
- if (t.charCodeAt(p + 1) === i) return p = t.indexOf(a, p), f;
- if (t.charCodeAt(p + 1) === o) {
- if (t.charCodeAt(p + 2) === s) {
- while (t.charCodeAt(p) !== n || t.charCodeAt(p - 1) !== s || t.charCodeAt(p -
- 2) !== s || -1 === p) p = t.indexOf(a, p + 1); - 1 === p && (p = t
- .length)
- } else
- for (p += 2; t.charCodeAt(p) !== n; p++);
- p++;
- continue
- }
- if (t.charCodeAt(p + 1) === u) {
- p = t.indexOf(a, p), p++;
- continue
- }
- p++;
- for (var b = p; - 1 === d.indexOf(t[p]); p++);
- for (var g = t.slice(b, p), v = !1, m = {}; t.charCodeAt(p) !== n; p++) {
- var y = t.charCodeAt(p);
- if (y > 64 && y < 91 || y > 96 && y < 123) {
- for (b = p; - 1 === d.indexOf(t[p]); p++);
- var k = t.slice(b, p),
- x = t.charCodeAt(p);
- while (x !== c && x !== l) p++, x = t.charCodeAt(p);
- var w = t[p],
- C = ++p;
- p = t.indexOf(w, C);
- var j = t.slice(C, p);
- v || (m = {}, v = !0), m[k] = j
- }
- }
- var P = void 0;
- t.charCodeAt(p - 1) !== i && (p++, P = h()), f.push({
- children: P,
- tagName: g,
- attrs: m
- })
- } else {
- var R = p;
- p = t.indexOf(e, p) - 1, -2 === p && (p = t.length);
- var F = t.slice(R, p + 1);
- F.trim().length > 0 && f.push(F)
- }
- p++
- }
- return f
- }
- return f = 1, b(h())
- }
-
- function b(t) {
- var e = {};
- if (void 0 === t) return {};
- if (1 === t.length && ("string" === typeof t[0] || t[0] instanceof String)) return new String(t[0]);
- for (var r in t.forEach((function(t) {
- if (e[t.tagName] || (e[t.tagName] = []), "object" === Object(p["a"])(t)) {
- var r = b(t.children);
- t.attrs && (r.attrs = t.attrs), void 0 === r["attrs"] ? r["attrs"] = {
- order: f
- } : r["attrs"]["order"] = f, f++, e[t.tagName].push(r)
- }
- })), e) 1 === e[r].length && (e[r] = e[r][0]);
- return e
- }
- var g = r("262e"),
- v = r("2caf"),
- m = r("d4ec"),
- y = r("bee2"),
- k = (r("99af"), Math.round),
- x = function() {
- function t(e) {
- Object(m["a"])(this, t), this.r = e[0], this.g = e[1], this.b = e[2]
- }
- return Object(y["a"])(t, [{
- key: "toString",
- value: function() {
- return "rgb(".concat(this.r, ",").concat(this.g, ",").concat(this.b,
- ")")
- }
- }]), t
- }(),
- w = function(t) {
- Object(g["a"])(r, t);
- var e = Object(v["a"])(r);
-
- function r(t) {
- var a;
- return Object(m["a"])(this, r), a = e.call(this, t), a.a = t[3], a
- }
- return Object(y["a"])(r, [{
- key: "toString",
- value: function() {
- return "rgba(".concat(this.r, ",").concat(this.g, ",").concat(this.b,
- ",").concat(this.a, ")")
- }
- }]), r
- }(x),
- C = function() {
- function t(e) {
- Object(m["a"])(this, t), this.h = e[0], this.s = e[1], this.l = e[2]
- }
- return Object(y["a"])(t, [{
- key: "toString",
- value: function() {
- return "hsl(".concat(this.h, ",").concat(this.s, "%,").concat(this.l,
- "%)")
- }
- }]), t
- }(),
- j = function(t) {
- Object(g["a"])(r, t);
- var e = Object(v["a"])(r);
-
- function r(t) {
- var a;
- return Object(m["a"])(this, r), a = e.call(this, t), a.a = t[3], a
- }
- return Object(y["a"])(r, [{
- key: "toString",
- value: function() {
- return "hsla(".concat(this.h, ",").concat(this.s, "%,").concat(this.l,
- "%,").concat(this.a, ")")
- }
- }]), r
- }(C),
- P = function() {
- function t(e, r, a) {
- var n = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1;
- if (Object(m["a"])(this, t), "string" === typeof e) {
- var s = e;
- "#" !== s.charAt(0) && (s = "#" + s), s.length < 7 && (s = "#" + s[1] + s[1] + s[2] + s[
- 2] + s[3] + s[3]);
- var i = R(s),
- o = Object(c["a"])(i, 3);
- e = o[0], r = o[1], a = o[2]
- } else e instanceof Array && (n = e[3] || n, a = e[2], r = e[1], e = e[0]);
- this.r = e, this.g = r, this.b = a, this.a = n, this.rgb = new x([this.r, this.g, this.b]),
- this.rgba = new w([this.r, this.g, this.b, this.a]), this.hex = I(this.r, this.g, this
- .b), this.hsl = new C(O(this.r, this.g, this.b)), this.h = this.hsl.h, this.s = this
- .hsl.s, this.l = this.hsl.l, this.hsla = new j([this.h, this.s, this.l, this.a])
- }
- return Object(y["a"])(t, [{
- key: "setHue",
- value: function(t) {
- this.h = t, this.hsl.h = t, this.hsla.h = t, this.updateFromHsl()
- }
- }, {
- key: "setSat",
- value: function(t) {
- this.s = t, this.hsl.s = t, this.hsla.s = t, this.updateFromHsl()
- }
- }, {
- key: "setLum",
- value: function(t) {
- this.l = t, this.hsl.l = t, this.hsla.l = t, this.updateFromHsl()
- }
- }, {
- key: "setAlpha",
- value: function(t) {
- this.a = t, this.hsla.a = t, this.rgba.a = t
- }
- }, {
- key: "updateFromHsl",
- value: function() {
- this.rgb = null, this.rgb = new x(_(this.h, this.s, this.l)), this.r =
- this.rgb.r, this.g = this.rgb.g, this.b = this.rgb.b, this.rgba.r =
- this.rgb.r, this.rgba.g = this.rgb.g, this.rgba.b = this.rgb.b, this
- .hex = null, this.hex = I([this.r, this.g, this.b])
- }
- }]), t
- }(),
- R = function(t) {
- var e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
- return e ? [parseInt(e[1], 16), parseInt(e[2], 16), parseInt(e[3], 16)] : null
- },
- F = function(t) {
- var e = t.toString(16);
- return 1 === e.length ? "0" + e : e
- },
- I = function(t, e, r) {
- return t instanceof Array && (r = t[2], e = t[1], t = t[0]), "#" + F(t) + F(e) + F(r)
- },
- O = function(t, e, r) {
- var a, n, s, i, o, c;
- if (t instanceof Array && (r = t[2], e = t[1], t = t[0]), t /= 255, e /= 255, r /= 255, o = Math
- .max(t, e, r), c = Math.min(t, e, r), s = (o + c) / 2, o === c) a = n = 0;
- else {
- switch (i = o - c, n = s > .5 ? i / (2 - o - c) : i / (o + c), o) {
- case t:
- a = (e - r) / i + (e < r ? 6 : 0);
- break;
- case e:
- a = (r - t) / i + 2;
- break;
- case r:
- a = (t - e) / i + 4;
- break
- }
- a /= 6
- }
- return a = k(360 * a), n = k(100 * n), s = k(100 * s), [a, n, s]
- },
- S = function(t, e, r) {
- return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? t + 6 * (e - t) * r : r < .5 ? e : r <
- 2 / 3 ? t + (e - t) * (2 / 3 - r) * 6 : t
- },
- _ = function(t, e, r) {
- var a, n, s, i, o;
- return t instanceof Array && (r = t[2], e = t[1], t = t[0]), t /= 360, e /= 100, r /= 100, 0 ===
- e ? a = n = s = r : (i = r < .5 ? r * (1 + e) : r + e - r * e, o = 2 * r - i, a = S(o, i,
- t + 1 / 3), n = S(o, i, t), s = S(o, i, t - 1 / 3)), [k(255 * a), k(255 * n), k(255 *
- s)]
- },
- L = r("c4e3"),
- D = r.n(L);
-
- function T(t) {
- for (var e = new Uint8Array(t), r = "", a = 0; a < e.byteLength; a++) r += String.fromCharCode(e[
- a]);
- return btoa(r)
- }
-
- function A(t) {
- var e = t.lastIndexOf(".");
- return 0 === e || -1 === e ? "" : t.substr(t.lastIndexOf(".") + 1)
- }
-
- function N() {
- var t, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function() {},
- r = arguments.length > 1 ? arguments[1] : void 0,
- a = [],
- n = 0,
- s = null,
- i = "",
- o = {};
-
- function c(t) {
- return u.apply(this, arguments)
- }
-
- function u() {
- return u = Object(l["a"])(regeneratorRuntime.mark((function e(n) {
- var i, o, c, l, u, p, h, b, v, y;
- return regeneratorRuntime.wrap((function(e) {
- while (1) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, D.a.loadAsync(n);
- case 2:
- if (i = e.sent, o = new Date, null === i.file(
- "docProps/thumbnail.jpeg")) {
- e.next = 9;
- break
- }
- return e.next = 7, i.file(
- "docProps/thumbnail.jpeg").async(
- "base64");
- case 7:
- c = e.sent, r({
- type: "pptx-thumb",
- data: c
- });
- case 9:
- return e.next = 11, f(i);
- case 11:
- return l = e.sent, e.next = 14, g(i);
- case 14:
- return u = e.sent, e.next = 17, m(i);
- case 17:
- return s = e.sent, e.next = 20, d(i,
- "ppt/tableStyles.xml");
- case 20:
- t = e.sent, r({
- type: "slideSize",
- data: u
- }), p = l["slides"].length, h = 0;
- case 24:
- if (!(h < p)) {
- e.next = 34;
- break
- }
- return b = l["slides"][h], e.next = 28, k(i, b,
- h, u);
- case 28:
- v = e.sent, r({
- type: "slide",
- data: v
- }), r({
- type: "progress-update",
- data: 100 * (h + 1) / p
- });
- case 31:
- h++, e.next = 24;
- break;
- case 34:
- r({
- type: "globalCSS",
- data: X()
- }), y = new Date, r({
- type: "Done",
- data: {
- time: y - o,
- charts: a
- }
- });
- case 37:
- case "end":
- return e.stop()
- }
- }), e)
- }))), u.apply(this, arguments)
- }
-
- function d(t, e) {
- return p.apply(this, arguments)
- }
-
- function p() {
- return p = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.t0 = h, t.next = 3, e.file(r).async(
- "text");
- case 3:
- return t.t1 = t.sent, t.abrupt("return", (0, t
- .t0)(t.t1));
- case 5:
- case "end":
- return t.stop()
- }
- }), t)
- }))), p.apply(this, arguments)
- }
-
- function f(t) {
- return b.apply(this, arguments)
- }
-
- function b() {
- return b = Object(l["a"])(regeneratorRuntime.mark((function t(e) {
- var r, a, n, s, i;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.next = 2, d(e, "[Content_Types].xml");
- case 2:
- r = t.sent, a = r["Types"]["Override"], n = [],
- s = [], i = 0;
- case 7:
- if (!(i < a.length)) {
- t.next = 18;
- break
- }
- t.t0 = a[i]["attrs"]["ContentType"], t.next =
- "application/vnd.openxmlformats-officedocument.presentationml.slide+xml" ===
- t.t0 ? 11 :
- "application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml" ===
- t.t0 ? 13 : 15;
- break;
- case 11:
- return n.push(a[i]["attrs"]["PartName"].substr(
- 1)), t.abrupt("break", 15);
- case 13:
- return s.push(a[i]["attrs"]["PartName"].substr(
- 1)), t.abrupt("break", 15);
- case 15:
- i++, t.next = 7;
- break;
- case 18:
- return t.abrupt("return", {
- slides: n,
- slideLayouts: s
- });
- case 19:
- case "end":
- return t.stop()
- }
- }), t)
- }))), b.apply(this, arguments)
- }
-
- function g(t) {
- return v.apply(this, arguments)
- }
-
- function v() {
- return v = Object(l["a"])(regeneratorRuntime.mark((function t(e) {
- var r, a;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.next = 2, d(e, "ppt/presentation.xml");
- case 2:
- return r = t.sent, a = r["p:presentation"][
- "p:sldSz"
- ]["attrs"], t.abrupt("return", {
- width: 96 * parseInt(a["cx"]) /
- 914400,
- height: 96 * parseInt(a["cy"]) /
- 914400
- });
- case 5:
- case "end":
- return t.stop()
- }
- }), t)
- }))), v.apply(this, arguments)
- }
-
- function m(t) {
- return y.apply(this, arguments)
- }
-
- function y() {
- return y = Object(l["a"])(regeneratorRuntime.mark((function t(e) {
- var r, a, n, s;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.next = 2, d(e,
- "ppt/_rels/presentation.xml.rels");
- case 2:
- if (r = t.sent, a = r["Relationships"][
- "Relationship"
- ], a.constructor !== Array) {
- t.next = 15;
- break
- }
- s = 0;
- case 6:
- if (!(s < a.length)) {
- t.next = 13;
- break
- }
- if ("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" !==
- a[s]["attrs"]["Type"]) {
- t.next = 10;
- break
- }
- return n = a[s]["attrs"]["Target"], t.abrupt(
- "break", 13);
- case 10:
- s++, t.next = 6;
- break;
- case 13:
- t.next = 16;
- break;
- case 15:
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" ===
- a["attrs"]["Type"] && (n = a["attrs"][
- "Target"
- ]);
- case 16:
- if (void 0 !== n) {
- t.next = 18;
- break
- }
- throw Error("Can't open theme file.");
- case 18:
- return t.abrupt("return", d(e, "ppt/" + n));
- case 19:
- case "end":
- return t.stop()
- }
- }), t)
- }))), y.apply(this, arguments)
- }
-
- function k(t, e, r, a) {
- return x.apply(this, arguments)
- }
-
- function x() {
- return x = Object(l["a"])(regeneratorRuntime.mark((function t(e, a, n, o) {
- var c, l, u, p, f, h, b, g, v, m, y, k, x, j, P, R, F, I, O, S, _, L, D, T,
- A, N, B, G, M;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return r({
- type: "INFO",
- data: "Processing slide" + (n + 1)
- }), c = a.replace("slides/slide",
- "slides/_rels/slide") + ".rels", t
- .next = 4, d(e, c);
- case 4:
- if (l = t.sent, u = l["Relationships"][
- "Relationship"
- ], p = "", f = {}, u.constructor !==
- Array) {
- t.next = 22;
- break
- }
- h = 0;
- case 10:
- if (!(h < u.length)) {
- t.next = 20;
- break
- }
- t.t0 = u[h]["attrs"]["Type"], t.next =
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" ===
- t.t0 ? 14 : (
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide" ===
- t.t0 ||
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" ===
- t.t0 ||
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" ===
- t.t0 || t.t0, 16);
- break;
- case 14:
- return p = u[h]["attrs"]["Target"].replace(
- "../", "ppt/"), t.abrupt("break", 17);
- case 16:
- f[u[h]["attrs"]["Id"]] = {
- type: u[h]["attrs"]["Type"].replace(
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/",
- ""),
- target: u[h]["attrs"]["Target"].replace(
- "../", "ppt/")
- };
- case 17:
- h++, t.next = 10;
- break;
- case 20:
- t.next = 23;
- break;
- case 22:
- p = u["attrs"]["Target"].replace("../", "ppt/");
- case 23:
- return t.next = 25, d(e, p);
- case 25:
- return b = t.sent, g = w(b), v = b[
- "p:sldLayout"]["p:clrMapOvr"][
- "a:overrideClrMapping"
- ], void 0 !== v && (i = v["attrs"]), m = p
- .replace("slideLayouts/slideLayout",
- "slideLayouts/_rels/slideLayout") +
- ".rels", t.next = 32, d(e, m);
- case 32:
- if (y = t.sent, u = y["Relationships"][
- "Relationship"
- ], k = "", x = {}, u.constructor !==
- Array) {
- t.next = 50;
- break
- }
- j = 0;
- case 38:
- if (!(j < u.length)) {
- t.next = 48;
- break
- }
- t.t1 = u[j]["attrs"]["Type"], t.next =
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" ===
- t.t1 ? 42 : 44;
- break;
- case 42:
- return k = u[j]["attrs"]["Target"].replace(
- "../", "ppt/"), t.abrupt("break", 45);
- case 44:
- x[u[j]["attrs"]["Id"]] = {
- type: u[j]["attrs"]["Type"].replace(
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/",
- ""),
- target: u[j]["attrs"]["Target"].replace(
- "../", "ppt/")
- };
- case 45:
- j++, t.next = 38;
- break;
- case 48:
- t.next = 51;
- break;
- case 50:
- k = u["attrs"]["Target"].replace("../", "ppt/");
- case 51:
- return t.next = 53, d(e, k);
- case 53:
- return P = t.sent, R = _t(P, ["p:sldMaster",
- "p:txStyles"
- ]), F = w(P), I = k.replace(
- "slideMasters/slideMaster",
- "slideMasters/_rels/slideMaster") +
- ".rels", t.next = 59, d(e, I);
- case 59:
- if (O = t.sent, u = O["Relationships"][
- "Relationship"
- ], S = "", _ = {}, u.constructor !==
- Array) {
- t.next = 77;
- break
- }
- L = 0;
- case 65:
- if (!(L < u.length)) {
- t.next = 75;
- break
- }
- t.t2 = u[L]["attrs"]["Type"], t.next =
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" ===
- t.t2 ? 69 : 71;
- break;
- case 69:
- return S = u[L]["attrs"]["Target"].replace(
- "../", "ppt/"), t.abrupt("break", 72);
- case 71:
- _[u[L]["attrs"]["Id"]] = {
- type: u[L]["attrs"]["Type"].replace(
- "http://schemas.openxmlformats.org/officeDocument/2006/relationships/",
- ""),
- target: u[L]["attrs"]["Target"].replace(
- "../", "ppt/")
- };
- case 72:
- L++, t.next = 65;
- break;
- case 75:
- t.next = 78;
- break;
- case 77:
- S = u["attrs"]["Target"].replace("../", "ppt/");
- case 78:
- if (void 0 === S) {
- t.next = 82;
- break
- }
- return t.next = 81, d(e, S);
- case 81:
- s = t.sent;
- case 82:
- return t.next = 84, d(e, a);
- case 84:
- return D = t.sent, T = D["p:sld"]["p:cSld"][
- "p:spTree"
- ], A = {
- zip: e,
- slideLayoutTables: g,
- slideMasterTables: F,
- slideResObj: f,
- slideMasterTextStyles: R,
- layoutResObj: x,
- masterResObj: _
- }, t.next = 89, pt(D, b, P, A);
- case 89:
- N = t.sent, B = "<section style='width:" + o
- .width + "px; height:" + o.height + "px;" +
- N + "'>", t.t3 = regeneratorRuntime.keys(T);
- case 92:
- if ((t.t4 = t.t3()).done) {
- t.next = 112;
- break
- }
- if (G = t.t4.value, T[G].constructor !==
- Array) {
- t.next = 106;
- break
- }
- M = 0;
- case 96:
- if (!(M < T[G].length)) {
- t.next = 104;
- break
- }
- return t.t5 = B, t.next = 100, C(G, T[G][M], A);
- case 100:
- B = t.t5 += t.sent;
- case 101:
- M++, t.next = 96;
- break;
- case 104:
- t.next = 110;
- break;
- case 106:
- return t.t6 = B, t.next = 109, C(G, T[G], A);
- case 109:
- B = t.t6 += t.sent;
- case 110:
- t.next = 92;
- break;
- case 112:
- return t.abrupt("return", B + "</section>");
- case 113:
- case "end":
- return t.stop()
- }
- }), t)
- }))), x.apply(this, arguments)
- }
-
- function w(t) {
- var e = Object.keys(t),
- r = t[e[0]]["p:cSld"]["p:spTree"],
- a = {},
- n = {},
- s = {};
- for (var i in r)
- if ("p:nvGrpSpPr" !== i && "p:grpSpPr" !== i) {
- var o = r[i];
- if (o.constructor === Array)
- for (var c = 0; c < o.length; c++) {
- var l = o[c]["p:nvSpPr"],
- u = _t(l, ["p:cNvPr", "attrs", "id"]),
- d = _t(l, ["p:nvPr", "p:ph", "attrs", "idx"]),
- p = _t(l, ["p:nvPr", "p:ph", "attrs", "type"]);
- void 0 !== u && (a[u] = o[c]), void 0 !== d && (n[d] = o[c]), void 0 !== p && (
- s[p] = o[c])
- } else {
- var f = o["p:nvSpPr"],
- h = _t(f, ["p:cNvPr", "attrs", "id"]),
- b = _t(f, ["p:nvPr", "p:ph", "attrs", "idx"]),
- g = _t(f, ["p:nvPr", "p:ph", "attrs", "type"]);
- void 0 !== h && (a[h] = o), void 0 !== b && (n[b] = o), void 0 !== g && (s[g] =
- o)
- }
- } return {
- idTable: a,
- idxTable: n,
- typeTable: s
- }
- }
-
- function C(t, e, r) {
- return j.apply(this, arguments)
- }
-
- function j() {
- return j = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a) {
- var n;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- n = "", t.t0 = e, t.next = "p:sp" === t.t0 ? 4 :
- "p:cxnSp" === t.t0 ? 8 : "p:pic" === t.t0 ?
- 12 : "p:graphicFrame" === t.t0 ? 16 :
- "p:grpSp" === t.t0 ? 20 : 24;
- break;
- case 4:
- return t.next = 6, I(r, a);
- case 6:
- return n = t.sent, t.abrupt("break", 24);
- case 8:
- return t.next = 10, S(r, a);
- case 10:
- return n = t.sent, t.abrupt("break", 24);
- case 12:
- return t.next = 14, B(r, a);
- case 14:
- return n = t.sent, t.abrupt("break", 24);
- case 16:
- return t.next = 18, M(r, a);
- case 18:
- return n = t.sent, t.abrupt("break", 24);
- case 20:
- return t.next = 22, R(r, a);
- case 22:
- return n = t.sent, t.abrupt("break", 24);
- case 24:
- return t.abrupt("return", n);
- case 25:
- case "end":
- return t.stop()
- }
- }), t)
- }))), j.apply(this, arguments)
- }
-
- function R(t, e) {
- return F.apply(this, arguments)
- }
-
- function F() {
- return F = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var a, n, s, i, o, c, l, u, d, p, f, h, b, g;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- a = 96 / 914400, n = e["p:grpSpPr"]["a:xfrm"],
- s = parseInt(n["a:off"]["attrs"]["x"]) * a,
- i = parseInt(n["a:off"]["attrs"]["y"]) * a,
- o = parseInt(n["a:chOff"]["attrs"]["x"]) *
- a, c = parseInt(n["a:chOff"]["attrs"][
- "y"
- ]) * a, l = parseInt(n["a:ext"]["attrs"][
- "cx"
- ]) * a, u = parseInt(n["a:ext"]["attrs"][
- "cy"
- ]) * a, d = parseInt(n["a:chExt"]["attrs"][
- "cx"
- ]) * a, p = parseInt(n["a:chExt"]["attrs"][
- "cy"
- ]) * a, f = e["attrs"]["order"], h =
- "<div class='block group' style='z-index: " +
- f + "; top: " + (i - c) + "px; left: " + (
- s - o) + "px; width: " + (l - d) +
- "px; height: " + (u - p) + "px;'>", t.t0 =
- regeneratorRuntime.keys(e);
- case 13:
- if ((t.t1 = t.t0()).done) {
- t.next = 33;
- break
- }
- if (b = t.t1.value, e[b].constructor !==
- Array) {
- t.next = 27;
- break
- }
- g = 0;
- case 17:
- if (!(g < e[b].length)) {
- t.next = 25;
- break
- }
- return t.t2 = h, t.next = 21, C(b, e[b][g], r);
- case 21:
- h = t.t2 += t.sent;
- case 22:
- g++, t.next = 17;
- break;
- case 25:
- t.next = 31;
- break;
- case 27:
- return t.t3 = h, t.next = 30, C(b, e[b], r);
- case 30:
- h = t.t3 += t.sent;
- case 31:
- t.next = 13;
- break;
- case 33:
- return h += "</div>", t.abrupt("return", h);
- case 35:
- case "end":
- return t.stop()
- }
- }), t)
- }))), F.apply(this, arguments)
- }
-
- function I(t, e) {
- return O.apply(this, arguments)
- }
-
- function O() {
- return O = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var a, n, s, i, o, c, l;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return a = e["p:nvSpPr"]["p:cNvPr"]["attrs"][
- "id"
- ], n = e["p:nvSpPr"]["p:cNvPr"]["attrs"][
- "name"
- ], s = void 0 === e["p:nvSpPr"]["p:nvPr"][
- "p:ph"
- ] ? void 0 : e["p:nvSpPr"]["p:nvPr"]["p:ph"]
- ["attrs"]["idx"], i = void 0 === e[
- "p:nvSpPr"]["p:nvPr"]["p:ph"] ? void 0 :
- e["p:nvSpPr"]["p:nvPr"]["p:ph"]["attrs"][
- "type"
- ], o = e["attrs"]["order"], void 0 !== i ? (
- c = r["slideLayoutTables"]["typeTable"][
- i
- ], l = r["slideMasterTables"][
- "typeTable"
- ][i]) : void 0 !== s && (c = r[
- "slideLayoutTables"]["idxTable"][s],
- l = r["slideMasterTables"]["idxTable"][
- s
- ]), void 0 === i && (i = _t(c, [
- "p:nvSpPr", "p:nvPr", "p:ph",
- "attrs", "type"
- ]), void 0 === i && (i = _t(l, [
- "p:nvSpPr", "p:nvPr",
- "p:ph", "attrs", "type"
- ]))), t.next = 9, L(e, c, l, a, n, s, i, o,
- r);
- case 9:
- return t.abrupt("return", t.sent);
- case 10:
- case "end":
- return t.stop()
- }
- }), t)
- }))), O.apply(this, arguments)
- }
-
- function S(t, e) {
- return _.apply(this, arguments)
- }
-
- function _() {
- return _ = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var a, n, s;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return a = e["p:nvCxnSpPr"]["p:cNvPr"]["attrs"][
- "id"
- ], n = e["p:nvCxnSpPr"]["p:cNvPr"]["attrs"][
- "name"
- ], s = e["attrs"]["order"], t.next = 5, L(e,
- void 0, void 0, a, n, void 0, void 0, s,
- r);
- case 5:
- return t.abrupt("return", t.sent);
- case 6:
- case "end":
- return t.stop()
- }
- }), t)
- }))), _.apply(this, arguments)
- }
-
- function L(t, e, r, a, n, s, i, o, c) {
- return N.apply(this, arguments)
- }
-
- function N() {
- return N = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a, n, s, i, o, c, l) {
- var u, d, p, f, h, b, g, v, m, y, k, x, w, C, j, P, R, F, I, O, S, _, L, D,
- T, A, N, B, G, M, E, U, H, W, $, X, V, q, Y, J, K, tt, rt, at, nt, st,
- it, ot, ct, lt, ut, pt, ft, ht, gt, mt, yt, kt, xt, wt, Ct, jt, Pt, Rt,
- Ft, It, Ot, St, Lt, Dt, At, Bt, Gt, Et, zt, Ut, Ht, Wt, $t, Xt, Vt, qt,
- Yt, Jt, Kt, Qt, Zt, te, ee, re, ae, ne, se, ie, oe, ce, le, ue, de, pe,
- fe, he, be, ge, ve, me, ye, ke, xe, we, Ce, je, Pe, Re, Fe, Ie, Oe, Se,
- _e, Le, De, Te, Ae, Ne;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- if (u = ["p:spPr", "a:xfrm"], d = _t(e, u), p =
- _t(r, u), f = _t(a, u), h = "", b = _t(e, [
- "attrs", "order"
- ]), g = _t(e, ["p:spPr", "a:prstGeom",
- "attrs", "prst"
- ]), v = _t(e, ["p:spPr", "a:custGeom"]),
- m = !1, "1" !== _t(d, ["attrs", "flipV"]) &&
- "1" !== _t(d, ["attrs", "flipH"]) || (m = !
- 0), y = Tt(_t(d, ["attrs", "rot"])),
- R = !1, F = !1, void 0 === g && void 0 === v
- ) {
- t.next = 29;
- break
- }
- return I = _t(d, ["a:ext", "attrs"]), k = 96 *
- parseInt(I["cx"]) / 914400, x = 96 *
- parseInt(I["cy"]) / 914400, h +=
- "<svg class='drawing' _id='" + n +
- "' _idx='" + i + "' _type='" + o +
- "' Name='" + s + "' style='" + Q(d, void 0,
- void 0) + Z(d, void 0, void 0) +
- " z-index: " + c + ";transform: rotate(" +
- y + "deg);'>", h += "<defs>", t.next = 21,
- bt(e, !0, l);
- case 21:
- P = t.sent, O = vt(_t(e, ["p:spPr"])),
- "GRADIENT_FILL" === O ? (R = !0, S = P
- .color, _ = P.rot, L = Nt(k, x, _, S,
- b), h += L) : "PIC_FILL" === O && (
- F = !
- 0, D = Mt(P, b), h += D), w = dt(e, !0),
- C = _t(e, ["p:spPr", "a:ln", "a:headEnd",
- "attrs"
- ]), j = _t(e, ["p:spPr", "a:ln",
- "a:tailEnd", "attrs"
- ]), (void 0 === C || "triangle" !== C[
- "type"] && "arrow" !== C["type"]) && (
- void 0 === j || "triangle" !== j[
- "type"] && "arrow" !== j["type"]) ||
- (
- T = "<marker id='markerTriangle_" + b +
- "' viewBox='0 0 10 10' refX='1' refY='5' markerWidth='5' markerHeight='5' stroke='" +
- w.color + "' fill='" + w.color +
- "' orient='auto-start-reverse' markerUnits='strokeWidth'><path d='M 0 0 L 10 5 L 0 10 z' /></marker>",
- h += T), h += "</defs>";
- case 29:
- if (void 0 === g || void 0 !== v) {
- t.next = 156;
- break
- }
- t.t0 = g, t.next = "accentBorderCallout1" === t
- .t0 || "accentBorderCallout2" === t.t0 ||
- "accentBorderCallout3" === t.t0 ||
- "accentCallout1" === t.t0 ||
- "accentCallout2" === t.t0 ||
- "accentCallout3" === t.t0 ||
- "actionButtonBackPrevious" === t.t0 ||
- "actionButtonBeginning" === t.t0 ||
- "actionButtonBlank" === t.t0 ||
- "actionButtonDocument" === t.t0 ||
- "actionButtonEnd" === t.t0 ||
- "actionButtonForwardNext" === t.t0 ||
- "actionButtonHelp" === t.t0 ||
- "actionButtonHome" === t.t0 ||
- "actionButtonInformation" === t.t0 ||
- "actionButtonMovie" === t.t0 ||
- "actionButtonReturn" === t.t0 ||
- "actionButtonSound" === t.t0 || "arc" === t
- .t0 || "bevel" === t.t0 || "blockArc" === t
- .t0 || "borderCallout1" === t.t0 ||
- "borderCallout2" === t.t0 ||
- "borderCallout3" === t.t0 || "bracePair" ===
- t.t0 || "bracketPair" === t.t0 ||
- "callout1" === t.t0 || "callout2" === t
- .t0 || "callout3" === t.t0 || "can" === t
- .t0 || "chartPlus" === t.t0 ||
- "chartStar" === t.t0 || "chartX" === t.t0 ||
- "chevron" === t.t0 || "chord" === t.t0 ||
- "cloud" === t.t0 || "cloudCallout" === t
- .t0 || "corner" === t.t0 || "cornerTabs" ===
- t.t0 || "cube" === t.t0 || "diagStripe" ===
- t.t0 || "donut" === t.t0 || "doubleWave" ===
- t.t0 || "downArrowCallout" === t.t0 ||
- "ellipseRibbon" === t.t0 ||
- "ellipseRibbon2" === t.t0 ||
- "flowChartAlternateProcess" === t.t0 ||
- "flowChartCollate" === t.t0 ||
- "flowChartConnector" === t.t0 ||
- "flowChartDecision" === t.t0 ||
- "flowChartDelay" === t.t0 ||
- "flowChartDisplay" === t.t0 ||
- "flowChartDocument" === t.t0 ||
- "flowChartExtract" === t.t0 ||
- "flowChartInputOutput" === t.t0 ||
- "flowChartInternalStorage" === t.t0 ||
- "flowChartMagneticDisk" === t.t0 ||
- "flowChartMagneticDrum" === t.t0 ||
- "flowChartMagneticTape" === t.t0 ||
- "flowChartManualInput" === t.t0 ||
- "flowChartManualOperation" === t.t0 ||
- "flowChartMerge" === t.t0 ||
- "flowChartMultidocument" === t.t0 ||
- "flowChartOfflineStorage" === t.t0 ||
- "flowChartOffpageConnector" === t.t0 ||
- "flowChartOnlineStorage" === t.t0 ||
- "flowChartOr" === t.t0 ||
- "flowChartPredefinedProcess" === t.t0 ||
- "flowChartPreparation" === t.t0 ||
- "flowChartProcess" === t.t0 ||
- "flowChartPunchedCard" === t.t0 ||
- "flowChartPunchedTape" === t.t0 ||
- "flowChartSort" === t.t0 ||
- "flowChartSummingJunction" === t.t0 ||
- "flowChartTerminator" === t.t0 ||
- "folderCorner" === t.t0 || "frame" === t
- .t0 || "funnel" === t.t0 || "gear6" === t
- .t0 || "gear9" === t.t0 || "halfFrame" === t
- .t0 || "heart" === t.t0 || "homePlate" === t
- .t0 || "horizontalScroll" === t.t0 ||
- "irregularSeal1" === t.t0 ||
- "irregularSeal2" === t.t0 ||
- "leftArrowCallout" === t.t0 ||
- "leftBrace" === t.t0 || "leftBracket" === t
- .t0 || "leftRightArrowCallout" === t.t0 ||
- "leftRightRibbon" === t.t0 ||
- "lightningBolt" === t.t0 || "lineInv" === t
- .t0 || "mathDivide" === t.t0 ||
- "mathEqual" === t.t0 || "mathMinus" === t
- .t0 || "mathMultiply" === t.t0 ||
- "mathNotEqual" === t.t0 || "mathPlus" === t
- .t0 || "moon" === t.t0 ||
- "nonIsoscelesTrapezoid" === t.t0 ||
- "noSmoking" === t.t0 || "pie" === t.t0 ||
- "pieWedge" === t.t0 || "plaque" === t.t0 ||
- "plaqueTabs" === t.t0 ||
- "quadArrowCallout" === t.t0 || "rect" === t
- .t0 || "ribbon" === t.t0 || "ribbon2" === t
- .t0 || "rightArrowCallout" === t.t0 ||
- "rightBrace" === t.t0 || "rightBracket" ===
- t.t0 || "round1Rect" === t.t0 ||
- "round2DiagRect" === t.t0 ||
- "round2SameRect" === t.t0 ||
- "smileyFace" === t.t0 || "snip1Rect" === t
- .t0 || "snip2DiagRect" === t.t0 ||
- "snip2SameRect" === t.t0 ||
- "snipRoundRect" === t.t0 || "squareTabs" ===
- t.t0 || "star10" === t.t0 || "star12" === t
- .t0 || "star16" === t.t0 || "star24" === t
- .t0 || "star32" === t.t0 || "star4" === t
- .t0 || "star5" === t.t0 || "star6" === t
- .t0 || "star7" === t.t0 || "star8" === t
- .t0 || "sun" === t.t0 || "teardrop" === t
- .t0 || "upArrowCallout" === t.t0 ||
- "upDownArrowCallout" === t.t0 ||
- "verticalScroll" === t.t0 || "wave" === t
- .t0 || "wedgeEllipseCallout" === t.t0 ||
- "wedgeRectCallout" === t.t0 ||
- "wedgeRoundRectCallout" === t.t0 ? 33 :
- "ellipse" === t.t0 ? 35 : "roundRect" === t
- .t0 ? 37 : "bentConnector2" === t.t0 ? 39 :
- "rtTriangle" === t.t0 ? 45 : "triangle" ===
- t.t0 ? 47 : "diamond" === t.t0 ? 52 :
- "trapezoid" === t.t0 ? 54 :
- "parallelogram" === t.t0 ? 60 :
- "pentagon" === t.t0 ? 66 : "hexagon" === t
- .t0 ? 68 : "heptagon" === t.t0 ? 75 :
- "octagon" === t.t0 ? 77 : "decagon" === t
- .t0 ? 83 : "dodecagon" === t.t0 ? 85 :
- "bentConnector3" === t.t0 ? 87 : "plus" ===
- t.t0 ? 91 : "line" === t.t0 ||
- "straightConnector1" === t.t0 ||
- "bentConnector4" === t.t0 ||
- "bentConnector5" === t.t0 ||
- "curvedConnector2" === t.t0 ||
- "curvedConnector3" === t.t0 ||
- "curvedConnector4" === t.t0 ||
- "curvedConnector5" === t.t0 ? 97 :
- "rightArrow" === t.t0 ? 102 :
- "leftArrow" === t.t0 ? 109 : "downArrow" ===
- t.t0 ? 116 : "upArrow" === t.t0 ? 123 :
- "leftRightArrow" === t.t0 ? 130 :
- "upDownArrow" === t.t0 ? 137 :
- "bentArrow" === t.t0 || "bentUpArrow" === t
- .t0 || "stripedRightArrow" === t.t0 ||
- "quadArrow" === t.t0 || "circularArrow" ===
- t.t0 || "swooshArrow" === t.t0 ||
- "leftRightUpArrow" === t.t0 ||
- "leftUpArrow" === t.t0 ||
- "leftCircularArrow" === t.t0 ||
- "notchedRightArrow" === t.t0 ||
- "curvedDownArrow" === t.t0 ||
- "curvedLeftArrow" === t.t0 ||
- "curvedRightArrow" === t.t0 ||
- "curvedUpArrow" === t.t0 || "uturnArrow" ===
- t.t0 || "leftRightCircularArrow" === t.t0 ?
- 144 : (t.t0, 145);
- break;
- case 33:
- return h += "<rect x='0' y='0' width='" + k +
- "' height='" + x + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 35:
- return h += "<ellipse cx='" + k / 2 + "' cy='" +
- x / 2 + "' rx='" + k / 2 + "' ry='" + x /
- 2 + "' fill='" + (F ? "url(#imgPtrn_" + b +
- ")" : R ? "url(#linGrd_" + b + ")" : P
- ) + "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 37:
- return h += "<rect x='0' y='0' width='" + k +
- "' height='" + x +
- "' rx='7' ry='7' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 39:
- return A = m ? "M 0 " + k + " L " + x + " " +
- k + " L " + x + " 0" : "M " + k + " 0 L " +
- k + " " + x + " L 0 " + x, h +=
- "<path d='" + A + "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' fill='none' ", void 0 === C ||
- "triangle" !== C["type"] && "arrow" !== C[
- "type"] || (h +=
- "marker-start='url(#markerTriangle_" +
- b + ")' "), void 0 === j ||
- "triangle" !== j["type"] && "arrow" !== j[
- "type"] || (h +=
- "marker-end='url(#markerTriangle_" + b +
- ")' "), h += "/>", t.abrupt("break",
- 146);
- case 45:
- return h += " <polygon points='0 0,0 " + x +
- "," + k + " " + x + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 47:
- return N = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd", "attrs", "fmla"
- ]), B = .5, void 0 !== N && (B = 96 *
- parseInt(N.substr(4)) / 9144e3), h +=
- " <polygon points='" + k * B + " 0,0 " + x +
- "," + k + " " + x + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 52:
- return h += " <polygon points='" + k / 2 +
- " 0,0 " + x / 2 + "," + k / 2 + " " + x +
- "," + k + " " + x / 2 + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 54:
- return G = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd", "attrs", "fmla"
- ]), M = .25, E = .7407, void 0 !== G && (U =
- 96 * parseInt(G.substr(4)) / 9144e3, M =
- .5 * U / E), h += " <polygon points='" +
- k * M + " 0,0 " + x + "," + k + " " + x +
- "," + (1 - M) * k + " 0' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 60:
- return H = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd", "attrs", "fmla"
- ]), W = .25, $ = k > x ? k / x : x / k,
- void 0 !== H && (X = parseInt(H.substr(4)) /
- 1e5, W = X / $), h +=
- " <polygon points='" + W * k + " 0,0 " + x +
- "," + (1 - W) * k + " " + x + "," + k +
- " 0' fill='" + (F ? "url(#imgPtrn_" + b +
- ")" : R ? "url(#linGrd_" + b + ")" : P
- ) + "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 66:
- return h += " <polygon points='" + .5 * k +
- " 0,0 " + .375 * x + "," + .15 * k + " " +
- x + "," + .85 * k + " " + x + "," + k +
- " " + .375 * x + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 68:
- for (V = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd"
- ]) || [], Y = 0; Y < V.length; Y++)
- "adj" === _t(V[Y], ["attrs", "name"]) && (
- q = _t(V[Y], ["attrs", "fmla"]));
- return J = .25, K = .62211, void 0 !== q && (
- tt = 96 * parseInt(q.substr(4)) /
- 9144e3, J = .5 * tt / K), h +=
- " <polygon points='" + k * J + " 0,0 " + x /
- 2 + "," + k * J + " " + x + "," + (1 - J) *
- k + " " + x + "," + k + " " + x / 2 + "," +
- (1 - J) * k + " 0' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 75:
- return h += " <polygon points='" + .5 * k +
- " 0," + k / 8 + " " + x / 4 + ",0 " + 5 /
- 8 * x + "," + k / 4 + " " + x + "," + 3 /
- 4 * k + " " + x + "," + k + " " + 5 / 8 *
- x + "," + 7 / 8 * k + " " + x / 4 +
- "' fill='" + (F ? "url(#imgPtrn_" + b +
- ")" : R ? "url(#linGrd_" + b + ")" : P
- ) + "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 77:
- return rt = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd", "attrs", "fmla"
- ]), at = .25, void 0 !== rt && (at =
- parseInt(rt.substr(4)) / 1e5), nt = 1 -
- at, h += " <polygon points='" + at * k +
- " 0,0 " + at * x + ",0 " + nt * x + "," +
- at * k + " " + x + "," + nt * k + " " + x +
- "," + k + " " + nt * x + "," + k + " " +
- at * x + "," + nt * k + " 0' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 83:
- return h += " <polygon points='" + 3 / 8 * k +
- " 0," + k / 8 + " " + x / 8 + ",0 " + x /
- 2 + "," + k / 8 + " " + 7 / 8 * x + "," +
- 3 / 8 * k + " " + x + "," + 5 / 8 * k +
- " " + x + "," + 7 / 8 * k + " " + 7 / 8 *
- x + "," + k + " " + x / 2 + "," + 7 / 8 *
- k + " " + x / 8 + "," + 5 / 8 * k +
- " 0' fill='" + (F ? "url(#imgPtrn_" + b +
- ")" : R ? "url(#linGrd_" + b + ")" : P
- ) + "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 85:
- return h += " <polygon points='" + 3 / 8 * k +
- " 0," + k / 8 + " " + x / 8 + ",0 " + 3 /
- 8 * x + ",0 " + 5 / 8 * x + "," + k / 8 +
- " " + 7 / 8 * x + "," + 3 / 8 * k + " " +
- x + "," + 5 / 8 * k + " " + x + "," + 7 /
- 8 * k + " " + 7 / 8 * x + "," + k + " " +
- 5 / 8 * x + "," + k + " " + 3 / 8 * x +
- "," + 7 / 8 * k + " " + x / 8 + "," + 5 /
- 8 * k + " 0' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 87:
- return st = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd", "attrs", "fmla"
- ]), it = .5, void 0 !== st && (it =
- parseInt(st.substr(4)) / 1e5, h += m ?
- " <polyline points='" + k + " 0," + (1 -
- it) * k + " 0," + (1 - it) * k +
- " " + x + ",0 " + x +
- "' fill='transparent'' stroke='" + w
- .color + "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w
- .strokeDasharray + "' " :
- " <polyline points='0 0," + it * k +
- " 0," + it * k + " " + x + "," + k +
- " " + x +
- "' fill='transparent'' stroke='" + w
- .color + "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w
- .strokeDasharray + "' ", void 0 === C ||
- "triangle" !== C["type"] && "arrow" !==
- C["type"] || (h +=
- "marker-start='url(#markerTriangle_" +
- b + ")' "), void 0 === j ||
- "triangle" !== j["type"] && "arrow" !==
- j["type"] || (h +=
- "marker-end='url(#markerTriangle_" +
- b + ")' "), h += "/>"), t.abrupt(
- "break", 146);
- case 91:
- return ot = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd", "attrs", "fmla"
- ]), ct = .25, void 0 !== ot && (ct =
- parseInt(ot.substr(4)) / 1e5), lt = 1 -
- ct, h += " <polygon points='" + ct * k +
- " 0," + ct * k + " " + ct * x + ",0 " + ct *
- x + ",0 " + lt * x + "," + ct * k + " " +
- lt * x + "," + ct * k + " " + x + "," + lt *
- k + " " + x + "," + lt * k + " " + lt * x +
- "," + k + " " + lt * x + "," + +k + " " +
- ct * x + "," + lt * k + " " + ct * x + "," +
- lt * k + " 0' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 97:
- return h += m ? "<line x1='" + k +
- "' y1='0' x2='0' y2='" + x + "' stroke='" +
- w.color + "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' " : "<line x1='0' y1='0' x2='" + k +
- "' y2='" + x + "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' ", void 0 === C || "triangle" !== C[
- "type"] && "arrow" !== C["type"] || (
- h +=
- "marker-start='url(#markerTriangle_" +
- b + ")' "), void 0 === j ||
- "triangle" !== j["type"] && "arrow" !== j[
- "type"] || (h +=
- "marker-end='url(#markerTriangle_" + b +
- ")' "), h += "/>", t.abrupt("break",
- 146);
- case 102:
- if (ut = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd"
- ]), ft = .5, gt = .5, mt = k / x, void 0 !==
- ut)
- for (yt = 0; yt < ut.length; yt++) kt = _t(
- ut[yt], ["attrs", "name"]),
- "adj1" === kt ? (pt = _t(ut[yt], [
- "attrs", "fmla"
- ]), ft = .5 - parseInt(pt.substr(
- 4)) / 2e5) : "adj2" === kt && (ht =
- _t(ut[yt], ["attrs", "fmla"]), xt =
- parseInt(ht.substr(4)) / 1e5, gt =
- 1 - xt / mt);
- return h += " <polygon points='" + k + " " + x /
- 2 + "," + gt * k + " 0," + gt * k + " " +
- ft * x + ",0 " + ft * x + ",0 " + (1 - ft) *
- x + "," + gt * k + " " + (1 - ft) * x +
- ", " + gt * k + " " + x + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 109:
- if (wt = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd"
- ]), jt = .5, Rt = .5, Ft = k / x, void 0 !==
- wt)
- for (It = 0; It < wt.length; It++) Ot = _t(
- wt[It], ["attrs", "name"]),
- "adj1" === Ot ? (Ct = _t(wt[It], [
- "attrs", "fmla"
- ]), jt = .5 - parseInt(Ct.substr(
- 4)) / 2e5) : "adj2" === Ot && (Pt =
- _t(wt[It], ["attrs", "fmla"]), St =
- parseInt(Pt.substr(4)) / 1e5, Rt =
- St / Ft);
- return h += " <polygon points='0 " + x / 2 +
- "," + Rt * k + " " + x + "," + Rt * k +
- " " + (1 - jt) * x + "," + k + " " + (1 -
- jt) * x + "," + k + " " + jt * x + "," +
- Rt * k + " " + jt * x + ", " + Rt * k +
- " 0' fill='" + (F ? "url(#imgPtrn_" + b +
- ")" : R ? "url(#linGrd_" + b + ")" : P
- ) + "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 116:
- if (Lt = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd"
- ]), At = .5, Gt = .5, Et = x / k, void 0 !==
- Lt)
- for (zt = 0; zt < Lt.length; zt++) Ut = _t(
- Lt[zt], ["attrs", "name"]),
- "adj1" === Ut ? (Dt = _t(Lt[zt], [
- "attrs", "fmla"
- ]), At = parseInt(Dt.substr(4)) /
- 2e5) : "adj2" === Ut && (Bt = _t(Lt[
- zt], ["attrs", "fmla"]), Ht =
- parseInt(Bt.substr(4)) / 1e5, Gt =
- Ht / Et);
- return h += " <polygon points='" + (.5 - At) *
- k + " 0," + (.5 - At) * k + " " + (1 - Gt) *
- x + ",0 " + (1 - Gt) * x + "," + k / 2 +
- " " + x + "," + k + " " + (1 - Gt) * x +
- "," + (.5 + At) * k + " " + (1 - Gt) * x +
- ", " + (.5 + At) * k + " 0' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 123:
- if (Wt = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd"
- ]), Xt = .5, qt = .5, Yt = x / k, void 0 !==
- Wt)
- for (Jt = 0; Jt < Wt.length; Jt++) Kt = _t(
- Wt[Jt], ["attrs", "name"]),
- "adj1" === Kt ? ($t = _t(Wt[Jt], [
- "attrs", "fmla"
- ]), Xt = parseInt($t.substr(4)) /
- 2e5) : "adj2" === Kt && (Vt = _t(Wt[
- Jt], ["attrs", "fmla"]), Qt =
- parseInt(Vt.substr(4)) / 1e5, qt =
- Qt / Yt);
- return h += " <polygon points='" + k / 2 +
- " 0,0 " + qt * x + "," + (.5 - Xt) * k +
- " " + qt * x + "," + (.5 - Xt) * k + " " +
- x + "," + (.5 + Xt) * k + " " + x + "," + (
- .5 + Xt) * k + " " + qt * x + ", " + k +
- " " + qt * x + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 130:
- if (Zt = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd"
- ]), ee = .5, ae = .5, ne = k / x, void 0 !==
- Zt)
- for (se = 0; se < Zt.length; se++) ie = _t(
- Zt[se], ["attrs", "name"]),
- "adj1" === ie ? (te = _t(Zt[se], [
- "attrs", "fmla"
- ]), ee = .5 - parseInt(te.substr(
- 4)) / 2e5) : "adj2" === ie && (re =
- _t(Zt[se], ["attrs", "fmla"]), oe =
- parseInt(re.substr(4)) / 1e5, ae =
- oe / ne);
- return h += " <polygon points='0 " + x / 2 +
- "," + ae * k + " " + x + "," + ae * k +
- " " + (1 - ee) * x + "," + (1 - ae) * k +
- " " + (1 - ee) * x + "," + (1 - ae) * k +
- " " + x + "," + k + " " + x / 2 + ", " + (
- 1 - ae) * k + " 0," + (1 - ae) * k +
- " " + ee * x + "," + ae * k + " " + ee * x +
- "," + ae * k + " 0' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 137:
- if (ce = _t(e, ["p:spPr", "a:prstGeom",
- "a:avLst", "a:gd"
- ]), ue = .5, pe = .5, fe = x / k, void 0 !==
- ce)
- for (he = 0; he < ce.length; he++) be = _t(
- ce[he], ["attrs", "name"]),
- "adj1" === be ? (le = _t(ce[he], [
- "attrs", "fmla"
- ]), ue = .5 - parseInt(le.substr(
- 4)) / 2e5) : "adj2" === be && (de =
- _t(ce[he], ["attrs", "fmla"]), ge =
- parseInt(de.substr(4)) / 1e5, pe =
- ge / fe);
- return h += " <polygon points='" + k / 2 +
- " 0,0 " + pe * x + "," + ue * k + " " + pe *
- x + "," + ue * k + " " + (1 - pe) * x +
- ",0 " + (1 - pe) * x + "," + k / 2 + " " +
- x + ", " + k + " " + (1 - pe) * x + "," + (
- 1 - ue) * k + " " + (1 - pe) * x + "," +
- (1 - ue) * k + " " + pe * x + "," + k +
- " " + pe * x + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' />", t.abrupt("break", 146);
- case 144:
- return t.abrupt("break", 146);
- case 145:
- console.warn("Undefine shape type.");
- case 146:
- if (h += "</svg>", h +=
- "<div class='block content " + et(e, r, a,
- o) + "' _id='" + n + "' _idx='" + i +
- "' _type='" + o + "' Name='" + s +
- "' style='" + Q(d, p, f) + Z(d, p, f) +
- " z-index: " + c + ";transform: rotate(" +
- y + "deg);'>", void 0 === e["p:txBody"]) {
- t.next = 153;
- break
- }
- return t.t1 = h, t.next = 152, z(e["p:txBody"],
- r, a, o, l);
- case 152:
- h = t.t1 += t.sent;
- case 153:
- h += "</div>", t.next = 206;
- break;
- case 156:
- if (void 0 === v) {
- t.next = 185;
- break
- }
- ve = _t(v, ["a:pathLst"]), me = _t(ve, [
- "a:path", "a:close"
- ]), ye = _t(ve, ["a:path", "a:moveTo",
- "a:pt", "attrs"
- ]) || {
- x: "0",
- y: "0"
- }, ke = 96 * parseInt(ye["x"]) / 914400,
- xe = 96 * parseInt(ye["y"]) / 914400, we =
- "M" + ke + "," + xe, Ce = _t(ve, [
- "a:path"
- ]), je = Ce["a:lnTo"], Pe = Ce[
- "a:cubicBezTo"], Re = [], void 0 !==
- je && Object.keys(je).forEach((function(t) {
- var e = je[t]["a:pt"];
- void 0 !== e && Object.keys(e)
- .forEach((function(t) {
- var r = {},
- a = e[t],
- n = a["x"],
- s = a["y"],
- i = a[
- "order"
- ];
- r.type = "lnto",
- r.order = i,
- r.x = n, r
- .y = s, Re
- .push(r)
- }))
- })), void 0 !== Pe && Object.keys(Pe)
- .forEach((function(t) {
- var e = Pe[t]["a:pt"];
- void 0 !== e && Object.keys(e)
- .forEach((function(t) {
- var r = e[t];
- Object.keys(r)
- .forEach((
- function(
- t
- ) {
- var e = {},
- a =
- r[
- t
- ],
- n =
- a[
- "x"
- ],
- s =
- a[
- "y"
- ],
- i =
- a[
- "order"
- ];
- e.type =
- "cubicBezTo",
- e
- .order =
- i,
- e
- .x =
- n,
- e
- .y =
- s,
- Re
- .push(
- e
- )
- }))
- }))
- })), Fe = Re.slice(0), Fe.sort((function(t,
- e) {
- return t.order - e.order
- })), Ie = 0;
- while (Ie < Fe.length) "lnto" === Fe[Ie].type ?
- (Oe = 96 * parseInt(Fe[Ie].x) / 914400, Se =
- 96 * parseInt(Fe[Ie].y) / 914400, we +=
- "L" + Oe + "," + Se, Ie++) : (_e = 96 *
- parseInt(Fe[Ie].x) / 914400, Le = 96 *
- parseInt(Fe[Ie].y) / 914400, De = 96 *
- parseInt(Fe[Ie + 1].x) / 914400, Te =
- 96 * parseInt(Fe[Ie + 1].y) / 914400,
- Ae = 96 * parseInt(Fe[Ie + 2].x) /
- 914400, Ne = 96 * parseInt(Fe[Ie + 2]
- .y) / 914400, we += "C" + _e + "," +
- Le + " " + De + "," + Te + " " + Ae +
- "," + Ne, Ie += 3);
- if (h += "<path d='" + we + "' fill='" + (F ?
- "url(#imgPtrn_" + b + ")" : R ?
- "url(#linGrd_" + b + ")" : P) +
- "' stroke='" + w.color +
- "' stroke-width='" + w.width +
- "' stroke-dasharray='" + w.strokeDasharray +
- "' ", void 0 !== me || (void 0 === C ||
- "triangle" !== C["type"] && "arrow" !==
- C["type"] || (h +=
- "marker-start='url(#markerTriangle_" +
- b + ")' "), void 0 === j ||
- "triangle" !== j["type"] && "arrow" !==
- j["type"] || (h +=
- "marker-end='url(#markerTriangle_" +
- b + ")' ")), h += "/>", h +=
- "</svg>", h +=
- "<div class='block content " + et(e, r, a,
- o) + "' _id='" + n + "' _idx='" + i +
- "' _type='" + o + "' Name='" + s +
- "' style='" + Q(d, p, f) + Z(d, p, f) +
- " z-index: " + c + ";transform: rotate(" +
- y + "deg);'>", void 0 === e["p:txBody"]) {
- t.next = 182;
- break
- }
- return t.t2 = h, t.next = 181, z(e["p:txBody"],
- r, a, o, l);
- case 181:
- h = t.t2 += t.sent;
- case 182:
- h += "</div>", t.next = 206;
- break;
- case 185:
- return t.t3 = h, t.t4 =
- "<div class='block content " + et(e, r, a,
- o) + "' _id='" + n + "' _idx='" + i +
- "' _type='" + o + "' Name='" + s +
- "' style='" + Q(d, p, f) + Z(d, p, f) + dt(
- e, !1), t.next = 189, bt(e, !1, l);
- case 189:
- if (t.t5 = t.sent, t.t6 = t.t4 + t.t5, t.t7 = t
- .t6 + " z-index: ", t.t8 = c, t.t9 = t.t7 +
- t.t8, t.t10 = t.t9 + ";", t.t11 = t.t10 +
- "transform: rotate(", t.t12 = y, t.t13 = t
- .t11 + t.t12, t.t14 = t.t13 + "deg);", h = t
- .t3 += t.t14 + "'>", void 0 === e[
- "p:txBody"]) {
- t.next = 205;
- break
- }
- return t.t15 = h, t.next = 204, z(e["p:txBody"],
- r, a, o, l);
- case 204:
- h = t.t15 += t.sent;
- case 205:
- h += "</div>";
- case 206:
- return t.abrupt("return", h);
- case 207:
- case "end":
- return t.stop()
- }
- }), t)
- }))), N.apply(this, arguments)
- }
-
- function B(t, e) {
- return G.apply(this, arguments)
- }
-
- function G() {
- return G = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var a, n, s, i, o, c, l, u, d;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return a = e["attrs"]["order"], n = e[
- "p:blipFill"]["a:blip"]["attrs"][
- "r:embed"
- ], s = r["slideResObj"][n]["target"], i = A(
- s).toLowerCase(), o = r["zip"], t.next =
- 7, o.file(s).async("arraybuffer");
- case 7:
- return c = t.sent, l = "", u = e["p:spPr"][
- "a:xfrm"
- ], d = Tt(e["p:spPr"]["a:xfrm"]["attrs"][
- "rot"
- ]), l = At(i), t.abrupt("return",
- "<div class='block content' style='" +
- Q(u, void 0, void 0) + Z(u, void 0,
- void 0) + " z-index: " + a +
- ";transform: rotate(" + d +
- "deg);'><img src='data:" + l +
- ";base64," + T(c) +
- "' style='width: 100%; height: 100%'/></div>"
- );
- case 13:
- case "end":
- return t.stop()
- }
- }), t)
- }))), G.apply(this, arguments)
- }
-
- function M(t, e) {
- return E.apply(this, arguments)
- }
-
- function E() {
- return E = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var a, n;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- a = "", n = _t(e, ["a:graphic", "a:graphicData",
- "attrs", "uri"
- ]), t.t0 = n, t.next =
- "http://schemas.openxmlformats.org/drawingml/2006/table" ===
- t.t0 ? 5 :
- "http://schemas.openxmlformats.org/drawingml/2006/chart" ===
- t.t0 ? 9 :
- "http://schemas.openxmlformats.org/drawingml/2006/diagram" ===
- t.t0 ? 13 : 15;
- break;
- case 5:
- return t.next = 7, V(e, r);
- case 7:
- return a = t.sent, t.abrupt("break", 15);
- case 9:
- return t.next = 11, Y(e, r);
- case 11:
- return a = t.sent, t.abrupt("break", 15);
- case 13:
- return a = K(e, r), t.abrupt("break", 15);
- case 15:
- return t.abrupt("return", a);
- case 16:
- case "end":
- return t.stop()
- }
- }), t)
- }))), E.apply(this, arguments)
- }
-
- function z(t, e, r, a, n) {
- return U.apply(this, arguments)
- }
-
- function U() {
- return U = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a, n, s) {
- var i, o, c, l, u, d, p;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- if (i = "", o = s["slideMasterTextStyles"],
- void 0 !== e) {
- t.next = 4;
- break
- }
- return t.abrupt("return", i);
- case 4:
- if (e["a:p"].constructor !== Array) {
- t.next = 21;
- break
- }
- u = 0;
- case 6:
- if (!(u < e["a:p"].length)) {
- t.next = 19;
- break
- }
- return c = e["a:p"][u], l = c["a:r"], i +=
- "<div class='" + tt(c, r, a, n, o) + "'>",
- t.t0 = i, t.next = 13, H(c, r, a, n, s);
- case 13:
- if (i = t.t0 += t.sent, void 0 === l) i += $(c,
- r, a, n, s);
- else if (l.constructor === Array)
- for (d = 0; d < l.length; d++) i += $(l[d],
- r, a, n, s), void 0 !== c["a:br"] &&
- (i += "<br>");
- else i += $(l, r, a, n, s);
- i += "</div>";
- case 16:
- u++, t.next = 6;
- break;
- case 19:
- t.next = 30;
- break;
- case 21:
- return c = e["a:p"], l = c["a:r"], i +=
- "<div class='slide-prgrph " + tt(c, r, a, n,
- o) + "'>", t.t1 = i, t.next = 27, H(c,
- r, a, n, s);
- case 27:
- if (i = t.t1 += t.sent, void 0 === l) i += $(c,
- r, a, n, s);
- else if (l.constructor === Array)
- for (p = 0; p < l.length; p++) i += $(l[p],
- r, a, n, s), void 0 !== c["a:br"] &&
- (i += "<br>");
- else i += $(l, r, a, n, s);
- i += "</div>";
- case 30:
- return t.abrupt("return", i);
- case 31:
- case "end":
- return t.stop()
- }
- }), t)
- }))), U.apply(this, arguments)
- }
-
- function H(t, e, r, a, n) {
- return W.apply(this, arguments)
- }
-
- function W() {
- return W = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a, n, s) {
- var i, o, c, l, u, d, p, f, h, b, g, v, m, y, k, x, w, C, j, P, R, F, I, O,
- S, _, L, D, A, N;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- if (i = s["slideMasterTextStyles"], o = e[
- "a:r"], void 0 !== o ? (c = at(o, n, i),
- l =
- nt(o, r, a, n, i)) : (c = at(e, n, i),
- l = nt(e, r, a, n, i)), p = "", f = e[
- "a:pPr"], h = _t(f, ["attrs", "rtl"]),
- b = !1, void 0 !== h && "1" === h && (b = !
- 0), g = parseInt(_t(f, ["attrs",
- "lvl"
- ])), isNaN(g) && (g = 0), v = _t(f,
- ["a:buChar", "attrs", "char"]), m =
- "TYPE_NONE", y = _t(f, ["a:buAutoNum",
- "attrs", "type"
- ]), k = _t(f, ["a:buBlip"]), void 0 !== v &&
- (m = "TYPE_BULLET"), void 0 !== y && (m =
- "TYPE_NUMERIC"), void 0 !== k && (m =
- "TYPE_BULPIC"), "TYPE_NONE" !== m && (
- x = _t(f, ["a:buFont", "attrs"])), w =
- "NoNe", f && (C = f["a:buClr"], void 0 !==
- C && (w = wt(C))), u = "NoNe" === w ?
- c : "#" + w, j = _t(f, ["a:buSzPts",
- "attrs", "val"
- ]), void 0 !== j ? d = parseInt(j) / 100 +
- "pt" : (j = _t(f, ["a:buSzPct", "attrs",
- "val"
- ]), void 0 !== j ? (P = parseInt(j) /
- 1e5, R = l.substr(0, l.length - 2),
- d = P * parseInt(R) + "pt") : d = l),
- "TYPE_BULLET" !== m) {
- t.next = 27;
- break
- }
- void 0 !== x ? (F = 96 * parseInt(_t(f, [
- "attrs", "marL"
- ])) / 914400, I = parseInt(x[
- "pitchFamily"]), isNaN(F) && (F =
- 31545600 / 914400), isNaN(I) && (I =
- 0), O = x["typeface"], p =
- "<span style='font-family: " + O +
- "; margin-left: " + F * g +
- "px; margin-right: " + I + "px;color:" +
- u + ";font-size:" + d + ";", b && (p +=
- " float: right; direction:rtl"),
- p += "'>" + v + "</span>") : (F =
- 31545600 / 914400 * g, p =
- "<span style='margin-left: " + F +
- "px;'>" + v + "</span>"), t.next = 52;
- break;
- case 27:
- if ("TYPE_NUMERIC" !== m) {
- t.next = 31;
- break
- }
- void 0 !== x ? (F = 96 * parseInt(_t(f, [
- "attrs", "marL"
- ])) / 914400, I = parseInt(x[
- "pitchFamily"]), isNaN(F) && (F =
- 31545600 / 914400), isNaN(I) && (I =
- 0), p =
- "<span style='margin-left: " + F * g +
- "px; margin-right: " + I + "px;color:" +
- u + ";font-size:" + d + ";", p += b ?
- " float: right; direction:rtl;" :
- " float: left; direction:ltr;", p +=
- "' data-bulltname = '" + y +
- "' data-bulltlvl = '" + g +
- "' class='numeric-bullet-style'></span>"
- ) : (F = 31545600 / 914400 * g, p =
- "<span style='margin-left: " + F +
- "px;", p += b ?
- " float: right; direction:rtl;" :
- " float: left; direction:ltr;", p +=
- "' data-bulltname = '" + y +
- "' data-bulltlvl = '" + g +
- "' class='numeric-bullet-style'></span>"
- ), t.next = 52;
- break;
- case 31:
- if ("TYPE_BULPIC" !== m) {
- t.next = 51;
- break
- }
- if (F = 96 * parseInt(_t(f, ["attrs",
- "marL"
- ])) / 914400, I = 96 * parseInt(_t(f,
- ["attrs", "marR"])) / 914400, isNaN(
- I) && (I = 0), F = isNaN(F) ? 31545600 /
- 914400 : 0, S = _t(k, ["a:blip", "attrs",
- "r:embed"
- ]), void 0 === S) {
- t.next = 45;
- break
- }
- return L = s["slideResObj"][S]["target"], t
- .next = 41, s["zip"].file(L).async(
- "arraybuffer");
- case 41:
- D = t.sent, A = L.split(".").pop(), N = At(A),
- _ = "<img src='data:" + N + ";base64," + T(
- D) +
- "' style='width: 100%; height: 100%'/>";
- case 45:
- void 0 === S && (_ = "‣"), p =
- "<span style='margin-left: " + F * g +
- "px; margin-right: " + I + "px;width:" + d +
- ";display: inline-block; ", b && (p +=
- " float: right;direction:rtl"), p +=
- "'>" + _ + " </span>", t.next = 52;
- break;
- case 51:
- p = "<span style='margin-left: " + 31545600 /
- 914400 * g +
- "px; margin-right: 0px;'></span>";
- case 52:
- return t.abrupt("return", p);
- case 53:
- case "end":
- return t.stop()
- }
- }), t)
- }))), W.apply(this, arguments)
- }
-
- function $(t, e, r, a, n) {
- var s = n["slideMasterTextStyles"],
- i = t["a:t"];
- "string" === typeof i || i instanceof String || (i = _t(t, ["a:fld", "a:t"]), "string" ===
- typeof i || i instanceof String || (i = " "));
- var c = "color:" + at(t, a, s) + ";font-size:" + nt(t, e, r, a, s) + ";font-family:" + rt(t, a,
- s) + ";font-weight:" + st(t, a, s) + ";font-style:" + it(t, a, s) +
- ";text-decoration:" + ot(t, a, s) + ";text-align:" + ct(t, a, s) + ";vertical-align:" + lt(
- t, a, s) + ";",
- l = _t(t, ["a:rPr", "a:highlight"]);
- void 0 !== l && (c += "background-color:#" + wt(l) + ";", c += "Opacity:" + Ft(l) + ";");
- var u = "";
- c in o ? u = o[c]["name"] : (u = "_css_" + (Object.keys(o).length + 1), o[c] = {
- name: u,
- text: c
- });
- var d = _t(t, ["a:rPr", "a:hlinkClick", "attrs", "r:id"]);
- if (void 0 !== d) {
- var p = n["slideResObj"][d]["target"];
- return "<span class='text-block " + u + "'><a href='" + p + "' target='_blank'>" + i
- .replace(/\s/i, " ") + "</a></span>"
- }
- return "<span class='text-block " + u + "'>" + i.replace(/\s/i, " ") + "</span>"
- }
-
- function X() {
- var t = "";
- for (var e in o) t += "section ." + o[e]["name"] + "{" + o[e]["text"] + "}\n";
- return t
- }
-
- function V(t, e) {
- return q.apply(this, arguments)
- }
-
- function q() {
- return q = Object(l["a"])(regeneratorRuntime.mark((function e(r, a) {
- var n, s, i, o, c, l, u, d, p, f, h, b, g, v, m, y, k, x, w, C, j, P, R, F,
- I, O, S, _, L, D, T, A, N, B, G, M, E, U, H, W, $, X, V, q, Y, J, K, tt,
- et, rt, at, nt, st, it, ot, ct, lt, dt, pt, ft, ht, bt, gt, vt, mt, yt,
- kt, xt, Ct, jt, Pt, Rt, It;
- return regeneratorRuntime.wrap((function(e) {
- while (1) switch (e.prev = e.next) {
- case 0:
- if (n = r["attrs"]["order"], s = _t(r, [
- "a:graphic", "a:graphicData",
- "a:tbl"
- ]), i = _t(r, ["p:xfrm"]), o = _t(r, [
- "a:graphic", "a:graphicData",
- "a:tbl", "a:tblPr"
- ]), c = _t(r, ["a:graphic", "a:graphicData",
- "a:tbl", "a:tblGrid", "a:gridCol"
- ]), l = "", void 0 !== o && (u = o["attrs"][
- "rtl"
- ], l = 1 === u ? "dir=rtl" : "dir=ltr"), d =
- o["attrs"]["firstRow"], p = o["attrs"][
- "bandRow"
- ], f = "<table " + l +
- " style='border-collapse: collapse;" + Q(i,
- void 0, void 0) + Z(i, void 0, void 0) +
- " z-index: " + n + ";'>", h = s["a:tr"], h
- .constructor !== Array) {
- e.next = 66;
- break
- }
- b = 0;
- case 13:
- if (!(b < h.length)) {
- e.next = 64;
- break
- }
- if (g = h[b]["attrs"]["h"], v = 0, m = "",
- void 0 !== g && (v = 96 * parseInt(g) /
- 914400, m += "height:" + v + "px;"),
- y = {}, k = o["a:tableStyleId"], void 0 !==
- k)
- for (x = t["a:tblStyleLst"]["a:tblStyle"] ||
- [], w = 0; w < x.length; w++) x[w][
- "attrs"
- ]["styleId"] === k && (y = x[w]);
- if (0 === b && void 0 !== d ? (C = "fff", j = 1,
- void 0 !== y["a:firstRow"] && (P = _t(y,
- ["a:firstRow", "a:tcStyle",
- "a:fill", "a:solidFill"
- ]), void 0 !== P && (C = wt(P),
- j = Ft(P)), R = _t(y, [
- "a:firstRow", "a:tcStyle",
- "a:tcBdr"
- ]), void 0 !== R && (F = ut(R), m +=
- F), _t(y, ["a:firstRow",
- "a:tcTxStyle"
- ])), m += " background-color:#" + C +
- "; opacity:" + j + ";") : b > 0 &&
- void 0 !== p && (I = "fff", O = 1, b % 2 ===
- 0 ? void 0 !== y["a:band2H"] && (S = _t(
- y, ["a:band2H", "a:tcStyle",
- "a:fill", "a:solidFill"
- ]), void 0 !== S && (I = wt(S),
- O = Ft(S)), _ = _t(y, [
- "a:band2H", "a:tcStyle",
- "a:tcBdr"
- ]), void 0 !== _ && (L = ut(_), m +=
- L), _t(y, ["a:band2H",
- "a:tcTxStyle"
- ])) : void 0 !== y["a:band1H"] && (D =
- _t(y, ["a:band1H", "a:tcStyle",
- "a:fill", "a:solidFill"
- ]), void 0 !== D && (I = wt(D), O =
- Ft(D)), T = _t(y, ["a:band1H",
- "a:tcStyle", "a:tcBdr"
- ]), void 0 !== T && (A = ut(T), m +=
- A), _t(y, ["a:band1H",
- "a:tcTxStyle"
- ])), m += " background-color:#" +
- I + "; opacity:" + O + ";"), f +=
- "<tr style='" + m + "'>", N = h[b]["a:tc"],
- N.constructor !== Array) {
- e.next = 48;
- break
- }
- B = 0;
- case 26:
- if (!(B < N.length)) {
- e.next = 46;
- break
- }
- return e.next = 29, z(N[B]["a:txBody"], void 0,
- void 0, void 0, a);
- case 29:
- if (G = e.sent, M = _t(N[B], ["attrs",
- "rowSpan"
- ]), E = _t(N[B], ["attrs",
- "gridSpan"
- ]), U = _t(N[B], ["attrs", "vMerge"]), H =
- _t(N[B], ["attrs", "hMerge"]), W = c[B][
- "attrs"
- ]["w"], $ = "", void 0 !== W && (X = 96 *
- parseInt(W) / 914400, $ += "width:" +
- X + "px;"), V = N[B]["a:tcPr"][
- "a:solidFill"
- ], q = "", Y = 1, void 0 !== V) q = wt(V),
- Y = Ft(V);
- else if (J = o["a:tableStyleId"], void 0 !== J)
- for (K = t["a:tblStyleLst"]["a:tblStyle"] ||
- [], tt = 0; tt < K.length; tt++) K[tt][
- "attrs"
- ]["styleId"];
- "" !== q && ($ += " background-color:#" + q +
- ";", $ += " opacity" + Y + ";"),
- void 0 !== M ? f += "<td rowspan='" +
- parseInt(M) + "' style='" + $ + "'>" + G +
- "</td>" : void 0 !== E ? f +=
- "<td colspan='" + parseInt(E) +
- "' style='" + $ + "'>" + G + "</td>" :
- void 0 === U && void 0 === H && (f +=
- "<td style='" + $ + "'>" + G + "</td>");
- case 43:
- B++, e.next = 26;
- break;
- case 46:
- e.next = 60;
- break;
- case 48:
- return e.next = 50, z(N["a:txBody"]);
- case 50:
- et = e.sent, rt = c[0]["attrs"]["w"], at = "",
- void 0 !== rt && (nt = 96 * parseInt(rt) /
- 914400, at += "width:" + nt + "px;"),
- st = N["a:tcPr"]["a:solidFill"], it = "",
- ot = 1, void 0 !== st && (it = wt(st), ot =
- Ft(st)), "" !== it && (at +=
- " background-color:#" + it + ";", at +=
- " opacity" + ot + ";"), f +=
- "<td style='" + at + "'>" + et + "</td>";
- case 60:
- f += "</tr>";
- case 61:
- b++, e.next = 13;
- break;
- case 64:
- e.next = 103;
- break;
- case 66:
- if (ct = h["attrs"]["h"], lt = 0, void 0 !==
- ct ? (lt = 96 * parseInt(ct) / 914400, f +=
- "<tr style='height:" + lt + "px;'>") :
- f += "<tr>", dt = h["a:tc"], dt
- .constructor !== Array) {
- e.next = 90;
- break
- }
- pt = 0;
- case 72:
- if (!(pt < dt.length)) {
- e.next = 88;
- break
- }
- return e.next = 75, z(dt[pt]["a:txBody"]);
- case 75:
- ft = e.sent, ht = c[pt]["attrs"]["w"], bt = "",
- void 0 !== ht && (gt = 96 * parseInt(ht) /
- 914400, bt += "width:" + gt + "px;"),
- vt = dt[pt]["a:tcPr"]["a:solidFill"], mt =
- "", yt = 1, void 0 !== vt && (mt = wt(vt),
- yt = Ft(vt)), "" !== mt && (bt +=
- " background-color:#" + mt + ";", bt +=
- " opacity" + yt + ";"), f +=
- "<td style='" + bt + "'>" + ft + "</td>";
- case 85:
- pt++, e.next = 72;
- break;
- case 88:
- e.next = 102;
- break;
- case 90:
- return e.next = 92, z(dt["a:txBody"]);
- case 92:
- kt = e.sent, xt = c[0]["attrs"]["w"], Ct = "",
- void 0 !== xt && (jt = 96 * parseInt(xt) /
- 914400, Ct += "width:" + jt + "px;"),
- Pt = dt["a:tcPr"]["a:solidFill"], Rt = "",
- It = 1, void 0 !== Pt && (Rt = wt(Pt), It =
- Ft(Pt)), "" !== Rt && (Ct +=
- " background-color:#" + Rt + ";", Ct +=
- " opacity" + It + ";"), f +=
- "<td style='" + Ct + "'>" + kt + "</td>";
- case 102:
- f += "</tr>";
- case 103:
- return e.abrupt("return", f);
- case 104:
- case "end":
- return e.stop()
- }
- }), e)
- }))), q.apply(this, arguments)
- }
-
- function Y(t, e) {
- return J.apply(this, arguments)
- }
-
- function J() {
- return J = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var s, i, o, c, l, u, p, f, h;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return s = e["attrs"]["order"], i = _t(e, [
- "p:xfrm"
- ]), o = "<div id='chart" + n +
- "' class='block content' style='" + Q(i,
- void 0, void 0) + Z(i, void 0, void 0) +
- " z-index: " + s + ";'></div>", c = e[
- "a:graphic"]["a:graphicData"]["c:chart"]
- ["attrs"]["r:id"], l = r["slideResObj"][c][
- "target"
- ], t.next = 7, d(r["zip"], l);
- case 7:
- u = t.sent, p = _t(u, ["c:chartSpace",
- "c:chart", "c:plotArea"
- ]), f = null, t.t0 = regeneratorRuntime
- .keys(p);
- case 11:
- if ((t.t1 = t.t0()).done) {
- t.next = 32;
- break
- }
- h = t.t1.value, t.t2 = h, t.next =
- "c:lineChart" === t.t2 ? 16 :
- "c:barChart" === t.t2 ? 18 :
- "c:pieChart" === t.t2 ? 20 :
- "c:pie3DChart" === t.t2 ? 22 :
- "c:areaChart" === t.t2 ? 24 :
- "c:scatterChart" === t.t2 ? 26 :
- "c:catAx" === t.t2 ? 28 : "c:valAx" === t
- .t2 ? 29 : 30;
- break;
- case 16:
- return f = {
- type: "createChart",
- data: {
- chartID: "chart" + n,
- chartType: "lineChart",
- chartData: Ot(p[h]["c:ser"])
- }
- }, t.abrupt("break", 30);
- case 18:
- return f = {
- type: "createChart",
- data: {
- chartID: "chart" + n,
- chartType: "barChart",
- chartData: Ot(p[h]["c:ser"])
- }
- }, t.abrupt("break", 30);
- case 20:
- return f = {
- type: "createChart",
- data: {
- chartID: "chart" + n,
- chartType: "pieChart",
- chartData: Ot(p[h]["c:ser"])
- }
- }, t.abrupt("break", 30);
- case 22:
- return f = {
- type: "createChart",
- data: {
- chartID: "chart" + n,
- chartType: "pie3DChart",
- chartData: Ot(p[h]["c:ser"])
- }
- }, t.abrupt("break", 30);
- case 24:
- return f = {
- type: "createChart",
- data: {
- chartID: "chart" + n,
- chartType: "areaChart",
- chartData: Ot(p[h]["c:ser"])
- }
- }, t.abrupt("break", 30);
- case 26:
- return f = {
- type: "createChart",
- data: {
- chartID: "chart" + n,
- chartType: "scatterChart",
- chartData: Ot(p[h]["c:ser"])
- }
- }, t.abrupt("break", 30);
- case 28:
- return t.abrupt("break", 30);
- case 29:
- return t.abrupt("break", 30);
- case 30:
- t.next = 11;
- break;
- case 32:
- return null !== f && a.push(f), n++, t.abrupt(
- "return", o);
- case 35:
- case "end":
- return t.stop()
- }
- }), t)
- }))), J.apply(this, arguments)
- }
-
- function K(t, e) {
- var r = _t(t, ["p:xfrm"]);
- return "<div class='block content' style='border: 1px dotted;" + Q(r, void 0, void 0) + Z(r,
- void 0, void 0) + "'>TODO: diagram</div>"
- }
-
- function Q(t, e, r) {
- var a, n = -1,
- s = -1;
- return void 0 !== t ? a = t["a:off"]["attrs"] : void 0 !== e ? a = e["a:off"]["attrs"] :
- void 0 !== r && (a = r["a:off"]["attrs"]), void 0 === a ? "" : (n = 96 * parseInt(a["x"]) /
- 914400, s = 96 * parseInt(a["y"]) / 914400, isNaN(n) || isNaN(s) ? "" : "top:" + s +
- "px; left:" + n + "px;")
- }
-
- function Z(t, e, r) {
- var a, n = -1,
- s = -1;
- return void 0 !== t ? a = t["a:ext"]["attrs"] : void 0 !== e ? a = e["a:ext"]["attrs"] :
- void 0 !== r && (a = r["a:ext"]["attrs"]), void 0 === a ? "" : (n = 96 * parseInt(a["cx"]) /
- 914400, s = 96 * parseInt(a["cy"]) / 914400, isNaN(n) || isNaN(s) ? "" : "width:" + n +
- "px; height:" + s + "px;")
- }
-
- function tt(t, e, r, a, n) {
- var s = _t(t, ["a:pPr", "attrs", "algn"]);
- if (void 0 === s && (s = _t(e, ["p:txBody", "a:p", "a:pPr", "attrs", "algn"]), void 0 === s && (
- s = _t(r, ["p:txBody", "a:p", "a:pPr", "attrs", "algn"]), void 0 === s))) switch (a) {
- case "title":
- case "subTitle":
- case "ctrTitle":
- s = _t(n, ["p:titleStyle", "a:lvl1pPr", "attrs", "alng"]);
- break;
- default:
- s = _t(n, ["p:otherStyle", "a:lvl1pPr", "attrs", "alng"])
- }
- if (void 0 === s) {
- if ("title" === a || "subTitle" === a || "ctrTitle" === a) return "h-mid";
- if ("sldNum" === a) return "h-right"
- }
- return "ctr" === s ? "h-mid" : "r" === s ? "h-right" : "h-left"
- }
-
- function et(t, e, r, a, n) {
- var s = _t(t, ["p:txBody", "a:bodyPr", "attrs", "anchor"]);
- return void 0 === s && (s = _t(e, ["p:txBody", "a:bodyPr", "attrs", "anchor"]), void 0 === s &&
- (s = _t(r, ["p:txBody", "a:bodyPr", "attrs", "anchor"]))), "ctr" === s ? "v-mid" :
- "b" === s ? "v-down" : "v-up"
- }
-
- function rt(t, e, r) {
- var a = _t(t, ["a:rPr", "a:latin", "attrs", "typeface"]);
- if (void 0 === a) {
- var n = _t(s, ["a:theme", "a:themeElements", "a:fontScheme"]);
- a = _t(n, "title" === e || "subTitle" === e || "ctrTitle" === e ? ["a:majorFont", "a:latin",
- "attrs", "typeface"
- ] : ["a:minorFont", "a:latin", "attrs", "typeface"])
- }
- return void 0 === a ? "inherit" : a
- }
-
- function at(t, e, r) {
- var a = St(t, "a:rPr a:solidFill"),
- n = wt(a);
- return void 0 === n || "FFF" === n ? "#000" : "#" + n
- }
-
- function nt(t, e, r, a, n) {
- var s, i;
- void 0 !== t["a:rPr"] && (s = parseInt(t["a:rPr"]["attrs"]["sz"]) / 100), (isNaN(s) ||
- void 0 === s) && (i = _t(e, ["p:txBody", "a:lstStyle", "a:lvl1pPr", "a:defRPr", "attrs",
- "sz"
- ]), s = parseInt(i) / 100), (isNaN(s) || void 0 === s) && ("title" === a || "subTitle" ===
- a || "ctrTitle" === a ? i = _t(n, ["p:titleStyle", "a:lvl1pPr", "a:defRPr", "attrs",
- "sz"
- ]) : "body" === a ? i = _t(n, ["p:bodyStyle", "a:lvl1pPr", "a:defRPr", "attrs", "sz"]) :
- "dt" === a || "sldNum" === a ? i = "1200" : void 0 === a && (i = _t(n, ["p:otherStyle",
- "a:lvl1pPr", "a:defRPr", "attrs", "sz"
- ])), s = parseInt(i) / 100);
- var o = _t(t, ["a:rPr", "attrs", "baseline"]);
- return void 0 === o || isNaN(s) || (s -= 10), isNaN(s) ? "inherit" : s + "pt"
- }
-
- function st(t, e, r) {
- return void 0 !== t["a:rPr"] && "1" === t["a:rPr"]["attrs"]["b"] ? "bold" : "initial"
- }
-
- function it(t, e, r) {
- return void 0 !== t["a:rPr"] && "1" === t["a:rPr"]["attrs"]["i"] ? "italic" : "normal"
- }
-
- function ot(t, e, r) {
- if (void 0 !== t["a:rPr"]) {
- var a = void 0 !== t["a:rPr"]["attrs"]["u"] ? t["a:rPr"]["attrs"]["u"] : "none",
- n = void 0 !== t["a:rPr"]["attrs"]["strike"] ? t["a:rPr"]["attrs"]["strike"] :
- "noStrike";
- return "none" !== a && "noStrike" === n ? "underline" : "none" === a && "noStrike" !== n ?
- "line-through" : "none" !== a && "noStrike" !== n ? "underline line-through" : "initial"
- }
- return "initial"
- }
-
- function ct(t, e, r) {
- var a = _t(t, ["a:pPr", "attrs", "algn"]),
- n = "initial";
- if (void 0 !== a) switch (a) {
- case "l":
- n = "left";
- break;
- case "r":
- n = "right";
- break;
- case "ctr":
- n = "center";
- break;
- case "just":
- n = "justify";
- break;
- case "dist":
- n = "justify";
- break;
- default:
- n = "initial"
- }
- return n
- }
-
- function lt(t, e, r) {
- var a = _t(t, ["a:rPr", "attrs", "baseline"]);
- return void 0 === a ? "baseline" : parseInt(a) / 1e3 + "%"
- }
-
- function ut(t) {
- var e, r, a = "";
- return void 0 !== t["a:bottom"] && (e = {
- "p:spPr": {
- "a:ln": t["a:bottom"]["a:ln"]
- }
- }, r = dt(e, !1), a += r.replace("border", "border-bottom")), void 0 !== t["a:top"] && (
- e = {
- "p:spPr": {
- "a:ln": t["a:top"]["a:ln"]
- }
- }, r = dt(e, !1), a += r.replace("border", "border-top")), void 0 !== t["a:right"] && (
- e = {
- "p:spPr": {
- "a:ln": t["a:right"]["a:ln"]
- }
- }, r = dt(e, !1), a += r.replace("border", "border-right")), void 0 !== t["a:left"] && (
- e = {
- "p:spPr": {
- "a:ln": t["a:left"]["a:ln"]
- }
- }, r = dt(e, !1), a += r.replace("border", "border-left")), a
- }
-
- function dt(t, e) {
- var r = "border: ",
- a = t["p:spPr"]["a:ln"],
- n = parseInt(_t(a, ["attrs", "w"])) / 12700;
- isNaN(n) || n < 1 ? r += "1pt " : r += n + "pt ";
- var s = _t(a, ["a:prstDash", "attrs", "val"]),
- i = "0";
- switch (s) {
- case "solid":
- r += "solid", i = "0";
- break;
- case "dash":
- r += "dashed", i = "5";
- break;
- case "dashDot":
- r += "dashed", i = "5, 5, 1, 5";
- break;
- case "dot":
- r += "dotted", i = "1, 5";
- break;
- case "lgDash":
- r += "dashed", i = "10, 5";
- break;
- case "lgDashDotDot":
- r += "dashed", i = "10, 5, 1, 5, 1, 5";
- break;
- case "sysDash":
- r += "dashed", i = "5, 2";
- break;
- case "sysDashDot":
- r += "dashed", i = "5, 2, 1, 5";
- break;
- case "sysDashDotDot":
- r += "dashed", i = "5, 2, 1, 5, 1, 5";
- break;
- case "sysDot":
- r += "dotted", i = "2, 5";
- break;
- default:
- r += "solid", i = "0"
- }
- var o = _t(a, ["a:solidFill", "a:srgbClr", "attrs", "val"]);
- if (void 0 === o) {
- var c = _t(a, ["a:solidFill", "a:schemeClr"]);
- if (void 0 !== c) {
- var l = "a:" + _t(c, ["attrs", "val"]);
- o = It(l, void 0)
- }
- }
- if (void 0 === o) {
- var u = _t(t, ["p:style", "a:lnRef", "a:schemeClr"]);
- if (void 0 !== u) {
- var d = "a:" + _t(u, ["attrs", "val"]);
- o = It(d, void 0)
- }
- if (void 0 !== o) {
- var p = _t(u, ["a:shade", "attrs", "val"]);
- if (void 0 !== p) {
- p = parseInt(p) / 1e5;
- var f = new P("#" + o);
- f.setLum(f.hsl.l * p), o = f.hex.replace("#", "")
- }
- }
- }
- return o = void 0 === o ? e ? "none" : "#000" : "#" + o, r += " " + o + " ", e ? {
- color: o,
- width: n,
- type: s,
- strokeDasharray: i
- } : r + ";"
- }
-
- function pt(t, e, r, a) {
- return ft.apply(this, arguments)
- }
-
- function ft() {
- return ft = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a, n) {
- var i, o, c, l, u, d, p, f, h, b, g, v, m, y, k, x, w, C, j, P, R, F, I, O,
- S, _, L, D, T, A, N, B, G, M, E, z, U, H, W, $, X, V, q, Y, J, K, Q, Z,
- tt, et, rt, at, nt, st, it, ot, ct, lt, ut, dt, pt, ft, bt, gt, mt, kt,
- xt, Ct, jt, Pt, Rt, Ot, St, Lt, Dt, At, Nt, Bt, Gt, Mt, Et, zt, Ut, Ht,
- Wt, $t, Xt, Vt, qt, Yt, Jt, Kt;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- if (i = _t(e, ["p:sld", "p:cSld", "p:bg",
- "p:bgPr"
- ]), o = _t(e, ["p:sld", "p:cSld", "p:bg",
- "p:bgRef"
- ]), void 0 === i) {
- t.next = 32;
- break
- }
- if (l = vt(i), "SOLID_FILL" !== l) {
- t.next = 11;
- break
- }
- u = i["a:solidFill"], d = wt(u), p = Ft(u), c =
- "background: rgba(" + ht(d) + "," + p +
- ");", t.next = 30;
- break;
- case 11:
- if ("GRADIENT_FILL" !== l) {
- t.next = 24;
- break
- }
- for (f = i["a:gradFill"], h = f["a:gsLst"][
- "a:gs"
- ], b = [], g = [], v = 0; v < h.length; v++)
- m = void 0, y = void 0, void 0 !== h[v][
- "a:srgbClr"
- ] ? (y = _t(h[v], ["a:srgbClr", "attrs",
- "val"
- ]), m = _t(h[v], ["a:srgbClr", "a:tint",
- "attrs", "val"
- ])) : void 0 !== h[v]["a:schemeClr"] && (k =
- _t(h[v], ["a:schemeClr", "attrs",
- "val"
- ]), y = It("a:" + k, a), m =
- _t(h[v], ["a:schemeClr", "a:tint",
- "attrs", "val"
- ])), b[v] = y, g[v] = void 0 !== m ?
- parseInt(m) / 1e5 : 1;
- for (x = f["a:lin"], w = 90, void 0 !== x && (
- w = Tt(x["attrs"]["ang"]) + 90), c =
- "background: linear-gradient(" + w + "deg,",
- C = 0; C < h.length; C++) C === h.length -
- 1 ? c += "rgba(" + ht(b[C]) + "," + g[C] +
- "));" : c += "rgba(" + ht(b[C]) + "," + g[
- C] + "), ";
- t.next = 30;
- break;
- case 24:
- if ("PIC_FILL" !== l) {
- t.next = 30;
- break
- }
- return t.next = 27, yt("slideBg", i[
- "a:blipFill"], n);
- case 27:
- j = t.sent, P = i["attrs"]["order"], c =
- "background-image: url(" + j +
- "); z-index: " + P + ";";
- case 30:
- t.next = 107;
- break;
- case 32:
- if (void 0 === o) {
- t.next = 38;
- break
- }
- if (void 0 !== o["a:srgbClr"] ? R = _t(o, [
- "a:srgbClr", "attrs", "val"
- ]) : void 0 !== o["a:schemeClr"] && (F = _t(
- o, ["a:schemeClr", "attrs", "val"]),
- R = It("a:" + F, a)), I = Number(o[
- "attrs"]["idx"]), 0 === I || 1e3 === I);
- else if (I > 0 && I < 1e3);
- else if (I > 1e3)
- if (O = I - 1e3, S = s["a:theme"][
- "a:themeElements"
- ]["a:fmtScheme"]["a:bgFillStyleLst"],
- _ = [], Object.keys(S).forEach((
- function(t) {
- var e = S[t];
- if ("attrs" !== t)
- if (e.constructor ===
- Array)
- for (var r = 0; r <
- e.length; r++) {
- var a = {};
- a[t] = e[r], a[
- "idex"
- ] = e[r]
- ["attrs"][
- "order"
- ], _.push(a)
- } else {
- var n = {};
- n[t] = e, n[
- "idex"
- ] = e[
- "attrs"]
- ["order"], _
- .push(n)
- }
- })), L = _.slice(0), L.sort((
- function(t, e) {
- return t.idex - e.idex
- })), D = L[O - 1], T = vt(D),
- "SOLID_FILL" === T) A = D[
- "a:solidFill"], N = Ft(A), c =
- "background: rgba(" + ht(R) + "," + N +
- ");";
- else if ("GRADIENT_FILL" === T) {
- for (B = D["a:gradFill"], G = B["a:gsLst"][
- "a:gs"
- ], M = [], E = 0; E < G.length; E++) z =
- _t(G[E], ["a:schemeClr", "a:tint",
- "attrs", "val"
- ]), M[E] = void 0 !== z ? parseInt(z) /
- 1e5 : 1;
- for (U = B["a:lin"], H = 90, void 0 !== U &&
- (H = Tt(U["attrs"]["ang"]) + 90), c =
- "background: linear-gradient(" + H +
- "deg,", W = 0; W < G.length; W++) W ===
- G.length - 1 ? c += "rgba(" + ht(R) +
- "," + M[W] + "));" : c += "rgba(" + ht(
- R) + "," + M[W] + "), "
- }
- t.next = 107;
- break;
- case 38:
- if (i = _t(r, ["p:sldLayout", "p:cSld", "p:bg",
- "p:bgPr"
- ]), o = _t(r, ["p:sldLayout", "p:cSld",
- "p:bg", "p:bgRef"
- ]), void 0 === i) {
- t.next = 70;
- break
- }
- if ($ = vt(i), "SOLID_FILL" !== $) {
- t.next = 49;
- break
- }
- X = i["a:solidFill"], V = wt(X), q = Ft(X), c =
- "background: rgba(" + ht(V) + "," + q +
- ");", t.next = 68;
- break;
- case 49:
- if ("GRADIENT_FILL" !== $) {
- t.next = 62;
- break
- }
- for (Y = i["a:gradFill"], J = Y["a:gsLst"][
- "a:gs"
- ], K = [], Q = [], Z = 0; Z < J.length; Z++)
- tt = void 0, et = void 0, void 0 !== J[Z][
- "a:srgbClr"
- ] ? (et = _t(J[Z], ["a:srgbClr", "attrs",
- "val"
- ]), tt = _t(J[Z], ["a:srgbClr",
- "a:tint", "attrs", "val"
- ])) : void 0 !== J[Z]["a:schemeClr"] && (
- rt = _t(J[Z], ["a:schemeClr", "attrs",
- "val"
- ]), et = It("a:" + rt, a), tt = _t(J[Z],
- ["a:schemeClr", "a:tint", "attrs",
- "val"
- ])), K[Z] = et, Q[Z] = void 0 !==
- tt ? parseInt(tt) / 1e5 : 1;
- for (at = Y["a:lin"], nt = 90, void 0 !== at &&
- (nt = Tt(at["attrs"]["ang"]) + 90), c =
- "background: linear-gradient(" + nt +
- "deg,", st = 0; st < J.length; st++) st ===
- J.length - 1 ? c += "rgba(" + ht(K[st]) +
- "," + Q[st] + "));" : c += "rgba(" + ht(K[
- st]) + "," + Q[st] + "), ";
- t.next = 68;
- break;
- case 62:
- if ("PIC_FILL" !== $) {
- t.next = 68;
- break
- }
- return t.next = 65, yt("layoutBg", i[
- "a:blipFill"], n);
- case 65:
- it = t.sent, ot = i["attrs"]["order"], c =
- "background-image: url(" + it +
- "); z-index: " + ot + ";";
- case 68:
- t.next = 107;
- break;
- case 70:
- if (void 0 === o) {
- t.next = 74;
- break
- }
- c = "background: red;", t.next = 107;
- break;
- case 74:
- if (i = _t(a, ["p:sldMaster", "p:cSld", "p:bg",
- "p:bgPr"
- ]), o = _t(a, ["p:sldMaster", "p:cSld",
- "p:bg", "p:bgRef"
- ]), void 0 === i) {
- t.next = 106;
- break
- }
- if (ct = vt(i), "SOLID_FILL" !== ct) {
- t.next = 85;
- break
- }
- lt = i["a:solidFill"], ut = wt(lt), dt = Ft(lt),
- c = "background: rgba(" + ht(ut) + "," +
- dt + ");", t.next = 104;
- break;
- case 85:
- if ("GRADIENT_FILL" !== ct) {
- t.next = 98;
- break
- }
- for (pt = i["a:gradFill"], ft = pt["a:gsLst"][
- "a:gs"
- ], bt = [], gt = [], mt = 0; mt < ft
- .length; mt++) kt = void 0, xt = void 0,
- void 0 !== ft[mt]["a:srgbClr"] ? (xt = _t(
- ft[mt], ["a:srgbClr", "attrs",
- "val"
- ]), kt = _t(ft[mt], [
- "a:srgbClr", "a:tint", "attrs",
- "val"
- ])) : void 0 !== ft[mt]["a:schemeClr"] && (
- Ct = _t(ft[mt], ["a:schemeClr", "attrs",
- "val"
- ]), xt = It("a:" + Ct, a), kt = _t(ft[
- mt], ["a:schemeClr", "a:tint",
- "attrs", "val"
- ])), bt[mt] = xt, gt[mt] = void 0 !==
- kt ? parseInt(kt) / 1e5 : 1;
- for (jt = pt["a:lin"], Pt = 90, void 0 !== jt &&
- (Pt = Tt(jt["attrs"]["ang"]) + 90), c =
- "background: linear-gradient(" + Pt +
- "deg,", Rt = 0; Rt < ft.length; Rt++) Rt ===
- ft.length - 1 ? c += "rgba(" + ht(bt[Rt]) +
- "," + gt[Rt] + "));" : c += "rgba(" + ht(bt[
- Rt]) + "," + gt[Rt] + "), ";
- t.next = 104;
- break;
- case 98:
- if ("PIC_FILL" !== ct) {
- t.next = 104;
- break
- }
- return t.next = 101, yt("masterBg", i[
- "a:blipFill"], n);
- case 101:
- Ot = t.sent, St = i["attrs"]["order"], c =
- "background-image: url(" + Ot +
- "); z-index: " + St + ";";
- case 104:
- t.next = 107;
- break;
- case 106:
- if (void 0 !== o)
- if (void 0 !== o["a:srgbClr"] ? Lt = _t(o, [
- "a:srgbClr", "attrs", "val"
- ]) : void 0 !== o["a:schemeClr"] && (
- Dt = _t(o, ["a:schemeClr", "attrs",
- "val"
- ]), Lt = It("a:" + Dt, a)), At =
- Number(o["attrs"]["idx"]), 0 === At ||
- 1e3 === At);
- else if (At > 0 && At < 1e3);
- else if (At > 1e3)
- if (Nt = At - 1e3, Bt = s["a:theme"][
- "a:themeElements"
- ]["a:fmtScheme"]["a:bgFillStyleLst"],
- Gt = [], Object.keys(Bt).forEach((
- function(t) {
- var e = Bt[t];
- if ("attrs" !== t)
- if (e.constructor ===
- Array)
- for (var r = 0; r <
- e.length; r++) {
- var a = {};
- a[t] = e[r], a[
- "idex"
- ] = e[r]
- ["attrs"][
- "order"
- ], Gt.push(
- a)
- } else {
- var n = {};
- n[t] = e, n[
- "idex"
- ] = e[
- "attrs"]
- ["order"],
- Gt.push(n)
- }
- })), Mt = Gt.slice(0), Mt.sort((
- function(t, e) {
- return t.idex - e.idex
- })), Et = Mt[Nt - 1], zt = vt(Et),
- "SOLID_FILL" === zt) Ut = Et[
- "a:solidFill"], Ht = Ft(Ut), c =
- "background: rgba(" + ht(Lt) + "," +
- Ht + ");";
- else if ("GRADIENT_FILL" === zt) {
- for (Wt = Et["a:gradFill"], $t = Wt[
- "a:gsLst"]["a:gs"], Xt = [], Vt =
- 0; Vt < $t.length; Vt++) qt = _t($t[Vt],
- ["a:schemeClr", "a:tint", "attrs",
- "val"
- ]), Xt[Vt] = void 0 !== qt ?
- parseInt(qt) / 1e5 : 1;
- for (Yt = Wt["a:lin"], Jt = 90, void 0 !==
- Yt && (Jt = Tt(Yt["attrs"]["ang"]) +
- 90), c =
- "background: linear-gradient(" + Jt +
- "deg,", Kt = 0; Kt < $t.length; Kt++)
- Kt === $t.length - 1 ? c += "rgba(" +
- ht(Lt) + "," + Xt[Kt] + "));" : c +=
- "rgba(" + ht(Lt) + "," + Xt[Kt] + "), "
- }
- case 107:
- return t.abrupt("return", c);
- case 108:
- case "end":
- return t.stop()
- }
- }), t)
- }))), ft.apply(this, arguments)
- }
-
- function ht() {
- var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "FFFFFF",
- e = new ArrayBuffer(4),
- r = new DataView(e);
- r.setUint32(0, parseInt(t, 16), !1);
- var a = new Uint8Array(e);
- return a[1] + "," + a[2] + "," + a[3]
- }
-
- function bt(t, e, r) {
- return gt.apply(this, arguments)
- }
-
- function gt() {
- return gt = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a) {
- var n, s, i, o, c, l, u, d, p, f, h, b;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- if (n = vt(_t(e, ["p:spPr"])), "NO_FILL" !==
- n) {
- t.next = 5;
- break
- }
- return t.abrupt("return", r ? "none" :
- "background-color: initial;");
- case 5:
- if ("SOLID_FILL" !== n) {
- t.next = 10;
- break
- }
- i = e["p:spPr"]["a:solidFill"], s = wt(i), t
- .next = 25;
- break;
- case 10:
- if ("GRADIENT_FILL" !== n) {
- t.next = 15;
- break
- }
- o = e["p:spPr"]["a:gradFill"], s = mt(o), t
- .next = 25;
- break;
- case 15:
- if ("PATTERN_FILL" !== n) {
- t.next = 20;
- break
- }
- c = e["p:spPr"]["a:pattFill"], s = xt(c), t
- .next = 25;
- break;
- case 20:
- if ("PIC_FILL" !== n) {
- t.next = 25;
- break
- }
- return l = e["p:spPr"]["a:blipFill"], t.next =
- 24, yt("slideBg", l, a);
- case 24:
- s = t.sent;
- case 25:
- if (void 0 === s && (u = _t(e, ["p:style",
- "a:fillRef"
- ]), s = wt(u)), void 0 === s) {
- t.next = 56;
- break
- }
- if ("GRADIENT_FILL" !== n) {
- t.next = 39;
- break
- }
- if (!r) {
- t.next = 32;
- break
- }
- return t.abrupt("return", s);
- case 32:
- for (d = s.color, p = s.rot, f =
- "background: linear-gradient(" + p + "deg,",
- h = 0; h < d.length; h++) h === d.length -
- 1 ? f += d[h] + ");" : f += d[h] + ", ";
- return t.abrupt("return", f);
- case 37:
- t.next = 54;
- break;
- case 39:
- if ("PIC_FILL" !== n) {
- t.next = 47;
- break
- }
- if (!r) {
- t.next = 44;
- break
- }
- return t.abrupt("return", s);
- case 44:
- return t.abrupt("return",
- "background-image:url(" + s + ");");
- case 45:
- t.next = 54;
- break;
- case 47:
- if (!r) {
- t.next = 53;
- break
- }
- return b = new P(s), s = b.rgb.toString(), t
- .abrupt("return", s);
- case 53:
- return t.abrupt("return",
- "background-color: #" + s + ";");
- case 54:
- t.next = 61;
- break;
- case 56:
- if (!r) {
- t.next = 60;
- break
- }
- return t.abrupt("return", "none");
- case 60:
- return t.abrupt("return",
- "background-color: initial;");
- case 61:
- case "end":
- return t.stop()
- }
- }), t)
- }))), gt.apply(this, arguments)
- }
-
- function vt(t) {
- var e = "";
- return void 0 !== t["a:noFill"] && (e = "NO_FILL"), void 0 !== t["a:solidFill"] && (e =
- "SOLID_FILL"), void 0 !== t["a:gradFill"] && (e = "GRADIENT_FILL"), void 0 !== t[
- "a:pattFill"] && (e = "PATTERN_FILL"), void 0 !== t["a:blipFill"] && (e = "PIC_FILL"), e
- }
-
- function mt(t) {
- for (var e = t["a:gsLst"]["a:gs"], r = [], a = 0; a < e.length; a++) {
- var n = wt(e[a]);
- if (void 0 !== e[a]["a:srgbClr"]) {
- var s = parseInt(_t(t, ["a:srgbClr", "a:lumMod", "attrs", "val"])) / 1e5,
- i = parseInt(_t(t, ["a:srgbClr", "a:lumOff", "attrs", "val"])) / 1e5;
- isNaN(s) && (s = 1), isNaN(i) && (i = 0), n = Dt(n, s, i)
- } else if (void 0 !== e[a]["a:schemeClr"]) {
- var o = parseInt(_t(e[a], ["a:schemeClr", "a:lumMod", "attrs", "val"])) / 1e5,
- c = parseInt(_t(e[a], ["a:schemeClr", "a:lumOff", "attrs", "val"])) / 1e5;
- isNaN(o) && (o = 1), isNaN(c) && (c = 0), n = Dt(n, o, c)
- }
- r[a] = n
- }
- var l = t["a:lin"],
- u = 0;
- return void 0 !== l && (u = Tt(l["attrs"]["ang"]) + 90), {
- color: r,
- rot: u
- }
- }
-
- function yt(t, e, r) {
- return kt.apply(this, arguments)
- }
-
- function kt() {
- return kt = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a) {
- var n, s, i, o, c, l;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- if (s = r["a:blip"]["attrs"]["r:embed"],
- "slideBg" === e ? i = _t(a, ["slideResObj",
- s, "target"
- ]) : "layoutBg" === e ? i = _t(a, [
- "layoutResObj", s, "target"
- ]) : "masterBg" === e && (i = _t(a, [
- "masterResObj", s, "target"
- ])), void 0 !== i) {
- t.next = 4;
- break
- }
- return t.abrupt("return", void 0);
- case 4:
- if (o = i.split(".").pop(), "xml" !== o) {
- t.next = 7;
- break
- }
- return t.abrupt("return", void 0);
- case 7:
- return t.next = 9, a["zip"].file(i).async(
- "arraybuffer");
- case 9:
- return c = t.sent, l = At(o), n = "data:" + l +
- ";base64," + T(c), t.abrupt("return", n);
- case 13:
- case "end":
- return t.stop()
- }
- }), t)
- }))), kt.apply(this, arguments)
- }
-
- function xt(t) {
- var e = t["a:bgClr"];
- return wt(e)
- }
-
- function wt(t) {
- if (void 0 !== t) {
- var e = "FFF";
- if (void 0 !== t["a:srgbClr"]) e = _t(t, ["a:srgbClr", "attrs", "val"]);
- else if (void 0 !== t["a:schemeClr"]) {
- var r = _t(t, ["a:schemeClr", "attrs", "val"]);
- e = It("a:" + r, void 0)
- } else if (void 0 !== t["a:scrgbClr"]) {
- var a = t["a:scrgbClr"]["attrs"],
- n = -1 !== a["r"].indexOf("%") ? a["r"].split("%").shift() : a["r"],
- s = -1 !== a["g"].indexOf("%") ? a["g"].split("%").shift() : a["g"],
- i = -1 !== a["b"].indexOf("%") ? a["b"].split("%").shift() : a["b"];
- e = Ct(Number(n) / 100 * 255) + Ct(Number(s) / 100 * 255) + Ct(Number(i) / 100 * 255)
- } else if (void 0 !== t["a:prstClr"]) {
- var o = t["a:prstClr"]["attrs"]["val"];
- e = Rt(o)
- } else if (void 0 !== t["a:hslClr"]) {
- var c = t["a:hslClr"]["attrs"],
- l = Number(c["hue"]) / 1e5,
- u = Number(-1 !== c["sat"].indexOf("%") ? c["sat"].split("%").shift() : c["sat"]) /
- 100,
- d = Number(-1 !== c["lum"].indexOf("%") ? c["lum"].split("%").shift() : c["lum"]) /
- 100,
- p = jt(l, u, d);
- e = Ct(p.r) + Ct(p.g) + Ct(p.b)
- } else if (void 0 !== t["a:sysClr"]) {
- var f = _t(t, ["a:sysClr", "attrs", "lastClr"]);
- void 0 !== f && (e = f)
- }
- return e
- }
- }
-
- function Ct(t) {
- var e = t.toString(16);
- while (e.length < 2) e = "0" + e;
- return e
- }
-
- function jt(t, e, r) {
- var a, n, s, i, o;
- return t /= 60, n = r <= .5 ? r * (e + 1) : r + e - r * e, a = 2 * r - n, s = 255 * Pt(a, n, t +
- 2), i = 255 * Pt(a, n, t), o = 255 * Pt(a, n, t - 2), {
- r: s,
- g: i,
- b: o
- }
- }
-
- function Pt(t, e, r) {
- return r < 0 && (r += 6), r >= 6 && (r -= 6), r < 1 ? (e - t) * r + t : r < 3 ? e : r < 4 ? (e -
- t) * (4 - r) + t : t
- }
-
- function Rt(t) {
- var e, r = ["AliceBlue", "AntiqueWhite", "Aqua", "Aquamarine", "Azure", "Beige", "Bisque",
- "Black", "BlanchedAlmond", "Blue", "BlueViolet", "Brown", "BurlyWood", "CadetBlue",
- "Chartreuse", "Chocolate", "Coral", "CornflowerBlue", "Cornsilk", "Crimson", "Cyan",
- "DarkBlue", "DarkCyan", "DarkGoldenRod", "DarkGray", "DarkGrey", "DarkGreen",
- "DarkKhaki", "DarkMagenta", "DarkOliveGreen", "DarkOrange", "DarkOrchid", "DarkRed",
- "DarkSalmon", "DarkSeaGreen", "DarkSlateBlue", "DarkSlateGray", "DarkSlateGrey",
- "DarkTurquoise", "DarkViolet", "DeepPink", "DeepSkyBlue", "DimGray", "DimGrey",
- "DodgerBlue", "FireBrick", "FloralWhite", "ForestGreen", "Fuchsia", "Gainsboro",
- "GhostWhite", "Gold", "GoldenRod", "Gray", "Grey", "Green", "GreenYellow", "HoneyDew",
- "HotPink", "IndianRed", "Indigo", "Ivory", "Khaki", "Lavender", "LavenderBlush",
- "LawnGreen", "LemonChiffon", "LightBlue", "LightCoral", "LightCyan",
- "LightGoldenRodYellow", "LightGray", "LightGrey", "LightGreen", "LightPink",
- "LightSalmon", "LightSeaGreen", "LightSkyBlue", "LightSlateGray", "LightSlateGrey",
- "LightSteelBlue", "LightYellow", "Lime", "LimeGreen", "Linen", "Magenta", "Maroon",
- "MediumAquaMarine", "MediumBlue", "MediumOrchid", "MediumPurple", "MediumSeaGreen",
- "MediumSlateBlue", "MediumSpringGreen", "MediumTurquoise", "MediumVioletRed",
- "MidnightBlue", "MintCream", "MistyRose", "Moccasin", "NavajoWhite", "Navy", "OldLace",
- "Olive", "OliveDrab", "Orange", "OrangeRed", "Orchid", "PaleGoldenRod", "PaleGreen",
- "PaleTurquoise", "PaleVioletRed", "PapayaWhip", "PeachPuff", "Peru", "Pink", "Plum",
- "PowderBlue", "Purple", "RebeccaPurple", "Red", "RosyBrown", "RoyalBlue", "SaddleBrown",
- "Salmon", "SandyBrown", "SeaGreen", "SeaShell", "Sienna", "Silver", "SkyBlue",
- "SlateBlue", "SlateGray", "SlateGrey", "Snow", "SpringGreen", "SteelBlue", "Tan",
- "Teal", "Thistle", "Tomato", "Turquoise", "Violet", "Wheat", "White", "WhiteSmoke",
- "Yellow", "YellowGreen"
- ],
- a = ["f0f8ff", "faebd7", "00ffff", "7fffd4", "f0ffff", "f5f5dc", "ffe4c4", "000000",
- "ffebcd", "0000ff", "8a2be2", "a52a2a", "deb887", "5f9ea0", "7fff00", "d2691e",
- "ff7f50", "6495ed", "fff8dc", "dc143c", "00ffff", "00008b", "008b8b", "b8860b",
- "a9a9a9", "a9a9a9", "006400", "bdb76b", "8b008b", "556b2f", "ff8c00", "9932cc",
- "8b0000", "e9967a", "8fbc8f", "483d8b", "2f4f4f", "2f4f4f", "00ced1", "9400d3",
- "ff1493", "00bfff", "696969", "696969", "1e90ff", "b22222", "fffaf0", "228b22",
- "ff00ff", "dcdcdc", "f8f8ff", "ffd700", "daa520", "808080", "808080", "008000",
- "adff2f", "f0fff0", "ff69b4", "cd5c5c", "4b0082", "fffff0", "f0e68c", "e6e6fa",
- "fff0f5", "7cfc00", "fffacd", "add8e6", "f08080", "e0ffff", "fafad2", "d3d3d3",
- "d3d3d3", "90ee90", "ffb6c1", "ffa07a", "20b2aa", "87cefa", "778899", "778899",
- "b0c4de", "ffffe0", "00ff00", "32cd32", "faf0e6", "ff00ff", "800000", "66cdaa",
- "0000cd", "ba55d3", "9370db", "3cb371", "7b68ee", "00fa9a", "48d1cc", "c71585",
- "191970", "f5fffa", "ffe4e1", "ffe4b5", "ffdead", "000080", "fdf5e6", "808000",
- "6b8e23", "ffa500", "ff4500", "da70d6", "eee8aa", "98fb98", "afeeee", "db7093",
- "ffefd5", "ffdab9", "cd853f", "ffc0cb", "dda0dd", "b0e0e6", "800080", "663399",
- "ff0000", "bc8f8f", "4169e1", "8b4513", "fa8072", "f4a460", "2e8b57", "fff5ee",
- "a0522d", "c0c0c0", "87ceeb", "6a5acd", "708090", "708090", "fffafa", "00ff7f",
- "4682b4", "d2b48c", "008080", "d8bfd8", "ff6347", "40e0d0", "ee82ee", "f5deb3",
- "ffffff", "f5f5f5", "ffff00", "9acd32"
- ],
- n = r.indexOf(t);
- return -1 !== n && (e = a[n]), e
- }
-
- function Ft(t) {
- if (void 0 !== t) {
- var e = 1;
- if (void 0 !== t["a:srgbClr"]) {
- var r = _t(t, ["a:srgbClr", "a:tint", "attrs", "val"]);
- void 0 !== r && (e = parseInt(r) / 1e5)
- } else if (void 0 !== t["a:schemeClr"]) {
- var a = _t(t, ["a:schemeClr", "a:tint", "attrs", "val"]);
- void 0 !== a && (e = parseInt(a) / 1e5)
- } else if (void 0 !== t["a:scrgbClr"]) {
- var n = _t(t, ["a:scrgbClr", "a:tint", "attrs", "val"]);
- void 0 !== n && (e = parseInt(n) / 1e5)
- } else if (void 0 !== t["a:prstClr"]) {
- var s = _t(t, ["a:prstClr", "a:tint", "attrs", "val"]);
- void 0 !== s && (e = parseInt(s) / 1e5)
- } else if (void 0 !== t["a:hslClr"]) {
- var i = _t(t, ["a:hslClr", "a:tint", "attrs", "val"]);
- void 0 !== i && (e = parseInt(i) / 1e5)
- } else if (void 0 !== t["a:sysClr"]) {
- var o = _t(t, ["a:sysClr", "a:tint", "attrs", "val"]);
- void 0 !== o && (e = parseInt(o) / 1e5)
- }
- return e
- }
- }
-
- function It(t, e) {
- "" !== i && void 0 !== i || (i = _t(e, ["p:sldMaster", "p:clrMap", "attrs"]) || {});
- var r = t.substr(2);
- switch (r) {
- case "tx1":
- case "tx2":
- case "bg1":
- case "bg2":
- t = "a:" + i[r];
- break
- }
- var a = _t(s, ["a:theme", "a:themeElements", "a:clrScheme", t]),
- n = _t(a, ["a:srgbClr", "attrs", "val"]);
- return void 0 === n && (n = _t(a, ["a:sysClr", "attrs", "lastClr"])), n
- }
-
- function Ot(t) {
- var e = [];
- if (void 0 === t) return e;
- if (void 0 !== t["c:xVal"]) {
- var r = [];
- Lt(t["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"], (function(t, e) {
- return r.push(parseFloat(t["c:v"])), ""
- })), e.push(r), r = [], Lt(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"], (function(t,
- e) {
- return r.push(parseFloat(t["c:v"])), ""
- })), e.push(r)
- } else Lt(t, (function(t, r) {
- var a = [],
- n = _t(t, ["c:tx", "c:strRef", "c:strCache", "c:pt", "c:v"]) || r,
- s = {};
- return void 0 !== _t(t, ["c:cat", "c:strRef", "c:strCache", "c:pt"]) ? Lt(t[
- "c:cat"]["c:strRef"]["c:strCache"]["c:pt"], (function(t, e) {
- return s[t["attrs"]["idx"]] = t["c:v"], ""
- })) : void 0 !== _t(t, ["c:cat", "c:numRef", "c:numCache", "c:pt"]) && Lt(t[
- "c:cat"]["c:numRef"]["c:numCache"]["c:pt"], (function(t, e) {
- return s[t["attrs"]["idx"]] = t["c:v"], ""
- })), void 0 !== _t(t, ["c:val", "c:numRef", "c:numCache", "c:pt"]) && Lt(t[
- "c:val"]["c:numRef"]["c:numCache"]["c:pt"], (function(t, e) {
- return a.push({
- x: t["attrs"]["idx"],
- y: parseFloat(t["c:v"])
- }), ""
- })), e.push({
- key: n,
- values: a,
- xlabels: s
- }), ""
- }));
- return e
- }
-
- function St(t, e) {
- return _t(t, e.trim().split(/\s+/))
- }
-
- function _t(t, e) {
- if (e.constructor !== Array) throw Error("Error of path type! path is not array.");
- if (void 0 !== t) {
- for (var r = e.length, a = 0; a < r; a++)
- if (t = t[e[a]], void 0 === t) return;
- return t
- }
- }
-
- function Lt(t, e) {
- if (void 0 !== t) {
- var r = "";
- if (t.constructor === Array)
- for (var a = t.length, n = 0; n < a; n++) r += e(t[n], n);
- else r += e(t, 0);
- return r
- }
- }
-
- function Dt() {
- var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "#FFFFFF",
- e = arguments.length > 2 ? arguments[2] : void 0,
- r = new P(t);
- return r.setLum(r.hsl.l * (1 + e)), r.rgb.toString()
- }
-
- function Tt(t) {
- return "" === t || null == t ? 0 : Math.round(t / 6e4)
- }
-
- function At(t) {
- var e = "";
- switch (t.toLowerCase()) {
- case "jpg":
- case "jpeg":
- e = "image/jpeg";
- break;
- case "png":
- e = "image/png";
- break;
- case "gif":
- e = "image/gif";
- break;
- case "emf":
- e = "image/x-emf";
- break;
- case "wmf":
- e = "image/x-wmf";
- break;
- case "svg":
- e = "image/svg+xml";
- break;
- default:
- e = "image/*"
- }
- return e
- }
-
- function Nt(t, e, r, a, n) {
- for (var s = Bt(a.length - 2), i = Gt(r, e, t), o = i[0], c = i[1], l = i[2], u = i[3], d = s
- .length, p = d < 20 ? 100 : 1e3, f = ' gradientUnits="userSpaceOnUse" x1="' + o +
- '%" y1="' + c + '%" x2="' + l + '%" y2="' + u + '%"', h =
- '<linearGradient id="linGrd_' + n + '"' + f + ">\n", b = 0; b < d; b++) h +=
- '<stop offset="' + Math.round(parseFloat(s[b]) / 100 * p) / p + '" stop-color="' + a[b] +
- '"', h += "/>\n";
- return h += "</linearGradient>\n", h
- }
-
- function Bt(t) {
- var e = ["0%", "100%"];
- if (0 === t) return !0;
- var r = t;
- while (r--) {
- var a = 100 - 100 / (t + 1) * (r + 1),
- n = a + "%";
- e.splice(-1, 0, n)
- }
- return e
- }
-
- function Gt(t, e, r) {
- var a = parseFloat(r),
- n = parseFloat(e),
- s = parseFloat(t),
- i = 2,
- o = 2,
- c = a / 2,
- l = n / 2,
- u = 2,
- d = 2,
- p = 2,
- f = 2,
- h = (s % 360 + 360) % 360,
- b = (360 - h) * Math.PI / 180,
- g = Math.tan(b),
- v = l - g * c;
- 0 === h ? (u = a, d = l, p = 0, f = l) : h < 90 ? (o = a, i = 0) : 90 === h ? (u = c, d = 0, p =
- c, f = n) : h < 180 ? (o = 0, i = 0) : 180 === h ? (u = 0, d = l, p = a, f = l) : h <
- 270 ? (o = 0, i = n) : 270 === h ? (u = c, d = n, p = c, f = 0) : (o = a, i = n);
- var m = i + o / g;
- u = 2 === u ? g * (m - v) / (Math.pow(g, 2) + 1) : u, d = 2 === d ? g * u + v : d, p = 2 === p ?
- a - u : p, f = 2 === f ? n - d : f;
- var y = Math.round(p / a * 100 * 100) / 100,
- k = Math.round(f / n * 100 * 100) / 100,
- x = Math.round(u / a * 100 * 100) / 100,
- w = Math.round(d / n * 100 * 100) / 100;
- return [y, k, x, w]
- }
-
- function Mt(t, e) {
- var r = '<pattern id="imgPtrn_' + e +
- '" patternContentUnits="objectBoundingBox" width="1" height="1">';
- return r += '<image xlink:href="' + t +
- '" preserveAspectRatio="none" width="1" height="1"></image>', r += "</pattern>", r
- }
- e(function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- t.t0 = e.type, t.next =
- "processPPTX" === t.t0 ? 3 : 13;
- break;
- case 3:
- return t.prev = 3, t.next = 6, c(e
- .data);
- case 6:
- t.next = 12;
- break;
- case 8:
- t.prev = 8, t.t1 = t["catch"](3),
- console.error(
- "AN ERROR HAPPENED DURING processPPTX",
- t.t1), r({
- type: "ERROR",
- data: t.t1.toString()
- });
- case 12:
- return t.abrupt("break", 13);
- case 13:
- case "end":
- return t.stop()
- }
- }), t, null, [
- [3, 8]
- ])
- })));
- return function(e) {
- return t.apply(this, arguments)
- }
- }())
- }
- var B =
- "section {\n width: 100%;\n height: 690px;\n position: relative;\n border: 1px solid #333;\n background-color: #EFEFEF;\n text-align: center;\n border-radius: 10px;\n box-shadow: 1px 1px 3px #AAA;\n overflow: hidden;\n}\n\nsection div.block {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n}\n\nsection div.content {\n display: flex;\n flex-direction: column;\n /*\n justify-content: center;\n align-items: flex-end;\n */\n}\n\nsection div.v-up {\n justify-content: flex-start;\n}\nsection div.v-mid {\n justify-content: center;\n}\nsection div.v-down {\n justify-content: flex-end;\n}\nsection div.h-left {\n align-items: flex-start;\n text-align: left;\n}\nsection div.h-mid {\n align-items: center;\n text-align: center;\n}\nsection div.h-right {\n align-items: flex-end;\n text-align: right;\n}\nsection div.up-left {\n justify-content: flex-start;\n align-items: flex-start;\n text-align: left;\n}\nsection div.up-center {\n justify-content: flex-start;\n align-items: center;\n}\nsection div.up-right {\n justify-content: flex-start;\n align-items: flex-end;\n}\nsection div.center-left {\n justify-content: center;\n align-items: flex-start;\n text-align: left;\n}\nsection div.center-center {\n justify-content: center;\n align-items: center;\n}\nsection div.center-right {\n justify-content: center;\n align-items: flex-end;\n}\nsection div.down-left {\n justify-content: flex-end;\n align-items: flex-start;\n text-align: left;\n}\nsection div.down-center {\n justify-content: flex-end;\n align-items: center;\n}\nsection div.down-right {\n justify-content: flex-end;\n align-items: flex-end;\n}\n\nsection span.text-block {\n /* display: inline-block; */\n}\n\nli.slide {\n margin: 10px 0;\n font-size: 18px;\n}\n\ndiv.footer {\n text-align: center;\n}\n\nsection table {\n position: absolute;\n}\n\nsection table, section th, section td {\n border: 1px solid black;\n}\n\nsection svg.drawing {\n position: absolute;\n overflow: visible;\n}",
- G = r("1157"),
- M = r.n(G),
- E = function(t, e, r) {
- var a = M()(e),
- n = M()('<div class="pptx-wrapper"></div>');
- a.html(""), a.append(n), n.append("<style>".concat(B, "</style>"));
- var s = !1;
- return new Promise((function(e, a) {
- var i = function(t) {
- if (!s) switch (t.type) {
- case "slide":
- n.append(t.data);
- break;
- case "pptx-thumb":
- r && M()(r).attr("src", "data:image/jpeg;base64,".concat(t
- .data));
- break;
- case "slideSize":
- break;
- case "globalCSS":
- n.append("<style>".concat(t.data, "</style>"));
- break;
- case "Done":
- s = !0, U(t.data.charts), e(t.data.time);
- break;
- case "WARN":
- console.warn("PPTX processing warning: ", t.data);
- break;
- case "ERROR":
- s = !0, console.error("PPTX processing error: ", t.data), a(
- new Error(t.data));
- break;
- case "DEBUG":
- break;
- case "INFO":
- default:
- }
- },
- o = {
- postMessage: function() {},
- terminate: function() {}
- };
- N((function(t) {
- o.postMessage = t
- }), i), o.postMessage({
- type: "processPPTX",
- data: t
- })
- })).then((function(t) {
- var e = function() {
- var t = Math.max.apply(Math, Object(d["a"])(Array.from(n.children(
- "section")).map((function(t) {
- return t.offsetWidth
- })))),
- e = n[0].offsetWidth;
- n.css({
- transform: "scale(".concat(e / t, ")"),
- "transform-origin": "top left"
- })
- };
- return e(), window.addEventListener("resize", e), $(M()(".block")), $(M()(
- "table td")), t
- }))
- },
- z = E;
-
- function U(t) {
- for (var e = 0; e < t.length; e++) W(t[e].data)
- }
-
- function H(t) {
- var e = [],
- r = [],
- a = [];
- return t.forEach((function(t, n) {
- var s = t.key;
- a[n] = t.key, t.values.forEach((function(a, n) {
- var i = t.xlabels[n];
- r[n] = t.xlabels[n], e.push({
- name: i,
- group: s,
- value: a.y
- })
- }))
- })), {
- data: e,
- xLabels: r,
- groupLabels: a
- }
- }
-
- function W(t) {
- var e = t.chartID,
- r = t.chartType,
- a = t.chartData,
- n = [];
- switch (r) {
- case "lineChart":
- var s = H(a),
- i = s.data,
- o = s.xLabels,
- c = s.groupLabels;
- n = i;
- var l = document.getElementById(e),
- u = dimple.newSvg("#".concat(e), l.style.width, l.style.height),
- d = new dimple.chart(u, n),
- p = d.addCategoryAxis("x", "name");
- p.addOrderRule(o), p.addGroupOrderRule(c), p.title = null;
- var f = d.addMeasureAxis("y", "value");
- f.title = null, d.addSeries("group", dimple.plot.line), d.addLegend(60, 10, 500, 20,
- "right"), d.draw();
- break;
- case "barChart":
- var h = H(a),
- b = h.data,
- g = h.xLabels,
- v = h.groupLabels;
- n = b;
- var m = document.getElementById(e),
- y = dimple.newSvg("#" + e, m.style.width, m.style.height),
- k = new dimple.chart(y, n),
- x = k.addCategoryAxis("x", ["name", "group"]);
- x.addOrderRule(g), x.addGroupOrderRule(v), x.title = null;
- var w = k.addMeasureAxis("y", "value");
- w.title = null, k.addSeries("group", dimple.plot.bar), k.addLegend(60, 10, 500, 20,
- "right"), k.draw();
- break;
- case "pieChart":
- case "pie3DChart":
- var C = H(a),
- j = C.data,
- P = C.groupLabels;
- n = j;
- var R = document.getElementById(e),
- F = dimple.newSvg("#".concat(e), R.style.width, R.style.height),
- I = new dimple.chart(F, n),
- O = I.addMeasureAxis("p", "value");
- O.addOrderRule(P), I.addSeries("name", dimple.plot.pie), I.addLegend(50, 20, 400, 300,
- "left"), I.draw();
- break;
- case "areaChart":
- var S = H(a),
- _ = S.data,
- L = S.xLabels,
- D = S.groupLabels;
- n = _;
- var T = document.getElementById(e),
- A = dimple.newSvg("#" + e, T.style.width, T.style.height),
- N = new dimple.chart(A, n),
- B = N.addCategoryAxis("x", "name");
- B.addOrderRule(L), B.addGroupOrderRule(D), B.title = null;
- var G = N.addMeasureAxis("y", "value");
- G.title = null, N.addSeries("group", dimple.plot.area), N.addLegend(60, 10, 500, 20,
- "right"), N.draw();
- break;
- case "scatterChart":
- for (var M = 0; M < a.length; M++) {
- for (var E = [], z = 0; z < a[M].length; z++) E.push({
- x: z,
- y: a[M][z]
- });
- n.push({
- key: "data" + (M + 1),
- values: E
- })
- }
- break;
- default:
- }
- }
-
- function $(t) {
- for (var e = t, r = 0; r < e.length; r++) {
- var a = M()(e[r]).find(".numeric-bullet-style");
- if (a.length > 0)
- for (var n = "", s = "", i = 0, o = [], c = 0, l = [], u = 0; u < a.length; u++) {
- var d = M()(a[u]).data("bulltname"),
- p = M()(a[u]).data("bulltlvl");
- 0 === i ? (n = d, s = p, o[c] = i, l[c] = d, i++) : d === n && p === s ? (n = d, s = p,
- i++, o[c] = i, l[c] = d) : d !== n && p === s || d !== n && Number(p) > Number(
- s) ? (n = d, s = p, c++, o[c] = i, l[c] = d, i = 1) : d !== n && Number(p) <
- Number(s) && (n = d, s = p, c--, i = o[c] + 1);
- var f = X(l[c], i);
- M()(a[u]).html(f)
- }
- }
- }
-
- function X(t, e) {
- var r = "";
- switch (t) {
- case "arabicPeriod":
- r = e + ". ";
- break;
- case "arabicParenR":
- r = e + ") ";
- break;
- case "alphaLcParenR":
- r = J(e, "lowerCase") + ") ";
- break;
- case "alphaLcPeriod":
- r = J(e, "lowerCase") + ". ";
- break;
- case "alphaUcParenR":
- r = J(e, "upperCase") + ") ";
- break;
- case "alphaUcPeriod":
- r = J(e, "upperCase") + ". ";
- break;
- case "romanUcPeriod":
- r = V(e) + ". ";
- break;
- case "romanLcParenR":
- r = V(e) + ") ";
- break;
- case "hebrew2Minus":
- r = q.format(e) + "-";
- break;
- default:
- r = e
- }
- return r
- }
-
- function V(t) {
- if (!+t) return !1;
- var e = String(+t).split(""),
- r = ["", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM", "", "X", "XX", "XXX", "XL",
- "L", "LX", "LXX", "LXXX", "XC", "", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"
- ],
- a = "",
- n = 3;
- while (n--) a = (r[+e.pop() + 10 * n] || "") + a;
- return new Array(+e.join("") + 1).join("M") + a
- }
- var q = Y([
- [1e3, ""],
- [400, "ת"],
- [300, "ש"],
- [200, "ר"],
- [100, "ק"],
- [90, "צ"],
- [80, "פ"],
- [70, "ע"],
- [60, "ס"],
- [50, "נ"],
- [40, "מ"],
- [30, "ל"],
- [20, "כ"],
- [10, "י"],
- [9, "ט"],
- [8, "ח"],
- [7, "ז"],
- [6, "ו"],
- [5, "ה"],
- [4, "ד"],
- [3, "ג"],
- [2, "ב"],
- [1, "א"],
- [/יה/, "ט״ו"],
- [/יו/, "ט״ז"],
- [/([א-ת])([א-ת])$/, "$1״$2"],
- [/^([א-ת])$/, "$1׳"]
- ]);
-
- function Y(t) {
- return {
- format: function(e) {
- var r = "";
- return M.a.each(t, (function() {
- var t = this[0];
- if (parseInt(t) > 0)
- for (; e >= t; e -= t) r += this[1];
- else r = r.replace(t, this[1])
- })), r
- }
- }
- }
-
- function J(t, e) {
- t = Number(t) - 1;
- var r = "";
- return "upperCase" === e ? r = ((t / 26 >= 1 ? String.fromCharCode(t / 26 + 64) : "") + String
- .fromCharCode(t % 26 + 65)).toUpperCase() : "lowerCase" === e && (r = ((t / 26 >= 1 ? String
- .fromCharCode(t / 26 + 64) : "") + String.fromCharCode(t % 26 + 65)).toLowerCase()), r
- }
- var K = r("e8ae"),
- Q = r.n(K),
- Z = function() {
- var t = this,
- e = t.$createElement,
- r = t._self._c || e;
- return r("div", [r("div", [r("hot-table", {
- ref: "table",
- attrs: {
- settings: t.hotSettings
- }
- })], 1), r("div", {
- staticClass: "btn-group"
- }, t._l(t.sheets, (function(e) {
- return r("button", {
- key: e.id,
- staticStyle: {
- padding: "0 30px"
- },
- attrs: {
- type: t.sheetIndex === e.id ? "primary" : "default"
- },
- on: {
- click: function(r) {
- return t.handleSheet(e.id)
- }
- }
- }, [t._v(" " + t._s(e.name) + " ")])
- })), 0)])
- },
- tt = [],
- et = r("5530"),
- rt = (r("cc71"), r("4de4"), r("cb29"), r("07ac"), r("5db7"), r("73d9"), r("3c78")),
- at = r("e437"),
- nt = r("e30f"),
- st = r("13e2"),
- it = ["000000", "FFFFFF", "FF0000", "00FF00", "0000FF", "FFFF00", "FF00FF", "00FFFF", "000000",
- "FFFFFF", "FF0000", "00FF00", "0000FF", "FFFF00", "FF00FF", "00FFFF", "800000", "008000",
- "000080", "808000", "800080", "008080", "C0C0C0", "808080", "9999FF", "993366", "FFFFCC",
- "CCFFFF", "660066", "FF8080", "0066CC", "CCCCFF", "000080", "FF00FF", "FFFF00", "00FFFF",
- "800080", "800000", "008080", "0000FF", "00CCFF", "CCFFFF", "CCFFCC", "FFFF99", "99CCFF",
- "FF99CC", "CC99FF", "FFCC99", "3366FF", "33CCCC", "99CC00", "FFCC00", "FF9900", "FF6600",
- "666699", "969696", "003366", "339966", "003300", "333300", "993300", "993366", "333399",
- "333333", "b7e0ff", "00CCFF"
- ],
- ot = r("b85c");
-
- function ct(t, e) {
- var r, a = Object(ot["a"])(t);
- try {
- for (a.s(); !(r = a.n()).done;)
- for (var n = r.value, s = 0; s < e; s++) n[s] || (n[s] = "")
- } catch (i) {
- a.e(i)
- } finally {
- a.f()
- }
- return t
- }
-
- function lt(t) {
- return "".concat(t.charAt(0).toUpperCase()).concat(t.slice(1))
- }
-
- function ut(t) {
- return t.split("-").map((function(t, e) {
- return 0 !== e ? lt(t) : t
- })).join("")
- }
- Object(nt["g"])(st["a"]);
- var dt = ["left", "right", "top", "bottom"],
- pt = {
- name: "HelloWorld",
- props: {
- msg: String,
- workbook: Object
- },
- components: {
- HotTable: rt["a"]
- },
- data: function() {
- return {
- sheetIndex: 0,
- selection: {
- style: {},
- ranges: []
- }
- }
- },
- created: function() {
- var t = this;
- at["a"].renderers.registerRenderer("styleRender", (function(e, r, a, n, s, i, o) {
- if (at["a"].renderers.getRenderer("text")(e, r, a, n, s, i, o), t.ws &&
- o.style) {
- var c = o.style,
- l = c.alignment;
- l = void 0 === l ? {} : l;
- l.wrapText;
- var u = c.border,
- d = c.fill,
- p = c.font,
- f = r.style;
- if (p && (p.bold && (f.fontWeight = "bold"), p.size && (f.fontSize =
- "".concat(p.size, "px"))), d) {
- if (d.bgColor) {
- var h = d.bgColor,
- b = h.argb,
- g = h.indexed;
- f.backgroundColor = "#".concat(b || it[g])
- }
- if (d.fgColor) {
- var v = d.fgColor,
- m = v.theme,
- y = v.indexed;
- if (m && t.themeColors) {
- var k = t.themeColors[m + 1];
- k && (f.color = "#".concat(k))
- }
- y && (f.color = "#".concat(it[y]))
- }
- }
- u && dt.map((function(t) {
- return {
- key: t,
- value: u[t]
- }
- })).filter((function(t) {
- return t.value
- })).forEach((function(t) {
- var e = t.key,
- r = t.value.style,
- a = "border".concat(lt(e));
- f["".concat(a, "Width")] = "thin" === r ? "1px" :
- "2px", f["".concat(a, "Style")] = "solid", f[""
- .concat(a, "Color")] = "#000"
- }))
- }
- if (o.css) {
- var x = r.style,
- w = o.css;
- Object.keys(w).forEach((function(t) {
- var e = ut(t);
- x[e] = w[t]
- }))
- }
- }))
- },
- watch: {
- workbook: function() {
- this.parseTheme(), this.updateTable()
- }
- },
- computed: {
- hotSettings: function() {
- return {
- language: "zh-CN",
- readOnly: !0,
- data: this.data,
- cell: this.cell,
- mergeCells: this.merge,
- colHeaders: !0,
- rowHeaders: !0,
- height: "calc(100vh - 107px)",
- outsideClickDeselects: !1,
- licenseKey: "non-commercial-and-evaluation"
- }
- },
- ws: function() {
- var t = this.workbook;
- t = void 0 === t ? {} : t;
- var e = t.getWorksheet;
- if (e) {
- var r = this.sheetIndex || this.sheets[0].id;
- return this.workbook.getWorksheet(r)
- }
- return null
- },
- sheets: function() {
- return this.workbook.worksheets ? this.workbook.worksheets.filter((function(t) {
- return t._rows.length
- })) : []
- },
- merge: function() {
- var t = this.ws;
- t = void 0 === t ? {} : t;
- var e = t._merges,
- r = void 0 === e ? {} : e;
- return Object.values(r).map((function(t) {
- var e = t.left,
- r = t.top,
- a = t.right,
- n = t.bottom;
- return {
- row: r - 1,
- col: e - 1,
- rowspan: n - r + 1,
- colspan: a - e + 1
- }
- }))
- },
- data: function() {
- return ct(this.ws.getRows(1, this.ws.actualRowCount).map((function(t) {
- return t._cells.map((function(t) {
- var e = t.model.value;
- return e ? e.richText ? e.richText.text : e : ""
- }))
- })), this.cols.length)
- },
- cols: function() {
- return this.ws.columns.map((function(t) {
- return t.letter
- }))
- },
- columns: function() {
- var t = this;
- return this.ws.columns.map((function(e) {
- return Object(et["a"])(Object(et["a"])({}, e.width ? {
- width: e.width < 100 ? 100 : e.width
- } : {
- width: 100
- }), {}, {
- className: t.alignToClass(e.alignment || {}),
- renderer: "styleRender"
- })
- }))
- },
- cell: function() {
- var t = this;
- return this.ws.getRows(1, this.ws.actualRowCount).flatMap((function(e, r) {
- return e._cells.map((function(e, a) {
- if (e.style) return Object(et["a"])(Object(et["a"])
- ({
- row: r,
- col: a
- }, e.alignment ? {
- className: t.alignToClass(e
- .alignment)
- } : {}), {}, {
- style: e.style
- })
- })).filter((function(t) {
- return t
- }))
- }))
- },
- border: function() {
- return this.ws.getRows(1, this.ws.actualRowCount).flatMap((function(t, e) {
- return t._cells.map((function(t, r) {
- if (t.style && t.style.border) {
- var a = t.style.border,
- n = Object.keys(a);
- if (n.length) return Object(et["a"])({
- row: e,
- col: r
- }, n.reduce((function(t, e) {
- return t[e] = {
- width: 1,
- color: "#"
- .concat(a
- .color &&
- it[a.color
- .indexed
- ] ||
- a
- .argb ||
- "000000"
- )
- }, t
- }), {}))
- }
- })).filter((function(t) {
- return t
- }))
- }))
- }
- },
- methods: {
- hotTable: function() {
- return this.$refs.table.hotInstance
- },
- updateTable: function() {
- this.hotTable().updateSettings({
- mergeCells: this.merge,
- data: this.data,
- colHeaders: this.cols,
- columns: this.columns,
- cell: this.cell
- })
- },
- alignToClass: function(t) {
- var e = t.horizontal,
- r = t.vertical;
- return [e, r].filter((function(t) {
- return t
- })).map((function(t) {
- return "ht".concat(t.charAt(0).toUpperCase()).concat(t.slice(1))
- })).join(" ")
- },
- parseTheme: function() {
- var t = this.workbook._themes.theme1,
- e = new DOMParser;
- if (t) {
- var r = e.parseFromString(t, "text/xml"),
- a = r.getElementsByTagName("a:clrScheme"),
- n = Object(c["a"])(a, 1),
- s = n[0];
- s = void 0 === s ? {} : s;
- var i = s.children,
- o = void 0 === i ? [] : i;
- this.themeColors = Object(d["a"])(o).flatMap((function(t) {
- return Object(d["a"])(t.getElementsByTagName("a:srgbClr"))
- })).map((function(t) {
- return t.getAttribute("val")
- })).filter((function(t) {
- return t
- }))
- }
- },
- handleSheet: function(t) {
- var e = this;
- this.sheetIndex !== t && (this.sheetIndex = t, this.$nextTick((function() {
- e.updateTable()
- })))
- },
- handleStyle: function(t, e) {
- var r = e.type,
- a = e.key;
- this.selection.style = t;
- var n = this.hotTable();
- n.suspendRender(), this.selection.ranges.forEach((function(e) {
- var s = e.r,
- i = e.c,
- o = n.getCellMeta(s, i),
- c = o.css,
- l = void 0 === c ? {} : c,
- u = Object(et["a"])({}, l);
- "remove" === r ? delete u[a] : "add" === r && (u[a] = t[a]), n
- .setCellMetaObject(s, i, {
- css: u
- })
- })), n.render(), n.resumeRender()
- },
- afterSelectionEnd: function(t, e, r, a, n) {
- for (var s = [], i = t; i <= r; i++)
- for (var o = e; o <= a; o++) s.push({
- r: i,
- c: o
- });
- var c = this.hotTable().getCellMeta(t, e),
- l = c.css,
- u = void 0 === l ? {} : l;
- this.selection.style = u, this.selection.ranges = s
- }
- }
- },
- ft = pt,
- ht = (r("e764"), r("f500"), r("2877")),
- bt = Object(ht["a"])(ft, Z, tt, !1, null, "560c2bcc", null),
- gt = bt.exports;
- r("5198");
-
- function vt(t, e) {
- return mt.apply(this, arguments)
- }
-
- function mt() {
- return mt = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var n;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.next = 2, (new Q.a.Workbook).xlsx.load(e);
- case 2:
- return n = t.sent, console.log(n, "workbook"), t
- .abrupt("return", new a["default"]({
- render: function(t) {
- return t(gt, {
- props: {
- workbook: n
- }
- })
- }
- }).$mount(r));
- case 5:
- case "end":
- return t.stop()
- }
- }), t)
- }))), mt.apply(this, arguments)
- }
- var yt = function() {
- var t = this,
- e = t.$createElement,
- r = t._self._c || e;
- return r("div", {
- staticClass: "home_wrap"
- }, [r("div", {
- staticClass: "pdf_down"
- }, [r("div", {
- staticClass: "pdf_set_left",
- on: {
- click: function(e) {
- return t.scaleD()
- }
- }
- }, [t._v("➕")]), r("div", {
- staticClass: "pdf_set_middle",
- on: {
- click: function(e) {
- return t.scaleX()
- }
- }
- }, [t._v("➖")])]), r("div", {
- style: {
- width: t.pdf_div_width,
- margin: "0 auto"
- }
- }, t._l(t.pdf_pages, (function(t) {
- return r("canvas", {
- key: t,
- attrs: {
- id: "the_canvas" + t
- }
- })
- })), 0)])
- },
- kt = [],
- xt = r("f9cb");
- xt["GlobalWorkerOptions"].workerSrc = r("8658");
- var wt = {
- name: "PdfView",
- props: {
- data: ArrayBuffer
- },
- data: function() {
- return {
- pdf_scale: 1,
- pdf_pages: [],
- pdf_div_width: "",
- currentPage: 1
- }
- },
- mounted: function() {
- this.loadFile()
- },
- methods: {
- scaleD: function() {
- var t = 0;
- t = window.screen.width > 1440 ? 1.4 : 1.2, this.pdf_scale >= t || (this.pdf_scale =
- this.pdf_scale + .1, this.loadFile())
- },
- scaleX: function() {
- var t = 1;
- this.pdf_scale <= t || (this.pdf_scale = this.pdf_scale - .1, this.loadFile())
- },
- loadFile: function() {
- var t = this;
- return Object(l["a"])(regeneratorRuntime.mark((function e() {
- return regeneratorRuntime.wrap((function(e) {
- while (1) switch (e.prev = e.next) {
- case 0:
- return console.log("初始化pdf"), e
- .next = 3, xt["getDocument"](t
- .data).promise;
- case 3:
- t.pdfDoc = e.sent, t.pdf_pages = t
- .pdfDoc.numPages, t.$nextTick((
- function() {
- return t
- .renderPage()
- }));
- case 6:
- case "end":
- return e.stop()
- }
- }), e)
- })))()
- },
- renderPage: function() {
- var t = arguments,
- e = this;
- return Object(l["a"])(regeneratorRuntime.mark((function r() {
- var a, n, s, i, o, c, l, u, d;
- return regeneratorRuntime.wrap((function(r) {
- while (1) switch (r.prev = r.next) {
- case 0:
- return a = t.length > 0 &&
- void 0 !== t[0] ? t[0] : 1, e
- .currentPage = a, console.log(
- "渲染pdf页"), r.next = 5, e
- .pdfDoc.getPage(a);
- case 5:
- n = r.sent, s = document
- .getElementById("the_canvas" +
- a), i = s.getContext("2d"),
- o = window.devicePixelRatio ||
- 1, c = i
- .webkitBackingStorePixelRatio ||
- i.mozBackingStorePixelRatio || i
- .msBackingStorePixelRatio || i
- .oBackingStorePixelRatio || i
- .backingStorePixelRatio || 1,
- l = o / c, u = n.getViewport({
- scale: e.pdf_scale
- }), s.width = u.width * l, s
- .height = u.height * l, s.style
- .width = u.width + "px", e
- .pdf_div_width = u.width + "px",
- s.style.height = u.height +
- "px", i.setTransform(l, 0, 0, l,
- 0, 0), d = {
- canvasContext: i,
- viewport: u
- }, n.render(d), e.pdf_pages >
- a && setTimeout((function() {
- return e.renderPage(
- a + 1)
- }));
- case 21:
- case "end":
- return r.stop()
- }
- }), r)
- })))()
- },
- nextPage: function() {
- this.pdf_pages > this.currentPage && this.renderPage(this.currentPage + 1)
- },
- prePage: function() {
- this.currentPage > 1 && this.renderPage(this.currentPage - 1)
- }
- }
- },
- Ct = wt,
- jt = (r("4462"), Object(ht["a"])(Ct, yt, kt, !1, null, "560242fe", null)),
- Pt = jt.exports;
-
- function Rt(t, e) {
- return Ft.apply(this, arguments)
- }
-
- function Ft() {
- return Ft = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.abrupt("return", new a["default"]({
- render: function(t) {
- return t(Pt, {
- props: {
- data: e
- }
- })
- }
- }).$mount(r));
- case 1:
- case "end":
- return t.stop()
- }
- }), t)
- }))), Ft.apply(this, arguments)
- }
- var It = function() {
- var t = this,
- e = t.$createElement,
- r = t._self._c || e;
- return r("viewer", {
- staticStyle: {
- height: "800px"
- },
- attrs: {
- images: t.images
- }
- }, t._l(t.images, (function(t) {
- return r("img", {
- key: t.index,
- staticClass: "image",
- attrs: {
- alt: "图片",
- src: t.src
- }
- })
- })), 0)
- },
- Ot = [],
- St = {
- name: "ImageViewer",
- props: {
- image: String
- },
- computed: {
- images: function() {
- return this.image ? [{
- src: this.image
- }] : []
- }
- }
- },
- _t = St,
- Lt = (r("bd2e"), Object(ht["a"])(_t, It, Ot, !1, null, "2b24c80e", null)),
- Dt = Lt.exports;
-
- function Tt(t, e) {
- return At.apply(this, arguments)
- }
-
- function At() {
- return At = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var n;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.next = 2, Jt(e);
- case 2:
- return n = t.sent, t.abrupt("return", new a[
- "default"]({
- render: function(t) {
- return t(Dt, {
- props: {
- image: n
- }
- })
- }
- }).$mount(r));
- case 4:
- case "end":
- return t.stop()
- }
- }), t)
- }))), At.apply(this, arguments)
- }
- var Nt = function() {
- var t = this,
- e = t.$createElement,
- r = t._self._c || e;
- return r("pre", {
- staticClass: "code-area"
- }, [t._v(" " + t._s(t.value) + "\n")])
- },
- Bt = [],
- Gt = {
- name: "CodeEditor",
- props: {
- value: {
- type: String,
- description: "值"
- }
- }
- },
- Mt = Gt,
- Et = (r("b1b5"), Object(ht["a"])(Mt, Nt, Bt, !1, null, "4cb3dafe", null)),
- zt = Et.exports;
-
- function Ut(t, e) {
- return Ht.apply(this, arguments)
- }
-
- function Ht() {
- return Ht = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var n;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.next = 2, Qt(e);
- case 2:
- return n = t.sent, t.abrupt("return", new a[
- "default"]({
- render: function(t) {
- return t(zt, {
- props: {
- value: n
- }
- })
- }
- }).$mount(r));
- case 4:
- case "end":
- return t.stop()
- }
- }), t)
- }))), Ht.apply(this, arguments)
- }
- r("2b3d"), r("9861");
- var Wt = function(t, e) {
- var r = document.createElement("video");
- r.width = 840, r.height = 480, r.controls = !0;
- var a = document.createElement("source");
- a.src = URL.createObjectURL(new Blob([t])), r.appendChild(a), e.appendChild(r)
- },
- $t = function(t) {
- return {
- $el: t,
- $destroy: function() {}
- }
- },
- Xt = [{
- accepts: ["docx"],
- handler: function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- var a;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return a = Object.assign(u[
- "defaultOptions"], {
- debug: !0,
- experimental: !0
- }), t.next = 3, Object(u[
- "renderAsync"])(e, r, null,
- a);
- case 3:
- return t.abrupt("return", $t(r));
- case 4:
- case "end":
- return t.stop()
- }
- }), t)
- })));
-
- function e(e, r) {
- return t.apply(this, arguments)
- }
- return e
- }()
- }, {
- accepts: ["pptx"],
- handler: function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.next = 2, z(e, r, null);
- case 2:
- return window.dispatchEvent(
- new Event("resize")), t
- .abrupt("return", $t(r));
- case 4:
- case "end":
- return t.stop()
- }
- }), t)
- })));
-
- function e(e, r) {
- return t.apply(this, arguments)
- }
- return e
- }()
- }, {
- accepts: ["xlsx"],
- handler: function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.abrupt("return", vt(e, r));
- case 1:
- case "end":
- return t.stop()
- }
- }), t)
- })));
-
- function e(e, r) {
- return t.apply(this, arguments)
- }
- return e
- }()
- }, {
- accepts: ["pdf"],
- handler: function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.abrupt("return", Rt(e, r));
- case 1:
- case "end":
- return t.stop()
- }
- }), t)
- })));
-
- function e(e, r) {
- return t.apply(this, arguments)
- }
- return e
- }()
- }, {
- accepts: ["gif", "jpg", "jpeg", "bmp", "tiff", "tif", "png", "svg"],
- handler: function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.abrupt("return", Tt(e, r));
- case 1:
- case "end":
- return t.stop()
- }
- }), t)
- })));
-
- function e(e, r) {
- return t.apply(this, arguments)
- }
- return e
- }()
- }, {
- accepts: ["txt", "json", "js", "css", "java", "py", "html", "jsx", "ts", "tsx", "xml", "md",
- "log"
- ],
- handler: function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.abrupt("return", Ut(e, r));
- case 1:
- case "end":
- return t.stop()
- }
- }), t)
- })));
-
- function e(e, r) {
- return t.apply(this, arguments)
- }
- return e
- }()
- }, {
- accepts: ["mp4"],
- handler: function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e, r) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return Wt(e, r), t.abrupt("return",
- $t(r));
- case 2:
- case "end":
- return t.stop()
- }
- }), t)
- })));
-
- function e(e, r) {
- return t.apply(this, arguments)
- }
- return e
- }()
- }, {
- accepts: ["error"],
- handler: function() {
- var t = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return r.innerHTML =
- '<div style="text-align: center; margin-top: 80px">不支持.'
- .concat(a,
- '格式的在线预览,请下载后预览或转换为支持的格式</div>\n<div style="text-align: center">支持docx, xlsx, pptx, pdf, 以及纯文本格式和各种图片格式的在线预览</div>'
- ), t.abrupt("return", $t(
- r));
- case 2:
- case "end":
- return t.stop()
- }
- }), t)
- })));
-
- function e(e, r, a) {
- return t.apply(this, arguments)
- }
- return e
- }()
- }],
- Vt = Xt.reduce((function(t, e) {
- var r = e.accepts,
- a = e.handler;
- return r.forEach((function(e) {
- return t[e] = a
- })), t
- }), {});
-
- function qt(t) {
- return Yt.apply(this, arguments)
- }
-
- function Yt() {
- return Yt = Object(l["a"])(regeneratorRuntime.mark((function t(e) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.abrupt("return", new Promise((function(t,
- r) {
- var a = new FileReader;
- a.onload = function(e) {
- return t(e.target
- .result)
- }, a.onerror = function(t) {
- return r(t)
- }, a.readAsArrayBuffer(e)
- })));
- case 1:
- case "end":
- return t.stop()
- }
- }), t)
- }))), Yt.apply(this, arguments)
- }
-
- function Jt(t) {
- return Kt.apply(this, arguments)
- }
-
- function Kt() {
- return Kt = Object(l["a"])(regeneratorRuntime.mark((function t(e) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.abrupt("return", new Promise((function(t,
- r) {
- var a = new FileReader;
- a.onload = function(e) {
- return t(e.target
- .result)
- }, a.onerror = function(t) {
- return r(t)
- }, a.readAsDataURL(new Blob(
- [e]))
- })));
- case 1:
- case "end":
- return t.stop()
- }
- }), t)
- }))), Kt.apply(this, arguments)
- }
-
- function Qt(t) {
- return Zt.apply(this, arguments)
- }
-
- function Zt() {
- return Zt = Object(l["a"])(regeneratorRuntime.mark((function t(e) {
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- return t.abrupt("return", new Promise((function(t,
- r) {
- var a = new FileReader;
- a.onload = function(e) {
- return t(e.target
- .result)
- }, a.onerror = function(t) {
- return r(t)
- }, a.readAsText(new Blob([
- e
- ]), "utf-8")
- })));
- case 1:
- case "end":
- return t.stop()
- }
- }), t)
- }))), Zt.apply(this, arguments)
- }
-
- function te(t) {
- var e = t.lastIndexOf(".");
- return t.substr(e + 1)
- }
-
- function ee(t, e, r) {
- return re.apply(this, arguments)
- }
-
- function re() {
- return re = Object(l["a"])(regeneratorRuntime.mark((function t(e, r, a) {
- var n;
- return regeneratorRuntime.wrap((function(t) {
- while (1) switch (t.prev = t.next) {
- case 0:
- if (n = Vt[r], !n) {
- t.next = 3;
- break
- }
- return t.abrupt("return", n(e, a));
- case 3:
- return t.abrupt("return", Vt.error(e, a, r));
- case 4:
- case "end":
- return t.stop()
- }
- }), t)
- }))), re.apply(this, arguments)
- }
- var ae = r("4328"),
- ne = {
- name: "HelloWorld",
- props: {
- msg: String
- },
- data: function() {
- return {
- loading: !1,
- last: null,
- hidden: !1
- }
- },
- created: function() {
- var t = this,
- e = Object(ae["parse"])(location.search.substr(1)),
- r = e.from,
- a = e.name;
- r && window.addEventListener("message", (function(e) {
- var n = e.origin,
- s = e.data;
- if (n === r && s instanceof Blob) {
- var i = new File([s], a, {});
- t.hidden = !0, t.handleChange({
- target: {
- files: [i]
- }
- })
- }
- }))
- },
- methods: {
- handleChange: function(t) {
- var e = this;
- return Object(l["a"])(regeneratorRuntime.mark((function r() {
- var a, n, s;
- return regeneratorRuntime.wrap((function(r) {
- while (1) switch (r.prev = r.next) {
- case 0:
- return e.loading = !0, r.prev = 1,
- a = Object(c["a"])(t.target
- .files, 1), n = a[0], r
- .next = 5, qt(n);
- case 5:
- return s = r.sent, e.loading = !1, r
- .next = 9, e.displayResult(s,
- n);
- case 9:
- e.last = r.sent, r.next = 15;
- break;
- case 12:
- r.prev = 12, r.t0 = r["catch"](1),
- console.error(r.t0);
- case 15:
- return r.prev = 15, e.loading = !1,
- r.finish(15);
- case 18:
- case "end":
- return r.stop()
- }
- }), r, null, [
- [1, 12, 15, 18]
- ])
- })))()
- },
- displayResult: function(t, e) {
- var r = e.name,
- a = te(r),
- n = this.$refs.output,
- s = document.createElement("div");
- this.last && (n.removeChild(this.last.$el), this.last.$destroy());
- var i = n.appendChild(s);
- return new Promise((function(e, r) {
- return ee(t, a, i).then(e).catch(r)
- }))
- }
- }
- },
- se = ne,
- ie = (r("e46f"), r("0156"), Object(ht["a"])(se, i, o, !1, null, "259a89d2", null)),
- oe = ie.exports,
- ce = {
- name: "App",
- components: {
- HelloWorld: oe
- }
- },
- le = ce,
- ue = (r("034f"), Object(ht["a"])(le, n, s, !1, null, null, null)),
- de = ue.exports,
- pe = r("6944"),
- fe = r.n(pe);
- r("0808");
- a["default"].config.productionTip = !1, a["default"].use(fe.a), new a["default"]({
- render: function(t) {
- return t(de)
- }
- }).$mount("#app")
- },
- 6: function(t, e) {},
- "676f": function(t, e, r) {},
- 7: function(t, e) {},
- "85ec": function(t, e, r) {},
- b1b5: function(t, e, r) {
- "use strict";
- r("c6a1")
- },
- bd2e: function(t, e, r) {
- "use strict";
- r("676f")
- },
- c6a1: function(t, e, r) {},
- e46f: function(t, e, r) {
- "use strict";
- r("f384")
- },
- e764: function(t, e, r) {
- "use strict";
- r("5046")
- },
- f384: function(t, e, r) {},
- f500: function(t, e, r) {
- "use strict";
- r("2679")
- },
- fa7c: function(t, e, r) {}
- });
|