v-org-tree.common.js 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248
  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = "fb15");
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ "01f9":
  90. /***/ (function(module, exports, __webpack_require__) {
  91. "use strict";
  92. var LIBRARY = __webpack_require__("2d00");
  93. var $export = __webpack_require__("5ca1");
  94. var redefine = __webpack_require__("2aba");
  95. var hide = __webpack_require__("32e9");
  96. var Iterators = __webpack_require__("84f2");
  97. var $iterCreate = __webpack_require__("41a0");
  98. var setToStringTag = __webpack_require__("7f20");
  99. var getPrototypeOf = __webpack_require__("38fd");
  100. var ITERATOR = __webpack_require__("2b4c")('iterator');
  101. var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
  102. var FF_ITERATOR = '@@iterator';
  103. var KEYS = 'keys';
  104. var VALUES = 'values';
  105. var returnThis = function () { return this; };
  106. module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  107. $iterCreate(Constructor, NAME, next);
  108. var getMethod = function (kind) {
  109. if (!BUGGY && kind in proto) return proto[kind];
  110. switch (kind) {
  111. case KEYS: return function keys() { return new Constructor(this, kind); };
  112. case VALUES: return function values() { return new Constructor(this, kind); };
  113. } return function entries() { return new Constructor(this, kind); };
  114. };
  115. var TAG = NAME + ' Iterator';
  116. var DEF_VALUES = DEFAULT == VALUES;
  117. var VALUES_BUG = false;
  118. var proto = Base.prototype;
  119. var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  120. var $default = $native || getMethod(DEFAULT);
  121. var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  122. var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  123. var methods, key, IteratorPrototype;
  124. // Fix native
  125. if ($anyNative) {
  126. IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
  127. if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
  128. // Set @@toStringTag to native iterators
  129. setToStringTag(IteratorPrototype, TAG, true);
  130. // fix for some old engines
  131. if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
  132. }
  133. }
  134. // fix Array#{values, @@iterator}.name in V8 / FF
  135. if (DEF_VALUES && $native && $native.name !== VALUES) {
  136. VALUES_BUG = true;
  137. $default = function values() { return $native.call(this); };
  138. }
  139. // Define iterator
  140. if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
  141. hide(proto, ITERATOR, $default);
  142. }
  143. // Plug for library
  144. Iterators[NAME] = $default;
  145. Iterators[TAG] = returnThis;
  146. if (DEFAULT) {
  147. methods = {
  148. values: DEF_VALUES ? $default : getMethod(VALUES),
  149. keys: IS_SET ? $default : getMethod(KEYS),
  150. entries: $entries
  151. };
  152. if (FORCED) for (key in methods) {
  153. if (!(key in proto)) redefine(proto, key, methods[key]);
  154. } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  155. }
  156. return methods;
  157. };
  158. /***/ }),
  159. /***/ "07e3":
  160. /***/ (function(module, exports) {
  161. var hasOwnProperty = {}.hasOwnProperty;
  162. module.exports = function (it, key) {
  163. return hasOwnProperty.call(it, key);
  164. };
  165. /***/ }),
  166. /***/ "0d58":
  167. /***/ (function(module, exports, __webpack_require__) {
  168. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  169. var $keys = __webpack_require__("ce10");
  170. var enumBugKeys = __webpack_require__("e11e");
  171. module.exports = Object.keys || function keys(O) {
  172. return $keys(O, enumBugKeys);
  173. };
  174. /***/ }),
  175. /***/ "11e9":
  176. /***/ (function(module, exports, __webpack_require__) {
  177. var pIE = __webpack_require__("52a7");
  178. var createDesc = __webpack_require__("4630");
  179. var toIObject = __webpack_require__("6821");
  180. var toPrimitive = __webpack_require__("6a99");
  181. var has = __webpack_require__("69a8");
  182. var IE8_DOM_DEFINE = __webpack_require__("c69a");
  183. var gOPD = Object.getOwnPropertyDescriptor;
  184. exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  185. O = toIObject(O);
  186. P = toPrimitive(P, true);
  187. if (IE8_DOM_DEFINE) try {
  188. return gOPD(O, P);
  189. } catch (e) { /* empty */ }
  190. if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
  191. };
  192. /***/ }),
  193. /***/ "1495":
  194. /***/ (function(module, exports, __webpack_require__) {
  195. var dP = __webpack_require__("86cc");
  196. var anObject = __webpack_require__("cb7c");
  197. var getKeys = __webpack_require__("0d58");
  198. module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
  199. anObject(O);
  200. var keys = getKeys(Properties);
  201. var length = keys.length;
  202. var i = 0;
  203. var P;
  204. while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  205. return O;
  206. };
  207. /***/ }),
  208. /***/ "1af6":
  209. /***/ (function(module, exports, __webpack_require__) {
  210. // 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
  211. var $export = __webpack_require__("63b6");
  212. $export($export.S, 'Array', { isArray: __webpack_require__("9003") });
  213. /***/ }),
  214. /***/ "1bc3":
  215. /***/ (function(module, exports, __webpack_require__) {
  216. // 7.1.1 ToPrimitive(input [, PreferredType])
  217. var isObject = __webpack_require__("f772");
  218. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  219. // and the second argument - flag - preferred type is a string
  220. module.exports = function (it, S) {
  221. if (!isObject(it)) return it;
  222. var fn, val;
  223. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  224. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  225. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  226. throw TypeError("Can't convert object to primitive value");
  227. };
  228. /***/ }),
  229. /***/ "1ec9":
  230. /***/ (function(module, exports, __webpack_require__) {
  231. var isObject = __webpack_require__("f772");
  232. var document = __webpack_require__("e53d").document;
  233. // typeof document.createElement is 'object' in old IE
  234. var is = isObject(document) && isObject(document.createElement);
  235. module.exports = function (it) {
  236. return is ? document.createElement(it) : {};
  237. };
  238. /***/ }),
  239. /***/ "230e":
  240. /***/ (function(module, exports, __webpack_require__) {
  241. var isObject = __webpack_require__("d3f4");
  242. var document = __webpack_require__("7726").document;
  243. // typeof document.createElement is 'object' in old IE
  244. var is = isObject(document) && isObject(document.createElement);
  245. module.exports = function (it) {
  246. return is ? document.createElement(it) : {};
  247. };
  248. /***/ }),
  249. /***/ "294c":
  250. /***/ (function(module, exports) {
  251. module.exports = function (exec) {
  252. try {
  253. return !!exec();
  254. } catch (e) {
  255. return true;
  256. }
  257. };
  258. /***/ }),
  259. /***/ "2aba":
  260. /***/ (function(module, exports, __webpack_require__) {
  261. var global = __webpack_require__("7726");
  262. var hide = __webpack_require__("32e9");
  263. var has = __webpack_require__("69a8");
  264. var SRC = __webpack_require__("ca5a")('src');
  265. var $toString = __webpack_require__("fa5b");
  266. var TO_STRING = 'toString';
  267. var TPL = ('' + $toString).split(TO_STRING);
  268. __webpack_require__("8378").inspectSource = function (it) {
  269. return $toString.call(it);
  270. };
  271. (module.exports = function (O, key, val, safe) {
  272. var isFunction = typeof val == 'function';
  273. if (isFunction) has(val, 'name') || hide(val, 'name', key);
  274. if (O[key] === val) return;
  275. if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
  276. if (O === global) {
  277. O[key] = val;
  278. } else if (!safe) {
  279. delete O[key];
  280. hide(O, key, val);
  281. } else if (O[key]) {
  282. O[key] = val;
  283. } else {
  284. hide(O, key, val);
  285. }
  286. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  287. })(Function.prototype, TO_STRING, function toString() {
  288. return typeof this == 'function' && this[SRC] || $toString.call(this);
  289. });
  290. /***/ }),
  291. /***/ "2aeb":
  292. /***/ (function(module, exports, __webpack_require__) {
  293. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  294. var anObject = __webpack_require__("cb7c");
  295. var dPs = __webpack_require__("1495");
  296. var enumBugKeys = __webpack_require__("e11e");
  297. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  298. var Empty = function () { /* empty */ };
  299. var PROTOTYPE = 'prototype';
  300. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  301. var createDict = function () {
  302. // Thrash, waste and sodomy: IE GC bug
  303. var iframe = __webpack_require__("230e")('iframe');
  304. var i = enumBugKeys.length;
  305. var lt = '<';
  306. var gt = '>';
  307. var iframeDocument;
  308. iframe.style.display = 'none';
  309. __webpack_require__("fab2").appendChild(iframe);
  310. iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  311. // createDict = iframe.contentWindow.Object;
  312. // html.removeChild(iframe);
  313. iframeDocument = iframe.contentWindow.document;
  314. iframeDocument.open();
  315. iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  316. iframeDocument.close();
  317. createDict = iframeDocument.F;
  318. while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  319. return createDict();
  320. };
  321. module.exports = Object.create || function create(O, Properties) {
  322. var result;
  323. if (O !== null) {
  324. Empty[PROTOTYPE] = anObject(O);
  325. result = new Empty();
  326. Empty[PROTOTYPE] = null;
  327. // add "__proto__" for Object.getPrototypeOf polyfill
  328. result[IE_PROTO] = O;
  329. } else result = createDict();
  330. return Properties === undefined ? result : dPs(result, Properties);
  331. };
  332. /***/ }),
  333. /***/ "2b4c":
  334. /***/ (function(module, exports, __webpack_require__) {
  335. var store = __webpack_require__("5537")('wks');
  336. var uid = __webpack_require__("ca5a");
  337. var Symbol = __webpack_require__("7726").Symbol;
  338. var USE_SYMBOL = typeof Symbol == 'function';
  339. var $exports = module.exports = function (name) {
  340. return store[name] || (store[name] =
  341. USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
  342. };
  343. $exports.store = store;
  344. /***/ }),
  345. /***/ "2d00":
  346. /***/ (function(module, exports) {
  347. module.exports = false;
  348. /***/ }),
  349. /***/ "2d95":
  350. /***/ (function(module, exports) {
  351. var toString = {}.toString;
  352. module.exports = function (it) {
  353. return toString.call(it).slice(8, -1);
  354. };
  355. /***/ }),
  356. /***/ "32e9":
  357. /***/ (function(module, exports, __webpack_require__) {
  358. var dP = __webpack_require__("86cc");
  359. var createDesc = __webpack_require__("4630");
  360. module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
  361. return dP.f(object, key, createDesc(1, value));
  362. } : function (object, key, value) {
  363. object[key] = value;
  364. return object;
  365. };
  366. /***/ }),
  367. /***/ "35e8":
  368. /***/ (function(module, exports, __webpack_require__) {
  369. var dP = __webpack_require__("d9f6");
  370. var createDesc = __webpack_require__("aebd");
  371. module.exports = __webpack_require__("8e60") ? function (object, key, value) {
  372. return dP.f(object, key, createDesc(1, value));
  373. } : function (object, key, value) {
  374. object[key] = value;
  375. return object;
  376. };
  377. /***/ }),
  378. /***/ "38fd":
  379. /***/ (function(module, exports, __webpack_require__) {
  380. // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
  381. var has = __webpack_require__("69a8");
  382. var toObject = __webpack_require__("4bf8");
  383. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  384. var ObjectProto = Object.prototype;
  385. module.exports = Object.getPrototypeOf || function (O) {
  386. O = toObject(O);
  387. if (has(O, IE_PROTO)) return O[IE_PROTO];
  388. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  389. return O.constructor.prototype;
  390. } return O instanceof Object ? ObjectProto : null;
  391. };
  392. /***/ }),
  393. /***/ "41a0":
  394. /***/ (function(module, exports, __webpack_require__) {
  395. "use strict";
  396. var create = __webpack_require__("2aeb");
  397. var descriptor = __webpack_require__("4630");
  398. var setToStringTag = __webpack_require__("7f20");
  399. var IteratorPrototype = {};
  400. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  401. __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
  402. module.exports = function (Constructor, NAME, next) {
  403. Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  404. setToStringTag(Constructor, NAME + ' Iterator');
  405. };
  406. /***/ }),
  407. /***/ "4588":
  408. /***/ (function(module, exports) {
  409. // 7.1.4 ToInteger
  410. var ceil = Math.ceil;
  411. var floor = Math.floor;
  412. module.exports = function (it) {
  413. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  414. };
  415. /***/ }),
  416. /***/ "4630":
  417. /***/ (function(module, exports) {
  418. module.exports = function (bitmap, value) {
  419. return {
  420. enumerable: !(bitmap & 1),
  421. configurable: !(bitmap & 2),
  422. writable: !(bitmap & 4),
  423. value: value
  424. };
  425. };
  426. /***/ }),
  427. /***/ "4bf8":
  428. /***/ (function(module, exports, __webpack_require__) {
  429. // 7.1.13 ToObject(argument)
  430. var defined = __webpack_require__("be13");
  431. module.exports = function (it) {
  432. return Object(defined(it));
  433. };
  434. /***/ }),
  435. /***/ "52a7":
  436. /***/ (function(module, exports) {
  437. exports.f = {}.propertyIsEnumerable;
  438. /***/ }),
  439. /***/ "5537":
  440. /***/ (function(module, exports, __webpack_require__) {
  441. var core = __webpack_require__("8378");
  442. var global = __webpack_require__("7726");
  443. var SHARED = '__core-js_shared__';
  444. var store = global[SHARED] || (global[SHARED] = {});
  445. (module.exports = function (key, value) {
  446. return store[key] || (store[key] = value !== undefined ? value : {});
  447. })('versions', []).push({
  448. version: core.version,
  449. mode: __webpack_require__("2d00") ? 'pure' : 'global',
  450. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  451. });
  452. /***/ }),
  453. /***/ "584a":
  454. /***/ (function(module, exports) {
  455. var core = module.exports = { version: '2.6.5' };
  456. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  457. /***/ }),
  458. /***/ "5ca1":
  459. /***/ (function(module, exports, __webpack_require__) {
  460. var global = __webpack_require__("7726");
  461. var core = __webpack_require__("8378");
  462. var hide = __webpack_require__("32e9");
  463. var redefine = __webpack_require__("2aba");
  464. var ctx = __webpack_require__("9b43");
  465. var PROTOTYPE = 'prototype';
  466. var $export = function (type, name, source) {
  467. var IS_FORCED = type & $export.F;
  468. var IS_GLOBAL = type & $export.G;
  469. var IS_STATIC = type & $export.S;
  470. var IS_PROTO = type & $export.P;
  471. var IS_BIND = type & $export.B;
  472. var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
  473. var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  474. var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
  475. var key, own, out, exp;
  476. if (IS_GLOBAL) source = name;
  477. for (key in source) {
  478. // contains in native
  479. own = !IS_FORCED && target && target[key] !== undefined;
  480. // export native or passed
  481. out = (own ? target : source)[key];
  482. // bind timers to global for call from export context
  483. exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  484. // extend global
  485. if (target) redefine(target, key, out, type & $export.U);
  486. // export
  487. if (exports[key] != out) hide(exports, key, exp);
  488. if (IS_PROTO && expProto[key] != out) expProto[key] = out;
  489. }
  490. };
  491. global.core = core;
  492. // type bitmap
  493. $export.F = 1; // forced
  494. $export.G = 2; // global
  495. $export.S = 4; // static
  496. $export.P = 8; // proto
  497. $export.B = 16; // bind
  498. $export.W = 32; // wrap
  499. $export.U = 64; // safe
  500. $export.R = 128; // real proto method for `library`
  501. module.exports = $export;
  502. /***/ }),
  503. /***/ "5dbc":
  504. /***/ (function(module, exports, __webpack_require__) {
  505. var isObject = __webpack_require__("d3f4");
  506. var setPrototypeOf = __webpack_require__("8b97").set;
  507. module.exports = function (that, target, C) {
  508. var S = target.constructor;
  509. var P;
  510. if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
  511. setPrototypeOf(that, P);
  512. } return that;
  513. };
  514. /***/ }),
  515. /***/ "613b":
  516. /***/ (function(module, exports, __webpack_require__) {
  517. var shared = __webpack_require__("5537")('keys');
  518. var uid = __webpack_require__("ca5a");
  519. module.exports = function (key) {
  520. return shared[key] || (shared[key] = uid(key));
  521. };
  522. /***/ }),
  523. /***/ "626a":
  524. /***/ (function(module, exports, __webpack_require__) {
  525. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  526. var cof = __webpack_require__("2d95");
  527. // eslint-disable-next-line no-prototype-builtins
  528. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  529. return cof(it) == 'String' ? it.split('') : Object(it);
  530. };
  531. /***/ }),
  532. /***/ "63b6":
  533. /***/ (function(module, exports, __webpack_require__) {
  534. var global = __webpack_require__("e53d");
  535. var core = __webpack_require__("584a");
  536. var ctx = __webpack_require__("d864");
  537. var hide = __webpack_require__("35e8");
  538. var has = __webpack_require__("07e3");
  539. var PROTOTYPE = 'prototype';
  540. var $export = function (type, name, source) {
  541. var IS_FORCED = type & $export.F;
  542. var IS_GLOBAL = type & $export.G;
  543. var IS_STATIC = type & $export.S;
  544. var IS_PROTO = type & $export.P;
  545. var IS_BIND = type & $export.B;
  546. var IS_WRAP = type & $export.W;
  547. var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  548. var expProto = exports[PROTOTYPE];
  549. var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  550. var key, own, out;
  551. if (IS_GLOBAL) source = name;
  552. for (key in source) {
  553. // contains in native
  554. own = !IS_FORCED && target && target[key] !== undefined;
  555. if (own && has(exports, key)) continue;
  556. // export native or passed
  557. out = own ? target[key] : source[key];
  558. // prevent global pollution for namespaces
  559. exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
  560. // bind timers to global for call from export context
  561. : IS_BIND && own ? ctx(out, global)
  562. // wrap global constructors for prevent change them in library
  563. : IS_WRAP && target[key] == out ? (function (C) {
  564. var F = function (a, b, c) {
  565. if (this instanceof C) {
  566. switch (arguments.length) {
  567. case 0: return new C();
  568. case 1: return new C(a);
  569. case 2: return new C(a, b);
  570. } return new C(a, b, c);
  571. } return C.apply(this, arguments);
  572. };
  573. F[PROTOTYPE] = C[PROTOTYPE];
  574. return F;
  575. // make static versions for prototype methods
  576. })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  577. // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
  578. if (IS_PROTO) {
  579. (exports.virtual || (exports.virtual = {}))[key] = out;
  580. // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
  581. if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
  582. }
  583. }
  584. };
  585. // type bitmap
  586. $export.F = 1; // forced
  587. $export.G = 2; // global
  588. $export.S = 4; // static
  589. $export.P = 8; // proto
  590. $export.B = 16; // bind
  591. $export.W = 32; // wrap
  592. $export.U = 64; // safe
  593. $export.R = 128; // real proto method for `library`
  594. module.exports = $export;
  595. /***/ }),
  596. /***/ "6821":
  597. /***/ (function(module, exports, __webpack_require__) {
  598. // to indexed object, toObject with fallback for non-array-like ES3 strings
  599. var IObject = __webpack_require__("626a");
  600. var defined = __webpack_require__("be13");
  601. module.exports = function (it) {
  602. return IObject(defined(it));
  603. };
  604. /***/ }),
  605. /***/ "69a8":
  606. /***/ (function(module, exports) {
  607. var hasOwnProperty = {}.hasOwnProperty;
  608. module.exports = function (it, key) {
  609. return hasOwnProperty.call(it, key);
  610. };
  611. /***/ }),
  612. /***/ "6a99":
  613. /***/ (function(module, exports, __webpack_require__) {
  614. // 7.1.1 ToPrimitive(input [, PreferredType])
  615. var isObject = __webpack_require__("d3f4");
  616. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  617. // and the second argument - flag - preferred type is a string
  618. module.exports = function (it, S) {
  619. if (!isObject(it)) return it;
  620. var fn, val;
  621. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  622. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  623. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  624. throw TypeError("Can't convert object to primitive value");
  625. };
  626. /***/ }),
  627. /***/ "6b4c":
  628. /***/ (function(module, exports) {
  629. var toString = {}.toString;
  630. module.exports = function (it) {
  631. return toString.call(it).slice(8, -1);
  632. };
  633. /***/ }),
  634. /***/ "7726":
  635. /***/ (function(module, exports) {
  636. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  637. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  638. ? window : typeof self != 'undefined' && self.Math == Math ? self
  639. // eslint-disable-next-line no-new-func
  640. : Function('return this')();
  641. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  642. /***/ }),
  643. /***/ "77f1":
  644. /***/ (function(module, exports, __webpack_require__) {
  645. var toInteger = __webpack_require__("4588");
  646. var max = Math.max;
  647. var min = Math.min;
  648. module.exports = function (index, length) {
  649. index = toInteger(index);
  650. return index < 0 ? max(index + length, 0) : min(index, length);
  651. };
  652. /***/ }),
  653. /***/ "794b":
  654. /***/ (function(module, exports, __webpack_require__) {
  655. module.exports = !__webpack_require__("8e60") && !__webpack_require__("294c")(function () {
  656. return Object.defineProperty(__webpack_require__("1ec9")('div'), 'a', { get: function () { return 7; } }).a != 7;
  657. });
  658. /***/ }),
  659. /***/ "79aa":
  660. /***/ (function(module, exports) {
  661. module.exports = function (it) {
  662. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  663. return it;
  664. };
  665. /***/ }),
  666. /***/ "79e5":
  667. /***/ (function(module, exports) {
  668. module.exports = function (exec) {
  669. try {
  670. return !!exec();
  671. } catch (e) {
  672. return true;
  673. }
  674. };
  675. /***/ }),
  676. /***/ "7f20":
  677. /***/ (function(module, exports, __webpack_require__) {
  678. var def = __webpack_require__("86cc").f;
  679. var has = __webpack_require__("69a8");
  680. var TAG = __webpack_require__("2b4c")('toStringTag');
  681. module.exports = function (it, tag, stat) {
  682. if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
  683. };
  684. /***/ }),
  685. /***/ "7f7f":
  686. /***/ (function(module, exports, __webpack_require__) {
  687. var dP = __webpack_require__("86cc").f;
  688. var FProto = Function.prototype;
  689. var nameRE = /^\s*function ([^ (]*)/;
  690. var NAME = 'name';
  691. // 19.2.4.2 name
  692. NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, {
  693. configurable: true,
  694. get: function () {
  695. try {
  696. return ('' + this).match(nameRE)[1];
  697. } catch (e) {
  698. return '';
  699. }
  700. }
  701. });
  702. /***/ }),
  703. /***/ "8378":
  704. /***/ (function(module, exports) {
  705. var core = module.exports = { version: '2.6.5' };
  706. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  707. /***/ }),
  708. /***/ "84f2":
  709. /***/ (function(module, exports) {
  710. module.exports = {};
  711. /***/ }),
  712. /***/ "86cc":
  713. /***/ (function(module, exports, __webpack_require__) {
  714. var anObject = __webpack_require__("cb7c");
  715. var IE8_DOM_DEFINE = __webpack_require__("c69a");
  716. var toPrimitive = __webpack_require__("6a99");
  717. var dP = Object.defineProperty;
  718. exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  719. anObject(O);
  720. P = toPrimitive(P, true);
  721. anObject(Attributes);
  722. if (IE8_DOM_DEFINE) try {
  723. return dP(O, P, Attributes);
  724. } catch (e) { /* empty */ }
  725. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  726. if ('value' in Attributes) O[P] = Attributes.value;
  727. return O;
  728. };
  729. /***/ }),
  730. /***/ "8b97":
  731. /***/ (function(module, exports, __webpack_require__) {
  732. // Works with __proto__ only. Old v8 can't work with null proto objects.
  733. /* eslint-disable no-proto */
  734. var isObject = __webpack_require__("d3f4");
  735. var anObject = __webpack_require__("cb7c");
  736. var check = function (O, proto) {
  737. anObject(O);
  738. if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
  739. };
  740. module.exports = {
  741. set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
  742. function (test, buggy, set) {
  743. try {
  744. set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2);
  745. set(test, []);
  746. buggy = !(test instanceof Array);
  747. } catch (e) { buggy = true; }
  748. return function setPrototypeOf(O, proto) {
  749. check(O, proto);
  750. if (buggy) O.__proto__ = proto;
  751. else set(O, proto);
  752. return O;
  753. };
  754. }({}, false) : undefined),
  755. check: check
  756. };
  757. /***/ }),
  758. /***/ "8e60":
  759. /***/ (function(module, exports, __webpack_require__) {
  760. // Thank's IE8 for his funny defineProperty
  761. module.exports = !__webpack_require__("294c")(function () {
  762. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  763. });
  764. /***/ }),
  765. /***/ "9003":
  766. /***/ (function(module, exports, __webpack_require__) {
  767. // 7.2.2 IsArray(argument)
  768. var cof = __webpack_require__("6b4c");
  769. module.exports = Array.isArray || function isArray(arg) {
  770. return cof(arg) == 'Array';
  771. };
  772. /***/ }),
  773. /***/ "9093":
  774. /***/ (function(module, exports, __webpack_require__) {
  775. // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
  776. var $keys = __webpack_require__("ce10");
  777. var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype');
  778. exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  779. return $keys(O, hiddenKeys);
  780. };
  781. /***/ }),
  782. /***/ "9b43":
  783. /***/ (function(module, exports, __webpack_require__) {
  784. // optional / simple context binding
  785. var aFunction = __webpack_require__("d8e8");
  786. module.exports = function (fn, that, length) {
  787. aFunction(fn);
  788. if (that === undefined) return fn;
  789. switch (length) {
  790. case 1: return function (a) {
  791. return fn.call(that, a);
  792. };
  793. case 2: return function (a, b) {
  794. return fn.call(that, a, b);
  795. };
  796. case 3: return function (a, b, c) {
  797. return fn.call(that, a, b, c);
  798. };
  799. }
  800. return function (/* ...args */) {
  801. return fn.apply(that, arguments);
  802. };
  803. };
  804. /***/ }),
  805. /***/ "9c6c":
  806. /***/ (function(module, exports, __webpack_require__) {
  807. // 22.1.3.31 Array.prototype[@@unscopables]
  808. var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
  809. var ArrayProto = Array.prototype;
  810. if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
  811. module.exports = function (key) {
  812. ArrayProto[UNSCOPABLES][key] = true;
  813. };
  814. /***/ }),
  815. /***/ "9def":
  816. /***/ (function(module, exports, __webpack_require__) {
  817. // 7.1.15 ToLength
  818. var toInteger = __webpack_require__("4588");
  819. var min = Math.min;
  820. module.exports = function (it) {
  821. return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  822. };
  823. /***/ }),
  824. /***/ "9e1e":
  825. /***/ (function(module, exports, __webpack_require__) {
  826. // Thank's IE8 for his funny defineProperty
  827. module.exports = !__webpack_require__("79e5")(function () {
  828. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  829. });
  830. /***/ }),
  831. /***/ "a745":
  832. /***/ (function(module, exports, __webpack_require__) {
  833. module.exports = __webpack_require__("f410");
  834. /***/ }),
  835. /***/ "aa77":
  836. /***/ (function(module, exports, __webpack_require__) {
  837. var $export = __webpack_require__("5ca1");
  838. var defined = __webpack_require__("be13");
  839. var fails = __webpack_require__("79e5");
  840. var spaces = __webpack_require__("fdef");
  841. var space = '[' + spaces + ']';
  842. var non = '\u200b\u0085';
  843. var ltrim = RegExp('^' + space + space + '*');
  844. var rtrim = RegExp(space + space + '*$');
  845. var exporter = function (KEY, exec, ALIAS) {
  846. var exp = {};
  847. var FORCE = fails(function () {
  848. return !!spaces[KEY]() || non[KEY]() != non;
  849. });
  850. var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
  851. if (ALIAS) exp[ALIAS] = fn;
  852. $export($export.P + $export.F * FORCE, 'String', exp);
  853. };
  854. // 1 -> String#trimLeft
  855. // 2 -> String#trimRight
  856. // 3 -> String#trim
  857. var trim = exporter.trim = function (string, TYPE) {
  858. string = String(defined(string));
  859. if (TYPE & 1) string = string.replace(ltrim, '');
  860. if (TYPE & 2) string = string.replace(rtrim, '');
  861. return string;
  862. };
  863. module.exports = exporter;
  864. /***/ }),
  865. /***/ "ac6a":
  866. /***/ (function(module, exports, __webpack_require__) {
  867. var $iterators = __webpack_require__("cadf");
  868. var getKeys = __webpack_require__("0d58");
  869. var redefine = __webpack_require__("2aba");
  870. var global = __webpack_require__("7726");
  871. var hide = __webpack_require__("32e9");
  872. var Iterators = __webpack_require__("84f2");
  873. var wks = __webpack_require__("2b4c");
  874. var ITERATOR = wks('iterator');
  875. var TO_STRING_TAG = wks('toStringTag');
  876. var ArrayValues = Iterators.Array;
  877. var DOMIterables = {
  878. CSSRuleList: true, // TODO: Not spec compliant, should be false.
  879. CSSStyleDeclaration: false,
  880. CSSValueList: false,
  881. ClientRectList: false,
  882. DOMRectList: false,
  883. DOMStringList: false,
  884. DOMTokenList: true,
  885. DataTransferItemList: false,
  886. FileList: false,
  887. HTMLAllCollection: false,
  888. HTMLCollection: false,
  889. HTMLFormElement: false,
  890. HTMLSelectElement: false,
  891. MediaList: true, // TODO: Not spec compliant, should be false.
  892. MimeTypeArray: false,
  893. NamedNodeMap: false,
  894. NodeList: true,
  895. PaintRequestList: false,
  896. Plugin: false,
  897. PluginArray: false,
  898. SVGLengthList: false,
  899. SVGNumberList: false,
  900. SVGPathSegList: false,
  901. SVGPointList: false,
  902. SVGStringList: false,
  903. SVGTransformList: false,
  904. SourceBufferList: false,
  905. StyleSheetList: true, // TODO: Not spec compliant, should be false.
  906. TextTrackCueList: false,
  907. TextTrackList: false,
  908. TouchList: false
  909. };
  910. for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
  911. var NAME = collections[i];
  912. var explicit = DOMIterables[NAME];
  913. var Collection = global[NAME];
  914. var proto = Collection && Collection.prototype;
  915. var key;
  916. if (proto) {
  917. if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
  918. if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
  919. Iterators[NAME] = ArrayValues;
  920. if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
  921. }
  922. }
  923. /***/ }),
  924. /***/ "aebd":
  925. /***/ (function(module, exports) {
  926. module.exports = function (bitmap, value) {
  927. return {
  928. enumerable: !(bitmap & 1),
  929. configurable: !(bitmap & 2),
  930. writable: !(bitmap & 4),
  931. value: value
  932. };
  933. };
  934. /***/ }),
  935. /***/ "bcfc":
  936. /***/ (function(module, exports, __webpack_require__) {
  937. // extracted by mini-css-extract-plugin
  938. /***/ }),
  939. /***/ "be13":
  940. /***/ (function(module, exports) {
  941. // 7.2.1 RequireObjectCoercible(argument)
  942. module.exports = function (it) {
  943. if (it == undefined) throw TypeError("Can't call method on " + it);
  944. return it;
  945. };
  946. /***/ }),
  947. /***/ "c366":
  948. /***/ (function(module, exports, __webpack_require__) {
  949. // false -> Array#indexOf
  950. // true -> Array#includes
  951. var toIObject = __webpack_require__("6821");
  952. var toLength = __webpack_require__("9def");
  953. var toAbsoluteIndex = __webpack_require__("77f1");
  954. module.exports = function (IS_INCLUDES) {
  955. return function ($this, el, fromIndex) {
  956. var O = toIObject($this);
  957. var length = toLength(O.length);
  958. var index = toAbsoluteIndex(fromIndex, length);
  959. var value;
  960. // Array#includes uses SameValueZero equality algorithm
  961. // eslint-disable-next-line no-self-compare
  962. if (IS_INCLUDES && el != el) while (length > index) {
  963. value = O[index++];
  964. // eslint-disable-next-line no-self-compare
  965. if (value != value) return true;
  966. // Array#indexOf ignores holes, Array#includes - not
  967. } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
  968. if (O[index] === el) return IS_INCLUDES || index || 0;
  969. } return !IS_INCLUDES && -1;
  970. };
  971. };
  972. /***/ }),
  973. /***/ "c5f6":
  974. /***/ (function(module, exports, __webpack_require__) {
  975. "use strict";
  976. var global = __webpack_require__("7726");
  977. var has = __webpack_require__("69a8");
  978. var cof = __webpack_require__("2d95");
  979. var inheritIfRequired = __webpack_require__("5dbc");
  980. var toPrimitive = __webpack_require__("6a99");
  981. var fails = __webpack_require__("79e5");
  982. var gOPN = __webpack_require__("9093").f;
  983. var gOPD = __webpack_require__("11e9").f;
  984. var dP = __webpack_require__("86cc").f;
  985. var $trim = __webpack_require__("aa77").trim;
  986. var NUMBER = 'Number';
  987. var $Number = global[NUMBER];
  988. var Base = $Number;
  989. var proto = $Number.prototype;
  990. // Opera ~12 has broken Object#toString
  991. var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER;
  992. var TRIM = 'trim' in String.prototype;
  993. // 7.1.3 ToNumber(argument)
  994. var toNumber = function (argument) {
  995. var it = toPrimitive(argument, false);
  996. if (typeof it == 'string' && it.length > 2) {
  997. it = TRIM ? it.trim() : $trim(it, 3);
  998. var first = it.charCodeAt(0);
  999. var third, radix, maxCode;
  1000. if (first === 43 || first === 45) {
  1001. third = it.charCodeAt(2);
  1002. if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
  1003. } else if (first === 48) {
  1004. switch (it.charCodeAt(1)) {
  1005. case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
  1006. case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
  1007. default: return +it;
  1008. }
  1009. for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
  1010. code = digits.charCodeAt(i);
  1011. // parseInt parses a string to a first unavailable symbol
  1012. // but ToNumber should return NaN if a string contains unavailable symbols
  1013. if (code < 48 || code > maxCode) return NaN;
  1014. } return parseInt(digits, radix);
  1015. }
  1016. } return +it;
  1017. };
  1018. if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
  1019. $Number = function Number(value) {
  1020. var it = arguments.length < 1 ? 0 : value;
  1021. var that = this;
  1022. return that instanceof $Number
  1023. // check on 1..constructor(foo) case
  1024. && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
  1025. ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
  1026. };
  1027. for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : (
  1028. // ES3:
  1029. 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
  1030. // ES6 (in case, if modules with ES6 Number statics required before):
  1031. 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
  1032. 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
  1033. ).split(','), j = 0, key; keys.length > j; j++) {
  1034. if (has(Base, key = keys[j]) && !has($Number, key)) {
  1035. dP($Number, key, gOPD(Base, key));
  1036. }
  1037. }
  1038. $Number.prototype = proto;
  1039. proto.constructor = $Number;
  1040. __webpack_require__("2aba")(global, NUMBER, $Number);
  1041. }
  1042. /***/ }),
  1043. /***/ "c69a":
  1044. /***/ (function(module, exports, __webpack_require__) {
  1045. module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
  1046. return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
  1047. });
  1048. /***/ }),
  1049. /***/ "ca5a":
  1050. /***/ (function(module, exports) {
  1051. var id = 0;
  1052. var px = Math.random();
  1053. module.exports = function (key) {
  1054. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  1055. };
  1056. /***/ }),
  1057. /***/ "cadf":
  1058. /***/ (function(module, exports, __webpack_require__) {
  1059. "use strict";
  1060. var addToUnscopables = __webpack_require__("9c6c");
  1061. var step = __webpack_require__("d53b");
  1062. var Iterators = __webpack_require__("84f2");
  1063. var toIObject = __webpack_require__("6821");
  1064. // 22.1.3.4 Array.prototype.entries()
  1065. // 22.1.3.13 Array.prototype.keys()
  1066. // 22.1.3.29 Array.prototype.values()
  1067. // 22.1.3.30 Array.prototype[@@iterator]()
  1068. module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
  1069. this._t = toIObject(iterated); // target
  1070. this._i = 0; // next index
  1071. this._k = kind; // kind
  1072. // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
  1073. }, function () {
  1074. var O = this._t;
  1075. var kind = this._k;
  1076. var index = this._i++;
  1077. if (!O || index >= O.length) {
  1078. this._t = undefined;
  1079. return step(1);
  1080. }
  1081. if (kind == 'keys') return step(0, index);
  1082. if (kind == 'values') return step(0, O[index]);
  1083. return step(0, [index, O[index]]);
  1084. }, 'values');
  1085. // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
  1086. Iterators.Arguments = Iterators.Array;
  1087. addToUnscopables('keys');
  1088. addToUnscopables('values');
  1089. addToUnscopables('entries');
  1090. /***/ }),
  1091. /***/ "cb7c":
  1092. /***/ (function(module, exports, __webpack_require__) {
  1093. var isObject = __webpack_require__("d3f4");
  1094. module.exports = function (it) {
  1095. if (!isObject(it)) throw TypeError(it + ' is not an object!');
  1096. return it;
  1097. };
  1098. /***/ }),
  1099. /***/ "ce10":
  1100. /***/ (function(module, exports, __webpack_require__) {
  1101. var has = __webpack_require__("69a8");
  1102. var toIObject = __webpack_require__("6821");
  1103. var arrayIndexOf = __webpack_require__("c366")(false);
  1104. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  1105. module.exports = function (object, names) {
  1106. var O = toIObject(object);
  1107. var i = 0;
  1108. var result = [];
  1109. var key;
  1110. for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  1111. // Don't enum bug & hidden keys
  1112. while (names.length > i) if (has(O, key = names[i++])) {
  1113. ~arrayIndexOf(result, key) || result.push(key);
  1114. }
  1115. return result;
  1116. };
  1117. /***/ }),
  1118. /***/ "d3f4":
  1119. /***/ (function(module, exports) {
  1120. module.exports = function (it) {
  1121. return typeof it === 'object' ? it !== null : typeof it === 'function';
  1122. };
  1123. /***/ }),
  1124. /***/ "d53b":
  1125. /***/ (function(module, exports) {
  1126. module.exports = function (done, value) {
  1127. return { value: value, done: !!done };
  1128. };
  1129. /***/ }),
  1130. /***/ "d864":
  1131. /***/ (function(module, exports, __webpack_require__) {
  1132. // optional / simple context binding
  1133. var aFunction = __webpack_require__("79aa");
  1134. module.exports = function (fn, that, length) {
  1135. aFunction(fn);
  1136. if (that === undefined) return fn;
  1137. switch (length) {
  1138. case 1: return function (a) {
  1139. return fn.call(that, a);
  1140. };
  1141. case 2: return function (a, b) {
  1142. return fn.call(that, a, b);
  1143. };
  1144. case 3: return function (a, b, c) {
  1145. return fn.call(that, a, b, c);
  1146. };
  1147. }
  1148. return function (/* ...args */) {
  1149. return fn.apply(that, arguments);
  1150. };
  1151. };
  1152. /***/ }),
  1153. /***/ "d8e8":
  1154. /***/ (function(module, exports) {
  1155. module.exports = function (it) {
  1156. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  1157. return it;
  1158. };
  1159. /***/ }),
  1160. /***/ "d9f6":
  1161. /***/ (function(module, exports, __webpack_require__) {
  1162. var anObject = __webpack_require__("e4ae");
  1163. var IE8_DOM_DEFINE = __webpack_require__("794b");
  1164. var toPrimitive = __webpack_require__("1bc3");
  1165. var dP = Object.defineProperty;
  1166. exports.f = __webpack_require__("8e60") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  1167. anObject(O);
  1168. P = toPrimitive(P, true);
  1169. anObject(Attributes);
  1170. if (IE8_DOM_DEFINE) try {
  1171. return dP(O, P, Attributes);
  1172. } catch (e) { /* empty */ }
  1173. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  1174. if ('value' in Attributes) O[P] = Attributes.value;
  1175. return O;
  1176. };
  1177. /***/ }),
  1178. /***/ "da0a":
  1179. /***/ (function(module, exports, __webpack_require__) {
  1180. "use strict";
  1181. // Method that will return the data type for any structure passed to it
  1182. function getDataType (data) {
  1183. // Use the objects toString method on the data.
  1184. // This will return something like [object String]
  1185. // Then we use .slice to grab the last portion of it (in this case the "string" bit)
  1186. return Object.prototype.toString.call(data).slice(8, -1);
  1187. }
  1188. // Create a method to detect whether an object contains a circular reference
  1189. function isCyclic (data) {
  1190. // Create an array that will store the nodes of the array that have already been iterated over
  1191. let seenObjects = [];
  1192. function detect (data) {
  1193. // If the data pass is an object
  1194. if (data && getDataType(data) === "Object") {
  1195. // If the data is already in the seen nodes array then we know there is a circular reference
  1196. // Therefore return true
  1197. if (seenObjects.indexOf(data) !== -1) {
  1198. return true;
  1199. }
  1200. // Add the data to the seen objects array
  1201. seenObjects.push(data);
  1202. // Begin iterating through the data passed to the method
  1203. for (var key in data) {
  1204. // Recall this method with the objects key
  1205. if (data.hasOwnProperty(key) === true && detect(data[key])) {
  1206. return true;
  1207. }
  1208. }
  1209. }
  1210. return false;
  1211. }
  1212. // Return the method
  1213. return detect(data);
  1214. }
  1215. const deepClone = function (data) {
  1216. // If the data is null or undefined then we return undefined
  1217. if (data === null || data === undefined) {
  1218. return undefined;
  1219. }
  1220. // Get the data type and store it
  1221. const dataType = getDataType(data);
  1222. // If the data passed is a date object
  1223. if (dataType === "Date") {
  1224. // Create a new date object and set the time to what it was previously
  1225. let clonedDate = new Date();
  1226. clonedDate.setTime(data.getTime());
  1227. return clonedDate;
  1228. }
  1229. // If the data passed is an object
  1230. if (dataType === "Object") {
  1231. // Check for circular references, if there are then we just return the un-cloned data.
  1232. if (isCyclic(data) === true) {
  1233. return data;
  1234. }
  1235. // Create a new object that will store our copied data
  1236. let copiedObject = {};
  1237. // Iterate over the objects keys
  1238. for (let key in data) {
  1239. // Clone the keys of each of the objects so that we can deeply copy and nested data structures
  1240. // For example if an object has a key value that is an array
  1241. // Add this cloned key value to the copiedObject we created earlier
  1242. copiedObject[key] = deepClone(data[key]);
  1243. }
  1244. // Return the deeply copied object
  1245. return copiedObject;
  1246. }
  1247. // If the data is an array
  1248. if (dataType === "Array") {
  1249. // Create a new array that will have no references to the one we want to copy
  1250. let copiedArray = [];
  1251. // Iterate over the arrays elements
  1252. for (var i = 0; i < data.length; i++) {
  1253. // Push the arrays elements to this new array
  1254. // First recall this method with the elements
  1255. // This is so arrays of objects and other nested data structures get correctly cloned.
  1256. copiedArray.push(deepClone(data[i]));
  1257. }
  1258. // Return the cloned array
  1259. return copiedArray;
  1260. }
  1261. // If it's any other data type like a string or number, they don't need cloning so we just return them
  1262. else {
  1263. return data;
  1264. }
  1265. }
  1266. // Export a new instance of the clone constructor
  1267. module.exports = deepClone;
  1268. /***/ }),
  1269. /***/ "e11e":
  1270. /***/ (function(module, exports) {
  1271. // IE 8- don't enum bug keys
  1272. module.exports = (
  1273. 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
  1274. ).split(',');
  1275. /***/ }),
  1276. /***/ "e4ae":
  1277. /***/ (function(module, exports, __webpack_require__) {
  1278. var isObject = __webpack_require__("f772");
  1279. module.exports = function (it) {
  1280. if (!isObject(it)) throw TypeError(it + ' is not an object!');
  1281. return it;
  1282. };
  1283. /***/ }),
  1284. /***/ "e53d":
  1285. /***/ (function(module, exports) {
  1286. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  1287. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  1288. ? window : typeof self != 'undefined' && self.Math == Math ? self
  1289. // eslint-disable-next-line no-new-func
  1290. : Function('return this')();
  1291. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  1292. /***/ }),
  1293. /***/ "f410":
  1294. /***/ (function(module, exports, __webpack_require__) {
  1295. __webpack_require__("1af6");
  1296. module.exports = __webpack_require__("584a").Array.isArray;
  1297. /***/ }),
  1298. /***/ "f772":
  1299. /***/ (function(module, exports) {
  1300. module.exports = function (it) {
  1301. return typeof it === 'object' ? it !== null : typeof it === 'function';
  1302. };
  1303. /***/ }),
  1304. /***/ "fa5b":
  1305. /***/ (function(module, exports, __webpack_require__) {
  1306. module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
  1307. /***/ }),
  1308. /***/ "fab2":
  1309. /***/ (function(module, exports, __webpack_require__) {
  1310. var document = __webpack_require__("7726").document;
  1311. module.exports = document && document.documentElement;
  1312. /***/ }),
  1313. /***/ "fb15":
  1314. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1315. "use strict";
  1316. __webpack_require__.r(__webpack_exports__);
  1317. // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
  1318. // This file is imported into lib/wc client bundles.
  1319. if (typeof window !== 'undefined') {
  1320. var i
  1321. if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
  1322. __webpack_require__.p = i[1] // eslint-disable-line
  1323. }
  1324. }
  1325. // Indicate to webpack that this file can be concatenated
  1326. /* harmony default export */ var setPublicPath = (null);
  1327. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js
  1328. var es6_function_name = __webpack_require__("7f7f");
  1329. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"553e40dc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/org-tree/org-tree.vue?vue&type=template&id=56dd2042&
  1330. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"org-tree-container"},[_c('div',{staticClass:"org-tree",class:{horizontal: _vm.horizontal, collapsable: _vm.collapsable}},[_c('org-tree-node',_vm._b({attrs:{"data":_vm.dataCloned,"props":_vm.props,"horizontal":_vm.horizontal,"label-width":_vm.labelWidth,"collapsable":_vm.collapsable,"node-render":_vm.nodeRender,"button-render":_vm.buttonRender,"label-class-name":_vm.labelClassName},on:{"on-expand":_vm.handleExpand,"on-node-click":_vm.handleNodeClick}},'org-tree-node',_vm.$listeners,false))],1)])}
  1331. var staticRenderFns = []
  1332. // CONCATENATED MODULE: ./src/components/org-tree/org-tree.vue?vue&type=template&id=56dd2042&
  1333. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js
  1334. var is_array = __webpack_require__("a745");
  1335. var is_array_default = /*#__PURE__*/__webpack_require__.n(is_array);
  1336. // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
  1337. var web_dom_iterable = __webpack_require__("ac6a");
  1338. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
  1339. var es6_number_constructor = __webpack_require__("c5f6");
  1340. // CONCATENATED MODULE: ./src/components/org-tree/node.js
  1341. // 判断是否叶子节点
  1342. var node_isLeaf = function isLeaf(data, prop) {
  1343. return !(is_array_default()(data[prop]) && data[prop].length > 0);
  1344. }; // 创建 node 节点
  1345. var renderNode = function renderNode(h, data, context) {
  1346. var props = context.props;
  1347. var cls = ['org-tree-node'];
  1348. var childNodes = [];
  1349. var children = data[props.props.children];
  1350. if (node_isLeaf(data, props.props.children)) {
  1351. cls.push('is-leaf');
  1352. } else if (props.collapsable && !data[props.props.expand]) {
  1353. cls.push('collapsed');
  1354. }
  1355. childNodes.push(renderLabel(h, data, context));
  1356. if (!props.collapsable || data[props.props.expand]) {
  1357. childNodes.push(node_renderChildren(h, children, context));
  1358. }
  1359. return h('div', {
  1360. domProps: {
  1361. className: cls.join(' ')
  1362. }
  1363. }, childNodes);
  1364. }; // 创建展开折叠按钮
  1365. var renderBtn = function renderBtn(h, data, context) {
  1366. var props = context.props;
  1367. var expandHandler = context.listeners['on-expand'];
  1368. var cls = ['org-tree-node-btn'];
  1369. if (data[props.props.expand]) {
  1370. cls.push('expanded');
  1371. }
  1372. return h('span', {
  1373. 'class': 'org-tree-button-wrapper',
  1374. on: {
  1375. click: function click(e) {
  1376. e.stopPropagation();
  1377. expandHandler && expandHandler(data);
  1378. }
  1379. }
  1380. }, [props.buttonRender ? props.buttonRender(h, data) : h('span', {
  1381. 'class': cls.join(' ')
  1382. })]);
  1383. }; // 创建 label 节点
  1384. var renderLabel = function renderLabel(h, data, context) {
  1385. var props = context.props;
  1386. var label = data[props.props.label];
  1387. var nodeRender = props.nodeRender;
  1388. var clickHandler = context.listeners['on-node-click'];
  1389. var mousedownHandler = context.listeners['on-node-mousedown'];
  1390. var mouseupHandler = context.listeners['on-node-mouseup'];
  1391. var touchstartHandler = context.listeners['on-node-touchstart'];
  1392. var touchleaveHandler = context.listeners['on-node-touchleave'];
  1393. var childNodes = [];
  1394. if (typeof nodeRender === 'function') {
  1395. var vnode = nodeRender(h, data);
  1396. vnode && childNodes.push(vnode);
  1397. } else {
  1398. childNodes.push(label);
  1399. }
  1400. if (props.collapsable && !node_isLeaf(data, props.props.children)) {
  1401. childNodes.push(renderBtn(h, data, context));
  1402. }
  1403. var cls = ['org-tree-node-label-inner'];
  1404. var labelWidth = props.labelWidth,
  1405. labelClassName = props.labelClassName;
  1406. if (typeof labelWidth === 'number') {
  1407. labelWidth += 'px';
  1408. }
  1409. if (typeof labelClassName === 'function') {
  1410. labelClassName = labelClassName(data);
  1411. }
  1412. labelClassName && cls.push(labelClassName);
  1413. return h('div', {
  1414. domProps: {
  1415. className: 'org-tree-node-label'
  1416. },
  1417. on: {
  1418. click: function click(e) {
  1419. return clickHandler && clickHandler(e, data);
  1420. },
  1421. mousedown: function mousedown(e) {
  1422. return mousedownHandler && mousedownHandler(e, data);
  1423. },
  1424. mouseup: function mouseup(e) {
  1425. return mouseupHandler && mouseupHandler(e, data);
  1426. },
  1427. touchstart: function touchstart(e) {
  1428. return touchstartHandler && touchstartHandler(e, data);
  1429. },
  1430. touchleave: function touchleave(e) {
  1431. return touchleaveHandler && touchleaveHandler(e, data);
  1432. }
  1433. }
  1434. }, [h('div', {
  1435. domProps: {
  1436. className: cls.join(' ')
  1437. },
  1438. style: {
  1439. width: labelWidth
  1440. }
  1441. }, childNodes)]);
  1442. }; // 创建 node 子节点
  1443. var node_renderChildren = function renderChildren(h, list, context) {
  1444. if (is_array_default()(list) && list.length) {
  1445. var children = list.map(function (item) {
  1446. return renderNode(h, item, context);
  1447. });
  1448. return h('div', {
  1449. domProps: {
  1450. className: 'org-tree-node-children'
  1451. }
  1452. }, children);
  1453. }
  1454. return '';
  1455. };
  1456. var node_render = function render(h, context) {
  1457. var props = context.props;
  1458. return renderNode(h, props.data, context);
  1459. };
  1460. /* harmony default export */ var node = (node_render);
  1461. // EXTERNAL MODULE: ./node_modules/clonedeep/index.js
  1462. var clonedeep = __webpack_require__("da0a");
  1463. var clonedeep_default = /*#__PURE__*/__webpack_require__.n(clonedeep);
  1464. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/org-tree/org-tree.vue?vue&type=script&lang=js&
  1465. //
  1466. //
  1467. //
  1468. //
  1469. //
  1470. //
  1471. //
  1472. //
  1473. //
  1474. //
  1475. //
  1476. //
  1477. //
  1478. //
  1479. //
  1480. //
  1481. //
  1482. //
  1483. //
  1484. //
  1485. /* harmony default export */ var org_treevue_type_script_lang_js_ = ({
  1486. name: 'VOrgTree',
  1487. components: {
  1488. OrgTreeNode: {
  1489. render: node,
  1490. functional: true
  1491. }
  1492. },
  1493. props: {
  1494. data: {
  1495. type: Object,
  1496. required: true
  1497. },
  1498. props: {
  1499. type: Object,
  1500. default: function _default() {
  1501. return {
  1502. id: 'id',
  1503. label: 'label',
  1504. expand: 'expand',
  1505. children: 'children'
  1506. };
  1507. }
  1508. },
  1509. horizontal: Boolean,
  1510. collapsable: Boolean,
  1511. nodeRender: Function,
  1512. buttonRender: Function,
  1513. labelWidth: [String, Number],
  1514. labelClassName: [Function, String],
  1515. expandAll: {
  1516. type: Boolean,
  1517. default: false
  1518. }
  1519. },
  1520. data: function data() {
  1521. return {
  1522. flatData: {},
  1523. dataCloned: {}
  1524. };
  1525. },
  1526. watch: {
  1527. data: function data(newData) {
  1528. var _this2 = this;
  1529. this._handleData(newData);
  1530. this._mapData(this.dataCloned, function (item) {
  1531. var _ref = _this2.flatData[item[_this2.prop_id]] || {},
  1532. expand = _ref.expand;
  1533. if (expand) _this2.$set(item, _this2.prop_expand, true);
  1534. });
  1535. this._toggleExpand(this.dataCloned, this.expandAll);
  1536. },
  1537. expandAll: function expandAll(status) {
  1538. this._toggleExpand(this.dataCloned, status);
  1539. }
  1540. },
  1541. computed: {
  1542. prop_id: function prop_id() {
  1543. return this.props.id;
  1544. },
  1545. prop_label: function prop_label() {
  1546. return this.props.label;
  1547. },
  1548. prop_expand: function prop_expand() {
  1549. return this.props.expand;
  1550. },
  1551. prop_children: function prop_children() {
  1552. return this.props.children;
  1553. }
  1554. },
  1555. methods: {
  1556. _handleData: function _handleData(data) {
  1557. this._cloneData(data);
  1558. },
  1559. _cloneData: function _cloneData(newData) {
  1560. this.dataCloned = clonedeep_default()(newData);
  1561. },
  1562. _setFlatData: function _setFlatData(data) {
  1563. this.flatData[data[this.prop_id]] = data;
  1564. },
  1565. /**
  1566. * @description 工具方法,用于遍历树状数据的每个节点, fn为在该节点做的操作,其有一个参数即当前节点数据
  1567. */
  1568. _mapData: function _mapData(data, fn) {
  1569. var _this3 = this;
  1570. fn(data);
  1571. var children = data[this.prop_children];
  1572. if (children) {
  1573. children.forEach(function (child) {
  1574. _this3._mapData(child, fn);
  1575. });
  1576. }
  1577. },
  1578. /**
  1579. * @description 用来便利所有节点数据,将树状数据扁平化存放到flatData,用于数据更新后展开状态的恢复
  1580. */
  1581. _updateExpandStatus: function _updateExpandStatus() {
  1582. this._mapData(this.dataCloned, this._setFlatData);
  1583. },
  1584. collapse: function collapse(list) {
  1585. var _this4 = this;
  1586. var _this = this;
  1587. list.forEach(function (child) {
  1588. if (child[_this4.prop_expand]) {
  1589. child[_this4.prop_expand] = false;
  1590. }
  1591. var children = child[_this4.prop_children];
  1592. children && _this.collapse(children);
  1593. });
  1594. },
  1595. handleExpand: function handleExpand(data) {
  1596. if (this.prop_expand in data) {
  1597. data[this.prop_expand] = !data[this.prop_expand];
  1598. var children = data[this.prop_children];
  1599. if (!data[this.prop_expand] && children) {
  1600. this.collapse(children);
  1601. }
  1602. } else {
  1603. this.$set(data, this.prop_expand, true);
  1604. }
  1605. this.$emit('on-expand', data, data[this.prop_expand]);
  1606. this._updateExpandStatus();
  1607. },
  1608. _toggleExpand: function _toggleExpand(data, status) {
  1609. var _this5 = this;
  1610. var _this = this;
  1611. if (is_array_default()(data)) {
  1612. data.forEach(function (item) {
  1613. _this.$set(item, _this5.prop_expand, status);
  1614. var children = item[_this5.prop_children];
  1615. if (children) {
  1616. _this._toggleExpand(children, status);
  1617. }
  1618. });
  1619. } else {
  1620. _this.$set(data, this.prop_expand, status);
  1621. var children = data[this.prop_children];
  1622. if (children) {
  1623. _this._toggleExpand(children, status);
  1624. }
  1625. }
  1626. },
  1627. handleNodeClick: function handleNodeClick(e, data) {
  1628. var _this6 = this;
  1629. this.$emit('on-node-click', e, data, function () {
  1630. _this6.handleExpand(data);
  1631. });
  1632. },
  1633. toggleExpand: function toggleExpand() {
  1634. this._toggleExpand(this.dataCloned, this.expandAll);
  1635. this._updateExpandStatus();
  1636. }
  1637. },
  1638. mounted: function mounted() {
  1639. this._handleData(this.data);
  1640. this._updateExpandStatus();
  1641. this._toggleExpand(this.dataCloned, this.expandAll);
  1642. }
  1643. });
  1644. // CONCATENATED MODULE: ./src/components/org-tree/org-tree.vue?vue&type=script&lang=js&
  1645. /* harmony default export */ var org_tree_org_treevue_type_script_lang_js_ = (org_treevue_type_script_lang_js_);
  1646. // EXTERNAL MODULE: ./src/components/org-tree/org-tree.vue?vue&type=style&index=0&lang=less&
  1647. var org_treevue_type_style_index_0_lang_less_ = __webpack_require__("fcc4");
  1648. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  1649. /* globals __VUE_SSR_CONTEXT__ */
  1650. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  1651. // This module is a runtime utility for cleaner component module output and will
  1652. // be included in the final webpack user bundle.
  1653. function normalizeComponent (
  1654. scriptExports,
  1655. render,
  1656. staticRenderFns,
  1657. functionalTemplate,
  1658. injectStyles,
  1659. scopeId,
  1660. moduleIdentifier, /* server only */
  1661. shadowMode /* vue-cli only */
  1662. ) {
  1663. // Vue.extend constructor export interop
  1664. var options = typeof scriptExports === 'function'
  1665. ? scriptExports.options
  1666. : scriptExports
  1667. // render functions
  1668. if (render) {
  1669. options.render = render
  1670. options.staticRenderFns = staticRenderFns
  1671. options._compiled = true
  1672. }
  1673. // functional template
  1674. if (functionalTemplate) {
  1675. options.functional = true
  1676. }
  1677. // scopedId
  1678. if (scopeId) {
  1679. options._scopeId = 'data-v-' + scopeId
  1680. }
  1681. var hook
  1682. if (moduleIdentifier) { // server build
  1683. hook = function (context) {
  1684. // 2.3 injection
  1685. context =
  1686. context || // cached call
  1687. (this.$vnode && this.$vnode.ssrContext) || // stateful
  1688. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  1689. // 2.2 with runInNewContext: true
  1690. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1691. context = __VUE_SSR_CONTEXT__
  1692. }
  1693. // inject component styles
  1694. if (injectStyles) {
  1695. injectStyles.call(this, context)
  1696. }
  1697. // register component module identifier for async chunk inferrence
  1698. if (context && context._registeredComponents) {
  1699. context._registeredComponents.add(moduleIdentifier)
  1700. }
  1701. }
  1702. // used by ssr in case component is cached and beforeCreate
  1703. // never gets called
  1704. options._ssrRegister = hook
  1705. } else if (injectStyles) {
  1706. hook = shadowMode
  1707. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  1708. : injectStyles
  1709. }
  1710. if (hook) {
  1711. if (options.functional) {
  1712. // for template-only hot-reload because in that case the render fn doesn't
  1713. // go through the normalizer
  1714. options._injectStyles = hook
  1715. // register for functioal component in vue file
  1716. var originalRender = options.render
  1717. options.render = function renderWithStyleInjection (h, context) {
  1718. hook.call(context)
  1719. return originalRender(h, context)
  1720. }
  1721. } else {
  1722. // inject component registration as beforeCreate hook
  1723. var existing = options.beforeCreate
  1724. options.beforeCreate = existing
  1725. ? [].concat(existing, hook)
  1726. : [hook]
  1727. }
  1728. }
  1729. return {
  1730. exports: scriptExports,
  1731. options: options
  1732. }
  1733. }
  1734. // CONCATENATED MODULE: ./src/components/org-tree/org-tree.vue
  1735. /* normalize component */
  1736. var component = normalizeComponent(
  1737. org_tree_org_treevue_type_script_lang_js_,
  1738. render,
  1739. staticRenderFns,
  1740. false,
  1741. null,
  1742. null,
  1743. null
  1744. )
  1745. /* harmony default export */ var org_tree = (component.exports);
  1746. // CONCATENATED MODULE: ./src/components/org-tree/index.js
  1747. var org_tree_install = function install(Vue) {
  1748. if (install.installed) {
  1749. return;
  1750. }
  1751. install.installed = true;
  1752. Vue.component(org_tree.name, org_tree);
  1753. };
  1754. org_tree.install = org_tree_install;
  1755. if (typeof window !== 'undefined' && window.Vue) {
  1756. window.Vue.use(org_tree);
  1757. }
  1758. /* harmony default export */ var components_org_tree = (org_tree);
  1759. // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
  1760. /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_org_tree);
  1761. /***/ }),
  1762. /***/ "fcc4":
  1763. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1764. "use strict";
  1765. /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_org_tree_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bcfc");
  1766. /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_org_tree_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_org_tree_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0__);
  1767. /* unused harmony reexport * */
  1768. /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_index_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_org_tree_vue_vue_type_style_index_0_lang_less___WEBPACK_IMPORTED_MODULE_0___default.a);
  1769. /***/ }),
  1770. /***/ "fdef":
  1771. /***/ (function(module, exports) {
  1772. module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
  1773. '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  1774. /***/ })
  1775. /******/ });