v-org-tree.umd.js 65 KB

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