diff --git a/public/js/app.js b/public/js/app.js
index b9341da..3030dd9 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -2673,6 +2673,115 @@ __webpack_require__.r(__webpack_exports__);
/***/ }),
+/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=script&lang=js":
+/*!*********************************************************************************************************************************************************************************************************************************!*\
+ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=script&lang=js ***!
+ \*********************************************************************************************************************************************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/lib/axios.js");
+function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
+function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
+function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
+function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ name: 'ManagePenyata',
+ data: function data() {
+ return {
+ penyata: [],
+ loading: false,
+ searchNoAnggota: '',
+ meta: {
+ current_page: 1,
+ last_page: 1
+ }
+ };
+ },
+ mounted: function mounted() {
+ this.getPenyata();
+ },
+ methods: {
+ getPenyata: function getPenyata() {
+ var _arguments = arguments,
+ _this = this;
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
+ var page, res;
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ page = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : 1;
+ _this.loading = true;
+ _context.prev = 2;
+ _context.next = 5;
+ return axios__WEBPACK_IMPORTED_MODULE_0__["default"].get('/api/v1/voter', {
+ params: {
+ page: page,
+ no_anggota: _this.searchNoAnggota
+ }
+ });
+ case 5:
+ res = _context.sent;
+ _this.penyata = res.data.data;
+ _this.meta.current_page = res.data.current_page;
+ _this.meta.last_page = res.data.last_page;
+ _context.next = 15;
+ break;
+ case 11:
+ _context.prev = 11;
+ _context.t0 = _context["catch"](2);
+ console.error(_context.t0);
+ alert('Gagal ambil senarai penyata');
+ case 15:
+ _context.prev = 15;
+ _this.loading = false;
+ return _context.finish(15);
+ case 18:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee, null, [[2, 11, 15, 18]]);
+ }))();
+ },
+ changePage: function changePage(page) {
+ this.getPenyata(page);
+ },
+ searchPenyata: function searchPenyata() {
+ this.getPenyata(1);
+ },
+ resetSearch: function resetSearch() {
+ this.searchNoAnggota = '';
+ this.getPenyata(1);
+ },
+ bolehCetak: function bolehCetak(status) {
+ return ['DISAHKAN', 'PERLU_SEMAK'].includes(status);
+ },
+ cetakPDF: function cetakPDF(noAnggota) {
+ (0,axios__WEBPACK_IMPORTED_MODULE_0__["default"])({
+ url: "/api/v1/penyata/".concat(noAnggota, "/pdf"),
+ method: 'GET',
+ responseType: 'blob'
+ }).then(function (response) {
+ var file = new Blob([response.data], {
+ type: 'application/pdf'
+ });
+ var fileURL = URL.createObjectURL(file);
+ window.open(fileURL);
+ })["catch"](function (error) {
+ console.error(error);
+ alert('Gagal jana PDF.');
+ });
+ }
+ }
+});
+
+/***/ }),
+
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/final.vue?vue&type=script&lang=js":
/*!**********************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/final.vue?vue&type=script&lang=js ***!
@@ -4366,8 +4475,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
-/* harmony import */ var _bachdgvn_vue_otp_input__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bachdgvn/vue-otp-input */ "./node_modules/@bachdgvn/vue-otp-input/dist/vueOtpInput.common.js");
-/* harmony import */ var _bachdgvn_vue_otp_input__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_bachdgvn_vue_otp_input__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var jsbarcode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jsbarcode */ "./node_modules/jsbarcode/bin/JsBarcode.js");
+/* harmony import */ var jsbarcode__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jsbarcode__WEBPACK_IMPORTED_MODULE_0__);
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -4375,63 +4484,49 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
-Vue.filter('formatNumberWithCommas', function (value) {
- if (!value) return '';
- return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
-});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
- created: function created() {
- //console.log(this)
- },
data: function data() {
return {
- x: {},
- selectedNomineeId: null,
- nomineeViewed: {}
+ // NOMINEE SECTION
+ nomineeViewed: {},
+ showNomineeModal: false,
+ // BARCODE SECTION
+ noKp: ""
};
},
- filters: {
- formatNumberWithCommas: function formatNumberWithCommas(value) {
- if (!value) return '';
- return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
+ mounted: function mounted() {
+ var _this$data;
+ if ((_this$data = this.data) !== null && _this$data !== void 0 && (_this$data = _this$data.user) !== null && _this$data !== void 0 && _this$data.no_kp) {
+ this.noKp = this.data.user.no_kp; // set noKp
+ this.generateBarcode();
}
},
methods: {
- hasVoted: function hasVoted() {
- return this.data.result.length > 0;
- },
- getPartylist: function getPartylist(id) {
- var partylists = this.data.partylists;
- for (var i in partylists) if (partylists[i]['id'] == id) return partylists[i]['name'];
- return 'No Partylist';
- },
- getPosition: function getPosition(id) {
- var positions = this.data.positions;
- for (var i in positions) if (positions[i].id == id) return positions[i].name;
- return '';
- },
- getNominee: function getNominee(id) {
- var nominees = this.data.nominees;
- for (var i in nominees) if (nominees[i]['id'] == id) return nominees[i].name;
- return '';
- },
- view: function view(nominee, index) {
- this.x = nominee;
- this.selectedNomineeId = index; // Assuming index is the ID
- this.util.showModal('#nominee-information-modal');
- },
- createBase64ImageUrl: function createBase64ImageUrl(base64ImageData) {
- return "data:image/png;base64," + base64ImageData;
- },
+ // -------------------------------
+ // NOMINEE FUNCTIONS
+ // -------------------------------
viewNomineeDetails: function viewNomineeDetails(nominee) {
this.nomineeViewed = _objectSpread({}, nominee);
this.nomineeViewed.photo = this.createBase64ImageUrl(nominee.photo);
- $('#view-nominee-modal').modal();
- }
- },
- computed: {
- header: function header() {
- return this.x.name + ' for ' + this.getPosition(this.x.position_id);
+ this.showNomineeModal = true;
+ },
+ closeNomineeModal: function closeNomineeModal() {
+ this.showNomineeModal = false;
+ },
+ createBase64ImageUrl: function createBase64ImageUrl(photo) {
+ return "data:image/jpeg;base64,".concat(photo);
+ },
+ // -------------------------------
+ // BARCODE FUNCTION
+ // -------------------------------
+ generateBarcode: function generateBarcode() {
+ if (!this.noKp) return;
+ jsbarcode__WEBPACK_IMPORTED_MODULE_0___default()("#barcode", this.noKp, {
+ format: "CODE128",
+ width: 1.3,
+ height: 30,
+ displayValue: false // hides text below the barcode
+ });
}
}
});
@@ -4481,6 +4576,137 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/***/ }),
+/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=script&lang=js":
+/*!************************************************************************************************************************************************************************************************************************!*\
+ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=script&lang=js ***!
+ \************************************************************************************************************************************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/lib/axios.js");
+function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
+function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
+function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
+function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ name: "PenyataView",
+ data: function data() {
+ return {
+ tarikh: new Date().toISOString().substring(0, 10),
+ persetujuan: "",
+ nokp: "",
+ data: {
+ user: {}
+ },
+ loading: false
+ };
+ },
+ mounted: function mounted() {
+ var noAnggota = this.$route.params.no_anggota;
+ if (noAnggota) this.getPenyata(noAnggota);
+ },
+ methods: {
+ getPenyata: function getPenyata(id) {
+ var _this = this;
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
+ var res;
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
+ while (1) switch (_context.prev = _context.next) {
+ case 0:
+ _this.loading = true;
+ _context.prev = 1;
+ _context.next = 4;
+ return axios__WEBPACK_IMPORTED_MODULE_0__["default"].get("/api/v1/penyata/".concat(id));
+ case 4:
+ res = _context.sent;
+ _this.data = res.data;
+ _context.next = 12;
+ break;
+ case 8:
+ _context.prev = 8;
+ _context.t0 = _context["catch"](1);
+ console.error(_context.t0);
+ alert("Gagal ambil data penyata");
+ case 12:
+ _context.prev = 12;
+ _this.loading = false;
+ return _context.finish(12);
+ case 15:
+ case "end":
+ return _context.stop();
+ }
+ }, _callee, null, [[1, 8, 12, 15]]);
+ }))();
+ },
+ cetakPDF: function cetakPDF() {
+ var noAnggota = this.$route.params.no_anggota;
+ if (noAnggota) window.open("/api/v1/penyata/".concat(noAnggota, "/pdf"), '_blank');
+ },
+ SahkanPenyata: function SahkanPenyata() {
+ var _this2 = this;
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
+ var noAnggota;
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
+ while (1) switch (_context2.prev = _context2.next) {
+ case 0:
+ noAnggota = _this2.$route.params.no_anggota;
+ if (_this2.persetujuan) {
+ _context2.next = 4;
+ break;
+ }
+ alert("Sila pilih Bersetuju atau Tidak Bersetuju");
+ return _context2.abrupt("return");
+ case 4:
+ if (_this2.nokp) {
+ _context2.next = 7;
+ break;
+ }
+ alert("Sila isi No Kad Pengenalan");
+ return _context2.abrupt("return");
+ case 7:
+ if (confirm("Adakah anda pasti untuk mengesahkan penyata ini?")) {
+ _context2.next = 9;
+ break;
+ }
+ return _context2.abrupt("return");
+ case 9:
+ _context2.prev = 9;
+ _context2.next = 12;
+ return axios__WEBPACK_IMPORTED_MODULE_0__["default"].post("/api/v1/penyata/".concat(noAnggota, "/sahkan"), {
+ persetujuan: _this2.persetujuan,
+ nokp: _this2.nokp,
+ tarikh: _this2.tarikh
+ });
+ case 12:
+ alert("Penyata berjaya DISAHKAN");
+ _this2.cetakPDF();
+ _this2.$router.push({
+ name: 'lamanUtama'
+ });
+ _context2.next = 21;
+ break;
+ case 17:
+ _context2.prev = 17;
+ _context2.t0 = _context2["catch"](9);
+ console.error(_context2.t0);
+ alert("Gagal sahkan penyata");
+ case 21:
+ case "end":
+ return _context2.stop();
+ }
+ }, _callee2, null, [[9, 17]]);
+ }))();
+ }
+ }
+});
+
+/***/ }),
+
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/result.vue?vue&type=script&lang=js":
/*!***********************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/result.vue?vue&type=script&lang=js ***!
@@ -6995,6 +7221,91 @@ var staticRenderFns = [function () {
render._withStripped = true;
+/***/ }),
+
+/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=template&id=ec936c4a":
+/*!********************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=template&id=ec936c4a ***!
+ \********************************************************************************************************************************************************************************************************************************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ render: () => (/* binding */ render),
+/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)
+/* harmony export */ });
+var render = function render() {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("div", [_c("table", {
+ staticClass: "table table-bordered table-striped"
+ }, [_vm._m(0), _vm._v(" "), _c("tbody", [_vm._l(_vm.penyata, function (voter) {
+ var _voter$status_penyata, _voter$tarikh_sah;
+ return _c("tr", {
+ key: voter.id
+ }, [_c("td", [_vm._v(_vm._s(voter.no_anggota))]), _vm._v(" "), _c("td", [_vm._v(_vm._s(voter.unit))]), _vm._v(" "), _c("td", [_vm._v(_vm._s(voter.name))]), _vm._v(" "), _c("td", [_c("span", {
+ staticClass: "badge",
+ "class": {
+ "bg-success": voter.status_penyata === "DISAHKAN",
+ "bg-warning text-dark": voter.status_penyata === "PERLU_SEMAK",
+ "bg-secondary": !voter.status_penyata
+ }
+ }, [_vm._v("\n " + _vm._s((_voter$status_penyata = voter.status_penyata) !== null && _voter$status_penyata !== void 0 ? _voter$status_penyata : "BELUM SAH") + "\n ")])]), _vm._v(" "), _c("td", [_vm._v("\n " + _vm._s((_voter$tarikh_sah = voter.tarikh_sah) !== null && _voter$tarikh_sah !== void 0 ? _voter$tarikh_sah : "-") + "\n ")]), _vm._v(" "), _c("td", [_c("button", {
+ staticClass: "btn btn-sm btn-success",
+ attrs: {
+ disabled: !_vm.bolehCetak(voter.status_penyata)
+ },
+ on: {
+ click: function click($event) {
+ return _vm.cetakPDF(voter.no_anggota);
+ }
+ }
+ }, [_vm._v("\n PDF\n ")])])]);
+ }), _vm._v(" "), !_vm.loading && _vm.penyata.length === 0 ? _c("tr", [_c("td", {
+ staticClass: "text-center text-muted",
+ attrs: {
+ colspan: "6"
+ }
+ }, [_vm._v("\n Tiada data penyata\n ")])]) : _vm._e(), _vm._v(" "), _vm.loading ? _c("tr", [_c("td", {
+ staticClass: "text-center",
+ attrs: {
+ colspan: "6"
+ }
+ }, [_vm._v("\n Memuatkan data...\n ")])]) : _vm._e()], 2)]), _vm._v(" "), _vm.meta.last_page > 1 ? _c("div", {
+ staticClass: "d-flex justify-content-end gap-2"
+ }, [_c("button", {
+ staticClass: "btn btn-sm btn-outline-secondary",
+ attrs: {
+ disabled: _vm.meta.current_page === 1
+ },
+ on: {
+ click: function click($event) {
+ return _vm.changePage(_vm.meta.current_page - 1);
+ }
+ }
+ }, [_vm._v("\n Sebelumnya\n ")]), _vm._v(" "), _c("button", {
+ staticClass: "btn btn-sm btn-outline-secondary",
+ attrs: {
+ disabled: _vm.meta.current_page === _vm.meta.last_page
+ },
+ on: {
+ click: function click($event) {
+ return _vm.changePage(_vm.meta.current_page + 1);
+ }
+ }
+ }, [_vm._v("\n Seterusnya\n ")])]) : _vm._e()]);
+};
+var staticRenderFns = [function () {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("thead", {
+ staticClass: "table-light"
+ }, [_c("tr", [_c("th", [_vm._v("No Anggota")]), _vm._v(" "), _c("th", [_vm._v("Unit")]), _vm._v(" "), _c("th", [_vm._v("Nama")]), _vm._v(" "), _c("th", [_vm._v("Status")]), _vm._v(" "), _c("th", [_vm._v("Tarikh Sah")]), _vm._v(" "), _c("th", [_vm._v("Aksi")])])]);
+}];
+render._withStripped = true;
+
+
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/home/final.vue?vue&type=template&id=22ef532b":
@@ -7557,7 +7868,18 @@ var render = function render() {
attrs: {
href: "#"
}
- }, [_vm._v("Pembiayaan Anggota ")])]) : _vm._e()], 1), _vm._v(" "), _c("ul", {
+ }, [_vm._v("Pembiayaan Anggota ")])]) : _vm._e(), _vm._v(" "), _vm.data.user.role == 1 ? _c("router-link", {
+ attrs: {
+ to: {
+ name: "Penyata Anggota"
+ },
+ tag: "li"
+ }
+ }, [_c("a", {
+ attrs: {
+ href: "#"
+ }
+ }, [_vm._v("Penyata Anggota")])]) : _vm._e()], 1), _vm._v(" "), _c("ul", {
staticClass: "nav navbar-right navbar-nav"
}, [_c("li", {
staticClass: "dropdown"
@@ -9958,10 +10280,6 @@ var render = function render() {
return _c("div", {
staticClass: "row col-md-10 col-md-offset-1"
}, [_vm._m(0), _vm._v(" "), _c("div", {
- staticStyle: {
- "margin-bottom": "20px"
- }
- }), _vm._v(" "), _c("div", {
staticClass: "col-md-4"
}, [_c("div", {
staticClass: "p-2 mb-3 text-center",
@@ -9972,7 +10290,7 @@ var render = function render() {
"font-size": "1.6rem",
"border-radius": "4px"
}
- }, [_vm._v("\n Maklumat Anggota\n ")]), _vm._v(" "), _c("hr"), _vm._v(" "), _c("ul", {
+ }, [_vm._v("\n Maklumat Anggota\n ")]), _vm._v(" "), _c("hr"), _vm._v(" "), _c("ul", {
staticClass: "list-group",
staticStyle: {
"font-weight": "bold"
@@ -10025,53 +10343,52 @@ var render = function render() {
staticClass: "info-separator"
}, [_vm._v(":")]), _vm._v(" "), _c("span", {
staticClass: "info-value"
- }, [_vm._v("RM " + _vm._s(_vm._f("formatNumberWithCommas")(_vm.data.user.yuran)))])]), _vm._v(" "), _vm.data.election.status == 1 ? _c("li", {
- staticClass: "list-group-item"
+ }, [_vm._v("RM " + _vm._s(_vm._f("formatNumberWithCommas")(_vm.data.user.yuran)))])])]), _vm._v(" "), _c("div", {
+ staticClass: "kad-keahlian"
+ }, [_c("div", {
+ staticClass: "member-card-vertical"
+ }, [_vm._v("MEMBER CARD ")]), _vm._v(" "), _vm._m(1), _vm._v(" "), _c("br"), _c("br"), _vm._v(" "), _c("div", {
+ staticClass: "kad-content"
+ }, [_c("img", {
+ staticClass: "watermark",
+ attrs: {
+ src: "images/KOPKB_Final.png",
+ alt: "Watermark"
+ }
+ }), _vm._v(" "), _c("div", {
+ staticClass: "member-details"
+ }, [_c("div", {
+ staticClass: "detail-item"
}, [_c("span", {
- staticClass: "info-label"
- }, [_vm._v("STATUS UNDIAN")]), _vm._v(" "), _c("span", {
- staticClass: "info-separator"
- }, [_vm._v(":")]), _vm._v(" "), _c("span", {
- staticClass: "info-value"
- }, [_vm.data.election.status == 1 ? _c("span", {
- staticClass: "text-danger"
- }, [_vm._v("Belum bermula")]) : _vm._e()])]) : _vm._e()]), _vm._v(" "), _vm.data.election.status == 2 && !_vm.hasVoted() ? _c("li", {
- staticClass: "list-group-item"
- }, [_c("center", [_vm.data.user.saham >= 500 && _vm.data.user.kehadiran != 0 ? _c("router-link", {
- staticClass: "btn btn-warning",
+ staticClass: "detail-label"
+ }, [_vm._v("NAMA:")]), _vm._v(" "), _c("span", {
+ staticClass: "detail-value"
+ }, [_vm._v(_vm._s(_vm.data.user.name))])]), _vm._v(" "), _c("div", {
+ staticClass: "detail-item"
+ }, [_c("span", {
+ staticClass: "detail-label"
+ }, [_vm._v("NO KAD PENGENALAN:")]), _vm._v(" "), _c("span", {
+ staticClass: "detail-value"
+ }, [_vm._v(_vm._s(_vm.data.user.no_kp))])]), _vm._v(" "), _c("div", {
+ staticClass: "detail-item"
+ }, [_c("span", {
+ staticClass: "detail-label"
+ }, [_vm._v("NO ANGGOTA:")]), _vm._v(" "), _c("span", {
+ staticClass: "detail-value"
+ }, [_vm._v(_vm._s(_vm.data.user.no_anggota))])]), _vm._v(" "), _c("div", {
+ staticClass: "detail-item"
+ }, [_c("span", {
+ staticClass: "detail-label"
+ }, [_vm._v("UNIT:")]), _vm._v(" "), _c("span", {
+ staticClass: "detail-value"
+ }, [_vm._v(_vm._s(_vm.data.user.unit))])]), _vm._v(" "), _c("div", {
+ staticClass: "detail-item"
+ }, [_c("svg", {
+ staticClass: "detail-value",
attrs: {
- to: {
- name: "Vote"
- }
+ id: "barcode"
}
- }, [_vm._v("\n 🗳️Undi Sekarang\n ")]) : _vm._e(), _vm._v(" "), _vm.data.user.saham >= 500 ? _c("router-link", {
- staticClass: "btn btn-success",
- attrs: {
- to: {
- name: "Attendance"
- }
- }
- }, [_vm._v("\n 📝 Daftar Kehadiran\n ")]) : _c("div", {
- staticClass: "alert alert-danger",
- attrs: {
- role: "alert"
- }
- }, [_vm._v("\n Saham minima tidak mencukupi untuk pengundian. Sila ke tab "), _c("strong", [_vm._v(" Daftar MAT")]), _vm._v(" untuk pengesahan kehadiran.\n ")])], 1)], 1) : _vm._e(), _vm._v(" "), _vm.hasVoted() ? _c("div", [_c("hr"), _vm._v(" "), _c("div", {
- staticClass: "p-2 mb-3 text-center",
- staticStyle: {
- "background-color": "#007bff",
- color: "white",
- "font-weight": "bold",
- "font-size": "1.6rem",
- "border-radius": "4px"
- }
- }, [_vm._v("\n Maklumat Undian Anda\n ")]), _vm._v(" "), _c("hr"), _vm._v(" "), _c("ul", {
- staticClass: "list-group"
- }, _vm._l(_vm.data.result, function (result) {
- return _c("li", {
- staticClass: "list-group-item"
- }, [_c("b", [_vm._v(_vm._s(_vm.getPosition(result.position_id)) + " : ")]), _vm._v(_vm._s(_vm.getNominee(result.nominee_id)) + "\n ")]);
- }), 0)]) : _vm._e()]), _vm._v(" "), _c("div", {
+ }, [_vm._v(_vm._s(_vm.data.user.no_kp))])])])])])]), _vm._v(" "), _c("div", {
staticClass: "col-md-8"
}, [_c("div", {
staticClass: "p-2 mb-3 text-center",
@@ -10082,20 +10399,19 @@ var render = function render() {
"font-size": "1.6rem",
"border-radius": "4px"
}
- }, [_vm._v("\n Maklumat Calon\n ")]), _vm._v(" "), _c("hr"), _vm._v(" "), _c("small", [_vm._v("Tekan gambar untuk maklumat calon")]), _vm._v(" "), _vm._l(_vm.data.positions, function (position) {
+ }, [_vm._v("\n Maklumat Calon\n ")]), _vm._v(" "), _c("hr"), _vm._v(" "), _c("small", [_vm._v("Tekan gambar untuk maklumat calon")]), _vm._v(" "), _vm._l(_vm.data.positions, function (position) {
return _c("div", {
+ key: position.id,
staticClass: "panel panel-primary"
}, [_c("div", {
staticClass: "panel-heading"
}, [_vm._v(_vm._s(position.name))]), _vm._v(" "), _c("div", {
staticClass: "panel-body table-responsive"
}, [_c("table", {
- staticClass: "table table-hover",
- attrs: {
- id: "table-nominee"
- }
- }, [_vm._m(1, true), _vm._v(" "), _c("tbody", _vm._l(_vm.data.nominees, function (nominee, i) {
+ staticClass: "table table-hover"
+ }, [_vm._m(2, true), _vm._v(" "), _c("tbody", _vm._l(_vm.data.nominees, function (nominee, i) {
return nominee.position_id == position.id ? _c("tr", {
+ key: nominee.id,
on: {
click: function click($event) {
return _vm.viewNomineeDetails(nominee);
@@ -10109,28 +10425,33 @@ var render = function render() {
},
attrs: {
src: _vm.createBase64ImageUrl(nominee.photo)
- },
- on: {
- click: function click($event) {
- return _vm.view(nominee, i);
- }
}
})]), _vm._v(" "), _c("td", [_vm._v(_vm._s(nominee.no_calon))]), _vm._v(" "), _c("td", [_vm._v(_vm._s(nominee.name))]), _vm._v(" "), _c("td", [_vm._v(_vm._s(nominee.no_anggota))]), _vm._v(" "), _c("td", [_vm._v(_vm._s(nominee.unit))])]) : _vm._e();
}), 0)])])]);
- })], 2), _vm._v(" "), _c("div", {
- staticClass: "modal",
- attrs: {
- id: "view-nominee-modal",
- tabindex: "-1"
- }
+ })], 2), _vm._v(" "), _vm.showNomineeModal ? _c("div", {
+ staticClass: "modal-backdrop"
}, [_c("div", {
staticClass: "modal-dialog"
}, [_c("div", {
staticClass: "modal-content"
- }, [_vm._m(2), _vm._v(" "), _c("div", {
- staticClass: "modal-body"
}, [_c("div", {
- staticClass: "content"
+ staticClass: "modal-header"
+ }, [_c("h5", {
+ staticClass: "modal-title"
+ }, [_vm._v("Maklumat Calon")]), _vm._v(" "), _c("button", {
+ staticClass: "close",
+ attrs: {
+ type: "button"
+ },
+ on: {
+ click: _vm.closeNomineeModal
+ }
+ }, [_c("span", {
+ attrs: {
+ "aria-hidden": "true"
+ }
+ }, [_vm._v("×")])])]), _vm._v(" "), _c("div", {
+ staticClass: "modal-body"
}, [_c("div", {
staticClass: "photo-section"
}, [_c("img", {
@@ -10140,7 +10461,7 @@ var render = function render() {
}
})]), _vm._v(" "), _c("div", {
staticClass: "detail-section"
- }, [_c("span", [_c("b", [_vm._v(" Nama : ")]), _vm._v(_vm._s(_vm.nomineeViewed.name))]), _vm._v(" "), _c("span", [_c("b", [_vm._v(" Unit : ")]), _vm._v(_vm._s(_vm.nomineeViewed.unit))]), _vm._v(" "), _c("span", [_c("b", [_vm._v(" Umur : ")]), _vm._v(_vm._s(_vm.nomineeViewed.umur))]), _vm._v(" "), _c("span", [_c("b", [_vm._v(" Jawatan Sekarang : ")]), _vm._v(_vm._s(_vm.nomineeViewed.jawatan_sekarang))]), _vm._v(" "), _vm._m(3), _vm._v(" "), _c("ol", _vm._l(_vm.nomineeViewed.education, function (item, index) {
+ }, [_c("p", [_c("b", [_vm._v("Nama:")]), _vm._v(" " + _vm._s(_vm.nomineeViewed.name))]), _vm._v(" "), _c("p", [_c("b", [_vm._v("Unit:")]), _vm._v(" " + _vm._s(_vm.nomineeViewed.unit))]), _vm._v(" "), _c("p", [_c("b", [_vm._v("Umur:")]), _vm._v(" " + _vm._s(_vm.nomineeViewed.umur))]), _vm._v(" "), _c("p", [_c("b", [_vm._v("Jawatan Sekarang:")]), _vm._v(" " + _vm._s(_vm.nomineeViewed.jawatan_sekarang))]), _vm._v(" "), _vm._m(3), _vm._v(" "), _c("ol", _vm._l(_vm.nomineeViewed.education, function (item, index) {
return _c("li", {
key: index
}, [_vm._v(_vm._s(item))]);
@@ -10148,7 +10469,14 @@ var render = function render() {
return _c("li", {
key: index
}, [_vm._v(_vm._s(item))]);
- }), 0)])])]), _vm._v(" "), _vm._m(5)])])])]);
+ }), 0)])]), _vm._v(" "), _c("div", {
+ staticClass: "modal-footer"
+ }, [_c("button", {
+ staticClass: "btn btn-success",
+ on: {
+ click: _vm.closeNomineeModal
+ }
+ }, [_vm._v("Tutup")])])])])]) : _vm._e()]);
};
var staticRenderFns = [function () {
var _vm = this,
@@ -10167,6 +10495,28 @@ var staticRenderFns = [function () {
alt: "Banner"
}
})]);
+}, function () {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("div", {
+ staticClass: "kad-logo",
+ staticStyle: {
+ "text-align": "right",
+ margin: "0",
+ padding: "0"
+ }
+ }, [_c("img", {
+ staticStyle: {
+ width: "124px",
+ height: "auto",
+ filter: "drop-shadow(3px 3px 4px black)",
+ "margin-right": "0"
+ },
+ attrs: {
+ src: "/images/logo_kad.png",
+ alt: "Logo"
+ }
+ })]);
}, function () {
var _vm = this,
_c = _vm._self._c;
@@ -10174,45 +10524,11 @@ var staticRenderFns = [function () {
}, function () {
var _vm = this,
_c = _vm._self._c;
- return _c("div", {
- staticClass: "modal-header"
- }, [_c("h5", {
- staticClass: "modal-title",
- staticStyle: {
- display: "inline"
- }
- }, [_vm._v("Maklumat Calon")]), _vm._v(" "), _c("button", {
- staticClass: "close",
- attrs: {
- type: "button",
- "data-dismiss": "modal",
- "aria-label": "Close"
- }
- }, [_c("span", {
- attrs: {
- "aria-hidden": "true"
- }
- }, [_vm._v("×")])])]);
+ return _c("p", [_c("b", [_vm._v("Taraf Pendidikan:")])]);
}, function () {
var _vm = this,
_c = _vm._self._c;
- return _c("span", [_c("b", [_vm._v("Taraf Pendidikan :")])]);
-}, function () {
- var _vm = this,
- _c = _vm._self._c;
- return _c("span", [_c("b", [_vm._v(" Pengalaman Kerja : ")])]);
-}, function () {
- var _vm = this,
- _c = _vm._self._c;
- return _c("div", {
- staticClass: "modal-footer"
- }, [_c("button", {
- staticClass: "btn btn-secondary",
- attrs: {
- type: "button",
- "data-dismiss": "modal"
- }
- }, [_vm._v("Tutup")])]);
+ return _c("p", [_c("b", [_vm._v("Pengalaman Kerja:")])]);
}];
render._withStripped = true;
@@ -10266,6 +10582,446 @@ var staticRenderFns = [function () {
render._withStripped = true;
+/***/ }),
+
+/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=template&id=53adb7ac&scoped=true":
+/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=template&id=53adb7ac&scoped=true ***!
+ \***********************************************************************************************************************************************************************************************************************************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ render: () => (/* binding */ render),
+/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)
+/* harmony export */ });
+var render = function render() {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("div", {
+ staticClass: "penyata-wrapper container"
+ }, [_c("div", {
+ staticClass: "header-section"
+ }, [_vm._m(0), _vm._v(" "), _c("div", {
+ staticClass: "header-right"
+ }, [_vm._m(1), _vm._v(" "), _c("h4", {
+ staticClass: "text-muted mt-2"
+ }, [_vm._v(_vm._s(new Date().getFullYear()))])])]), _vm._v(" "), _c("hr", {
+ staticClass: "mt-3"
+ }), _vm._v(" "), _vm.data.user.no_anggota ? _c("div", {
+ staticClass: "form-section two-column"
+ }, [_c("div", {
+ staticClass: "form-group"
+ }, [_c("label", {
+ staticClass: "form-label fw-semibold"
+ }, [_vm._v("Tarikh :")]), _vm._v(" "), _c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.tarikh,
+ expression: "tarikh"
+ }],
+ staticClass: "form-control form-control-sm",
+ attrs: {
+ type: "date"
+ },
+ domProps: {
+ value: _vm.tarikh
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.tarikh = $event.target.value;
+ }
+ }
+ })]), _vm._v(" "), _c("div", {
+ staticClass: "form-group"
+ }, [_c("label", {
+ staticClass: "form-label fw-semibold"
+ }, [_vm._v("No. Anggota:")]), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.data.user.no_anggota))])]), _vm._v(" "), _c("div", {
+ staticClass: "form-group"
+ }, [_c("label", {
+ staticClass: "form-label fw-semibold"
+ }, [_vm._v("Nama:")]), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.data.user.name))])]), _vm._v(" "), _c("div", {
+ staticClass: "form-group"
+ }, [_c("label", {
+ staticClass: "form-label fw-semibold"
+ }, [_vm._v("Pejabat / Syarikat:")]), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.data.user.unit))])])]) : _vm._e(), _vm._v(" "), _vm._m(2), _vm._v(" "), _vm._m(3), _vm._v(" "), _c("table", {
+ staticClass: "boxed-table mt-4"
+ }, [_c("tbody", [_c("tr", [_c("td", [_vm._v("Saham")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.saham))]), _vm._v(" "), _c("td", [_vm._v("Yuran")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.yuran))])]), _vm._v(" "), _c("tr", [_c("td", [_vm._v("Pelaburan T1")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.pelaburan))]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Peribadi")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.peribadi))])]), _vm._v(" "), _c("tr", [_c("td", [_vm._v("Pelaburan T2")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.pelaburanT2))]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Berjamin Yuran")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.berjamin_yuran))])]), _vm._v(" "), _c("tr", [_c("td", [_vm._v("Pembiayaan Kecemasan")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.tergempar))]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Takaful / Cukai Jalan")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.roadtax))])]), _vm._v(" "), _c("tr", [_c("td", [_vm._v("Pembiayaan Pengguna")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.barangan))]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Pelbagai")]), _vm._v(" "), _c("td", [_vm._v(_vm._s(_vm.data.user.pelbagai))])])])]), _vm._v(" "), _vm._m(4), _vm._v(" "), _c("p", [_vm._v("Sekian, dimaklumkan.")]), _vm._v(" "), _c("p", {
+ staticClass: "italic-note"
+ }, [_vm._v("Surat ini dikeluarkan oleh komputer, tidak perlu ditandatangani.")]), _vm._v(" "), _vm._m(5), _vm._v(" "), _c("div", {
+ staticClass: "text-center"
+ }, [_c("label", {
+ staticClass: "ms-2"
+ }, [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.persetujuan,
+ expression: "persetujuan"
+ }],
+ attrs: {
+ type: "radio",
+ name: "persetujuan",
+ value: "Bersetuju",
+ disabled: _vm.data.user.status_penyata === "DISAHKAN"
+ },
+ domProps: {
+ checked: _vm._q(_vm.persetujuan, "Bersetuju")
+ },
+ on: {
+ change: function change($event) {
+ _vm.persetujuan = "Bersetuju";
+ }
+ }
+ }), _vm._v("\n Bersetuju\n ")]), _vm._v(" "), _c("label", {
+ staticClass: "ms-3"
+ }, [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.persetujuan,
+ expression: "persetujuan"
+ }],
+ attrs: {
+ type: "radio",
+ name: "persetujuan",
+ value: "Tidak Bersetuju",
+ disabled: _vm.data.user.status_penyata === "DISAHKAN"
+ },
+ domProps: {
+ checked: _vm._q(_vm.persetujuan, "Tidak Bersetuju")
+ },
+ on: {
+ change: function change($event) {
+ _vm.persetujuan = "Tidak Bersetuju";
+ }
+ }
+ }), _vm._v("\n Tidak Bersetuju\n ")])]), _vm._v(" "), _c("p", {
+ staticClass: "text-center"
+ }, [_c("strong", [_vm.data.user.status_penyata === "DISAHKAN" ? _c("span", {
+ staticClass: "badge-disahkan"
+ }, [_vm._v("\n Disahkan\n ")]) : _vm.persetujuan === "TIDAK SETUJU" ? _c("span", {
+ staticClass: "badge-tidak-setuju"
+ }, [_vm._v("\n Tidak Setuju\n ")]) : _c("span", [_vm._v("\n " + _vm._s(_vm.persetujuan || "Belum membuat pilihan") + "\n ")])])]), _vm._v(" "), _c("table", {
+ staticClass: "table table-sm no-lines text-center align-middle mt-2"
+ }, [_c("tbody", [_c("tr", [_c("td", [_vm._v("Saham")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.saham,
+ expression: "data.user.saham"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.data.user.saham
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "saham", $event.target.value);
+ }
+ }
+ })]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Kecemasan")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.tergempar,
+ expression: "data.user.tergempar"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.data.user.tergempar
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "tergempar", $event.target.value);
+ }
+ }
+ })])]), _vm._v(" "), _c("tr", [_c("td", [_vm._v("Yuran")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.yuran,
+ expression: "data.user.yuran"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.data.user.yuran
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "yuran", $event.target.value);
+ }
+ }
+ })]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Pengguna")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.barangan,
+ expression: "data.user.barangan"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.data.user.barangan
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "barangan", $event.target.value);
+ }
+ }
+ })])]), _vm._v(" "), _c("tr", [_c("td", [_vm._v("Pelaburan T1")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.pelaburan,
+ expression: "data.user.pelaburan"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.data.user.pelaburan
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "pelaburan", $event.target.value);
+ }
+ }
+ })]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Berjamin Yuran")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.berjamin_yuran,
+ expression: "data.user.berjamin_yuran"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.data.user.berjamin_yuran
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "berjamin_yuran", $event.target.value);
+ }
+ }
+ })])]), _vm._v(" "), _c("tr", [_c("td", [_vm._v("Pelaburan T2")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.pelaburanT2,
+ expression: "data.user.pelaburanT2"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.data.user.pelaburanT2
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "pelaburanT2", $event.target.value);
+ }
+ }
+ })]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Takaful / Cukai Jalan")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.roadtax,
+ expression: "data.user.roadtax"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.data.user.roadtax
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "roadtax", $event.target.value);
+ }
+ }
+ })])]), _vm._v(" "), _c("tr", [_c("td", [_vm._v(" ")]), _vm._v(" "), _c("td", [_vm._v(" ")]), _vm._v(" "), _c("td", [_vm._v("Pembiayaan Pelaburan")]), _vm._v(" "), _c("td", [_c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.data.user.pelbagai,
+ expression: "data.user.pelbagai"
+ }],
+ staticClass: "keyin-input",
+ attrs: {
+ type: "text"
+ },
+ domProps: {
+ value: _vm.data.user.pelbagai
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.$set(_vm.data.user, "pelbagai", $event.target.value);
+ }
+ }
+ })])])])]), _vm._v(" "), _c("div", {
+ staticClass: "text-right mb-3 no-print"
+ }, [_c("button", {
+ staticClass: "btn btn-primary btn-effect",
+ staticStyle: {
+ width: "100px"
+ },
+ attrs: {
+ disabled: _vm.data.user.status_penyata === "DISAHKAN"
+ },
+ on: {
+ click: _vm.SahkanPenyata
+ }
+ }, [_vm._v("\n " + _vm._s(_vm.data.user.status_penyata === "DISAHKAN" ? "Disahkan" : "Sahkan") + "\n ")]), _vm._v(" "), _c("button", {
+ staticClass: "btn btn-danger ms-2",
+ on: {
+ click: _vm.cetakPDF
+ }
+ }, [_vm._v("Cetak PDF")])]), _vm._v(" "), _c("div", {
+ staticClass: "signature-section"
+ }, [_c("div", {
+ staticClass: "sign-column"
+ }, [_c("label", {
+ staticClass: "form-label"
+ }, [_vm._v("No Kad Pengenalan:")]), _vm._v(" "), _c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.nokp,
+ expression: "nokp"
+ }],
+ staticClass: "keyin-line",
+ attrs: {
+ type: "number"
+ },
+ domProps: {
+ value: _vm.nokp
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.nokp = $event.target.value;
+ }
+ }
+ })]), _vm._v(" "), _c("div", {
+ staticClass: "sig-column"
+ }, [_c("label", {
+ staticClass: "form-label"
+ }, [_vm._v("Tarikh:")]), _vm._v(" "), _c("input", {
+ directives: [{
+ name: "model",
+ rawName: "v-model",
+ value: _vm.tarikh,
+ expression: "tarikh"
+ }],
+ staticClass: "keyin-line",
+ attrs: {
+ type: "date"
+ },
+ domProps: {
+ value: _vm.tarikh
+ },
+ on: {
+ input: function input($event) {
+ if ($event.target.composing) return;
+ _vm.tarikh = $event.target.value;
+ }
+ }
+ })])])]);
+};
+var staticRenderFns = [function () {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("div", {
+ staticClass: "header-left"
+ }, [_c("div", {
+ staticClass: "logo-wrapper"
+ }, [_c("img", {
+ staticClass: "kopkb-logo",
+ attrs: {
+ src: "/images/logo-kopkb.jpeg",
+ alt: "KoPKB Logo"
+ }
+ }), _vm._v(" "), _c("div", [_c("h4", {
+ staticClass: "fw-bold mb-1"
+ }, [_vm._v("Koperasi Permodalan Kelantan Berhad (KoPKB)")]), _vm._v(" "), _c("p", {
+ staticStyle: {
+ "font-size": "13px",
+ "line-height": "1.3",
+ margin: "0"
+ }
+ }, [_vm._v("\n Lot PT 448, Tingkat 1, Jalan Kuala Krai, Batu 3, Wakaf Che Yeh, 15150 Kota Bharu, Kelantan"), _c("br"), _vm._v("\n Tel: 09-7414339 | Website: www.koppkb.com\n ")])])])]);
+}, function () {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("div", {
+ staticClass: "title-box"
+ }, [_c("h5", [_vm._v("PENYATA AHLI")])]);
+}, function () {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("h5", {
+ staticClass: "mt-4"
+ }, [_c("strong", [_vm._v("PENGESAHAN PENYATA BAKI AKAUN AHLI")])]);
+}, function () {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("p", [_vm._v("Adalah dimaklumkan kedudukan baki akaun tuan/puan pada "), _c("b", [_vm._v("31/12/2025")]), _vm._v(" adalah seperti berikut:")]);
+}, function () {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("p", {
+ staticClass: "mt-4"
+ }, [_c("em", [_vm._v("Sekiranya kami tidak menerima pengesahan dalam tempoh "), _c("strong", [_vm._v("14 hari")]), _vm._v(", ia dianggap\n bersetuju dan memperakui benar.")])]);
+}, function () {
+ var _vm = this,
+ _c = _vm._self._c;
+ return _c("div", {
+ staticClass: "text-center mt-4 mb-3"
+ }, [_c("div", {
+ staticStyle: {
+ "font-weight": "700",
+ "font-size": "18px",
+ "letter-spacing": "1px"
+ }
+ }, [_vm._v("\n PERSETUJUAN AHLI\n ")]), _vm._v(" "), _c("hr", {
+ staticStyle: {
+ width: "200px",
+ margin: "8px auto"
+ }
+ })]);
+}];
+render._withStripped = true;
+
+
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/result.vue?vue&type=template&id=56ffd331":
@@ -10669,7 +11425,10 @@ var render = function render() {
}, [_c("b", [_vm._v("PAUTAN MESYUARAT")])])]) : _vm._e(), _vm._v(" "), _c("router-link", {
attrs: {
to: {
- name: "Penyata"
+ name: "penyata",
+ params: {
+ no_anggota: _vm.data.user.no_anggota
+ }
},
tag: "li",
exact: ""
@@ -11233,41 +11992,45 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _components_demo_voter_home_result_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/demo/voter/home/result.vue */ "./resources/assets/js/components/demo/voter/home/result.vue");
/* harmony import */ var _components_demo_voter_home_attendance_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/demo/voter/home/attendance.vue */ "./resources/assets/js/components/demo/voter/home/attendance.vue");
/* harmony import */ var _components_demo_voter_home_zoom_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/demo/voter/home/zoom.vue */ "./resources/assets/js/components/demo/voter/home/zoom.vue");
-/* harmony import */ var _components_demo_admin_login_vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/demo/admin/login.vue */ "./resources/assets/js/components/demo/admin/login.vue");
-/* harmony import */ var _components_demo_admin_index_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/demo/admin/index.vue */ "./resources/assets/js/components/demo/admin/index.vue");
-/* harmony import */ var _components_demo_admin_home_final_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/demo/admin/home/final.vue */ "./resources/assets/js/components/demo/admin/home/final.vue");
-/* harmony import */ var _components_demo_admin_home_home_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/demo/admin/home/home.vue */ "./resources/assets/js/components/demo/admin/home/home.vue");
-/* harmony import */ var _components_demo_admin_home_index_vue__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/demo/admin/home/index.vue */ "./resources/assets/js/components/demo/admin/home/index.vue");
-/* harmony import */ var _components_demo_admin_home_result_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/demo/admin/home/result.vue */ "./resources/assets/js/components/demo/admin/home/result.vue");
-/* harmony import */ var _components_demo_admin_position_position_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/demo/admin/position/position.vue */ "./resources/assets/js/components/demo/admin/position/position.vue");
-/* harmony import */ var _components_demo_admin_position_index_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/demo/admin/position/index.vue */ "./resources/assets/js/components/demo/admin/position/index.vue");
-/* harmony import */ var _components_demo_admin_position_add_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/demo/admin/position/add.vue */ "./resources/assets/js/components/demo/admin/position/add.vue");
-/* harmony import */ var _components_demo_admin_position_edit_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/demo/admin/position/edit.vue */ "./resources/assets/js/components/demo/admin/position/edit.vue");
-/* harmony import */ var _components_demo_admin_partylist_partylist_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/demo/admin/partylist/partylist.vue */ "./resources/assets/js/components/demo/admin/partylist/partylist.vue");
-/* harmony import */ var _components_demo_admin_partylist_index_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/demo/admin/partylist/index.vue */ "./resources/assets/js/components/demo/admin/partylist/index.vue");
-/* harmony import */ var _components_demo_admin_partylist_add_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/demo/admin/partylist/add.vue */ "./resources/assets/js/components/demo/admin/partylist/add.vue");
-/* harmony import */ var _components_demo_admin_partylist_edit_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/demo/admin/partylist/edit.vue */ "./resources/assets/js/components/demo/admin/partylist/edit.vue");
-/* harmony import */ var _components_demo_admin_voter_voter_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/demo/admin/voter/voter.vue */ "./resources/assets/js/components/demo/admin/voter/voter.vue");
-/* harmony import */ var _components_demo_admin_voter_index_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/demo/admin/voter/index.vue */ "./resources/assets/js/components/demo/admin/voter/index.vue");
-/* harmony import */ var _components_demo_admin_voter_add_vue__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/demo/admin/voter/add.vue */ "./resources/assets/js/components/demo/admin/voter/add.vue");
-/* harmony import */ var _components_demo_admin_voter_edit_vue__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/demo/admin/voter/edit.vue */ "./resources/assets/js/components/demo/admin/voter/edit.vue");
-/* harmony import */ var _components_demo_admin_voter_kehadiran_vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/demo/admin/voter/kehadiran.vue */ "./resources/assets/js/components/demo/admin/voter/kehadiran.vue");
-/* harmony import */ var _components_demo_admin_voter_fizikal_vue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/demo/admin/voter/fizikal.vue */ "./resources/assets/js/components/demo/admin/voter/fizikal.vue");
-/* harmony import */ var _components_demo_admin_voter_maya_vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/demo/admin/voter/maya.vue */ "./resources/assets/js/components/demo/admin/voter/maya.vue");
-/* harmony import */ var _components_demo_admin_voter_viewkehadiran_vue__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/demo/admin/voter/viewkehadiran.vue */ "./resources/assets/js/components/demo/admin/voter/viewkehadiran.vue");
-/* harmony import */ var _components_demo_admin_nominee_nominee_vue__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/demo/admin/nominee/nominee.vue */ "./resources/assets/js/components/demo/admin/nominee/nominee.vue");
-/* harmony import */ var _components_demo_admin_nominee_index_vue__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/demo/admin/nominee/index.vue */ "./resources/assets/js/components/demo/admin/nominee/index.vue");
-/* harmony import */ var _components_demo_admin_nominee_add_vue__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/demo/admin/nominee/add.vue */ "./resources/assets/js/components/demo/admin/nominee/add.vue");
-/* harmony import */ var _components_demo_admin_nominee_edit_vue__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/demo/admin/nominee/edit.vue */ "./resources/assets/js/components/demo/admin/nominee/edit.vue");
-/* harmony import */ var _components_demo_admin_admin_admin_vue__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/demo/admin/admin/admin.vue */ "./resources/assets/js/components/demo/admin/admin/admin.vue");
-/* harmony import */ var _components_demo_admin_admin_index_vue__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/demo/admin/admin/index.vue */ "./resources/assets/js/components/demo/admin/admin/index.vue");
-/* harmony import */ var _components_demo_admin_admin_edit_vue__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./components/demo/admin/admin/edit.vue */ "./resources/assets/js/components/demo/admin/admin/edit.vue");
-/* harmony import */ var _components_demo_admin_admin_password_vue__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./components/demo/admin/admin/password.vue */ "./resources/assets/js/components/demo/admin/admin/password.vue");
-/* harmony import */ var _components_demo_admin_admin_add_vue__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./components/demo/admin/admin/add.vue */ "./resources/assets/js/components/demo/admin/admin/add.vue");
-/* harmony import */ var _components_demo_admin_admin_pembiayaan_vue__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./components/demo/admin/admin/pembiayaan.vue */ "./resources/assets/js/components/demo/admin/admin/pembiayaan.vue");
-/* harmony import */ var _components_demo_admin_admin_beliankomoditi_vue__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./components/demo/admin/admin/beliankomoditi.vue */ "./resources/assets/js/components/demo/admin/admin/beliankomoditi.vue");
-/* harmony import */ var _components_demo_admin_admin_kontrakmurabahah_vue__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./components/demo/admin/admin/kontrakmurabahah.vue */ "./resources/assets/js/components/demo/admin/admin/kontrakmurabahah.vue");
-/* harmony import */ var _components_demo_admin_admin_cetakpermohonan_vue__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./components/demo/admin/admin/cetakpermohonan.vue */ "./resources/assets/js/components/demo/admin/admin/cetakpermohonan.vue");
+/* harmony import */ var _components_demo_voter_home_penyata_vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/demo/voter/home/penyata.vue */ "./resources/assets/js/components/demo/voter/home/penyata.vue");
+/* harmony import */ var _components_demo_admin_login_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/demo/admin/login.vue */ "./resources/assets/js/components/demo/admin/login.vue");
+/* harmony import */ var _components_demo_admin_index_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/demo/admin/index.vue */ "./resources/assets/js/components/demo/admin/index.vue");
+/* harmony import */ var _components_demo_admin_home_final_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/demo/admin/home/final.vue */ "./resources/assets/js/components/demo/admin/home/final.vue");
+/* harmony import */ var _components_demo_admin_home_home_vue__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/demo/admin/home/home.vue */ "./resources/assets/js/components/demo/admin/home/home.vue");
+/* harmony import */ var _components_demo_admin_home_index_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/demo/admin/home/index.vue */ "./resources/assets/js/components/demo/admin/home/index.vue");
+/* harmony import */ var _components_demo_admin_home_result_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/demo/admin/home/result.vue */ "./resources/assets/js/components/demo/admin/home/result.vue");
+/* harmony import */ var _components_demo_admin_position_position_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/demo/admin/position/position.vue */ "./resources/assets/js/components/demo/admin/position/position.vue");
+/* harmony import */ var _components_demo_admin_position_index_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/demo/admin/position/index.vue */ "./resources/assets/js/components/demo/admin/position/index.vue");
+/* harmony import */ var _components_demo_admin_position_add_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/demo/admin/position/add.vue */ "./resources/assets/js/components/demo/admin/position/add.vue");
+/* harmony import */ var _components_demo_admin_position_edit_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/demo/admin/position/edit.vue */ "./resources/assets/js/components/demo/admin/position/edit.vue");
+/* harmony import */ var _components_demo_admin_partylist_partylist_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/demo/admin/partylist/partylist.vue */ "./resources/assets/js/components/demo/admin/partylist/partylist.vue");
+/* harmony import */ var _components_demo_admin_partylist_index_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/demo/admin/partylist/index.vue */ "./resources/assets/js/components/demo/admin/partylist/index.vue");
+/* harmony import */ var _components_demo_admin_partylist_add_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/demo/admin/partylist/add.vue */ "./resources/assets/js/components/demo/admin/partylist/add.vue");
+/* harmony import */ var _components_demo_admin_partylist_edit_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/demo/admin/partylist/edit.vue */ "./resources/assets/js/components/demo/admin/partylist/edit.vue");
+/* harmony import */ var _components_demo_admin_voter_voter_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/demo/admin/voter/voter.vue */ "./resources/assets/js/components/demo/admin/voter/voter.vue");
+/* harmony import */ var _components_demo_admin_voter_index_vue__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/demo/admin/voter/index.vue */ "./resources/assets/js/components/demo/admin/voter/index.vue");
+/* harmony import */ var _components_demo_admin_voter_add_vue__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/demo/admin/voter/add.vue */ "./resources/assets/js/components/demo/admin/voter/add.vue");
+/* harmony import */ var _components_demo_admin_voter_edit_vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/demo/admin/voter/edit.vue */ "./resources/assets/js/components/demo/admin/voter/edit.vue");
+/* harmony import */ var _components_demo_admin_voter_kehadiran_vue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/demo/admin/voter/kehadiran.vue */ "./resources/assets/js/components/demo/admin/voter/kehadiran.vue");
+/* harmony import */ var _components_demo_admin_voter_fizikal_vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/demo/admin/voter/fizikal.vue */ "./resources/assets/js/components/demo/admin/voter/fizikal.vue");
+/* harmony import */ var _components_demo_admin_voter_maya_vue__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/demo/admin/voter/maya.vue */ "./resources/assets/js/components/demo/admin/voter/maya.vue");
+/* harmony import */ var _components_demo_admin_voter_viewkehadiran_vue__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/demo/admin/voter/viewkehadiran.vue */ "./resources/assets/js/components/demo/admin/voter/viewkehadiran.vue");
+/* harmony import */ var _components_demo_admin_nominee_nominee_vue__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/demo/admin/nominee/nominee.vue */ "./resources/assets/js/components/demo/admin/nominee/nominee.vue");
+/* harmony import */ var _components_demo_admin_nominee_index_vue__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/demo/admin/nominee/index.vue */ "./resources/assets/js/components/demo/admin/nominee/index.vue");
+/* harmony import */ var _components_demo_admin_nominee_add_vue__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/demo/admin/nominee/add.vue */ "./resources/assets/js/components/demo/admin/nominee/add.vue");
+/* harmony import */ var _components_demo_admin_nominee_edit_vue__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/demo/admin/nominee/edit.vue */ "./resources/assets/js/components/demo/admin/nominee/edit.vue");
+/* harmony import */ var _components_demo_admin_admin_admin_vue__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/demo/admin/admin/admin.vue */ "./resources/assets/js/components/demo/admin/admin/admin.vue");
+/* harmony import */ var _components_demo_admin_admin_index_vue__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./components/demo/admin/admin/index.vue */ "./resources/assets/js/components/demo/admin/admin/index.vue");
+/* harmony import */ var _components_demo_admin_admin_edit_vue__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./components/demo/admin/admin/edit.vue */ "./resources/assets/js/components/demo/admin/admin/edit.vue");
+/* harmony import */ var _components_demo_admin_admin_password_vue__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./components/demo/admin/admin/password.vue */ "./resources/assets/js/components/demo/admin/admin/password.vue");
+/* harmony import */ var _components_demo_admin_admin_add_vue__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./components/demo/admin/admin/add.vue */ "./resources/assets/js/components/demo/admin/admin/add.vue");
+/* harmony import */ var _components_demo_admin_admin_pembiayaan_vue__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./components/demo/admin/admin/pembiayaan.vue */ "./resources/assets/js/components/demo/admin/admin/pembiayaan.vue");
+/* harmony import */ var _components_demo_admin_admin_beliankomoditi_vue__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./components/demo/admin/admin/beliankomoditi.vue */ "./resources/assets/js/components/demo/admin/admin/beliankomoditi.vue");
+/* harmony import */ var _components_demo_admin_admin_kontrakmurabahah_vue__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./components/demo/admin/admin/kontrakmurabahah.vue */ "./resources/assets/js/components/demo/admin/admin/kontrakmurabahah.vue");
+/* harmony import */ var _components_demo_admin_admin_cetakpermohonan_vue__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./components/demo/admin/admin/cetakpermohonan.vue */ "./resources/assets/js/components/demo/admin/admin/cetakpermohonan.vue");
+/* harmony import */ var _components_demo_admin_admin_penyata_anggota_vue__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./components/demo/admin/admin/penyata-anggota.vue */ "./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue");
+
+
@@ -11313,185 +12076,193 @@ __webpack_require__.r(__webpack_exports__);
var default_component = {
- template: '
Not found: {{ $route.path }}
'
+ template: "Not found: {{ $route.path }}
"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ([{
- path: '/',
+ path: "/",
component: _components_demo_voter_index_vue__WEBPACK_IMPORTED_MODULE_2__["default"],
children: [{
- path: '',
+ path: "",
component: _components_demo_voter_home_index_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
- name: 'Voter Home'
+ name: "Voter Home"
}, {
- path: 'mat27',
+ path: "mat27",
component: _components_demo_voter_home_mat_vue__WEBPACK_IMPORTED_MODULE_4__["default"],
- name: 'Mat'
+ name: "Mat"
}, {
- path: 'vote',
+ path: "vote",
component: _components_demo_voter_home_vote_vue__WEBPACK_IMPORTED_MODULE_5__["default"],
- name: 'Vote'
+ name: "Vote"
}, {
- path: 'result',
+ path: "result",
component: _components_demo_voter_home_result_vue__WEBPACK_IMPORTED_MODULE_6__["default"],
- name: 'Result'
+ name: "Result"
}, {
- path: 'attendance',
+ path: "attendance",
component: _components_demo_voter_home_attendance_vue__WEBPACK_IMPORTED_MODULE_7__["default"],
- name: 'Attendance'
+ name: "Attendance"
}, {
- path: 'zoom',
+ path: "zoom",
component: _components_demo_voter_home_zoom_vue__WEBPACK_IMPORTED_MODULE_8__["default"],
- name: 'Zoom'
+ name: "Zoom"
+ }, {
+ path: "/penyata/:no_anggota",
+ name: "penyata",
+ component: _components_demo_voter_home_penyata_vue__WEBPACK_IMPORTED_MODULE_9__["default"]
}]
}, {
- path: '/login',
+ path: "/login",
component: _components_demo_voter_login_vue__WEBPACK_IMPORTED_MODULE_0__["default"],
- name: 'Voter Login'
+ name: "Voter Login"
}, {
- path: '/verification',
+ path: "/verification",
component: _components_demo_voter_verification_vue__WEBPACK_IMPORTED_MODULE_1__["default"],
- name: 'Voter Verify'
+ name: "Voter Verify"
}, {
- path: '/admin/login',
- component: _components_demo_admin_login_vue__WEBPACK_IMPORTED_MODULE_9__["default"],
- name: 'Admin Login'
+ path: "/admin/login",
+ component: _components_demo_admin_login_vue__WEBPACK_IMPORTED_MODULE_10__["default"],
+ name: "Admin Login"
}, {
- path: '/admin',
- component: _components_demo_admin_index_vue__WEBPACK_IMPORTED_MODULE_10__["default"],
+ path: "/admin",
+ component: _components_demo_admin_index_vue__WEBPACK_IMPORTED_MODULE_11__["default"],
children: [{
- path: 'result/:election_id',
- component: _components_demo_admin_home_final_vue__WEBPACK_IMPORTED_MODULE_11__["default"],
- name: 'Election Result'
+ path: "result/:election_id",
+ component: _components_demo_admin_home_final_vue__WEBPACK_IMPORTED_MODULE_12__["default"],
+ name: "Election Result"
}, {
- path: '',
- component: _components_demo_admin_home_home_vue__WEBPACK_IMPORTED_MODULE_12__["default"],
+ path: "",
+ component: _components_demo_admin_home_home_vue__WEBPACK_IMPORTED_MODULE_13__["default"],
children: [{
- path: '',
- component: _components_demo_admin_home_index_vue__WEBPACK_IMPORTED_MODULE_13__["default"],
- name: 'Admin Home'
+ path: "",
+ component: _components_demo_admin_home_index_vue__WEBPACK_IMPORTED_MODULE_14__["default"],
+ name: "Admin Home"
}, {
- path: 'result',
- component: _components_demo_admin_home_result_vue__WEBPACK_IMPORTED_MODULE_14__["default"],
- name: 'Current Result'
+ path: "result",
+ component: _components_demo_admin_home_result_vue__WEBPACK_IMPORTED_MODULE_15__["default"],
+ name: "Current Result"
}]
}, {
- path: 'position',
- component: _components_demo_admin_position_position_vue__WEBPACK_IMPORTED_MODULE_15__["default"],
+ path: "position",
+ component: _components_demo_admin_position_position_vue__WEBPACK_IMPORTED_MODULE_16__["default"],
children: [{
- path: '',
- component: _components_demo_admin_position_index_vue__WEBPACK_IMPORTED_MODULE_16__["default"],
- name: 'Kemaskini Jawatan'
+ path: "",
+ component: _components_demo_admin_position_index_vue__WEBPACK_IMPORTED_MODULE_17__["default"],
+ name: "Kemaskini Jawatan"
}, {
- path: 'add',
- component: _components_demo_admin_position_add_vue__WEBPACK_IMPORTED_MODULE_17__["default"],
- name: 'Tambah Jawatan'
+ path: "add",
+ component: _components_demo_admin_position_add_vue__WEBPACK_IMPORTED_MODULE_18__["default"],
+ name: "Tambah Jawatan"
}, {
- path: 'edit/:id',
- component: _components_demo_admin_position_edit_vue__WEBPACK_IMPORTED_MODULE_18__["default"],
- name: 'Edit Position'
+ path: "edit/:id",
+ component: _components_demo_admin_position_edit_vue__WEBPACK_IMPORTED_MODULE_19__["default"],
+ name: "Edit Position"
}]
}, {
- path: 'partylist',
- component: _components_demo_admin_partylist_partylist_vue__WEBPACK_IMPORTED_MODULE_19__["default"],
+ path: "partylist",
+ component: _components_demo_admin_partylist_partylist_vue__WEBPACK_IMPORTED_MODULE_20__["default"],
children: [{
- path: '',
- component: _components_demo_admin_partylist_index_vue__WEBPACK_IMPORTED_MODULE_20__["default"],
- name: 'Manage Partylist'
+ path: "",
+ component: _components_demo_admin_partylist_index_vue__WEBPACK_IMPORTED_MODULE_21__["default"],
+ name: "Manage Partylist"
}, {
- path: 'add',
- component: _components_demo_admin_partylist_add_vue__WEBPACK_IMPORTED_MODULE_21__["default"],
- name: 'Add Partylist'
+ path: "add",
+ component: _components_demo_admin_partylist_add_vue__WEBPACK_IMPORTED_MODULE_22__["default"],
+ name: "Add Partylist"
}, {
- path: 'edit/:id',
- component: _components_demo_admin_partylist_edit_vue__WEBPACK_IMPORTED_MODULE_22__["default"],
- name: 'Edit Partylist'
+ path: "edit/:id",
+ component: _components_demo_admin_partylist_edit_vue__WEBPACK_IMPORTED_MODULE_23__["default"],
+ name: "Edit Partylist"
}]
}, {
- path: 'voter',
- component: _components_demo_admin_voter_voter_vue__WEBPACK_IMPORTED_MODULE_23__["default"],
+ path: "voter",
+ component: _components_demo_admin_voter_voter_vue__WEBPACK_IMPORTED_MODULE_24__["default"],
children: [{
- path: '',
- component: _components_demo_admin_voter_index_vue__WEBPACK_IMPORTED_MODULE_24__["default"],
- name: 'Manage Voter'
+ path: "",
+ component: _components_demo_admin_voter_index_vue__WEBPACK_IMPORTED_MODULE_25__["default"],
+ name: "Manage Voter"
}, {
- path: 'add',
- component: _components_demo_admin_voter_add_vue__WEBPACK_IMPORTED_MODULE_25__["default"],
- name: 'Tambah Pengundi'
+ path: "add",
+ component: _components_demo_admin_voter_add_vue__WEBPACK_IMPORTED_MODULE_26__["default"],
+ name: "Tambah Pengundi"
}, {
- path: 'edit/:id',
- component: _components_demo_admin_voter_edit_vue__WEBPACK_IMPORTED_MODULE_26__["default"],
- name: 'Edit Voter'
+ path: "edit/:id",
+ component: _components_demo_admin_voter_edit_vue__WEBPACK_IMPORTED_MODULE_27__["default"],
+ name: "Edit Voter"
}, {
- path: 'kehadiran',
- component: _components_demo_admin_voter_kehadiran_vue__WEBPACK_IMPORTED_MODULE_27__["default"],
- name: 'Kehadiran Calon'
+ path: "kehadiran",
+ component: _components_demo_admin_voter_kehadiran_vue__WEBPACK_IMPORTED_MODULE_28__["default"],
+ name: "Kehadiran Calon"
}, {
- path: 'fizikal',
- component: _components_demo_admin_voter_fizikal_vue__WEBPACK_IMPORTED_MODULE_28__["default"],
- name: 'Fizikal'
+ path: "fizikal",
+ component: _components_demo_admin_voter_fizikal_vue__WEBPACK_IMPORTED_MODULE_29__["default"],
+ name: "Fizikal"
}, {
- path: 'maya',
- component: _components_demo_admin_voter_maya_vue__WEBPACK_IMPORTED_MODULE_29__["default"],
- name: 'Maya'
+ path: "maya",
+ component: _components_demo_admin_voter_maya_vue__WEBPACK_IMPORTED_MODULE_30__["default"],
+ name: "Maya"
}, {
- path: 'viewkehadiran',
- component: _components_demo_admin_voter_viewkehadiran_vue__WEBPACK_IMPORTED_MODULE_30__["default"],
- name: 'Calon Hadir'
+ path: "viewkehadiran",
+ component: _components_demo_admin_voter_viewkehadiran_vue__WEBPACK_IMPORTED_MODULE_31__["default"],
+ name: "Calon Hadir"
}]
}, {
- path: 'nominee',
- component: _components_demo_admin_nominee_nominee_vue__WEBPACK_IMPORTED_MODULE_31__["default"],
+ path: "nominee",
+ component: _components_demo_admin_nominee_nominee_vue__WEBPACK_IMPORTED_MODULE_32__["default"],
children: [{
- path: '',
- component: _components_demo_admin_nominee_index_vue__WEBPACK_IMPORTED_MODULE_32__["default"],
- name: 'Maklumat Calon'
+ path: "",
+ component: _components_demo_admin_nominee_index_vue__WEBPACK_IMPORTED_MODULE_33__["default"],
+ name: "Maklumat Calon"
}, {
- path: 'add',
- component: _components_demo_admin_nominee_add_vue__WEBPACK_IMPORTED_MODULE_33__["default"],
- name: 'Tambah Calon'
+ path: "add",
+ component: _components_demo_admin_nominee_add_vue__WEBPACK_IMPORTED_MODULE_34__["default"],
+ name: "Tambah Calon"
}, {
- path: 'edit/:id',
- component: _components_demo_admin_nominee_edit_vue__WEBPACK_IMPORTED_MODULE_34__["default"],
- name: 'Edit Nominee'
+ path: "edit/:id",
+ component: _components_demo_admin_nominee_edit_vue__WEBPACK_IMPORTED_MODULE_35__["default"],
+ name: "Edit Nominee"
}]
}, {
- path: '/account',
- component: _components_demo_admin_admin_admin_vue__WEBPACK_IMPORTED_MODULE_35__["default"],
+ path: "/account",
+ component: _components_demo_admin_admin_admin_vue__WEBPACK_IMPORTED_MODULE_36__["default"],
children: [{
- path: '',
- component: _components_demo_admin_admin_index_vue__WEBPACK_IMPORTED_MODULE_36__["default"],
- name: 'Manage Account'
+ path: "",
+ component: _components_demo_admin_admin_index_vue__WEBPACK_IMPORTED_MODULE_37__["default"],
+ name: "Manage Account"
}, {
- path: 'update',
- component: _components_demo_admin_admin_edit_vue__WEBPACK_IMPORTED_MODULE_37__["default"],
- name: 'Update Account'
+ path: "update",
+ component: _components_demo_admin_admin_edit_vue__WEBPACK_IMPORTED_MODULE_38__["default"],
+ name: "Update Account"
}, {
- path: 'password',
- component: _components_demo_admin_admin_password_vue__WEBPACK_IMPORTED_MODULE_38__["default"],
- name: 'Update Password'
+ path: "password",
+ component: _components_demo_admin_admin_password_vue__WEBPACK_IMPORTED_MODULE_39__["default"],
+ name: "Update Password"
}, {
- path: 'add',
- component: _components_demo_admin_admin_add_vue__WEBPACK_IMPORTED_MODULE_39__["default"],
- name: 'Add Account'
+ path: "add",
+ component: _components_demo_admin_admin_add_vue__WEBPACK_IMPORTED_MODULE_40__["default"],
+ name: "Add Account"
}, {
- path: '/pembiayaan',
- name: 'Pembiayaan',
- component: _components_demo_admin_admin_pembiayaan_vue__WEBPACK_IMPORTED_MODULE_40__["default"]
+ path: "/pembiayaan",
+ name: "Pembiayaan",
+ component: _components_demo_admin_admin_pembiayaan_vue__WEBPACK_IMPORTED_MODULE_41__["default"]
}, {
- path: '/beliankomoditi',
- name: 'BelianKomoditi',
- component: _components_demo_admin_admin_beliankomoditi_vue__WEBPACK_IMPORTED_MODULE_41__["default"]
+ path: "/beliankomoditi",
+ name: "BelianKomoditi",
+ component: _components_demo_admin_admin_beliankomoditi_vue__WEBPACK_IMPORTED_MODULE_42__["default"]
}, {
- path: '/kontrakmurabahah',
- name: 'KontrakMurabahah',
- component: _components_demo_admin_admin_kontrakmurabahah_vue__WEBPACK_IMPORTED_MODULE_42__["default"]
+ path: "/kontrakmurabahah",
+ name: "KontrakMurabahah",
+ component: _components_demo_admin_admin_kontrakmurabahah_vue__WEBPACK_IMPORTED_MODULE_43__["default"]
}, {
- path: '/cetakpermohonan',
- name: 'CetakPermohonan',
- component: _components_demo_admin_admin_cetakpermohonan_vue__WEBPACK_IMPORTED_MODULE_43__["default"]
+ path: "/cetakpermohonan",
+ name: "CetakPermohonan",
+ component: _components_demo_admin_admin_cetakpermohonan_vue__WEBPACK_IMPORTED_MODULE_44__["default"]
}, {
- path: '/:pathMatch(.*)*',
- name: 'NotFound',
+ path: "/penyata-anggota",
+ name: "Penyata Anggota",
+ component: _components_demo_admin_admin_penyata_anggota_vue__WEBPACK_IMPORTED_MODULE_45__["default"]
+ }, {
+ path: "/:pathMatch(.*)*",
+ name: "NotFound",
component: {
template: 'Not found: {{ $route.path }}
'
}
@@ -11712,6 +12483,6181 @@ var _data = {
/***/ }),
+/***/ "./node_modules/base64-js/index.js":
+/*!*****************************************!*\
+ !*** ./node_modules/base64-js/index.js ***!
+ \*****************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+exports.byteLength = byteLength
+exports.toByteArray = toByteArray
+exports.fromByteArray = fromByteArray
+
+var lookup = []
+var revLookup = []
+var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
+
+var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
+for (var i = 0, len = code.length; i < len; ++i) {
+ lookup[i] = code[i]
+ revLookup[code.charCodeAt(i)] = i
+}
+
+// Support decoding URL-safe base64 strings, as Node.js does.
+// See: https://en.wikipedia.org/wiki/Base64#URL_applications
+revLookup['-'.charCodeAt(0)] = 62
+revLookup['_'.charCodeAt(0)] = 63
+
+function getLens (b64) {
+ var len = b64.length
+
+ if (len % 4 > 0) {
+ throw new Error('Invalid string. Length must be a multiple of 4')
+ }
+
+ // Trim off extra bytes after placeholder bytes are found
+ // See: https://github.com/beatgammit/base64-js/issues/42
+ var validLen = b64.indexOf('=')
+ if (validLen === -1) validLen = len
+
+ var placeHoldersLen = validLen === len
+ ? 0
+ : 4 - (validLen % 4)
+
+ return [validLen, placeHoldersLen]
+}
+
+// base64 is 4/3 + up to two characters of the original data
+function byteLength (b64) {
+ var lens = getLens(b64)
+ var validLen = lens[0]
+ var placeHoldersLen = lens[1]
+ return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
+}
+
+function _byteLength (b64, validLen, placeHoldersLen) {
+ return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
+}
+
+function toByteArray (b64) {
+ var tmp
+ var lens = getLens(b64)
+ var validLen = lens[0]
+ var placeHoldersLen = lens[1]
+
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
+
+ var curByte = 0
+
+ // if there are placeholders, only get up to the last complete 4 chars
+ var len = placeHoldersLen > 0
+ ? validLen - 4
+ : validLen
+
+ var i
+ for (i = 0; i < len; i += 4) {
+ tmp =
+ (revLookup[b64.charCodeAt(i)] << 18) |
+ (revLookup[b64.charCodeAt(i + 1)] << 12) |
+ (revLookup[b64.charCodeAt(i + 2)] << 6) |
+ revLookup[b64.charCodeAt(i + 3)]
+ arr[curByte++] = (tmp >> 16) & 0xFF
+ arr[curByte++] = (tmp >> 8) & 0xFF
+ arr[curByte++] = tmp & 0xFF
+ }
+
+ if (placeHoldersLen === 2) {
+ tmp =
+ (revLookup[b64.charCodeAt(i)] << 2) |
+ (revLookup[b64.charCodeAt(i + 1)] >> 4)
+ arr[curByte++] = tmp & 0xFF
+ }
+
+ if (placeHoldersLen === 1) {
+ tmp =
+ (revLookup[b64.charCodeAt(i)] << 10) |
+ (revLookup[b64.charCodeAt(i + 1)] << 4) |
+ (revLookup[b64.charCodeAt(i + 2)] >> 2)
+ arr[curByte++] = (tmp >> 8) & 0xFF
+ arr[curByte++] = tmp & 0xFF
+ }
+
+ return arr
+}
+
+function tripletToBase64 (num) {
+ return lookup[num >> 18 & 0x3F] +
+ lookup[num >> 12 & 0x3F] +
+ lookup[num >> 6 & 0x3F] +
+ lookup[num & 0x3F]
+}
+
+function encodeChunk (uint8, start, end) {
+ var tmp
+ var output = []
+ for (var i = start; i < end; i += 3) {
+ tmp =
+ ((uint8[i] << 16) & 0xFF0000) +
+ ((uint8[i + 1] << 8) & 0xFF00) +
+ (uint8[i + 2] & 0xFF)
+ output.push(tripletToBase64(tmp))
+ }
+ return output.join('')
+}
+
+function fromByteArray (uint8) {
+ var tmp
+ var len = uint8.length
+ var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
+ var parts = []
+ var maxChunkLength = 16383 // must be multiple of 3
+
+ // go through the array every three bytes, we'll deal with trailing stuff later
+ for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
+ parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
+ }
+
+ // pad the end with zeros, but make sure to not forget the extra bytes
+ if (extraBytes === 1) {
+ tmp = uint8[len - 1]
+ parts.push(
+ lookup[tmp >> 2] +
+ lookup[(tmp << 4) & 0x3F] +
+ '=='
+ )
+ } else if (extraBytes === 2) {
+ tmp = (uint8[len - 2] << 8) + uint8[len - 1]
+ parts.push(
+ lookup[tmp >> 10] +
+ lookup[(tmp >> 4) & 0x3F] +
+ lookup[(tmp << 2) & 0x3F] +
+ '='
+ )
+ }
+
+ return parts.join('')
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/buffer/index.js":
+/*!**************************************!*\
+ !*** ./node_modules/buffer/index.js ***!
+ \**************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author Feross Aboukhadijeh
+ * @license MIT
+ */
+/* eslint-disable no-proto */
+
+
+
+var base64 = __webpack_require__(/*! base64-js */ "./node_modules/base64-js/index.js")
+var ieee754 = __webpack_require__(/*! ieee754 */ "./node_modules/ieee754/index.js")
+var isArray = __webpack_require__(/*! isarray */ "./node_modules/isarray/index.js")
+
+exports.Buffer = Buffer
+exports.SlowBuffer = SlowBuffer
+exports.INSPECT_MAX_BYTES = 50
+
+/**
+ * If `Buffer.TYPED_ARRAY_SUPPORT`:
+ * === true Use Uint8Array implementation (fastest)
+ * === false Use Object implementation (most compatible, even IE6)
+ *
+ * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
+ * Opera 11.6+, iOS 4.2+.
+ *
+ * Due to various browser bugs, sometimes the Object implementation will be used even
+ * when the browser supports typed arrays.
+ *
+ * Note:
+ *
+ * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
+ * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
+ *
+ * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
+ *
+ * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
+ * incorrect length in some situations.
+
+ * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
+ * get the Object implementation, which is slower but behaves correctly.
+ */
+Buffer.TYPED_ARRAY_SUPPORT = __webpack_require__.g.TYPED_ARRAY_SUPPORT !== undefined
+ ? __webpack_require__.g.TYPED_ARRAY_SUPPORT
+ : typedArraySupport()
+
+/*
+ * Export kMaxLength after typed array support is determined.
+ */
+exports.kMaxLength = kMaxLength()
+
+function typedArraySupport () {
+ try {
+ var arr = new Uint8Array(1)
+ arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
+ return arr.foo() === 42 && // typed array instances can be augmented
+ typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
+ arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
+ } catch (e) {
+ return false
+ }
+}
+
+function kMaxLength () {
+ return Buffer.TYPED_ARRAY_SUPPORT
+ ? 0x7fffffff
+ : 0x3fffffff
+}
+
+function createBuffer (that, length) {
+ if (kMaxLength() < length) {
+ throw new RangeError('Invalid typed array length')
+ }
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ // Return an augmented `Uint8Array` instance, for best performance
+ that = new Uint8Array(length)
+ that.__proto__ = Buffer.prototype
+ } else {
+ // Fallback: Return an object instance of the Buffer class
+ if (that === null) {
+ that = new Buffer(length)
+ }
+ that.length = length
+ }
+
+ return that
+}
+
+/**
+ * The Buffer constructor returns instances of `Uint8Array` that have their
+ * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
+ * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
+ * and the `Uint8Array` methods. Square bracket notation works as expected -- it
+ * returns a single octet.
+ *
+ * The `Uint8Array` prototype remains unmodified.
+ */
+
+function Buffer (arg, encodingOrOffset, length) {
+ if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
+ return new Buffer(arg, encodingOrOffset, length)
+ }
+
+ // Common case.
+ if (typeof arg === 'number') {
+ if (typeof encodingOrOffset === 'string') {
+ throw new Error(
+ 'If encoding is specified then the first argument must be a string'
+ )
+ }
+ return allocUnsafe(this, arg)
+ }
+ return from(this, arg, encodingOrOffset, length)
+}
+
+Buffer.poolSize = 8192 // not used by this implementation
+
+// TODO: Legacy, not needed anymore. Remove in next major version.
+Buffer._augment = function (arr) {
+ arr.__proto__ = Buffer.prototype
+ return arr
+}
+
+function from (that, value, encodingOrOffset, length) {
+ if (typeof value === 'number') {
+ throw new TypeError('"value" argument must not be a number')
+ }
+
+ if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
+ return fromArrayBuffer(that, value, encodingOrOffset, length)
+ }
+
+ if (typeof value === 'string') {
+ return fromString(that, value, encodingOrOffset)
+ }
+
+ return fromObject(that, value)
+}
+
+/**
+ * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
+ * if value is a number.
+ * Buffer.from(str[, encoding])
+ * Buffer.from(array)
+ * Buffer.from(buffer)
+ * Buffer.from(arrayBuffer[, byteOffset[, length]])
+ **/
+Buffer.from = function (value, encodingOrOffset, length) {
+ return from(null, value, encodingOrOffset, length)
+}
+
+if (Buffer.TYPED_ARRAY_SUPPORT) {
+ Buffer.prototype.__proto__ = Uint8Array.prototype
+ Buffer.__proto__ = Uint8Array
+ if (typeof Symbol !== 'undefined' && Symbol.species &&
+ Buffer[Symbol.species] === Buffer) {
+ // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
+ Object.defineProperty(Buffer, Symbol.species, {
+ value: null,
+ configurable: true
+ })
+ }
+}
+
+function assertSize (size) {
+ if (typeof size !== 'number') {
+ throw new TypeError('"size" argument must be a number')
+ } else if (size < 0) {
+ throw new RangeError('"size" argument must not be negative')
+ }
+}
+
+function alloc (that, size, fill, encoding) {
+ assertSize(size)
+ if (size <= 0) {
+ return createBuffer(that, size)
+ }
+ if (fill !== undefined) {
+ // Only pay attention to encoding if it's a string. This
+ // prevents accidentally sending in a number that would
+ // be interpretted as a start offset.
+ return typeof encoding === 'string'
+ ? createBuffer(that, size).fill(fill, encoding)
+ : createBuffer(that, size).fill(fill)
+ }
+ return createBuffer(that, size)
+}
+
+/**
+ * Creates a new filled Buffer instance.
+ * alloc(size[, fill[, encoding]])
+ **/
+Buffer.alloc = function (size, fill, encoding) {
+ return alloc(null, size, fill, encoding)
+}
+
+function allocUnsafe (that, size) {
+ assertSize(size)
+ that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
+ if (!Buffer.TYPED_ARRAY_SUPPORT) {
+ for (var i = 0; i < size; ++i) {
+ that[i] = 0
+ }
+ }
+ return that
+}
+
+/**
+ * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
+ * */
+Buffer.allocUnsafe = function (size) {
+ return allocUnsafe(null, size)
+}
+/**
+ * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
+ */
+Buffer.allocUnsafeSlow = function (size) {
+ return allocUnsafe(null, size)
+}
+
+function fromString (that, string, encoding) {
+ if (typeof encoding !== 'string' || encoding === '') {
+ encoding = 'utf8'
+ }
+
+ if (!Buffer.isEncoding(encoding)) {
+ throw new TypeError('"encoding" must be a valid string encoding')
+ }
+
+ var length = byteLength(string, encoding) | 0
+ that = createBuffer(that, length)
+
+ var actual = that.write(string, encoding)
+
+ if (actual !== length) {
+ // Writing a hex string, for example, that contains invalid characters will
+ // cause everything after the first invalid character to be ignored. (e.g.
+ // 'abxxcd' will be treated as 'ab')
+ that = that.slice(0, actual)
+ }
+
+ return that
+}
+
+function fromArrayLike (that, array) {
+ var length = array.length < 0 ? 0 : checked(array.length) | 0
+ that = createBuffer(that, length)
+ for (var i = 0; i < length; i += 1) {
+ that[i] = array[i] & 255
+ }
+ return that
+}
+
+function fromArrayBuffer (that, array, byteOffset, length) {
+ array.byteLength // this throws if `array` is not a valid ArrayBuffer
+
+ if (byteOffset < 0 || array.byteLength < byteOffset) {
+ throw new RangeError('\'offset\' is out of bounds')
+ }
+
+ if (array.byteLength < byteOffset + (length || 0)) {
+ throw new RangeError('\'length\' is out of bounds')
+ }
+
+ if (byteOffset === undefined && length === undefined) {
+ array = new Uint8Array(array)
+ } else if (length === undefined) {
+ array = new Uint8Array(array, byteOffset)
+ } else {
+ array = new Uint8Array(array, byteOffset, length)
+ }
+
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ // Return an augmented `Uint8Array` instance, for best performance
+ that = array
+ that.__proto__ = Buffer.prototype
+ } else {
+ // Fallback: Return an object instance of the Buffer class
+ that = fromArrayLike(that, array)
+ }
+ return that
+}
+
+function fromObject (that, obj) {
+ if (Buffer.isBuffer(obj)) {
+ var len = checked(obj.length) | 0
+ that = createBuffer(that, len)
+
+ if (that.length === 0) {
+ return that
+ }
+
+ obj.copy(that, 0, 0, len)
+ return that
+ }
+
+ if (obj) {
+ if ((typeof ArrayBuffer !== 'undefined' &&
+ obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
+ if (typeof obj.length !== 'number' || isnan(obj.length)) {
+ return createBuffer(that, 0)
+ }
+ return fromArrayLike(that, obj)
+ }
+
+ if (obj.type === 'Buffer' && isArray(obj.data)) {
+ return fromArrayLike(that, obj.data)
+ }
+ }
+
+ throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
+}
+
+function checked (length) {
+ // Note: cannot use `length < kMaxLength()` here because that fails when
+ // length is NaN (which is otherwise coerced to zero.)
+ if (length >= kMaxLength()) {
+ throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
+ 'size: 0x' + kMaxLength().toString(16) + ' bytes')
+ }
+ return length | 0
+}
+
+function SlowBuffer (length) {
+ if (+length != length) { // eslint-disable-line eqeqeq
+ length = 0
+ }
+ return Buffer.alloc(+length)
+}
+
+Buffer.isBuffer = function isBuffer (b) {
+ return !!(b != null && b._isBuffer)
+}
+
+Buffer.compare = function compare (a, b) {
+ if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
+ throw new TypeError('Arguments must be Buffers')
+ }
+
+ if (a === b) return 0
+
+ var x = a.length
+ var y = b.length
+
+ for (var i = 0, len = Math.min(x, y); i < len; ++i) {
+ if (a[i] !== b[i]) {
+ x = a[i]
+ y = b[i]
+ break
+ }
+ }
+
+ if (x < y) return -1
+ if (y < x) return 1
+ return 0
+}
+
+Buffer.isEncoding = function isEncoding (encoding) {
+ switch (String(encoding).toLowerCase()) {
+ case 'hex':
+ case 'utf8':
+ case 'utf-8':
+ case 'ascii':
+ case 'latin1':
+ case 'binary':
+ case 'base64':
+ case 'ucs2':
+ case 'ucs-2':
+ case 'utf16le':
+ case 'utf-16le':
+ return true
+ default:
+ return false
+ }
+}
+
+Buffer.concat = function concat (list, length) {
+ if (!isArray(list)) {
+ throw new TypeError('"list" argument must be an Array of Buffers')
+ }
+
+ if (list.length === 0) {
+ return Buffer.alloc(0)
+ }
+
+ var i
+ if (length === undefined) {
+ length = 0
+ for (i = 0; i < list.length; ++i) {
+ length += list[i].length
+ }
+ }
+
+ var buffer = Buffer.allocUnsafe(length)
+ var pos = 0
+ for (i = 0; i < list.length; ++i) {
+ var buf = list[i]
+ if (!Buffer.isBuffer(buf)) {
+ throw new TypeError('"list" argument must be an Array of Buffers')
+ }
+ buf.copy(buffer, pos)
+ pos += buf.length
+ }
+ return buffer
+}
+
+function byteLength (string, encoding) {
+ if (Buffer.isBuffer(string)) {
+ return string.length
+ }
+ if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
+ (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
+ return string.byteLength
+ }
+ if (typeof string !== 'string') {
+ string = '' + string
+ }
+
+ var len = string.length
+ if (len === 0) return 0
+
+ // Use a for loop to avoid recursion
+ var loweredCase = false
+ for (;;) {
+ switch (encoding) {
+ case 'ascii':
+ case 'latin1':
+ case 'binary':
+ return len
+ case 'utf8':
+ case 'utf-8':
+ case undefined:
+ return utf8ToBytes(string).length
+ case 'ucs2':
+ case 'ucs-2':
+ case 'utf16le':
+ case 'utf-16le':
+ return len * 2
+ case 'hex':
+ return len >>> 1
+ case 'base64':
+ return base64ToBytes(string).length
+ default:
+ if (loweredCase) return utf8ToBytes(string).length // assume utf8
+ encoding = ('' + encoding).toLowerCase()
+ loweredCase = true
+ }
+ }
+}
+Buffer.byteLength = byteLength
+
+function slowToString (encoding, start, end) {
+ var loweredCase = false
+
+ // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
+ // property of a typed array.
+
+ // This behaves neither like String nor Uint8Array in that we set start/end
+ // to their upper/lower bounds if the value passed is out of range.
+ // undefined is handled specially as per ECMA-262 6th Edition,
+ // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
+ if (start === undefined || start < 0) {
+ start = 0
+ }
+ // Return early if start > this.length. Done here to prevent potential uint32
+ // coercion fail below.
+ if (start > this.length) {
+ return ''
+ }
+
+ if (end === undefined || end > this.length) {
+ end = this.length
+ }
+
+ if (end <= 0) {
+ return ''
+ }
+
+ // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
+ end >>>= 0
+ start >>>= 0
+
+ if (end <= start) {
+ return ''
+ }
+
+ if (!encoding) encoding = 'utf8'
+
+ while (true) {
+ switch (encoding) {
+ case 'hex':
+ return hexSlice(this, start, end)
+
+ case 'utf8':
+ case 'utf-8':
+ return utf8Slice(this, start, end)
+
+ case 'ascii':
+ return asciiSlice(this, start, end)
+
+ case 'latin1':
+ case 'binary':
+ return latin1Slice(this, start, end)
+
+ case 'base64':
+ return base64Slice(this, start, end)
+
+ case 'ucs2':
+ case 'ucs-2':
+ case 'utf16le':
+ case 'utf-16le':
+ return utf16leSlice(this, start, end)
+
+ default:
+ if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
+ encoding = (encoding + '').toLowerCase()
+ loweredCase = true
+ }
+ }
+}
+
+// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
+// Buffer instances.
+Buffer.prototype._isBuffer = true
+
+function swap (b, n, m) {
+ var i = b[n]
+ b[n] = b[m]
+ b[m] = i
+}
+
+Buffer.prototype.swap16 = function swap16 () {
+ var len = this.length
+ if (len % 2 !== 0) {
+ throw new RangeError('Buffer size must be a multiple of 16-bits')
+ }
+ for (var i = 0; i < len; i += 2) {
+ swap(this, i, i + 1)
+ }
+ return this
+}
+
+Buffer.prototype.swap32 = function swap32 () {
+ var len = this.length
+ if (len % 4 !== 0) {
+ throw new RangeError('Buffer size must be a multiple of 32-bits')
+ }
+ for (var i = 0; i < len; i += 4) {
+ swap(this, i, i + 3)
+ swap(this, i + 1, i + 2)
+ }
+ return this
+}
+
+Buffer.prototype.swap64 = function swap64 () {
+ var len = this.length
+ if (len % 8 !== 0) {
+ throw new RangeError('Buffer size must be a multiple of 64-bits')
+ }
+ for (var i = 0; i < len; i += 8) {
+ swap(this, i, i + 7)
+ swap(this, i + 1, i + 6)
+ swap(this, i + 2, i + 5)
+ swap(this, i + 3, i + 4)
+ }
+ return this
+}
+
+Buffer.prototype.toString = function toString () {
+ var length = this.length | 0
+ if (length === 0) return ''
+ if (arguments.length === 0) return utf8Slice(this, 0, length)
+ return slowToString.apply(this, arguments)
+}
+
+Buffer.prototype.equals = function equals (b) {
+ if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
+ if (this === b) return true
+ return Buffer.compare(this, b) === 0
+}
+
+Buffer.prototype.inspect = function inspect () {
+ var str = ''
+ var max = exports.INSPECT_MAX_BYTES
+ if (this.length > 0) {
+ str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
+ if (this.length > max) str += ' ... '
+ }
+ return ''
+}
+
+Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
+ if (!Buffer.isBuffer(target)) {
+ throw new TypeError('Argument must be a Buffer')
+ }
+
+ if (start === undefined) {
+ start = 0
+ }
+ if (end === undefined) {
+ end = target ? target.length : 0
+ }
+ if (thisStart === undefined) {
+ thisStart = 0
+ }
+ if (thisEnd === undefined) {
+ thisEnd = this.length
+ }
+
+ if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
+ throw new RangeError('out of range index')
+ }
+
+ if (thisStart >= thisEnd && start >= end) {
+ return 0
+ }
+ if (thisStart >= thisEnd) {
+ return -1
+ }
+ if (start >= end) {
+ return 1
+ }
+
+ start >>>= 0
+ end >>>= 0
+ thisStart >>>= 0
+ thisEnd >>>= 0
+
+ if (this === target) return 0
+
+ var x = thisEnd - thisStart
+ var y = end - start
+ var len = Math.min(x, y)
+
+ var thisCopy = this.slice(thisStart, thisEnd)
+ var targetCopy = target.slice(start, end)
+
+ for (var i = 0; i < len; ++i) {
+ if (thisCopy[i] !== targetCopy[i]) {
+ x = thisCopy[i]
+ y = targetCopy[i]
+ break
+ }
+ }
+
+ if (x < y) return -1
+ if (y < x) return 1
+ return 0
+}
+
+// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
+// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
+//
+// Arguments:
+// - buffer - a Buffer to search
+// - val - a string, Buffer, or number
+// - byteOffset - an index into `buffer`; will be clamped to an int32
+// - encoding - an optional encoding, relevant is val is a string
+// - dir - true for indexOf, false for lastIndexOf
+function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
+ // Empty buffer means no match
+ if (buffer.length === 0) return -1
+
+ // Normalize byteOffset
+ if (typeof byteOffset === 'string') {
+ encoding = byteOffset
+ byteOffset = 0
+ } else if (byteOffset > 0x7fffffff) {
+ byteOffset = 0x7fffffff
+ } else if (byteOffset < -0x80000000) {
+ byteOffset = -0x80000000
+ }
+ byteOffset = +byteOffset // Coerce to Number.
+ if (isNaN(byteOffset)) {
+ // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
+ byteOffset = dir ? 0 : (buffer.length - 1)
+ }
+
+ // Normalize byteOffset: negative offsets start from the end of the buffer
+ if (byteOffset < 0) byteOffset = buffer.length + byteOffset
+ if (byteOffset >= buffer.length) {
+ if (dir) return -1
+ else byteOffset = buffer.length - 1
+ } else if (byteOffset < 0) {
+ if (dir) byteOffset = 0
+ else return -1
+ }
+
+ // Normalize val
+ if (typeof val === 'string') {
+ val = Buffer.from(val, encoding)
+ }
+
+ // Finally, search either indexOf (if dir is true) or lastIndexOf
+ if (Buffer.isBuffer(val)) {
+ // Special case: looking for empty string/buffer always fails
+ if (val.length === 0) {
+ return -1
+ }
+ return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
+ } else if (typeof val === 'number') {
+ val = val & 0xFF // Search for a byte value [0-255]
+ if (Buffer.TYPED_ARRAY_SUPPORT &&
+ typeof Uint8Array.prototype.indexOf === 'function') {
+ if (dir) {
+ return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
+ } else {
+ return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
+ }
+ }
+ return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
+ }
+
+ throw new TypeError('val must be string, number or Buffer')
+}
+
+function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
+ var indexSize = 1
+ var arrLength = arr.length
+ var valLength = val.length
+
+ if (encoding !== undefined) {
+ encoding = String(encoding).toLowerCase()
+ if (encoding === 'ucs2' || encoding === 'ucs-2' ||
+ encoding === 'utf16le' || encoding === 'utf-16le') {
+ if (arr.length < 2 || val.length < 2) {
+ return -1
+ }
+ indexSize = 2
+ arrLength /= 2
+ valLength /= 2
+ byteOffset /= 2
+ }
+ }
+
+ function read (buf, i) {
+ if (indexSize === 1) {
+ return buf[i]
+ } else {
+ return buf.readUInt16BE(i * indexSize)
+ }
+ }
+
+ var i
+ if (dir) {
+ var foundIndex = -1
+ for (i = byteOffset; i < arrLength; i++) {
+ if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
+ if (foundIndex === -1) foundIndex = i
+ if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
+ } else {
+ if (foundIndex !== -1) i -= i - foundIndex
+ foundIndex = -1
+ }
+ }
+ } else {
+ if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
+ for (i = byteOffset; i >= 0; i--) {
+ var found = true
+ for (var j = 0; j < valLength; j++) {
+ if (read(arr, i + j) !== read(val, j)) {
+ found = false
+ break
+ }
+ }
+ if (found) return i
+ }
+ }
+
+ return -1
+}
+
+Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
+ return this.indexOf(val, byteOffset, encoding) !== -1
+}
+
+Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
+ return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
+}
+
+Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
+ return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
+}
+
+function hexWrite (buf, string, offset, length) {
+ offset = Number(offset) || 0
+ var remaining = buf.length - offset
+ if (!length) {
+ length = remaining
+ } else {
+ length = Number(length)
+ if (length > remaining) {
+ length = remaining
+ }
+ }
+
+ // must be an even number of digits
+ var strLen = string.length
+ if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
+
+ if (length > strLen / 2) {
+ length = strLen / 2
+ }
+ for (var i = 0; i < length; ++i) {
+ var parsed = parseInt(string.substr(i * 2, 2), 16)
+ if (isNaN(parsed)) return i
+ buf[offset + i] = parsed
+ }
+ return i
+}
+
+function utf8Write (buf, string, offset, length) {
+ return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
+}
+
+function asciiWrite (buf, string, offset, length) {
+ return blitBuffer(asciiToBytes(string), buf, offset, length)
+}
+
+function latin1Write (buf, string, offset, length) {
+ return asciiWrite(buf, string, offset, length)
+}
+
+function base64Write (buf, string, offset, length) {
+ return blitBuffer(base64ToBytes(string), buf, offset, length)
+}
+
+function ucs2Write (buf, string, offset, length) {
+ return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
+}
+
+Buffer.prototype.write = function write (string, offset, length, encoding) {
+ // Buffer#write(string)
+ if (offset === undefined) {
+ encoding = 'utf8'
+ length = this.length
+ offset = 0
+ // Buffer#write(string, encoding)
+ } else if (length === undefined && typeof offset === 'string') {
+ encoding = offset
+ length = this.length
+ offset = 0
+ // Buffer#write(string, offset[, length][, encoding])
+ } else if (isFinite(offset)) {
+ offset = offset | 0
+ if (isFinite(length)) {
+ length = length | 0
+ if (encoding === undefined) encoding = 'utf8'
+ } else {
+ encoding = length
+ length = undefined
+ }
+ // legacy write(string, encoding, offset, length) - remove in v0.13
+ } else {
+ throw new Error(
+ 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
+ )
+ }
+
+ var remaining = this.length - offset
+ if (length === undefined || length > remaining) length = remaining
+
+ if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
+ throw new RangeError('Attempt to write outside buffer bounds')
+ }
+
+ if (!encoding) encoding = 'utf8'
+
+ var loweredCase = false
+ for (;;) {
+ switch (encoding) {
+ case 'hex':
+ return hexWrite(this, string, offset, length)
+
+ case 'utf8':
+ case 'utf-8':
+ return utf8Write(this, string, offset, length)
+
+ case 'ascii':
+ return asciiWrite(this, string, offset, length)
+
+ case 'latin1':
+ case 'binary':
+ return latin1Write(this, string, offset, length)
+
+ case 'base64':
+ // Warning: maxLength not taken into account in base64Write
+ return base64Write(this, string, offset, length)
+
+ case 'ucs2':
+ case 'ucs-2':
+ case 'utf16le':
+ case 'utf-16le':
+ return ucs2Write(this, string, offset, length)
+
+ default:
+ if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
+ encoding = ('' + encoding).toLowerCase()
+ loweredCase = true
+ }
+ }
+}
+
+Buffer.prototype.toJSON = function toJSON () {
+ return {
+ type: 'Buffer',
+ data: Array.prototype.slice.call(this._arr || this, 0)
+ }
+}
+
+function base64Slice (buf, start, end) {
+ if (start === 0 && end === buf.length) {
+ return base64.fromByteArray(buf)
+ } else {
+ return base64.fromByteArray(buf.slice(start, end))
+ }
+}
+
+function utf8Slice (buf, start, end) {
+ end = Math.min(buf.length, end)
+ var res = []
+
+ var i = start
+ while (i < end) {
+ var firstByte = buf[i]
+ var codePoint = null
+ var bytesPerSequence = (firstByte > 0xEF) ? 4
+ : (firstByte > 0xDF) ? 3
+ : (firstByte > 0xBF) ? 2
+ : 1
+
+ if (i + bytesPerSequence <= end) {
+ var secondByte, thirdByte, fourthByte, tempCodePoint
+
+ switch (bytesPerSequence) {
+ case 1:
+ if (firstByte < 0x80) {
+ codePoint = firstByte
+ }
+ break
+ case 2:
+ secondByte = buf[i + 1]
+ if ((secondByte & 0xC0) === 0x80) {
+ tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
+ if (tempCodePoint > 0x7F) {
+ codePoint = tempCodePoint
+ }
+ }
+ break
+ case 3:
+ secondByte = buf[i + 1]
+ thirdByte = buf[i + 2]
+ if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
+ tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
+ if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
+ codePoint = tempCodePoint
+ }
+ }
+ break
+ case 4:
+ secondByte = buf[i + 1]
+ thirdByte = buf[i + 2]
+ fourthByte = buf[i + 3]
+ if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
+ tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
+ if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
+ codePoint = tempCodePoint
+ }
+ }
+ }
+ }
+
+ if (codePoint === null) {
+ // we did not generate a valid codePoint so insert a
+ // replacement char (U+FFFD) and advance only 1 byte
+ codePoint = 0xFFFD
+ bytesPerSequence = 1
+ } else if (codePoint > 0xFFFF) {
+ // encode to utf16 (surrogate pair dance)
+ codePoint -= 0x10000
+ res.push(codePoint >>> 10 & 0x3FF | 0xD800)
+ codePoint = 0xDC00 | codePoint & 0x3FF
+ }
+
+ res.push(codePoint)
+ i += bytesPerSequence
+ }
+
+ return decodeCodePointsArray(res)
+}
+
+// Based on http://stackoverflow.com/a/22747272/680742, the browser with
+// the lowest limit is Chrome, with 0x10000 args.
+// We go 1 magnitude less, for safety
+var MAX_ARGUMENTS_LENGTH = 0x1000
+
+function decodeCodePointsArray (codePoints) {
+ var len = codePoints.length
+ if (len <= MAX_ARGUMENTS_LENGTH) {
+ return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
+ }
+
+ // Decode in chunks to avoid "call stack size exceeded".
+ var res = ''
+ var i = 0
+ while (i < len) {
+ res += String.fromCharCode.apply(
+ String,
+ codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
+ )
+ }
+ return res
+}
+
+function asciiSlice (buf, start, end) {
+ var ret = ''
+ end = Math.min(buf.length, end)
+
+ for (var i = start; i < end; ++i) {
+ ret += String.fromCharCode(buf[i] & 0x7F)
+ }
+ return ret
+}
+
+function latin1Slice (buf, start, end) {
+ var ret = ''
+ end = Math.min(buf.length, end)
+
+ for (var i = start; i < end; ++i) {
+ ret += String.fromCharCode(buf[i])
+ }
+ return ret
+}
+
+function hexSlice (buf, start, end) {
+ var len = buf.length
+
+ if (!start || start < 0) start = 0
+ if (!end || end < 0 || end > len) end = len
+
+ var out = ''
+ for (var i = start; i < end; ++i) {
+ out += toHex(buf[i])
+ }
+ return out
+}
+
+function utf16leSlice (buf, start, end) {
+ var bytes = buf.slice(start, end)
+ var res = ''
+ for (var i = 0; i < bytes.length; i += 2) {
+ res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
+ }
+ return res
+}
+
+Buffer.prototype.slice = function slice (start, end) {
+ var len = this.length
+ start = ~~start
+ end = end === undefined ? len : ~~end
+
+ if (start < 0) {
+ start += len
+ if (start < 0) start = 0
+ } else if (start > len) {
+ start = len
+ }
+
+ if (end < 0) {
+ end += len
+ if (end < 0) end = 0
+ } else if (end > len) {
+ end = len
+ }
+
+ if (end < start) end = start
+
+ var newBuf
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ newBuf = this.subarray(start, end)
+ newBuf.__proto__ = Buffer.prototype
+ } else {
+ var sliceLen = end - start
+ newBuf = new Buffer(sliceLen, undefined)
+ for (var i = 0; i < sliceLen; ++i) {
+ newBuf[i] = this[i + start]
+ }
+ }
+
+ return newBuf
+}
+
+/*
+ * Need to make sure that buffer isn't trying to write out of bounds.
+ */
+function checkOffset (offset, ext, length) {
+ if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
+ if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
+}
+
+Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
+ offset = offset | 0
+ byteLength = byteLength | 0
+ if (!noAssert) checkOffset(offset, byteLength, this.length)
+
+ var val = this[offset]
+ var mul = 1
+ var i = 0
+ while (++i < byteLength && (mul *= 0x100)) {
+ val += this[offset + i] * mul
+ }
+
+ return val
+}
+
+Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
+ offset = offset | 0
+ byteLength = byteLength | 0
+ if (!noAssert) {
+ checkOffset(offset, byteLength, this.length)
+ }
+
+ var val = this[offset + --byteLength]
+ var mul = 1
+ while (byteLength > 0 && (mul *= 0x100)) {
+ val += this[offset + --byteLength] * mul
+ }
+
+ return val
+}
+
+Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 1, this.length)
+ return this[offset]
+}
+
+Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 2, this.length)
+ return this[offset] | (this[offset + 1] << 8)
+}
+
+Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 2, this.length)
+ return (this[offset] << 8) | this[offset + 1]
+}
+
+Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 4, this.length)
+
+ return ((this[offset]) |
+ (this[offset + 1] << 8) |
+ (this[offset + 2] << 16)) +
+ (this[offset + 3] * 0x1000000)
+}
+
+Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 4, this.length)
+
+ return (this[offset] * 0x1000000) +
+ ((this[offset + 1] << 16) |
+ (this[offset + 2] << 8) |
+ this[offset + 3])
+}
+
+Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
+ offset = offset | 0
+ byteLength = byteLength | 0
+ if (!noAssert) checkOffset(offset, byteLength, this.length)
+
+ var val = this[offset]
+ var mul = 1
+ var i = 0
+ while (++i < byteLength && (mul *= 0x100)) {
+ val += this[offset + i] * mul
+ }
+ mul *= 0x80
+
+ if (val >= mul) val -= Math.pow(2, 8 * byteLength)
+
+ return val
+}
+
+Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
+ offset = offset | 0
+ byteLength = byteLength | 0
+ if (!noAssert) checkOffset(offset, byteLength, this.length)
+
+ var i = byteLength
+ var mul = 1
+ var val = this[offset + --i]
+ while (i > 0 && (mul *= 0x100)) {
+ val += this[offset + --i] * mul
+ }
+ mul *= 0x80
+
+ if (val >= mul) val -= Math.pow(2, 8 * byteLength)
+
+ return val
+}
+
+Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 1, this.length)
+ if (!(this[offset] & 0x80)) return (this[offset])
+ return ((0xff - this[offset] + 1) * -1)
+}
+
+Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 2, this.length)
+ var val = this[offset] | (this[offset + 1] << 8)
+ return (val & 0x8000) ? val | 0xFFFF0000 : val
+}
+
+Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 2, this.length)
+ var val = this[offset + 1] | (this[offset] << 8)
+ return (val & 0x8000) ? val | 0xFFFF0000 : val
+}
+
+Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 4, this.length)
+
+ return (this[offset]) |
+ (this[offset + 1] << 8) |
+ (this[offset + 2] << 16) |
+ (this[offset + 3] << 24)
+}
+
+Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 4, this.length)
+
+ return (this[offset] << 24) |
+ (this[offset + 1] << 16) |
+ (this[offset + 2] << 8) |
+ (this[offset + 3])
+}
+
+Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 4, this.length)
+ return ieee754.read(this, offset, true, 23, 4)
+}
+
+Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 4, this.length)
+ return ieee754.read(this, offset, false, 23, 4)
+}
+
+Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 8, this.length)
+ return ieee754.read(this, offset, true, 52, 8)
+}
+
+Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
+ if (!noAssert) checkOffset(offset, 8, this.length)
+ return ieee754.read(this, offset, false, 52, 8)
+}
+
+function checkInt (buf, value, offset, ext, max, min) {
+ if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
+ if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
+ if (offset + ext > buf.length) throw new RangeError('Index out of range')
+}
+
+Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
+ value = +value
+ offset = offset | 0
+ byteLength = byteLength | 0
+ if (!noAssert) {
+ var maxBytes = Math.pow(2, 8 * byteLength) - 1
+ checkInt(this, value, offset, byteLength, maxBytes, 0)
+ }
+
+ var mul = 1
+ var i = 0
+ this[offset] = value & 0xFF
+ while (++i < byteLength && (mul *= 0x100)) {
+ this[offset + i] = (value / mul) & 0xFF
+ }
+
+ return offset + byteLength
+}
+
+Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
+ value = +value
+ offset = offset | 0
+ byteLength = byteLength | 0
+ if (!noAssert) {
+ var maxBytes = Math.pow(2, 8 * byteLength) - 1
+ checkInt(this, value, offset, byteLength, maxBytes, 0)
+ }
+
+ var i = byteLength - 1
+ var mul = 1
+ this[offset + i] = value & 0xFF
+ while (--i >= 0 && (mul *= 0x100)) {
+ this[offset + i] = (value / mul) & 0xFF
+ }
+
+ return offset + byteLength
+}
+
+Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
+ if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
+ this[offset] = (value & 0xff)
+ return offset + 1
+}
+
+function objectWriteUInt16 (buf, value, offset, littleEndian) {
+ if (value < 0) value = 0xffff + value + 1
+ for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
+ buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
+ (littleEndian ? i : 1 - i) * 8
+ }
+}
+
+Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ this[offset] = (value & 0xff)
+ this[offset + 1] = (value >>> 8)
+ } else {
+ objectWriteUInt16(this, value, offset, true)
+ }
+ return offset + 2
+}
+
+Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ this[offset] = (value >>> 8)
+ this[offset + 1] = (value & 0xff)
+ } else {
+ objectWriteUInt16(this, value, offset, false)
+ }
+ return offset + 2
+}
+
+function objectWriteUInt32 (buf, value, offset, littleEndian) {
+ if (value < 0) value = 0xffffffff + value + 1
+ for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
+ buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
+ }
+}
+
+Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ this[offset + 3] = (value >>> 24)
+ this[offset + 2] = (value >>> 16)
+ this[offset + 1] = (value >>> 8)
+ this[offset] = (value & 0xff)
+ } else {
+ objectWriteUInt32(this, value, offset, true)
+ }
+ return offset + 4
+}
+
+Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ this[offset] = (value >>> 24)
+ this[offset + 1] = (value >>> 16)
+ this[offset + 2] = (value >>> 8)
+ this[offset + 3] = (value & 0xff)
+ } else {
+ objectWriteUInt32(this, value, offset, false)
+ }
+ return offset + 4
+}
+
+Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) {
+ var limit = Math.pow(2, 8 * byteLength - 1)
+
+ checkInt(this, value, offset, byteLength, limit - 1, -limit)
+ }
+
+ var i = 0
+ var mul = 1
+ var sub = 0
+ this[offset] = value & 0xFF
+ while (++i < byteLength && (mul *= 0x100)) {
+ if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
+ sub = 1
+ }
+ this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
+ }
+
+ return offset + byteLength
+}
+
+Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) {
+ var limit = Math.pow(2, 8 * byteLength - 1)
+
+ checkInt(this, value, offset, byteLength, limit - 1, -limit)
+ }
+
+ var i = byteLength - 1
+ var mul = 1
+ var sub = 0
+ this[offset + i] = value & 0xFF
+ while (--i >= 0 && (mul *= 0x100)) {
+ if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
+ sub = 1
+ }
+ this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
+ }
+
+ return offset + byteLength
+}
+
+Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
+ if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
+ if (value < 0) value = 0xff + value + 1
+ this[offset] = (value & 0xff)
+ return offset + 1
+}
+
+Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ this[offset] = (value & 0xff)
+ this[offset + 1] = (value >>> 8)
+ } else {
+ objectWriteUInt16(this, value, offset, true)
+ }
+ return offset + 2
+}
+
+Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ this[offset] = (value >>> 8)
+ this[offset + 1] = (value & 0xff)
+ } else {
+ objectWriteUInt16(this, value, offset, false)
+ }
+ return offset + 2
+}
+
+Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ this[offset] = (value & 0xff)
+ this[offset + 1] = (value >>> 8)
+ this[offset + 2] = (value >>> 16)
+ this[offset + 3] = (value >>> 24)
+ } else {
+ objectWriteUInt32(this, value, offset, true)
+ }
+ return offset + 4
+}
+
+Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
+ value = +value
+ offset = offset | 0
+ if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
+ if (value < 0) value = 0xffffffff + value + 1
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
+ this[offset] = (value >>> 24)
+ this[offset + 1] = (value >>> 16)
+ this[offset + 2] = (value >>> 8)
+ this[offset + 3] = (value & 0xff)
+ } else {
+ objectWriteUInt32(this, value, offset, false)
+ }
+ return offset + 4
+}
+
+function checkIEEE754 (buf, value, offset, ext, max, min) {
+ if (offset + ext > buf.length) throw new RangeError('Index out of range')
+ if (offset < 0) throw new RangeError('Index out of range')
+}
+
+function writeFloat (buf, value, offset, littleEndian, noAssert) {
+ if (!noAssert) {
+ checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
+ }
+ ieee754.write(buf, value, offset, littleEndian, 23, 4)
+ return offset + 4
+}
+
+Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
+ return writeFloat(this, value, offset, true, noAssert)
+}
+
+Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
+ return writeFloat(this, value, offset, false, noAssert)
+}
+
+function writeDouble (buf, value, offset, littleEndian, noAssert) {
+ if (!noAssert) {
+ checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
+ }
+ ieee754.write(buf, value, offset, littleEndian, 52, 8)
+ return offset + 8
+}
+
+Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
+ return writeDouble(this, value, offset, true, noAssert)
+}
+
+Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
+ return writeDouble(this, value, offset, false, noAssert)
+}
+
+// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
+Buffer.prototype.copy = function copy (target, targetStart, start, end) {
+ if (!start) start = 0
+ if (!end && end !== 0) end = this.length
+ if (targetStart >= target.length) targetStart = target.length
+ if (!targetStart) targetStart = 0
+ if (end > 0 && end < start) end = start
+
+ // Copy 0 bytes; we're done
+ if (end === start) return 0
+ if (target.length === 0 || this.length === 0) return 0
+
+ // Fatal error conditions
+ if (targetStart < 0) {
+ throw new RangeError('targetStart out of bounds')
+ }
+ if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
+ if (end < 0) throw new RangeError('sourceEnd out of bounds')
+
+ // Are we oob?
+ if (end > this.length) end = this.length
+ if (target.length - targetStart < end - start) {
+ end = target.length - targetStart + start
+ }
+
+ var len = end - start
+ var i
+
+ if (this === target && start < targetStart && targetStart < end) {
+ // descending copy from end
+ for (i = len - 1; i >= 0; --i) {
+ target[i + targetStart] = this[i + start]
+ }
+ } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
+ // ascending copy from start
+ for (i = 0; i < len; ++i) {
+ target[i + targetStart] = this[i + start]
+ }
+ } else {
+ Uint8Array.prototype.set.call(
+ target,
+ this.subarray(start, start + len),
+ targetStart
+ )
+ }
+
+ return len
+}
+
+// Usage:
+// buffer.fill(number[, offset[, end]])
+// buffer.fill(buffer[, offset[, end]])
+// buffer.fill(string[, offset[, end]][, encoding])
+Buffer.prototype.fill = function fill (val, start, end, encoding) {
+ // Handle string cases:
+ if (typeof val === 'string') {
+ if (typeof start === 'string') {
+ encoding = start
+ start = 0
+ end = this.length
+ } else if (typeof end === 'string') {
+ encoding = end
+ end = this.length
+ }
+ if (val.length === 1) {
+ var code = val.charCodeAt(0)
+ if (code < 256) {
+ val = code
+ }
+ }
+ if (encoding !== undefined && typeof encoding !== 'string') {
+ throw new TypeError('encoding must be a string')
+ }
+ if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
+ throw new TypeError('Unknown encoding: ' + encoding)
+ }
+ } else if (typeof val === 'number') {
+ val = val & 255
+ }
+
+ // Invalid ranges are not set to a default, so can range check early.
+ if (start < 0 || this.length < start || this.length < end) {
+ throw new RangeError('Out of range index')
+ }
+
+ if (end <= start) {
+ return this
+ }
+
+ start = start >>> 0
+ end = end === undefined ? this.length : end >>> 0
+
+ if (!val) val = 0
+
+ var i
+ if (typeof val === 'number') {
+ for (i = start; i < end; ++i) {
+ this[i] = val
+ }
+ } else {
+ var bytes = Buffer.isBuffer(val)
+ ? val
+ : utf8ToBytes(new Buffer(val, encoding).toString())
+ var len = bytes.length
+ for (i = 0; i < end - start; ++i) {
+ this[i + start] = bytes[i % len]
+ }
+ }
+
+ return this
+}
+
+// HELPER FUNCTIONS
+// ================
+
+var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
+
+function base64clean (str) {
+ // Node strips out invalid characters like \n and \t from the string, base64-js does not
+ str = stringtrim(str).replace(INVALID_BASE64_RE, '')
+ // Node converts strings with length < 2 to ''
+ if (str.length < 2) return ''
+ // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
+ while (str.length % 4 !== 0) {
+ str = str + '='
+ }
+ return str
+}
+
+function stringtrim (str) {
+ if (str.trim) return str.trim()
+ return str.replace(/^\s+|\s+$/g, '')
+}
+
+function toHex (n) {
+ if (n < 16) return '0' + n.toString(16)
+ return n.toString(16)
+}
+
+function utf8ToBytes (string, units) {
+ units = units || Infinity
+ var codePoint
+ var length = string.length
+ var leadSurrogate = null
+ var bytes = []
+
+ for (var i = 0; i < length; ++i) {
+ codePoint = string.charCodeAt(i)
+
+ // is surrogate component
+ if (codePoint > 0xD7FF && codePoint < 0xE000) {
+ // last char was a lead
+ if (!leadSurrogate) {
+ // no lead yet
+ if (codePoint > 0xDBFF) {
+ // unexpected trail
+ if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
+ continue
+ } else if (i + 1 === length) {
+ // unpaired lead
+ if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
+ continue
+ }
+
+ // valid lead
+ leadSurrogate = codePoint
+
+ continue
+ }
+
+ // 2 leads in a row
+ if (codePoint < 0xDC00) {
+ if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
+ leadSurrogate = codePoint
+ continue
+ }
+
+ // valid surrogate pair
+ codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
+ } else if (leadSurrogate) {
+ // valid bmp char, but last char was a lead
+ if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
+ }
+
+ leadSurrogate = null
+
+ // encode utf8
+ if (codePoint < 0x80) {
+ if ((units -= 1) < 0) break
+ bytes.push(codePoint)
+ } else if (codePoint < 0x800) {
+ if ((units -= 2) < 0) break
+ bytes.push(
+ codePoint >> 0x6 | 0xC0,
+ codePoint & 0x3F | 0x80
+ )
+ } else if (codePoint < 0x10000) {
+ if ((units -= 3) < 0) break
+ bytes.push(
+ codePoint >> 0xC | 0xE0,
+ codePoint >> 0x6 & 0x3F | 0x80,
+ codePoint & 0x3F | 0x80
+ )
+ } else if (codePoint < 0x110000) {
+ if ((units -= 4) < 0) break
+ bytes.push(
+ codePoint >> 0x12 | 0xF0,
+ codePoint >> 0xC & 0x3F | 0x80,
+ codePoint >> 0x6 & 0x3F | 0x80,
+ codePoint & 0x3F | 0x80
+ )
+ } else {
+ throw new Error('Invalid code point')
+ }
+ }
+
+ return bytes
+}
+
+function asciiToBytes (str) {
+ var byteArray = []
+ for (var i = 0; i < str.length; ++i) {
+ // Node's code seems to be doing this and not & 0x7F..
+ byteArray.push(str.charCodeAt(i) & 0xFF)
+ }
+ return byteArray
+}
+
+function utf16leToBytes (str, units) {
+ var c, hi, lo
+ var byteArray = []
+ for (var i = 0; i < str.length; ++i) {
+ if ((units -= 2) < 0) break
+
+ c = str.charCodeAt(i)
+ hi = c >> 8
+ lo = c % 256
+ byteArray.push(lo)
+ byteArray.push(hi)
+ }
+
+ return byteArray
+}
+
+function base64ToBytes (str) {
+ return base64.toByteArray(base64clean(str))
+}
+
+function blitBuffer (src, dst, offset, length) {
+ for (var i = 0; i < length; ++i) {
+ if ((i + offset >= dst.length) || (i >= src.length)) break
+ dst[i + offset] = src[i]
+ }
+ return i
+}
+
+function isnan (val) {
+ return val !== val // eslint-disable-line no-self-compare
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/ieee754/index.js":
+/*!***************************************!*\
+ !*** ./node_modules/ieee754/index.js ***!
+ \***************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */
+exports.read = function (buffer, offset, isLE, mLen, nBytes) {
+ var e, m
+ var eLen = (nBytes * 8) - mLen - 1
+ var eMax = (1 << eLen) - 1
+ var eBias = eMax >> 1
+ var nBits = -7
+ var i = isLE ? (nBytes - 1) : 0
+ var d = isLE ? -1 : 1
+ var s = buffer[offset + i]
+
+ i += d
+
+ e = s & ((1 << (-nBits)) - 1)
+ s >>= (-nBits)
+ nBits += eLen
+ for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
+
+ m = e & ((1 << (-nBits)) - 1)
+ e >>= (-nBits)
+ nBits += mLen
+ for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
+
+ if (e === 0) {
+ e = 1 - eBias
+ } else if (e === eMax) {
+ return m ? NaN : ((s ? -1 : 1) * Infinity)
+ } else {
+ m = m + Math.pow(2, mLen)
+ e = e - eBias
+ }
+ return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
+}
+
+exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
+ var e, m, c
+ var eLen = (nBytes * 8) - mLen - 1
+ var eMax = (1 << eLen) - 1
+ var eBias = eMax >> 1
+ var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
+ var i = isLE ? 0 : (nBytes - 1)
+ var d = isLE ? 1 : -1
+ var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
+
+ value = Math.abs(value)
+
+ if (isNaN(value) || value === Infinity) {
+ m = isNaN(value) ? 1 : 0
+ e = eMax
+ } else {
+ e = Math.floor(Math.log(value) / Math.LN2)
+ if (value * (c = Math.pow(2, -e)) < 1) {
+ e--
+ c *= 2
+ }
+ if (e + eBias >= 1) {
+ value += rt / c
+ } else {
+ value += rt * Math.pow(2, 1 - eBias)
+ }
+ if (value * c >= 2) {
+ e++
+ c /= 2
+ }
+
+ if (e + eBias >= eMax) {
+ m = 0
+ e = eMax
+ } else if (e + eBias >= 1) {
+ m = ((value * c) - 1) * Math.pow(2, mLen)
+ e = e + eBias
+ } else {
+ m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
+ e = 0
+ }
+ }
+
+ for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
+
+ e = (e << mLen) | m
+ eLen += mLen
+ for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
+
+ buffer[offset + i - d] |= s * 128
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/isarray/index.js":
+/*!***************************************!*\
+ !*** ./node_modules/isarray/index.js ***!
+ \***************************************/
+/***/ ((module) => {
+
+var toString = {}.toString;
+
+module.exports = Array.isArray || function (arr) {
+ return toString.call(arr) == '[object Array]';
+};
+
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/JsBarcode.js":
+/*!*************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/JsBarcode.js ***!
+ \*************************************************/
+/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
+
+"use strict";
+
+
+var _barcodes = __webpack_require__(/*! ./barcodes/ */ "./node_modules/jsbarcode/bin/barcodes/index.js");
+
+var _barcodes2 = _interopRequireDefault(_barcodes);
+
+var _merge = __webpack_require__(/*! ./help/merge.js */ "./node_modules/jsbarcode/bin/help/merge.js");
+
+var _merge2 = _interopRequireDefault(_merge);
+
+var _linearizeEncodings = __webpack_require__(/*! ./help/linearizeEncodings.js */ "./node_modules/jsbarcode/bin/help/linearizeEncodings.js");
+
+var _linearizeEncodings2 = _interopRequireDefault(_linearizeEncodings);
+
+var _fixOptions = __webpack_require__(/*! ./help/fixOptions.js */ "./node_modules/jsbarcode/bin/help/fixOptions.js");
+
+var _fixOptions2 = _interopRequireDefault(_fixOptions);
+
+var _getRenderProperties = __webpack_require__(/*! ./help/getRenderProperties.js */ "./node_modules/jsbarcode/bin/help/getRenderProperties.js");
+
+var _getRenderProperties2 = _interopRequireDefault(_getRenderProperties);
+
+var _optionsFromStrings = __webpack_require__(/*! ./help/optionsFromStrings.js */ "./node_modules/jsbarcode/bin/help/optionsFromStrings.js");
+
+var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings);
+
+var _ErrorHandler = __webpack_require__(/*! ./exceptions/ErrorHandler.js */ "./node_modules/jsbarcode/bin/exceptions/ErrorHandler.js");
+
+var _ErrorHandler2 = _interopRequireDefault(_ErrorHandler);
+
+var _exceptions = __webpack_require__(/*! ./exceptions/exceptions.js */ "./node_modules/jsbarcode/bin/exceptions/exceptions.js");
+
+var _defaults = __webpack_require__(/*! ./options/defaults.js */ "./node_modules/jsbarcode/bin/options/defaults.js");
+
+var _defaults2 = _interopRequireDefault(_defaults);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// The protype of the object returned from the JsBarcode() call
+
+
+// Help functions
+var API = function API() {};
+
+// The first call of the library API
+// Will return an object with all barcodes calls and the data that is used
+// by the renderers
+
+
+// Default values
+
+
+// Exceptions
+// Import all the barcodes
+var JsBarcode = function JsBarcode(element, text, options) {
+ var api = new API();
+
+ if (typeof element === "undefined") {
+ throw Error("No element to render on was provided.");
+ }
+
+ // Variables that will be pased through the API calls
+ api._renderProperties = (0, _getRenderProperties2.default)(element);
+ api._encodings = [];
+ api._options = _defaults2.default;
+ api._errorHandler = new _ErrorHandler2.default(api);
+
+ // If text is set, use the simple syntax (render the barcode directly)
+ if (typeof text !== "undefined") {
+ options = options || {};
+
+ if (!options.format) {
+ options.format = autoSelectBarcode();
+ }
+
+ api.options(options)[options.format](text, options).render();
+ }
+
+ return api;
+};
+
+// To make tests work TODO: remove
+JsBarcode.getModule = function (name) {
+ return _barcodes2.default[name];
+};
+
+// Register all barcodes
+for (var name in _barcodes2.default) {
+ if (_barcodes2.default.hasOwnProperty(name)) {
+ // Security check if the propery is a prototype property
+ registerBarcode(_barcodes2.default, name);
+ }
+}
+function registerBarcode(barcodes, name) {
+ API.prototype[name] = API.prototype[name.toUpperCase()] = API.prototype[name.toLowerCase()] = function (text, options) {
+ var api = this;
+ return api._errorHandler.wrapBarcodeCall(function () {
+ // Ensure text is options.text
+ options.text = typeof options.text === 'undefined' ? undefined : '' + options.text;
+
+ var newOptions = (0, _merge2.default)(api._options, options);
+ newOptions = (0, _optionsFromStrings2.default)(newOptions);
+ var Encoder = barcodes[name];
+ var encoded = encode(text, Encoder, newOptions);
+ api._encodings.push(encoded);
+
+ return api;
+ });
+ };
+}
+
+// encode() handles the Encoder call and builds the binary string to be rendered
+function encode(text, Encoder, options) {
+ // Ensure that text is a string
+ text = "" + text;
+
+ var encoder = new Encoder(text, options);
+
+ // If the input is not valid for the encoder, throw error.
+ // If the valid callback option is set, call it instead of throwing error
+ if (!encoder.valid()) {
+ throw new _exceptions.InvalidInputException(encoder.constructor.name, text);
+ }
+
+ // Make a request for the binary data (and other infromation) that should be rendered
+ var encoded = encoder.encode();
+
+ // Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2]
+ // Convert to [1-1, 1-2, 2, 3-1, 3-2]
+ encoded = (0, _linearizeEncodings2.default)(encoded);
+
+ // Merge
+ for (var i = 0; i < encoded.length; i++) {
+ encoded[i].options = (0, _merge2.default)(options, encoded[i].options);
+ }
+
+ return encoded;
+}
+
+function autoSelectBarcode() {
+ // If CODE128 exists. Use it
+ if (_barcodes2.default["CODE128"]) {
+ return "CODE128";
+ }
+
+ // Else, take the first (probably only) barcode
+ return Object.keys(_barcodes2.default)[0];
+}
+
+// Sets global encoder options
+// Added to the api by the JsBarcode function
+API.prototype.options = function (options) {
+ this._options = (0, _merge2.default)(this._options, options);
+ return this;
+};
+
+// Will create a blank space (usually in between barcodes)
+API.prototype.blank = function (size) {
+ var zeroes = new Array(size + 1).join("0");
+ this._encodings.push({ data: zeroes });
+ return this;
+};
+
+// Initialize JsBarcode on all HTML elements defined.
+API.prototype.init = function () {
+ // Should do nothing if no elements where found
+ if (!this._renderProperties) {
+ return;
+ }
+
+ // Make sure renderProperies is an array
+ if (!Array.isArray(this._renderProperties)) {
+ this._renderProperties = [this._renderProperties];
+ }
+
+ var renderProperty;
+ for (var i in this._renderProperties) {
+ renderProperty = this._renderProperties[i];
+ var options = (0, _merge2.default)(this._options, renderProperty.options);
+
+ if (options.format == "auto") {
+ options.format = autoSelectBarcode();
+ }
+
+ this._errorHandler.wrapBarcodeCall(function () {
+ var text = options.value;
+ var Encoder = _barcodes2.default[options.format.toUpperCase()];
+ var encoded = encode(text, Encoder, options);
+
+ render(renderProperty, encoded, options);
+ });
+ }
+};
+
+// The render API call. Calls the real render function.
+API.prototype.render = function () {
+ if (!this._renderProperties) {
+ throw new _exceptions.NoElementException();
+ }
+
+ if (Array.isArray(this._renderProperties)) {
+ for (var i = 0; i < this._renderProperties.length; i++) {
+ render(this._renderProperties[i], this._encodings, this._options);
+ }
+ } else {
+ render(this._renderProperties, this._encodings, this._options);
+ }
+
+ return this;
+};
+
+API.prototype._defaults = _defaults2.default;
+
+// Prepares the encodings and calls the renderer
+function render(renderProperties, encodings, options) {
+ encodings = (0, _linearizeEncodings2.default)(encodings);
+
+ for (var i = 0; i < encodings.length; i++) {
+ encodings[i].options = (0, _merge2.default)(options, encodings[i].options);
+ (0, _fixOptions2.default)(encodings[i].options);
+ }
+
+ (0, _fixOptions2.default)(options);
+
+ var Renderer = renderProperties.renderer;
+ var renderer = new Renderer(renderProperties.element, encodings, options);
+ renderer.render();
+
+ if (renderProperties.afterRender) {
+ renderProperties.afterRender();
+ }
+}
+
+// Export to browser
+if (typeof window !== "undefined") {
+ window.JsBarcode = JsBarcode;
+}
+
+// Export to jQuery
+/*global jQuery */
+if (typeof jQuery !== 'undefined') {
+ jQuery.fn.JsBarcode = function (content, options) {
+ var elementArray = [];
+ jQuery(this).each(function () {
+ elementArray.push(this);
+ });
+ return JsBarcode(elementArray, content, options);
+ };
+}
+
+// Export to commonJS
+module.exports = JsBarcode;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/Barcode.js":
+/*!********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/Barcode.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var Barcode = function Barcode(data, options) {
+ _classCallCheck(this, Barcode);
+
+ this.data = data;
+ this.text = options.text || data;
+ this.options = options;
+};
+
+exports["default"] = Barcode;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128.js ***!
+ \****************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/CODE128/constants.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+// This is the master class,
+// it does require the start code to be included in the string
+var CODE128 = function (_Barcode) {
+ _inherits(CODE128, _Barcode);
+
+ function CODE128(data, options) {
+ _classCallCheck(this, CODE128);
+
+ // Get array of ascii codes from data
+ var _this = _possibleConstructorReturn(this, (CODE128.__proto__ || Object.getPrototypeOf(CODE128)).call(this, data.substring(1), options));
+
+ _this.bytes = data.split('').map(function (char) {
+ return char.charCodeAt(0);
+ });
+ return _this;
+ }
+
+ _createClass(CODE128, [{
+ key: 'valid',
+ value: function valid() {
+ // ASCII value ranges 0-127, 200-211
+ return (/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)
+ );
+ }
+
+ // The public encoding function
+
+ }, {
+ key: 'encode',
+ value: function encode() {
+ var bytes = this.bytes;
+ // Remove the start code from the bytes and set its index
+ var startIndex = bytes.shift() - 105;
+ // Get start set by index
+ var startSet = _constants.SET_BY_CODE[startIndex];
+
+ if (startSet === undefined) {
+ throw new RangeError('The encoding does not start with a start character.');
+ }
+
+ if (this.shouldEncodeAsEan128() === true) {
+ bytes.unshift(_constants.FNC1);
+ }
+
+ // Start encode with the right type
+ var encodingResult = CODE128.next(bytes, 1, startSet);
+
+ return {
+ text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, '') : this.text,
+ data:
+ // Add the start bits
+ CODE128.getBar(startIndex) +
+ // Add the encoded bits
+ encodingResult.result +
+ // Add the checksum
+ CODE128.getBar((encodingResult.checksum + startIndex) % _constants.MODULO) +
+ // Add the end bits
+ CODE128.getBar(_constants.STOP)
+ };
+ }
+
+ // GS1-128/EAN-128
+
+ }, {
+ key: 'shouldEncodeAsEan128',
+ value: function shouldEncodeAsEan128() {
+ var isEAN128 = this.options.ean128 || false;
+ if (typeof isEAN128 === 'string') {
+ isEAN128 = isEAN128.toLowerCase() === 'true';
+ }
+ return isEAN128;
+ }
+
+ // Get a bar symbol by index
+
+ }], [{
+ key: 'getBar',
+ value: function getBar(index) {
+ return _constants.BARS[index] ? _constants.BARS[index].toString() : '';
+ }
+
+ // Correct an index by a set and shift it from the bytes array
+
+ }, {
+ key: 'correctIndex',
+ value: function correctIndex(bytes, set) {
+ if (set === _constants.SET_A) {
+ var charCode = bytes.shift();
+ return charCode < 32 ? charCode + 64 : charCode - 32;
+ } else if (set === _constants.SET_B) {
+ return bytes.shift() - 32;
+ } else {
+ return (bytes.shift() - 48) * 10 + bytes.shift() - 48;
+ }
+ }
+ }, {
+ key: 'next',
+ value: function next(bytes, pos, set) {
+ if (!bytes.length) {
+ return { result: '', checksum: 0 };
+ }
+
+ var nextCode = void 0,
+ index = void 0;
+
+ // Special characters
+ if (bytes[0] >= 200) {
+ index = bytes.shift() - 105;
+ var nextSet = _constants.SWAP[index];
+
+ // Swap to other set
+ if (nextSet !== undefined) {
+ nextCode = CODE128.next(bytes, pos + 1, nextSet);
+ }
+ // Continue on current set but encode a special character
+ else {
+ // Shift
+ if ((set === _constants.SET_A || set === _constants.SET_B) && index === _constants.SHIFT) {
+ // Convert the next character so that is encoded correctly
+ bytes[0] = set === _constants.SET_A ? bytes[0] > 95 ? bytes[0] - 96 : bytes[0] : bytes[0] < 32 ? bytes[0] + 96 : bytes[0];
+ }
+ nextCode = CODE128.next(bytes, pos + 1, set);
+ }
+ }
+ // Continue encoding
+ else {
+ index = CODE128.correctIndex(bytes, set);
+ nextCode = CODE128.next(bytes, pos + 1, set);
+ }
+
+ // Get the correct binary encoding and calculate the weight
+ var enc = CODE128.getBar(index);
+ var weight = index * pos;
+
+ return {
+ result: enc + nextCode.result,
+ checksum: weight + nextCode.checksum
+ };
+ }
+ }]);
+
+ return CODE128;
+}(_Barcode3.default);
+
+exports["default"] = CODE128;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128A.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128A.js ***!
+ \*****************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _CODE2 = __webpack_require__(/*! ./CODE128.js */ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128.js");
+
+var _CODE3 = _interopRequireDefault(_CODE2);
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/CODE128/constants.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var CODE128A = function (_CODE) {
+ _inherits(CODE128A, _CODE);
+
+ function CODE128A(string, options) {
+ _classCallCheck(this, CODE128A);
+
+ return _possibleConstructorReturn(this, (CODE128A.__proto__ || Object.getPrototypeOf(CODE128A)).call(this, _constants.A_START_CHAR + string, options));
+ }
+
+ _createClass(CODE128A, [{
+ key: 'valid',
+ value: function valid() {
+ return new RegExp('^' + _constants.A_CHARS + '+$').test(this.data);
+ }
+ }]);
+
+ return CODE128A;
+}(_CODE3.default);
+
+exports["default"] = CODE128A;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128B.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128B.js ***!
+ \*****************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _CODE2 = __webpack_require__(/*! ./CODE128.js */ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128.js");
+
+var _CODE3 = _interopRequireDefault(_CODE2);
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/CODE128/constants.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var CODE128B = function (_CODE) {
+ _inherits(CODE128B, _CODE);
+
+ function CODE128B(string, options) {
+ _classCallCheck(this, CODE128B);
+
+ return _possibleConstructorReturn(this, (CODE128B.__proto__ || Object.getPrototypeOf(CODE128B)).call(this, _constants.B_START_CHAR + string, options));
+ }
+
+ _createClass(CODE128B, [{
+ key: 'valid',
+ value: function valid() {
+ return new RegExp('^' + _constants.B_CHARS + '+$').test(this.data);
+ }
+ }]);
+
+ return CODE128B;
+}(_CODE3.default);
+
+exports["default"] = CODE128B;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128C.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128C.js ***!
+ \*****************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _CODE2 = __webpack_require__(/*! ./CODE128.js */ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128.js");
+
+var _CODE3 = _interopRequireDefault(_CODE2);
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/CODE128/constants.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var CODE128C = function (_CODE) {
+ _inherits(CODE128C, _CODE);
+
+ function CODE128C(string, options) {
+ _classCallCheck(this, CODE128C);
+
+ return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options));
+ }
+
+ _createClass(CODE128C, [{
+ key: 'valid',
+ value: function valid() {
+ return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data);
+ }
+ }]);
+
+ return CODE128C;
+}(_CODE3.default);
+
+exports["default"] = CODE128C;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128_AUTO.js":
+/*!*********************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128_AUTO.js ***!
+ \*********************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _CODE2 = __webpack_require__(/*! ./CODE128 */ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128.js");
+
+var _CODE3 = _interopRequireDefault(_CODE2);
+
+var _auto = __webpack_require__(/*! ./auto */ "./node_modules/jsbarcode/bin/barcodes/CODE128/auto.js");
+
+var _auto2 = _interopRequireDefault(_auto);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var CODE128AUTO = function (_CODE) {
+ _inherits(CODE128AUTO, _CODE);
+
+ function CODE128AUTO(data, options) {
+ _classCallCheck(this, CODE128AUTO);
+
+ // ASCII value ranges 0-127, 200-211
+ if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) {
+ var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, _auto2.default)(data), options));
+ } else {
+ var _this = _possibleConstructorReturn(this, (CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options));
+ }
+ return _possibleConstructorReturn(_this);
+ }
+
+ return CODE128AUTO;
+}(_CODE3.default);
+
+exports["default"] = CODE128AUTO;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE128/auto.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE128/auto.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/CODE128/constants.js");
+
+// Match Set functions
+var matchSetALength = function matchSetALength(string) {
+ return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length;
+};
+var matchSetBLength = function matchSetBLength(string) {
+ return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length;
+};
+var matchSetC = function matchSetC(string) {
+ return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0];
+};
+
+// CODE128A or CODE128B
+function autoSelectFromAB(string, isA) {
+ var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS;
+ var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)'));
+
+ if (untilC) {
+ return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length));
+ }
+
+ var chars = string.match(new RegExp('^' + ranges + '+'))[0];
+
+ if (chars.length === string.length) {
+ return string;
+ }
+
+ return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA);
+}
+
+// CODE128C
+function autoSelectFromC(string) {
+ var cMatch = matchSetC(string);
+ var length = cMatch.length;
+
+ if (length === string.length) {
+ return string;
+ }
+
+ string = string.substring(length);
+
+ // Select A/B depending on the longest match
+ var isA = matchSetALength(string) >= matchSetBLength(string);
+ return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA);
+}
+
+// Detect Code Set (A, B or C) and format the string
+
+exports["default"] = function (string) {
+ var newString = void 0;
+ var cLength = matchSetC(string).length;
+
+ // Select 128C if the string start with enough digits
+ if (cLength >= 2) {
+ newString = _constants.C_START_CHAR + autoSelectFromC(string);
+ } else {
+ // Select A/B depending on the longest match
+ var isA = matchSetALength(string) > matchSetBLength(string);
+ newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA);
+ }
+
+ return newString.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, // Any sequence between 205 and 206 characters
+ function (match, char) {
+ return String.fromCharCode(203) + char;
+ });
+};
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE128/constants.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE128/constants.js ***!
+ \******************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _SET_BY_CODE;
+
+function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+
+// constants for internal usage
+var SET_A = exports.SET_A = 0;
+var SET_B = exports.SET_B = 1;
+var SET_C = exports.SET_C = 2;
+
+// Special characters
+var SHIFT = exports.SHIFT = 98;
+var START_A = exports.START_A = 103;
+var START_B = exports.START_B = 104;
+var START_C = exports.START_C = 105;
+var MODULO = exports.MODULO = 103;
+var STOP = exports.STOP = 106;
+var FNC1 = exports.FNC1 = 207;
+
+// Get set by start code
+var SET_BY_CODE = exports.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE);
+
+// Get next set by code
+var SWAP = exports.SWAP = {
+ 101: SET_A,
+ 100: SET_B,
+ 99: SET_C
+};
+
+var A_START_CHAR = exports.A_START_CHAR = String.fromCharCode(208); // START_A + 105
+var B_START_CHAR = exports.B_START_CHAR = String.fromCharCode(209); // START_B + 105
+var C_START_CHAR = exports.C_START_CHAR = String.fromCharCode(210); // START_C + 105
+
+// 128A (Code Set A)
+// ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4
+var A_CHARS = exports.A_CHARS = "[\x00-\x5F\xC8-\xCF]";
+
+// 128B (Code Set B)
+// ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4
+var B_CHARS = exports.B_CHARS = "[\x20-\x7F\xC8-\xCF]";
+
+// 128C (Code Set C)
+// 00–99 (encodes two digits with a single code point) and FNC1
+var C_CHARS = exports.C_CHARS = "(\xCF*[0-9]{2}\xCF*)";
+
+// CODE128 includes 107 symbols:
+// 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one)
+// Each symbol consist of three black bars (1) and three white spaces (0).
+var BARS = exports.BARS = [11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100, 11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110, 10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110, 10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110, 11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000, 10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011];
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE128/index.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE128/index.js ***!
+ \**************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.CODE128C = exports.CODE128B = exports.CODE128A = exports.CODE128 = undefined;
+
+var _CODE128_AUTO = __webpack_require__(/*! ./CODE128_AUTO.js */ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128_AUTO.js");
+
+var _CODE128_AUTO2 = _interopRequireDefault(_CODE128_AUTO);
+
+var _CODE128A = __webpack_require__(/*! ./CODE128A.js */ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128A.js");
+
+var _CODE128A2 = _interopRequireDefault(_CODE128A);
+
+var _CODE128B = __webpack_require__(/*! ./CODE128B.js */ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128B.js");
+
+var _CODE128B2 = _interopRequireDefault(_CODE128B);
+
+var _CODE128C = __webpack_require__(/*! ./CODE128C.js */ "./node_modules/jsbarcode/bin/barcodes/CODE128/CODE128C.js");
+
+var _CODE128C2 = _interopRequireDefault(_CODE128C);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+exports.CODE128 = _CODE128_AUTO2.default;
+exports.CODE128A = _CODE128A2.default;
+exports.CODE128B = _CODE128B2.default;
+exports.CODE128C = _CODE128C2.default;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE39/index.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE39/index.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.CODE39 = undefined;
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation:
+// https://en.wikipedia.org/wiki/Code_39#Encoding
+
+var CODE39 = function (_Barcode) {
+ _inherits(CODE39, _Barcode);
+
+ function CODE39(data, options) {
+ _classCallCheck(this, CODE39);
+
+ data = data.toUpperCase();
+
+ // Calculate mod43 checksum if enabled
+ if (options.mod43) {
+ data += getCharacter(mod43checksum(data));
+ }
+
+ return _possibleConstructorReturn(this, (CODE39.__proto__ || Object.getPrototypeOf(CODE39)).call(this, data, options));
+ }
+
+ _createClass(CODE39, [{
+ key: "encode",
+ value: function encode() {
+ // First character is always a *
+ var result = getEncoding("*");
+
+ // Take every character and add the binary representation to the result
+ for (var i = 0; i < this.data.length; i++) {
+ result += getEncoding(this.data[i]) + "0";
+ }
+
+ // Last character is always a *
+ result += getEncoding("*");
+
+ return {
+ data: result,
+ text: this.text
+ };
+ }
+ }, {
+ key: "valid",
+ value: function valid() {
+ return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1;
+ }
+ }]);
+
+ return CODE39;
+}(_Barcode3.default);
+
+// All characters. The position in the array is the (checksum) value
+
+
+var characters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", "*"];
+
+// The decimal representation of the characters, is converted to the
+// corresponding binary with the getEncoding function
+var encodings = [20957, 29783, 23639, 30485, 20951, 29813, 23669, 20855, 29789, 23645, 29975, 23831, 30533, 22295, 30149, 24005, 21623, 29981, 23837, 22301, 30023, 23879, 30545, 22343, 30161, 24017, 21959, 30065, 23921, 22385, 29015, 18263, 29141, 17879, 29045, 18293, 17783, 29021, 18269, 17477, 17489, 17681, 20753, 35770];
+
+// Get the binary representation of a character by converting the encodings
+// from decimal to binary
+function getEncoding(character) {
+ return getBinary(characterValue(character));
+}
+
+function getBinary(characterValue) {
+ return encodings[characterValue].toString(2);
+}
+
+function getCharacter(characterValue) {
+ return characters[characterValue];
+}
+
+function characterValue(character) {
+ return characters.indexOf(character);
+}
+
+function mod43checksum(data) {
+ var checksum = 0;
+ for (var i = 0; i < data.length; i++) {
+ checksum += characterValue(data[i]);
+ }
+
+ checksum = checksum % 43;
+ return checksum;
+}
+
+exports.CODE39 = CODE39;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE93/CODE93.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE93/CODE93.js ***!
+ \**************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/CODE93/constants.js");
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation:
+// https://en.wikipedia.org/wiki/Code_93#Detailed_outline
+
+var CODE93 = function (_Barcode) {
+ _inherits(CODE93, _Barcode);
+
+ function CODE93(data, options) {
+ _classCallCheck(this, CODE93);
+
+ return _possibleConstructorReturn(this, (CODE93.__proto__ || Object.getPrototypeOf(CODE93)).call(this, data, options));
+ }
+
+ _createClass(CODE93, [{
+ key: 'valid',
+ value: function valid() {
+ return (/^[0-9A-Z\-. $/+%]+$/.test(this.data)
+ );
+ }
+ }, {
+ key: 'encode',
+ value: function encode() {
+ var symbols = this.data.split('').flatMap(function (c) {
+ return _constants.MULTI_SYMBOLS[c] || c;
+ });
+ var encoded = symbols.map(function (s) {
+ return CODE93.getEncoding(s);
+ }).join('');
+
+ // Compute checksum symbols
+ var csumC = CODE93.checksum(symbols, 20);
+ var csumK = CODE93.checksum(symbols.concat(csumC), 15);
+
+ return {
+ text: this.text,
+ data:
+ // Add the start bits
+ CODE93.getEncoding('\xff') +
+ // Add the encoded bits
+ encoded +
+ // Add the checksum
+ CODE93.getEncoding(csumC) + CODE93.getEncoding(csumK) +
+ // Add the stop bits
+ CODE93.getEncoding('\xff') +
+ // Add the termination bit
+ '1'
+ };
+ }
+
+ // Get the binary encoding of a symbol
+
+ }], [{
+ key: 'getEncoding',
+ value: function getEncoding(symbol) {
+ return _constants.BINARIES[CODE93.symbolValue(symbol)];
+ }
+
+ // Get the symbol for a symbol value
+
+ }, {
+ key: 'getSymbol',
+ value: function getSymbol(symbolValue) {
+ return _constants.SYMBOLS[symbolValue];
+ }
+
+ // Get the symbol value of a symbol
+
+ }, {
+ key: 'symbolValue',
+ value: function symbolValue(symbol) {
+ return _constants.SYMBOLS.indexOf(symbol);
+ }
+
+ // Calculate a checksum symbol
+
+ }, {
+ key: 'checksum',
+ value: function checksum(symbols, maxWeight) {
+ var csum = symbols.slice().reverse().reduce(function (sum, symbol, idx) {
+ var weight = idx % maxWeight + 1;
+ return sum + CODE93.symbolValue(symbol) * weight;
+ }, 0);
+
+ return CODE93.getSymbol(csum % 47);
+ }
+ }]);
+
+ return CODE93;
+}(_Barcode3.default);
+
+exports["default"] = CODE93;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE93/CODE93FullASCII.js":
+/*!***********************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE93/CODE93FullASCII.js ***!
+ \***********************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _CODE2 = __webpack_require__(/*! ./CODE93.js */ "./node_modules/jsbarcode/bin/barcodes/CODE93/CODE93.js");
+
+var _CODE3 = _interopRequireDefault(_CODE2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation
+// https://en.wikipedia.org/wiki/Code_93#Full_ASCII_Code_93
+
+var CODE93FullASCII = function (_CODE) {
+ _inherits(CODE93FullASCII, _CODE);
+
+ function CODE93FullASCII(data, options) {
+ _classCallCheck(this, CODE93FullASCII);
+
+ return _possibleConstructorReturn(this, (CODE93FullASCII.__proto__ || Object.getPrototypeOf(CODE93FullASCII)).call(this, data, options));
+ }
+
+ _createClass(CODE93FullASCII, [{
+ key: 'valid',
+ value: function valid() {
+ return (/^[\x00-\x7f]+$/.test(this.data)
+ );
+ }
+ }]);
+
+ return CODE93FullASCII;
+}(_CODE3.default);
+
+exports["default"] = CODE93FullASCII;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE93/constants.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE93/constants.js ***!
+ \*****************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+// The position in the array is the (checksum) value
+var SYMBOLS = exports.SYMBOLS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%',
+// Only used for csum and multi-symbols character encodings
+'($)', '(%)', '(/)', '(+)',
+// Start/Stop
+'\xff'];
+
+// Order matches SYMBOLS array
+var BINARIES = exports.BINARIES = ['100010100', '101001000', '101000100', '101000010', '100101000', '100100100', '100100010', '101010000', '100010010', '100001010', '110101000', '110100100', '110100010', '110010100', '110010010', '110001010', '101101000', '101100100', '101100010', '100110100', '100011010', '101011000', '101001100', '101000110', '100101100', '100010110', '110110100', '110110010', '110101100', '110100110', '110010110', '110011010', '101101100', '101100110', '100110110', '100111010', '100101110', '111010100', '111010010', '111001010', '101101110', '101110110', '110101110', '100100110', '111011010', '111010110', '100110010', '101011110'];
+
+// Multi-symbol characters (Full ASCII Code 93)
+var MULTI_SYMBOLS = exports.MULTI_SYMBOLS = {
+ '\x00': ['(%)', 'U'],
+ '\x01': ['($)', 'A'],
+ '\x02': ['($)', 'B'],
+ '\x03': ['($)', 'C'],
+ '\x04': ['($)', 'D'],
+ '\x05': ['($)', 'E'],
+ '\x06': ['($)', 'F'],
+ '\x07': ['($)', 'G'],
+ '\x08': ['($)', 'H'],
+ '\x09': ['($)', 'I'],
+ '\x0a': ['($)', 'J'],
+ '\x0b': ['($)', 'K'],
+ '\x0c': ['($)', 'L'],
+ '\x0d': ['($)', 'M'],
+ '\x0e': ['($)', 'N'],
+ '\x0f': ['($)', 'O'],
+ '\x10': ['($)', 'P'],
+ '\x11': ['($)', 'Q'],
+ '\x12': ['($)', 'R'],
+ '\x13': ['($)', 'S'],
+ '\x14': ['($)', 'T'],
+ '\x15': ['($)', 'U'],
+ '\x16': ['($)', 'V'],
+ '\x17': ['($)', 'W'],
+ '\x18': ['($)', 'X'],
+ '\x19': ['($)', 'Y'],
+ '\x1a': ['($)', 'Z'],
+ '\x1b': ['(%)', 'A'],
+ '\x1c': ['(%)', 'B'],
+ '\x1d': ['(%)', 'C'],
+ '\x1e': ['(%)', 'D'],
+ '\x1f': ['(%)', 'E'],
+ '!': ['(/)', 'A'],
+ '"': ['(/)', 'B'],
+ '#': ['(/)', 'C'],
+ '&': ['(/)', 'F'],
+ '\'': ['(/)', 'G'],
+ '(': ['(/)', 'H'],
+ ')': ['(/)', 'I'],
+ '*': ['(/)', 'J'],
+ ',': ['(/)', 'L'],
+ ':': ['(/)', 'Z'],
+ ';': ['(%)', 'F'],
+ '<': ['(%)', 'G'],
+ '=': ['(%)', 'H'],
+ '>': ['(%)', 'I'],
+ '?': ['(%)', 'J'],
+ '@': ['(%)', 'V'],
+ '[': ['(%)', 'K'],
+ '\\': ['(%)', 'L'],
+ ']': ['(%)', 'M'],
+ '^': ['(%)', 'N'],
+ '_': ['(%)', 'O'],
+ '`': ['(%)', 'W'],
+ 'a': ['(+)', 'A'],
+ 'b': ['(+)', 'B'],
+ 'c': ['(+)', 'C'],
+ 'd': ['(+)', 'D'],
+ 'e': ['(+)', 'E'],
+ 'f': ['(+)', 'F'],
+ 'g': ['(+)', 'G'],
+ 'h': ['(+)', 'H'],
+ 'i': ['(+)', 'I'],
+ 'j': ['(+)', 'J'],
+ 'k': ['(+)', 'K'],
+ 'l': ['(+)', 'L'],
+ 'm': ['(+)', 'M'],
+ 'n': ['(+)', 'N'],
+ 'o': ['(+)', 'O'],
+ 'p': ['(+)', 'P'],
+ 'q': ['(+)', 'Q'],
+ 'r': ['(+)', 'R'],
+ 's': ['(+)', 'S'],
+ 't': ['(+)', 'T'],
+ 'u': ['(+)', 'U'],
+ 'v': ['(+)', 'V'],
+ 'w': ['(+)', 'W'],
+ 'x': ['(+)', 'X'],
+ 'y': ['(+)', 'Y'],
+ 'z': ['(+)', 'Z'],
+ '{': ['(%)', 'P'],
+ '|': ['(%)', 'Q'],
+ '}': ['(%)', 'R'],
+ '~': ['(%)', 'S'],
+ '\x7f': ['(%)', 'T']
+};
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/CODE93/index.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/CODE93/index.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.CODE93FullASCII = exports.CODE93 = undefined;
+
+var _CODE = __webpack_require__(/*! ./CODE93.js */ "./node_modules/jsbarcode/bin/barcodes/CODE93/CODE93.js");
+
+var _CODE2 = _interopRequireDefault(_CODE);
+
+var _CODE93FullASCII = __webpack_require__(/*! ./CODE93FullASCII.js */ "./node_modules/jsbarcode/bin/barcodes/CODE93/CODE93FullASCII.js");
+
+var _CODE93FullASCII2 = _interopRequireDefault(_CODE93FullASCII);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+exports.CODE93 = _CODE2.default;
+exports.CODE93FullASCII = _CODE93FullASCII2.default;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN.js":
+/*!************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN.js ***!
+ \************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js");
+
+var _encoder = __webpack_require__(/*! ./encoder */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js");
+
+var _encoder2 = _interopRequireDefault(_encoder);
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+// Base class for EAN8 & EAN13
+var EAN = function (_Barcode) {
+ _inherits(EAN, _Barcode);
+
+ function EAN(data, options) {
+ _classCallCheck(this, EAN);
+
+ // Make sure the font is not bigger than the space between the guard bars
+ var _this = _possibleConstructorReturn(this, (EAN.__proto__ || Object.getPrototypeOf(EAN)).call(this, data, options));
+
+ _this.fontSize = !options.flat && options.fontSize > options.width * 10 ? options.width * 10 : options.fontSize;
+
+ // Make the guard bars go down half the way of the text
+ _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin;
+ return _this;
+ }
+
+ _createClass(EAN, [{
+ key: 'encode',
+ value: function encode() {
+ return this.options.flat ? this.encodeFlat() : this.encodeGuarded();
+ }
+ }, {
+ key: 'leftText',
+ value: function leftText(from, to) {
+ return this.text.substr(from, to);
+ }
+ }, {
+ key: 'leftEncode',
+ value: function leftEncode(data, structure) {
+ return (0, _encoder2.default)(data, structure);
+ }
+ }, {
+ key: 'rightText',
+ value: function rightText(from, to) {
+ return this.text.substr(from, to);
+ }
+ }, {
+ key: 'rightEncode',
+ value: function rightEncode(data, structure) {
+ return (0, _encoder2.default)(data, structure);
+ }
+ }, {
+ key: 'encodeGuarded',
+ value: function encodeGuarded() {
+ var textOptions = { fontSize: this.fontSize };
+ var guardOptions = { height: this.guardHeight };
+
+ return [{ data: _constants.SIDE_BIN, options: guardOptions }, { data: this.leftEncode(), text: this.leftText(), options: textOptions }, { data: _constants.MIDDLE_BIN, options: guardOptions }, { data: this.rightEncode(), text: this.rightText(), options: textOptions }, { data: _constants.SIDE_BIN, options: guardOptions }];
+ }
+ }, {
+ key: 'encodeFlat',
+ value: function encodeFlat() {
+ var data = [_constants.SIDE_BIN, this.leftEncode(), _constants.MIDDLE_BIN, this.rightEncode(), _constants.SIDE_BIN];
+
+ return {
+ data: data.join(''),
+ text: this.text
+ };
+ }
+ }]);
+
+ return EAN;
+}(_Barcode3.default);
+
+exports["default"] = EAN;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN13.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN13.js ***!
+ \**************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js");
+
+var _EAN2 = __webpack_require__(/*! ./EAN */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN.js");
+
+var _EAN3 = _interopRequireDefault(_EAN2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation:
+// https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Binary_encoding_of_data_digits_into_EAN-13_barcode
+
+// Calculate the checksum digit
+// https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit
+var checksum = function checksum(number) {
+ var res = number.substr(0, 12).split('').map(function (n) {
+ return +n;
+ }).reduce(function (sum, a, idx) {
+ return idx % 2 ? sum + a * 3 : sum + a;
+ }, 0);
+
+ return (10 - res % 10) % 10;
+};
+
+var EAN13 = function (_EAN) {
+ _inherits(EAN13, _EAN);
+
+ function EAN13(data, options) {
+ _classCallCheck(this, EAN13);
+
+ // Add checksum if it does not exist
+ if (data.search(/^[0-9]{12}$/) !== -1) {
+ data += checksum(data);
+ }
+
+ // Adds a last character to the end of the barcode
+ var _this = _possibleConstructorReturn(this, (EAN13.__proto__ || Object.getPrototypeOf(EAN13)).call(this, data, options));
+
+ _this.lastChar = options.lastChar;
+ return _this;
+ }
+
+ _createClass(EAN13, [{
+ key: 'valid',
+ value: function valid() {
+ return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === checksum(this.data);
+ }
+ }, {
+ key: 'leftText',
+ value: function leftText() {
+ return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftText', this).call(this, 1, 6);
+ }
+ }, {
+ key: 'leftEncode',
+ value: function leftEncode() {
+ var data = this.data.substr(1, 6);
+ var structure = _constants.EAN13_STRUCTURE[this.data[0]];
+ return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'leftEncode', this).call(this, data, structure);
+ }
+ }, {
+ key: 'rightText',
+ value: function rightText() {
+ return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightText', this).call(this, 7, 6);
+ }
+ }, {
+ key: 'rightEncode',
+ value: function rightEncode() {
+ var data = this.data.substr(7, 6);
+ return _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'rightEncode', this).call(this, data, 'RRRRRR');
+ }
+
+ // The "standard" way of printing EAN13 barcodes with guard bars
+
+ }, {
+ key: 'encodeGuarded',
+ value: function encodeGuarded() {
+ var data = _get(EAN13.prototype.__proto__ || Object.getPrototypeOf(EAN13.prototype), 'encodeGuarded', this).call(this);
+
+ // Extend data with left digit & last character
+ if (this.options.displayValue) {
+ data.unshift({
+ data: '000000000000',
+ text: this.text.substr(0, 1),
+ options: { textAlign: 'left', fontSize: this.fontSize }
+ });
+
+ if (this.options.lastChar) {
+ data.push({
+ data: '00'
+ });
+ data.push({
+ data: '00000',
+ text: this.options.lastChar,
+ options: { fontSize: this.fontSize }
+ });
+ }
+ }
+
+ return data;
+ }
+ }]);
+
+ return EAN13;
+}(_EAN3.default);
+
+exports["default"] = EAN13;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN2.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN2.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js");
+
+var _encoder = __webpack_require__(/*! ./encoder */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js");
+
+var _encoder2 = _interopRequireDefault(_encoder);
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation:
+// https://en.wikipedia.org/wiki/EAN_2#Encoding
+
+var EAN2 = function (_Barcode) {
+ _inherits(EAN2, _Barcode);
+
+ function EAN2(data, options) {
+ _classCallCheck(this, EAN2);
+
+ return _possibleConstructorReturn(this, (EAN2.__proto__ || Object.getPrototypeOf(EAN2)).call(this, data, options));
+ }
+
+ _createClass(EAN2, [{
+ key: 'valid',
+ value: function valid() {
+ return this.data.search(/^[0-9]{2}$/) !== -1;
+ }
+ }, {
+ key: 'encode',
+ value: function encode() {
+ // Choose the structure based on the number mod 4
+ var structure = _constants.EAN2_STRUCTURE[parseInt(this.data) % 4];
+ return {
+ // Start bits + Encode the two digits with 01 in between
+ data: '1011' + (0, _encoder2.default)(this.data, structure, '01'),
+ text: this.text
+ };
+ }
+ }]);
+
+ return EAN2;
+}(_Barcode3.default);
+
+exports["default"] = EAN2;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN5.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN5.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js");
+
+var _encoder = __webpack_require__(/*! ./encoder */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js");
+
+var _encoder2 = _interopRequireDefault(_encoder);
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation:
+// https://en.wikipedia.org/wiki/EAN_5#Encoding
+
+var checksum = function checksum(data) {
+ var result = data.split('').map(function (n) {
+ return +n;
+ }).reduce(function (sum, a, idx) {
+ return idx % 2 ? sum + a * 9 : sum + a * 3;
+ }, 0);
+ return result % 10;
+};
+
+var EAN5 = function (_Barcode) {
+ _inherits(EAN5, _Barcode);
+
+ function EAN5(data, options) {
+ _classCallCheck(this, EAN5);
+
+ return _possibleConstructorReturn(this, (EAN5.__proto__ || Object.getPrototypeOf(EAN5)).call(this, data, options));
+ }
+
+ _createClass(EAN5, [{
+ key: 'valid',
+ value: function valid() {
+ return this.data.search(/^[0-9]{5}$/) !== -1;
+ }
+ }, {
+ key: 'encode',
+ value: function encode() {
+ var structure = _constants.EAN5_STRUCTURE[checksum(this.data)];
+ return {
+ data: '1011' + (0, _encoder2.default)(this.data, structure, '01'),
+ text: this.text
+ };
+ }
+ }]);
+
+ return EAN5;
+}(_Barcode3.default);
+
+exports["default"] = EAN5;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN8.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN8.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
+
+var _EAN2 = __webpack_require__(/*! ./EAN */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN.js");
+
+var _EAN3 = _interopRequireDefault(_EAN2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation:
+// http://www.barcodeisland.com/ean8.phtml
+
+// Calculate the checksum digit
+var checksum = function checksum(number) {
+ var res = number.substr(0, 7).split('').map(function (n) {
+ return +n;
+ }).reduce(function (sum, a, idx) {
+ return idx % 2 ? sum + a : sum + a * 3;
+ }, 0);
+
+ return (10 - res % 10) % 10;
+};
+
+var EAN8 = function (_EAN) {
+ _inherits(EAN8, _EAN);
+
+ function EAN8(data, options) {
+ _classCallCheck(this, EAN8);
+
+ // Add checksum if it does not exist
+ if (data.search(/^[0-9]{7}$/) !== -1) {
+ data += checksum(data);
+ }
+
+ return _possibleConstructorReturn(this, (EAN8.__proto__ || Object.getPrototypeOf(EAN8)).call(this, data, options));
+ }
+
+ _createClass(EAN8, [{
+ key: 'valid',
+ value: function valid() {
+ return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === checksum(this.data);
+ }
+ }, {
+ key: 'leftText',
+ value: function leftText() {
+ return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftText', this).call(this, 0, 4);
+ }
+ }, {
+ key: 'leftEncode',
+ value: function leftEncode() {
+ var data = this.data.substr(0, 4);
+ return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'leftEncode', this).call(this, data, 'LLLL');
+ }
+ }, {
+ key: 'rightText',
+ value: function rightText() {
+ return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightText', this).call(this, 4, 4);
+ }
+ }, {
+ key: 'rightEncode',
+ value: function rightEncode() {
+ var data = this.data.substr(4, 4);
+ return _get(EAN8.prototype.__proto__ || Object.getPrototypeOf(EAN8.prototype), 'rightEncode', this).call(this, data, 'RRRR');
+ }
+ }]);
+
+ return EAN8;
+}(_EAN3.default);
+
+exports["default"] = EAN8;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPC.js":
+/*!************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPC.js ***!
+ \************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+exports.checksum = checksum;
+
+var _encoder = __webpack_require__(/*! ./encoder */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js");
+
+var _encoder2 = _interopRequireDefault(_encoder);
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation:
+// https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding
+
+var UPC = function (_Barcode) {
+ _inherits(UPC, _Barcode);
+
+ function UPC(data, options) {
+ _classCallCheck(this, UPC);
+
+ // Add checksum if it does not exist
+ if (data.search(/^[0-9]{11}$/) !== -1) {
+ data += checksum(data);
+ }
+
+ var _this = _possibleConstructorReturn(this, (UPC.__proto__ || Object.getPrototypeOf(UPC)).call(this, data, options));
+
+ _this.displayValue = options.displayValue;
+
+ // Make sure the font is not bigger than the space between the guard bars
+ if (options.fontSize > options.width * 10) {
+ _this.fontSize = options.width * 10;
+ } else {
+ _this.fontSize = options.fontSize;
+ }
+
+ // Make the guard bars go down half the way of the text
+ _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin;
+ return _this;
+ }
+
+ _createClass(UPC, [{
+ key: "valid",
+ value: function valid() {
+ return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == checksum(this.data);
+ }
+ }, {
+ key: "encode",
+ value: function encode() {
+ if (this.options.flat) {
+ return this.flatEncoding();
+ } else {
+ return this.guardedEncoding();
+ }
+ }
+ }, {
+ key: "flatEncoding",
+ value: function flatEncoding() {
+ var result = "";
+
+ result += "101";
+ result += (0, _encoder2.default)(this.data.substr(0, 6), "LLLLLL");
+ result += "01010";
+ result += (0, _encoder2.default)(this.data.substr(6, 6), "RRRRRR");
+ result += "101";
+
+ return {
+ data: result,
+ text: this.text
+ };
+ }
+ }, {
+ key: "guardedEncoding",
+ value: function guardedEncoding() {
+ var result = [];
+
+ // Add the first digit
+ if (this.displayValue) {
+ result.push({
+ data: "00000000",
+ text: this.text.substr(0, 1),
+ options: { textAlign: "left", fontSize: this.fontSize }
+ });
+ }
+
+ // Add the guard bars
+ result.push({
+ data: "101" + (0, _encoder2.default)(this.data[0], "L"),
+ options: { height: this.guardHeight }
+ });
+
+ // Add the left side
+ result.push({
+ data: (0, _encoder2.default)(this.data.substr(1, 5), "LLLLL"),
+ text: this.text.substr(1, 5),
+ options: { fontSize: this.fontSize }
+ });
+
+ // Add the middle bits
+ result.push({
+ data: "01010",
+ options: { height: this.guardHeight }
+ });
+
+ // Add the right side
+ result.push({
+ data: (0, _encoder2.default)(this.data.substr(6, 5), "RRRRR"),
+ text: this.text.substr(6, 5),
+ options: { fontSize: this.fontSize }
+ });
+
+ // Add the end bits
+ result.push({
+ data: (0, _encoder2.default)(this.data[11], "R") + "101",
+ options: { height: this.guardHeight }
+ });
+
+ // Add the last digit
+ if (this.displayValue) {
+ result.push({
+ data: "00000000",
+ text: this.text.substr(11, 1),
+ options: { textAlign: "right", fontSize: this.fontSize }
+ });
+ }
+
+ return result;
+ }
+ }]);
+
+ return UPC;
+}(_Barcode3.default);
+
+// Calulate the checksum digit
+// https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Calculation_of_checksum_digit
+
+
+function checksum(number) {
+ var result = 0;
+
+ var i;
+ for (i = 1; i < 11; i += 2) {
+ result += parseInt(number[i]);
+ }
+ for (i = 0; i < 11; i += 2) {
+ result += parseInt(number[i]) * 3;
+ }
+
+ return (10 - result % 10) % 10;
+}
+
+exports["default"] = UPC;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPCE.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPCE.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _encoder = __webpack_require__(/*! ./encoder */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js");
+
+var _encoder2 = _interopRequireDefault(_encoder);
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+var _UPC = __webpack_require__(/*! ./UPC.js */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPC.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation:
+// https://en.wikipedia.org/wiki/Universal_Product_Code#Encoding
+//
+// UPC-E documentation:
+// https://en.wikipedia.org/wiki/Universal_Product_Code#UPC-E
+
+var EXPANSIONS = ["XX00000XXX", "XX10000XXX", "XX20000XXX", "XXX00000XX", "XXXX00000X", "XXXXX00005", "XXXXX00006", "XXXXX00007", "XXXXX00008", "XXXXX00009"];
+
+var PARITIES = [["EEEOOO", "OOOEEE"], ["EEOEOO", "OOEOEE"], ["EEOOEO", "OOEEOE"], ["EEOOOE", "OOEEEO"], ["EOEEOO", "OEOOEE"], ["EOOEEO", "OEEOOE"], ["EOOOEE", "OEEEOO"], ["EOEOEO", "OEOEOE"], ["EOEOOE", "OEOEEO"], ["EOOEOE", "OEEOEO"]];
+
+var UPCE = function (_Barcode) {
+ _inherits(UPCE, _Barcode);
+
+ function UPCE(data, options) {
+ _classCallCheck(this, UPCE);
+
+ var _this = _possibleConstructorReturn(this, (UPCE.__proto__ || Object.getPrototypeOf(UPCE)).call(this, data, options));
+ // Code may be 6 or 8 digits;
+ // A 7 digit code is ambiguous as to whether the extra digit
+ // is a UPC-A check or number system digit.
+
+
+ _this.isValid = false;
+ if (data.search(/^[0-9]{6}$/) !== -1) {
+ _this.middleDigits = data;
+ _this.upcA = expandToUPCA(data, "0");
+ _this.text = options.text || '' + _this.upcA[0] + data + _this.upcA[_this.upcA.length - 1];
+ _this.isValid = true;
+ } else if (data.search(/^[01][0-9]{7}$/) !== -1) {
+ _this.middleDigits = data.substring(1, data.length - 1);
+ _this.upcA = expandToUPCA(_this.middleDigits, data[0]);
+
+ if (_this.upcA[_this.upcA.length - 1] === data[data.length - 1]) {
+ _this.isValid = true;
+ } else {
+ // checksum mismatch
+ return _possibleConstructorReturn(_this);
+ }
+ } else {
+ return _possibleConstructorReturn(_this);
+ }
+
+ _this.displayValue = options.displayValue;
+
+ // Make sure the font is not bigger than the space between the guard bars
+ if (options.fontSize > options.width * 10) {
+ _this.fontSize = options.width * 10;
+ } else {
+ _this.fontSize = options.fontSize;
+ }
+
+ // Make the guard bars go down half the way of the text
+ _this.guardHeight = options.height + _this.fontSize / 2 + options.textMargin;
+ return _this;
+ }
+
+ _createClass(UPCE, [{
+ key: 'valid',
+ value: function valid() {
+ return this.isValid;
+ }
+ }, {
+ key: 'encode',
+ value: function encode() {
+ if (this.options.flat) {
+ return this.flatEncoding();
+ } else {
+ return this.guardedEncoding();
+ }
+ }
+ }, {
+ key: 'flatEncoding',
+ value: function flatEncoding() {
+ var result = "";
+
+ result += "101";
+ result += this.encodeMiddleDigits();
+ result += "010101";
+
+ return {
+ data: result,
+ text: this.text
+ };
+ }
+ }, {
+ key: 'guardedEncoding',
+ value: function guardedEncoding() {
+ var result = [];
+
+ // Add the UPC-A number system digit beneath the quiet zone
+ if (this.displayValue) {
+ result.push({
+ data: "00000000",
+ text: this.text[0],
+ options: { textAlign: "left", fontSize: this.fontSize }
+ });
+ }
+
+ // Add the guard bars
+ result.push({
+ data: "101",
+ options: { height: this.guardHeight }
+ });
+
+ // Add the 6 UPC-E digits
+ result.push({
+ data: this.encodeMiddleDigits(),
+ text: this.text.substring(1, 7),
+ options: { fontSize: this.fontSize }
+ });
+
+ // Add the end bits
+ result.push({
+ data: "010101",
+ options: { height: this.guardHeight }
+ });
+
+ // Add the UPC-A check digit beneath the quiet zone
+ if (this.displayValue) {
+ result.push({
+ data: "00000000",
+ text: this.text[7],
+ options: { textAlign: "right", fontSize: this.fontSize }
+ });
+ }
+
+ return result;
+ }
+ }, {
+ key: 'encodeMiddleDigits',
+ value: function encodeMiddleDigits() {
+ var numberSystem = this.upcA[0];
+ var checkDigit = this.upcA[this.upcA.length - 1];
+ var parity = PARITIES[parseInt(checkDigit)][parseInt(numberSystem)];
+ return (0, _encoder2.default)(this.middleDigits, parity);
+ }
+ }]);
+
+ return UPCE;
+}(_Barcode3.default);
+
+function expandToUPCA(middleDigits, numberSystem) {
+ var lastUpcE = parseInt(middleDigits[middleDigits.length - 1]);
+ var expansion = EXPANSIONS[lastUpcE];
+
+ var result = "";
+ var digitIndex = 0;
+ for (var i = 0; i < expansion.length; i++) {
+ var c = expansion[i];
+ if (c === 'X') {
+ result += middleDigits[digitIndex++];
+ } else {
+ result += c;
+ }
+ }
+
+ result = '' + numberSystem + result;
+ return '' + result + (0, _UPC.checksum)(result);
+}
+
+exports["default"] = UPCE;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js ***!
+ \******************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+// Standard start end and middle bits
+var SIDE_BIN = exports.SIDE_BIN = '101';
+var MIDDLE_BIN = exports.MIDDLE_BIN = '01010';
+
+var BINARIES = exports.BINARIES = {
+ 'L': [// The L (left) type of encoding
+ '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'],
+ 'G': [// The G type of encoding
+ '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'],
+ 'R': [// The R (right) type of encoding
+ '1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100'],
+ 'O': [// The O (odd) encoding for UPC-E
+ '0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'],
+ 'E': [// The E (even) encoding for UPC-E
+ '0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111']
+};
+
+// Define the EAN-2 structure
+var EAN2_STRUCTURE = exports.EAN2_STRUCTURE = ['LL', 'LG', 'GL', 'GG'];
+
+// Define the EAN-5 structure
+var EAN5_STRUCTURE = exports.EAN5_STRUCTURE = ['GGLLL', 'GLGLL', 'GLLGL', 'GLLLG', 'LGGLL', 'LLGGL', 'LLLGG', 'LGLGL', 'LGLLG', 'LLGLG'];
+
+// Define the EAN-13 structure
+var EAN13_STRUCTURE = exports.EAN13_STRUCTURE = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL'];
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/encoder.js ***!
+ \****************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js");
+
+// Encode data string
+var encode = function encode(data, structure, separator) {
+ var encoded = data.split('').map(function (val, idx) {
+ return _constants.BINARIES[structure[idx]];
+ }).map(function (val, idx) {
+ return val ? val[data[idx]] : '';
+ });
+
+ if (separator) {
+ var last = data.length - 1;
+ encoded = encoded.map(function (val, idx) {
+ return idx < last ? val + separator : val;
+ });
+ }
+
+ return encoded.join('');
+};
+
+exports["default"] = encode;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js ***!
+ \**************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.UPCE = exports.UPC = exports.EAN2 = exports.EAN5 = exports.EAN8 = exports.EAN13 = undefined;
+
+var _EAN = __webpack_require__(/*! ./EAN13.js */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN13.js");
+
+var _EAN2 = _interopRequireDefault(_EAN);
+
+var _EAN3 = __webpack_require__(/*! ./EAN8.js */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN8.js");
+
+var _EAN4 = _interopRequireDefault(_EAN3);
+
+var _EAN5 = __webpack_require__(/*! ./EAN5.js */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN5.js");
+
+var _EAN6 = _interopRequireDefault(_EAN5);
+
+var _EAN7 = __webpack_require__(/*! ./EAN2.js */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/EAN2.js");
+
+var _EAN8 = _interopRequireDefault(_EAN7);
+
+var _UPC = __webpack_require__(/*! ./UPC.js */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPC.js");
+
+var _UPC2 = _interopRequireDefault(_UPC);
+
+var _UPCE = __webpack_require__(/*! ./UPCE.js */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/UPCE.js");
+
+var _UPCE2 = _interopRequireDefault(_UPCE);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+exports.EAN13 = _EAN2.default;
+exports.EAN8 = _EAN4.default;
+exports.EAN5 = _EAN6.default;
+exports.EAN2 = _EAN8.default;
+exports.UPC = _UPC2.default;
+exports.UPCE = _UPCE2.default;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js":
+/*!*********************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js ***!
+ \*********************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.GenericBarcode = undefined;
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var GenericBarcode = function (_Barcode) {
+ _inherits(GenericBarcode, _Barcode);
+
+ function GenericBarcode(data, options) {
+ _classCallCheck(this, GenericBarcode);
+
+ return _possibleConstructorReturn(this, (GenericBarcode.__proto__ || Object.getPrototypeOf(GenericBarcode)).call(this, data, options)); // Sets this.data and this.text
+ }
+
+ // Return the corresponding binary numbers for the data provided
+
+
+ _createClass(GenericBarcode, [{
+ key: "encode",
+ value: function encode() {
+ return {
+ data: "10101010101010101010101010101010101010101",
+ text: this.text
+ };
+ }
+
+ // Resturn true/false if the string provided is valid for this encoder
+
+ }, {
+ key: "valid",
+ value: function valid() {
+ return true;
+ }
+ }]);
+
+ return GenericBarcode;
+}(_Barcode3.default);
+
+exports.GenericBarcode = GenericBarcode;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/ITF/ITF.js":
+/*!********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/ITF/ITF.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _constants = __webpack_require__(/*! ./constants */ "./node_modules/jsbarcode/bin/barcodes/ITF/constants.js");
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var ITF = function (_Barcode) {
+ _inherits(ITF, _Barcode);
+
+ function ITF() {
+ _classCallCheck(this, ITF);
+
+ return _possibleConstructorReturn(this, (ITF.__proto__ || Object.getPrototypeOf(ITF)).apply(this, arguments));
+ }
+
+ _createClass(ITF, [{
+ key: 'valid',
+ value: function valid() {
+ return this.data.search(/^([0-9]{2})+$/) !== -1;
+ }
+ }, {
+ key: 'encode',
+ value: function encode() {
+ var _this2 = this;
+
+ // Calculate all the digit pairs
+ var encoded = this.data.match(/.{2}/g).map(function (pair) {
+ return _this2.encodePair(pair);
+ }).join('');
+
+ return {
+ data: _constants.START_BIN + encoded + _constants.END_BIN,
+ text: this.text
+ };
+ }
+
+ // Calculate the data of a number pair
+
+ }, {
+ key: 'encodePair',
+ value: function encodePair(pair) {
+ var second = _constants.BINARIES[pair[1]];
+
+ return _constants.BINARIES[pair[0]].split('').map(function (first, idx) {
+ return (first === '1' ? '111' : '1') + (second[idx] === '1' ? '000' : '0');
+ }).join('');
+ }
+ }]);
+
+ return ITF;
+}(_Barcode3.default);
+
+exports["default"] = ITF;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/ITF/ITF14.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/ITF/ITF14.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _ITF2 = __webpack_require__(/*! ./ITF */ "./node_modules/jsbarcode/bin/barcodes/ITF/ITF.js");
+
+var _ITF3 = _interopRequireDefault(_ITF2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+// Calculate the checksum digit
+var checksum = function checksum(data) {
+ var res = data.substr(0, 13).split('').map(function (num) {
+ return parseInt(num, 10);
+ }).reduce(function (sum, n, idx) {
+ return sum + n * (3 - idx % 2 * 2);
+ }, 0);
+
+ return Math.ceil(res / 10) * 10 - res;
+};
+
+var ITF14 = function (_ITF) {
+ _inherits(ITF14, _ITF);
+
+ function ITF14(data, options) {
+ _classCallCheck(this, ITF14);
+
+ // Add checksum if it does not exist
+ if (data.search(/^[0-9]{13}$/) !== -1) {
+ data += checksum(data);
+ }
+ return _possibleConstructorReturn(this, (ITF14.__proto__ || Object.getPrototypeOf(ITF14)).call(this, data, options));
+ }
+
+ _createClass(ITF14, [{
+ key: 'valid',
+ value: function valid() {
+ return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === checksum(this.data);
+ }
+ }]);
+
+ return ITF14;
+}(_ITF3.default);
+
+exports["default"] = ITF14;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/ITF/constants.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/ITF/constants.js ***!
+ \**************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+var START_BIN = exports.START_BIN = '1010';
+var END_BIN = exports.END_BIN = '11101';
+
+var BINARIES = exports.BINARIES = ['00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010'];
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/ITF/index.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/ITF/index.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.ITF14 = exports.ITF = undefined;
+
+var _ITF = __webpack_require__(/*! ./ITF */ "./node_modules/jsbarcode/bin/barcodes/ITF/ITF.js");
+
+var _ITF2 = _interopRequireDefault(_ITF);
+
+var _ITF3 = __webpack_require__(/*! ./ITF14 */ "./node_modules/jsbarcode/bin/barcodes/ITF/ITF14.js");
+
+var _ITF4 = _interopRequireDefault(_ITF3);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+exports.ITF = _ITF2.default;
+exports.ITF14 = _ITF4.default;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI.js":
+/*!********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/MSI/MSI.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation
+// https://en.wikipedia.org/wiki/MSI_Barcode#Character_set_and_binary_lookup
+
+var MSI = function (_Barcode) {
+ _inherits(MSI, _Barcode);
+
+ function MSI(data, options) {
+ _classCallCheck(this, MSI);
+
+ return _possibleConstructorReturn(this, (MSI.__proto__ || Object.getPrototypeOf(MSI)).call(this, data, options));
+ }
+
+ _createClass(MSI, [{
+ key: "encode",
+ value: function encode() {
+ // Start bits
+ var ret = "110";
+
+ for (var i = 0; i < this.data.length; i++) {
+ // Convert the character to binary (always 4 binary digits)
+ var digit = parseInt(this.data[i]);
+ var bin = digit.toString(2);
+ bin = addZeroes(bin, 4 - bin.length);
+
+ // Add 100 for every zero and 110 for every 1
+ for (var b = 0; b < bin.length; b++) {
+ ret += bin[b] == "0" ? "100" : "110";
+ }
+ }
+
+ // End bits
+ ret += "1001";
+
+ return {
+ data: ret,
+ text: this.text
+ };
+ }
+ }, {
+ key: "valid",
+ value: function valid() {
+ return this.data.search(/^[0-9]+$/) !== -1;
+ }
+ }]);
+
+ return MSI;
+}(_Barcode3.default);
+
+function addZeroes(number, n) {
+ for (var i = 0; i < n; i++) {
+ number = "0" + number;
+ }
+ return number;
+}
+
+exports["default"] = MSI;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI10.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/MSI/MSI10.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _MSI2 = __webpack_require__(/*! ./MSI.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI.js");
+
+var _MSI3 = _interopRequireDefault(_MSI2);
+
+var _checksums = __webpack_require__(/*! ./checksums.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/checksums.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var MSI10 = function (_MSI) {
+ _inherits(MSI10, _MSI);
+
+ function MSI10(data, options) {
+ _classCallCheck(this, MSI10);
+
+ return _possibleConstructorReturn(this, (MSI10.__proto__ || Object.getPrototypeOf(MSI10)).call(this, data + (0, _checksums.mod10)(data), options));
+ }
+
+ return MSI10;
+}(_MSI3.default);
+
+exports["default"] = MSI10;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI1010.js":
+/*!************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/MSI/MSI1010.js ***!
+ \************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _MSI2 = __webpack_require__(/*! ./MSI.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI.js");
+
+var _MSI3 = _interopRequireDefault(_MSI2);
+
+var _checksums = __webpack_require__(/*! ./checksums.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/checksums.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var MSI1010 = function (_MSI) {
+ _inherits(MSI1010, _MSI);
+
+ function MSI1010(data, options) {
+ _classCallCheck(this, MSI1010);
+
+ data += (0, _checksums.mod10)(data);
+ data += (0, _checksums.mod10)(data);
+ return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this, data, options));
+ }
+
+ return MSI1010;
+}(_MSI3.default);
+
+exports["default"] = MSI1010;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI11.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/MSI/MSI11.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _MSI2 = __webpack_require__(/*! ./MSI.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI.js");
+
+var _MSI3 = _interopRequireDefault(_MSI2);
+
+var _checksums = __webpack_require__(/*! ./checksums.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/checksums.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var MSI11 = function (_MSI) {
+ _inherits(MSI11, _MSI);
+
+ function MSI11(data, options) {
+ _classCallCheck(this, MSI11);
+
+ return _possibleConstructorReturn(this, (MSI11.__proto__ || Object.getPrototypeOf(MSI11)).call(this, data + (0, _checksums.mod11)(data), options));
+ }
+
+ return MSI11;
+}(_MSI3.default);
+
+exports["default"] = MSI11;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI1110.js":
+/*!************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/MSI/MSI1110.js ***!
+ \************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _MSI2 = __webpack_require__(/*! ./MSI.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI.js");
+
+var _MSI3 = _interopRequireDefault(_MSI2);
+
+var _checksums = __webpack_require__(/*! ./checksums.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/checksums.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var MSI1110 = function (_MSI) {
+ _inherits(MSI1110, _MSI);
+
+ function MSI1110(data, options) {
+ _classCallCheck(this, MSI1110);
+
+ data += (0, _checksums.mod11)(data);
+ data += (0, _checksums.mod10)(data);
+ return _possibleConstructorReturn(this, (MSI1110.__proto__ || Object.getPrototypeOf(MSI1110)).call(this, data, options));
+ }
+
+ return MSI1110;
+}(_MSI3.default);
+
+exports["default"] = MSI1110;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/MSI/checksums.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/MSI/checksums.js ***!
+ \**************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.mod10 = mod10;
+exports.mod11 = mod11;
+function mod10(number) {
+ var sum = 0;
+ for (var i = 0; i < number.length; i++) {
+ var n = parseInt(number[i]);
+ if ((i + number.length) % 2 === 0) {
+ sum += n;
+ } else {
+ sum += n * 2 % 10 + Math.floor(n * 2 / 10);
+ }
+ }
+ return (10 - sum % 10) % 10;
+}
+
+function mod11(number) {
+ var sum = 0;
+ var weights = [2, 3, 4, 5, 6, 7];
+ for (var i = 0; i < number.length; i++) {
+ var n = parseInt(number[number.length - 1 - i]);
+ sum += weights[i % weights.length] * n;
+ }
+ return (11 - sum % 11) % 11;
+}
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/MSI/index.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/MSI/index.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.MSI1110 = exports.MSI1010 = exports.MSI11 = exports.MSI10 = exports.MSI = undefined;
+
+var _MSI = __webpack_require__(/*! ./MSI.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI.js");
+
+var _MSI2 = _interopRequireDefault(_MSI);
+
+var _MSI3 = __webpack_require__(/*! ./MSI10.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI10.js");
+
+var _MSI4 = _interopRequireDefault(_MSI3);
+
+var _MSI5 = __webpack_require__(/*! ./MSI11.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI11.js");
+
+var _MSI6 = _interopRequireDefault(_MSI5);
+
+var _MSI7 = __webpack_require__(/*! ./MSI1010.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI1010.js");
+
+var _MSI8 = _interopRequireDefault(_MSI7);
+
+var _MSI9 = __webpack_require__(/*! ./MSI1110.js */ "./node_modules/jsbarcode/bin/barcodes/MSI/MSI1110.js");
+
+var _MSI10 = _interopRequireDefault(_MSI9);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+exports.MSI = _MSI2.default;
+exports.MSI10 = _MSI4.default;
+exports.MSI11 = _MSI6.default;
+exports.MSI1010 = _MSI8.default;
+exports.MSI1110 = _MSI10.default;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/codabar/index.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/codabar/index.js ***!
+ \**************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.codabar = undefined;
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding specification:
+// http://www.barcodeisland.com/codabar.phtml
+
+var codabar = function (_Barcode) {
+ _inherits(codabar, _Barcode);
+
+ function codabar(data, options) {
+ _classCallCheck(this, codabar);
+
+ if (data.search(/^[0-9\-\$\:\.\+\/]+$/) === 0) {
+ data = "A" + data + "A";
+ }
+
+ var _this = _possibleConstructorReturn(this, (codabar.__proto__ || Object.getPrototypeOf(codabar)).call(this, data.toUpperCase(), options));
+
+ _this.text = _this.options.text || _this.text.replace(/[A-D]/g, '');
+ return _this;
+ }
+
+ _createClass(codabar, [{
+ key: "valid",
+ value: function valid() {
+ return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1;
+ }
+ }, {
+ key: "encode",
+ value: function encode() {
+ var result = [];
+ var encodings = this.getEncodings();
+ for (var i = 0; i < this.data.length; i++) {
+ result.push(encodings[this.data.charAt(i)]);
+ // for all characters except the last, append a narrow-space ("0")
+ if (i !== this.data.length - 1) {
+ result.push("0");
+ }
+ }
+ return {
+ text: this.text,
+ data: result.join('')
+ };
+ }
+ }, {
+ key: "getEncodings",
+ value: function getEncodings() {
+ return {
+ "0": "101010011",
+ "1": "101011001",
+ "2": "101001011",
+ "3": "110010101",
+ "4": "101101001",
+ "5": "110101001",
+ "6": "100101011",
+ "7": "100101101",
+ "8": "100110101",
+ "9": "110100101",
+ "-": "101001101",
+ "$": "101100101",
+ ":": "1101011011",
+ "/": "1101101011",
+ ".": "1101101101",
+ "+": "1011011011",
+ "A": "1011001001",
+ "B": "1001001011",
+ "C": "1010010011",
+ "D": "1010011001"
+ };
+ }
+ }]);
+
+ return codabar;
+}(_Barcode3.default);
+
+exports.codabar = codabar;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/index.js":
+/*!******************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/index.js ***!
+ \******************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _CODE = __webpack_require__(/*! ./CODE39/ */ "./node_modules/jsbarcode/bin/barcodes/CODE39/index.js");
+
+var _CODE2 = __webpack_require__(/*! ./CODE128/ */ "./node_modules/jsbarcode/bin/barcodes/CODE128/index.js");
+
+var _EAN_UPC = __webpack_require__(/*! ./EAN_UPC/ */ "./node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js");
+
+var _ITF = __webpack_require__(/*! ./ITF/ */ "./node_modules/jsbarcode/bin/barcodes/ITF/index.js");
+
+var _MSI = __webpack_require__(/*! ./MSI/ */ "./node_modules/jsbarcode/bin/barcodes/MSI/index.js");
+
+var _pharmacode = __webpack_require__(/*! ./pharmacode/ */ "./node_modules/jsbarcode/bin/barcodes/pharmacode/index.js");
+
+var _codabar = __webpack_require__(/*! ./codabar */ "./node_modules/jsbarcode/bin/barcodes/codabar/index.js");
+
+var _CODE3 = __webpack_require__(/*! ./CODE93/ */ "./node_modules/jsbarcode/bin/barcodes/CODE93/index.js");
+
+var _GenericBarcode = __webpack_require__(/*! ./GenericBarcode/ */ "./node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js");
+
+exports["default"] = {
+ CODE39: _CODE.CODE39,
+ CODE128: _CODE2.CODE128, CODE128A: _CODE2.CODE128A, CODE128B: _CODE2.CODE128B, CODE128C: _CODE2.CODE128C,
+ EAN13: _EAN_UPC.EAN13, EAN8: _EAN_UPC.EAN8, EAN5: _EAN_UPC.EAN5, EAN2: _EAN_UPC.EAN2, UPC: _EAN_UPC.UPC, UPCE: _EAN_UPC.UPCE,
+ ITF14: _ITF.ITF14,
+ ITF: _ITF.ITF,
+ MSI: _MSI.MSI, MSI10: _MSI.MSI10, MSI11: _MSI.MSI11, MSI1010: _MSI.MSI1010, MSI1110: _MSI.MSI1110,
+ pharmacode: _pharmacode.pharmacode,
+ codabar: _codabar.codabar,
+ CODE93: _CODE3.CODE93, CODE93FullASCII: _CODE3.CODE93FullASCII,
+ GenericBarcode: _GenericBarcode.GenericBarcode
+};
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/barcodes/pharmacode/index.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/barcodes/pharmacode/index.js ***!
+ \*****************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.pharmacode = undefined;
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _Barcode2 = __webpack_require__(/*! ../Barcode.js */ "./node_modules/jsbarcode/bin/barcodes/Barcode.js");
+
+var _Barcode3 = _interopRequireDefault(_Barcode2);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // Encoding documentation
+// http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf
+
+var pharmacode = function (_Barcode) {
+ _inherits(pharmacode, _Barcode);
+
+ function pharmacode(data, options) {
+ _classCallCheck(this, pharmacode);
+
+ var _this = _possibleConstructorReturn(this, (pharmacode.__proto__ || Object.getPrototypeOf(pharmacode)).call(this, data, options));
+
+ _this.number = parseInt(data, 10);
+ return _this;
+ }
+
+ _createClass(pharmacode, [{
+ key: "encode",
+ value: function encode() {
+ var z = this.number;
+ var result = "";
+
+ // http://i.imgur.com/RMm4UDJ.png
+ // (source: http://www.gomaro.ch/ftproot/Laetus_PHARMA-CODE.pdf, page: 34)
+ while (!isNaN(z) && z != 0) {
+ if (z % 2 === 0) {
+ // Even
+ result = "11100" + result;
+ z = (z - 2) / 2;
+ } else {
+ // Odd
+ result = "100" + result;
+ z = (z - 1) / 2;
+ }
+ }
+
+ // Remove the two last zeroes
+ result = result.slice(0, -2);
+
+ return {
+ data: result,
+ text: this.text
+ };
+ }
+ }, {
+ key: "valid",
+ value: function valid() {
+ return this.number >= 3 && this.number <= 131070;
+ }
+ }]);
+
+ return pharmacode;
+}(_Barcode3.default);
+
+exports.pharmacode = pharmacode;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/exceptions/ErrorHandler.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/exceptions/ErrorHandler.js ***!
+ \***************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+/*eslint no-console: 0 */
+
+var ErrorHandler = function () {
+ function ErrorHandler(api) {
+ _classCallCheck(this, ErrorHandler);
+
+ this.api = api;
+ }
+
+ _createClass(ErrorHandler, [{
+ key: "handleCatch",
+ value: function handleCatch(e) {
+ // If babel supported extending of Error in a correct way instanceof would be used here
+ if (e.name === "InvalidInputException") {
+ if (this.api._options.valid !== this.api._defaults.valid) {
+ this.api._options.valid(false);
+ } else {
+ throw e.message;
+ }
+ } else {
+ throw e;
+ }
+
+ this.api.render = function () {};
+ }
+ }, {
+ key: "wrapBarcodeCall",
+ value: function wrapBarcodeCall(func) {
+ try {
+ var result = func.apply(undefined, arguments);
+ this.api._options.valid(true);
+ return result;
+ } catch (e) {
+ this.handleCatch(e);
+
+ return this.api;
+ }
+ }
+ }]);
+
+ return ErrorHandler;
+}();
+
+exports["default"] = ErrorHandler;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/exceptions/exceptions.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/exceptions/exceptions.js ***!
+ \*************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var InvalidInputException = function (_Error) {
+ _inherits(InvalidInputException, _Error);
+
+ function InvalidInputException(symbology, input) {
+ _classCallCheck(this, InvalidInputException);
+
+ var _this = _possibleConstructorReturn(this, (InvalidInputException.__proto__ || Object.getPrototypeOf(InvalidInputException)).call(this));
+
+ _this.name = "InvalidInputException";
+
+ _this.symbology = symbology;
+ _this.input = input;
+
+ _this.message = '"' + _this.input + '" is not a valid input for ' + _this.symbology;
+ return _this;
+ }
+
+ return InvalidInputException;
+}(Error);
+
+var InvalidElementException = function (_Error2) {
+ _inherits(InvalidElementException, _Error2);
+
+ function InvalidElementException() {
+ _classCallCheck(this, InvalidElementException);
+
+ var _this2 = _possibleConstructorReturn(this, (InvalidElementException.__proto__ || Object.getPrototypeOf(InvalidElementException)).call(this));
+
+ _this2.name = "InvalidElementException";
+ _this2.message = "Not supported type to render on";
+ return _this2;
+ }
+
+ return InvalidElementException;
+}(Error);
+
+var NoElementException = function (_Error3) {
+ _inherits(NoElementException, _Error3);
+
+ function NoElementException() {
+ _classCallCheck(this, NoElementException);
+
+ var _this3 = _possibleConstructorReturn(this, (NoElementException.__proto__ || Object.getPrototypeOf(NoElementException)).call(this));
+
+ _this3.name = "NoElementException";
+ _this3.message = "No element to render on.";
+ return _this3;
+ }
+
+ return NoElementException;
+}(Error);
+
+exports.InvalidInputException = InvalidInputException;
+exports.InvalidElementException = InvalidElementException;
+exports.NoElementException = NoElementException;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/help/fixOptions.js":
+/*!*******************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/help/fixOptions.js ***!
+ \*******************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = fixOptions;
+
+
+function fixOptions(options) {
+ // Fix the margins
+ options.marginTop = options.marginTop || options.margin;
+ options.marginBottom = options.marginBottom || options.margin;
+ options.marginRight = options.marginRight || options.margin;
+ options.marginLeft = options.marginLeft || options.margin;
+
+ return options;
+}
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/help/getOptionsFromElement.js":
+/*!******************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/help/getOptionsFromElement.js ***!
+ \******************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _optionsFromStrings = __webpack_require__(/*! ./optionsFromStrings.js */ "./node_modules/jsbarcode/bin/help/optionsFromStrings.js");
+
+var _optionsFromStrings2 = _interopRequireDefault(_optionsFromStrings);
+
+var _defaults = __webpack_require__(/*! ../options/defaults.js */ "./node_modules/jsbarcode/bin/options/defaults.js");
+
+var _defaults2 = _interopRequireDefault(_defaults);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function getOptionsFromElement(element) {
+ var options = {};
+ for (var property in _defaults2.default) {
+ if (_defaults2.default.hasOwnProperty(property)) {
+ // jsbarcode-*
+ if (element.hasAttribute("jsbarcode-" + property.toLowerCase())) {
+ options[property] = element.getAttribute("jsbarcode-" + property.toLowerCase());
+ }
+
+ // data-*
+ if (element.hasAttribute("data-" + property.toLowerCase())) {
+ options[property] = element.getAttribute("data-" + property.toLowerCase());
+ }
+ }
+ }
+
+ options["value"] = element.getAttribute("jsbarcode-value") || element.getAttribute("data-value");
+
+ // Since all atributes are string they need to be converted to integers
+ options = (0, _optionsFromStrings2.default)(options);
+
+ return options;
+}
+
+exports["default"] = getOptionsFromElement;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/help/getRenderProperties.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/help/getRenderProperties.js ***!
+ \****************************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* global HTMLImageElement */
+/* global HTMLCanvasElement */
+/* global SVGElement */
+
+var _getOptionsFromElement = __webpack_require__(/*! ./getOptionsFromElement.js */ "./node_modules/jsbarcode/bin/help/getOptionsFromElement.js");
+
+var _getOptionsFromElement2 = _interopRequireDefault(_getOptionsFromElement);
+
+var _renderers = __webpack_require__(/*! ../renderers */ "./node_modules/jsbarcode/bin/renderers/index.js");
+
+var _renderers2 = _interopRequireDefault(_renderers);
+
+var _exceptions = __webpack_require__(/*! ../exceptions/exceptions.js */ "./node_modules/jsbarcode/bin/exceptions/exceptions.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+// Takes an element and returns an object with information about how
+// it should be rendered
+// This could also return an array with these objects
+// {
+// element: The element that the renderer should draw on
+// renderer: The name of the renderer
+// afterRender (optional): If something has to done after the renderer
+// completed, calls afterRender (function)
+// options (optional): Options that can be defined in the element
+// }
+
+function getRenderProperties(element) {
+ // If the element is a string, query select call again
+ if (typeof element === "string") {
+ return querySelectedRenderProperties(element);
+ }
+ // If element is array. Recursivly call with every object in the array
+ else if (Array.isArray(element)) {
+ var returnArray = [];
+ for (var i = 0; i < element.length; i++) {
+ returnArray.push(getRenderProperties(element[i]));
+ }
+ return returnArray;
+ }
+ // If element, render on canvas and set the uri as src
+ else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLImageElement) {
+ return newCanvasRenderProperties(element);
+ }
+ // If SVG
+ else if (element && element.nodeName && element.nodeName.toLowerCase() === 'svg' || typeof SVGElement !== 'undefined' && element instanceof SVGElement) {
+ return {
+ element: element,
+ options: (0, _getOptionsFromElement2.default)(element),
+ renderer: _renderers2.default.SVGRenderer
+ };
+ }
+ // If canvas (in browser)
+ else if (typeof HTMLCanvasElement !== 'undefined' && element instanceof HTMLCanvasElement) {
+ return {
+ element: element,
+ options: (0, _getOptionsFromElement2.default)(element),
+ renderer: _renderers2.default.CanvasRenderer
+ };
+ }
+ // If canvas (in node)
+ else if (element && element.getContext) {
+ return {
+ element: element,
+ renderer: _renderers2.default.CanvasRenderer
+ };
+ } else if (element && (typeof element === "undefined" ? "undefined" : _typeof(element)) === 'object' && !element.nodeName) {
+ return {
+ element: element,
+ renderer: _renderers2.default.ObjectRenderer
+ };
+ } else {
+ throw new _exceptions.InvalidElementException();
+ }
+}
+
+function querySelectedRenderProperties(string) {
+ var selector = document.querySelectorAll(string);
+ if (selector.length === 0) {
+ return undefined;
+ } else {
+ var returnArray = [];
+ for (var i = 0; i < selector.length; i++) {
+ returnArray.push(getRenderProperties(selector[i]));
+ }
+ return returnArray;
+ }
+}
+
+function newCanvasRenderProperties(imgElement) {
+ var canvas = document.createElement('canvas');
+ return {
+ element: canvas,
+ options: (0, _getOptionsFromElement2.default)(imgElement),
+ renderer: _renderers2.default.CanvasRenderer,
+ afterRender: function afterRender() {
+ imgElement.setAttribute("src", canvas.toDataURL());
+ }
+ };
+}
+
+exports["default"] = getRenderProperties;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/help/linearizeEncodings.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/help/linearizeEncodings.js ***!
+ \***************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = linearizeEncodings;
+
+// Encodings can be nestled like [[1-1, 1-2], 2, [3-1, 3-2]
+// Convert to [1-1, 1-2, 2, 3-1, 3-2]
+
+function linearizeEncodings(encodings) {
+ var linearEncodings = [];
+ function nextLevel(encoded) {
+ if (Array.isArray(encoded)) {
+ for (var i = 0; i < encoded.length; i++) {
+ nextLevel(encoded[i]);
+ }
+ } else {
+ encoded.text = encoded.text || "";
+ encoded.data = encoded.data || "";
+ linearEncodings.push(encoded);
+ }
+ }
+ nextLevel(encodings);
+
+ return linearEncodings;
+}
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/help/merge.js":
+/*!**************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/help/merge.js ***!
+ \**************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+exports["default"] = function (old, replaceObj) {
+ return _extends({}, old, replaceObj);
+};
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/help/optionsFromStrings.js":
+/*!***************************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/help/optionsFromStrings.js ***!
+ \***************************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports["default"] = optionsFromStrings;
+
+// Convert string to integers/booleans where it should be
+
+function optionsFromStrings(options) {
+ var intOptions = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"];
+
+ for (var intOption in intOptions) {
+ if (intOptions.hasOwnProperty(intOption)) {
+ intOption = intOptions[intOption];
+ if (typeof options[intOption] === "string") {
+ options[intOption] = parseInt(options[intOption], 10);
+ }
+ }
+ }
+
+ if (typeof options["displayValue"] === "string") {
+ options["displayValue"] = options["displayValue"] != "false";
+ }
+
+ return options;
+}
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/options/defaults.js":
+/*!********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/options/defaults.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+var defaults = {
+ width: 2,
+ height: 100,
+ format: "auto",
+ displayValue: true,
+ fontOptions: "",
+ font: "monospace",
+ text: undefined,
+ textAlign: "center",
+ textPosition: "bottom",
+ textMargin: 2,
+ fontSize: 20,
+ background: "#ffffff",
+ lineColor: "#000000",
+ margin: 10,
+ marginTop: undefined,
+ marginBottom: undefined,
+ marginLeft: undefined,
+ marginRight: undefined,
+ valid: function valid() {}
+};
+
+exports["default"] = defaults;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/renderers/canvas.js":
+/*!********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/renderers/canvas.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _merge = __webpack_require__(/*! ../help/merge.js */ "./node_modules/jsbarcode/bin/help/merge.js");
+
+var _merge2 = _interopRequireDefault(_merge);
+
+var _shared = __webpack_require__(/*! ./shared.js */ "./node_modules/jsbarcode/bin/renderers/shared.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var CanvasRenderer = function () {
+ function CanvasRenderer(canvas, encodings, options) {
+ _classCallCheck(this, CanvasRenderer);
+
+ this.canvas = canvas;
+ this.encodings = encodings;
+ this.options = options;
+ }
+
+ _createClass(CanvasRenderer, [{
+ key: "render",
+ value: function render() {
+ // Abort if the browser does not support HTML5 canvas
+ if (!this.canvas.getContext) {
+ throw new Error('The browser does not support canvas.');
+ }
+
+ this.prepareCanvas();
+ for (var i = 0; i < this.encodings.length; i++) {
+ var encodingOptions = (0, _merge2.default)(this.options, this.encodings[i].options);
+
+ this.drawCanvasBarcode(encodingOptions, this.encodings[i]);
+ this.drawCanvasText(encodingOptions, this.encodings[i]);
+
+ this.moveCanvasDrawing(this.encodings[i]);
+ }
+
+ this.restoreCanvas();
+ }
+ }, {
+ key: "prepareCanvas",
+ value: function prepareCanvas() {
+ // Get the canvas context
+ var ctx = this.canvas.getContext("2d");
+
+ ctx.save();
+
+ (0, _shared.calculateEncodingAttributes)(this.encodings, this.options, ctx);
+ var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings);
+ var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings);
+
+ this.canvas.width = totalWidth + this.options.marginLeft + this.options.marginRight;
+
+ this.canvas.height = maxHeight;
+
+ // Paint the canvas
+ ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
+ if (this.options.background) {
+ ctx.fillStyle = this.options.background;
+ ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);
+ }
+
+ ctx.translate(this.options.marginLeft, 0);
+ }
+ }, {
+ key: "drawCanvasBarcode",
+ value: function drawCanvasBarcode(options, encoding) {
+ // Get the canvas context
+ var ctx = this.canvas.getContext("2d");
+
+ var binary = encoding.data;
+
+ // Creates the barcode out of the encoded binary
+ var yFrom;
+ if (options.textPosition == "top") {
+ yFrom = options.marginTop + options.fontSize + options.textMargin;
+ } else {
+ yFrom = options.marginTop;
+ }
+
+ ctx.fillStyle = options.lineColor;
+
+ for (var b = 0; b < binary.length; b++) {
+ var x = b * options.width + encoding.barcodePadding;
+
+ if (binary[b] === "1") {
+ ctx.fillRect(x, yFrom, options.width, options.height);
+ } else if (binary[b]) {
+ ctx.fillRect(x, yFrom, options.width, options.height * binary[b]);
+ }
+ }
+ }
+ }, {
+ key: "drawCanvasText",
+ value: function drawCanvasText(options, encoding) {
+ // Get the canvas context
+ var ctx = this.canvas.getContext("2d");
+
+ var font = options.fontOptions + " " + options.fontSize + "px " + options.font;
+
+ // Draw the text if displayValue is set
+ if (options.displayValue) {
+ var x, y;
+
+ if (options.textPosition == "top") {
+ y = options.marginTop + options.fontSize - options.textMargin;
+ } else {
+ y = options.height + options.textMargin + options.marginTop + options.fontSize;
+ }
+
+ ctx.font = font;
+
+ // Draw the text in the correct X depending on the textAlign option
+ if (options.textAlign == "left" || encoding.barcodePadding > 0) {
+ x = 0;
+ ctx.textAlign = 'left';
+ } else if (options.textAlign == "right") {
+ x = encoding.width - 1;
+ ctx.textAlign = 'right';
+ }
+ // In all other cases, center the text
+ else {
+ x = encoding.width / 2;
+ ctx.textAlign = 'center';
+ }
+
+ ctx.fillText(encoding.text, x, y);
+ }
+ }
+ }, {
+ key: "moveCanvasDrawing",
+ value: function moveCanvasDrawing(encoding) {
+ var ctx = this.canvas.getContext("2d");
+
+ ctx.translate(encoding.width, 0);
+ }
+ }, {
+ key: "restoreCanvas",
+ value: function restoreCanvas() {
+ // Get the canvas context
+ var ctx = this.canvas.getContext("2d");
+
+ ctx.restore();
+ }
+ }]);
+
+ return CanvasRenderer;
+}();
+
+exports["default"] = CanvasRenderer;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/renderers/index.js":
+/*!*******************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/renderers/index.js ***!
+ \*******************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _canvas = __webpack_require__(/*! ./canvas.js */ "./node_modules/jsbarcode/bin/renderers/canvas.js");
+
+var _canvas2 = _interopRequireDefault(_canvas);
+
+var _svg = __webpack_require__(/*! ./svg.js */ "./node_modules/jsbarcode/bin/renderers/svg.js");
+
+var _svg2 = _interopRequireDefault(_svg);
+
+var _object = __webpack_require__(/*! ./object.js */ "./node_modules/jsbarcode/bin/renderers/object.js");
+
+var _object2 = _interopRequireDefault(_object);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+exports["default"] = { CanvasRenderer: _canvas2.default, SVGRenderer: _svg2.default, ObjectRenderer: _object2.default };
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/renderers/object.js":
+/*!********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/renderers/object.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack_module, exports) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var ObjectRenderer = function () {
+ function ObjectRenderer(object, encodings, options) {
+ _classCallCheck(this, ObjectRenderer);
+
+ this.object = object;
+ this.encodings = encodings;
+ this.options = options;
+ }
+
+ _createClass(ObjectRenderer, [{
+ key: "render",
+ value: function render() {
+ this.object.encodings = this.encodings;
+ }
+ }]);
+
+ return ObjectRenderer;
+}();
+
+exports["default"] = ObjectRenderer;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/renderers/shared.js":
+/*!********************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/renderers/shared.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+exports.getTotalWidthOfEncodings = exports.calculateEncodingAttributes = exports.getBarcodePadding = exports.getEncodingHeight = exports.getMaximumHeightOfEncodings = undefined;
+
+var _merge = __webpack_require__(/*! ../help/merge.js */ "./node_modules/jsbarcode/bin/help/merge.js");
+
+var _merge2 = _interopRequireDefault(_merge);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function getEncodingHeight(encoding, options) {
+ return options.height + (options.displayValue && encoding.text.length > 0 ? options.fontSize + options.textMargin : 0) + options.marginTop + options.marginBottom;
+}
+
+function getBarcodePadding(textWidth, barcodeWidth, options) {
+ if (options.displayValue && barcodeWidth < textWidth) {
+ if (options.textAlign == "center") {
+ return Math.floor((textWidth - barcodeWidth) / 2);
+ } else if (options.textAlign == "left") {
+ return 0;
+ } else if (options.textAlign == "right") {
+ return Math.floor(textWidth - barcodeWidth);
+ }
+ }
+ return 0;
+}
+
+function calculateEncodingAttributes(encodings, barcodeOptions, context) {
+ for (var i = 0; i < encodings.length; i++) {
+ var encoding = encodings[i];
+ var options = (0, _merge2.default)(barcodeOptions, encoding.options);
+
+ // Calculate the width of the encoding
+ var textWidth;
+ if (options.displayValue) {
+ textWidth = messureText(encoding.text, options, context);
+ } else {
+ textWidth = 0;
+ }
+
+ var barcodeWidth = encoding.data.length * options.width;
+ encoding.width = Math.ceil(Math.max(textWidth, barcodeWidth));
+
+ encoding.height = getEncodingHeight(encoding, options);
+
+ encoding.barcodePadding = getBarcodePadding(textWidth, barcodeWidth, options);
+ }
+}
+
+function getTotalWidthOfEncodings(encodings) {
+ var totalWidth = 0;
+ for (var i = 0; i < encodings.length; i++) {
+ totalWidth += encodings[i].width;
+ }
+ return totalWidth;
+}
+
+function getMaximumHeightOfEncodings(encodings) {
+ var maxHeight = 0;
+ for (var i = 0; i < encodings.length; i++) {
+ if (encodings[i].height > maxHeight) {
+ maxHeight = encodings[i].height;
+ }
+ }
+ return maxHeight;
+}
+
+function messureText(string, options, context) {
+ var ctx;
+
+ if (context) {
+ ctx = context;
+ } else if (typeof document !== "undefined") {
+ ctx = document.createElement("canvas").getContext("2d");
+ } else {
+ // If the text cannot be messured we will return 0.
+ // This will make some barcode with big text render incorrectly
+ return 0;
+ }
+ ctx.font = options.fontOptions + " " + options.fontSize + "px " + options.font;
+
+ // Calculate the width of the encoding
+ var measureTextResult = ctx.measureText(string);
+ if (!measureTextResult) {
+ // Some implementations don't implement measureText and return undefined.
+ // If the text cannot be measured we will return 0.
+ // This will make some barcode with big text render incorrectly
+ return 0;
+ }
+ var size = measureTextResult.width;
+ return size;
+}
+
+exports.getMaximumHeightOfEncodings = getMaximumHeightOfEncodings;
+exports.getEncodingHeight = getEncodingHeight;
+exports.getBarcodePadding = getBarcodePadding;
+exports.calculateEncodingAttributes = calculateEncodingAttributes;
+exports.getTotalWidthOfEncodings = getTotalWidthOfEncodings;
+
+/***/ }),
+
+/***/ "./node_modules/jsbarcode/bin/renderers/svg.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/jsbarcode/bin/renderers/svg.js ***!
+ \*****************************************************/
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", ({
+ value: true
+}));
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _merge = __webpack_require__(/*! ../help/merge.js */ "./node_modules/jsbarcode/bin/help/merge.js");
+
+var _merge2 = _interopRequireDefault(_merge);
+
+var _shared = __webpack_require__(/*! ./shared.js */ "./node_modules/jsbarcode/bin/renderers/shared.js");
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var svgns = "http://www.w3.org/2000/svg";
+
+var SVGRenderer = function () {
+ function SVGRenderer(svg, encodings, options) {
+ _classCallCheck(this, SVGRenderer);
+
+ this.svg = svg;
+ this.encodings = encodings;
+ this.options = options;
+ this.document = options.xmlDocument || document;
+ }
+
+ _createClass(SVGRenderer, [{
+ key: "render",
+ value: function render() {
+ var currentX = this.options.marginLeft;
+
+ this.prepareSVG();
+ for (var i = 0; i < this.encodings.length; i++) {
+ var encoding = this.encodings[i];
+ var encodingOptions = (0, _merge2.default)(this.options, encoding.options);
+
+ var group = this.createGroup(currentX, encodingOptions.marginTop, this.svg);
+
+ this.setGroupOptions(group, encodingOptions);
+
+ this.drawSvgBarcode(group, encodingOptions, encoding);
+ this.drawSVGText(group, encodingOptions, encoding);
+
+ currentX += encoding.width;
+ }
+ }
+ }, {
+ key: "prepareSVG",
+ value: function prepareSVG() {
+ // Clear the SVG
+ while (this.svg.firstChild) {
+ this.svg.removeChild(this.svg.firstChild);
+ }
+
+ (0, _shared.calculateEncodingAttributes)(this.encodings, this.options);
+ var totalWidth = (0, _shared.getTotalWidthOfEncodings)(this.encodings);
+ var maxHeight = (0, _shared.getMaximumHeightOfEncodings)(this.encodings);
+
+ var width = totalWidth + this.options.marginLeft + this.options.marginRight;
+ this.setSvgAttributes(width, maxHeight);
+
+ if (this.options.background) {
+ this.drawRect(0, 0, width, maxHeight, this.svg).setAttribute("fill", this.options.background);
+ }
+ }
+ }, {
+ key: "drawSvgBarcode",
+ value: function drawSvgBarcode(parent, options, encoding) {
+ var binary = encoding.data;
+
+ // Creates the barcode out of the encoded binary
+ var yFrom;
+ if (options.textPosition == "top") {
+ yFrom = options.fontSize + options.textMargin;
+ } else {
+ yFrom = 0;
+ }
+
+ var barWidth = 0;
+ var x = 0;
+ for (var b = 0; b < binary.length; b++) {
+ x = b * options.width + encoding.barcodePadding;
+
+ if (binary[b] === "1") {
+ barWidth++;
+ } else if (barWidth > 0) {
+ this.drawRect(x - options.width * barWidth, yFrom, options.width * barWidth, options.height, parent);
+ barWidth = 0;
+ }
+ }
+
+ // Last draw is needed since the barcode ends with 1
+ if (barWidth > 0) {
+ this.drawRect(x - options.width * (barWidth - 1), yFrom, options.width * barWidth, options.height, parent);
+ }
+ }
+ }, {
+ key: "drawSVGText",
+ value: function drawSVGText(parent, options, encoding) {
+ var textElem = this.document.createElementNS(svgns, 'text');
+
+ // Draw the text if displayValue is set
+ if (options.displayValue) {
+ var x, y;
+
+ textElem.setAttribute("font-family", options.font);
+ textElem.setAttribute("font-size", options.fontSize);
+ if (options.fontOptions.includes("bold")) {
+ textElem.setAttribute("font-weight", "bold");
+ }
+ if (options.fontOptions.includes("italic")) {
+ textElem.setAttribute("font-style", "italic");
+ }
+
+ if (options.textPosition == "top") {
+ y = options.fontSize - options.textMargin;
+ } else {
+ y = options.height + options.textMargin + options.fontSize;
+ }
+
+ // Draw the text in the correct X depending on the textAlign option
+ if (options.textAlign == "left" || encoding.barcodePadding > 0) {
+ x = 0;
+ textElem.setAttribute("text-anchor", "start");
+ } else if (options.textAlign == "right") {
+ x = encoding.width - 1;
+ textElem.setAttribute("text-anchor", "end");
+ }
+ // In all other cases, center the text
+ else {
+ x = encoding.width / 2;
+ textElem.setAttribute("text-anchor", "middle");
+ }
+
+ textElem.setAttribute("x", x);
+ textElem.setAttribute("y", y);
+
+ textElem.appendChild(this.document.createTextNode(encoding.text));
+
+ parent.appendChild(textElem);
+ }
+ }
+ }, {
+ key: "setSvgAttributes",
+ value: function setSvgAttributes(width, height) {
+ var svg = this.svg;
+ svg.setAttribute("width", width + "px");
+ svg.setAttribute("height", height + "px");
+ svg.setAttribute("x", "0px");
+ svg.setAttribute("y", "0px");
+ svg.setAttribute("viewBox", "0 0 " + width + " " + height);
+
+ svg.setAttribute("xmlns", svgns);
+ svg.setAttribute("version", "1.1");
+ }
+ }, {
+ key: "createGroup",
+ value: function createGroup(x, y, parent) {
+ var group = this.document.createElementNS(svgns, 'g');
+ group.setAttribute("transform", "translate(" + x + ", " + y + ")");
+
+ parent.appendChild(group);
+
+ return group;
+ }
+ }, {
+ key: "setGroupOptions",
+ value: function setGroupOptions(group, options) {
+ group.setAttribute("fill", options.lineColor);
+ }
+ }, {
+ key: "drawRect",
+ value: function drawRect(x, y, width, height, parent) {
+ var rect = this.document.createElementNS(svgns, 'rect');
+
+ rect.setAttribute("x", x);
+ rect.setAttribute("y", y);
+ rect.setAttribute("width", width);
+ rect.setAttribute("height", height);
+
+ parent.appendChild(rect);
+
+ return rect;
+ }
+ }]);
+
+ return SVGRenderer;
+}();
+
+exports["default"] = SVGRenderer;
+
+/***/ }),
+
/***/ "./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/beliankomoditi.vue?vue&type=style&index=0&id=77f51ad2&scoped=true&lang=css":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/beliankomoditi.vue?vue&type=style&index=0&id=77f51ad2&scoped=true&lang=css ***!
@@ -11969,7 +18915,7 @@ __webpack_require__.r(__webpack_exports__);
var ___CSS_LOADER_EXPORT___ = _node_modules_laravel_mix_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
// Module
-___CSS_LOADER_EXPORT___.push([module.id, "\n#view-nominee-modal .modal-dialog {\r\n max-width: 850px;\r\n /* Set a maximum width */\r\n width: 100%;\r\n /* Ensure full width on smaller screens */\n}\n#view-nominee-modal .nominee-viewed-photo {\r\n width: 100%;\r\n /* Ensure the photo fills the container */\r\n height: auto;\r\n /* Maintain aspect ratio */\n}\n#view-nominee-modal .content {\r\n display: flex;\r\n flex-wrap: wrap;\r\n /* Allow content to wrap on smaller screens */\n}\n#view-nominee-modal .photo-section {\r\n flex: 0 0 40%;\r\n /* Set a flexible width for the photo section */\r\n max-width: 300px;\r\n /* Set a maximum width */\r\n margin-right: 20px;\r\n /* Add space between photo and details */\n}\n#view-nominee-modal .detail-section {\r\n flex: 1;\r\n /* Take remaining space */\n}\n#view-nominee-modal span {\r\n display: block;\r\n padding: 5px 0;\n}\r\n\r\n/* Mobile styles */\n@media (max-width: 576px) {\n#view-nominee-modal .modal-dialog {\r\n max-width: none;\r\n padding-left: 10px;\r\n padding-right: 20px;\r\n margin-bottom: 50px;\r\n margin-left: 0px;\n}\n#view-nominee-modal .photo-section {\r\n flex: 0 0 100%;\r\n /* Set photo section to full width */\r\n max-width: none;\r\n /* Remove max-width */\r\n margin-right: 0;\r\n /* Remove right margin */\r\n margin-bottom: 20px;\r\n /* Add space between photo and details */\n}\n#view-nominee-modal .detail-section {\r\n flex: 0 0 100%;\r\n /* Set detail section to full width */\n}\n}\n#table-nominee tbody tr {\r\n cursor: pointer;\n}\n@keyframes pulseBackground {\n0% {\r\n background-color: #FFFFBF;\n}\r\n\r\n /* Start color */\n50% {\r\n background-color: #ffffff;\n}\r\n\r\n /* Middle color (white) */\n100% {\r\n background-color: #FFFFBF;\n}\r\n\r\n /* End color (same as start) */\n}\n#table-nominee tbody tr:hover {\r\n animation: pulseBackground 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;\r\n /* Animation duration, timing function, and repetition */\n}\n.info-label {\r\n display: inline-block;\r\n width: 100px;\n}\n.info-separator {\r\n display: inline-block;\r\n width: 5px;\n}\n.info-value {\r\n display: inline-block;\n}\n.small-text {\r\n font-size: 1.0rem;\r\n /* or try 0.85rem if you want even smaller */\n}\r\n", ""]);
+___CSS_LOADER_EXPORT___.push([module.id, "\n#view-nominee-modal .modal-dialog {\r\n max-width: 850px;\r\n /* Set a maximum width */\r\n width: 100%;\r\n /* Ensure full width on smaller screens */\n}\n#view-nominee-modal .nominee-viewed-photo {\r\n width: 100%;\r\n /* Ensure the photo fills the container */\r\n height: auto;\r\n /* Maintain aspect ratio */\n}\n#view-nominee-modal .content {\r\n display: flex;\r\n flex-wrap: wrap;\r\n /* Allow content to wrap on smaller screens */\n}\n#view-nominee-modal .photo-section {\r\n flex: 0 0 40%;\r\n /* Set a flexible width for the photo section */\r\n max-width: 300px;\r\n /* Set a maximum width */\r\n margin-right: 20px;\r\n /* Add space between photo and details */\n}\n#view-nominee-modal .detail-section {\r\n flex: 1;\r\n /* Take remaining space */\n}\n#view-nominee-modal span {\r\n display: block;\r\n padding: 5px 0;\n}\n@media (max-width: 576px) {\n#view-nominee-modal .modal-dialog {\r\n max-width: none;\r\n padding-left: 10px;\r\n padding-right: 20px;\r\n margin-bottom: 50px;\r\n margin-left: 0px;\n}\n#view-nominee-modal .photo-section {\r\n flex: 0 0 100%;\r\n /* Set photo section to full width */\r\n max-width: none;\r\n /* Remove max-width */\r\n margin-right: 0;\r\n /* Remove right margin */\r\n margin-bottom: 20px;\r\n /* Add space between photo and details */\n}\n#view-nominee-modal .detail-section {\r\n flex: 0 0 100%;\r\n /* Set detail section to full width */\n}\n}\n#table-nominee tbody tr {\r\n cursor: pointer;\n}\n@keyframes pulseBackground {\n0% {\r\n background-color: #FFFFBF;\n}\r\n\r\n /* Start color */\n50% {\r\n background-color: #ffffff;\n}\r\n\r\n /* Middle color (white) */\n100% {\r\n background-color: #FFFFBF;\n}\n}\n#table-nominee tbody tr:hover {\r\n animation: pulseBackground 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;\n}\n.info-label {\r\n display: inline-block;\r\n width: 100px;\n}\n.info-separator {\r\n display: inline-block;\r\n width: 5px;\n}\n.info-value {\r\n display: inline-block;\n}\n.small-text {\r\n font-size: 1.0rem;\n}\n.watermark {\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n width: 60mm;\r\n /* adjust size */\r\n opacity: 0.09;\r\n transform: translate(-50%, -50%);\r\n z-index: 5;\n}\n.kad-keahlian {\r\n width: 100%;\r\n /* responsive width */\r\n max-width: 400px;\r\n /* limit for desktop */\r\n aspect-ratio: 1.30 / 1;\r\n /* maintain card ratio */\r\n max-height: 200px;\r\n /* anda boleh cuba 220px atau 200px */\r\n overflow: hidden;\r\n /* pastikan isi tidak meletup keluar */\r\n\r\n padding: 18px;\r\n /* kurangkan padding supaya content muat */\r\n font-size: 0.8rem;\r\n border-radius: 12px;\r\n border: 3px solid #0d0d0e;\r\n box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);\r\n background: #F2F3F4;\r\n position: relative;\r\n overflow: hidden;\r\n font-family: Arial, sans-serif;\r\n padding: 20px;\r\n box-sizing: border-box;\r\n font-weight: bold;\r\n font-size: 0.8rem;\r\n /* responsive text */\r\n color: whitesmoke;\r\n cursor: pointer;\r\n transition: transform 0.25s ease, box-shadow 0.25s ease;\r\n background-image: url('/images/kad_bg.png');\r\n background-size: 60%;\r\n background-size: cover;\r\n background-position: center;\n}\n@media (max-height: 600px) {\n.kad-keahlian {\r\n max-height: 200px;\r\n padding: 12px;\r\n font-size: 0.75rem;\n}\n}\n.kad-logo {\r\n position: absolute;\r\n /* place inside kad-anggota */\r\n top: 10px;\r\n /* distance from top */\r\n right: 10px;\r\n /* distance from right */\n}\n.member-card-vertical {\r\n position: absolute;\r\n top: 20px;\r\n left: 0;\r\n writing-mode: vertical-rl;\r\n /* makes text vertical from top to bottom */\r\n text-orientation: mixed;\r\n /* normal letters upright */\r\n font-weight: bold;\r\n font-size:1.5rem;\r\n letter-spacing: 2px;\r\n /* space between letters */\r\n padding: 5px;\r\n color: white;\r\n text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);\n}\n.kad-keahlian::before {\r\n content: \"\";\r\n position: absolute;\r\n /* ❗ fixed */\r\n background-size: 100%;\r\n opacity: 0.08;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\n}\n.kad-keahlian:hover {\r\n transform: scale(1.03);\n}\r\n\r\n\r\n/* .kad-title {\r\n text-align: center;\r\n font-size: 1.1rem;\r\n font-weight: bold;\r\n color: white;\r\n text-shadow: 3px 3px 4px rgb(244, 241, 241);\r\n position: relative;\r\n z-index: 5;\r\n} */\n.member-details {\r\n font-family: Arial, sans-serif;\r\n font-weight: normal;\r\n font-size: 1.1rem;\r\n line-height: 1.3;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 6px;\r\n margin-left: 40px;\n}\n.kad-content {\r\n display: flex;\r\n flex-wrap: wrap;\r\n gap: 10px;\r\n margin-top: 5px;\r\n position: relative;\r\n z-index: 5;\r\n /* optional: rounded corners */\n}\n.kad-details {\r\n font-size: 0.75rem;\r\n font-weight: normal;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 4px;\n}\n.kad-details .row {\r\n display: flex;\r\n justify-content: space-between;\r\n width: 100%;\n}\n.detail-item {\r\n position: relative;\r\n top: 5px;\r\n right: 5px;\r\n text-align: left;\n}\n#barcode {\r\n transform: scaleX(1.5);\r\n transform-origin: left;\r\n max-width: 100%;\n}\n.detail-label {\r\n\r\n text-align: left;\r\n /* display: inline-block; */\n}\n.detail-value {\r\n text-align: right;\n}\n.no-anggota {\r\n position: absolute;\r\n top: 5px;\r\n right: 8px;\r\n text-align: right;\r\n z-index: 10;\r\n /* keeps text above watermark */\n}\n.contact-info {\r\n text-align: right;\r\n /* aligns everything inside to right */\r\n font-size: 9px;\r\n /* small text for card */\r\n line-height: 1.2;\r\n color: rgb(12, 12, 12);\n}\n.contact-info i {\r\n margin-right: 3px;\r\n /* spacing between icon & text */\r\n font-size: 8px;\r\n /* icon size */\r\n font-weight: normal;\n}\r\n", ""]);
// Exports
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
@@ -11998,6 +18944,30 @@ ___CSS_LOADER_EXPORT___.push([module.id, "\n.background-img {\r\n /* Styles f
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
+/***/ }),
+
+/***/ "./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css":
+/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** ./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css ***!
+ \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/***/ ((module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _node_modules_laravel_mix_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../node_modules/laravel-mix/node_modules/css-loader/dist/runtime/api.js */ "./node_modules/laravel-mix/node_modules/css-loader/dist/runtime/api.js");
+/* harmony import */ var _node_modules_laravel_mix_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_laravel_mix_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
+// Imports
+
+var ___CSS_LOADER_EXPORT___ = _node_modules_laravel_mix_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
+// Module
+___CSS_LOADER_EXPORT___.push([module.id, "\r\n/* ------------------ GENERAL ------------------ */\n.penyata-wrapper[data-v-53adb7ac] {\r\n max-width: 800px;\r\n margin: 0 auto;\r\n font-family: Arial, sans-serif;\n}\n.header-section[data-v-53adb7ac] {\r\n display: grid;\r\n grid-template-columns: 1.5fr 1fr;\r\n align-items: center;\r\n gap: 20px;\n}\n.logo-wrapper[data-v-53adb7ac] {\r\n display: flex;\r\n align-items: flex-start;\r\n gap: 15px;\n}\n.kopkb-logo[data-v-53adb7ac] {\r\n width: 80px;\r\n height: auto;\n}\n.header-right[data-v-53adb7ac] {\r\n text-align: right;\n}\n.title-box[data-v-53adb7ac] {\r\n background: #000;\r\n color: #fff;\r\n padding: 8px 15px;\r\n display: inline-block;\r\n border-radius: 4px;\r\n text-align: center;\n}\n.form-section.two-column[data-v-53adb7ac] {\r\n display: grid;\r\n grid-template-columns: repeat(2, 1fr);\r\n -moz-column-gap: 30px;\r\n column-gap: 30px;\r\n row-gap: 15px;\r\n margin-bottom: 20px;\r\n max-width: 780px;\r\n margin: 0 auto;\n}\n.form-control-sm[data-v-53adb7ac] {\r\n border: none;\r\n border-bottom: 1px solid #666;\r\n border-radius: 0;\r\n width: 100%;\r\n outline: none;\r\n padding: 4px;\n}\n.boxed-table[data-v-53adb7ac] {\r\n width: 100%;\r\n border-collapse: separate;\r\n border-spacing: 4px;\n}\n.boxed-table td[data-v-53adb7ac] {\r\n border: 1px inset #000;\r\n padding: 6px 8px;\r\n font-size: 13px;\r\n background: #fafafa;\r\n vertical-align: middle;\n}\n.no-lines td[data-v-53adb7ac] {\r\n border: none !important;\r\n padding: 4px 6px;\r\n font-size: 13px;\r\n text-align: left;\r\n vertical-align: middle;\n}\n.keyin-input[data-v-53adb7ac],\r\n.keyin-line[data-v-53adb7ac] {\r\n border: none;\r\n border-bottom: 1px solid #000;\r\n background: transparent;\r\n padding: 2px 4px;\r\n font-size: 12px;\r\n text-align: right;\r\n width: 90%;\n}\n.keyin-input[data-v-53adb7ac]:focus,\r\n.keyin-line[data-v-53adb7ac]:focus {\r\n border-bottom: 1px solid #007bff;\n}\n.signature-section[data-v-53adb7ac] {\r\n display: grid;\r\n grid-template-columns: 1fr 1fr;\r\n -moz-column-gap: 40px;\r\n column-gap: 40px;\r\n row-gap: 15px;\r\n width: 100%;\r\n max-width: 780px;\r\n margin: 20px auto 0;\n}\n.btn-effect[data-v-53adb7ac] {\r\n transition: 0.3s ease;\n}\n.btn-effect[data-v-53adb7ac]:hover {\r\n transform: scale(1.05);\r\n box-shadow: 0 0 10px rgba(8, 8, 8, 0.818);\n}\n.italic-note[data-v-53adb7ac] {\r\n font-style: italic;\n}\n.badge-disahkan[data-v-53adb7ac] {\r\n background: #28a745;\r\n color: #fff;\r\n padding: 6px 14px;\r\n border-radius: 20px;\r\n font-weight: 600;\r\n letter-spacing: 0.3px;\n}\n@media(max-width:768px) {\n.header-section[data-v-53adb7ac] {\r\n grid-template-columns: 1fr;\r\n text-align: center;\n}\n.header-right[data-v-53adb7ac] {\r\n text-align: center;\r\n margin-top: 10px;\n}\n.logo-wrapper[data-v-53adb7ac] {\r\n justify-content: center;\n}\n.signature-section[data-v-53adb7ac] {\r\n grid-template-columns: 1fr;\n}\n}\n@media print {\n.no-print[data-v-53adb7ac] {\r\n display: none !important;\n}\nbody[data-v-53adb7ac] {\r\n font-size: 12px;\r\n line-height: 1.3;\n}\ntable[data-v-53adb7ac],\r\n .penyata-wrapper[data-v-53adb7ac] {\r\n page-break-inside: avoid;\n}\n}\r\n", ""]);
+// Exports
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
+
+
/***/ }),
/***/ "./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/zoom.vue?vue&type=style&index=0&id=b73c1a32&lang=css":
@@ -12041,7 +19011,7 @@ __webpack_require__.r(__webpack_exports__);
var ___CSS_LOADER_EXPORT___ = _node_modules_laravel_mix_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
// Module
-___CSS_LOADER_EXPORT___.push([module.id, "\nbody[data-v-bfe9a194]{\r\n\tpadding: 70px 5px;\n}\r\n/* Change navbar background color */\n#nav.navbar[data-v-bfe9a194] {\r\n background-color: #021324; /* Dark blue/gray background */\r\n border: none;\n}\r\n\r\n/* Change navbar link text color */\n#nav .nav > li > a[data-v-bfe9a194],\r\n#nav .navbar-brand[data-v-bfe9a194],\r\n#nav .navbar-toggle[data-v-bfe9a194] {\r\n color: #f39c12; /* Light gray text */\n}\r\n\r\n/* Hover effect */\n#nav .nav > li > a[data-v-bfe9a194]:hover,\r\n#nav .navbar-brand[data-v-bfe9a194]:hover {\r\n color: #f39c12; /* Gold/yellow on hover */\n}\r\n\r\n/* Dropdown text color */\n#nav .dropdown-menu > li > a[data-v-bfe9a194] {\r\n color: #2c3e50; /* Dark text in dropdown */\n}\r\n\r\n/* Dropdown hover */\n#nav .dropdown-menu > li > a[data-v-bfe9a194]:hover {\r\n background-color: #f39c12;\r\n color: white;\n}\n.navbar-brand img[data-v-bfe9a194] {\r\n background: transparent !important;\r\n box-shadow: none;\n}\r\n\r\n", ""]);
+___CSS_LOADER_EXPORT___.push([module.id, "\nbody[data-v-bfe9a194] {\r\n\tpadding: 70px 5px;\n}\r\n\r\n/* Change navbar background color */\n#nav.navbar[data-v-bfe9a194] {\r\n\tbackground-color: #021324;\r\n\t/* Dark blue/gray background */\r\n\tborder: none;\n}\r\n\r\n/* Change navbar link text color */\n#nav .nav>li>a[data-v-bfe9a194],\r\n#nav .navbar-brand[data-v-bfe9a194],\r\n#nav .navbar-toggle[data-v-bfe9a194] {\r\n\tcolor: #f39c12;\r\n\t/* Light gray text */\n}\r\n\r\n/* Hover effect */\n#nav .nav>li>a[data-v-bfe9a194]:hover,\r\n#nav .navbar-brand[data-v-bfe9a194]:hover {\r\n\tcolor: #f39c12;\r\n\t/* Gold/yellow on hover */\n}\r\n\r\n/* Dropdown text color */\n#nav .dropdown-menu>li>a[data-v-bfe9a194] {\r\n\tcolor: #2c3e50;\r\n\t/* Dark text in dropdown */\n}\r\n\r\n/* Dropdown hover */\n#nav .dropdown-menu>li>a[data-v-bfe9a194]:hover {\r\n\tbackground-color: #f39c12;\r\n\tcolor: white;\n}\n.navbar-brand img[data-v-bfe9a194] {\r\n\tbackground: transparent !important;\r\n\tbox-shadow: none;\n}\r\n", ""]);
// Exports
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
@@ -12231,6 +19201,200 @@ __webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
+/***/ }),
+
+/***/ "./node_modules/process/browser.js":
+/*!*****************************************!*\
+ !*** ./node_modules/process/browser.js ***!
+ \*****************************************/
+/***/ ((module) => {
+
+// shim for using process in browser
+var process = module.exports = {};
+
+// cached from whatever global is present so that test runners that stub it
+// don't break things. But we need to wrap it in a try catch in case it is
+// wrapped in strict mode code which doesn't define any globals. It's inside a
+// function because try/catches deoptimize in certain engines.
+
+var cachedSetTimeout;
+var cachedClearTimeout;
+
+function defaultSetTimout() {
+ throw new Error('setTimeout has not been defined');
+}
+function defaultClearTimeout () {
+ throw new Error('clearTimeout has not been defined');
+}
+(function () {
+ try {
+ if (typeof setTimeout === 'function') {
+ cachedSetTimeout = setTimeout;
+ } else {
+ cachedSetTimeout = defaultSetTimout;
+ }
+ } catch (e) {
+ cachedSetTimeout = defaultSetTimout;
+ }
+ try {
+ if (typeof clearTimeout === 'function') {
+ cachedClearTimeout = clearTimeout;
+ } else {
+ cachedClearTimeout = defaultClearTimeout;
+ }
+ } catch (e) {
+ cachedClearTimeout = defaultClearTimeout;
+ }
+} ())
+function runTimeout(fun) {
+ if (cachedSetTimeout === setTimeout) {
+ //normal enviroments in sane situations
+ return setTimeout(fun, 0);
+ }
+ // if setTimeout wasn't available but was latter defined
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
+ cachedSetTimeout = setTimeout;
+ return setTimeout(fun, 0);
+ }
+ try {
+ // when when somebody has screwed with setTimeout but no I.E. maddness
+ return cachedSetTimeout(fun, 0);
+ } catch(e){
+ try {
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
+ return cachedSetTimeout.call(null, fun, 0);
+ } catch(e){
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
+ return cachedSetTimeout.call(this, fun, 0);
+ }
+ }
+
+
+}
+function runClearTimeout(marker) {
+ if (cachedClearTimeout === clearTimeout) {
+ //normal enviroments in sane situations
+ return clearTimeout(marker);
+ }
+ // if clearTimeout wasn't available but was latter defined
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
+ cachedClearTimeout = clearTimeout;
+ return clearTimeout(marker);
+ }
+ try {
+ // when when somebody has screwed with setTimeout but no I.E. maddness
+ return cachedClearTimeout(marker);
+ } catch (e){
+ try {
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
+ return cachedClearTimeout.call(null, marker);
+ } catch (e){
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
+ return cachedClearTimeout.call(this, marker);
+ }
+ }
+
+
+
+}
+var queue = [];
+var draining = false;
+var currentQueue;
+var queueIndex = -1;
+
+function cleanUpNextTick() {
+ if (!draining || !currentQueue) {
+ return;
+ }
+ draining = false;
+ if (currentQueue.length) {
+ queue = currentQueue.concat(queue);
+ } else {
+ queueIndex = -1;
+ }
+ if (queue.length) {
+ drainQueue();
+ }
+}
+
+function drainQueue() {
+ if (draining) {
+ return;
+ }
+ var timeout = runTimeout(cleanUpNextTick);
+ draining = true;
+
+ var len = queue.length;
+ while(len) {
+ currentQueue = queue;
+ queue = [];
+ while (++queueIndex < len) {
+ if (currentQueue) {
+ currentQueue[queueIndex].run();
+ }
+ }
+ queueIndex = -1;
+ len = queue.length;
+ }
+ currentQueue = null;
+ draining = false;
+ runClearTimeout(timeout);
+}
+
+process.nextTick = function (fun) {
+ var args = new Array(arguments.length - 1);
+ if (arguments.length > 1) {
+ for (var i = 1; i < arguments.length; i++) {
+ args[i - 1] = arguments[i];
+ }
+ }
+ queue.push(new Item(fun, args));
+ if (queue.length === 1 && !draining) {
+ runTimeout(drainQueue);
+ }
+};
+
+// v8 likes predictible objects
+function Item(fun, array) {
+ this.fun = fun;
+ this.array = array;
+}
+Item.prototype.run = function () {
+ this.fun.apply(null, this.array);
+};
+process.title = 'browser';
+process.browser = true;
+process.env = {};
+process.argv = [];
+process.version = ''; // empty string to avoid regexp issues
+process.versions = {};
+
+function noop() {}
+
+process.on = noop;
+process.addListener = noop;
+process.once = noop;
+process.off = noop;
+process.removeListener = noop;
+process.removeAllListeners = noop;
+process.emit = noop;
+process.prependListener = noop;
+process.prependOnceListener = noop;
+
+process.listeners = function (name) { return [] }
+
+process.binding = function (name) {
+ throw new Error('process.binding is not supported');
+};
+
+process.cwd = function () { return '/' };
+process.chdir = function (dir) {
+ throw new Error('process.chdir is not supported');
+};
+process.umask = function() { return 0; };
+
+
/***/ }),
/***/ "./node_modules/style-loader/dist/cjs.js!./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/beliankomoditi.vue?vue&type=style&index=0&id=77f51ad2&scoped=true&lang=css":
@@ -12593,6 +19757,36 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
/***/ }),
+/***/ "./node_modules/style-loader/dist/cjs.js!./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css":
+/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** ./node_modules/style-loader/dist/cjs.js!./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css ***!
+ \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
+/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _node_modules_laravel_mix_node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_style_index_0_id_53adb7ac_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../../../../node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css */ "./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css");
+
+
+
+var options = {};
+
+options.insert = "head";
+options.singleton = false;
+
+var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_laravel_mix_node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_style_index_0_id_53adb7ac_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
+
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_laravel_mix_node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_style_index_0_id_53adb7ac_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
+
+/***/ }),
+
/***/ "./node_modules/style-loader/dist/cjs.js!./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/zoom.vue?vue&type=style&index=0&id=b73c1a32&lang=css":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/style-loader/dist/cjs.js!./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/zoom.vue?vue&type=style&index=0&id=b73c1a32&lang=css ***!
@@ -13409,6 +20603,45 @@ component.options.__file = "resources/assets/js/components/demo/admin/admin/pemb
/***/ }),
+/***/ "./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue":
+/*!*****************************************************************************!*\
+ !*** ./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue ***!
+ \*****************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _penyata_anggota_vue_vue_type_template_id_ec936c4a__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./penyata-anggota.vue?vue&type=template&id=ec936c4a */ "./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=template&id=ec936c4a");
+/* harmony import */ var _penyata_anggota_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./penyata-anggota.vue?vue&type=script&lang=js */ "./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=script&lang=js");
+/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
+
+
+
+
+
+/* normalize component */
+;
+var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
+ _penyata_anggota_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
+ _penyata_anggota_vue_vue_type_template_id_ec936c4a__WEBPACK_IMPORTED_MODULE_0__.render,
+ _penyata_anggota_vue_vue_type_template_id_ec936c4a__WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,
+ false,
+ null,
+ null,
+ null
+
+)
+
+/* hot reload */
+if (false) { var api; }
+component.options.__file = "resources/assets/js/components/demo/admin/admin/penyata-anggota.vue"
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);
+
+/***/ }),
+
/***/ "./resources/assets/js/components/demo/admin/home/final.vue":
/*!******************************************************************!*\
!*** ./resources/assets/js/components/demo/admin/home/final.vue ***!
@@ -14558,6 +21791,47 @@ component.options.__file = "resources/assets/js/components/demo/voter/home/mat.v
/***/ }),
+/***/ "./resources/assets/js/components/demo/voter/home/penyata.vue":
+/*!********************************************************************!*\
+ !*** ./resources/assets/js/components/demo/voter/home/penyata.vue ***!
+ \********************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _penyata_vue_vue_type_template_id_53adb7ac_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./penyata.vue?vue&type=template&id=53adb7ac&scoped=true */ "./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=template&id=53adb7ac&scoped=true");
+/* harmony import */ var _penyata_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./penyata.vue?vue&type=script&lang=js */ "./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=script&lang=js");
+/* harmony import */ var _penyata_vue_vue_type_style_index_0_id_53adb7ac_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css */ "./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css");
+/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
+
+
+
+;
+
+
+/* normalize component */
+
+var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
+ _penyata_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"],
+ _penyata_vue_vue_type_template_id_53adb7ac_scoped_true__WEBPACK_IMPORTED_MODULE_0__.render,
+ _penyata_vue_vue_type_template_id_53adb7ac_scoped_true__WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,
+ false,
+ null,
+ "53adb7ac",
+ null
+
+)
+
+/* hot reload */
+if (false) { var api; }
+component.options.__file = "resources/assets/js/components/demo/voter/home/penyata.vue"
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);
+
+/***/ }),
+
/***/ "./resources/assets/js/components/demo/voter/home/result.vue":
/*!*******************************************************************!*\
!*** ./resources/assets/js/components/demo/voter/home/result.vue ***!
@@ -15176,6 +22450,22 @@ __webpack_require__.r(__webpack_exports__);
/***/ }),
+/***/ "./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=script&lang=js":
+/*!*****************************************************************************************************!*\
+ !*** ./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=script&lang=js ***!
+ \*****************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_anggota_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./penyata-anggota.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=script&lang=js");
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_anggota_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
+
+/***/ }),
+
/***/ "./resources/assets/js/components/demo/admin/home/final.vue?vue&type=script&lang=js":
/*!******************************************************************************************!*\
!*** ./resources/assets/js/components/demo/admin/home/final.vue?vue&type=script&lang=js ***!
@@ -15640,6 +22930,22 @@ __webpack_require__.r(__webpack_exports__);
/***/ }),
+/***/ "./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=script&lang=js":
+/*!********************************************************************************************!*\
+ !*** ./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=script&lang=js ***!
+ \********************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./penyata.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=script&lang=js");
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
+
+/***/ }),
+
/***/ "./resources/assets/js/components/demo/voter/home/result.vue?vue&type=script&lang=js":
/*!*******************************************************************************************!*\
!*** ./resources/assets/js/components/demo/voter/home/result.vue?vue&type=script&lang=js ***!
@@ -15935,6 +23241,23 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_lib_index_js_vue_loader_options_pembiayaan_vue_vue_type_template_id_90083f08_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./pembiayaan.vue?vue&type=template&id=90083f08&scoped=true */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/pembiayaan.vue?vue&type=template&id=90083f08&scoped=true");
+/***/ }),
+
+/***/ "./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=template&id=ec936c4a":
+/*!***********************************************************************************************************!*\
+ !*** ./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=template&id=ec936c4a ***!
+ \***********************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ render: () => (/* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_anggota_vue_vue_type_template_id_ec936c4a__WEBPACK_IMPORTED_MODULE_0__.render),
+/* harmony export */ staticRenderFns: () => (/* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_anggota_vue_vue_type_template_id_ec936c4a__WEBPACK_IMPORTED_MODULE_0__.staticRenderFns)
+/* harmony export */ });
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_anggota_vue_vue_type_template_id_ec936c4a__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./penyata-anggota.vue?vue&type=template&id=ec936c4a */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/admin/admin/penyata-anggota.vue?vue&type=template&id=ec936c4a");
+
+
/***/ }),
/***/ "./resources/assets/js/components/demo/admin/home/final.vue?vue&type=template&id=22ef532b":
@@ -16428,6 +23751,23 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_lib_index_js_vue_loader_options_mat_vue_vue_type_template_id_4a6a8b08__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./mat.vue?vue&type=template&id=4a6a8b08 */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/mat.vue?vue&type=template&id=4a6a8b08");
+/***/ }),
+
+/***/ "./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=template&id=53adb7ac&scoped=true":
+/*!**************************************************************************************************************!*\
+ !*** ./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=template&id=53adb7ac&scoped=true ***!
+ \**************************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ render: () => (/* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_template_id_53adb7ac_scoped_true__WEBPACK_IMPORTED_MODULE_0__.render),
+/* harmony export */ staticRenderFns: () => (/* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_template_id_53adb7ac_scoped_true__WEBPACK_IMPORTED_MODULE_0__.staticRenderFns)
+/* harmony export */ });
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_template_id_53adb7ac_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./penyata.vue?vue&type=template&id=53adb7ac&scoped=true */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=template&id=53adb7ac&scoped=true");
+
+
/***/ }),
/***/ "./resources/assets/js/components/demo/voter/home/result.vue?vue&type=template&id=56ffd331":
@@ -16788,6 +24128,19 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_style_loader_dist_cjs_js_node_modules_laravel_mix_node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_lib_index_js_vue_loader_options_mat_vue_vue_type_style_index_0_id_4a6a8b08_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/style-loader/dist/cjs.js!../../../../../../../node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./mat.vue?vue&type=style&index=0&id=4a6a8b08&lang=css */ "./node_modules/style-loader/dist/cjs.js!./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/mat.vue?vue&type=style&index=0&id=4a6a8b08&lang=css");
+/***/ }),
+
+/***/ "./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css":
+/*!****************************************************************************************************************************!*\
+ !*** ./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css ***!
+ \****************************************************************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony import */ var _node_modules_style_loader_dist_cjs_js_node_modules_laravel_mix_node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_lib_index_js_vue_loader_options_penyata_vue_vue_type_style_index_0_id_53adb7ac_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../node_modules/style-loader/dist/cjs.js!../../../../../../../node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css */ "./node_modules/style-loader/dist/cjs.js!./node_modules/laravel-mix/node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/assets/js/components/demo/voter/home/penyata.vue?vue&type=style&index=0&id=53adb7ac&scoped=true&lang=css");
+
+
/***/ }),
/***/ "./resources/assets/js/components/demo/voter/home/zoom.vue?vue&type=style&index=0&id=b73c1a32&lang=css":
@@ -16977,6 +24330,4952 @@ function normalizeComponent(
}
+/***/ }),
+
+/***/ "./node_modules/axios/lib/adapters/adapters.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/axios/lib/adapters/adapters.js ***!
+ \*****************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ "./node_modules/axios/lib/helpers/null.js");
+/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ "./node_modules/axios/lib/adapters/xhr.js");
+/* harmony import */ var _fetch_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fetch.js */ "./node_modules/axios/lib/adapters/fetch.js");
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+
+
+
+
+
+
+/**
+ * Known adapters mapping.
+ * Provides environment-specific adapters for Axios:
+ * - `http` for Node.js
+ * - `xhr` for browsers
+ * - `fetch` for fetch API-based requests
+ *
+ * @type {Object}
+ */
+const knownAdapters = {
+ http: _http_js__WEBPACK_IMPORTED_MODULE_0__["default"],
+ xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"],
+ fetch: {
+ get: _fetch_js__WEBPACK_IMPORTED_MODULE_2__.getFetch,
+ }
+};
+
+// Assign adapter names for easier debugging and identification
+_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(knownAdapters, (fn, value) => {
+ if (fn) {
+ try {
+ Object.defineProperty(fn, 'name', { value });
+ } catch (e) {
+ // eslint-disable-next-line no-empty
+ }
+ Object.defineProperty(fn, 'adapterName', { value });
+ }
+});
+
+/**
+ * Render a rejection reason string for unknown or unsupported adapters
+ *
+ * @param {string} reason
+ * @returns {string}
+ */
+const renderReason = (reason) => `- ${reason}`;
+
+/**
+ * Check if the adapter is resolved (function, null, or false)
+ *
+ * @param {Function|null|false} adapter
+ * @returns {boolean}
+ */
+const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(adapter) || adapter === null || adapter === false;
+
+/**
+ * Get the first suitable adapter from the provided list.
+ * Tries each adapter in order until a supported one is found.
+ * Throws an AxiosError if no adapter is suitable.
+ *
+ * @param {Array|string|Function} adapters - Adapter(s) by name or function.
+ * @param {Object} config - Axios request configuration
+ * @throws {AxiosError} If no suitable adapter is available
+ * @returns {Function} The resolved adapter function
+ */
+function getAdapter(adapters, config) {
+ adapters = _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isArray(adapters) ? adapters : [adapters];
+
+ const { length } = adapters;
+ let nameOrAdapter;
+ let adapter;
+
+ const rejectedReasons = {};
+
+ for (let i = 0; i < length; i++) {
+ nameOrAdapter = adapters[i];
+ let id;
+
+ adapter = nameOrAdapter;
+
+ if (!isResolvedHandle(nameOrAdapter)) {
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
+
+ if (adapter === undefined) {
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__["default"](`Unknown adapter '${id}'`);
+ }
+ }
+
+ if (adapter && (_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(adapter) || (adapter = adapter.get(config)))) {
+ break;
+ }
+
+ rejectedReasons[id || '#' + i] = adapter;
+ }
+
+ if (!adapter) {
+ const reasons = Object.entries(rejectedReasons)
+ .map(([id, state]) => `adapter ${id} ` +
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
+ );
+
+ let s = length ?
+ (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
+ 'as no adapter specified';
+
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__["default"](
+ `There is no suitable adapter to dispatch the request ` + s,
+ 'ERR_NOT_SUPPORT'
+ );
+ }
+
+ return adapter;
+}
+
+/**
+ * Exports Axios adapters and utility to resolve an adapter
+ */
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ /**
+ * Resolve an adapter from a list of adapter names or functions.
+ * @type {Function}
+ */
+ getAdapter,
+
+ /**
+ * Exposes all known adapters
+ * @type {Object}
+ */
+ adapters: knownAdapters
+});
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/adapters/fetch.js":
+/*!**************************************************!*\
+ !*** ./node_modules/axios/lib/adapters/fetch.js ***!
+ \**************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
+/* harmony export */ getFetch: () => (/* binding */ getFetch)
+/* harmony export */ });
+/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/composeSignals.js */ "./node_modules/axios/lib/helpers/composeSignals.js");
+/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/trackStream.js */ "./node_modules/axios/lib/helpers/trackStream.js");
+/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
+/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "./node_modules/axios/lib/helpers/progressEventReducer.js");
+/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "./node_modules/axios/lib/helpers/resolveConfig.js");
+/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/settle.js */ "./node_modules/axios/lib/core/settle.js");
+
+
+
+
+
+
+
+
+
+
+const DEFAULT_CHUNK_SIZE = 64 * 1024;
+
+const {isFunction} = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"];
+
+const globalFetchAPI = (({Request, Response}) => ({
+ Request, Response
+}))(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global);
+
+const {
+ ReadableStream, TextEncoder
+} = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global;
+
+
+const test = (fn, ...args) => {
+ try {
+ return !!fn(...args);
+ } catch (e) {
+ return false
+ }
+}
+
+const factory = (env) => {
+ env = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({
+ skipUndefined: true
+ }, globalFetchAPI, env);
+
+ const {fetch: envFetch, Request, Response} = env;
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
+ const isRequestSupported = isFunction(Request);
+ const isResponseSupported = isFunction(Response);
+
+ if (!isFetchSupported) {
+ return false;
+ }
+
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
+
+ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
+ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
+ async (str) => new Uint8Array(await new Request(str).arrayBuffer())
+ );
+
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
+ let duplexAccessed = false;
+
+ const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].origin, {
+ body: new ReadableStream(),
+ method: 'POST',
+ get duplex() {
+ duplexAccessed = true;
+ return 'half';
+ },
+ }).headers.has('Content-Type');
+
+ return duplexAccessed && !hasContentType;
+ });
+
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
+ test(() => _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(new Response('').body));
+
+ const resolvers = {
+ stream: supportsResponseStream && ((res) => res.body)
+ };
+
+ isFetchSupported && ((() => {
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
+ !resolvers[type] && (resolvers[type] = (res, config) => {
+ let method = res && res[type];
+
+ if (method) {
+ return method.call(res);
+ }
+
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](`Response type '${type}' is not supported`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT, config);
+ })
+ });
+ })());
+
+ const getBodyLength = async (body) => {
+ if (body == null) {
+ return 0;
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(body)) {
+ return body.size;
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(body)) {
+ const _request = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].origin, {
+ method: 'POST',
+ body,
+ });
+ return (await _request.arrayBuffer()).byteLength;
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(body) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(body)) {
+ return body.byteLength;
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(body)) {
+ body = body + '';
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(body)) {
+ return (await encodeText(body)).byteLength;
+ }
+ }
+
+ const resolveBodyLength = async (headers, body) => {
+ const length = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFiniteNumber(headers.getContentLength());
+
+ return length == null ? getBodyLength(body) : length;
+ }
+
+ return async (config) => {
+ let {
+ url,
+ method,
+ data,
+ signal,
+ cancelToken,
+ timeout,
+ onDownloadProgress,
+ onUploadProgress,
+ responseType,
+ headers,
+ withCredentials = 'same-origin',
+ fetchOptions
+ } = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
+
+ let _fetch = envFetch || fetch;
+
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
+
+ let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
+
+ let request = null;
+
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
+ composedSignal.unsubscribe();
+ });
+
+ let requestContentLength;
+
+ try {
+ if (
+ onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
+ ) {
+ let _request = new Request(url, {
+ method: 'POST',
+ body: data,
+ duplex: "half"
+ });
+
+ let contentTypeHeader;
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
+ headers.setContentType(contentTypeHeader)
+ }
+
+ if (_request.body) {
+ const [onProgress, flush] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventDecorator)(
+ requestContentLength,
+ (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.asyncDecorator)(onUploadProgress))
+ );
+
+ data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
+ }
+ }
+
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(withCredentials)) {
+ withCredentials = withCredentials ? 'include' : 'omit';
+ }
+
+ // Cloudflare Workers throws when credentials are defined
+ // see https://github.com/cloudflare/workerd/issues/902
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
+
+ const resolvedOptions = {
+ ...fetchOptions,
+ signal: composedSignal,
+ method: method.toUpperCase(),
+ headers: headers.normalize().toJSON(),
+ body: data,
+ duplex: "half",
+ credentials: isCredentialsSupported ? withCredentials : undefined
+ };
+
+ request = isRequestSupported && new Request(url, resolvedOptions);
+
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
+
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
+
+ if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
+ const options = {};
+
+ ['status', 'statusText', 'headers'].forEach(prop => {
+ options[prop] = response[prop];
+ });
+
+ const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFiniteNumber(response.headers.get('content-length'));
+
+ const [onProgress, flush] = onDownloadProgress && (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventDecorator)(
+ responseContentLength,
+ (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.asyncDecorator)(onDownloadProgress), true)
+ ) || [];
+
+ response = new Response(
+ (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
+ flush && flush();
+ unsubscribe && unsubscribe();
+ }),
+ options
+ );
+ }
+
+ responseType = responseType || 'text';
+
+ let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(resolvers, responseType) || 'text'](response, config);
+
+ !isStreamResponse && unsubscribe && unsubscribe();
+
+ return await new Promise((resolve, reject) => {
+ (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_7__["default"])(resolve, reject, {
+ data: responseData,
+ headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"].from(response.headers),
+ status: response.status,
+ statusText: response.statusText,
+ config,
+ request
+ })
+ })
+ } catch (err) {
+ unsubscribe && unsubscribe();
+
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
+ throw Object.assign(
+ new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK, config, request),
+ {
+ cause: err.cause || err
+ }
+ )
+ }
+
+ throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(err, err && err.code, config, request);
+ }
+ }
+}
+
+const seedCache = new Map();
+
+const getFetch = (config) => {
+ let env = (config && config.env) || {};
+ const {fetch, Request, Response} = env;
+ const seeds = [
+ Request, Response, fetch
+ ];
+
+ let len = seeds.length, i = len,
+ seed, target, map = seedCache;
+
+ while (i--) {
+ seed = seeds[i];
+ target = map.get(seed);
+
+ target === undefined && map.set(seed, target = (i ? new Map() : factory(env)))
+
+ map = target;
+ }
+
+ return target;
+};
+
+const adapter = getFetch();
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (adapter);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/adapters/xhr.js":
+/*!************************************************!*\
+ !*** ./node_modules/axios/lib/adapters/xhr.js ***!
+ \************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../core/settle.js */ "./node_modules/axios/lib/core/settle.js");
+/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/transitional.js */ "./node_modules/axios/lib/defaults/transitional.js");
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
+/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "./node_modules/axios/lib/helpers/parseProtocol.js");
+/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
+/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
+/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "./node_modules/axios/lib/helpers/progressEventReducer.js");
+/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "./node_modules/axios/lib/helpers/resolveConfig.js");
+
+
+
+
+
+
+
+
+
+
+
+const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported && function (config) {
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
+ const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__["default"])(config);
+ let requestData = _config.data;
+ const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(_config.headers).normalize();
+ let {responseType, onUploadProgress, onDownloadProgress} = _config;
+ let onCanceled;
+ let uploadThrottled, downloadThrottled;
+ let flushUpload, flushDownload;
+
+ function done() {
+ flushUpload && flushUpload(); // flush events
+ flushDownload && flushDownload(); // flush events
+
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
+
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
+ }
+
+ let request = new XMLHttpRequest();
+
+ request.open(_config.method.toUpperCase(), _config.url, true);
+
+ // Set the request timeout in MS
+ request.timeout = _config.timeout;
+
+ function onloadend() {
+ if (!request) {
+ return;
+ }
+ // Prepare the response
+ const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
+ );
+ const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
+ request.responseText : request.response;
+ const response = {
+ data: responseData,
+ status: request.status,
+ statusText: request.statusText,
+ headers: responseHeaders,
+ config,
+ request
+ };
+
+ (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(function _resolve(value) {
+ resolve(value);
+ done();
+ }, function _reject(err) {
+ reject(err);
+ done();
+ }, response);
+
+ // Clean up request
+ request = null;
+ }
+
+ if ('onloadend' in request) {
+ // Use onloadend if available
+ request.onloadend = onloadend;
+ } else {
+ // Listen for ready state to emulate onloadend
+ request.onreadystatechange = function handleLoad() {
+ if (!request || request.readyState !== 4) {
+ return;
+ }
+
+ // The request errored out and we didn't get a response, this will be
+ // handled by onerror instead
+ // With one exception: request that using file: protocol, most browsers
+ // will return status as 0 even though it's a successful request
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
+ return;
+ }
+ // readystate handler is calling before onerror or ontimeout handlers,
+ // so we should call onloadend on the next 'tick'
+ setTimeout(onloadend);
+ };
+ }
+
+ // Handle browser request cancellation (as opposed to a manual cancellation)
+ request.onabort = function handleAbort() {
+ if (!request) {
+ return;
+ }
+
+ reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED, config, request));
+
+ // Clean up request
+ request = null;
+ };
+
+ // Handle low level network errors
+ request.onerror = function handleError(event) {
+ // Browsers deliver a ProgressEvent in XHR onerror
+ // (message may be empty; when present, surface it)
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
+ const msg = event && event.message ? event.message : 'Network Error';
+ const err = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](msg, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_NETWORK, config, request);
+ // attach the underlying event for consumers who want details
+ err.event = event || null;
+ reject(err);
+ request = null;
+ };
+
+ // Handle timeout
+ request.ontimeout = function handleTimeout() {
+ let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
+ const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__["default"];
+ if (_config.timeoutErrorMessage) {
+ timeoutErrorMessage = _config.timeoutErrorMessage;
+ }
+ reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](
+ timeoutErrorMessage,
+ transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED,
+ config,
+ request));
+
+ // Clean up request
+ request = null;
+ };
+
+ // Remove Content-Type if data is undefined
+ requestData === undefined && requestHeaders.setContentType(null);
+
+ // Add headers to the request
+ if ('setRequestHeader' in request) {
+ _utils_js__WEBPACK_IMPORTED_MODULE_5__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
+ request.setRequestHeader(key, val);
+ });
+ }
+
+ // Add withCredentials to request if needed
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_5__["default"].isUndefined(_config.withCredentials)) {
+ request.withCredentials = !!_config.withCredentials;
+ }
+
+ // Add responseType to request if needed
+ if (responseType && responseType !== 'json') {
+ request.responseType = _config.responseType;
+ }
+
+ // Handle progress if needed
+ if (onDownloadProgress) {
+ ([downloadThrottled, flushDownload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventReducer)(onDownloadProgress, true));
+ request.addEventListener('progress', downloadThrottled);
+ }
+
+ // Not all browsers support upload events
+ if (onUploadProgress && request.upload) {
+ ([uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventReducer)(onUploadProgress));
+
+ request.upload.addEventListener('progress', uploadThrottled);
+
+ request.upload.addEventListener('loadend', flushUpload);
+ }
+
+ if (_config.cancelToken || _config.signal) {
+ // Handle cancellation
+ // eslint-disable-next-line func-names
+ onCanceled = cancel => {
+ if (!request) {
+ return;
+ }
+ reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__["default"](null, config, request) : cancel);
+ request.abort();
+ request = null;
+ };
+
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
+ if (_config.signal) {
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
+ }
+ }
+
+ const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__["default"])(_config.url);
+
+ if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_9__["default"].protocols.indexOf(protocol) === -1) {
+ reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_BAD_REQUEST, config));
+ return;
+ }
+
+
+ // Send the request
+ request.send(requestData || null);
+ });
+});
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/axios.js":
+/*!*****************************************!*\
+ !*** ./node_modules/axios/lib/axios.js ***!
+ \*****************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/axios/lib/helpers/bind.js");
+/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/Axios.js */ "./node_modules/axios/lib/core/Axios.js");
+/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js");
+/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "./node_modules/axios/lib/defaults/index.js");
+/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ "./node_modules/axios/lib/helpers/formDataToJSON.js");
+/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
+/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CancelToken.js */ "./node_modules/axios/lib/cancel/CancelToken.js");
+/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/isCancel.js */ "./node_modules/axios/lib/cancel/isCancel.js");
+/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./env/data.js */ "./node_modules/axios/lib/env/data.js");
+/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers/toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js");
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers/spread.js */ "./node_modules/axios/lib/helpers/spread.js");
+/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ "./node_modules/axios/lib/helpers/isAxiosError.js");
+/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
+/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ "./node_modules/axios/lib/adapters/adapters.js");
+/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ "./node_modules/axios/lib/helpers/HttpStatusCode.js");
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/**
+ * Create an instance of Axios
+ *
+ * @param {Object} defaultConfig The default config for the instance
+ *
+ * @returns {Axios} A new instance of Axios
+ */
+function createInstance(defaultConfig) {
+ const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"](defaultConfig);
+ const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype.request, context);
+
+ // Copy axios.prototype to instance
+ _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"].prototype, context, {allOwnKeys: true});
+
+ // Copy context to instance
+ _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].extend(instance, context, null, {allOwnKeys: true});
+
+ // Factory for creating new instances
+ instance.create = function create(instanceConfig) {
+ return createInstance((0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(defaultConfig, instanceConfig));
+ };
+
+ return instance;
+}
+
+// Create the default instance to be exported
+const axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
+
+// Expose Axios class to allow class inheritance
+axios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__["default"];
+
+// Expose Cancel & CancelToken
+axios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__["default"];
+axios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__["default"];
+axios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__["default"];
+axios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_8__.VERSION;
+axios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__["default"];
+
+// Expose AxiosError class
+axios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__["default"];
+
+// alias for CanceledError for backward compatibility
+axios.Cancel = axios.CanceledError;
+
+// Expose all/spread
+axios.all = function all(promises) {
+ return Promise.all(promises);
+};
+
+axios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__["default"];
+
+// Expose isAxiosError
+axios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__["default"];
+
+// Expose mergeConfig
+axios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"];
+
+axios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__["default"];
+
+axios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isHTMLForm(thing) ? new FormData(thing) : thing);
+
+axios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__["default"].getAdapter;
+
+axios.HttpStatusCode = _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__["default"];
+
+axios.default = axios;
+
+// this module should only have a default export
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (axios);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/cancel/CancelToken.js":
+/*!******************************************************!*\
+ !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
+ \******************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
+
+
+
+
+/**
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
+ *
+ * @param {Function} executor The executor function.
+ *
+ * @returns {CancelToken}
+ */
+class CancelToken {
+ constructor(executor) {
+ if (typeof executor !== 'function') {
+ throw new TypeError('executor must be a function.');
+ }
+
+ let resolvePromise;
+
+ this.promise = new Promise(function promiseExecutor(resolve) {
+ resolvePromise = resolve;
+ });
+
+ const token = this;
+
+ // eslint-disable-next-line func-names
+ this.promise.then(cancel => {
+ if (!token._listeners) return;
+
+ let i = token._listeners.length;
+
+ while (i-- > 0) {
+ token._listeners[i](cancel);
+ }
+ token._listeners = null;
+ });
+
+ // eslint-disable-next-line func-names
+ this.promise.then = onfulfilled => {
+ let _resolve;
+ // eslint-disable-next-line func-names
+ const promise = new Promise(resolve => {
+ token.subscribe(resolve);
+ _resolve = resolve;
+ }).then(onfulfilled);
+
+ promise.cancel = function reject() {
+ token.unsubscribe(_resolve);
+ };
+
+ return promise;
+ };
+
+ executor(function cancel(message, config, request) {
+ if (token.reason) {
+ // Cancellation has already been requested
+ return;
+ }
+
+ token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](message, config, request);
+ resolvePromise(token.reason);
+ });
+ }
+
+ /**
+ * Throws a `CanceledError` if cancellation has been requested.
+ */
+ throwIfRequested() {
+ if (this.reason) {
+ throw this.reason;
+ }
+ }
+
+ /**
+ * Subscribe to the cancel signal
+ */
+
+ subscribe(listener) {
+ if (this.reason) {
+ listener(this.reason);
+ return;
+ }
+
+ if (this._listeners) {
+ this._listeners.push(listener);
+ } else {
+ this._listeners = [listener];
+ }
+ }
+
+ /**
+ * Unsubscribe from the cancel signal
+ */
+
+ unsubscribe(listener) {
+ if (!this._listeners) {
+ return;
+ }
+ const index = this._listeners.indexOf(listener);
+ if (index !== -1) {
+ this._listeners.splice(index, 1);
+ }
+ }
+
+ toAbortSignal() {
+ const controller = new AbortController();
+
+ const abort = (err) => {
+ controller.abort(err);
+ };
+
+ this.subscribe(abort);
+
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
+
+ return controller.signal;
+ }
+
+ /**
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
+ * cancels the `CancelToken`.
+ */
+ static source() {
+ let cancel;
+ const token = new CancelToken(function executor(c) {
+ cancel = c;
+ });
+ return {
+ token,
+ cancel
+ };
+ }
+}
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CancelToken);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/cancel/CanceledError.js":
+/*!********************************************************!*\
+ !*** ./node_modules/axios/lib/cancel/CanceledError.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+
+
+
+
+
+/**
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
+ *
+ * @param {string=} message The message.
+ * @param {Object=} config The config.
+ * @param {Object=} request The request.
+ *
+ * @returns {CanceledError} The created error.
+ */
+function CanceledError(message, config, request) {
+ // eslint-disable-next-line no-eq-null,eqeqeq
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_CANCELED, config, request);
+ this.name = 'CanceledError';
+}
+
+_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"], {
+ __CANCEL__: true
+});
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanceledError);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/cancel/isCancel.js":
+/*!***************************************************!*\
+ !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
+ \***************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ isCancel)
+/* harmony export */ });
+
+
+function isCancel(value) {
+ return !!(value && value.__CANCEL__);
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/Axios.js":
+/*!**********************************************!*\
+ !*** ./node_modules/axios/lib/core/Axios.js ***!
+ \**********************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/buildURL.js */ "./node_modules/axios/lib/helpers/buildURL.js");
+/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ "./node_modules/axios/lib/core/InterceptorManager.js");
+/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dispatchRequest.js */ "./node_modules/axios/lib/core/dispatchRequest.js");
+/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js");
+/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildFullPath.js */ "./node_modules/axios/lib/core/buildFullPath.js");
+/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ "./node_modules/axios/lib/helpers/validator.js");
+/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
+
+
+
+
+
+
+
+
+
+
+
+const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].validators;
+
+/**
+ * Create a new instance of Axios
+ *
+ * @param {Object} instanceConfig The default config for the instance
+ *
+ * @return {Axios} A new instance of Axios
+ */
+class Axios {
+ constructor(instanceConfig) {
+ this.defaults = instanceConfig || {};
+ this.interceptors = {
+ request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"](),
+ response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"]()
+ };
+ }
+
+ /**
+ * Dispatch a request
+ *
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
+ * @param {?Object} config
+ *
+ * @returns {Promise} The Promise to be fulfilled
+ */
+ async request(configOrUrl, config) {
+ try {
+ return await this._request(configOrUrl, config);
+ } catch (err) {
+ if (err instanceof Error) {
+ let dummy = {};
+
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
+
+ // slice off the Error: ... line
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
+ try {
+ if (!err.stack) {
+ err.stack = stack;
+ // match without the 2 top stack lines
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
+ err.stack += '\n' + stack
+ }
+ } catch (e) {
+ // ignore the case where "stack" is an un-writable property
+ }
+ }
+
+ throw err;
+ }
+ }
+
+ _request(configOrUrl, config) {
+ /*eslint no-param-reassign:0*/
+ // Allow for axios('example/url'[, config]) a la fetch API
+ if (typeof configOrUrl === 'string') {
+ config = config || {};
+ config.url = configOrUrl;
+ } else {
+ config = configOrUrl || {};
+ }
+
+ config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config);
+
+ const {transitional, paramsSerializer, headers} = config;
+
+ if (transitional !== undefined) {
+ _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(transitional, {
+ silentJSONParsing: validators.transitional(validators.boolean),
+ forcedJSONParsing: validators.transitional(validators.boolean),
+ clarifyTimeoutError: validators.transitional(validators.boolean)
+ }, false);
+ }
+
+ if (paramsSerializer != null) {
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(paramsSerializer)) {
+ config.paramsSerializer = {
+ serialize: paramsSerializer
+ }
+ } else {
+ _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(paramsSerializer, {
+ encode: validators.function,
+ serialize: validators.function
+ }, true);
+ }
+ }
+
+ // Set config.allowAbsoluteUrls
+ if (config.allowAbsoluteUrls !== undefined) {
+ // do nothing
+ } else if (this.defaults.allowAbsoluteUrls !== undefined) {
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
+ } else {
+ config.allowAbsoluteUrls = true;
+ }
+
+ _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(config, {
+ baseUrl: validators.spelling('baseURL'),
+ withXsrfToken: validators.spelling('withXSRFToken')
+ }, true);
+
+ // Set config.method
+ config.method = (config.method || this.defaults.method || 'get').toLowerCase();
+
+ // Flatten headers
+ let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].merge(
+ headers.common,
+ headers[config.method]
+ );
+
+ headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
+ (method) => {
+ delete headers[method];
+ }
+ );
+
+ config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].concat(contextHeaders, headers);
+
+ // filter out skipped interceptors
+ const requestInterceptorChain = [];
+ let synchronousRequestInterceptors = true;
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
+ return;
+ }
+
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
+
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
+ });
+
+ const responseInterceptorChain = [];
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
+ });
+
+ let promise;
+ let i = 0;
+ let len;
+
+ if (!synchronousRequestInterceptors) {
+ const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].bind(this), undefined];
+ chain.unshift(...requestInterceptorChain);
+ chain.push(...responseInterceptorChain);
+ len = chain.length;
+
+ promise = Promise.resolve(config);
+
+ while (i < len) {
+ promise = promise.then(chain[i++], chain[i++]);
+ }
+
+ return promise;
+ }
+
+ len = requestInterceptorChain.length;
+
+ let newConfig = config;
+
+ while (i < len) {
+ const onFulfilled = requestInterceptorChain[i++];
+ const onRejected = requestInterceptorChain[i++];
+ try {
+ newConfig = onFulfilled(newConfig);
+ } catch (error) {
+ onRejected.call(this, error);
+ break;
+ }
+ }
+
+ try {
+ promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__["default"].call(this, newConfig);
+ } catch (error) {
+ return Promise.reject(error);
+ }
+
+ i = 0;
+ len = responseInterceptorChain.length;
+
+ while (i < len) {
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
+ }
+
+ return promise;
+ }
+
+ getUri(config) {
+ config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config);
+ const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__["default"])(config.baseURL, config.url, config.allowAbsoluteUrls);
+ return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])(fullPath, config.params, config.paramsSerializer);
+ }
+}
+
+// Provide aliases for supported request methods
+_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
+ /*eslint func-names:0*/
+ Axios.prototype[method] = function(url, config) {
+ return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, {
+ method,
+ url,
+ data: (config || {}).data
+ }));
+ };
+});
+
+_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+ /*eslint func-names:0*/
+
+ function generateHTTPMethod(isForm) {
+ return function httpMethod(url, data, config) {
+ return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(config || {}, {
+ method,
+ headers: isForm ? {
+ 'Content-Type': 'multipart/form-data'
+ } : {},
+ url,
+ data
+ }));
+ };
+ }
+
+ Axios.prototype[method] = generateHTTPMethod();
+
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
+});
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Axios);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/AxiosError.js":
+/*!***************************************************!*\
+ !*** ./node_modules/axios/lib/core/AxiosError.js ***!
+ \***************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+
+
+
+
+/**
+ * Create an Error with the specified message, config, error code, request and response.
+ *
+ * @param {string} message The error message.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [config] The config.
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ *
+ * @returns {Error} The created error.
+ */
+function AxiosError(message, code, config, request, response) {
+ Error.call(this);
+
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, this.constructor);
+ } else {
+ this.stack = (new Error()).stack;
+ }
+
+ this.message = message;
+ this.name = 'AxiosError';
+ code && (this.code = code);
+ config && (this.config = config);
+ request && (this.request = request);
+ if (response) {
+ this.response = response;
+ this.status = response.status ? response.status : null;
+ }
+}
+
+_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].inherits(AxiosError, Error, {
+ toJSON: function toJSON() {
+ return {
+ // Standard
+ message: this.message,
+ name: this.name,
+ // Microsoft
+ description: this.description,
+ number: this.number,
+ // Mozilla
+ fileName: this.fileName,
+ lineNumber: this.lineNumber,
+ columnNumber: this.columnNumber,
+ stack: this.stack,
+ // Axios
+ config: _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(this.config),
+ code: this.code,
+ status: this.status
+ };
+ }
+});
+
+const prototype = AxiosError.prototype;
+const descriptors = {};
+
+[
+ 'ERR_BAD_OPTION_VALUE',
+ 'ERR_BAD_OPTION',
+ 'ECONNABORTED',
+ 'ETIMEDOUT',
+ 'ERR_NETWORK',
+ 'ERR_FR_TOO_MANY_REDIRECTS',
+ 'ERR_DEPRECATED',
+ 'ERR_BAD_RESPONSE',
+ 'ERR_BAD_REQUEST',
+ 'ERR_CANCELED',
+ 'ERR_NOT_SUPPORT',
+ 'ERR_INVALID_URL'
+// eslint-disable-next-line func-names
+].forEach(code => {
+ descriptors[code] = {value: code};
+});
+
+Object.defineProperties(AxiosError, descriptors);
+Object.defineProperty(prototype, 'isAxiosError', {value: true});
+
+// eslint-disable-next-line func-names
+AxiosError.from = (error, code, config, request, response, customProps) => {
+ const axiosError = Object.create(prototype);
+
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(error, axiosError, function filter(obj) {
+ return obj !== Error.prototype;
+ }, prop => {
+ return prop !== 'isAxiosError';
+ });
+
+ const msg = error && error.message ? error.message : 'Error';
+
+ // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
+ const errCode = code == null && error ? error.code : code;
+ AxiosError.call(axiosError, msg, errCode, config, request, response);
+
+ // Chain the original error on the standard field; non-enumerable to avoid JSON noise
+ if (error && axiosError.cause == null) {
+ Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
+ }
+
+ axiosError.name = (error && error.name) || 'Error';
+
+ customProps && Object.assign(axiosError, customProps);
+
+ return axiosError;
+};
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosError);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/AxiosHeaders.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/axios/lib/core/AxiosHeaders.js ***!
+ \*****************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ "./node_modules/axios/lib/helpers/parseHeaders.js");
+
+
+
+
+
+const $internals = Symbol('internals');
+
+function normalizeHeader(header) {
+ return header && String(header).trim().toLowerCase();
+}
+
+function normalizeValue(value) {
+ if (value === false || value == null) {
+ return value;
+ }
+
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : String(value);
+}
+
+function parseTokens(str) {
+ const tokens = Object.create(null);
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
+ let match;
+
+ while ((match = tokensRE.exec(str))) {
+ tokens[match[1]] = match[2];
+ }
+
+ return tokens;
+}
+
+const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
+
+function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(filter)) {
+ return filter.call(this, value, header);
+ }
+
+ if (isHeaderNameFilter) {
+ value = header;
+ }
+
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(value)) return;
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(filter)) {
+ return value.indexOf(filter) !== -1;
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(filter)) {
+ return filter.test(value);
+ }
+}
+
+function formatHeader(header) {
+ return header.trim()
+ .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
+ return char.toUpperCase() + str;
+ });
+}
+
+function buildAccessors(obj, header) {
+ const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toCamelCase(' ' + header);
+
+ ['get', 'set', 'has'].forEach(methodName => {
+ Object.defineProperty(obj, methodName + accessorName, {
+ value: function(arg1, arg2, arg3) {
+ return this[methodName].call(this, header, arg1, arg2, arg3);
+ },
+ configurable: true
+ });
+ });
+}
+
+class AxiosHeaders {
+ constructor(headers) {
+ headers && this.set(headers);
+ }
+
+ set(header, valueOrRewrite, rewrite) {
+ const self = this;
+
+ function setHeader(_value, _header, _rewrite) {
+ const lHeader = normalizeHeader(_header);
+
+ if (!lHeader) {
+ throw new Error('header name must be a non-empty string');
+ }
+
+ const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, lHeader);
+
+ if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
+ self[key || _header] = normalizeValue(_value);
+ }
+ }
+
+ const setHeaders = (headers, _rewrite) =>
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(header) || header instanceof this.constructor) {
+ setHeaders(header, valueOrRewrite)
+ } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
+ setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"])(header), valueOrRewrite);
+ } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(header) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isIterable(header)) {
+ let obj = {}, dest, key;
+ for (const entry of header) {
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(entry)) {
+ throw TypeError('Object iterator must return a key-value pair');
+ }
+
+ obj[key = entry[0]] = (dest = obj[key]) ?
+ (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
+ }
+
+ setHeaders(obj, valueOrRewrite)
+ } else {
+ header != null && setHeader(valueOrRewrite, header, rewrite);
+ }
+
+ return this;
+ }
+
+ get(header, parser) {
+ header = normalizeHeader(header);
+
+ if (header) {
+ const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header);
+
+ if (key) {
+ const value = this[key];
+
+ if (!parser) {
+ return value;
+ }
+
+ if (parser === true) {
+ return parseTokens(value);
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(parser)) {
+ return parser.call(this, value, key);
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isRegExp(parser)) {
+ return parser.exec(value);
+ }
+
+ throw new TypeError('parser must be boolean|regexp|function');
+ }
+ }
+ }
+
+ has(header, matcher) {
+ header = normalizeHeader(header);
+
+ if (header) {
+ const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header);
+
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
+ }
+
+ return false;
+ }
+
+ delete(header, matcher) {
+ const self = this;
+ let deleted = false;
+
+ function deleteHeader(_header) {
+ _header = normalizeHeader(_header);
+
+ if (_header) {
+ const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, _header);
+
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
+ delete self[key];
+
+ deleted = true;
+ }
+ }
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header)) {
+ header.forEach(deleteHeader);
+ } else {
+ deleteHeader(header);
+ }
+
+ return deleted;
+ }
+
+ clear(matcher) {
+ const keys = Object.keys(this);
+ let i = keys.length;
+ let deleted = false;
+
+ while (i--) {
+ const key = keys[i];
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
+ delete this[key];
+ deleted = true;
+ }
+ }
+
+ return deleted;
+ }
+
+ normalize(format) {
+ const self = this;
+ const headers = {};
+
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => {
+ const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(headers, header);
+
+ if (key) {
+ self[key] = normalizeValue(value);
+ delete self[header];
+ return;
+ }
+
+ const normalized = format ? formatHeader(header) : String(header).trim();
+
+ if (normalized !== header) {
+ delete self[header];
+ }
+
+ self[normalized] = normalizeValue(value);
+
+ headers[normalized] = true;
+ });
+
+ return this;
+ }
+
+ concat(...targets) {
+ return this.constructor.concat(this, ...targets);
+ }
+
+ toJSON(asStrings) {
+ const obj = Object.create(null);
+
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => {
+ value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.join(', ') : value);
+ });
+
+ return obj;
+ }
+
+ [Symbol.iterator]() {
+ return Object.entries(this.toJSON())[Symbol.iterator]();
+ }
+
+ toString() {
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
+ }
+
+ getSetCookie() {
+ return this.get("set-cookie") || [];
+ }
+
+ get [Symbol.toStringTag]() {
+ return 'AxiosHeaders';
+ }
+
+ static from(thing) {
+ return thing instanceof this ? thing : new this(thing);
+ }
+
+ static concat(first, ...targets) {
+ const computed = new this(first);
+
+ targets.forEach((target) => computed.set(target));
+
+ return computed;
+ }
+
+ static accessor(header) {
+ const internals = this[$internals] = (this[$internals] = {
+ accessors: {}
+ });
+
+ const accessors = internals.accessors;
+ const prototype = this.prototype;
+
+ function defineAccessor(_header) {
+ const lHeader = normalizeHeader(_header);
+
+ if (!accessors[lHeader]) {
+ buildAccessors(prototype, _header);
+ accessors[lHeader] = true;
+ }
+ }
+
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
+
+ return this;
+ }
+}
+
+AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
+
+// reserved names hotfix
+_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
+ let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
+ return {
+ get: () => value,
+ set(headerValue) {
+ this[mapped] = headerValue;
+ }
+ }
+});
+
+_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders);
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosHeaders);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/InterceptorManager.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
+ \***********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
+
+
+
+
+class InterceptorManager {
+ constructor() {
+ this.handlers = [];
+ }
+
+ /**
+ * Add a new interceptor to the stack
+ *
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
+ *
+ * @return {Number} An ID used to remove interceptor later
+ */
+ use(fulfilled, rejected, options) {
+ this.handlers.push({
+ fulfilled,
+ rejected,
+ synchronous: options ? options.synchronous : false,
+ runWhen: options ? options.runWhen : null
+ });
+ return this.handlers.length - 1;
+ }
+
+ /**
+ * Remove an interceptor from the stack
+ *
+ * @param {Number} id The ID that was returned by `use`
+ *
+ * @returns {void}
+ */
+ eject(id) {
+ if (this.handlers[id]) {
+ this.handlers[id] = null;
+ }
+ }
+
+ /**
+ * Clear all interceptors from the stack
+ *
+ * @returns {void}
+ */
+ clear() {
+ if (this.handlers) {
+ this.handlers = [];
+ }
+ }
+
+ /**
+ * Iterate over all the registered interceptors
+ *
+ * This method is particularly useful for skipping over any
+ * interceptors that may have become `null` calling `eject`.
+ *
+ * @param {Function} fn The function to call for each interceptor
+ *
+ * @returns {void}
+ */
+ forEach(fn) {
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this.handlers, function forEachHandler(h) {
+ if (h !== null) {
+ fn(h);
+ }
+ });
+ }
+}
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InterceptorManager);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/buildFullPath.js":
+/*!******************************************************!*\
+ !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
+ \******************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ buildFullPath)
+/* harmony export */ });
+/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
+/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ "./node_modules/axios/lib/helpers/combineURLs.js");
+
+
+
+
+
+/**
+ * Creates a new URL by combining the baseURL with the requestedURL,
+ * only when the requestedURL is not already an absolute URL.
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} requestedURL Absolute or relative URL to combine
+ *
+ * @returns {string} The combined full path
+ */
+function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
+ let isRelativeUrl = !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL);
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
+ return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL);
+ }
+ return requestedURL;
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/dispatchRequest.js":
+/*!********************************************************!*\
+ !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ dispatchRequest)
+/* harmony export */ });
+/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transformData.js */ "./node_modules/axios/lib/core/transformData.js");
+/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cancel/isCancel.js */ "./node_modules/axios/lib/cancel/isCancel.js");
+/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/axios/lib/defaults/index.js");
+/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
+/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
+/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../adapters/adapters.js */ "./node_modules/axios/lib/adapters/adapters.js");
+
+
+
+
+
+
+
+
+
+/**
+ * Throws a `CanceledError` if cancellation has been requested.
+ *
+ * @param {Object} config The config that is to be used for the request
+ *
+ * @returns {void}
+ */
+function throwIfCancellationRequested(config) {
+ if (config.cancelToken) {
+ config.cancelToken.throwIfRequested();
+ }
+
+ if (config.signal && config.signal.aborted) {
+ throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](null, config);
+ }
+}
+
+/**
+ * Dispatch a request to the server using the configured adapter.
+ *
+ * @param {object} config The config that is to be used for the request
+ *
+ * @returns {Promise} The Promise to be fulfilled
+ */
+function dispatchRequest(config) {
+ throwIfCancellationRequested(config);
+
+ config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers);
+
+ // Transform request data
+ config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call(
+ config,
+ config.transformRequest
+ );
+
+ if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
+ config.headers.setContentType('application/x-www-form-urlencoded', false);
+ }
+
+ const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].adapter, config);
+
+ return adapter(config).then(function onAdapterResolution(response) {
+ throwIfCancellationRequested(config);
+
+ // Transform response data
+ response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call(
+ config,
+ config.transformResponse,
+ response
+ );
+
+ response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(response.headers);
+
+ return response;
+ }, function onAdapterRejection(reason) {
+ if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__["default"])(reason)) {
+ throwIfCancellationRequested(config);
+
+ // Transform response data
+ if (reason && reason.response) {
+ reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__["default"].call(
+ config,
+ config.transformResponse,
+ reason.response
+ );
+ reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(reason.response.headers);
+ }
+ }
+
+ return Promise.reject(reason);
+ });
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/mergeConfig.js":
+/*!****************************************************!*\
+ !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
+ \****************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ mergeConfig)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
+
+
+
+
+
+const headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? { ...thing } : thing;
+
+/**
+ * Config-specific merge-function which creates a new config-object
+ * by merging two configuration objects together.
+ *
+ * @param {Object} config1
+ * @param {Object} config2
+ *
+ * @returns {Object} New object resulting from merging config2 to config1
+ */
+function mergeConfig(config1, config2) {
+ // eslint-disable-next-line no-param-reassign
+ config2 = config2 || {};
+ const config = {};
+
+ function getMergedValue(target, source, prop, caseless) {
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) {
+ return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({caseless}, target, source);
+ } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) {
+ return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge({}, source);
+ } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArray(source)) {
+ return source.slice();
+ }
+ return source;
+ }
+
+ // eslint-disable-next-line consistent-return
+ function mergeDeepProperties(a, b, prop, caseless) {
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) {
+ return getMergedValue(a, b, prop, caseless);
+ } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) {
+ return getMergedValue(undefined, a, prop, caseless);
+ }
+ }
+
+ // eslint-disable-next-line consistent-return
+ function valueFromConfig2(a, b) {
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) {
+ return getMergedValue(undefined, b);
+ }
+ }
+
+ // eslint-disable-next-line consistent-return
+ function defaultToConfig2(a, b) {
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) {
+ return getMergedValue(undefined, b);
+ } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(a)) {
+ return getMergedValue(undefined, a);
+ }
+ }
+
+ // eslint-disable-next-line consistent-return
+ function mergeDirectKeys(a, b, prop) {
+ if (prop in config2) {
+ return getMergedValue(a, b);
+ } else if (prop in config1) {
+ return getMergedValue(undefined, a);
+ }
+ }
+
+ const mergeMap = {
+ url: valueFromConfig2,
+ method: valueFromConfig2,
+ data: valueFromConfig2,
+ baseURL: defaultToConfig2,
+ transformRequest: defaultToConfig2,
+ transformResponse: defaultToConfig2,
+ paramsSerializer: defaultToConfig2,
+ timeout: defaultToConfig2,
+ timeoutMessage: defaultToConfig2,
+ withCredentials: defaultToConfig2,
+ withXSRFToken: defaultToConfig2,
+ adapter: defaultToConfig2,
+ responseType: defaultToConfig2,
+ xsrfCookieName: defaultToConfig2,
+ xsrfHeaderName: defaultToConfig2,
+ onUploadProgress: defaultToConfig2,
+ onDownloadProgress: defaultToConfig2,
+ decompress: defaultToConfig2,
+ maxContentLength: defaultToConfig2,
+ maxBodyLength: defaultToConfig2,
+ beforeRedirect: defaultToConfig2,
+ transport: defaultToConfig2,
+ httpAgent: defaultToConfig2,
+ httpsAgent: defaultToConfig2,
+ cancelToken: defaultToConfig2,
+ socketPath: defaultToConfig2,
+ responseEncoding: defaultToConfig2,
+ validateStatus: mergeDirectKeys,
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
+ };
+
+ _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
+ const merge = mergeMap[prop] || mergeDeepProperties;
+ const configValue = merge(config1[prop], config2[prop], prop);
+ (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
+ });
+
+ return config;
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/settle.js":
+/*!***********************************************!*\
+ !*** ./node_modules/axios/lib/core/settle.js ***!
+ \***********************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ settle)
+/* harmony export */ });
+/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+
+
+
+
+/**
+ * Resolve or reject a Promise based on response status.
+ *
+ * @param {Function} resolve A function that resolves the promise.
+ * @param {Function} reject A function that rejects the promise.
+ * @param {object} response The response.
+ *
+ * @returns {object} The response.
+ */
+function settle(resolve, reject, response) {
+ const validateStatus = response.config.validateStatus;
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
+ resolve(response);
+ } else {
+ reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"](
+ 'Request failed with status code ' + response.status,
+ [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
+ response.config,
+ response.request,
+ response
+ ));
+ }
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/core/transformData.js":
+/*!******************************************************!*\
+ !*** ./node_modules/axios/lib/core/transformData.js ***!
+ \******************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ transformData)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/axios/lib/defaults/index.js");
+/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
+
+
+
+
+
+
+/**
+ * Transform the data for a request or a response
+ *
+ * @param {Array|Function} fns A single function or Array of functions
+ * @param {?Object} response The response object
+ *
+ * @returns {*} The resulting transformed data
+ */
+function transformData(fns, response) {
+ const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__["default"];
+ const context = response || config;
+ const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(context.headers);
+ let data = context.data;
+
+ _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(fns, function transform(fn) {
+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
+ });
+
+ headers.normalize();
+
+ return data;
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/defaults/index.js":
+/*!**************************************************!*\
+ !*** ./node_modules/axios/lib/defaults/index.js ***!
+ \**************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transitional.js */ "./node_modules/axios/lib/defaults/transitional.js");
+/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js");
+/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ "./node_modules/axios/lib/helpers/toURLEncodedForm.js");
+/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
+/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ "./node_modules/axios/lib/helpers/formDataToJSON.js");
+
+
+
+
+
+
+
+
+
+
+/**
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
+ * of the input
+ *
+ * @param {any} rawValue - The value to be stringified.
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
+ * @param {Function} encoder - A function that takes a value and returns a string.
+ *
+ * @returns {string} A stringified version of the rawValue.
+ */
+function stringifySafely(rawValue, parser, encoder) {
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(rawValue)) {
+ try {
+ (parser || JSON.parse)(rawValue);
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].trim(rawValue);
+ } catch (e) {
+ if (e.name !== 'SyntaxError') {
+ throw e;
+ }
+ }
+ }
+
+ return (encoder || JSON.stringify)(rawValue);
+}
+
+const defaults = {
+
+ transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__["default"],
+
+ adapter: ['xhr', 'http', 'fetch'],
+
+ transformRequest: [function transformRequest(data, headers) {
+ const contentType = headers.getContentType() || '';
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
+ const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(data);
+
+ if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(data)) {
+ data = new FormData(data);
+ }
+
+ const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data);
+
+ if (isFormData) {
+ return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__["default"])(data)) : data;
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) ||
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) ||
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) ||
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) ||
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data) ||
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(data)
+ ) {
+ return data;
+ }
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(data)) {
+ return data.buffer;
+ }
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(data)) {
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
+ return data.toString();
+ }
+
+ let isFileList;
+
+ if (isObjectPayload) {
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
+ return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__["default"])(data, this.formSerializer).toString();
+ }
+
+ if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
+ const _FormData = this.env && this.env.FormData;
+
+ return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__["default"])(
+ isFileList ? {'files[]': data} : data,
+ _FormData && new _FormData(),
+ this.formSerializer
+ );
+ }
+ }
+
+ if (isObjectPayload || hasJSONContentType ) {
+ headers.setContentType('application/json', false);
+ return stringifySafely(data);
+ }
+
+ return data;
+ }],
+
+ transformResponse: [function transformResponse(data) {
+ const transitional = this.transitional || defaults.transitional;
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
+ const JSONRequested = this.responseType === 'json';
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isResponse(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(data)) {
+ return data;
+ }
+
+ if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
+
+ try {
+ return JSON.parse(data, this.parseReviver);
+ } catch (e) {
+ if (strictJSONParsing) {
+ if (e.name === 'SyntaxError') {
+ throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__["default"].ERR_BAD_RESPONSE, this, null, this.response);
+ }
+ throw e;
+ }
+ }
+ }
+
+ return data;
+ }],
+
+ /**
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
+ * timeout is not created.
+ */
+ timeout: 0,
+
+ xsrfCookieName: 'XSRF-TOKEN',
+ xsrfHeaderName: 'X-XSRF-TOKEN',
+
+ maxContentLength: -1,
+ maxBodyLength: -1,
+
+ env: {
+ FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.FormData,
+ Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].classes.Blob
+ },
+
+ validateStatus: function validateStatus(status) {
+ return status >= 200 && status < 300;
+ },
+
+ headers: {
+ common: {
+ 'Accept': 'application/json, text/plain, */*',
+ 'Content-Type': undefined
+ }
+ }
+};
+
+_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
+ defaults.headers[method] = {};
+});
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaults);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/defaults/transitional.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/axios/lib/defaults/transitional.js ***!
+ \*********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ silentJSONParsing: true,
+ forcedJSONParsing: true,
+ clarifyTimeoutError: false
+});
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/env/data.js":
+/*!********************************************!*\
+ !*** ./node_modules/axios/lib/env/data.js ***!
+ \********************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ VERSION: () => (/* binding */ VERSION)
+/* harmony export */ });
+const VERSION = "1.13.2";
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***!
+ \****************************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js");
+
+
+
+
+/**
+ * It encodes a string by replacing all characters that are not in the unreserved set with
+ * their percent-encoded equivalents
+ *
+ * @param {string} str - The string to encode.
+ *
+ * @returns {string} The encoded string.
+ */
+function encode(str) {
+ const charMap = {
+ '!': '%21',
+ "'": '%27',
+ '(': '%28',
+ ')': '%29',
+ '~': '%7E',
+ '%20': '+',
+ '%00': '\x00'
+ };
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
+ return charMap[match];
+ });
+}
+
+/**
+ * It takes a params object and converts it to a FormData object
+ *
+ * @param {Object} params - The parameters to be converted to a FormData object.
+ * @param {Object} options - The options object passed to the Axios constructor.
+ *
+ * @returns {void}
+ */
+function AxiosURLSearchParams(params, options) {
+ this._pairs = [];
+
+ params && (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(params, this, options);
+}
+
+const prototype = AxiosURLSearchParams.prototype;
+
+prototype.append = function append(name, value) {
+ this._pairs.push([name, value]);
+};
+
+prototype.toString = function toString(encoder) {
+ const _encode = encoder ? function(value) {
+ return encoder.call(this, value, encode);
+ } : encode;
+
+ return this._pairs.map(function each(pair) {
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
+ }, '').join('&');
+};
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosURLSearchParams);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/HttpStatusCode.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/HttpStatusCode.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+const HttpStatusCode = {
+ Continue: 100,
+ SwitchingProtocols: 101,
+ Processing: 102,
+ EarlyHints: 103,
+ Ok: 200,
+ Created: 201,
+ Accepted: 202,
+ NonAuthoritativeInformation: 203,
+ NoContent: 204,
+ ResetContent: 205,
+ PartialContent: 206,
+ MultiStatus: 207,
+ AlreadyReported: 208,
+ ImUsed: 226,
+ MultipleChoices: 300,
+ MovedPermanently: 301,
+ Found: 302,
+ SeeOther: 303,
+ NotModified: 304,
+ UseProxy: 305,
+ Unused: 306,
+ TemporaryRedirect: 307,
+ PermanentRedirect: 308,
+ BadRequest: 400,
+ Unauthorized: 401,
+ PaymentRequired: 402,
+ Forbidden: 403,
+ NotFound: 404,
+ MethodNotAllowed: 405,
+ NotAcceptable: 406,
+ ProxyAuthenticationRequired: 407,
+ RequestTimeout: 408,
+ Conflict: 409,
+ Gone: 410,
+ LengthRequired: 411,
+ PreconditionFailed: 412,
+ PayloadTooLarge: 413,
+ UriTooLong: 414,
+ UnsupportedMediaType: 415,
+ RangeNotSatisfiable: 416,
+ ExpectationFailed: 417,
+ ImATeapot: 418,
+ MisdirectedRequest: 421,
+ UnprocessableEntity: 422,
+ Locked: 423,
+ FailedDependency: 424,
+ TooEarly: 425,
+ UpgradeRequired: 426,
+ PreconditionRequired: 428,
+ TooManyRequests: 429,
+ RequestHeaderFieldsTooLarge: 431,
+ UnavailableForLegalReasons: 451,
+ InternalServerError: 500,
+ NotImplemented: 501,
+ BadGateway: 502,
+ ServiceUnavailable: 503,
+ GatewayTimeout: 504,
+ HttpVersionNotSupported: 505,
+ VariantAlsoNegotiates: 506,
+ InsufficientStorage: 507,
+ LoopDetected: 508,
+ NotExtended: 510,
+ NetworkAuthenticationRequired: 511,
+ WebServerIsDown: 521,
+ ConnectionTimedOut: 522,
+ OriginIsUnreachable: 523,
+ TimeoutOccurred: 524,
+ SslHandshakeFailed: 525,
+ InvalidSslCertificate: 526,
+};
+
+Object.entries(HttpStatusCode).forEach(([key, value]) => {
+ HttpStatusCode[value] = key;
+});
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HttpStatusCode);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/bind.js":
+/*!************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/bind.js ***!
+ \************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ bind)
+/* harmony export */ });
+
+
+/**
+ * Create a bound version of a function with a specified `this` context
+ *
+ * @param {Function} fn - The function to bind
+ * @param {*} thisArg - The value to be passed as the `this` parameter
+ * @returns {Function} A new function that will call the original function with the specified `this` context
+ */
+function bind(fn, thisArg) {
+ return function wrap() {
+ return fn.apply(thisArg, arguments);
+ };
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/buildURL.js":
+/*!****************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/buildURL.js ***!
+ \****************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ buildURL)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js");
+
+
+
+
+
+/**
+ * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
+ * URI encoded counterparts
+ *
+ * @param {string} val The value to be encoded.
+ *
+ * @returns {string} The encoded value.
+ */
+function encode(val) {
+ return encodeURIComponent(val).
+ replace(/%3A/gi, ':').
+ replace(/%24/g, '$').
+ replace(/%2C/gi, ',').
+ replace(/%20/g, '+');
+}
+
+/**
+ * Build a URL by appending params to the end
+ *
+ * @param {string} url The base of the url (e.g., http://www.google.com)
+ * @param {object} [params] The params to be appended
+ * @param {?(object|Function)} options
+ *
+ * @returns {string} The formatted url
+ */
+function buildURL(url, params, options) {
+ /*eslint no-param-reassign:0*/
+ if (!params) {
+ return url;
+ }
+
+ const _encode = options && options.encode || encode;
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(options)) {
+ options = {
+ serialize: options
+ };
+ }
+
+ const serializeFn = options && options.serialize;
+
+ let serializedParams;
+
+ if (serializeFn) {
+ serializedParams = serializeFn(params, options);
+ } else {
+ serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(params) ?
+ params.toString() :
+ new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params, options).toString(_encode);
+ }
+
+ if (serializedParams) {
+ const hashmarkIndex = url.indexOf("#");
+
+ if (hashmarkIndex !== -1) {
+ url = url.slice(0, hashmarkIndex);
+ }
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
+ }
+
+ return url;
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/combineURLs.js":
+/*!*******************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/combineURLs.js ***!
+ \*******************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ combineURLs)
+/* harmony export */ });
+
+
+/**
+ * Creates a new URL by combining the specified URLs
+ *
+ * @param {string} baseURL The base URL
+ * @param {string} relativeURL The relative URL
+ *
+ * @returns {string} The combined URL
+ */
+function combineURLs(baseURL, relativeURL) {
+ return relativeURL
+ ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
+ : baseURL;
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/composeSignals.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/composeSignals.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+
+
+
+
+const composeSignals = (signals, timeout) => {
+ const {length} = (signals = signals ? signals.filter(Boolean) : []);
+
+ if (timeout || length) {
+ let controller = new AbortController();
+
+ let aborted;
+
+ const onabort = function (reason) {
+ if (!aborted) {
+ aborted = true;
+ unsubscribe();
+ const err = reason instanceof Error ? reason : this.reason;
+ controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__["default"](err instanceof Error ? err.message : err));
+ }
+ }
+
+ let timer = timeout && setTimeout(() => {
+ timer = null;
+ onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"](`timeout ${timeout} of ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ETIMEDOUT))
+ }, timeout)
+
+ const unsubscribe = () => {
+ if (signals) {
+ timer && clearTimeout(timer);
+ timer = null;
+ signals.forEach(signal => {
+ signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
+ });
+ signals = null;
+ }
+ }
+
+ signals.forEach((signal) => signal.addEventListener('abort', onabort));
+
+ const {signal} = controller;
+
+ signal.unsubscribe = () => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].asap(unsubscribe);
+
+ return signal;
+ }
+}
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (composeSignals);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/cookies.js":
+/*!***************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/cookies.js ***!
+ \***************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
+
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ?
+
+ // Standard browser envs support document.cookie
+ {
+ write(name, value, expires, path, domain, secure, sameSite) {
+ if (typeof document === 'undefined') return;
+
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(expires)) {
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
+ }
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(path)) {
+ cookie.push(`path=${path}`);
+ }
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(domain)) {
+ cookie.push(`domain=${domain}`);
+ }
+ if (secure === true) {
+ cookie.push('secure');
+ }
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(sameSite)) {
+ cookie.push(`SameSite=${sameSite}`);
+ }
+
+ document.cookie = cookie.join('; ');
+ },
+
+ read(name) {
+ if (typeof document === 'undefined') return null;
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
+ return match ? decodeURIComponent(match[1]) : null;
+ },
+
+ remove(name) {
+ this.write(name, '', Date.now() - 86400000, '/');
+ }
+ }
+
+ :
+
+ // Non-standard browser env (web workers, react-native) lack needed support.
+ {
+ write() {},
+ read() {
+ return null;
+ },
+ remove() {}
+ });
+
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/formDataToJSON.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/formDataToJSON.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+
+
+
+
+/**
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
+ *
+ * @param {string} name - The name of the property to get.
+ *
+ * @returns An array of strings.
+ */
+function parsePropPath(name) {
+ // foo[x][y][z]
+ // foo.x.y.z
+ // foo-x-y-z
+ // foo x y z
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].matchAll(/\w+|\[(\w*)]/g, name).map(match => {
+ return match[0] === '[]' ? '' : match[1] || match[0];
+ });
+}
+
+/**
+ * Convert an array to an object.
+ *
+ * @param {Array} arr - The array to convert to an object.
+ *
+ * @returns An object with the same keys and values as the array.
+ */
+function arrayToObject(arr) {
+ const obj = {};
+ const keys = Object.keys(arr);
+ let i;
+ const len = keys.length;
+ let key;
+ for (i = 0; i < len; i++) {
+ key = keys[i];
+ obj[key] = arr[key];
+ }
+ return obj;
+}
+
+/**
+ * It takes a FormData object and returns a JavaScript object
+ *
+ * @param {string} formData The FormData object to convert to JSON.
+ *
+ * @returns {Object | null} The converted object.
+ */
+function formDataToJSON(formData) {
+ function buildPath(path, value, target, index) {
+ let name = path[index++];
+
+ if (name === '__proto__') return true;
+
+ const isNumericKey = Number.isFinite(+name);
+ const isLast = index >= path.length;
+ name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target) ? target.length : name;
+
+ if (isLast) {
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(target, name)) {
+ target[name] = [target[name], value];
+ } else {
+ target[name] = value;
+ }
+
+ return !isNumericKey;
+ }
+
+ if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(target[name])) {
+ target[name] = [];
+ }
+
+ const result = buildPath(path, value, target[name], index);
+
+ if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target[name])) {
+ target[name] = arrayToObject(target[name]);
+ }
+
+ return !isNumericKey;
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(formData.entries)) {
+ const obj = {};
+
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEachEntry(formData, (name, value) => {
+ buildPath(parsePropPath(name), value, obj, 0);
+ });
+
+ return obj;
+ }
+
+ return null;
+}
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (formDataToJSON);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
+ \*********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ isAbsoluteURL)
+/* harmony export */ });
+
+
+/**
+ * Determines whether the specified URL is absolute
+ *
+ * @param {string} url The URL to test
+ *
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
+ */
+function isAbsoluteURL(url) {
+ // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL).
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
+ // by any combination of letters, digits, plus, period, or hyphen.
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/isAxiosError.js":
+/*!********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ isAxiosError)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
+
+
+
+
+/**
+ * Determines whether the payload is an error thrown by Axios
+ *
+ * @param {*} payload The value to test
+ *
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
+ */
+function isAxiosError(payload) {
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(payload) && (payload.isAxiosError === true);
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
+ \***********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
+ url = new URL(url, _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin);
+
+ return (
+ origin.protocol === url.protocol &&
+ origin.host === url.host &&
+ (isMSIE || origin.port === url.port)
+ );
+})(
+ new URL(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin),
+ _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator && /(msie|trident)/i.test(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator.userAgent)
+) : () => true);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/null.js":
+/*!************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/null.js ***!
+ \************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+// eslint-disable-next-line strict
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (null);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
+/*!********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***!
+ \********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
+
+
+
+
+// RawAxiosHeaders whose duplicates are ignored by node
+// c.f. https://nodejs.org/api/http.html#http_message_headers
+const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toObjectSet([
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
+ 'referer', 'retry-after', 'user-agent'
+]);
+
+/**
+ * Parse headers into an object
+ *
+ * ```
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
+ * Content-Type: application/json
+ * Connection: keep-alive
+ * Transfer-Encoding: chunked
+ * ```
+ *
+ * @param {String} rawHeaders Headers needing to be parsed
+ *
+ * @returns {Object} Headers parsed into an object
+ */
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (rawHeaders => {
+ const parsed = {};
+ let key;
+ let val;
+ let i;
+
+ rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
+ i = line.indexOf(':');
+ key = line.substring(0, i).trim().toLowerCase();
+ val = line.substring(i + 1).trim();
+
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
+ return;
+ }
+
+ if (key === 'set-cookie') {
+ if (parsed[key]) {
+ parsed[key].push(val);
+ } else {
+ parsed[key] = [val];
+ }
+ } else {
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
+ }
+ });
+
+ return parsed;
+});
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/parseProtocol.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/parseProtocol.js ***!
+ \*********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ parseProtocol)
+/* harmony export */ });
+
+
+function parseProtocol(url) {
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
+ return match && match[1] || '';
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/progressEventReducer.js":
+/*!****************************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/progressEventReducer.js ***!
+ \****************************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ asyncDecorator: () => (/* binding */ asyncDecorator),
+/* harmony export */ progressEventDecorator: () => (/* binding */ progressEventDecorator),
+/* harmony export */ progressEventReducer: () => (/* binding */ progressEventReducer)
+/* harmony export */ });
+/* harmony import */ var _speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./speedometer.js */ "./node_modules/axios/lib/helpers/speedometer.js");
+/* harmony import */ var _throttle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./throttle.js */ "./node_modules/axios/lib/helpers/throttle.js");
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+
+
+
+
+const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
+ let bytesNotified = 0;
+ const _speedometer = (0,_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250);
+
+ return (0,_throttle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(e => {
+ const loaded = e.loaded;
+ const total = e.lengthComputable ? e.total : undefined;
+ const progressBytes = loaded - bytesNotified;
+ const rate = _speedometer(progressBytes);
+ const inRange = loaded <= total;
+
+ bytesNotified = loaded;
+
+ const data = {
+ loaded,
+ total,
+ progress: total ? (loaded / total) : undefined,
+ bytes: progressBytes,
+ rate: rate ? rate : undefined,
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
+ event: e,
+ lengthComputable: total != null,
+ [isDownloadStream ? 'download' : 'upload']: true
+ };
+
+ listener(data);
+ }, freq);
+}
+
+const progressEventDecorator = (total, throttled) => {
+ const lengthComputable = total != null;
+
+ return [(loaded) => throttled[0]({
+ lengthComputable,
+ total,
+ loaded
+ }), throttled[1]];
+}
+
+const asyncDecorator = (fn) => (...args) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].asap(() => fn(...args));
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/resolveConfig.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/resolveConfig.js ***!
+ \*********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isURLSameOrigin.js */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
+/* harmony import */ var _cookies_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cookies.js */ "./node_modules/axios/lib/helpers/cookies.js");
+/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/buildFullPath.js */ "./node_modules/axios/lib/core/buildFullPath.js");
+/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js");
+/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
+/* harmony import */ var _buildURL_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./buildURL.js */ "./node_modules/axios/lib/helpers/buildURL.js");
+
+
+
+
+
+
+
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((config) => {
+ const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, config);
+
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
+
+ newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
+
+ newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
+
+ // HTTP basic authentication
+ if (auth) {
+ headers.set('Authorization', 'Basic ' +
+ btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
+ );
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_4__["default"].isFormData(data)) {
+ if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserWebWorkerEnv) {
+ headers.setContentType(undefined); // browser handles it
+ } else if (_utils_js__WEBPACK_IMPORTED_MODULE_4__["default"].isFunction(data.getHeaders)) {
+ // Node.js FormData (like form-data package)
+ const formHeaders = data.getHeaders();
+ // Only set safe headers to avoid overwriting security headers
+ const allowedHeaders = ['content-type', 'content-length'];
+ Object.entries(formHeaders).forEach(([key, val]) => {
+ if (allowedHeaders.includes(key.toLowerCase())) {
+ headers.set(key, val);
+ }
+ });
+ }
+ }
+
+ // Add xsrf header
+ // This is only done if running in a standard browser environment.
+ // Specifically not if we're in a web worker, or react-native.
+
+ if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserEnv) {
+ withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_4__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
+
+ if (withXSRFToken || (withXSRFToken !== false && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__["default"])(newConfig.url))) {
+ // Add xsrf header
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies_js__WEBPACK_IMPORTED_MODULE_7__["default"].read(xsrfCookieName);
+
+ if (xsrfValue) {
+ headers.set(xsrfHeaderName, xsrfValue);
+ }
+ }
+ }
+
+ return newConfig;
+});
+
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/speedometer.js":
+/*!*******************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/speedometer.js ***!
+ \*******************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+
+
+/**
+ * Calculate data maxRate
+ * @param {Number} [samplesCount= 10]
+ * @param {Number} [min= 1000]
+ * @returns {Function}
+ */
+function speedometer(samplesCount, min) {
+ samplesCount = samplesCount || 10;
+ const bytes = new Array(samplesCount);
+ const timestamps = new Array(samplesCount);
+ let head = 0;
+ let tail = 0;
+ let firstSampleTS;
+
+ min = min !== undefined ? min : 1000;
+
+ return function push(chunkLength) {
+ const now = Date.now();
+
+ const startedAt = timestamps[tail];
+
+ if (!firstSampleTS) {
+ firstSampleTS = now;
+ }
+
+ bytes[head] = chunkLength;
+ timestamps[head] = now;
+
+ let i = tail;
+ let bytesCount = 0;
+
+ while (i !== head) {
+ bytesCount += bytes[i++];
+ i = i % samplesCount;
+ }
+
+ head = (head + 1) % samplesCount;
+
+ if (head === tail) {
+ tail = (tail + 1) % samplesCount;
+ }
+
+ if (now - firstSampleTS < min) {
+ return;
+ }
+
+ const passed = startedAt && now - startedAt;
+
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
+ };
+}
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (speedometer);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/spread.js":
+/*!**************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/spread.js ***!
+ \**************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ spread)
+/* harmony export */ });
+
+
+/**
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
+ *
+ * Common use case would be to use `Function.prototype.apply`.
+ *
+ * ```js
+ * function f(x, y, z) {}
+ * var args = [1, 2, 3];
+ * f.apply(null, args);
+ * ```
+ *
+ * With `spread` this example can be re-written.
+ *
+ * ```js
+ * spread(function(x, y, z) {})([1, 2, 3]);
+ * ```
+ *
+ * @param {Function} callback
+ *
+ * @returns {Function}
+ */
+function spread(callback) {
+ return function wrap(arr) {
+ return callback.apply(null, arr);
+ };
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/throttle.js":
+/*!****************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/throttle.js ***!
+ \****************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/**
+ * Throttle decorator
+ * @param {Function} fn
+ * @param {Number} freq
+ * @return {Function}
+ */
+function throttle(fn, freq) {
+ let timestamp = 0;
+ let threshold = 1000 / freq;
+ let lastArgs;
+ let timer;
+
+ const invoke = (args, now = Date.now()) => {
+ timestamp = now;
+ lastArgs = null;
+ if (timer) {
+ clearTimeout(timer);
+ timer = null;
+ }
+ fn(...args);
+ }
+
+ const throttled = (...args) => {
+ const now = Date.now();
+ const passed = now - timestamp;
+ if ( passed >= threshold) {
+ invoke(args, now);
+ } else {
+ lastArgs = args;
+ if (!timer) {
+ timer = setTimeout(() => {
+ timer = null;
+ invoke(lastArgs)
+ }, threshold - passed);
+ }
+ }
+ }
+
+ const flush = () => lastArgs && invoke(lastArgs);
+
+ return [throttled, flush];
+}
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (throttle);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/toFormData.js":
+/*!******************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/toFormData.js ***!
+ \******************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ "./node_modules/axios/lib/helpers/null.js");
+/* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js")["Buffer"];
+
+
+
+
+// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
+
+
+/**
+ * Determines if the given thing is a array or js object.
+ *
+ * @param {string} thing - The object or array to be visited.
+ *
+ * @returns {boolean}
+ */
+function isVisitable(thing) {
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(thing);
+}
+
+/**
+ * It removes the brackets from the end of a string
+ *
+ * @param {string} key - The key of the parameter.
+ *
+ * @returns {string} the key without the brackets.
+ */
+function removeBrackets(key) {
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]') ? key.slice(0, -2) : key;
+}
+
+/**
+ * It takes a path, a key, and a boolean, and returns a string
+ *
+ * @param {string} path - The path to the current key.
+ * @param {string} key - The key of the current object being iterated over.
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
+ *
+ * @returns {string} The path to the current key.
+ */
+function renderKey(path, key, dots) {
+ if (!path) return key;
+ return path.concat(key).map(function each(token, i) {
+ // eslint-disable-next-line no-param-reassign
+ token = removeBrackets(token);
+ return !dots && i ? '[' + token + ']' : token;
+ }).join(dots ? '.' : '');
+}
+
+/**
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
+ *
+ * @param {Array} arr - The array to check
+ *
+ * @returns {boolean}
+ */
+function isFlatArray(arr) {
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(arr) && !arr.some(isVisitable);
+}
+
+const predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"], {}, null, function filter(prop) {
+ return /^is[A-Z]/.test(prop);
+});
+
+/**
+ * Convert a data object to FormData
+ *
+ * @param {Object} obj
+ * @param {?Object} [formData]
+ * @param {?Object} [options]
+ * @param {Function} [options.visitor]
+ * @param {Boolean} [options.metaTokens = true]
+ * @param {Boolean} [options.dots = false]
+ * @param {?Boolean} [options.indexes = false]
+ *
+ * @returns {Object}
+ **/
+
+/**
+ * It converts an object into a FormData object
+ *
+ * @param {Object} obj - The object to convert to form data.
+ * @param {string} formData - The FormData object to append to.
+ * @param {Object} options
+ *
+ * @returns
+ */
+function toFormData(obj, formData, options) {
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) {
+ throw new TypeError('target must be an object');
+ }
+
+ // eslint-disable-next-line no-param-reassign
+ formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"] || FormData)();
+
+ // eslint-disable-next-line no-param-reassign
+ options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(options, {
+ metaTokens: true,
+ dots: false,
+ indexes: false
+ }, false, function defined(option, source) {
+ // eslint-disable-next-line no-eq-null,eqeqeq
+ return !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(source[option]);
+ });
+
+ const metaTokens = options.metaTokens;
+ // eslint-disable-next-line no-use-before-define
+ const visitor = options.visitor || defaultVisitor;
+ const dots = options.dots;
+ const indexes = options.indexes;
+ const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
+ const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(formData);
+
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(visitor)) {
+ throw new TypeError('visitor must be a function');
+ }
+
+ function convertValue(value) {
+ if (value === null) return '';
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isDate(value)) {
+ return value.toISOString();
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBoolean(value)) {
+ return value.toString();
+ }
+
+ if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(value)) {
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Blob is not supported. Use a Buffer instead.');
+ }
+
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isTypedArray(value)) {
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
+ }
+
+ return value;
+ }
+
+ /**
+ * Default visitor.
+ *
+ * @param {*} value
+ * @param {String|Number} key
+ * @param {Array} path
+ * @this {FormData}
+ *
+ * @returns {boolean} return true to visit the each prop of the value recursively
+ */
+ function defaultVisitor(value, key, path) {
+ let arr = value;
+
+ if (value && !path && typeof value === 'object') {
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '{}')) {
+ // eslint-disable-next-line no-param-reassign
+ key = metaTokens ? key : key.slice(0, -2);
+ // eslint-disable-next-line no-param-reassign
+ value = JSON.stringify(value);
+ } else if (
+ (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) && isFlatArray(value)) ||
+ ((_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toArray(value))
+ )) {
+ // eslint-disable-next-line no-param-reassign
+ key = removeBrackets(key);
+
+ arr.forEach(function each(el, index) {
+ !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && formData.append(
+ // eslint-disable-next-line no-nested-ternary
+ indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
+ convertValue(el)
+ );
+ });
+ return false;
+ }
+ }
+
+ if (isVisitable(value)) {
+ return true;
+ }
+
+ formData.append(renderKey(path, key, dots), convertValue(value));
+
+ return false;
+ }
+
+ const stack = [];
+
+ const exposedHelpers = Object.assign(predicates, {
+ defaultVisitor,
+ convertValue,
+ isVisitable
+ });
+
+ function build(value, path) {
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(value)) return;
+
+ if (stack.indexOf(value) !== -1) {
+ throw Error('Circular reference detected in ' + path.join('.'));
+ }
+
+ stack.push(value);
+
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(value, function each(el, key) {
+ const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && visitor.call(
+ formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(key) ? key.trim() : key, path, exposedHelpers
+ );
+
+ if (result === true) {
+ build(el, path ? path.concat(key) : [key]);
+ }
+ });
+
+ stack.pop();
+ }
+
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(obj)) {
+ throw new TypeError('data must be an object');
+ }
+
+ build(obj);
+
+ return formData;
+}
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toFormData);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/toURLEncodedForm.js":
+/*!************************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/toURLEncodedForm.js ***!
+ \************************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (/* binding */ toURLEncodedForm)
+/* harmony export */ });
+/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
+/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js");
+/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
+
+
+
+
+
+
+function toURLEncodedForm(data, options) {
+ return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__["default"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].classes.URLSearchParams(), {
+ visitor: function(value, key, path, helpers) {
+ if (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isBuffer(value)) {
+ this.append(key, value.toString('base64'));
+ return false;
+ }
+
+ return helpers.defaultVisitor.apply(this, arguments);
+ },
+ ...options
+ });
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/trackStream.js":
+/*!*******************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/trackStream.js ***!
+ \*******************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ readBytes: () => (/* binding */ readBytes),
+/* harmony export */ streamChunk: () => (/* binding */ streamChunk),
+/* harmony export */ trackStream: () => (/* binding */ trackStream)
+/* harmony export */ });
+
+const streamChunk = function* (chunk, chunkSize) {
+ let len = chunk.byteLength;
+
+ if (!chunkSize || len < chunkSize) {
+ yield chunk;
+ return;
+ }
+
+ let pos = 0;
+ let end;
+
+ while (pos < len) {
+ end = pos + chunkSize;
+ yield chunk.slice(pos, end);
+ pos = end;
+ }
+}
+
+const readBytes = async function* (iterable, chunkSize) {
+ for await (const chunk of readStream(iterable)) {
+ yield* streamChunk(chunk, chunkSize);
+ }
+}
+
+const readStream = async function* (stream) {
+ if (stream[Symbol.asyncIterator]) {
+ yield* stream;
+ return;
+ }
+
+ const reader = stream.getReader();
+ try {
+ for (;;) {
+ const {done, value} = await reader.read();
+ if (done) {
+ break;
+ }
+ yield value;
+ }
+ } finally {
+ await reader.cancel();
+ }
+}
+
+const trackStream = (stream, chunkSize, onProgress, onFinish) => {
+ const iterator = readBytes(stream, chunkSize);
+
+ let bytes = 0;
+ let done;
+ let _onFinish = (e) => {
+ if (!done) {
+ done = true;
+ onFinish && onFinish(e);
+ }
+ }
+
+ return new ReadableStream({
+ async pull(controller) {
+ try {
+ const {done, value} = await iterator.next();
+
+ if (done) {
+ _onFinish();
+ controller.close();
+ return;
+ }
+
+ let len = value.byteLength;
+ if (onProgress) {
+ let loadedBytes = bytes += len;
+ onProgress(loadedBytes);
+ }
+ controller.enqueue(new Uint8Array(value));
+ } catch (err) {
+ _onFinish(err);
+ throw err;
+ }
+ },
+ cancel(reason) {
+ _onFinish(reason);
+ return iterator.return();
+ }
+ }, {
+ highWaterMark: 2
+ })
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/helpers/validator.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/axios/lib/helpers/validator.js ***!
+ \*****************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ "./node_modules/axios/lib/env/data.js");
+/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
+
+
+
+
+
+const validators = {};
+
+// eslint-disable-next-line func-names
+['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
+ validators[type] = function validator(thing) {
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
+ };
+});
+
+const deprecatedWarnings = {};
+
+/**
+ * Transitional option validator
+ *
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
+ * @param {string?} version - deprecated version / removed since version
+ * @param {string?} message - some message with additional info
+ *
+ * @returns {function}
+ */
+validators.transitional = function transitional(validator, version, message) {
+ function formatMessage(opt, desc) {
+ return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
+ }
+
+ // eslint-disable-next-line func-names
+ return (value, opt, opts) => {
+ if (validator === false) {
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_DEPRECATED
+ );
+ }
+
+ if (version && !deprecatedWarnings[opt]) {
+ deprecatedWarnings[opt] = true;
+ // eslint-disable-next-line no-console
+ console.warn(
+ formatMessage(
+ opt,
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
+ )
+ );
+ }
+
+ return validator ? validator(value, opt, opts) : true;
+ };
+};
+
+validators.spelling = function spelling(correctSpelling) {
+ return (value, opt) => {
+ // eslint-disable-next-line no-console
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
+ return true;
+ }
+};
+
+/**
+ * Assert object's properties type
+ *
+ * @param {object} options
+ * @param {object} schema
+ * @param {boolean?} allowUnknown
+ *
+ * @returns {object}
+ */
+
+function assertOptions(options, schema, allowUnknown) {
+ if (typeof options !== 'object') {
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE);
+ }
+ const keys = Object.keys(options);
+ let i = keys.length;
+ while (i-- > 0) {
+ const opt = keys[i];
+ const validator = schema[opt];
+ if (validator) {
+ const value = options[opt];
+ const result = value === undefined || validator(value, opt, options);
+ if (result !== true) {
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE);
+ }
+ continue;
+ }
+ if (allowUnknown !== true) {
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION);
+ }
+ }
+}
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ assertOptions,
+ validators
+});
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/platform/browser/classes/Blob.js":
+/*!*****************************************************************!*\
+ !*** ./node_modules/axios/lib/platform/browser/classes/Blob.js ***!
+ \*****************************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof Blob !== 'undefined' ? Blob : null);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/platform/browser/classes/FormData.js":
+/*!*********************************************************************!*\
+ !*** ./node_modules/axios/lib/platform/browser/classes/FormData.js ***!
+ \*********************************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof FormData !== 'undefined' ? FormData : null);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js":
+/*!****************************************************************************!*\
+ !*** ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***!
+ \****************************************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js");
+
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"]);
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/platform/browser/index.js":
+/*!**********************************************************!*\
+ !*** ./node_modules/axios/lib/platform/browser/index.js ***!
+ \**********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ "./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js");
+/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ "./node_modules/axios/lib/platform/browser/classes/FormData.js");
+/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ "./node_modules/axios/lib/platform/browser/classes/Blob.js");
+
+
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ isBrowser: true,
+ classes: {
+ URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"],
+ FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"],
+ Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__["default"]
+ },
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
+});
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/platform/common/utils.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/axios/lib/platform/common/utils.js ***!
+ \*********************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ hasBrowserEnv: () => (/* binding */ hasBrowserEnv),
+/* harmony export */ hasStandardBrowserEnv: () => (/* binding */ hasStandardBrowserEnv),
+/* harmony export */ hasStandardBrowserWebWorkerEnv: () => (/* binding */ hasStandardBrowserWebWorkerEnv),
+/* harmony export */ navigator: () => (/* binding */ _navigator),
+/* harmony export */ origin: () => (/* binding */ origin)
+/* harmony export */ });
+const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
+
+const _navigator = typeof navigator === 'object' && navigator || undefined;
+
+/**
+ * Determine if we're running in a standard browser environment
+ *
+ * This allows axios to run in a web worker, and react-native.
+ * Both environments support XMLHttpRequest, but not fully standard globals.
+ *
+ * web workers:
+ * typeof window -> undefined
+ * typeof document -> undefined
+ *
+ * react-native:
+ * navigator.product -> 'ReactNative'
+ * nativescript
+ * navigator.product -> 'NativeScript' or 'NS'
+ *
+ * @returns {boolean}
+ */
+const hasStandardBrowserEnv = hasBrowserEnv &&
+ (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
+
+/**
+ * Determine if we're running in a standard browser webWorker environment
+ *
+ * Although the `isStandardBrowserEnv` method indicates that
+ * `allows axios to run in a web worker`, the WebWorker will still be
+ * filtered out due to its judgment standard
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
+ * This leads to a problem when axios post `FormData` in webWorker
+ */
+const hasStandardBrowserWebWorkerEnv = (() => {
+ return (
+ typeof WorkerGlobalScope !== 'undefined' &&
+ // eslint-disable-next-line no-undef
+ self instanceof WorkerGlobalScope &&
+ typeof self.importScripts === 'function'
+ );
+})();
+
+const origin = hasBrowserEnv && window.location.href || 'http://localhost';
+
+
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/platform/index.js":
+/*!**************************************************!*\
+ !*** ./node_modules/axios/lib/platform/index.js ***!
+ \**************************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node/index.js */ "./node_modules/axios/lib/platform/browser/index.js");
+/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/utils.js */ "./node_modules/axios/lib/platform/common/utils.js");
+
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ ..._common_utils_js__WEBPACK_IMPORTED_MODULE_0__,
+ ..._node_index_js__WEBPACK_IMPORTED_MODULE_1__["default"]
+});
+
+
+/***/ }),
+
+/***/ "./node_modules/axios/lib/utils.js":
+/*!*****************************************!*\
+ !*** ./node_modules/axios/lib/utils.js ***!
+ \*****************************************/
+/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
+
+"use strict";
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/axios/lib/helpers/bind.js");
+/* provided dependency */ var process = __webpack_require__(/*! process/browser.js */ "./node_modules/process/browser.js");
+
+
+
+
+// utils is a library of generic helper functions non-specific to axios
+
+const {toString} = Object.prototype;
+const {getPrototypeOf} = Object;
+const {iterator, toStringTag} = Symbol;
+
+const kindOf = (cache => thing => {
+ const str = toString.call(thing);
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
+})(Object.create(null));
+
+const kindOfTest = (type) => {
+ type = type.toLowerCase();
+ return (thing) => kindOf(thing) === type
+}
+
+const typeOfTest = type => thing => typeof thing === type;
+
+/**
+ * Determine if a value is an Array
+ *
+ * @param {Object} val The value to test
+ *
+ * @returns {boolean} True if value is an Array, otherwise false
+ */
+const {isArray} = Array;
+
+/**
+ * Determine if a value is undefined
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if the value is undefined, otherwise false
+ */
+const isUndefined = typeOfTest('undefined');
+
+/**
+ * Determine if a value is a Buffer
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a Buffer, otherwise false
+ */
+function isBuffer(val) {
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
+ && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
+}
+
+/**
+ * Determine if a value is an ArrayBuffer
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
+ */
+const isArrayBuffer = kindOfTest('ArrayBuffer');
+
+
+/**
+ * Determine if a value is a view on an ArrayBuffer
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
+ */
+function isArrayBufferView(val) {
+ let result;
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
+ result = ArrayBuffer.isView(val);
+ } else {
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
+ }
+ return result;
+}
+
+/**
+ * Determine if a value is a String
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a String, otherwise false
+ */
+const isString = typeOfTest('string');
+
+/**
+ * Determine if a value is a Function
+ *
+ * @param {*} val The value to test
+ * @returns {boolean} True if value is a Function, otherwise false
+ */
+const isFunction = typeOfTest('function');
+
+/**
+ * Determine if a value is a Number
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a Number, otherwise false
+ */
+const isNumber = typeOfTest('number');
+
+/**
+ * Determine if a value is an Object
+ *
+ * @param {*} thing The value to test
+ *
+ * @returns {boolean} True if value is an Object, otherwise false
+ */
+const isObject = (thing) => thing !== null && typeof thing === 'object';
+
+/**
+ * Determine if a value is a Boolean
+ *
+ * @param {*} thing The value to test
+ * @returns {boolean} True if value is a Boolean, otherwise false
+ */
+const isBoolean = thing => thing === true || thing === false;
+
+/**
+ * Determine if a value is a plain Object
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a plain Object, otherwise false
+ */
+const isPlainObject = (val) => {
+ if (kindOf(val) !== 'object') {
+ return false;
+ }
+
+ const prototype = getPrototypeOf(val);
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
+}
+
+/**
+ * Determine if a value is an empty object (safely handles Buffers)
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is an empty object, otherwise false
+ */
+const isEmptyObject = (val) => {
+ // Early return for non-objects or Buffers to prevent RangeError
+ if (!isObject(val) || isBuffer(val)) {
+ return false;
+ }
+
+ try {
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
+ } catch (e) {
+ // Fallback for any other objects that might cause RangeError with Object.keys()
+ return false;
+ }
+}
+
+/**
+ * Determine if a value is a Date
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a Date, otherwise false
+ */
+const isDate = kindOfTest('Date');
+
+/**
+ * Determine if a value is a File
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a File, otherwise false
+ */
+const isFile = kindOfTest('File');
+
+/**
+ * Determine if a value is a Blob
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a Blob, otherwise false
+ */
+const isBlob = kindOfTest('Blob');
+
+/**
+ * Determine if a value is a FileList
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a File, otherwise false
+ */
+const isFileList = kindOfTest('FileList');
+
+/**
+ * Determine if a value is a Stream
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a Stream, otherwise false
+ */
+const isStream = (val) => isObject(val) && isFunction(val.pipe);
+
+/**
+ * Determine if a value is a FormData
+ *
+ * @param {*} thing The value to test
+ *
+ * @returns {boolean} True if value is an FormData, otherwise false
+ */
+const isFormData = (thing) => {
+ let kind;
+ return thing && (
+ (typeof FormData === 'function' && thing instanceof FormData) || (
+ isFunction(thing.append) && (
+ (kind = kindOf(thing)) === 'formdata' ||
+ // detect form-data instance
+ (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
+ )
+ )
+ )
+}
+
+/**
+ * Determine if a value is a URLSearchParams object
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
+ */
+const isURLSearchParams = kindOfTest('URLSearchParams');
+
+const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
+
+/**
+ * Trim excess whitespace off the beginning and end of a string
+ *
+ * @param {String} str The String to trim
+ *
+ * @returns {String} The String freed of excess whitespace
+ */
+const trim = (str) => str.trim ?
+ str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
+
+/**
+ * Iterate over an Array or an Object invoking a function for each item.
+ *
+ * If `obj` is an Array callback will be called passing
+ * the value, index, and complete array for each item.
+ *
+ * If 'obj' is an Object callback will be called passing
+ * the value, key, and complete object for each property.
+ *
+ * @param {Object|Array} obj The object to iterate
+ * @param {Function} fn The callback to invoke for each item
+ *
+ * @param {Boolean} [allOwnKeys = false]
+ * @returns {any}
+ */
+function forEach(obj, fn, {allOwnKeys = false} = {}) {
+ // Don't bother if no value provided
+ if (obj === null || typeof obj === 'undefined') {
+ return;
+ }
+
+ let i;
+ let l;
+
+ // Force an array if not already something iterable
+ if (typeof obj !== 'object') {
+ /*eslint no-param-reassign:0*/
+ obj = [obj];
+ }
+
+ if (isArray(obj)) {
+ // Iterate over array values
+ for (i = 0, l = obj.length; i < l; i++) {
+ fn.call(null, obj[i], i, obj);
+ }
+ } else {
+ // Buffer check
+ if (isBuffer(obj)) {
+ return;
+ }
+
+ // Iterate over object keys
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
+ const len = keys.length;
+ let key;
+
+ for (i = 0; i < len; i++) {
+ key = keys[i];
+ fn.call(null, obj[key], key, obj);
+ }
+ }
+}
+
+function findKey(obj, key) {
+ if (isBuffer(obj)){
+ return null;
+ }
+
+ key = key.toLowerCase();
+ const keys = Object.keys(obj);
+ let i = keys.length;
+ let _key;
+ while (i-- > 0) {
+ _key = keys[i];
+ if (key === _key.toLowerCase()) {
+ return _key;
+ }
+ }
+ return null;
+}
+
+const _global = (() => {
+ /*eslint no-undef:0*/
+ if (typeof globalThis !== "undefined") return globalThis;
+ return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
+})();
+
+const isContextDefined = (context) => !isUndefined(context) && context !== _global;
+
+/**
+ * Accepts varargs expecting each argument to be an object, then
+ * immutably merges the properties of each object and returns result.
+ *
+ * When multiple objects contain the same key the later object in
+ * the arguments list will take precedence.
+ *
+ * Example:
+ *
+ * ```js
+ * var result = merge({foo: 123}, {foo: 456});
+ * console.log(result.foo); // outputs 456
+ * ```
+ *
+ * @param {Object} obj1 Object to merge
+ *
+ * @returns {Object} Result of all merge properties
+ */
+function merge(/* obj1, obj2, obj3, ... */) {
+ const {caseless, skipUndefined} = isContextDefined(this) && this || {};
+ const result = {};
+ const assignValue = (val, key) => {
+ const targetKey = caseless && findKey(result, key) || key;
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
+ result[targetKey] = merge(result[targetKey], val);
+ } else if (isPlainObject(val)) {
+ result[targetKey] = merge({}, val);
+ } else if (isArray(val)) {
+ result[targetKey] = val.slice();
+ } else if (!skipUndefined || !isUndefined(val)) {
+ result[targetKey] = val;
+ }
+ }
+
+ for (let i = 0, l = arguments.length; i < l; i++) {
+ arguments[i] && forEach(arguments[i], assignValue);
+ }
+ return result;
+}
+
+/**
+ * Extends object a by mutably adding to it the properties of object b.
+ *
+ * @param {Object} a The object to be extended
+ * @param {Object} b The object to copy properties from
+ * @param {Object} thisArg The object to bind function to
+ *
+ * @param {Boolean} [allOwnKeys]
+ * @returns {Object} The resulting value of object a
+ */
+const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
+ forEach(b, (val, key) => {
+ if (thisArg && isFunction(val)) {
+ a[key] = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__["default"])(val, thisArg);
+ } else {
+ a[key] = val;
+ }
+ }, {allOwnKeys});
+ return a;
+}
+
+/**
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
+ *
+ * @param {string} content with BOM
+ *
+ * @returns {string} content value without BOM
+ */
+const stripBOM = (content) => {
+ if (content.charCodeAt(0) === 0xFEFF) {
+ content = content.slice(1);
+ }
+ return content;
+}
+
+/**
+ * Inherit the prototype methods from one constructor into another
+ * @param {function} constructor
+ * @param {function} superConstructor
+ * @param {object} [props]
+ * @param {object} [descriptors]
+ *
+ * @returns {void}
+ */
+const inherits = (constructor, superConstructor, props, descriptors) => {
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
+ constructor.prototype.constructor = constructor;
+ Object.defineProperty(constructor, 'super', {
+ value: superConstructor.prototype
+ });
+ props && Object.assign(constructor.prototype, props);
+}
+
+/**
+ * Resolve object with deep prototype chain to a flat object
+ * @param {Object} sourceObj source object
+ * @param {Object} [destObj]
+ * @param {Function|Boolean} [filter]
+ * @param {Function} [propFilter]
+ *
+ * @returns {Object}
+ */
+const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
+ let props;
+ let i;
+ let prop;
+ const merged = {};
+
+ destObj = destObj || {};
+ // eslint-disable-next-line no-eq-null,eqeqeq
+ if (sourceObj == null) return destObj;
+
+ do {
+ props = Object.getOwnPropertyNames(sourceObj);
+ i = props.length;
+ while (i-- > 0) {
+ prop = props[i];
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
+ destObj[prop] = sourceObj[prop];
+ merged[prop] = true;
+ }
+ }
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
+
+ return destObj;
+}
+
+/**
+ * Determines whether a string ends with the characters of a specified string
+ *
+ * @param {String} str
+ * @param {String} searchString
+ * @param {Number} [position= 0]
+ *
+ * @returns {boolean}
+ */
+const endsWith = (str, searchString, position) => {
+ str = String(str);
+ if (position === undefined || position > str.length) {
+ position = str.length;
+ }
+ position -= searchString.length;
+ const lastIndex = str.indexOf(searchString, position);
+ return lastIndex !== -1 && lastIndex === position;
+}
+
+
+/**
+ * Returns new array from array like object or null if failed
+ *
+ * @param {*} [thing]
+ *
+ * @returns {?Array}
+ */
+const toArray = (thing) => {
+ if (!thing) return null;
+ if (isArray(thing)) return thing;
+ let i = thing.length;
+ if (!isNumber(i)) return null;
+ const arr = new Array(i);
+ while (i-- > 0) {
+ arr[i] = thing[i];
+ }
+ return arr;
+}
+
+/**
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
+ * thing passed in is an instance of Uint8Array
+ *
+ * @param {TypedArray}
+ *
+ * @returns {Array}
+ */
+// eslint-disable-next-line func-names
+const isTypedArray = (TypedArray => {
+ // eslint-disable-next-line func-names
+ return thing => {
+ return TypedArray && thing instanceof TypedArray;
+ };
+})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
+
+/**
+ * For each entry in the object, call the function with the key and value.
+ *
+ * @param {Object} obj - The object to iterate over.
+ * @param {Function} fn - The function to call for each entry.
+ *
+ * @returns {void}
+ */
+const forEachEntry = (obj, fn) => {
+ const generator = obj && obj[iterator];
+
+ const _iterator = generator.call(obj);
+
+ let result;
+
+ while ((result = _iterator.next()) && !result.done) {
+ const pair = result.value;
+ fn.call(obj, pair[0], pair[1]);
+ }
+}
+
+/**
+ * It takes a regular expression and a string, and returns an array of all the matches
+ *
+ * @param {string} regExp - The regular expression to match against.
+ * @param {string} str - The string to search.
+ *
+ * @returns {Array}
+ */
+const matchAll = (regExp, str) => {
+ let matches;
+ const arr = [];
+
+ while ((matches = regExp.exec(str)) !== null) {
+ arr.push(matches);
+ }
+
+ return arr;
+}
+
+/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
+const isHTMLForm = kindOfTest('HTMLFormElement');
+
+const toCamelCase = str => {
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
+ function replacer(m, p1, p2) {
+ return p1.toUpperCase() + p2;
+ }
+ );
+};
+
+/* Creating a function that will check if an object has a property. */
+const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
+
+/**
+ * Determine if a value is a RegExp object
+ *
+ * @param {*} val The value to test
+ *
+ * @returns {boolean} True if value is a RegExp object, otherwise false
+ */
+const isRegExp = kindOfTest('RegExp');
+
+const reduceDescriptors = (obj, reducer) => {
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
+ const reducedDescriptors = {};
+
+ forEach(descriptors, (descriptor, name) => {
+ let ret;
+ if ((ret = reducer(descriptor, name, obj)) !== false) {
+ reducedDescriptors[name] = ret || descriptor;
+ }
+ });
+
+ Object.defineProperties(obj, reducedDescriptors);
+}
+
+/**
+ * Makes all methods read-only
+ * @param {Object} obj
+ */
+
+const freezeMethods = (obj) => {
+ reduceDescriptors(obj, (descriptor, name) => {
+ // skip restricted props in strict mode
+ if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
+ return false;
+ }
+
+ const value = obj[name];
+
+ if (!isFunction(value)) return;
+
+ descriptor.enumerable = false;
+
+ if ('writable' in descriptor) {
+ descriptor.writable = false;
+ return;
+ }
+
+ if (!descriptor.set) {
+ descriptor.set = () => {
+ throw Error('Can not rewrite read-only method \'' + name + '\'');
+ };
+ }
+ });
+}
+
+const toObjectSet = (arrayOrString, delimiter) => {
+ const obj = {};
+
+ const define = (arr) => {
+ arr.forEach(value => {
+ obj[value] = true;
+ });
+ }
+
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
+
+ return obj;
+}
+
+const noop = () => {}
+
+const toFiniteNumber = (value, defaultValue) => {
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
+}
+
+
+
+/**
+ * If the thing is a FormData object, return true, otherwise return false.
+ *
+ * @param {unknown} thing - The thing to check.
+ *
+ * @returns {boolean}
+ */
+function isSpecCompliantForm(thing) {
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
+}
+
+const toJSONObject = (obj) => {
+ const stack = new Array(10);
+
+ const visit = (source, i) => {
+
+ if (isObject(source)) {
+ if (stack.indexOf(source) >= 0) {
+ return;
+ }
+
+ //Buffer check
+ if (isBuffer(source)) {
+ return source;
+ }
+
+ if(!('toJSON' in source)) {
+ stack[i] = source;
+ const target = isArray(source) ? [] : {};
+
+ forEach(source, (value, key) => {
+ const reducedValue = visit(value, i + 1);
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
+ });
+
+ stack[i] = undefined;
+
+ return target;
+ }
+ }
+
+ return source;
+ }
+
+ return visit(obj, 0);
+}
+
+const isAsyncFn = kindOfTest('AsyncFunction');
+
+const isThenable = (thing) =>
+ thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
+
+// original code
+// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
+
+const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
+ if (setImmediateSupported) {
+ return setImmediate;
+ }
+
+ return postMessageSupported ? ((token, callbacks) => {
+ _global.addEventListener("message", ({source, data}) => {
+ if (source === _global && data === token) {
+ callbacks.length && callbacks.shift()();
+ }
+ }, false);
+
+ return (cb) => {
+ callbacks.push(cb);
+ _global.postMessage(token, "*");
+ }
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
+})(
+ typeof setImmediate === 'function',
+ isFunction(_global.postMessage)
+);
+
+const asap = typeof queueMicrotask !== 'undefined' ?
+ queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
+
+// *********************
+
+
+const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
+
+
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
+ isArray,
+ isArrayBuffer,
+ isBuffer,
+ isFormData,
+ isArrayBufferView,
+ isString,
+ isNumber,
+ isBoolean,
+ isObject,
+ isPlainObject,
+ isEmptyObject,
+ isReadableStream,
+ isRequest,
+ isResponse,
+ isHeaders,
+ isUndefined,
+ isDate,
+ isFile,
+ isBlob,
+ isRegExp,
+ isFunction,
+ isStream,
+ isURLSearchParams,
+ isTypedArray,
+ isFileList,
+ forEach,
+ merge,
+ extend,
+ trim,
+ stripBOM,
+ inherits,
+ toFlatObject,
+ kindOf,
+ kindOfTest,
+ endsWith,
+ toArray,
+ forEachEntry,
+ matchAll,
+ isHTMLForm,
+ hasOwnProperty,
+ hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
+ reduceDescriptors,
+ freezeMethods,
+ toObjectSet,
+ toCamelCase,
+ noop,
+ toFiniteNumber,
+ findKey,
+ global: _global,
+ isContextDefined,
+ isSpecCompliantForm,
+ toJSONObject,
+ isAsyncFn,
+ isThenable,
+ setImmediate: _setImmediate,
+ asap,
+ isIterable
+});
+
+
/***/ })
/******/ });
@@ -17065,6 +29364,18 @@ function normalizeComponent(
/******/ };
/******/ })();
/******/
+/******/ /* webpack/runtime/global */
+/******/ (() => {
+/******/ __webpack_require__.g = (function() {
+/******/ if (typeof globalThis === 'object') return globalThis;
+/******/ try {
+/******/ return this || new Function('return this')();
+/******/ } catch (e) {
+/******/ if (typeof window === 'object') return window;
+/******/ }
+/******/ })();
+/******/ })();
+/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))