|
|
|
\****************************/function(module,__unused_webpack_exports,__webpack_require__){eval('/* PrismJS 1.15.0\nhttps://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+c+csharp+bash+cpp+coffeescript+ruby+csp+css-extras+diff+django+docker+elixir+elm+markup-templating+erlang+fsharp+flow+git+go+graphql+less+handlebars+haskell+http+java+json+kotlin+latex+markdown+makefile+objectivec+ocaml+perl+php+php-extras+sql+processing+scss+python+r+jsx+typescript+reason+textile+rust+sass+stylus+scheme+pug+swift+yaml+haml+toml+twig+tsx+vim+visual-basic+wasm&plugins=line-numbers+toolbar+jsonp-highlight+command-line+copy-to-clipboard */\nvar _self = "undefined" != typeof window ? window : "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope ? self : {},\n Prism = function () {\n var e = /\\blang(?:uage)?-([\\w-]+)\\b/i,\n t = 0,\n n = _self.Prism = {\n manual: _self.Prism && _self.Prism.manual,\n disableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,\n util: {\n encode: function encode(e) {\n return e instanceof a ? new a(e.type, n.util.encode(e.content), e.alias) : "Array" === n.util.type(e) ? e.map(n.util.encode) : e.replace(/&/g, "&").replace(/</g, "<").replace(/\\u00a0/g, " ");\n },\n type: function type(e) {\n return Object.prototype.toString.call(e).slice(8, -1);\n },\n objId: function objId(e) {\n return e.__id || Object.defineProperty(e, "__id", {\n value: ++t\n }), e.__id;\n },\n clone: function clone(e, t) {\n var a = n.util.type(e);\n\n switch (t = t || {}, a) {\n case "Object":\n if (t[n.util.objId(e)]) return t[n.util.objId(e)];\n var r = {};\n t[n.util.objId(e)] = r;\n\n for (var l in e) {\n e.hasOwnProperty(l) && (r[l] = n.util.clone(e[l], t));\n }\n\n return r;\n\n case "Array":\n if (t[n.util.objId(e)]) return t[n.util.objId(e)];\n var r = [];\n return t[n.util.objId(e)] = r, e.forEach(function (e, a) {\n r[a] = n.util.clone(e, t);\n }), r;\n }\n\n return e;\n }\n },\n languages: {\n extend: function extend(e, t) {\n var a = n.util.clone(n.languages[e]);\n\n for (var r in t) {\n a[r] = t[r];\n }\n\n return a;\n },\n insertBefore: function insertBefore(e, t, a, r) {\n r = r || n.languages;\n var l = r[e],\n i = {};\n\n for (var o in l) {\n if (l.hasOwnProperty(o)) {\n if (o == t) for (var s in a) {\n a.hasOwnProperty(s) && (i[s] = a[s]);\n }\n a.hasOwnProperty(o) || (i[o] = l[o]);\n }\n }\n\n var u = r[e];\n return r[e] = i, n.languages.DFS(n.languages, function (t, n) {\n n === u && t != e && (this[t] = i);\n }), i;\n },\n DFS: function DFS(e, t, a, r) {\n r = r || {};\n\n for (var l in e) {\n e.hasOwnProperty(l) && (t.call(e, l, e[l], a || l), "Object" !== n.util.type(e[l]) || r[n.util.objId(e[l])] ? "Array" !== n.util.type(e[l]) || r[n.util.objId(e[l])] || (r[n.util.objId(e[l])] = !0, n.languages.DFS(e[l], t, l, r)) : (r[n.util.objId(e[l])] = !0, n.languages.DFS(e[l], t, null, r)));\n }\n }\n },\n plugins: {},\n highlightAll: function highlightAll(e, t) {\n n.highlightAllUnder(document, e, t);\n },\n highlightAllUnder: function highlightAllUnder(e, t, a) {\n var r = {\n callback: a,\n selector: \'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code\'\n };\n n.hooks.run("before-highlightall", r);\n\n for (var l, i = r.elements || e.querySelectorAll(r.selector), o = 0; l = i[o++];) {\n n.highlightElement(l, t === !0, r.callback);\n }\n },\n highlightElement: fu
|
|
|
|
\**************************************************/function(module){eval("/*!\n * clipboard.js v2.0.8\n * https://clipboardjs.com/\n *\n * Licensed MIT © Zeno Rocha\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\t\tmodule.exports = factory();\n\telse {}\n})(this, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 134:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __nested_webpack_require_622__) {\n\n\"use strict\";\n\n// EXPORTS\n__nested_webpack_require_622__.d(__webpack_exports__, {\n \"default\": function() { return /* binding */ clipboard; }\n});\n\n// EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js\nvar tiny_emitter = __nested_webpack_require_622__(279);\nvar tiny_emitter_default = /*#__PURE__*/__nested_webpack_require_622__.n(tiny_emitter);\n// EXTERNAL MODULE: ./node_modules/good-listener/src/listen.js\nvar listen = __nested_webpack_require_622__(370);\nvar listen_default = /*#__PURE__*/__nested_webpack_require_622__.n(listen);\n// EXTERNAL MODULE: ./node_modules/select/src/select.js\nvar src_select = __nested_webpack_require_622__(817);\nvar select_default = /*#__PURE__*/__nested_webpack_require_622__.n(src_select);\n;// CONCATENATED MODULE: ./src/clipboard-action.js\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n/**\n * Inner class which performs selection from either `text` or `target`\n * properties and then executes copy or cut operations.\n */\n\nvar ClipboardAction = /*#__PURE__*/function () {\n /**\n * @param {Object} options\n */\n function ClipboardAction(options) {\n _classCallCheck(this, ClipboardAction);\n\n this.resolveOptions(options);\n this.initSelection();\n }\n /**\n * Defines base properties passed from constructor.\n * @param {Object} options\n */\n\n\n _createClass(ClipboardAction, [{\n key: \"resolveOptions\",\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.action = options.action;\n this.container = options.container;\n this.emitter = options.emitter;\n this.target = options.target;\n this.text = options.text;\n this.trigger = options.trigger;\n this.selectedText = '';\n }\n /**\n * Decides which selection strategy is going to be applied based\n * on the existence of `text` and `target` properties.\n */\n\n }, {\n key: \"initSelection\",\n value: function initSelection() {\n if (this.text) {\n this.selectFake();\n } else if (this.target) {\n this.selectTarget();\n }\n }\n /**\n * Creates a fake textarea element, sets its value from `text` property,\n */\n\n }, {\n key: \"createFakeElement\",\n value: function createFakeElement() {\n var isRTL = document.documentElement.getAttribute('dir') === 'rtl';\n this.fakeElem = document.createElement('textarea'); // Prevent zooming on iOS\n\n this.fakeElem.styl
|