text: (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6944d5d8"],{"0637":function(e,t,n){
  /*!
   * Fuse.js v3.4.2 - Lightweight fuzzy-search (http://fusejs.io)
   * 
   * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
   * All Rights Reserved. Apache Software License 2.0
   * 
   * http://www.apache.org/licenses/LICENSE-2.0
   */
  var r;r=function(){return function(n){var r={};function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return i.m=n,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="./src/index.js")}({"./src/bitap/bitap_matched_indices.js":
  /*!********************************************!*\
    !*** ./src/bitap/bitap_matched_indices.js ***!
    \********************************************/
  /*! no static exports found */function(e,t){e.exports=function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=[],r=-1,i=-1,a=0,o=e.length;a<o;a+=1){var s=e[a];s&&-1===r?r=a:s||-1===r||(t<=(i=a-1)-r+1&&n.push([r,i]),r=-1)}return e[a-1]&&t<=a-r&&n.push([r,a-1]),n}},"./src/bitap/bitap_pattern_alphabet.js":
  /*!*********************************************!*\
    !*** ./src/bitap/bitap_pattern_alphabet.js ***!
    \*********************************************/
  /*! no static exports found */function(e,t){e.exports=function(e){for(var t={},n=e.length,r=0;r<n;r+=1)t[e.charAt(r)]=0;for(var i=0;i<n;i+=1)t[e.charAt(i)]|=1<<n-i-1;return t}},"./src/bitap/bitap_regex_search.js":
  /*!*****************************************!*\
    !*** ./src/bitap/bitap_regex_search.js ***!
    \*****************************************/
  /*! no static exports found */function(e,t){var h=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:/ +/g,r=new RegExp(t.replace(h,"\\$&").replace(n,"|")),i=e.match(r),a=!!i,o=[];if(a)for(var s=0,c=i.length;s<c;s+=1){var l=i[s];o.push([e.indexOf(l),l.length-1])}return{score:a?.5:1,isMatch:a,matchedIndices:o}}},"./src/bitap/bitap_score.js":
  /*!**********************************!*\
    !*** ./src/bitap/bitap_score.js ***!
    \**********************************/
  /*! no static exports found */function(e,t){e.exports=function(e,t){var n=t.errors,r=void 0===n?0:n,i=t.currentLocation,a=void 0===i?0:i,o=t.expectedLocation,s=void 0===o?0:o,c=t.distance,l=void 0===c?100:c,h=r/e.length,u=Math.abs(s-a);return l?h+u/l:u?1:h}},"./src/bitap/bitap_search.js":
  /*!***********************************!*\
    !*** ./src/bitap/bitap_search.js ***!
    \***********************************/
  /*! no static exports found */function(e,t,n){var z=n(/*! ./bitap_score */"./src/bitap/bitap_score.js"),F=n(/*! ./bitap_matched_indices */"./src/bitap/bitap_matched_indices.js");e.exports=function(e,t,n,r){for(var i=r.location,a=void 0===i?0:i,o=r.distance,s=void 0===o?100:o,c=r.threshold,l=void 0===c?.6:c,h=r.findAllMatches,u=void 0!==h&&h,p=r.minMatchCharLength,f=void 0===p?1:p,d=a,v=e.length,g=l,y=e.indexOf(t,d),m=t.length,b=[],_=0;_<v;_+=1)b[_]=0;if(-1!==y){var k=z(t,{errors:0,currentLocation:y,expectedLocation:d,distance:s});if(g=Math.min(k,g),-1!==(y=e.lastIndexOf(t,d+m))){var x=z(t,{errors:0,currentLocation:y,expectedLocation:d,distance:s});g=Math.min(x,g)}}y=-1;for(var S=[],M=1,j=m+v,C=1<<m-1,w=0;w<m;w+=1){for(var L=0,O=j;L<O;){z(t,{errors:w,currentLocation:d+O,expectedLocation:d,distance:s})<=g?L=O:j=O,O=Math.floor((j-L)/2+L)}j=O;var T=Math.max(1,d-O+1),A=u?v:Math.min(d+O,v)+m,I=Array(A+2);I[A+1]=(1<<w)-1;for(var P=A;T<=P;P-=1){var E=P-1,$=n[e.charAt(E)];if($&&(b[E]=1),I[P]=(I[P+1]<<1|1)&$,0!==w&&(I[P]|=(S[P+1]|S[P])<<1|1|S[P+1]),I[P]&C&&(M=z(t,{errors:w,currentLocation:E,expectedLocation:d,distance:s}))<=g){if(g=M,(y=E)<=d)break;T=Math.max(1,2*d-y)}}if(g<z(t,{errors:w+1,currentLocation:d,expectedLocation:d,distance:s}))break;S=I}return{isMatch:0<=y,score:0===M?.001:M,matchedIndices:F(b,f)}}},"./src/bitap/index.js":
  /*!****************************!*\
    !*** ./src/bitap/index.js ***!
    \****************************/
  /*! no static exports found */function(e,t,n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=n(/*! ./bitap_regex_search */"./src/bitap/bitap_regex_search.js"),u=n(/*! ./bitap_search */"./src/bitap/bitap_search.js"),b=n(/*! ./bitap_pattern_alphabet */"./src/bitap/bitap_pattern_alphabet.js"),i=function(){function m(e,t){var n=t.location,r=void 0===n?0:n,i=t.distance,a=void 0===i?100:i,o=t.threshold,s=void 0===o?.6:o,c=t.maxPatternLength,l=void 0===c?32:c,h=t.isCaseSensitive,u=void 0!==h&&h,p=t.tokenSeparator,f=void 0===p?/ +/g:p,d=t.findAllMatches,v=void 0!==d&&d,g=t.minMatchCharLength,y=void 0===g?1:g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),this.options={location:r,distance:a,threshold:s,maxPatternLength:l,isCaseSensitive:u,tokenSeparator:f,findAllMatches:v,minMatchCharLength:y},this.pattern=this.options.isCaseSensitive?e:e.toLowerCase(),this.pattern.length<=l&&(this.patternAlphabet=b(this.pattern))}var e,t,n;return e=m,(t=[{key:"search",value:function(e){if(this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e)return{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]};var t=this.options,n=t.maxPatternLength,r=t.tokenSeparator;if(this.pattern.length>n)return h(e,this.pattern,r);var i=this.options,a=i.location,o=i.distance,s=i.threshold,c=i.findAllMatches,l=i.minMatchCharLength;return u(e,this.pattern,this.patternAlphabet,{location:a,distance:o,threshold:s,findAllMatches:c,minMatchCharLength:l})}}])&&r(e.prototype,t),n&&r(e,n),m}();e.exports=i},"./src/helpers/deep_value.js":
  /*!***********************************!*\
    !*** ./src/helpers/deep_value.js ***!
    \***********************************/
  /*! no static exports found */function(e,t,n){var h=n(/*! ./is_array */"./src/helpers/is_array.js");e.exports=function(e,t){return function e(t,n,r){if(n){var i=n.indexOf("."),a=n,o=null;-1!==i&&(a=n.slice(0,i),o=n.slice(i+1));var s=t[a];if(null!=s)if(o||"string"!=typeof s&&"number"!=typeof s)if(h(s))for(var c=0,l=s.length;c<l;c+=1)e(s[c],o,r);else o&&e(s,o,r);else r.push(s.toString())}else r.push(t);return r}(e,t,[])}},"./src/helpers/is_array.js":
  /*!*********************************!*\
    !*** ./src/helpers/is_array.js ***!
    \*********************************/
  /*! no static exports found */function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},"./src/index.js":
  /*!**********************!*\
    !*** ./src/index.js ***!
    \**********************/
  /*! no static exports found */function(e,t,n){function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=n(/*! ./bitap */"./src/bitap/index.js"),J=n(/*! ./helpers/deep_value */"./src/helpers/deep_value.js"),z=n(/*! ./helpers/is_array */"./src/helpers/is_array.js"),i=function(){function q(e,t){var n=t.location,r=void 0===n?0:n,i=t.distance,a=void 0===i?100:i,o=t.threshold,s=void 0===o?.6:o,c=t.maxPatternLength,l=void 0===c?32:c,h=t.caseSensitive,u=void 0!==h&&h,p=t.tokenSeparator,f=void 0===p?/ +/g:p,d=t.findAllMatches,v=void 0!==d&&d,g=t.minMatchCharLength,y=void 0===g?1:g,m=t.id,b=void 0===m?null:m,_=t.keys,k=void 0===_?[]:_,x=t.shouldSort,S=void 0===x||x,M=t.getFn,j=void 0===M?J:M,C=t.sortFn,w=void 0===C?function(e,t){return e.score-t.score}:C,L=t.tokenize,O=void 0!==L&&L,T=t.matchAllTokens,A=void 0!==T&&T,I=t.includeMatches,P=void 0!==I&&I,E=t.includeScore,$=void 0!==E&&E,z=t.verbose,F=void 0!==z&&z;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,q),this.options={location:r,distance:a,threshold:s,maxPatternLength:l,isCaseSensitive:u,tokenSeparator:f,findAllMatches:v,minMatchCharLength:y,id:b,keys:k,includeMatches:P,includeScore:$,shouldSort:S,getFn:j,sortFn:w,verbose:F,tokenize:O,matchAllTokens:A},this.setCollection(e)}var e,t,n;return e=q,(t=[{key:"setCollection",value:function(e){return this.list=e}},{key:"search",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));var n=this._prepareSearchers(e),r=n.tokenSearchers,i=n.fullSearcher,a=this._search(r,i),o=a.weights,s=a.results;return this._computeScore(o,s),this.options.shouldSort&&this._sort(s),t.limit&&"number"==typeof t.limit&&(s=s.slice(0,t.limit)),this._format(s)}},{key:"_prepareSearchers",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var n=e.split(this.options.tokenSeparator),r=0,i=n.length;r<i;r+=1)t.push(new a(n[r],this.options));return{tokenSearchers:t,fullSearcher:new a(e,this.options)}}},{key:"_search",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length?arguments[1]:void 0,n=this.list,r={},i=[];if("string"==typeof n[0]){for(var a=0,o=n.length;a<o;a+=1)this._analyze({key:"",value:n[a],record:a,index:a},{resultMap:r,results:i,tokenSearchers:e,fullSearcher:t});return{weights:null,results:i}}for(var s={},c=0,l=n.length;c<l;c+=1)for(var h=n[c],u=0,p=this.options.keys.length;u<p;u+=1){var f=this.options.keys[u];if("string"!=typeof f){if(s[f.name]={weight:1-f.weight||1},f.weight<=0||1<f.weight)throw new Error("Key weight has to be > 0 and <= 1");f=f.name}else s[f]={weight:1};this._analyze({key:f,value:this.options.getFn(h,f),record:h,index:c},{resultMap:r,results:i,tokenSearchers:e,fullSearcher:t})}return{weights:s,results:i}}},{key:"_analyze",value:function(e,t){var n=e.key,r=e.arrayIndex,i=void 0===r?-1:r,a=e.value,o=e.record,s=e.index,c=t.tokenSearchers,l=void 0===c?[]:c,h=t.fullSearcher,u=void 0===h?[]:h,p=t.resultMap,f=void 0===p?{}:p,d=t.results,v=void 0===d?[]:d;if(null!=a){var g=!1,y=-1,m=0;if("string"==typeof a){this._log("\nKey: ".concat(""===n?"-":n));var b=u.search(a);if(this._log('Full text: "'.concat(a,'", score: ').concat(b.score)),this.options.tokenize){for(var _=a.split(this.options.tokenSeparator),k=[],x=0;x<l.length;x+=1){var S=l[x];this._log('\nPattern: "'.concat(S.pattern,'"'));for(var M=!1,j=0;j<_.length;j+=1){var C=_[j],w=S.search(C),L={};w.isMatch?(L[C]=w.score,M=g=!0,k.push(w.score)):(L[C]=1,this.options.matchAllTokens||k.push(1)),this._log('Token: "'.concat(C,'", score: ').concat(L[C]))}M&&(m+=1)}y=k[0];for(var O=k.length,T=1;T<O;T+=1)y+=k[T];y/=O,this._log("Token score average:",y)}var A=b.score;-1<y&&(A=(A+y)/2),this._log("Score average:",A);var I=!this.options.tokenize||!this.options.matchAllTokens||m>=l.length;if(this._log("\nCheck Matches: ".concat(I)),(g||b.isMatch)&&I){var P=f[s];P?P.output.push({key:n,arrayIndex:i,value:a,score:A,matchedIndices:b.matchedIndices}):(f[s]={item:o,output:[{key:n,arrayIndex:i,value:a,score:A,matchedIndices:b.matchedIndices}]},v.push(f[s]))}}else if(z(a))for(var E=0,$=a.length;E<$;E+=1)this._analyze({key:n,arrayIndex:E,value:a[E],record:o,index:s},{resultMap:f,results:v,tokenSearchers:l,fullSearcher:u})}}},{key:"_computeScore",value:function(e,t){this._log("\n\nComputing score:\n");for(var n=0,r=t.length;n<r;n+=1){for(var i=t[n].output,a=i.length,o=1,s=1,c=0;c<a;c+=1){var l=e?e[i[c].key].weight:1,h=(1===l?i[c].score:i[c].score||.001)*l;1!==l?s=Math.min(s,h):o*=i[c].nScore=h}t[n].score=1===s?o:s,this._log(t[n])}}},{key:"_sort",value:function(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var n=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,function(e,t){if("object"===h(t)&&null!==t){if(-1!==n.indexOf(t))return;n.push(t)}return t})),n=null}var r=[];this.options.includeMatches&&r.push(function(e,t){var n=e.output;t.matches=[];for(var r=0,i=n.length;r<i;r+=1){var a=n[r];if(0!==a.matchedIndices.length){var o={indices:a.matchedIndices,value:a.value};a.key&&(o.key=a.key),a.hasOwnProperty("arrayIndex")&&-1<a.arrayIndex&&(o.arrayIndex=a.arrayIndex),t.matches.push(o)}}}),this.options.includeScore&&r.push(function(e,t){t.score=e.score});for(var i=0,a=e.length;i<a;i+=1){var o=e[i];if(this.options.id&&(o.item=this.options.getFn(o.item,this.options.id)[0]),r.length){for(var s={item:o.item},c=0,l=r.length;c<l;c+=1)r[c](o,s);t.push(s)}else t.push(o.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&r(e.prototype,t),n&&r(e,n),q}();e.exports=i}})},e.exports=r()},"48aa":function(e,t,n){"use strict";n.r(t);n("aaa4");var r=n("a98d"),i=n("0637"),a=n.n(i),o=n("52c1"),s={mixins:[n("b55f").a],components:{"d2-panel-search-item":function(){return n.e("chunk-147b797f").then(n.bind(null,"f1ee"))}},data:function(){return{searchText:"",results:[]}},computed:Object(r.a)({},Object(o.e)("d2admin/search",["hotkey","pool"]),{resultsList:function(){return 0===this.results.length&&""===this.searchText?this.pool.map(function(e){return Object(r.a)({value:e.fullTitle},e)}):this.results}}),methods:{querySearch:function(e,t){var n=this.pool,r=this.query(e?n:[],e);t(this.results=r)},query:function(e,t){return new a.a(e,{shouldSort:!0,tokenize:!0,threshold:.6,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:["fullTitle","path"]}).search(t).map(function(e){return Object(r.a)({value:e.fullTitle},e)})},focus:function(){var e=this;this.input="",setTimeout(function(){e.$refs.input.focus(),e.searchText="",e.results=[]},500)},handleResultsGroupItemClick:function(e){e!==this.$route.path?this.handleMenuSelect(e):this.handleEsc()},handleSelect:function(e){var t=this,n=e.path;n!==this.$route.path?this.$nextTick(function(){t.handleMenuSelect(n)}):this.handleEsc()},closeSuggestion:function(){this.$refs.input.activated&&(this.$refs.input.suggestions=[],this.$refs.input.activated=!1)},handlePanelClick:function(){this.handleEsc()},handleEsc:function(){var e=this;this.closeSuggestion(),this.$nextTick(function(){e.$emit("close")})}}},c=(n("b1a8"),n("17cc")),l=Object(c.a)(s,function(){var n=this,e=n.$createElement,r=n._self._c||e;return r("div",{staticClass:"panel-search",attrs:{flex:"dir:top"}},[r("div",{staticClass:"panel-search__input-group",attrs:{"flex-box":"0",flex:"dir:top main:center cross:center"},on:{click:function(e){return e.target!==e.currentTarget?null:n.handlePanelClick(e)}}},[r("d2-icon-svg",{staticClass:"panel-search__logo",attrs:{name:"d2-admin-text"}}),r("el-autocomplete",{ref:"input",staticClass:"panel-search__input",attrs:{"suffix-icon":"el-icon-search",placeholder:"搜索页面","fetch-suggestions":n.querySearch,"trigger-on-focus":!1,clearable:!0},on:{select:n.handleSelect},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&n._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:n.handleEsc(e)}},scopedSlots:n._u([{key:"default",fn:function(e){var t=e.item;return r("d2-panel-search-item",{attrs:{item:t}})}}]),model:{value:n.searchText,callback:function(e){n.searchText=e},expression:"searchText"}}),r("div",{staticClass:"panel-search__tip"},[n._v("\n      您可以使用快捷键\n      "),r("span",{staticClass:"panel-search__key"},[n._v(n._s(n.hotkey.open))]),n._v("\n      唤醒搜索面板，按\n      "),r("span",{staticClass:"panel-search__key"},[n._v(n._s(n.hotkey.close))]),n._v("\n      关闭\n    ")])],1),0<n.resultsList.length?r("div",{staticClass:"panel-search__results-group",attrs:{"flex-box":"1"}},[r("el-card",[r("div",{staticClass:"panel-search__results-group-inner"},n._l(n.resultsList,function(t,e){return r("d2-panel-search-item",{key:e,attrs:{item:t,"hover-mode":!0},nativeOn:{click:function(e){return n.handleResultsGroupItemClick(t.path)}}})}),1)])],1):n._e()])},[],!1,null,"1f83b2fa",null);t.default=l.exports},5807:function(e,t,n){},b1a8:function(e,t,n){"use strict";var r=n("5807");n.n(r).a}}]);