@deanwu/vue-component-library 1.3.21 → 1.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-component-library.common.js +2326 -1876
- package/dist/vue-component-library.common.js.map +1 -1
- package/dist/vue-component-library.umd.js +2326 -1876
- package/dist/vue-component-library.umd.js.map +1 -1
- package/dist/vue-component-library.umd.min.js +4 -4
- package/dist/vue-component-library.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-component-library"]=e(require("vue")):t["vue-component-library"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({0:function(t,e){},"00bb":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var a=0;a<n;a++)t[e+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r,i),this._prevBlock=t.slice(e,e+r)}}),e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);n.call(this,t,e,r,i),this._prevBlock=o}}),e}(),t.mode.CFB}))},"
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-component-library"]=e(require("vue")):t["vue-component-library"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({0:function(t,e){},"00bb":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var a=0;a<n;a++)t[e+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r,i),this._prevBlock=t.slice(e,e+r)}}),e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);n.call(this,t,e,r,i),this._prevBlock=o}}),e}(),t.mode.CFB}))},"00ee":function(t,e,n){"use strict";var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"00f1":function(t,e,n){"use strict";n("c3c3")},"0196":function(t,e,n){const i=n("58b4"),r=n("bbf0");function o(t){this.mode=r.BYTE,this.data=new Uint8Array(i(t))}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},t.exports=o},"01d4":function(t,e,n){"use strict";n("df82")},"0425":function(t,e){const n="[0-9]+",i="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";e.KANJI=new RegExp(r,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(o,"g"),e.NUMERIC=new RegExp(n,"g"),e.ALPHANUMERIC=new RegExp(i,"g");const a=new RegExp("^"+r+"$"),s=new RegExp("^"+n+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return a.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return l.test(t)}},"04f3":function(t,e,n){},"04f8":function(t,e,n){"use strict";var i=n("2d00"),r=n("d039"),o=n("da84"),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"06cf":function(t,e,n){"use strict";var i=n("83ab"),r=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),l=n("a04b"),c=n("1a2d"),u=n("0cfb"),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=l(e),u)try{return d(t,e)}catch(n){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},"072b":function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfOgGiCg4SFhoMBiYqLjI2CjZCRj4tDQkFMPUk7MC4sOYyTikOLYmFkAjcqoGiMTgEEBFhgWVplHSmrjEABHwFXY1tcXR0nuYs+iUdUZl9eAx0lxopKAUZQPzI0GxkdENKJSThSDDNPHEUTLQ/fATxRBjUWGk02Uwsk7DEBHhcHEhRIiFgRwe5FgQsIEmCooGBJlRDsdKxYEQGFCQgORjQAwS6SJFYBzogcSbKkyEShPHqcZLIlSZQgVa4E6bImTJkqWdZseRPnR58fDwk9FAgAOw=="},"07fa":function(t,e,n){"use strict";var i=n("50c4");t.exports=function(t){return i(t.length)}},"0848":function(t,e,n){},"0a06":function(t,e,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function l(t){this.defaults=t,this.interceptors={request:new o,response:new o}}l.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=s(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e}))}})),i.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,i){return this.request(s(i||{},{method:t,url:e,data:n}))}})),t.exports=l},"0a2e":function(t,e,n){"use strict";n("ad74")},"0a8a":function(t,e,n){"use strict";n("59b1")},"0cb2":function(t,e,n){"use strict";var i=n("e330"),r=n("7b0b"),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,i,d,h){var p=n+t.length,f=i.length,m=u;return void 0!==d&&(d=r(d),m=c),s(h,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,p);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return r;if(u>f){var h=o(u/10);return 0===h?r:h<=f?void 0===i[h-1]?a(s,1):i[h-1]+a(s,1):r}c=i[u-1]}return void 0===c?"":c}))}},"0cfb":function(t,e,n){"use strict";var i=n("83ab"),r=n("d039"),o=n("cc12");t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){"use strict";var i=n("e330"),r=Error,o=i("".replace),a=function(t){return String(new r(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"0d51":function(t,e,n){"use strict";var i=String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0fe0":function(t,e,n){"use strict";n("8454")},"10b0":function(t,e,n){"use strict";var i={single_source_shortest_paths:function(t,e,n){var r={},o={};o[e]=0;var a,s,l,c,u,d,h,p,f,m=i.PriorityQueue.make();m.push(e,0);while(!m.empty())for(l in a=m.pop(),s=a.value,c=a.cost,u=t[s]||{},u)u.hasOwnProperty(l)&&(d=u[l],h=c+d,p=o[l],f="undefined"===typeof o[l],(f||p>h)&&(o[l]=h,m.push(l,h),r[l]=s));if("undefined"!==typeof n&&"undefined"===typeof o[n]){var g=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(g)}return r},extract_shortest_path_from_predecessor_list:function(t,e){var n=[],i=e;while(i)n.push(i),t[i],i=t[i];return n.reverse(),n},find_path:function(t,e,n){var r=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i},"10b7":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){
|
|
2
2
|
/** @preserve
|
|
3
3
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
4
4
|
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11
11
|
*/
|
|
12
|
-
return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,a,p,y,w,x,k,S,D,C,E,A=this._hash.words,T=d.words,B=h.words,F=s.words,$=l.words,L=c.words,M=u.words;x=o=A[0],k=a=A[1],S=p=A[2],D=y=A[3],C=w=A[4];for(n=0;n<80;n+=1)E=o+t[e+F[n]]|0,E+=n<16?f(a,p,y)+T[0]:n<32?m(a,p,y)+T[1]:n<48?g(a,p,y)+T[2]:n<64?v(a,p,y)+T[3]:b(a,p,y)+T[4],E|=0,E=_(E,L[n]),E=E+w|0,o=w,w=y,y=_(p,10),p=a,a=E,E=x+t[e+$[n]]|0,E+=n<16?b(k,S,D)+B[0]:n<32?v(k,S,D)+B[1]:n<48?g(k,S,D)+B[2]:n<64?m(k,S,D)+B[3]:f(k,S,D)+B[4],E|=0,E=_(E,M[n]),E=E+C|0,x=C,C=D,D=_(S,10),S=k,k=E;E=A[1]+p+D|0,A[1]=A[2]+y+C|0,A[2]=A[3]+w+x|0,A[3]=A[4]+o+k|0,A[4]=A[0]+a+S|0,A[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function b(t,e,n){return t^(e|~n)}function _(t,e){return t<<e|t>>>32-e}n.RIPEMD160=o._createHelper(p),n.HmacRIPEMD160=o._createHmacHelper(p)}(Math),t.RIPEMD160}))},1132:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=e[o>>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|l,u=0;u<4&&o+.75*u<n;u++)r.push(i.charAt(c>>>6*(3-u)&63));var d=i.charAt(64);if(d)while(r.length%4)r.push(d);return r.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return o(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64}))},"121b":function(t,e,n){"use strict";n("07e9")},1382:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.Rabbit=i.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=i._createHelper(l)}(),t.Rabbit}))},"13d2":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("1626"),a=n("1a2d"),s=n("83ab"),l=n("5e77").CONFIGURABLE,c=n("8925"),u=n("69f3"),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),b=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),_=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=d(t);return a(i,"source")||(i.source=v(_,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&h(this).source||c(this)}),"toString")},"14d9":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!u();i({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return a(e,n),n}})},"151e":function(t,e,n){"use strict";n("3438")},"15d0":function(t,e,n){"use strict";n("956c")},1626:function(t,e,n){"use strict";var i=n("8ea1"),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},"17e1":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,i=n.WordArray,r=i.init,o=i.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)};o.prototype=i}}(),t.lib.WordArray}))},"191b":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("94f8"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.algo,o=r.SHA256,a=r.SHA224=o.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224}))},"19dd":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\n\n```\r\nthis.$preview({\n\tsrc\n})\r\n```\n\n## 配置项\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nsrc | String | - | 媒体文件地址"},"1a2d":function(t,e,n){"use strict";var i=n("e330"),r=n("7b0b"),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},"1a7b":function(t,e,n){"use strict";n("a9bb")},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},"1d80":function(t,e,n){"use strict";var i=n("7234"),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},"1e39":function(t,e,n){},"1f2a":function(t,e,n){"use strict";n("bd4c")},"21bf":function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,i){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof e&&e.crypto&&(r=e.crypto),!r)try{r=n(0)}catch(v){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},l=s.lib={},c=l.Base=function(){return{extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=l.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=i?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<r;s+=4)e[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),d=s.enc={},h=d.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new u.init(n,e/2)}},p=d.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new u.init(n,e)}},f=d.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},m=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=4*a,l=o/s;l=e?t.ceil(l):t.max((0|l)-this._minBufferSize,0);var c=l*a,d=t.min(4*c,o);if(c){for(var h=0;h<c;h+=a)this._doProcessBlock(r,h);n=r.splice(0,c),i.sigBytes-=d}return new u.init(n,d)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(l.Hasher=m.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}))}).call(this,n("c8ba"))},"22e0":function(t,e,n){"use strict";n("e12b")},"23cb":function(t,e,n){"use strict";var i=n("5926"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"23e7":function(t,e,n){"use strict";var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),c=n("94ca");t.exports=function(t,e){var n,u,d,h,p,f,m=t.target,g=t.global,v=t.stat;if(u=g?i:v?i[m]||s(m,{}):(i[m]||{}).prototype,u)for(d in e){if(p=e[d],t.dontCallGetSet?(f=r(u,d),h=f&&f.value):h=u[d],n=c(g?d:m+(v?".":"#")+d,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(u,d,p,t)}}},"241c":function(t,e,n){"use strict";var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},2444:function(t,e,n){"use strict";(function(e){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}var l={adapter:s(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){l.headers[t]=i.merge(o)})),t.exports=l}).call(this,n("4362"))},"25c5":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-progress></c-progress>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | line | 进度条样式<br>**line**: 线形<br>**circle**: 环形\r\ncolor | String | - | 进度条颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**red**: 红色<br>**green**: 绿色<br>**blue**: 蓝色<br>**yellow**: 黄色\r\nbackground | String | - | 进度条底色\r\nsize | String \\| Number | 100 | 线性进度条的长度或环形进度条直径\r\nline-size | String \\| Number | 6 | 进度条粗细\r\nfont-size | String \\| Number | 14 | 百分比文字大小\r\nrate | String \\| Number \\| Array | 0 | 0-100:进度百分比<br>10,110:当前值,最大值,也可传入数组\r\ndecimal | String \\| Number | 0 | 保留小数位数"},"271a":function(t,e,n){"use strict";var i=n("cb2d"),r=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.getAll),u=r(l.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||i(l,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=c(this,t);a(e,1);var r=o(n),s=0;while(s<i.length)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},2732:function(t,e,n){const i=n("699e");e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let r=0;r<t.length;r++)for(let o=0;o<e.length;o++)n[r+o]^=i.mul(t[r],e[o]);return n},e.mod=function(t,e){let n=new Uint8Array(t);while(n.length-e.length>=0){const t=n[0];for(let o=0;o<e.length;o++)n[o]^=i.mul(e[o],t);let r=0;while(r<n.length&&0===n[r])r++;n=n.slice(r)}return n},e.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let r=0;r<t;r++)n=e.mul(n,new Uint8Array([1,i.exp(r)]));return n}},"27a3":function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},"2a66":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding}))},"2b79":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,c=i.iterations;while(s.length<l){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});e.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),t.EvpKDF}))},"2ba4":function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},"2d00":function(t,e,n){"use strict";var i,r,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},"2d83":function(t,e,n){"use strict";var i=n("387f");t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},"2dc1":function(t,e,n){"use strict";n("df1e")},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f3a":function(t,e,n){const i=n("bbf0"),r=n("7bf0");function o(t){this.mode=i.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=r.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=o},"30b5":function(t,e,n){"use strict";var i=n("c532");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},3252:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=n.x64={};a.Word=r.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var r=t[i];n.push(r.high),n.push(r.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=r.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}})}(),t}))},3278:function(t,e,n){var i;n("c73d"),n("d9e2"),n("14d9"),function(e){t.exports=e()}((function(){var t;return function t(e,n,r){function o(s,l){if(!n[s]){if(!e[s]){var c="function"==typeof i&&i;if(!l&&c)return i(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};e[s][0].call(d.exports,(function(t){var n=e[s][1][t];return o(n||t)}),d,d.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){function i(t,e){for(;t&&t.nodeType!==r;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}e.exports=i},{}],2:[function(t,e,n){function i(t,e,n,i,o){var a=r.apply(this,arguments);return t.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}function r(t,e,n,i){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&i.call(t,n)}}var o=t("./closest");e.exports=i},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function i(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!s.string(e))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(t))return r(t,e,n);if(s.nodeList(t))return o(t,e,n);if(s.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function o(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function a(t,e,n){return l(document.body,t,e,n)}var s=t("./is"),l=t("delegate");e.exports=i},{"./is":3,delegate:2}],5:[function(t,e,n){function i(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}e.exports=i},{}],6:[function(t,e,n){function i(){}i.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function i(){r.off(t,i),e.apply(n,arguments)}var r=this;return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;for(i;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,a=i.length;o<a;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},e.exports=i},{}],7:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["module","select"],o);else if(void 0!==i)o(n,e("select"));else{var a={exports:{}};o(a,r.select),r.clipboardAction=a.exports}}(this,(function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(e),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function(){function t(e){i(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s}))},{select:5}],8:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],o);else if(void 0!==i)o(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};o(a,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=a.exports}}(this,(function(t,e,n,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var c=r(e),u=r(n),d=r(i),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),f=function(t){function e(t,n){o(this,e);var i=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.resolveOptions(n),i.listenClick(t),i}return s(e,t),p(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,d.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(u.default);t.exports=f}))},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}))},"342f":function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3438:function(t,e,n){},3452:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"))})(0,(function(t){return t}))},"34fc":function(t,e,n){const i=n("7a43"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return o[4*(t-1)+0];case i.M:return o[4*(t-1)+1];case i.Q:return o[4*(t-1)+2];case i.H:return o[4*(t-1)+3];default:return}}},3511:function(t,e,n){"use strict";var i=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw i("Maximum allowed index exceeded");return t}},3565:function(t,e,n){t.exports=n.p+"img/empty.png"},"35d5":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-button>按钮</c--button>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsize | String | normal | 按钮尺寸<br>**normal**: 普通按钮<br>**form**: 表单操作按钮\r\ncolor | String | - | 按钮颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**red**: 红色<br>**green**: 绿色<br>**blue**: 蓝色<br>**yellow**: 黄色\r\nhollow | Boolean | false | 是否为中空按钮\r\nprepend-icon | String | - | 前置图标样式名\r\nappend-icon | String | - | 前置图标样式名\r\ndisabled | Boolean | false | 是否禁用按钮\r\n@click | Function | - | 点击事件"},"37f6":function(t,e,n){},3849:function(t,e,n){"use strict";n("967b")},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38ac":function(t,e,n){"use strict";n("4582")},"38ba":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("2b79"))})(0,(function(t){t.lib.Cipher||function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,d=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?k:y}return function(e){return{encrypt:function(n,i,r){return t(i).encrypt(e,n,i,r)},decrypt:function(n,i,r){return t(i).decrypt(e,n,i,r)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),p=i.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=h.CBC=function(){var t=p.extend();function n(t,n,i){var r,o=this._iv;o?(r=o,this._iv=e):r=this._prevBlock;for(var a=0;a<i;a++)t[n+a]^=r[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r),i.encryptBlock(t,e),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);i.decryptBlock(t,e),n.call(this,t,e,r),this._prevBlock=o}}),t}(),m=n.pad={},g=m.Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:f,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(i,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),i.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),b=n.format={},_=b.OpenSSL={stringify:function(t){var e,n=t.ciphertext,i=t.salt;return e=i?o.create([1398893684,1701076831]).concat(i).concat(n):n,e.toString(l)},parse:function(t){var e,n=l.parse(t),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},y=i.SerializableCipher=r.extend({cfg:r.extend({format:_}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),o=r.finalize(e),a=r.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=t.createDecryptor(n,i).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),w=n.kdf={},x=w.OpenSSL={execute:function(t,e,n,i){i||(i=o.random(8));var r=u.create({keySize:e+n}).compute(t,i),a=o.create(r.words.slice(e),4*n);return r.sigBytes=4*e,v.create({key:r,iv:a,salt:i})}},k=i.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:x}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=i.kdf.execute(n,t.keySize,t.ivSize);i.iv=r.iv;var o=y.encrypt.call(this,t,e,r.key,i);return o.mixIn(r),o},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt);i.iv=r.iv;var o=y.decrypt.call(this,t,e,r.key,i);return o}})}()}))},3934:function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"399a":function(t,e,n){"use strict";n("594c")},"3a34":function(t,e,n){"use strict";var i=n("83ab"),r=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){"use strict";var i=n("e330");t.exports=i({}.isPrototypeOf)},"3bbe":function(t,e,n){"use strict";var i=n("1626"),r=String,o=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},"3c65":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("083a"),l=n("3511"),c=1!==[].unshift(0),u=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}},d=c||!u();i({target:"Array",proto:!0,arity:1,forced:d},{unshift:function(t){var e=r(this),n=o(e),i=arguments.length;if(i){l(n+i);var c=n;while(c--){var u=c+i;c in e?e[u]=e[c]:s(e,u)}for(var d=0;d<i;d++)e[d]=arguments[d]}return a(e,n+i)}})},"3c72":function(t,e,n){"use strict";n("b959")},"3d5a":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=i._createHelper(l)}(),t.RabbitLegacy}))},4006:function(t,e,n){const i=n("45be");function r(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function o(t,e,n){let i=t+e;return"undefined"!==typeof n&&(i+=" "+n),i}function a(t,e,n){let i="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(i+=a?o("M",c+n,.5+u+n):o("m",r,0),r=0,a=!1),c+1<e&&t[l+1]||(i+=o("h",s),s=0)):r++}return i}e.render=function(t,e,n){const o=i.getOptions(e),s=t.modules.size,l=t.modules.data,c=s+2*o.margin,u=o.color.light.a?"<path "+r(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+r(o.color.dark,"stroke")+' d="'+a(l,s,o.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+p+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,f),f}},"40d5":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4146:function(t,e,n){const i=n("45be");function r(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}function o(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,n){let a=n,s=e;"undefined"!==typeof a||e&&e.getContext||(a=e,e=void 0),e||(s=o()),a=i.getOptions(a);const l=i.getImageWidth(t.modules.size,a),c=s.getContext("2d"),u=c.createImageData(l,l);return i.qrToImageData(u.data,t,a),r(c,s,l),c.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,i){let r=i;"undefined"!==typeof r||n&&n.getContext||(r=n,n=void 0),r||(r={});const o=e.render(t,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}},"429b":function(t,e,n){"use strict";n("c600")},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("c6b6"),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},"44bf":function(t,e,n){},"44e7":function(t,e,n){"use strict";var i=n("861d"),r=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===r(t))}},4582:function(t,e,n){},"45be":function(t,e){function n(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){const r=n.modules.size,o=n.modules.data,a=e.getScale(r,i),s=Math.floor((r+2*i.margin)*a),l=i.margin*a,c=[i.color.light,i.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=4*(e*s+n),d=i.color.light;if(e>=l&&n>=l&&e<s-l&&n<s-l){const t=Math.floor((e-l)/a),i=Math.floor((n-l)/a);d=c[o[t*r+i]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}},"467f":function(t,e,n){"use strict";var i=n("2d83");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"485a":function(t,e,n){"use strict";var i=n("c65b"),r=n("1626"),o=n("861d"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw a("Can't convert object to primitive value")}},"495a":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tab-list ref="tabList"></c-tab-list>\r\n\r\n// 切换到指定序号项\r\nthis.$refs.tabList.changeIndex(0);\r\n\r\n// 切换到指定value项\r\nthis.$refs.tabList.changeValue(val);\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntabs | Array | - | 标签列表数据,[{"name": "选项卡一"}, {"name": "选项卡二"}]\r\ntype | String | tab | 选项卡样式<br>**tab**: 普通选项卡<br>**border-tab**: 带边框的选项卡<br>**card**: 卡片式\r\nimmediate | Boolean | true | 是否立即选中第一项\r\n@change | Function(tab) | - | 标签切换事件,返回对应的标签数据'},4996:function(t,e,n){"use strict";n("d257")},"4a7b":function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function c(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(t[r],e[r])}i.forEach(r,(function(t){i.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),i.forEach(o,c),i.forEach(a,(function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(void 0,e[r])})),i.forEach(s,(function(i){i in e?n[i]=l(t[i],e[i]):i in t&&(n[i]=l(void 0,t[i]))}));var u=r.concat(o).concat(a).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return i.forEach(d,c),n}},"4ac4":function(t,e,n){},"4acb":function(t,e,n){"use strict";n("61d8")},"4ba9":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<i;a++)t[e+a]^=o[a]}});return e.Decryptor=n,e}(),t.mode.OFB}))},"4d64":function(t,e,n){"use strict";var i=n("fc6a"),r=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,l=i(e),c=o(l),u=r(a,c);if(t&&n!==n){while(c>u)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4e02":function(t,e,n){},"4e91":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-editor></c-editor>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名"},"4ec6":function(t,e,n){},"4eeb":function(t,e,n){"use strict";n("6e13")},"4f25":function(t,e,n){},"4f8d":function(t,e,n){"use strict";n("d933")},"50c4":function(t,e,n){"use strict";var i=n("5926"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"50f6":function(t,e,n){},"51d5":function(t,e,n){"use strict";n("dcc6")},5270:function(t,e,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),a=n("2444");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=r(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5378:function(t,e,n){"use strict";n("4ac4")},5494:function(t,e,n){"use strict";var i=n("83ab"),r=n("e330"),o=n("edd0"),a=URLSearchParams.prototype,s=r(a.forEach);i&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},5692:function(t,e,n){"use strict";var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){"use strict";var i=n("d066"),r=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},5778:function(t,e,n){},"577e":function(t,e,n){"use strict";var i=n("f5df"),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},"577e4":function(t,e){function n(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}n.prototype.set=function(t,e,n,i){const r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},n.prototype.get=function(t,e){return this.data[t*this.size+e]},n.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},n.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=n},"58b4":function(t,e,n){"use strict";t.exports=function(t){for(var e=[],n=t.length,i=0;i<n;i++){var r=t.charCodeAt(i);if(r>=55296&&r<=56319&&n>i+1){var o=t.charCodeAt(i+1);o>=56320&&o<=57343&&(r=1024*(r-55296)+o-56320+65536,i+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},5926:function(t,e,n){"use strict";var i=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},"594c":function(t,e,n){},5972:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\n\n```\r\n// 消息弹窗\r\nthis.$message({\n\tmessage: '消息弹窗内容'\n})\r\n\r\n// 通知弹窗\nthis.$notice({\n\ttitle: '通知标题',\n\tmessage: '通知弹窗内容',\n\tbutton: [{\n\t\tname: '不再提醒',\n\t\tcallback() {}\n\t}]\n})\r\n\r\n// 确认弹窗\nthis.$confirm({\n\ttitle: '确认弹窗标题',\n\tmessage: '确认弹窗内容',\n\tresolve: () => {},\n\tcancel: () => {}\n})\r\n\r\n// 加载弹窗\nthis.$loading();\r\n```\n\n## 配置项\r\n\r\n### 消息弹窗 $message\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**success**: 成功<br>**file**: 失败<br>**warn**: 警告\r\nmessage | String | - | 消息内容\r\ntimeout | Number | 2500 | 自动消失时长\r\nmask | Boolean | false | 消息弹窗存在时是否允许点击页面其他区域\r\n\r\n### 通知弹窗 $notice\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**success**: 成功<br>**file**: 失败<br>**warn**: 警告\r\ntitle | String | - | 标题\r\nmessage | String | - | 通知内容\r\ntimeout | Number | 1000 | 自动消失时长\r\nbutton | Array | - | 为通知弹窗定义按钮\r\n-- button.name | String | - | 按钮名称\r\n-- button.callback(close) | String | - | 按钮回到函数<br>**close**: 调用该方法可立即关闭通知弹窗\r\n\r\n### 确认弹窗 $confirm\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**enquire**: 询问<br>**warn**: 警告\r\ntitle | String | \"系统提醒\" | 标题\r\nmessage | String | - | 消息内容\r\nbuttonName | String | \"确定\" | 确定按钮名称\r\ncancelButtonName | String | \"取消\" | 取消按钮名称\r\ncancelButton | Boolean | true | 是否显示取消按钮\r\nresolve | Function | - | 确定按钮回调函数\r\ncancel | Function | - | 取消按钮回调函数\r\n\r\n### 加载弹窗 $loading\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nmessage | String | - | 消息内容\r\ntimeout | Number | 10000 | 自动消失时长"},5980:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){(function(){var e=t,n=e.lib,i=n.Base,r=e.enc,o=r.Utf8,a=e.algo;a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),s=r.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(n));return i}})})()}))},"59b6":function(t,e,n){},"59ed":function(t,e,n){"use strict";var i=n("1626"),r=n("0d51"),o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not a function")}},"5a08":function(t,e,n){},"5aa3":function(t,e,n){var i={"./button.md":"35d5","./detail.md":"b74a","./dialog.md":"796e","./draw_sort.md":"d6f7","./editor.md":"4e91","./file.md":"6184","./form.md":"7741","./input.md":"b035","./layout/flex.md":"a46c","./layout/grid.md":"d013","./link.md":"a29b","./module/complex.md":"9d1b","./module/multi.md":"89e3","./module/normal.md":"8fde","./module/tabs.md":"7daf","./options.md":"e6c5","./popup.md":"5972","./preview.md":"19dd","./progress.md":"25c5","./qrcode.md":"9927","./selector.md":"c0c9","./steps.md":"6627","./switch.md":"e474","./tab.md":"495a","./table.md":"90f9","./test.md":"d429","./title.md":"674c","./tooltip.md":"9abb","./tree.md":"6298","./window.md":"d278"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="5aa3"},"5b81":function(t,e,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("e330"),a=n("1d80"),s=n("1626"),l=n("7234"),c=n("44e7"),u=n("577e"),d=n("dc4a"),h=n("90d8"),p=n("0cb2"),f=n("b622"),m=n("c430"),g=f("replace"),v=TypeError,b=o("".indexOf),_=o("".replace),y=o("".slice),w=Math.max,x=function(t,e,n){return n>t.length?-1:""===e?n:b(t,e,n)};i({target:"String",proto:!0},{replaceAll:function(t,e){var n,i,o,f,k,S,D,C,E,A=a(this),T=0,B=0,F="";if(!l(t)){if(n=c(t),n&&(i=u(a(h(t))),!~b(i,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(o=d(t,g),o)return r(o,t,A,e);if(m&&n)return _(u(A),t,e)}f=u(A),k=u(t),S=s(e),S||(e=u(e)),D=k.length,C=w(1,D),T=x(f,k,0);while(-1!==T)E=S?u(e(k,T,f)):p(k,f,T,[],void 0,e),F+=y(f,B,T)+E,B=T+D,T=x(f,k,T+C);return B<f.length&&(F+=y(f,B)),F}})},"5bf8":function(t,e,n){"use strict";n("a3b9")},"5c4e":function(t,e,n){},"5c6c":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5d56":function(t,e,n){"use strict";n("1e39")},"5e77":function(t,e,n){"use strict";var i=n("83ab"),r=n("1a2d"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},6175:function(t,e,n){"use strict";n("d7aa")},6184:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-upload-file></c-upload-file> // 文件上传\r\n<c-upload-file>\r\n\t// 如需要自定义提示说明,可在组件中插入以下代码\r\n\t<template #tip="{type}">\r\n\t\t<p>自定义的提示说明</p>\r\n\t\t<p>{{type}}</p> // type为根据属性生成的提示说明,例如:"支持格式:图片,mp4"\r\n\t</template>\r\n</c-upload-file>\r\n\r\n<c-file></c-file> // 文件展示\r\n```\r\n\r\n## 属性配置\r\n\r\n### 文件上传 <c-upload-file\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 文件上传的值,可使用v-model属性绑定变量,multiple为true时可传入逗号隔开的字符串或数组\r\nname | String | - | 字段名\r\ntype | String | - | 支持文件类型<br>**image**: 图片<br>**video**: 视频<br>**word**: word文档<br>**excel**: excel文档<br>**zip**: 压缩包\r\nsize | String \\| Number | - | 文件大小上限,单位MB\r\nmedia | Boolean | false | 是否以媒体预览的方式展示\r\nbutton | String | "上传文件" | 上传按钮文字\r\ntip | String | - | 提示说明\r\nmultiple | Boolean \\| String \\| Number | false | 是否支持上传多个文件,可传入数字限制最多可上传文件数\r\n\r\n### 文件展示 <c-file\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsrc | String | - | 文件地址\r\nmedia | Boolean | false | 是否以媒体预览的方式展示'},"61d8":function(t,e,n){},6286:function(t,e,n){"use strict";n("5778")},6298:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tree></c-tree>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ndata | Array | - | 节点数据:[{<br>"name": "节点名", <br>"id": "节点值", <br>"pId": "父节点值",<br>"leaf": "是否为叶子节点", <br>"checked": "是否勾选", <br>"data": "自定义数据", <br>"children": "子节点"<br>}]\r\nsimple | Boolean | false | 节点数据是否为简单结构\r\nselect | Boolean \\| Object | false | 节点是否可以选中\r\nselect.unselect | Boolean | true | 选中后是否可以取消选中\r\ncheck | Boolean \\| Object | false | 节点是否可以勾选\r\ncheck.linked | Boolean \\| String | both | 关联方式<br>**false**: 不关联<br>**parent**: 只关联父级<br>**child**: 只关联子级<br>**both**: 都关联\r\nckeck.clickCheck | Boolean | false | 点击节点触发勾选\r\n@load | Function(node, resolve) | - | 加载子节点数据\r\n@click | Function(node) | - | 节点点击事件\r\n@check | Function(node) | - | 节点勾选事件'},6374:function(t,e,n){"use strict";var i=n("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},6460:function(t,e,n){"use strict";n("a134")},"647a":function(t,e,n){"use strict";n("9c9b")},6627:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-steps></c-steps>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsteps | Array | - | 步骤数据:[{"name": "步骤名", "message": "步骤描述,可不填"}]\r\nactive | String \\| Number | 1 | 当前步骤\r\ngap | String \\| Number | 100 | 步骤节点之间的距离'},"674c":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-title>标题名称</c-title>\r\n```"},"67dd":function(t,e){t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},6864:function(t,e,n){"use strict";n("6c23")},"699e":function(t,e){const n=new Uint8Array(512),i=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)n[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[i[t]+i[e]]}},"69b1":function(t,e,n){},"69f3":function(t,e,n){"use strict";var i,r,o,a=n("cdce"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("1a2d"),d=n("c6cd"),h=n("f772"),p=n("d012"),f="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},b=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}};if(a||d.state){var _=d.state||(d.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,i=function(t,e){if(_.has(t))throw m(f);return e.facade=t,_.set(t,e),e},r=function(t){return _.get(t)||{}},o=function(t){return _.has(t)}}else{var y=h("state");p[y]=!0,i=function(t,e){if(u(t,y))throw m(f);return e.facade=t,c(t,y,e),e},r=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:b}},"6ac6":function(t,e,n){},"6c23":function(t,e,n){},"6d08":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.CipherParams,o=n.enc,a=o.Hex,s=n.format;s.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex}))},"6d4f":function(t,e,n){"use strict";n("84e8")},"6e13":function(t,e,n){},"6f19":function(t,e,n){"use strict";var i=n("9112"),r=n("0d26"),o=n("b980"),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):i(t,"stack",r(n,s)))}},"6fb7":function(t,e,n){},7106:function(t,e,n){"use strict";n("b46e")},7156:function(t,e,n){"use strict";var i=n("1626"),r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},7234:function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){"use strict";var i=n("e330"),r=n("59ed");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},"72fe":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];(function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0})();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],p=t[e+2],f=t[e+3],m=t[e+4],g=t[e+5],v=t[e+6],b=t[e+7],_=t[e+8],y=t[e+9],w=t[e+10],x=t[e+11],k=t[e+12],S=t[e+13],D=t[e+14],C=t[e+15],E=o[0],A=o[1],T=o[2],B=o[3];E=c(E,A,T,B,a,7,s[0]),B=c(B,E,A,T,l,12,s[1]),T=c(T,B,E,A,p,17,s[2]),A=c(A,T,B,E,f,22,s[3]),E=c(E,A,T,B,m,7,s[4]),B=c(B,E,A,T,g,12,s[5]),T=c(T,B,E,A,v,17,s[6]),A=c(A,T,B,E,b,22,s[7]),E=c(E,A,T,B,_,7,s[8]),B=c(B,E,A,T,y,12,s[9]),T=c(T,B,E,A,w,17,s[10]),A=c(A,T,B,E,x,22,s[11]),E=c(E,A,T,B,k,7,s[12]),B=c(B,E,A,T,S,12,s[13]),T=c(T,B,E,A,D,17,s[14]),A=c(A,T,B,E,C,22,s[15]),E=u(E,A,T,B,l,5,s[16]),B=u(B,E,A,T,v,9,s[17]),T=u(T,B,E,A,x,14,s[18]),A=u(A,T,B,E,a,20,s[19]),E=u(E,A,T,B,g,5,s[20]),B=u(B,E,A,T,w,9,s[21]),T=u(T,B,E,A,C,14,s[22]),A=u(A,T,B,E,m,20,s[23]),E=u(E,A,T,B,y,5,s[24]),B=u(B,E,A,T,D,9,s[25]),T=u(T,B,E,A,f,14,s[26]),A=u(A,T,B,E,_,20,s[27]),E=u(E,A,T,B,S,5,s[28]),B=u(B,E,A,T,p,9,s[29]),T=u(T,B,E,A,b,14,s[30]),A=u(A,T,B,E,k,20,s[31]),E=d(E,A,T,B,g,4,s[32]),B=d(B,E,A,T,_,11,s[33]),T=d(T,B,E,A,x,16,s[34]),A=d(A,T,B,E,D,23,s[35]),E=d(E,A,T,B,l,4,s[36]),B=d(B,E,A,T,m,11,s[37]),T=d(T,B,E,A,b,16,s[38]),A=d(A,T,B,E,w,23,s[39]),E=d(E,A,T,B,S,4,s[40]),B=d(B,E,A,T,a,11,s[41]),T=d(T,B,E,A,f,16,s[42]),A=d(A,T,B,E,v,23,s[43]),E=d(E,A,T,B,y,4,s[44]),B=d(B,E,A,T,k,11,s[45]),T=d(T,B,E,A,C,16,s[46]),A=d(A,T,B,E,p,23,s[47]),E=h(E,A,T,B,a,6,s[48]),B=h(B,E,A,T,b,10,s[49]),T=h(T,B,E,A,D,15,s[50]),A=h(A,T,B,E,g,21,s[51]),E=h(E,A,T,B,k,6,s[52]),B=h(B,E,A,T,f,10,s[53]),T=h(T,B,E,A,w,15,s[54]),A=h(A,T,B,E,l,21,s[55]),E=h(E,A,T,B,_,6,s[56]),B=h(B,E,A,T,C,10,s[57]),T=h(T,B,E,A,v,15,s[58]),A=h(A,T,B,E,S,21,s[59]),E=h(E,A,T,B,m,6,s[60]),B=h(B,E,A,T,x,10,s[61]),T=h(T,B,E,A,p,15,s[62]),A=h(A,T,B,E,y,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+A|0,o[2]=o[2]+T|0,o[3]=o[3]+B|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,i,r,o,a){var s=t+(e&n|~e&i)+r+a;return(s<<o|s>>>32-o)+e}function u(t,e,n,i,r,o,a){var s=t+(e&i|n&~i)+r+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,i,r,o,a){var s=t+(e^n^i)+r+a;return(s<<o|s>>>32-o)+e}function h(t,e,n,i,r,o,a){var s=t+(n^(e|~i))+r+a;return(s<<o|s>>>32-o)+e}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5}))},7418:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"75c0":function(t,e,n){},7741:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n// 普通表单\r\n<c-form ref=\"form\">\r\n\t<c-form-item>\r\n\t\t// 表单项内容写在组件内部,输入框、单复选框、选择器和文件上传组件定义name属性后即可通过get方法获取数据\r\n\t\t<c-input name=\"name\"></c-input>\r\n\t\t\r\n\t\t// 如需要自定义提示说明,可在组件中插入以下代码\r\n\t\t<template #tip>\r\n\t\t\t<p>自定义提示信息</p>\r\n\t\t</template>\r\n\t\t\r\n\t\t// 表单项操作\r\n\t\t<template #handle>\r\n\t\t\t<c-link>跳转链接</c-link>\r\n\t\t</template>\r\n\t</c-form-item>\r\n</c-form>\r\n\r\n// 多列表单\r\n<c-form ref=\"form\">\r\n\t<c-form-column>\r\n\t\t<c-form-item></c-form-item>\r\n\t</c-form-column>\r\n\t\r\n\t<c-form-column>\r\n\t\t<c-form-item></c-form-item>\r\n\t</c-form-column>\r\n</c-form>\r\n\r\n// 表单项多列表单\r\n<c-form ref=\"form\" column=\"2\">\r\n\t<c-form-item></c-form-item>\r\n\t<c-form-item></c-form-item>\r\n</c-form>\r\n\r\n// 嵌套表单\r\n<c-form ref=\"form\">\r\n\t// 当一个子表单处于另一个父表单内时,可以定义子表单的name属性,获取父表单的数据时会将子表单的数据封装在对应的name字段中;不定义name属性则将父子表单的数据合并\r\n\t<c-form name=\"subForm\"></c-form>\r\n\t\r\n\t// 父表单获取到的数据为\r\n\t// {\r\n\t// \t...父表单的数据,\r\n\t// \tsubForm: {\r\n\t// \t\t...子表单的数据\r\n\t// \t}\r\n\t// }\r\n</c-form>\r\n\r\n// 回填数据\r\nthis.$refs.form.set({\r\n\tname: 'value'\r\n});\r\n\r\n// 获取数据\r\nthis.$refs.form.get();\r\n\r\n// 清空数据\r\nthis.$refs.form.clear();\r\n\r\n// 提交数据\r\nthis.$refs.form.submit({\r\n\turl: '', // 接口地址\r\n\t\r\n\t// 校验规则\r\n\trule: {\r\n\t\tname: '提示信息', // 仅校验非空可简写\r\n\t\t\r\n\t\tname: [...check], // 仅定义校验项可简写\r\n\r\n\t\tname: { // 完整配置项\r\n\t\t\tcheck: [{\r\n\t\t\t\ttype: 'empty', // 非空校验\r\n\t\t\t\tmessage: '提示信息, // 提示信息\r\n\t\t\t\tskip: (value, data) {} // 跳过字段单项校验\r\n\t\t\t}, {\r\n\t\t\t\ttype: 'regexp', // 正则校验\r\n\t\t\t\tregexp: ['phone', 'email'] // 正则表达式,满足其一即通过校验(phone: 手机号; tel: 固定电话; email: 邮箱; realname: 姓名; idcard: 身份证号; username: 用户名; password: 密码)\r\n\t\t\t}, {\r\n\t\t\t\ttype: 'function', // 自定义函数校验\r\n\t\t\t\tfun: (value, data) => {} // 校验函数,参数value为该字段的值,参数data为表单数据\r\n\t\t\t}],\r\n\t\t\tskip: (value, data) {}, // 跳过字段校验\r\n\t\t\tfail: (value, data) {} // 字段校验未通过回调\r\n\t\t},\r\n\r\n\t\tname: data => { // 复杂表单项校验,name对应c-form-item组件的name属性\r\n\t\t\treturn true; // 成功返回true\r\n\t\t\treturn '错误信息'; // 失败返回错误信息\r\n\t\t}\r\n\t},\r\n\r\n\t// 校验前处理数据\r\n\tbeforeValid: data => {\r\n\t\treturn data;\r\n\t},\r\n\t\r\n\t// 提交前处理数据\r\n\tdataFormatter: data => {\r\n\t\treturn data;\r\n\t},\r\n\t\r\n\t// 提交成功\r\n\tsuccess: (data, res, msg) => {},\r\n\r\n\t// 校验或提交失败\r\n\tfail: (data, code, res, msg) => {}\r\n});\r\n```\r\n\r\n## 属性配置\r\n\r\n### 表单 <c-form\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ncolumn | String | 1 | 表单项多列展示\r\nvertical | Boolean | false | 表单项纵向排列\r\nunit-width | String | - | 表单项控件区域宽度\r\nname | String | - | 表单数据字段名\r\nlink-parent | Boolean | false | 子表单是否联动父表单的column、vertical、unit-width属性\r\n\r\n### 表单项 <c-form-item\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\nrequired | Boolean | false | 字段名是否带*号\r\nwidth | String | - | 表单项控件区域宽度\r\ntip | String | - | 提示说明"},"77a0":function(t,e,n){(function(e,i){t.exports=i(n("8bbf"))})(0,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};function s(){if(c())return!1;var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}var l=function(){if(c())return!1;var t=navigator.userAgent;return!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},c=function(){return t.prototype.$isServer},u=function(){function t(){n(this,t)}return i(t,[{key:"getEventObject",value:function(t){return this.touchObject?this.isTouch?t.touches:[t]:null}},{key:"getTouchObject",value:function(){if(c())return null;this.isTouch=!1;var t=navigator.userAgent,e=navigator.platform,n={};switch(n.touch=!!("ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),n.nonDeskTouch=n.touch&&!/win32/i.test(e)||n.touch&&/win32/i.test(e)&&/mobile/i.test(t),n.eventType="onmousedown"in window&&!n.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||navigator.msMaxTouchPoints>0?"mstouchpoints":"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0?"touchpoints":"mouse",n.eventType){case"mouse":n.touchstart="mousedown",n.touchend="mouseup",n.touchmove="mousemove",n.touchenter="mouseenter",n.touchmove="mousemove",n.touchleave="mouseleave";break;case"touch":n.touchstart="touchstart",n.touchend="touchend",n.touchmove="touchmove",n.touchcancel="touchcancel",n.touchenter="touchstart",n.touchmove="touchmove",n.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":n.touchstart="MSPointerDown",n.touchend="MSPointerUp",n.touchmove="MSPointerMove",n.touchcancel="MSPointerCancel",n.touchenter="MSPointerDown",n.touchmove="MSPointerMove",n.touchleave="MSPointerUp";break;case"touchpoints":n.touchstart="pointerdown",n.touchend="pointerup",n.touchmove="pointermove",n.touchcancel="pointercancel",n.touchenter="pointerdown",n.touchmove="pointermove",n.touchleave="pointerup";break}return this.touchObject=n}}]),t}(),d=function(){function t(){var e=this;n(this,t),this.originPixelRatio=this.getRatio(),this.lastPixelRatio=this.originPixelRatio,window.addEventListener("resize",(function(){e.lastPixelRatio=e.getRatio()}))}return i(t,[{key:"getRatio",value:function(){var t=0,e=window.screen,n=navigator.userAgent.toLowerCase();return void 0!==window.devicePixelRatio?t=window.devicePixelRatio:~n.indexOf("msie")?e.deviceXDPI&&e.logicalXDPI&&(t=e.deviceXDPI/e.logicalXDPI):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(t=window.outerWidth/window.innerWidth),t&&(t=Math.round(100*t)),t}},{key:"getRatioBetweenPreAndCurrent",value:function(){return this.originPixelRatio/this.lastPixelRatio}}]),t}();function h(t,n,i){if(i&&T(n))return t;if(E(t))n=[],t.forEach((function(t,e){n[e]=h(t,n[e])}));else if(t){if(!A(t))return t;for(var r in n={},t)n[r]="object"===e(t[r])?h(t[r],n[r]):t[r]}return n}function p(t,n,i,r){if(r&&T(n))return t;if(n=n||{},E(t))!E(n)&&i&&(n=[]),E(n)&&t.forEach((function(t,e){n[e]=p(t,n[e],i,r)}));else if(t)if(A(t))for(var o in t)"object"===e(t[o])?T(n[o])?n[o]=h(t[o],n[o],r):p(t[o],n[o],i,r):(T(n[o])||i)&&(n[o]=t[o]);else i&&(n=t);return n}function f(t,e,n,i){(n[e]||"function"===typeof n)&&(i=i||e,Object.defineProperty(t,e,{get:function(){return n[i]},configurable:!0}))}var m=void 0,g=void 0;function v(){if(c())return 0;if(g||(g=new d),void 0!==m)return m*g.getRatioBetweenPreAndCurrent();var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var i=n.offsetWidth;return t.parentNode.removeChild(t),m=e-i,g||(g=new d),m*g.getRatioBetweenPreAndCurrent()}function b(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"on";"on"==r?t.addEventListener(e,n,i):t.removeEventListener(e,n,i)}var _=function(t){console.error("[vuescroll] "+t)},y=function(t){console.warn("[vuescroll] "+t)};function w(t,e){var n=!1;if(!t||!e)return n;while(t.parentNode!==e&&9!==t.parentNode.nodeType&&!t.parentNode._isVuescroll)t=t.parentNode;return t.parentNode==e&&(n=!0),n}function x(t){var e,n=document.documentElement.style;t.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?e="presto":"MozAppearance"in n?e="gecko":"WebkitAppearance"in n?e="webkit":"string"===typeof navigator.cpuClass&&(e="trident");var i={trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[e];return i}function k(t,e){if(c())return!1;var n="-"+x(window)+"-"+e,i=document.createElement("div");return i.style[t]=n,i.style[t]==n&&n}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments[4];if(e&&e.length>1)return r?[].concat(a(n),a(e)):[].concat(a(e),a(n));e=e[0];var o=D(e),s=o.ch,l=o.tag,c=o.isComponent;return c&&(e.data=p({attrs:e.componentOptions.propsData},e.data,!1,!0)),s=r?[].concat(a(n),a(s)):[].concat(a(s),a(n)),delete e.data.slot,t(l,p(i,e.data,!1,!0),s)}function D(t){if(!t||t.length>1)return{};t=t[0]?t[0]:t;var e=!!t.componentOptions,n=void 0,i=void 0;return e?(n=t.componentOptions.children||[],i=t.componentOptions.tag):(n=t.children||[],i=t.tag),{isComponent:e,ch:n,tag:i}}function C(t){var e=t.$parent;return!e._isVuescrollRoot&&e&&(e=e.$parent),e}var E=function(t){return Array.isArray(t)},A=function(t){return"[object Object]"==Object.prototype.toString.call(t)},T=function(t){return"undefined"===typeof t};function B(t,e){var n=void 0;return(n=/(-?\d+(?:\.\d+?)?)%$/.exec(t))?(n=n[1]-0,n=e*n/100):n=t-0,n}function F(t,e){if(!c()&&!document.getElementById(t)){var n=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=t,i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),n.appendChild(i)}}function $(){var t=".__hidebar::-webkit-scrollbar {\n width: 0;\n height: 0;\n }";F("vuescroll-hide-ios-bar",t)}function L(){var t="\n @-webkit-keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @-webkit-keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n @keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n .__vuescroll .__refresh,\n .__vuescroll .__load {\n position: absolute;\n width: 100%;\n color: black;\n height: 50px;\n line-height: 50px;\n text-align: center;\n font-size: 16px;\n }\n .__vuescroll .__refresh svg,\n .__vuescroll .__load svg {\n margin-right: 10px;\n width: 25px;\n height: 25px;\n vertical-align: sub;\n }\n .__vuescroll .__refresh svg.active,\n .__vuescroll .__load svg.active {\n transition: all 0.2s;\n }\n .__vuescroll .__refresh svg.active.deactive,\n .__vuescroll .__load svg.active.deactive {\n transform: rotateZ(180deg);\n }\n .__vuescroll .__refresh svg path,\n .__vuescroll .__refresh svg rect,\n .__vuescroll .__load svg path,\n .__vuescroll .__load svg rect {\n fill: #20a0ff;\n }\n .__vuescroll .__refresh svg.start,\n .__vuescroll .__load svg.start {\n stroke: #343640;\n stroke-width: 4;\n stroke-linecap: round;\n -webkit-animation: loading-rotate 2s linear infinite;\n animation: loading-rotate 2s linear infinite;\n }\n .__vuescroll .__refresh svg.start .bg-path,\n .__vuescroll .__load svg.start .bg-path {\n stroke: #f2f2f2;\n fill: none;\n }\n .__vuescroll .__refresh svg.start .active-path,\n .__vuescroll .__load svg.start .active-path {\n stroke: #20a0ff;\n fill: none;\n stroke-dasharray: 90, 150;\n stroke-dashoffset: 0;\n -webkit-animation: loading-wipe 1.5s ease-in-out infinite;\n animation: loading-wipe 1.5s ease-in-out infinite;\n }\n ";F("vuescroll-silde-mode-style",t)}var M={mounted:function(){P[this._uid]=this},beforeDestroy:function(){delete P[this._uid]},methods:{scrollTo:function(t,e,n){var i=t.x,r=t.y;!0!==e&&"undefined"!=typeof e||(e=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(i,r,e,n)},scrollBy:function(t,e,n){var i=t.dx,r=void 0===i?0:i,o=t.dy,a=void 0===o?0:o,s=this.getPosition(),l=s.scrollLeft,c=void 0===l?0:l,u=s.scrollTop,d=void 0===u?0:u;r&&(c+=B(r,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),a&&(d+=B(a,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(c,d,e,n)},scrollIntoView:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.$el;if("string"===typeof t&&(t=n.querySelector(t)),w(t,n)){var i=this.$el.getBoundingClientRect(),r=i.left,o=i.top,a=t.getBoundingClientRect(),s=a.left,l=a.top,c=r-s,u=o-l;this.scrollBy({dx:-c,dy:-u},e)}else y("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ")},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},P={};function I(){for(var t in P)P[t].refresh()}var N={vuescroll:{sizeStrategy:"percent",detectResize:!0,locking:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};function H(t){var e=!1,n=t.scrollPanel,i=t.bar,r=i.vBar,o=i.hBar,a=t.rail,s=a.vRail,l=a.hRail,c=n["initialScrollY"],u=n["initialScrollX"];return c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&y("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),u&&!String(u).match(/^\d+(\.\d+)?(%)?$/)&&y("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(r||o||s||l)&&y("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),z&&(z=[].concat(z),z.forEach((function(n){n(t)&&(e=!0)}))),e}var z=null,O=function(t,e){t=[].concat(t),t.forEach((function(t){p(t,N)})),z=e},R=["slide","native"],U=function(){},K=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],W="refreshDom",j="loadDom",V={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function q(t){var e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame,n=!!e;if(e&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(e.toString())&&(n=!1),n)return function(t,n){e(t,n)};var i=60,r={},o=1,a=null,s=+new Date;return function(t){var e=o++;return r[e]=t,null===a&&(a=setInterval((function(){var t=+new Date,e=r;for(var n in r={},e)e.hasOwnProperty(n)&&(e[n](t),s=t);t-s>2500&&(clearInterval(a),a=null)}),1e3/i)),e}}var Y={},X=/rgb\(/,G=/rgb\((.*)\)/;function Z(t,e){var n=t+"&"+e;if(Y[n])return Y[n];var i=document.createElement("div");i.style.background=t,document.body.appendChild(i);var r=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),X.test(r)?Y[n]="rgba("+G.exec(r)[1]+", "+e+")":t}var Q={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return V[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(t){var e,n,i,o=this,a=Z(o.ops.rail.background,o.ops.rail.opacity);this.touchManager||(this.touchManager=new u);var s,l=o.ops.rail.size,c=o.otherBarHide?0:l,d=o.touchManager.getTouchObject(),h={class:"__rail-is-"+o.type,style:(e={position:"absolute","z-index":"1",borderRadius:o.ops.rail.specifyBorderRadius||l,background:a,border:o.ops.rail.border},r(e,o.bar.opsSize,l),r(e,o.bar.posName,o.ops.rail["gutterOfEnds"]||0),r(e,o.bar.opposName,o.ops.rail["gutterOfEnds"]||c),r(e,o.bar.sidePosName,o.ops.rail["gutterOfSide"]),e)};d&&(h.on=(s={},r(s,d.touchenter,(function(){o.setRailHover()})),r(s,d.touchleave,(function(){o.setRailLeave()})),s));var p=o.ops.scrollButton.enable?l:0,f={class:"__bar-wrap-is-"+o.type,style:(n={position:"absolute",borderRadius:o.ops.rail.specifyBorderRadius||l},r(n,o.bar.posName,p),r(n,o.bar.opposName,p),n),on:{}},m=o.state.posValue*o.state.size,g=m*o.barRatio/o.barSize,v=o.state.opacity,b=C(this);b.setClassHook("vertical"==this.type?"vBarVisible":"hBarVisible",!!v);var _=(i={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},r(i,o.bar.size,100*o.barSize+"%"),r(i,"background",o.ops.bar.background),r(i,o.bar.opsSize,o.ops.bar.size),r(i,"opacity",v),r(i,"transform","translate"+V[o.type].axis+"("+g+"%)"),i),y={style:_,class:"__bar-is-"+o.type,ref:"thumb",on:{}};"vertical"==o.type?(f.style.width="100%",y.style.left=0,y.style.right=0):(f.style.height="100%",y.style.top=0,y.style.bottom=0);var w=this.touchManager.getTouchObject();return y.on[w.touchstart]=this.createBarEvent(),f.on[w.touchstart]=this.createTrackEvent(),t("div",h,[this.createScrollbarButton(t,"start"),this.hideBar?null:t("div",f,[t("div",y)]),this.createScrollbarButton(t,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var t=C(this),e=t.vuescroll.state;e.isRailHover||(e.isRailHover=!0,t.showBar())},setRailLeave:function(){var t=C(this),e=t.vuescroll.state;e.isRailHover=!1,t.hideBar()},setBarDrag:function(t){this.$emit("setBarDrag",this.isBarDragging=t);var e=C(this);e.setClassHook("vertical"==this.type?"vBarDragging":"hBarDragging",!!t)},createBarEvent:function(){var t=this,e=C(t),n=t.touchManager.getTouchObject();function i(e){var i=t.touchManager.getEventObject(e);i&&(e.stopImmediatePropagation(),e.preventDefault(),i=i[0],document.onselectstart=function(){return!1},t.axisStartPos=i[t.bar.client]-t.$refs["thumb"].getBoundingClientRect()[t.bar.posName],t.setBarDrag(!0),b(document,n.touchmove,o),b(document,n.touchend,a))}function o(n){if(t.axisStartPos){var i=t.touchManager.getEventObject(n);if(i){i=i[0];var o=t.$refs.thumb.parentNode,a=i[t.bar.client]-o.getBoundingClientRect()[t.bar.posName];a/=t.barRatio;var s=(a-t.axisStartPos)/o[t.bar.offset];e.scrollTo(r({},t.bar.axis.toLowerCase(),e.scrollPanelElm[t.bar.scrollSize]*s),!1)}}}function a(){t.setBarDrag(!1),e.hideBar(),document.onselectstart=null,t.axisStartPos=0,b(document,n.touchmove,o,!1,"off"),b(document,n.touchend,a,!1,"off")}return i},createTrackEvent:function(){var t=this;return function(e){var n=C(t),i=t.bar,o=i.client,a=i.offset,s=i.posName,l=i.axis,c=t.$refs["thumb"];if(e.preventDefault(),e.stopImmediatePropagation(),c){var u=c[a],d=t.touchManager.getEventObject(e)[0],h=(d[o]-e.currentTarget.getBoundingClientRect()[s]-u/2)/(e.currentTarget[a]-u);n.scrollTo(r({},l.toLowerCase(),100*h+"%"))}}},createScrollbarButton:function(t,e){var n,i=this;if(!i.ops.scrollButton.enable)return null;var o=i.ops.rail.size,a=i.ops.scrollButton,s=a.opacity,l=a.background,c=Z(l,s),u={class:["__bar-button","__bar-button-is-"+i.type+"-"+e],style:(n={},r(n,i.bar.scrollButton[e],0),r(n,"width",o),r(n,"height",o),r(n,"position","absolute"),r(n,"cursor","pointer"),r(n,"display","table"),n),ref:e},d={class:"__bar-button-inner",style:{border:"calc("+o+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};"vertical"==i.type?"start"==e?(d.style["border-bottom-color"]=c,d.style["transform"]="translateY(-25%)"):(d.style["border-top-color"]=c,d.style["transform"]="translateY(25%)"):"start"==e?(d.style["border-right-color"]=c,d.style["transform"]="translateX(-25%)"):(d.style["border-left-color"]=c,d.style["transform"]="translateX(25%)");var h=this.touchManager.getTouchObject();return d.on[h.touchstart]=this.createScrollButtonEvent(e,h),t("div",u,[t("div",d)])},createScrollButtonEvent:function(t,e){var n=this,i=C(n),o=n.ops.scrollButton,a=o.step,s=o.mousedownStep,l="start"==t?-a:a,c="start"==t?-s:s,u=q(window),d=n.type,h=!1,p=!0,f=void 0;function m(o){if(3!=o.which){if(i.setClassHook("cliking"+d+t+"Button",!0),o.stopImmediatePropagation(),o.preventDefault(),p=!1,i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),l)),b(document,e.touchend,v,!1),"mousedown"==e.touchstart){var a=n.$refs[t];b(a,"mouseenter",_,!1),b(a,"mouseleave",y,!1)}clearTimeout(f),f=setTimeout((function(){h=!0,u(g,window)}),500)}}function g(){h&&!p&&(i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),c),!1),u(g,window))}function v(){if(clearTimeout(f),h=!1,b(document,e.touchend,v,!1,"off"),"mousedown"==e.touchstart){var r=n.$refs[t];b(r,"mouseenter",_,!1,"off"),b(r,"mouseleave",y,!1,"off")}i.setClassHook("cliking"+d+t+"Button",!1)}function _(){p=!1,g()}function y(){p=!0}return m}}};function J(t,e){var n=V[e].axis,i=e.charAt(0)+"Bar",r=!t.bar[i].state.size||!t.mergedOptions.scrollPanel["scrolling"+n]||t.refreshLoad&&"vertical"!==e||t.mergedOptions.bar.disable,o=t.mergedOptions.rail.keepShow;return r&&!o?null:{hideBar:r,props:{type:e,ops:{bar:t.mergedOptions.bar,rail:t.mergedOptions.rail,scrollButton:t.mergedOptions.scrollButton},state:t.bar[i].state,hideBar:r},on:{setBarDrag:t.setBarDrag},ref:e+"Bar",key:e}}function tt(t,e){var n=J(e,"vertical"),i=J(e,"horizontal");return e.setClassHook("hasVBar",!(!n||n.hideBar)),e.setClassHook("hasHBar",!(!i||i.hideBar)),[n?t("bar",o({},n,{props:o({otherBarHide:!i},n.props)})):null,i?t("bar",o({},i,{props:o({otherBarHide:!n},i.props)})):null]}var et=function(t){var e=t.render,n=t.components,i=t.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:n,mixins:[M].concat(a([].concat(i))),created:function(){var t=this,e=p(this.$vuescrollConfig||{},{}),n=p(N,e);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach((function(e){f(t.mergedOptions,e,t.$options.propsData.ops)})),p(n,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=H(this.mergedOptions)},render:function(t){var n=this;if(n.renderError)return t("div",[[n.$slots["default"]]]);n.touchManager||(n.touchManager=new u);var i,s={style:{height:n.vuescroll.state.height,width:n.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:o({__vuescroll:!0},n.classHooks)},l=n.touchManager.getTouchObject();l&&(s.on=(i={},r(i,l.touchenter,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent(),n.setClassHook("mouseEnter",!0)})),r(i,l.touchleave,(function(){n.vuescroll.state.pointerLeave=!0,n.hideBar(),n.setClassHook("mouseEnter",!1)})),r(i,l.touchmove,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent()})),i));var c=[e(t,n)].concat(a(tt(t,n))),d=this.$slots["scroll-container"];return d?S(t,d,c,s):t("div",s,[c])},mounted:function(){var t=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push((function(){t.scrollToAnchor(),t.updateBarStateAndEmitEvent()})))},updated:function(){var t=this;this.updatedCbs.forEach((function(e){e.call(t)})),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs["scrollPanel"]._isVue?this.$refs["scrollPanel"].$el:this.$refs["scrollPanel"]}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(t){this.vuescroll.state.isDragging=t},setClassHook:function(t,e){this.classHooks[t]=e},showAndDefferedHideBar:function(t){var e=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout((function(){e.timeoutId=0,e.hideBar(t)}),this.mergedOptions.bar.showDelay)},showBar:function(){var t=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=t,this.bar.hBar.state.opacity=t},hideBar:function(t){var e=this.vuescroll.state,n=e.isDragging,i=e.isRailHover;n||i||(t&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),this.mergedOptions.bar.keepShow||this.vuescroll.state.isDragging||(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var t=this.mergedOptions.scrollPanel,e=t.maxHeight,n=t.maxWidth,i=this.$el.parentNode,r=i.clientHeight,o=i.clientWidth,a=this.scrollPanelElm,s=a.scrollHeight,l=a.scrollWidth,c=void 0,u=void 0;e||n?(u=s<=e?void 0:e,c=l<=n?void 0:n):(u=r,c=o),this.vuescroll.state.height=u?u+"px":void 0,this.vuescroll.state.width=c?c+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var t=this.mergedOptions.vuescroll.sizeStrategy,e=this.mergedOptions.scrollPanel,n=e.maxHeight,i=e.maxWidth,r=this.scrollPanelElm,o=r.clientHeight,a=r.clientWidth;"number"==t||n&&o>n||i&&a>i?this.useNumbericSize():"percent"==t&&o!=n&&a!=i&&this.usePercentSize()},initWatchOpsChange:function(){var t=this,e={deep:!0,sync:!0};this.$watch("mergedOptions",(function(){setTimeout((function(){if(t.isSmallChangeThisTick)return t.isSmallChangeThisTick=!1,void t.updateBarStateAndEmitEvent("options-change");t.refreshInternalStatus()}),0)}),e),K.forEach((function(n){t.$watch(n,(function(){t.isSmallChangeThisTick=!0}),e)}))},scrollToAnchor:function(){var t=function(t){return/^#[a-zA-Z_]\d*$/.test(t)},e=window.location.hash;if(e&&(!(e=e.slice(e.lastIndexOf("#")))||t(e))){var n=document.querySelector(e);!w(n,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(n)}}}}},nt={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var t=0,e=0,n=C(this);this.ops.initialScrollX&&(t=this.ops.initialScrollX),this.ops.initialScrollY&&(e=this.ops.initialScrollY),(t||e)&&n.scrollTo({x:t,y:e})}},mounted:function(){var t=this;setTimeout((function(){t._isDestroyed||t.updateInitialScroll()}),0)},render:function(t){var e={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},n=C(this),i=n.$slots["scroll-panel"];return i?S(t,i,this.$slots.default,e):t("div",e,[[this.$slots.default]])}};function it(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=(n={},r(n,nt.name,nt),r(n,Q.name,Q),n),s={};s.components=a,s.render=e,s.mixins=t;var l=et(s);return O(i,o),l}function rt(t,e){for(var n=t.children,i=[],r=function(t){var n=t.getBoundingClientRect(),i=n.left,r=n.top,o=n.width,a=n.height,s=e.getBoundingClientRect(),l=s.left,c=s.top,u=s.height,d=s.width;return i-l+o>0&&i-l<d&&r-c+a>0&&r-c<u},o=0;o<n.length;o++){var a=n.item(o);r(a)&&!a.isResizeElm&&i.push(a)}return i}function ot(t,e){return function(n){return e(t,n)}}function at(t,e){var n=null;return"easeInQuad"===t&&(n=e*e),"easeOutQuad"===t&&(n=e*(2-e)),"easeInOutQuad"===t&&(n=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===t&&(n=e*e*e),"easeOutCubic"===t&&(n=--e*e*e+1),"easeInOutCubic"===t&&(n=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===t&&(n=e*e*e*e),"easeOutQuart"===t&&(n=1- --e*e*e*e),"easeInOutQuart"===t&&(n=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===t&&(n=e*e*e*e*e),"easeOutQuint"===t&&(n=1+--e*e*e*e*e),"easeInOutQuint"===t&&(n=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),n||e}function st(){return!0}var lt=Date.now||function(){return(new Date).getTime()},ct=function(){function t(){n(this,t),this.init(),this.isRunning=!1}return i(t,[{key:"pause",value:function(){this.isRunning&&(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){this.isPaused&&(this.isPaused=!1,this.ts=lt()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:st,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:st,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:st,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:st,s=e-t,l=s>0?-1:1,c=lt();this.isRunning||this.init(),l!=this.dir||c-this.ts>200?(this.ts=c,this.dir=l,this.st=t,this.ed=e,this.df=s):this.df+=s,this.spd=n,this.completeCb=r,this.vertifyCb=o,this.stepCb=i,this.easingMethod=a,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var t=this;if(this.df){var e=this.percent||0;this.percent=0,this.isRunning=!0;var n=function n(){if(t.isRunning&&t.vertifyCb(e)&&!t.isStopped){if(e=(lt()-t.ts)/t.spd,t.isPaused)return t.percent=e,void(t.isRunning=!1);if(e<1){var i=t.st+t.df*t.easingMethod(e);t.stepCb(i),t.ref(n)}else t.stepCb(t.st+t.df),t.completeCb(),t.isRunning=!1}else t.isRunning=!1};this.ref(n)}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=q(window),this.isPaused=!1,this.isStopped=!1}}]),t}();function ut(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,r=arguments[4],o=arguments[5],a=void 0,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,h=t,p=h.nodeType,f=new ct,m=new ct;if(p){9==p&&(t=t.scrollingElement);var g=t;a=g.scrollLeft,s=g.scrollTop,l=g.scrollHeight,c=g.scrollWidth,u=g.clientWidth,d=g.clientHeight,e="undefined"===typeof e?a:B(e,c-u),n="undefined"===typeof n?s:B(n,l-d);var v=ot(r,at);f.startScroll(a,e,i,(function(e){t.scrollLeft=e}),o,void 0,v),m.startScroll(s,n,i,(function(e){t.scrollTop=e}),o,void 0,v)}else y("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.")}var dt={mounted:function(){this.scrollX=new ct,this.scrollY=new ct},methods:{nativeStop:function(){this.scrollX.stop(),this.scrollY.stop()},nativePause:function(){this.scrollX.pause(),this.scrollY.pause()},nativeContinue:function(){this.scrollX.continue(),this.scrollY.continue()},nativeScrollTo:function(t,e,n,i){!1===n||"undefined"===typeof n&&(n=this.mergedOptions.scrollPanel.speed);var r=this.scrollPanelElm,o=r.scrollTop,a=r.scrollLeft,s=r.scrollWidth,l=r.clientWidth,c=r.scrollHeight,u=r.clientHeight;if(t="undefined"===typeof t?a:B(t,s-l),e="undefined"===typeof e?o:B(e,c-u),n){i=i||this.mergedOptions.scrollPanel.easing;var d=ot(i,at);t!=a&&this.scrollX.startScroll(a,t,n,(function(t){r.scrollLeft=t}),this.scrollingComplete.bind(this),void 0,d),e!=o&&this.scrollY.startScroll(o,e,n,(function(t){r.scrollTop=t}),this.scrollingComplete.bind(this),void 0,d)}else r.scrollTop=e,r.scrollLeft=t},getCurrentviewDomNative:function(){var t=this.scrollContentElm,e=rt(t,this.$el);return e}}};function ht(t){var e={ref:"scrollPanel",style:{height:"100%",overflowY:"scroll",overflowX:"scroll"},class:[],nativeOn:{"&scroll":t.handleScroll},props:{ops:t.mergedOptions.scrollPanel}};t.scrollYEnable=!0,t.scrollXEnable=!0,e.nativeOn.DOMMouseScroll=e.nativeOn.mousewheel=t.onMouseWheel;var n=t.mergedOptions.scrollPanel,i=n.scrollingY,r=n.scrollingX;t.bar.hBar.state.size&&r||(t.scrollXEnable=!1,e.style.overflowX="hidden"),t.bar.vBar.state.size&&i||(t.scrollYEnable=!1,e.style.overflowY="hidden");var o=v();return o?(t.bar.vBar.state.size&&t.mergedOptions.scrollPanel.scrollingY&&("right"==t.mergedOptions.scrollPanel.verticalNativeBarPos?e.style.marginRight="-"+o+"px":e.style.marginLeft="-"+o+"px"),t.bar.hBar.state.size&&t.mergedOptions.scrollPanel.scrollingX&&(e.style.height="calc(100% + "+o+"px)")):($(),e.class.push("__hidebar"),l()&&(e.style["-webkit-overflow-scrolling"]="touch")),e.style.transformOrigin="",e.style.transform="",e}function pt(t,e){var n={};return n=ht(e),t("scrollPanel",n,[ft(t,e)])}function ft(t,e){var n={position:"relative","box-sizing":"border-box","min-width":"100%","min-height":"100%"},i={style:n,ref:"scrollContent",class:"__view"},r=e.$slots["scroll-content"];return e.mergedOptions.scrollPanel.scrollingX?n.width=k("width","fit-content"):i.style["width"]="100%",e.mergedOptions.scrollPanel.padding&&(i.style.paddingRight=e.mergedOptions.rail.size),r?S(t,r,e.$slots.default,i):t("div",i,[e.$slots.default])}function mt(t){var e={ref:"scrollPanel",style:{"user-select":"none","-webkit-user-select":"none","min-width":"100%","min-height":"100%"},class:[],props:{ops:t.mergedOptions.scrollPanel}};e.class.push("__slide"),l()&&(e.style=r({},"-webkit-overflow-scrolling","touch")),"transform"==t.mergedOptions.vuescroll.renderMethod&&(e.style["transform-origin"]="left top 0px");var n=t.mergedOptions.scrollPanel,i=n.scrollingX,o=n.scrollingY,a=n.padding;if(i&&!t.refreshLoad){var s=k("width","fit-content");s?e.style["width"]=s:e["display"]="inline-block"}return i||e.class.push("x-hidden"),o||e.class.push("y-hidden"),a&&(e.style.paddingRight=t.mergedOptions.rail.size),e}function gt(t,e){var n=D(e.$slots["scroll-panel"]).ch||e.$slots.default,i=[];return n||(e.$slots.default=n=[]),e.mergedOptions.vuescroll.pullRefresh.enable&&i.push(t("div",{class:"__refresh",style:{visibility:e.refrehDomVisiable?"":"hidden"},ref:W,key:W},[vt(t,e,"refresh",e.pullRefreshTip)])),i.push(n),e.mergedOptions.vuescroll.pushLoad.enable&&i.push(t("div",{ref:j,key:j,class:"__load",style:{visibility:e.loadDomVisiable?"":"hidden"}},[vt(t,e,"load",e.pushLoadTip)])),i}function vt(t,e,n,i){var r=e.vuescroll.state[n+"Stage"],o=null;if(o=e.$slots[n+"-"+r])return o;switch(r){case"deactive":case"active":var a="active";"deactive"==r&&(a+=" deactive"),o=t("svg",{class:a,attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000",xmlSpace:"preserve"}},[t("metadata",[" Svg Vector Icons : http://www.sfont.cn "]),t("g",[t("g",{attrs:{transform:"matrix(1 0 0 -1 0 1008)"}},[t("path",{attrs:{d:"M10,543l490,455l490-455L885,438L570,735.5V18H430v717.5L115,438L10,543z"}})])])]);break;case"start":o=t("svg",{attrs:{viewBox:"0 0 50 50"},class:"start"},[t("circle",{attrs:{stroke:"true",cx:"25",cy:"25",r:"20"},class:"bg-path"}),t("circle",{attrs:{cx:"25",cy:"25",r:"20"},class:"active-path"})]);break;case"beforeDeactive":o=t("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3562"}},[t("path",{attrs:{d:"M512 0C229.706831 0 0 229.667446 0 512s229.667446 512 512 512c282.293169 0 512-229.667446 512-512S794.332554 0 512 0z m282.994215 353.406031L433.2544 715.145846a31.484062 31.484062 0 0 1-22.275938 9.231754h-0.4096a31.586462 31.586462 0 0 1-22.449231-9.814646L228.430769 546.327631a31.507692 31.507692 0 0 1 45.701908-43.386093l137.4208 144.785724L750.442338 308.854154a31.507692 31.507692 0 1 1 44.551877 44.551877z",fill:"","p-id":"3563"}})]);break}return[o,i]}function bt(t,e){var n=mt(e);return t("scrollPanel",n,[gt(t,e)])}function _t(t,e){return"native"==e.mode?pt(t,e):"slide"==e.mode?bt(t,e):void 0}function yt(t,e){return wt(t,e)}function wt(t,e){if(!t.hasResized){var n="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",i=document.createElement("div");i.style.cssText=n;var r=document.createElement("object");return r.style.cssText=n,r.type="text/html",r.tabIndex=-1,r.onload=function(){b(r.contentDocument.defaultView,"resize",e)},s()||(r.data="about:blank"),i.isResizeElm=!0,i.appendChild(r),t.appendChild(i),s()&&(r.data="about:blank"),function(){r.contentDocument&&b(r.contentDocument.defaultView,"resize",e,"off"),t.removeChild(i),t.hasResized=!1}}}var xt={methods:{slideScrollTo:function(t,e,n,i){var r=this.getPosition(),o=r.scrollLeft,a=r.scrollTop;t=B(t||o,this.scroller.__maxScrollLeft),e=B(e||a,this.scroller.__maxScrollTop),this.scroller.scrollTo(t,e,n>0,void 0,!1,n,i)},zoomBy:function(t,e,n,i,r){this.scroller?this.scroller.zoomBy(t,e,n,i,r):y("zoomBy and zoomTo are only for slide mode!")},zoomTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=arguments[3],r=arguments[4];this.scroller?this.scroller.zoomTo(t,e,n,i,r):y("zoomBy and zoomTo are only for slide mode!")},getCurrentPage:function(){if(this.scroller&&this.mergedOptions.vuescroll.paging)return this.scroller.getCurrentPage();y("getCurrentPage and goToPage are only for slide mode and paging is enble!")},goToPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.scroller&&this.mergedOptions.vuescroll.paging?this.scroller.goToPage(t,e):y("getCurrentPage and goToPage are only for slide mode and paging is enble!")},triggerRefreshOrLoad:function(t){if(this.scroller){var e=this.mergedOptions.vuescroll.pullRefresh.enable,n=this.mergedOptions.vuescroll.pushLoad.enable;if("refresh"!=t||e)if("load"!=t||n)if("refresh"===t||"load"===t){if("start"!=this.vuescroll.state[t+"Stage"])return this.scroller.triggerRefreshOrLoad(t),!0}else y("param must be one of load and refresh!");else y("load must be enabled and content's height > container's height!");else y("refresh must be enabled!")}else y("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){var t=this.scrollPanelElm,e=rt(t,this.$el);return e}}},kt={mixins:[xt,dt],methods:{internalScrollTo:function(t,e,n,i){"native"==this.mode?this.nativeScrollTo(t,e,n,i):"slide"==this.mode&&this.slideScrollTo(t,e,n,i)},stop:function(){this.nativeStop()},pause:function(){this.nativePause()},continue:function(){this.nativeContinue()},getCurrentviewDom:function(){return"slide"==this.mode?this.getCurrentviewDomSlide():this.getCurrentviewDomNative()}}},St=Date.now||function(){return+new Date},Dt=60,Ct=1e3,Et={},At=1,Tt={effect:{}},Bt=null;Bt="undefined"!==typeof window?window:{},Tt.effect.Animate={requestAnimationFrame:q(Bt),stop:function(t){var e=null!=Et[t];return e&&(Et[t]=null),e},isRunning:function(t){return null!=Et[t]},start:function(t,e,n,i,r,o){var a=St(),s=a,l=0,c=0,u=At++;if(o||(o=document.body),u%20===0){var d={};for(var h in Et)d[h]=!0;Et=d}var p=function d(h){var p=!0!==h,f=St();if(!Et[u]||e&&!e(u))return Et[u]=null,void(n&&n(Dt-c/((f-a)/Ct),u,!1));if(p)for(var m=Math.round((f-s)/(Ct/Dt))-1,g=0;g<Math.min(m,4);g++)d(!0),c++;if(Et[u]){i&&(l=(f-a)/i,l>1&&(l=1));var v=r?r(l):l;!1!==t(v,f,p)&&1!==l||!p?p&&(s=f,Tt.effect.Animate.requestAnimationFrame(d,o)):(Et[u]=null,n&&n(Dt-c/((f-a)/Ct),u,1===l||null==i))}};return Et[u]=!0,Tt.effect.Animate.requestAnimationFrame(p,o),u}};var Ft=null,$t=null;function Lt(t,e){for(var n in this.__callback=t,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:U,animatingEasing:"easeOutCubic",noAnimatingEasing:"easeInOutCubic",penetrationDeceleration:.03,penetrationAcceleration:.08},e)this.options[n]=e[n];Ft=ot(this.options.animatingEasing,at),$t=ot(this.options.noAnimatingEasing,at)}var Mt={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__loadHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshBeforeDeactivate:null,__refreshDeactivate:null,__refreshStart:null,__loadActive:null,__loadActivate:null,__loadBeforeDeactivate:null,__loadDeactivate:null,__loadStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__currentPageX:null,__currentPageY:null,__totalXPage:null,__totalYPage:null,__disable:!1,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=this;t===+t&&(a.__clientWidth=t),e===+e&&(a.__clientHeight=e),n===+n&&(a.__contentWidth=n),i===+i&&(a.__contentHeight=i),a.__computeScrollMax(),o||a.scrollTo(a.__scrollLeft,a.__scrollTop,r)},setPosition:function(t,e){var n=this;n.__clientLeft=t||0,n.__clientTop=e||0},setSnapSize:function(t,e){var n=this;n.__snapWidth=t,n.__snapHeight=e},activatePullToRefresh:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__refreshHeight=t,s.__refreshActivate=n,s.__refreshBeforeDeactivate=o,s.__refreshBeforeDeactiveEnd=a,s.__refreshDeactivate=i,s.__refreshStart=r},activatePushToLoad:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__loadHeight=t,s.__loadActivate=n,s.__loadBeforeDeactivate=o,s.__loadBeforeDeactiveEnd=a,s.__loadDeactivate=i,s.__loadStart=r},triggerRefreshOrLoad:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"refresh",e=this.__isDecelerating;if(e&&(Tt.effect.Animate.stop(e),this.__isDecelerating=!1),"refresh"==t){if(this.__refreshActive||this.__refreshBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&(this.__refreshStart(),this.__refreshActive=!0)}else if("load"==t){if(this.__loadActive||this.__loadBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,this.__maxScrollTop+this.__loadHeight,this.__zoomLevel,!0),this.__loadStart&&(this.__loadStart(),this.__loadActive=!0)}},finishRefreshOrLoad:function(){var t=this;if(t.__refreshActive){t.__refreshActive=!1;var e=function(){t.__refreshBeforeDeactiveEnd&&t.__refreshBeforeDeactiveEnd(),t.__refreshBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__refreshBeforeDeactivate?t.__refreshBeforeDeactivate(e):e()}if(t.__loadActive){t.__loadActive=!1;var n=function(){t.__loadBeforeDeactiveEnd&&t.__loadBeforeDeactiveEnd(),t.__loadBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__loadBeforeDeactivate?t.__loadBeforeDeactivate(n):n()}},getValues:function(){var t=this;return{left:t.__scrollLeft,top:t.__scrollTop,zoom:t.__zoomLevel}},getScrollMax:function(){var t=this;return{left:t.__maxScrollLeft,top:t.__maxScrollTop}},zoomTo:function(t,e,n,i,r){var o=this;if(!o.options.zooming)throw new Error("Zooming is not enabled!");r&&(o.__zoomComplete=r),o.__isDecelerating&&(Tt.effect.Animate.stop(o.__isDecelerating),o.__isDecelerating=!1);var a=o.__zoomLevel;null==n&&(n=o.__clientWidth/2),null==i&&(i=o.__clientHeight/2),t=Math.max(Math.min(t,o.options.maxZoom),o.options.minZoom),o.__computeScrollMax(t);var s=(n+o.__scrollLeft)*t/a-n,l=(i+o.__scrollTop)*t/a-i;s>o.__maxScrollLeft?s=o.__maxScrollLeft:s<0&&(s=0),l>o.__maxScrollTop?l=o.__maxScrollTop:l<0&&(l=0),o.__publish(s,l,t,e)},zoomBy:function(t,e,n,i,r){var o=this;o.zoomTo(o.__zoomLevel*t,e,n,i,r)},scrollTo:function(t,e,n,i,r,o,a){var s=this;if(s.__isDecelerating&&(Tt.effect.Animate.stop(s.__isDecelerating),s.__isDecelerating=!1),null!=i&&i!==s.__zoomLevel){if(!s.options.zooming)throw new Error("Zooming is not enabled!");t*=i,e*=i,s.__computeScrollMax(i)}else i=s.__zoomLevel;s.options.scrollingX||r?s.options.paging?t=Math.round(t/s.__clientWidth)*s.__clientWidth:s.options.snapping&&(t=Math.round(t/s.__snapWidth)*s.__snapWidth):t=s.__scrollLeft,s.options.scrollingY||r?s.options.paging?e=Math.round(e/s.__clientHeight)*s.__clientHeight:s.options.snapping&&(e=Math.round(e/s.__snapHeight)*s.__snapHeight):e=s.__scrollTop,r||(t=Math.max(Math.min(s.__maxScrollLeft,t),0),e=Math.max(Math.min(s.__maxScrollTop,e),0)),t===s.__scrollLeft&&e===s.__scrollTop&&(n=!1),s.__isTracking||s.__publish(t,e,i,n,o,a)},scrollBy:function(t,e,n){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,o=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(t||0),o+(e||0),n)},getCurrentPage:function(){return this.__computePage(),{x:this.__currentPageX,y:this.__currentPageY}},goToPage:function(t,e){var n=t.x,i=t.y;isNaN(n)&&(n=1),isNaN(i)&&(i=1),this.scrollTo((n-1)*this.__clientWidth,(i-1)*this.__clientHeight,e)},doMouseZoom:function(t,e,n,i){var r=this,o=t>0?.97:1.03;return r.zoomTo(r.__zoomLevel*o,!1,n-r.__clientLeft,i-r.__clientTop)},doTouchStart:function(t,e){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var n,i,r=this;r.__interruptedAnimation=!0,r.__isDecelerating&&(Tt.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1,r.__interruptedAnimation=!0),r.__isAnimating&&(Tt.effect.Animate.stop(r.__isAnimating),r.__isAnimating=!1,r.__interruptedAnimation=!0);var o=1===t.length;o?(n=t[0].pageX,i=t[0].pageY):(n=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2),r.__initialTouchLeft=n,r.__initialTouchTop=i,r.__zoomLevelStart=r.__zoomLevel,r.__lastTouchLeft=n,r.__lastTouchTop=i,r.__lastTouchMove=e,r.__lastScale=1,r.__enableScrollX=!o&&r.options.scrollingX,r.__enableScrollY=!o&&r.options.scrollingY,r.__isTracking=!0,r.__didDecelerationComplete=!1,r.__isDragging=!o,r.__isSingleTouch=o,r.__positions=[]},doTouchMove:function(t,e,n){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var i=this;if(i.__isTracking){var r,o;2===t.length?(r=Math.abs(t[0].pageX+t[1].pageX)/2,o=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,o=t[0].pageY);var a=i.__positions;if(i.__isDragging){var s=r-i.__lastTouchLeft,l=o-i.__lastTouchTop,c=i.__scrollLeft,u=i.__scrollTop,d=i.__zoomLevel;if(null!=n&&i.options.zooming){var h=d;if(d=d/i.__lastScale*n,d=Math.max(Math.min(d,i.options.maxZoom),i.options.minZoom),h!==d){var p=r-i.__clientLeft,f=o-i.__clientTop;c=(p+c)*d/h-p,u=(f+u)*d/h-f,i.__computeScrollMax(d)}}var m=i.options.bouncing;if(i.__enableScrollX){c-=s*this.options.speedMultiplier;var g=i.__maxScrollLeft;(c>g||c<0)&&(c+=s/2*this.options.speedMultiplier,c=Math.min(Math.max(-m.left,c),g+m.right))}if(i.__enableScrollY){u-=l*this.options.speedMultiplier;var v=i.__maxScrollTop;(u>v||u<0)&&(u+=l/2*this.options.speedMultiplier,u=Math.min(Math.max(-m.top,u),v+m.bottom),i.__enableScrollX||null==i.__refreshHeight&&null==i.__loadHeight||(!i.__refreshActive&&u<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&u>-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&u>=i.__maxScrollTop+i.__loadHeight&&i.__loadHeight>0?(i.__loadActive=!0,i.__loadActivate&&i.__loadActivate()):i.__loadActive&&u<i.__maxScrollTop+i.__loadHeight&&(i.__loadActive=!1,i.__loadDeactivate&&i.__loadDeactivate())))}a.length>60&&a.splice(0,30),a.push(c,u,e),i.__publish(c,u,d)}else{var b=i.options.locking?3:0,_=5,y=Math.abs(r-i.__initialTouchLeft),w=Math.abs(o-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&y>=b,i.__enableScrollY=i.options.scrollingY&&w>=b,a.push(i.__scrollLeft,i.__scrollTop,e),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&(y>=_||w>=_),i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchLeft=r,i.__lastTouchTop=o,i.__lastTouchMove=e,i.__lastScale=n}},doTouchEnd:function(t){if(t instanceof Date&&(t=t.valueOf()),"number"!==typeof t)throw new Error("Invalid timestamp value: "+t);var e=this;if(e.__isTracking){if(e.__isTracking=!1,e.__isDragging)if(e.__isDragging=!1,e.__isSingleTouch&&e.options.animating&&t-e.__lastTouchMove<=100){for(var n=e.__positions,i=n.length-1,r=i,o=i;o>0&&n[o]>e.__lastTouchMove-100;o-=3)r=o;if(r!==i){var a=n[i]-n[r],s=e.__scrollLeft-n[r-2],l=e.__scrollTop-n[r-1];e.__decelerationVelocityX=s/a*(1e3/60),e.__decelerationVelocityY=l/a*(1e3/60);var c=e.options.paging||e.options.snapping?4:1;Math.abs(e.__decelerationVelocityX)>c||Math.abs(e.__decelerationVelocityY)>c?e.__refreshActive||e.__loadActive||e.__startDeceleration(t):e.__scrollComplete()}else e.__scrollComplete()}else t-e.__lastTouchMove>100&&e.__scrollComplete();e.__isDecelerating||(e.__refreshActive&&e.__refreshStart?(e.__publish(e.__scrollLeft,-e.__refreshHeight,e.__zoomLevel,!0),e.__refreshStart&&e.__refreshStart()):e.__loadActive&&e.__loadStart?(e.__publish(e.__scrollLeft,e.__maxScrollTop+e.__loadHeight,e.__zoomLevel,!0),e.__loadStart&&e.__loadStart()):((e.__interruptedAnimation||e.__isDragging)&&e.__scrollComplete(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0,e.__zoomLevel),e.__refreshActive?(e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate()):e.__loadActive&&(e.__loadActive=!1,e.__loadDeactivate&&e.__loadDeactivate()))),e.__positions.length=0}},onScroll:U,stop:function(){var t=this;t.__disable=!0},start:function(){var t=this;t.__disable=!0},__publish:function(t,e,n,i,r,o){var a=this;if(!a.__disable){isNaN(t)&&(t=this.__scrollLeft),isNaN(e)&&(e=this.__scrollTop);var s=a.__isAnimating;if(s&&(Tt.effect.Animate.stop(s),a.__isAnimating=!1),i&&(a.options.animating||r)){a.__scheduledLeft=t,a.__scheduledTop=e,a.__scheduledZoom=n;var l=a.__scrollLeft,c=a.__scrollTop,u=a.__zoomLevel,d=t-l,h=e-c,p=n-u,f=function(t,e,n){n&&(a.__scrollLeft=l+d*t,a.__scrollTop=c+h*t,a.__zoomLevel=u+p*t,a.__callback&&(a.__callback(a.__scrollLeft,a.__scrollTop,a.__zoomLevel),a.onScroll()))},m=function(t){return a.__isAnimating===t},g=function(t,e,n){e===a.__isAnimating&&(a.__isAnimating=!1),(a.__didDecelerationComplete||n)&&a.__scrollComplete(),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())},v=Ft;o&&(v=ot(o,at)),a.__isAnimating=Tt.effect.Animate.start(f,m,g,r||a.options.animationDuration,s?v:$t)}else a.__scheduledLeft=a.__scrollLeft=t,a.__scheduledTop=a.__scrollTop=e,a.__scheduledZoom=a.__zoomLevel=n,a.__callback&&(a.__callback(t,e,n),a.onScroll()),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())}},__computeScrollMax:function(t){var e=this;null==t&&(t=e.__zoomLevel),e.__maxScrollLeft=Math.max(e.__contentWidth*t-e.__clientWidth,0),e.__maxScrollTop=Math.max(e.__contentHeight*t-e.__clientHeight,0)},__computePage:function(){var t=this,e=t.__clientWidth,n=t.__clientHeight,i=t.__scrollLeft,r=t.__scrollTop;t.__totalXPage=Math.ceil(t.__contentWidth/e),t.__currentPageX=Math.ceil(i/e+1),t.__totalYPage=Math.ceil(t.__contentHeight/n),t.__currentPageY=Math.ceil(r/n+1)},__scrollComplete:function(){var t=this;t.options.scrollingComplete()},__startDeceleration:function(){var t=this;if(t.options.paging){var e=Math.max(Math.min(t.__scrollLeft,t.__maxScrollLeft),0),n=Math.max(Math.min(t.__scrollTop,t.__maxScrollTop),0),i=t.__clientWidth,r=t.__clientHeight;t.__minDecelerationScrollLeft=Math.floor(e/i)*i,t.__minDecelerationScrollTop=Math.floor(n/r)*r,t.__maxDecelerationScrollLeft=Math.ceil(e/i)*i,t.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else t.__minDecelerationScrollLeft=0,t.__minDecelerationScrollTop=0,t.__maxDecelerationScrollLeft=t.__maxScrollLeft,t.__maxDecelerationScrollTop=t.__maxScrollTop;var o=function(e,n,i){t.__stepThroughDeceleration(i)},a=t.options.snapping?4:.001,s=function(){var e=Math.abs(t.__decelerationVelocityX)>=a||Math.abs(t.__decelerationVelocityY)>=a;return e||(t.__didDecelerationComplete=!0),e},l=function(){t.__isDecelerating&&(t.__isDecelerating=!1,t.__didDecelerationComplete&&t.__scrollComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,t.options.snapping))};t.__isDecelerating=Tt.effect.Animate.start(o,s,l)},__stepThroughDeceleration:function(t){var e=this,n=e.options.bouncing,i=e.__minDecelerationScrollLeft,r=e.__maxDecelerationScrollLeft,o=e.__minDecelerationScrollTop,a=e.__maxDecelerationScrollTop,s=e.__scrollLeft+e.__decelerationVelocityX,l=e.__scrollTop+e.__decelerationVelocityY,c=s<i||s>r,u=l<o||l>a,d=Math.min(Math.max(i-n.left,s),r+n.right),h=Math.min(Math.max(o-n.top,l),a+n.bottom);if(t?e.__publish(d,h,e.__zoomLevel):(e.__scrollLeft=s,e.__scrollTop=l),!e.options.paging){var p=.95;e.__decelerationVelocityX*=p,e.__decelerationVelocityY*=p}var f=0,m=0,g=e.options.penetrationDeceleration,v=e.options.penetrationAcceleration;c&&(s<e.__minDecelerationScrollLeft?f=e.__minDecelerationScrollLeft-s:s>e.__maxDecelerationScrollLeft&&(f=e.__maxDecelerationScrollLeft-s)),u&&(l<e.__minDecelerationScrollTop?m=e.__minDecelerationScrollTop-l:l>e.__maxDecelerationScrollTop&&(m=e.__maxDecelerationScrollTop-l)),0!==f&&(f*e.__decelerationVelocityX<=0?(e.__decelerationVelocityX+=f*g,f<0&&-f>=n.right&&e.__decelerationVelocityX>0&&(e.__decelerationVelocityX=-n.right/2),f>0&&f>=n.left&&e.__decelerationVelocityX<0&&(e.__decelerationVelocityX=n.left/2)):e.__decelerationVelocityX=f*v),0!==m&&(m*e.__decelerationVelocityY<=0?(e.__decelerationVelocityY+=m*g,m<0&&-m>=n.bottom&&e.__decelerationVelocityY>0&&(e.__decelerationVelocityY=-n.bottom/2),m>0&&m>=n.top&&e.__decelerationVelocityY<0&&(e.__decelerationVelocityY=n.top/2)):e.__decelerationVelocityY=m*v/2)}};for(var Pt in Mt)Lt.prototype[Pt]=Mt[Pt];function It(t,e,n,i){if("position"==i)return function(e,n){t.style.left=-e+"px",t.style.top=-n+"px"};var r,o=x(e),a=document.createElement("div"),s=o+"Perspective",l="transform";return a.style[s]!==r?function(e,i,r){t.style[l]="translate3d("+-e+n+","+-i+n+",0) scale("+r+")"}:a.style[l]!==r?function(e,i,r){t.style[l]="translate("+-e+n+","+-i+n+") scale("+r+")"}:void 0}var Nt=new u;function Ht(t,e,n,i,r,o){var a=null,s=!1,l=Nt.getTouchObject();function c(t){var i=Nt.getEventObject(t);i[0]&&i[0].target&&i[0].target.tagName.match(/input|textarea|select/i)||e.__disable||(n("mousedown"),s=!0,e.doTouchStart(i,t.timeStamp),r&&t.preventDefault(),t.stopPropagation(),document.addEventListener(l.touchmove,u,{passive:!1}))}function u(t){if(!e.__disable&&s){var i=Nt.getEventObject(t);n("mousemove"),e.doTouchMove(i,t.timeStamp,t.scale),o&&t.preventDefault()}}function d(t){n("mouseup"),s=!1,e.doTouchEnd(t.timeStamp),document.removeEventListener(l.touchmove,u)}function h(t){e.doTouchEnd(t.timeStamp)}function p(t){e.doMouseZoom(t.detail?-120*t.detail:t.wheelDelta,t.timeStamp,t.pageX,t.pageY)}return t.addEventListener(l.touchstart,c,!1),document.addEventListener(l.touchend,d,!1),document.addEventListener(l.touchcancel,h,!1),i&&!Nt.isTouch&&t.addEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1),a=function(){t.removeEventListener(l.touchstart,c,!1),document.removeEventListener(l.touchend,d,!1),document.removeEventListener(l.touchcancel,h,!1),t.removeEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1)},e.onScroll=function(){n("onscroll")},a}function zt(t,e,n,i){var r=n.$listeners,o=function(){n.vuescroll.state[e]="active",n.$emit(t+"-activate",n,i)},a=function(){n.vuescroll.state[e]="deactive",n.$emit(t+"-deactivate",n,i)},s=function(){n.vuescroll.state[e]="beforeDeactiveEnd",n.$emit(t+"-before-deactivate-end",n,i)},l=function(){n.vuescroll.state[e]="start",setTimeout((function(){n.scroller.finishRefreshOrLoad()}),2e3)},c=void 0;return r[t+"-before-deactivate"]&&(c=function(r){n.vuescroll.state[e]="beforeDeactive",n.$emit(t+"-before-deactivate",n,i,r.bind(n.scroller))}),r[t+"-start"]&&(l=function(){n.vuescroll.state[e]="start",n.$emit(t+"-start",n,i,n.scroller.finishRefreshOrLoad.bind(n.scroller))}),{activateCallback:o,deactivateCallback:a,startCallback:l,beforeDeactivateCallback:c,beforeDeactiveEnd:s}}L();var Ot={mounted:function(){this.vsMounted=!0},computed:{pullRefreshTip:function(){return this.mergedOptions.vuescroll.pullRefresh.tips[this.vuescroll.state.refreshStage]},pushLoadTip:function(){return this.mergedOptions.vuescroll.pushLoad.tips[this.vuescroll.state.loadStage]},refreshLoad:function(){return this.mergedOptions.vuescroll.pullRefresh.enable||this.mergedOptions.vuescroll.pushLoad.enable},refrehDomVisiable:function(){return this.vsMounted&&this.outTheTopBoundary},loadDomVisiable:function(){return this.vsMounted&&this.outTheBottomBoundary}},data:function(){return{vuescroll:{state:{refreshStage:"deactive",loadStage:"deactive"}},vsMounted:!1,outTheTopBoundary:!1,outTheBottomBoundary:!1}},methods:{updateScroller:function(){this.updateDimesion(),this.registryRefreshLoad()},updateDimesion:function(){var t=this.$el.clientWidth,e=this.$el.clientHeight,n=this.scrollPanelElm.scrollWidth,i=this.scrollPanelElm.scrollHeight,r=0,o=0;if(this.mergedOptions.vuescroll.pullRefresh.enable&&this.vsMounted){var a=this.$refs[W].elm||this.$refs[W];r=a.offsetHeight,a.style.marginTop=-r+"px"}if(this.mergedOptions.vuescroll.pushLoad.enable&&this.vsMounted){var s=this.$refs[j].elm||this.$refs[j];o=s.offsetHeight,i-=o,s.style.bottom="-"+o+"px"}this.scroller&&this.scroller.setDimensions(t,e,n,i,!1)},registryRefreshLoad:function(){this.mergedOptions.vuescroll.pullRefresh.enable&&this.registryEvent("refresh"),this.mergedOptions.vuescroll.pushLoad.enable&&this.registryEvent("load")},registryScroller:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.left,i=void 0===n?0:n,r=e.top,a=void 0===r?0:r,s=e.zoom,l=void 0===s?1:s,c=this.mergedOptions.vuescroll.scroller,u=c.preventDefault,d=c.preventDefaultOnMove,h=this.mergedOptions.vuescroll,p=h.paging,f=h.snapping.enable,m=h.renderMethod,g=h.zooming,v=h.locking;g=!this.refreshLoad&&!p&&!f&&g;var b=this.mergedOptions.scrollPanel,_=b.scrollingY,y=b.scrollingX,w=this.scrollingComplete.bind(this);this.scroller=new Lt(It(this.scrollPanelElm,window,"px",m),o({},this.mergedOptions.vuescroll.scroller,{zooming:g,scrollingY:_,scrollingX:y&&!this.refreshLoad,animationDuration:this.mergedOptions.scrollPanel.speed,paging:p,snapping:f,scrollingComplete:w,locking:v})),this.scroller.__disable=this.mergedOptions.vuescroll.scroller.disable,this.scroller.__scrollLeft=i,this.scroller.__scrollTop=a,this.scroller.__zoomLevel=l,f&&this.scroller.setSnapSize(this.mergedOptions.vuescroll.snapping.width,this.mergedOptions.vuescroll.snapping.height);var x=this.$el.getBoundingClientRect();this.scroller.setPosition(x.left+this.$el.clientLeft,x.top+this.$el.clientTop);var k=Ht(this.$el,this.scroller,(function(e){switch(e){case"mousedown":t.vuescroll.state.isDragging=!0;break;case"onscroll":var n=t.vuescroll.state["loadStage"],i=t.mergedOptions.vuescroll.pushLoad,r=i.enable,o=i.auto,a=i.autoLoadDistance,s=t.scroller,l=s.__scrollTop,c=s.__maxScrollTop;"start"!=n&&r&&o&&!t.lockAutoLoad&&a>=c-l&&l>0&&(t.lockAutoLoad=!0,t.triggerRefreshOrLoad("load")),a<c-l&&(t.lockAutoLoad=!1),t.handleScroll(!1);break;case"mouseup":t.vuescroll.state.isDragging=!1;break}}),g,u,d);return this.updateScroller(),k},updateSlideModeBarState:function(){var t=void 0,e=void 0,n=this.$el,i=this.scroller,r=0,o=0,a=this.$el,s=a.clientWidth,l=a.clientHeight,c=s+this.scroller.__maxScrollLeft,u=l+this.scroller.__maxScrollTop;i.__scrollLeft<0?r=-i.__scrollLeft:i.__scrollLeft>i.__maxScrollLeft&&(r=i.__scrollLeft-i.__maxScrollLeft),i.__scrollTop<0?(o=-i.__scrollTop,this.outTheBottomBoundary=!1,this.outTheTopBoundary=!0):i.__scrollTop>i.__maxScrollTop?(o=i.__scrollTop-i.__maxScrollTop,this.outTheTopBoundary=!1,this.outTheBottomBoundary=!0):this.outTheTopBoundary=this.outTheBottomBoundary=!1,t=l/(u+o),e=s/(c+r);var d=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),h=Math.min(Math.max(0,i.__scrollLeft),i.__maxScrollLeft);this.bar.vBar.state.posValue=100*(d+o)/n.clientHeight,this.bar.hBar.state.posValue=100*(h+r)/n.clientWidth,i.__scrollLeft<0&&(this.bar.hBar.state.posValue=0),i.__scrollTop<0&&(this.bar.vBar.state.posValue=0),this.bar.vBar.state.size=t<1?t:0,this.bar.hBar.state.size=e<1?e:0},registryEvent:function(t){var e="refresh"==t?W:j,n="refresh"==t?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,i="refresh"==t?"refreshStage":"loadStage",r=this.$refs[e].elm||this.$refs[e],o=zt(t,i,this,r),a=r.offsetHeight;n.bind(this.scroller)(a,o)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}},Rt={methods:{updateNativeModeBarState:function(){var t=this.scrollPanelElm,e="percent"==this.vuescroll.state.currentSizeStrategy,n=this.vuescroll.state,i=n.width,r=n.height,o=e||!i?t.clientWidth:i.slice(0,-2),a=e||!r?t.clientHeight:r.slice(0,-2),s=a/t.scrollHeight,l=o/t.scrollWidth;this.bar.vBar.state.posValue=100*t.scrollTop/a,this.bar.hBar.state.posValue=100*t.scrollLeft/o,this.bar.vBar.state.size=s<1?s:0,this.bar.hBar.state.size=l<1?l:0},getNativePosition:function(){return{scrollTop:this.scrollPanelElm.scrollTop,scrollLeft:this.scrollPanelElm.scrollLeft}},css:function(t,e){return window.getComputedStyle(t)[e]},checkScrollable:function(t,e,n){var i=!1,r=t.target?t.target:t;while(r&&1==r.nodeType&&r!==this.scrollPanelElm.parentNode&&!/^BODY|HTML/.test(r.nodeName)){var o=this.css(r,"overflow")||"";if(/scroll|auto/.test(o)){var a=this.getScrollProcess(r),s=a.v,l=a.h,c="hidden"!==this.css(r,"overflowX"),u="hidden"!==this.css(r,"overflowY");if(c&&(e<0&&l>0||e>0&&l<1)||u&&(n<0&&s>0||n>0&&s<1)){i=r==this.scrollPanelElm;break}}r=!!r.parentNode&&r.parentNode}return i},onMouseWheel:function(t){var e=this.mergedOptions.vuescroll,n=e.wheelDirectionReverse,i=e.wheelScrollDuration,r=e.checkShiftKey,o=e.locking,a=e.deltaPercent,s=void 0,l=void 0;t.wheelDelta?t.deltaY||t.deltaX?(s=t.deltaX*a,l=t.deltaY*a,o&&(Math.abs(t.deltaX)>Math.abs(t.deltaY)?l=0:s=0)):(s=0,l=-1*t.wheelDelta/2):t.detail&&(l=s=16*t.detail,1==t.axis?l=0:2==t.axis&&(s=0)),r&&t.shiftKey&&(s^=l,l^=s,s^=l),n&&(s^=l,l^=s,s^=l),this.checkScrollable(t,s,l)&&(t.stopPropagation(),t.preventDefault(),this.scrollBy({dx:s,dy:l},i))}},computed:{scrollContentElm:function(){return this.$refs["scrollContent"]._isVue?this.$refs["scrollContent"].$el:this.$refs["scrollContent"]}}},Ut=[Ot,Rt],Kt=[kt].concat(a(Ut)),Wt={mixins:Kt,mounted:function(){this._isDestroyed||this.renderError||("slide"==this.mode&&this.updatedCbs.push(this.updateScroller),this.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(t){this.scroller&&(this.scroller.__disable=t)}}))},computed:{mode:function(){return this.mergedOptions.vuescroll.mode}},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},handleScroll:function(t){this.updateBarStateAndEmitEvent("handle-scroll",t)},updateBarStateAndEmitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("native"==this.mode)this.updateNativeModeBarState();else if("slide"==this.mode){if(!this.scroller)return;this.updateSlideModeBarState()}t&&this.emitEvent(t,e),this.mergedOptions.bar.onlyShowBarOnScroll?"handle-scroll"!=t&&"handle-resize"!=t&&"refresh-status"!=t&&"window-resize"!=t&&"options-change"!=t||this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar()},getScrollProcess:function(){var t=this.scrollPanelElm,e=t.scrollHeight,n=t.scrollWidth,i=t.clientHeight,r=t.clientWidth,o=t.scrollTop,a=t.scrollLeft;"slide"==this.mode&&(e=this.scroller.__contentHeight,n=this.scroller.__contentWidth,o=this.scroller.__scrollTop,a=this.scroller.__scrollLeft,i=this.$el.clientHeight,r=this.$el.clientWidth);var s=Math.min(o/(e-i||1),1),l=Math.min(a/(n-r||1),1);return{v:s,h:l}},emitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.scrollPanelElm,i=n.scrollTop,r=n.scrollLeft,o={type:"vertical"},a={type:"horizontal"},s=this.getScrollProcess(),l=s.v,c=s.h;o["process"]=l,a["process"]=c,o["barSize"]=this.bar.vBar.state.size,a["barSize"]=this.bar.hBar.state.size,o["scrollTop"]=i,a["scrollLeft"]=r,this.$emit(t,o,a,e)},initVariables:function(){this.lastMode=this.mode,this.$el._isVuescroll=!0},refreshMode:function(){var t=void 0;this.scroller&&(t=this.scroller.getValues()),this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),"slide"==this.mode?this.destroyScroller=this.registryScroller(t):"native"==this.mode&&(this.scrollPanelElm.style.transform="",this.scrollPanelElm.style.transformOrigin="")},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.refreshMode(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var t=this,e=this.mergedOptions.vuescroll.detectResize,n=!1;if(this.lastMode!=this.mode&&(n=!0,this.lastMode=this.mode),(!this.destroyResize||!e||n)&&(this.destroyResize&&this.destroyResize(),e)){var i=null;"slide"==this.mode?i=this.scrollPanelElm:"native"==this.mode&&(i=this.scrollContentElm);var r=this,o=function(){r.updateBarStateAndEmitEvent("window-resize"),"slide"==r.mode&&(r.updatedCbs.push(r.updateScroller),r.$forceUpdate())},a=function(){var e={};"slide"==t.mode?(e["width"]=t.scroller.__contentWidth,e["height"]=t.scroller.__contentHeight,t.updateBarStateAndEmitEvent("handle-resize",e),t.updatedCbs.push(t.updateScroller),t.$forceUpdate()):"native"==t.mode&&(e["width"]=t.scrollPanelElm.scrollWidth,e["height"]=t.scrollPanelElm.scrollHeight,t.updateBarStateAndEmitEvent("handle-resize",e)),t.setVsSize()};window.addEventListener("resize",o,!1);var s=yt(i,a),l=function(){window.removeEventListener("resize",o,!1)};this.destroyResize=function(){l(),s(),t.destroyResize=null}}},getPosition:function(){return"slide"==this.mode?this.getSlidePosition():"native"==this.mode?this.getNativePosition():void 0}}},jt={vuescroll:{renderMethod:"transform",pullRefresh:{enable:!1,tips:{deactive:"Pull to Refresh",active:"Release to Refresh",start:"Refreshing...",beforeDeactive:"Refresh Successfully!"}},pushLoad:{enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0},paging:!1,zooming:!0,snapping:{enable:!1,width:100,height:100},scroller:{bouncing:{top:100,bottom:100,left:100,right:100},minZoom:.5,maxZoom:3,speedMultiplier:1,penetrationDeceleration:.03,penetrationAcceleration:.08,preventDefault:!1,preventDefaultOnMove:!0,disable:!1}}};function Vt(t){var e=!1,n=t.vuescroll;return n.paging==n.snapping.enable&&n.paging&&(n.pullRefresh||n.pushLoad)&&_("paging, snapping, (pullRefresh with pushLoad) can only one of them to be true."),e}var qt={vuescroll:{wheelScrollDuration:0,wheelDirectionReverse:!1,checkShiftKey:!0,deltaPercent:1}},Yt={vuescroll:{mode:"native"}};function Xt(t){var e=!1,n=t.vuescroll;return~R.indexOf(n.mode)||(_("Unknown mode: "+n.mode+',the vuescroll\'s option "mode" should be one of the '+R),e=!0),e}var Gt=[Yt,jt,qt],Zt=[Xt,Vt],Qt=it(Wt,_t,Gt,Zt);function Jt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.name||Qt.name,Qt),t.prototype.$vuescrollConfig=e.ops||{}}var te=o({install:Jt,version:"4.18.1",refreshAll:I,scrollTo:ut},Qt);return"undefined"!==typeof window&&window.Vue&&window.Vue.use(te),te}))},7839:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7903:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};function i(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let i=0,r=0,o=0,a=null,s=null;for(let l=0;l<e;l++){r=o=0,a=s=null;for(let c=0;c<e;c++){let e=t.get(l,c);e===a?r++:(r>=5&&(i+=n.N1+(r-5)),a=e,r=1),e=t.get(c,l),e===s?o++:(o>=5&&(i+=n.N1+(o-5)),s=e,o=1)}r>=5&&(i+=n.N1+(r-5)),o>=5&&(i+=n.N1+(o-5))}return i},e.getPenaltyN2=function(t){const e=t.size;let i=0;for(let n=0;n<e-1;n++)for(let r=0;r<e-1;r++){const e=t.get(n,r)+t.get(n,r+1)+t.get(n+1,r)+t.get(n+1,r+1);4!==e&&0!==e||i++}return i*n.N2},e.getPenaltyN3=function(t){const e=t.size;let i=0,r=0,o=0;for(let n=0;n<e;n++){r=o=0;for(let a=0;a<e;a++)r=r<<1&2047|t.get(n,a),a>=10&&(1488===r||93===r)&&i++,o=o<<1&2047|t.get(a,n),a>=10&&(1488===o||93===o)&&i++}return i*n.N3},e.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let n=0;n<i;n++)e+=t.data[n];const r=Math.abs(Math.ceil(100*e/i/5)-10);return r*n.N4},e.applyMask=function(t,e){const n=e.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)e.isReserved(o,r)||e.xor(o,r,i(t,o,r))},e.getBestMask=function(t,n){const i=Object.keys(e.Patterns).length;let r=0,o=1/0;for(let a=0;a<i;a++){n(a),e.applyMask(a,t);const i=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),i<o&&(o=i,r=a)}return r}},"796e":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-dialog ref="dialog" title="会话弹窗标题">\r\n\t会话弹窗内容\r\n\t\r\n\t// 如需要自定义按钮,可在组件内插入以下代码\r\n\t<template #button>\r\n\t\t<c-button>按钮名称</c-button>\r\n\t</template>\r\n</c-dialog>\r\n\r\nthis.$refs.dialog.open() // 打开会话弹窗\r\nthis.$refs.dialog.close() // 关闭会话弹窗\r\n\r\n// 打开会话时可以修改属性\r\nthis.$refs.dialog.open({\r\n\ttitle,\r\n\tbutton,\r\n\tbuttonName,\r\n\tcancelButton,\r\n\tcancelButtonName\r\n})\r\n\r\n// 弹窗回调方式\r\n// 1.定义绑定事件\r\n<c-dialog @resolve="确定按钮回调方法" @cancel="取消按钮回调方法"></c-dialog>\r\n// 2.传入回调方法\r\nthis.$refs.dialog.open({\r\n\tresolve: () => {},\r\n\tcancel: () => {},\r\n\t...\r\n})\r\n// 3.使用异步函数\r\nlet {type, stop, next} = await this.$refs.dialog.open();\r\n或\r\nthis.$refs.dialog.open().then(({type, stop, next}) => {});\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nmode | String | - | 模式<br>**popup**: 弹出<br>**slide**: 侧滑\r\ntitle | String | - | 会话弹窗标题\r\nwidth | Number \\| String | - | 会话弹窗宽度\r\nheight | Number \\| String | - | 会话弹窗内容区域高度\r\nresize-button | Boolean | false | 是否显示最大化最小化按钮\r\nclose-button | Boolean | true | 是否显示关闭按钮\r\nbutton | Boolean | true | 是否显示按钮\r\nbutton-name | String | "确定" | 确定按钮名称\r\ncancel-button | Boolean | true | 是否显示取消按钮\r\ncancel-button-name | String | "取消" | 取消按钮名称\r\nmove | Boolean | true | 是否支持移动\r\nmove-limit | Boolean | true | 移动范围限制\r\nmask | Booelan | true | 是否显示遮罩层\r\n@resolve | Function(stop, next) | - | 确定按钮回调<br>**stop**: 阻止会话弹窗关闭方法<br>**next**: 关闭会话弹窗方法\r\n@cancel | Function(stop, next) | - | 取消按钮回调<br>**stop**: 阻止会话弹窗关闭方法<br>**next**: 关闭会话弹窗方法\r\n@close | Function | - | 弹窗关闭回调'},"79d9":function(module,exports,__webpack_require__){__webpack_require__("14d9"),__webpack_require__("c73d");const IMAGE_ALIGN_TOP=__webpack_require__("072b"),IMAGE_ALIGN_LEFT=__webpack_require__("9ca8"),IMAGE_ALIGN_RIGHT=__webpack_require__("d359");(function(window,undefined){if(!window.KindEditor){window.console||(window.console={}),console.log||(console.log=function(){});var _VERSION="4.1.11 (2016-03-31)",_ua=navigator.userAgent.toLowerCase(),_IE=_ua.indexOf("msie")>-1&&-1==_ua.indexOf("opera"),_NEWIE=-1==_ua.indexOf("msie")&&_ua.indexOf("trident")>-1,_GECKO=_ua.indexOf("gecko")>-1&&-1==_ua.indexOf("khtml"),_WEBKIT=_ua.indexOf("applewebkit")>-1,_OPERA=_ua.indexOf("opera")>-1,_MOBILE=_ua.indexOf("mobile")>-1,_IOS=/ipad|iphone|ipod/.test(_ua),_QUIRKS="CSS1Compat"!=document.compatMode,_IERANGE=!window.getSelection,_matches=/(?:msie|firefox|webkit|opera)[\/:\s](\d+)/.exec(_ua),_V=_matches?_matches[1]:"0",_TIME=(new Date).getTime(),_round=Math.round,K={DEBUG:!1,VERSION:_VERSION,IE:_IE,GECKO:_GECKO,WEBKIT:_WEBKIT,OPERA:_OPERA,V:_V,TIME:_TIME,each:_each,isArray:_isArray,isFunction:_isFunction,inArray:_inArray,inString:_inString,trim:_trim,addUnit:_addUnit,removeUnit:_removeUnit,escape:_escape,unescape:_unescape,toCamel:_toCamel,toHex:_toHex,toMap:_toMap,toArray:_toArray,undef:_undef,invalidUrl:_invalidUrl,addParam:_addParam,extend:_extend,json:_json},_INLINE_TAG_MAP=_toMap("a,abbr,acronym,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,img,input,ins,kbd,label,map,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),_BLOCK_TAG_MAP=_toMap("address,applet,blockquote,body,center,dd,dir,div,dl,dt,fieldset,form,frameset,h1,h2,h3,h4,h5,h6,head,hr,html,iframe,ins,isindex,li,map,menu,meta,noframes,noscript,object,ol,p,pre,script,style,table,tbody,td,tfoot,th,thead,title,tr,ul"),_SINGLE_TAG_MAP=_toMap("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),_STYLE_TAG_MAP=_toMap("b,basefont,big,del,em,font,i,s,small,span,strike,strong,sub,sup,u"),_CONTROL_TAG_MAP=_toMap("img,table,input,textarea,button"),_PRE_TAG_MAP=_toMap("pre,style,script"),_NOSPLIT_TAG_MAP=_toMap("html,head,body,td,tr,table,ol,ul,li"),_AUTOCLOSE_TAG_MAP=_toMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),_FILL_ATTR_MAP=_toMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),_VALUE_TAG_MAP=_toMap("input,button,textarea,select");K.basePath=_getBasePath(),K.options={designMode:!0,fullscreenMode:!1,filterMode:!1,wellFormatMode:!0,shadowMode:!0,loadStyleMode:!0,basePath:K.basePath,themesPath:K.basePath+"themes/",langPath:K.basePath+"lang/",pluginsPath:K.basePath+"plugins/",themeType:"default",langType:"zh-CN",urlType:"",newlineTag:"p",resizeType:2,syncType:"form",pasteType:2,dialogAlignType:"page",useContextmenu:!0,fullscreenShortcut:!1,bodyClass:"ke-content",indentChar:"\t",cssPath:"",cssData:"",minWidth:650,minHeight:100,minChangeSize:50,zIndex:811213,items:["source","|","undo","redo","|","formatblock","fontname","fontsize","forecolor","hilitecolor","bold","italic","underline","strikethrough","removeformat","|","justifyleft","justifycenter","justifyright","justifyfull","|","indent","outdent","subscript","superscript","|","uploadImage"],noDisableItems:["source","fullscreen"],colorTable:[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]],fontSizeTable:["9px","10px","12px","14px","16px","18px","24px","32px"],htmlTags:{font:["id","class","color","size","face",".background-color"],span:["id","class",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".line-height"],div:["id","class","align",".border",".margin",".padding",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".background",".font-style",".text-decoration",".vertical-align",".margin-left"],table:["id","class","border","cellspacing","cellpadding","width","height","align","bordercolor",".padding",".margin",".border","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".background",".width",".height",".border-collapse"],"td,th":["id","class","align","valign","width","height","colspan","rowspan","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".vertical-align",".background",".border"],a:["id","class","href","target","name"],embed:["id","class","src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess","wmode"],img:["id","class","src","width","height","border","alt","title","align",".width",".height",".border"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["id","class","align",".text-align",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".text-indent",".margin-left"],pre:["id","class"],hr:["id","class",".page-break-after"],"br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del":["id","class"],iframe:["id","class","src","frameborder","width","height",".width",".height"]},layout:'<div class="container"><div class="toolbar"></div><div class="edit"></div><div class="statusbar"></div></div>'};var _useCapture=!1,_INPUT_KEY_MAP=_toMap("8,9,13,32,46,48..57,59,61,65..90,106,109..111,188,190..192,219..222"),_CURSORMOVE_KEY_MAP=_toMap("33..40"),_CHANGE_KEY_MAP={};_each(_INPUT_KEY_MAP,(function(t,e){_CHANGE_KEY_MAP[t]=e})),_each(_CURSORMOVE_KEY_MAP,(function(t,e){_CHANGE_KEY_MAP[t]=e}));var _EVENT_PROPS="altKey,attrChange,attrName,bubbles,button,cancelable,charCode,clientX,clientY,ctrlKey,currentTarget,data,detail,eventPhase,fromElement,handler,keyCode,metaKey,newValue,offsetX,offsetY,originalTarget,pageX,pageY,prevValue,relatedNode,relatedTarget,screenX,screenY,shiftKey,srcElement,target,toElement,view,wheelDelta,which".split(",");_extend(KEvent,{init:function(t,e){var n=this,i=t.ownerDocument||t.document||t;if(n.event=e,_each(_EVENT_PROPS,(function(t,i){n[i]=e[i]})),n.target||(n.target=n.srcElement||i),3===n.target.nodeType&&(n.target=n.target.parentNode),!n.relatedTarget&&n.fromElement&&(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),null==n.pageX&&null!=n.clientX){var r=i.documentElement,o=i.body;n.pageX=n.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),n.pageY=n.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)}switch(!n.which&&(n.charCode||0===n.charCode?n.charCode:n.keyCode)&&(n.which=n.charCode||n.keyCode),!n.metaKey&&n.ctrlKey&&(n.metaKey=n.ctrlKey),n.which||n.button===undefined||(n.which=1&n.button?1:2&n.button?3:4&n.button?2:0),n.which){case 186:n.which=59;break;case 187:case 107:case 43:n.which=61;break;case 189:case 45:n.which=109;break;case 42:n.which=106;break;case 47:n.which=111;break;case 78:n.which=110;break}n.which>=96&&n.which<=105&&(n.which-=48)},preventDefault:function(){var t=this.event;t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(){var t=this.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},stop:function(){this.preventDefault(),this.stopPropagation()}});var _eventExpendo="kindeditor_"+_TIME,_eventId=0,_eventData={},_readyFinished=!1;window.attachEvent&&window.attachEvent("onunload",(function(){_each(_eventData,(function(t,e){e.el&&_unbind(e.el)}))})),K.ctrl=_ctrl,K.ready=_ready,K.formatUrl=_formatUrl,K.formatHtml=_formatHtml,K.getCssList=_getCssList,K.getAttrList=_getAttrList,K.mediaType=_mediaType,K.mediaAttrs=_mediaAttrs,K.mediaEmbed=_mediaEmbed,K.mediaImg=_mediaImg,K.clearMsWord=_clearMsWord,K.tmpl=_tmpl;var _getSetAttrDiv=document.createElement("div");_getSetAttrDiv.setAttribute("className","t");var _GET_SET_ATTRIBUTE="t"!==_getSetAttrDiv.className;K.query=_query,K.queryAll=_queryAll,_extend(KNode,{init:function(t){var e=this;t=_isArray(t)?t:[t];for(var n=0,i=0,r=t.length;i<r;i++)t[i]&&(e[i]=t[i].constructor===KNode?t[i][0]:t[i],n++);e.length=n,e.doc=_getDoc(e[0]),e.name=_getNodeName(e[0]),e.type=e.length>0?e[0].nodeType:null,e.win=_getWin(e[0])},each:function(t){for(var e=this,n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e;return e},bind:function(t,e){return this.each((function(){_bind(this,t,e)})),this},unbind:function(t,e){return this.each((function(){_unbind(this,t,e)})),this},fire:function(t){return this.length<1||_fire(this[0],t),this},hasAttr:function(t){return!(this.length<1)&&!!_getAttr(this[0],t)},attr:function(t,e){var n=this;return t===undefined?_getAttrList(n.outer()):"object"===typeof t?(_each(t,(function(t,e){n.attr(t,e)})),n):e===undefined?(e=n.length<1?null:_getAttr(n[0],t),null===e?"":e):(n.each((function(){_setAttr(this,t,e)})),n)},removeAttr:function(t){return this.each((function(){_removeAttr(this,t)})),this},get:function(t){return this.length<1?null:this[t||0]},eq:function(t){return this.length<1?null:this[t]?new KNode(this[t]):null},hasClass:function(t){return!(this.length<1)&&_hasClass(this[0],t)},addClass:function(t){return this.each((function(){_hasClass(this,t)||(this.className=_trim(this.className+" "+t))})),this},removeClass:function(t){return this.each((function(){_hasClass(this,t)&&(this.className=_trim(this.className.replace(new RegExp("(^|\\s)"+t+"(\\s|$)")," ")))})),this},html:function(t){var e=this;return t===undefined?e.length<1||1!=e.type?"":_formatHtml(e[0].innerHTML):(e.each((function(){_setHtml(this,t)})),e)},text:function(){var t=this;return t.length<1?"":_IE?t[0].innerText:t[0].textContent},hasVal:function(){return!(this.length<1)&&_hasVal(this[0])},val:function(t){var e=this;return t===undefined?e.length<1?"":e.hasVal()?e[0].value:e.attr("value"):(e.each((function(){_hasVal(this)?this.value=t:_setAttr(this,"value",t)})),e)},css:function(t,e){var n=this;return t===undefined?_getCssList(n.attr("style")):"object"===typeof t?(_each(t,(function(t,e){n.css(t,e)})),n):e===undefined?n.length<1?"":n[0].style[_toCamel(t)]||_computedCss(n[0],t)||"":(n.each((function(){this.style[_toCamel(t)]=e})),n)},width:function(t){var e=this;return t===undefined?e.length<1?0:e[0].offsetWidth:e.css("width",_addUnit(t))},height:function(t){var e=this;return t===undefined?e.length<1?0:e[0].offsetHeight:e.css("height",_addUnit(t))},opacity:function(t){return this.each((function(){this.style.opacity===undefined?this.style.filter=1==t?"":"alpha(opacity="+100*t+")":this.style.opacity=1==t?"":t})),this},data:function(t,e){var n=this;return t="kindeditor_data_"+t,e===undefined?n.length<1?null:n[0][t]:(this.each((function(){this[t]=e})),n)},pos:function(){var t=this,e=t[0],n=0,i=0;if(e)if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),o=_getScrollPos(t.doc);n=r.left+o.x,i=r.top+o.y}else while(e)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{x:_round(n),y:_round(i)}},clone:function(t){return this.length<1?new KNode([]):new KNode(this[0].cloneNode(t))},append:function(t){return this.each((function(){this.appendChild&&this.appendChild(_get(t))})),this},appendTo:function(t){return this.each((function(){_get(t).appendChild(this)})),this},before:function(t){return this.each((function(){this.parentNode.insertBefore(_get(t),this)})),this},after:function(t){return this.each((function(){this.nextSibling?this.parentNode.insertBefore(_get(t),this.nextSibling):this.parentNode.appendChild(_get(t))})),this},replaceWith:function(t){var e=[];return this.each((function(n,i){_unbind(i);var r=_get(t);i.parentNode.replaceChild(r,i),e.push(r)})),K(e)},empty:function(){var t=this;return t.each((function(t,e){var n=e.firstChild;while(n){if(!e.parentNode)return;var i=n.nextSibling;n.parentNode.removeChild(n),n=i}})),t},remove:function(t){var e=this;return e.each((function(n,i){if(i.parentNode){if(_unbind(i),t){var r=i.firstChild;while(r){var o=r.nextSibling;i.parentNode.insertBefore(r,i),r=o}}i.parentNode.removeChild(i),delete e[n]}})),e.length=0,e},show:function(t){var e=this;return t===undefined&&(t=e._originDisplay||""),"none"!=e.css("display")?e:e.css("display",t)},hide:function(){var t=this;return t.length<1?t:(t._originDisplay=t[0].style.display,t.css("display","none"))},outer:function(){var t=this;if(t.length<1)return"";var e,n=t.doc.createElement("div");return n.appendChild(t[0].cloneNode(!0)),e=_formatHtml(n.innerHTML),n=null,e},isSingle:function(){return!!_SINGLE_TAG_MAP[this.name]},isInline:function(){return!!_INLINE_TAG_MAP[this.name]},isBlock:function(){return!!_BLOCK_TAG_MAP[this.name]},isStyle:function(){return!!_STYLE_TAG_MAP[this.name]},isControl:function(){return!!_CONTROL_TAG_MAP[this.name]},contains:function(t){return!(this.length<1)&&_contains(this[0],_get(t))},parent:function(){if(this.length<1)return null;var t=this[0].parentNode;return t?new KNode(t):null},children:function(){if(this.length<1)return new KNode([]);var t=[],e=this[0].firstChild;while(e)3==e.nodeType&&""===_trim(e.nodeValue)||t.push(e),e=e.nextSibling;return new KNode(t)},first:function(){var t=this.children();return t.length>0?t.eq(0):null},last:function(){var t=this.children();return t.length>0?t.eq(t.length-1):null},index:function(){if(this.length<1)return-1;var t=-1,e=this[0];while(e)t++,e=e.previousSibling;return t},prev:function(){if(this.length<1)return null;var t=this[0].previousSibling;return t?new KNode(t):null},next:function(){if(this.length<1)return null;var t=this[0].nextSibling;return t?new KNode(t):null},scan:function(t,e){if(!(this.length<1))return e=e===undefined||e,n(this[0]),this;function n(i){var r=e?i.firstChild:i.lastChild;while(r){var o=e?r.nextSibling:r.previousSibling;if(!1===t(r))return!1;if(!1===n(r))return!1;r=o}}}}),_each("blur,focus,focusin,focusout,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error,contextmenu".split(","),(function(t,e){KNode.prototype[e]=function(t){return t?this.bind(e,t):this.fire(e)}}));var _K=K;K=function(t,e){if(t!==undefined&&null!==t){if("string"===typeof t){e&&(e=_get(e));var n=t.length;if("@"===t.charAt(0)&&(t=t.substr(1)),t.length!==n||/<.+>/.test(t)){var i=e?e.ownerDocument||e:document,r=i.createElement("div"),o=[];r.innerHTML='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+t;for(var a=0,s=r.childNodes.length;a<s;a++){var l=r.childNodes[a];"__kindeditor_temp_tag__"!=l.id&&o.push(l)}return c(o)}return c(_queryAll(t,e))}return t&&t.constructor===KNode?t:(t.toArray&&(t=t.toArray()),_isArray(t)?c(t):c(_toArray(arguments)))}function c(t){return t[0]||(t=[]),new KNode(t)}},_each(_K,(function(t,e){K[t]=e})),K.NodeClass=KNode,window.KindEditor=K;var _START_TO_START=0,_START_TO_END=1,_END_TO_END=2,_END_TO_START=3,_BOOKMARK_ID=0;_extend(KRange,{init:function(t){var e=this;e.startContainer=t,e.startOffset=0,e.endContainer=t,e.endOffset=0,e.collapsed=!0,e.doc=t},commonAncestor:function(){function t(t){var e=[];while(t)e.push(t),t=t.parentNode;return e}var e,n,i=t(this.startContainer),r=t(this.endContainer),o=0,a=i.length,s=r.length;while(++o)if(e=i[a-o],n=r[s-o],!e||!n||e!==n)break;return i[a-o+1]},setStart:function(t,e){var n=this,i=n.doc;return n.startContainer=t,n.startOffset=e,n.endContainer===i&&(n.endContainer=t,n.endOffset=e),_updateCollapsed(this)},setEnd:function(t,e){var n=this,i=n.doc;return n.endContainer=t,n.endOffset=e,n.startContainer===i&&(n.startContainer=t,n.startOffset=e),_updateCollapsed(this)},setStartBefore:function(t){return this.setStart(t.parentNode||this.doc,K(t).index())},setStartAfter:function(t){return this.setStart(t.parentNode||this.doc,K(t).index()+1)},setEndBefore:function(t){return this.setEnd(t.parentNode||this.doc,K(t).index())},setEndAfter:function(t){return this.setEnd(t.parentNode||this.doc,K(t).index()+1)},selectNode:function(t){return this.setStartBefore(t).setEndAfter(t)},selectNodeContents:function(t){var e=K(t);if(3==e.type||e.isSingle())return this.selectNode(t);var n=e.children();return n.length>0?this.setStartBefore(n[0]).setEndAfter(n[n.length-1]):this.setStart(t,0).setEnd(t,0)},collapse:function(t){return t?this.setEnd(this.startContainer,this.startOffset):this.setStart(this.endContainer,this.endOffset)},compareBoundaryPoints:function(t,e){var n=this.get(),i=e.get();if(!_IERANGE)return n.compareBoundaryPoints(t,i);var r={};r[_START_TO_START]="StartToStart",r[_START_TO_END]="EndToStart",r[_END_TO_END]="EndToEnd",r[_END_TO_START]="StartToEnd";var o,a,s,l,c,u=n.compareEndPoints(r[t],i);if(0!==u)return u;if(t!==_START_TO_START&&t!==_END_TO_START||(o=this.startContainer,l=this.startOffset),t!==_START_TO_END&&t!==_END_TO_END||(o=this.endContainer,l=this.endOffset),t!==_START_TO_START&&t!==_START_TO_END||(a=e.startContainer,c=e.startOffset),t!==_END_TO_END&&t!==_END_TO_START||(a=e.endContainer,c=e.endOffset),o===a){var d=l-c;return d>0?1:d<0?-1:0}s=a;while(s&&s.parentNode!==o)s=s.parentNode;if(s)return K(s).index()>=l?-1:1;s=o;while(s&&s.parentNode!==a)s=s.parentNode;return s?K(s).index()>=c?1:-1:(s=K(a).next(),s&&s.contains(o)?1:(s=K(o).next(),s&&s.contains(a)?-1:void 0))},cloneRange:function(){return new KRange(this.doc).setStart(this.startContainer,this.startOffset).setEnd(this.endContainer,this.endOffset)},toString:function(){var t=this.get(),e=_IERANGE?t.text:t.toString();return e.replace(/\r\n|\n|\r/g,"")},cloneContents:function(){return _copyAndDelete(this,!0,!1)},deleteContents:function(){return _copyAndDelete(this,!1,!0)},extractContents:function(){return _copyAndDelete(this,!0,!0)},insertNode:function(t){var e,n,i,r=this,o=r.startContainer,a=r.startOffset,s=r.endContainer,l=r.endOffset,c=1;return"#document-fragment"===t.nodeName.toLowerCase()&&(e=t.firstChild,n=t.lastChild,c=t.childNodes.length),1==o.nodeType?(i=o.childNodes[a],i?(o.insertBefore(t,i),o===s&&(l+=c)):o.appendChild(t)):3==o.nodeType&&(0===a?(o.parentNode.insertBefore(t,o),o.parentNode===s&&(l+=c)):a>=o.nodeValue.length?o.nextSibling?o.parentNode.insertBefore(t,o.nextSibling):o.parentNode.appendChild(t):(i=a>0?o.splitText(a):o,o.parentNode.insertBefore(t,i),o===s&&(s=i,l-=a))),e?r.setStartBefore(e).setEndAfter(n):r.selectNode(t),r.compareBoundaryPoints(_END_TO_END,r.cloneRange().setEnd(s,l))>=1?r:r.setEnd(s,l)},surroundContents:function(t){return t.appendChild(this.extractContents()),this.insertNode(t).selectNode(t)},isControl:function(){var t=this,e=t.startContainer,n=t.startOffset,i=t.endContainer,r=t.endOffset;return 1==e.nodeType&&e===i&&n+1===r&&K(e.childNodes[n]).isControl()},get:function(t){var e,n=this,i=n.doc;if(!_IERANGE){e=i.createRange();try{e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset)}catch(o){}return e}if(t&&n.isControl())return e=i.body.createControlRange(),e.addElement(n.startContainer.childNodes[n.startOffset]),e;var r=n.cloneRange().down();return e=i.body.createTextRange(),e.setEndPoint("StartToStart",_getEndRange(r.startContainer,r.startOffset)),e.setEndPoint("EndToStart",_getEndRange(r.endContainer,r.endOffset)),e},html:function(){return K(this.cloneContents()).outer()},down:function(){var t=this;function e(e,n,i){if(1==e.nodeType){var r,o,a,s,l=K(e).children();if(0!==l.length)n>0&&(r=l.eq(n-1)),n<l.length&&(o=l.eq(n)),r&&3==r.type&&(a=r[0],s=a.nodeValue.length),o&&3==o.type&&(a=o[0],s=0),a&&(i?t.setStart(a,s):t.setEnd(a,s))}}return e(t.startContainer,t.startOffset,!0),e(t.endContainer,t.endOffset,!1),t},up:function(){var t=this;function e(e,n,i){3==e.nodeType&&(0===n?i?t.setStartBefore(e):t.setEndBefore(e):n==e.nodeValue.length&&(i?t.setStartAfter(e):t.setEndAfter(e)))}return e(t.startContainer,t.startOffset,!0),e(t.endContainer,t.endOffset,!1),t},enlarge:function(t){var e=this;function n(n,i,r){var o,a=K(n);if(!(3==a.type||_NOSPLIT_TAG_MAP[a.name]||!t&&a.isBlock()))if(0===i){while(!a.prev()){if(o=a.parent(),!o||_NOSPLIT_TAG_MAP[o.name]||!t&&o.isBlock())break;a=o}r?e.setStartBefore(a[0]):e.setEndBefore(a[0])}else if(i==a.children().length){while(!a.next()){if(o=a.parent(),!o||_NOSPLIT_TAG_MAP[o.name]||!t&&o.isBlock())break;a=o}r?e.setStartAfter(a[0]):e.setEndAfter(a[0])}}return e.up(),n(e.startContainer,e.startOffset,!0),n(e.endContainer,e.endOffset,!1),e},shrink:function(){var t,e=this,n=e.collapsed;while(1==e.startContainer.nodeType&&(t=e.startContainer.childNodes[e.startOffset])&&1==t.nodeType&&!K(t).isSingle())e.setStart(t,0);if(n)return e.collapse(n);while(1==e.endContainer.nodeType&&e.endOffset>0&&(t=e.endContainer.childNodes[e.endOffset-1])&&1==t.nodeType&&!K(t).isSingle())e.setEnd(t,t.childNodes.length);return e},createBookmark:function(t){var e,n=this,i=n.doc,r=K('<span style="display:none;"></span>',i)[0];return r.id="__kindeditor_bookmark_start_"+_BOOKMARK_ID+++"__",n.collapsed||(e=r.cloneNode(!0),e.id="__kindeditor_bookmark_end_"+_BOOKMARK_ID+++"__"),e&&n.cloneRange().collapse(!1).insertNode(e).setEndBefore(e),n.insertNode(r).setStartAfter(r),{start:t?"#"+r.id:r,end:e?t?"#"+e.id:e:null}},moveToBookmark:function(t){var e=this,n=e.doc,i=K(t.start,n),r=t.end?K(t.end,n):null;return!i||i.length<1||(e.setStartBefore(i[0]),i.remove(),r&&r.length>0?(e.setEndBefore(r[0]),r.remove()):e.collapse(!0)),e},dump:function(){console.log("--------------------"),console.log(3==this.startContainer.nodeType?this.startContainer.nodeValue:this.startContainer,this.startOffset),console.log(3==this.endContainer.nodeType?this.endContainer.nodeValue:this.endContainer,this.endOffset)}}),K.RangeClass=KRange,K.range=_range,K.START_TO_START=_START_TO_START,K.START_TO_END=_START_TO_END,K.END_TO_END=_END_TO_END,K.END_TO_START=_END_TO_START,_extend(KCmd,{init:function(t){var e=this,n=t.doc;e.doc=n,e.win=_getWin(n),e.sel=_getSel(n),e.range=t},selection:function(t){var e=this,n=e.doc,i=_getRng(n);return e.sel=_getSel(n),i?(e.range=_range(i),"html"==K(e.range.startContainer).name&&e.range.selectNodeContents(n.body).collapse(!1),e):(t&&e.range.selectNodeContents(n.body).collapse(!1),e)},select:function(t){t=_undef(t,!0);var e,n=this,i=n.sel,r=n.range.cloneRange().shrink(),o=r.startContainer,a=r.startOffset,s=(r.endContainer,r.endOffset,_getDoc(o)),l=n.win,c=!1;if(t&&1==o.nodeType&&r.collapsed){if(_IERANGE){var u=K("<span> </span>",s);r.insertNode(u[0]),e=s.body.createTextRange();try{e.moveToElementText(u[0])}catch(p){}return e.collapse(!1),e.select(),u.remove(),l.focus(),n}if(_WEBKIT){var d=o.childNodes;(K(o).isInline()||a>0&&K(d[a-1]).isInline()||d[a]&&K(d[a]).isInline())&&(r.insertNode(s.createTextNode("")),c=!0)}}if(_IERANGE)try{e=r.get(!0),e.select()}catch(f){}else if(c&&r.collapse(!1),e=r.get(!0),i.removeAllRanges(),i.addRange(e),s!==document){var h=K(e.endContainer).pos();l.scrollTo(h.x,h.y)}return l.focus(),n},wrap:function(t){var e,n=this,i=n.doc,r=n.range;if(e=K(t,i),r.collapsed)return r.shrink(),r.insertNode(e[0]).selectNodeContents(e[0]),n;if(e.isBlock()){var o=e.clone(!0),a=o;while(a.first())a=a.first();return a.append(r.extractContents()),r.insertNode(o[0]).selectNode(o[0]),n}r.enlarge();var s=r.createBookmark(),l=r.commonAncestor(),c=!1;return K(l).scan((function(t){if(c||t!=s.start){if(c){if(t==s.end)return!1;var n=K(t);if(_inPreElement(n))return;if(3==n.type&&_trim(t.nodeValue).length>0){var i;while((i=n.parent())&&i.isStyle()&&1==i.children().length)n=i;_wrapNode(n,e)}}}else c=!0})),r.moveToBookmark(s),n},split:function(t,e){var n,i=this.range,r=i.doc,o=i.cloneRange().collapse(t),a=o.startContainer,s=o.startOffset,l=3==a.nodeType?a.parentNode:a,c=!1;while(l&&l.parentNode){if(n=K(l),e){if(!n.isStyle())break;if(!_hasAttrOrCss(n,e))break}else if(_NOSPLIT_TAG_MAP[n.name])break;c=!0,l=l.parentNode}if(c){var u=r.createElement("span");i.cloneRange().collapse(!t).insertNode(u),t?o.setStartBefore(l.firstChild).setEnd(a,s):o.setStart(a,s).setEndAfter(l.lastChild);var d=o.extractContents(),h=d.firstChild,p=d.lastChild;t?(o.insertNode(d),i.setStartAfter(p).setEndBefore(u)):(l.appendChild(d),i.setStartBefore(u).setEndBefore(h));var f=u.parentNode;if(f==i.endContainer){var m=K(u).prev(),g=K(u).next();m&&g&&3==m.type&&3==g.type?i.setEnd(m[0],m[0].nodeValue.length):t||i.setEnd(i.endContainer,i.endOffset-1)}f.removeChild(u)}return this},remove:function(t){var e,n,i=this,r=i.doc,o=i.range;if(o.enlarge(),0===o.startOffset){var a,s=K(o.startContainer);while((a=s.parent())&&a.isStyle()&&1==a.children().length)s=a;o.setStart(s[0],0),s=K(o.startContainer),s.isBlock()&&_removeAttrOrCss(s,t);var l=s.parent();l&&l.isBlock()&&_removeAttrOrCss(l,t)}if(o.collapsed){if(i.split(!0,t),e=o.startContainer,n=o.startOffset,n>0){var c=K(e.childNodes[n-1]);c&&_isEmptyNode(c)&&(c.remove(),o.setStart(e,n-1))}var u=K(e.childNodes[n]);return u&&_isEmptyNode(u)&&u.remove(),_isEmptyNode(e)&&(o.startBefore(e),e.remove()),o.collapse(!0),i}i.split(!0,t),i.split(!1,t);var d=r.createElement("span"),h=r.createElement("span");o.cloneRange().collapse(!1).insertNode(h),o.cloneRange().collapse(!0).insertNode(d);var p=[],f=!1;K(o.commonAncestor()).scan((function(t){if(f||t!=d)return t!=h&&void(f&&p.push(t));f=!0})),K(d).remove(),K(h).remove(),e=o.startContainer,n=o.startOffset;var m=o.endContainer,g=o.endOffset;if(n>0){var v=K(e.childNodes[n-1]);v&&_isEmptyNode(v)&&(v.remove(),o.setStart(e,n-1),e==m&&o.setEnd(m,g-1));var b=K(e.childNodes[n]);b&&_isEmptyNode(b)&&(b.remove(),e==m&&o.setEnd(m,g-1))}var _=K(m.childNodes[o.endOffset]);_&&_isEmptyNode(_)&&_.remove();var y=o.createBookmark(!0);return _each(p,(function(e,n){_removeAttrOrCss(K(n),t)})),o.moveToBookmark(y),i},commonNode:function(t){var e=this.range,n=e.endContainer,i=e.endOffset,r=3==n.nodeType||0===i?n:n.childNodes[i-1];function o(e){var n=e,i=e;while(i){if(_hasAttrOrCss(K(i),t))return K(i);i=i.parentNode}while(n&&(n=n.lastChild))if(_hasAttrOrCss(K(n),t))return K(n);return null}var a=o(r);if(a)return a;if(1==r.nodeType||3==n.nodeType&&0===i){var s=K(r).prev();if(s)return o(s)}return null},commonAncestor:function(t){var e=this.range,n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=3==n.nodeType||0===i?n:n.childNodes[i-1],s=3==r.nodeType||0===o?r:r.childNodes[o-1];function l(e){while(e){if(1==e.nodeType&&e.tagName.toLowerCase()===t)return e;e=e.parentNode}return null}var c=l(a),u=l(s);return c&&u&&c===u?K(c):null},state:function(t){var e=this,n=e.doc,i=!1;try{i=n.queryCommandState(t)}catch(r){}return i},val:function(t){var e=this,n=e.doc;e.range;function i(t){return t.toLowerCase()}t=i(t);var r,o="";return"fontfamily"===t||"fontname"===t?(o=_nativeCommandValue(n,"fontname"),o=o.replace(/['"]/g,""),i(o)):"formatblock"===t?(o=_nativeCommandValue(n,t),""===o&&(r=e.commonNode({"h1,h2,h3,h4,h5,h6,p,div,pre,address":"*"}),r&&(o=r.name)),"Normal"===o&&(o="p"),i(o)):"fontsize"===t?(r=e.commonNode({"*":".font-size"}),r&&(o=r.css("font-size")),i(o)):"forecolor"===t?(r=e.commonNode({"*":".color"}),r&&(o=r.css("color")),o=_toHex(o),""===o&&(o="default"),i(o)):"hilitecolor"===t?(r=e.commonNode({"*":".background-color"}),r&&(o=r.css("background-color")),o=_toHex(o),""===o&&(o="default"),i(o)):o},toggle:function(t,e){var n=this;return n.commonNode(e)?n.remove(e):n.wrap(t),n.select()},bold:function(){return this.toggle("<strong></strong>",{span:".font-weight=bold",strong:"*",b:"*"})},italic:function(){return this.toggle("<em></em>",{span:".font-style=italic",em:"*",i:"*"})},underline:function(){return this.toggle("<u></u>",{span:".text-decoration=underline",u:"*"})},strikethrough:function(){return this.toggle("<s></s>",{span:".text-decoration=line-through",s:"*"})},forecolor:function(t){return this.wrap('<span style="color:'+t+';"></span>').select()},hilitecolor:function(t){return this.wrap('<span style="background-color:'+t+';"></span>').select()},fontsize:function(t){return this.wrap('<span style="font-size:'+t+';"></span>').select()},fontname:function(t){return this.fontfamily(t)},fontfamily:function(t){return this.wrap('<span style="font-family:'+t+';"></span>').select()},removeformat:function(){var t={"*":".font-weight,.font-style,.text-decoration,.color,.background-color,.font-size,.font-family,.text-indent"},e=_STYLE_TAG_MAP;return _each(e,(function(e,n){t[e]="*"})),this.remove(t),this.select()},inserthtml:function(t,e){var n=this,i=n.range;if(""===t)return n;function r(t,e){e='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+e;var i=t.get();i.item?i.item(0).outerHTML=e:i.pasteHTML(e);var r=t.doc.getElementById("__kindeditor_temp_tag__");r.parentNode.removeChild(r);var o=_toRange(i);t.setEnd(o.endContainer,o.endOffset),t.collapse(!1),n.select(!1)}function o(t,e){var i=t.doc,r=i.createDocumentFragment();K("@"+e,i).each((function(){r.appendChild(this)})),t.deleteContents(),t.insertNode(r),t.collapse(!1),n.select(!1)}if(_IERANGE&&e){try{r(i,t)}catch(a){o(i,t)}return n}return o(i,t),n},hr:function(){return this.inserthtml("<hr />")},print:function(){return this.win.print(),this},insertimage:function(t,e,n,i,r,o){e=_undef(e,""),r=_undef(r,0);var a='<img src="'+_escape(t)+'" data-ke-src="'+_escape(t)+'" ';return n&&(a+='width="'+_escape(n)+'" '),i&&(a+='height="'+_escape(i)+'" '),e&&(a+='title="'+_escape(e)+'" '),o&&(a+='align="'+_escape(o)+'" '),a+='alt="'+_escape(e)+'" ',a+="/>",this.inserthtml(a)},createlink:function(t,e){var n=this,i=n.doc,r=n.range;n.select();var o=n.commonNode({a:"*"});o&&!r.isControl()&&(r.selectNode(o.get()),n.select());var a='<a href="'+_escape(t)+'" data-ke-src="'+_escape(t)+'" ';if(e&&(a+=' target="'+_escape(e)+'"'),r.collapsed)return a+=">"+_escape(t)+"</a>",n.inserthtml(a);if(r.isControl()){var s=K(r.startContainer.childNodes[r.startOffset]);return a+="></a>",s.after(K(a,i)),s.next().append(s),r.selectNode(s[0]),n.select()}function l(t,e,n){K(t).attr("href",e).attr("data-ke-src",e),n?K(t).attr("target",n):K(t).removeAttr("target")}var c=r.startContainer,u=r.startOffset,d=r.endContainer,h=r.endOffset;if(1==c.nodeType&&c===d&&u+1===h){var p=c.childNodes[u];if("a"==p.nodeName.toLowerCase())return l(p,t,e),n}return _nativeCommand(i,"createlink","__kindeditor_temp_url__"),K('a[href="__kindeditor_temp_url__"]',i).each((function(){l(this,t,e)})),n},unlink:function(){var t=this,e=t.doc,n=t.range;if(t.select(),n.collapsed){var i=t.commonNode({a:"*"});if(i&&(n.selectNode(i.get()),t.select()),_nativeCommand(e,"unlink",null),_WEBKIT&&"img"===K(n.startContainer).name){var r=K(n.startContainer).parent();"a"===r.name&&r.remove(!0)}}else _nativeCommand(e,"unlink",null);return t}}),_each("formatblock,selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript".split(","),(function(t,e){KCmd.prototype[e]=function(t){var n=this;return n.select(),_nativeCommand(n.doc,e,t),_IERANGE&&_inArray(e,"justifyleft,justifycenter,justifyright,justifyfull".split(","))>=0&&n.selection(),(!_IERANGE||_inArray(e,"formatblock,selectall,insertorderedlist,insertunorderedlist".split(","))>=0)&&n.selection(),n}})),_each("cut,copy,paste".split(","),(function(t,e){KCmd.prototype[e]=function(){var t=this;if(!t.doc.queryCommandSupported(e))throw"not supported";return t.select(),_nativeCommand(t.doc,e,null),t}})),K.CmdClass=KCmd,K.cmd=_cmd,_extend(KWidget,{init:function(t){var e=this;if(e.name=t.name||"",e.doc=t.doc||document,e.win=_getWin(e.doc),e.x=_addUnit(t.x),e.y=_addUnit(t.y),e.z=t.z,e.width=_addUnit(t.width),e.height=_addUnit(t.height),e.div=K('<div style="display:block;"></div>'),e.options=t,e._alignEl=t.alignEl,e.width&&e.div.css("width",e.width),e.height&&e.div.css("height",e.height),e.z&&e.div.css({position:"absolute",left:e.x,top:e.y,"z-index":e.z}),!e.z||e.x!==undefined&&e.y!==undefined||e.autoPos(e.width,e.height),t.cls&&e.div.addClass(t.cls),t.shadowMode&&e.div.addClass("ke-shadow"),t.css&&e.div.css(t.css),t.src?K(t.src).replaceWith(e.div):K(e.doc.body).append(e.div),t.html&&e.div.html(t.html),t.autoScroll)if(_IE&&_V<7||_QUIRKS){var n=_getScrollPos();K(e.win).bind("scroll",(function(t){var i=_getScrollPos(),r=i.x-n.x,o=i.y-n.y;e.pos(_removeUnit(e.x)+r,_removeUnit(e.y)+o,!1)}))}else e.div.css("position","fixed")},pos:function(t,e,n){var i=this;return n=_undef(n,!0),null!==t&&(t=t<0?0:_addUnit(t),i.div.css("left",t),n&&(i.x=t)),null!==e&&(e=e<0?0:_addUnit(e),i.div.css("top",e),n&&(i.y=e)),i},autoPos:function(t,e){var n=this,i=_removeUnit(t)||0,r=_removeUnit(e)||0,o=_getScrollPos();if(n._alignEl){var a=K(n._alignEl),s=a.pos(),l=_round(a[0].clientWidth/2-i/2),c=_round(a[0].clientHeight/2-r/2);x=l<0?s.x:s.x+l,y=c<0?s.y:s.y+c}else{var u=_docElement(n.doc);x=_round(o.x+(u.clientWidth-i)/2),y=_round(o.y+(u.clientHeight-r)/2)}return _IE&&_V<7||_QUIRKS||(x-=o.x,y-=o.y),n.pos(x,y)},remove:function(){var t=this;return(_IE&&_V<7||_QUIRKS)&&K(t.win).unbind("scroll"),t.div.remove(),_each(t,(function(e){t[e]=null})),this},show:function(){return this.div.show(),this},hide:function(){return this.div.hide(),this},draggable:function(t){var e=this;return t=t||{},t.moveEl=e.div,t.moveFn=function(t,n,i,r,o,a){(t+=o)<0&&(t=0),(n+=a)<0&&(n=0),e.pos(t,n)},_drag(t),e}}),K.WidgetClass=KWidget,K.widget=_widget;var html,_direction="";(html=document.getElementsByTagName("html"))&&(_direction=html[0].dir),_extend(KEdit,KWidget,{init:function(t){var e=this;KEdit.parent.init.call(e,t),e.srcElement=K(t.srcElement),e.div.addClass("ke-edit"),e.designMode=_undef(t.designMode,!0),e.beforeGetHtml=t.beforeGetHtml,e.beforeSetHtml=t.beforeSetHtml,e.afterSetHtml=t.afterSetHtml;var n=_undef(t.themesPath,""),i=t.bodyClass,r=t.cssPath,o=t.cssData,a="res:"!=location.protocol&&location.host.replace(/:\d+/,"")!==document.domain,s="document.open();"+(a?'document.domain="'+document.domain+'";':"")+"document.close();",l=_IE?' src="javascript:void(function(){'+encodeURIComponent(s)+'}())"':"";function c(){var s=_iframeDoc(e.iframe);s.open(),a&&(s.domain=document.domain),s.write(_getInitHtml(n,i,r,o)),s.close(),e.win=e.iframe[0].contentWindow,e.doc=s;var l=_cmd(s);e.afterChange((function(t){l.selection()})),_WEBKIT&&K(s).click((function(t){"img"===K(t.target).name&&(l.selection(!0),l.range.selectNode(t.target),l.select())})),_IE&&(e._mousedownHandler=function(){var t=l.range.cloneRange();t.shrink(),t.isControl()&&e.blur()},K(document).mousedown(e._mousedownHandler),K(s).keydown((function(t){if(8==t.which){l.selection();var e=l.range;e.isControl()&&(e.collapse(!0),K(e.startContainer.childNodes[e.startOffset]).remove(),t.preventDefault())}}))),e.cmd=l,e.html(_elementVal(e.srcElement)),_IE?(s.body.disabled=!0,s.body.contentEditable=!0,s.body.removeAttribute("disabled")):s.designMode="on",t.afterCreate&&t.afterCreate.call(e)}e.iframe=K('<iframe class="ke-edit-iframe" hidefocus="true" frameborder="0"'+l+"></iframe>").css("width","100%"),e.textarea=K('<textarea class="ke-edit-textarea" hidefocus="true"></textarea>').css("width","100%"),e.tabIndex=isNaN(parseInt(t.tabIndex,10))?e.srcElement.attr("tabindex"):parseInt(t.tabIndex,10),e.iframe.attr("tabindex",e.tabIndex),e.textarea.attr("tabindex",e.tabIndex),e.width&&e.setWidth(e.width),e.height&&e.setHeight(e.height),e.designMode?e.textarea.hide():e.iframe.hide(),a&&e.iframe.bind("load",(function(t){e.iframe.unbind("load"),_IE?c():setTimeout(c,0)})),e.div.append(e.iframe),e.div.append(e.textarea),e.srcElement.hide(),!a&&c()},setWidth:function(t){var e=this;return t=_addUnit(t),e.width=t,e.div.css("width",t),e},setHeight:function(t){var e=this;return t=_addUnit(t),e.height=t,e.div.css("height",t),e.iframe.css("height",t),(_IE&&_V<8||_QUIRKS)&&(t=_addUnit(_removeUnit(t)-2)),e.textarea.css("height",t),e},remove:function(){var t=this,e=t.doc;K(e.body).unbind(),K(e).unbind(),K(t.win).unbind(),t._mousedownHandler&&K(document).unbind("mousedown",t._mousedownHandler),_elementVal(t.srcElement,t.html()),t.srcElement.show(),t.iframe.unbind(),t.textarea.unbind(),KEdit.parent.remove.call(t)},html:function(t,e){var n=this,i=n.doc;if(n.designMode){var r=i.body;return t===undefined?(t=e?"<!doctype html><html>"+r.parentNode.innerHTML+"</html>":r.innerHTML,n.beforeGetHtml&&(t=n.beforeGetHtml(t)),_GECKO&&"<br />"==t&&(t=""),t):(n.beforeSetHtml&&(t=n.beforeSetHtml(t)),_IE&&_V>=9&&(t=t.replace(/(<.*?checked=")checked(".*>)/gi,"$1$2")),K(r).html(t),n.afterSetHtml&&n.afterSetHtml(),n)}return t===undefined?n.textarea.val():(n.textarea.val(t),n)},design:function(t){var e,n=this;if(t===undefined?!n.designMode:t){if(!n.designMode){e=n.html(),n.designMode=!0,n.textarea.hide(),n.html(e);var i=n.iframe,r=_removeUnit(n.height);i.height(r-2),i.show(),setTimeout((function(){i.height(r)}),0)}}else n.designMode&&(e=n.html(),n.designMode=!1,n.html(e),n.iframe.hide(),n.textarea.show());return n.focus()},focus:function(){var t=this;return t.designMode?t.win.focus():t.textarea[0].focus(),t},blur:function(){var t=this;if(_IE){var e=K('<input type="text" style="float:left;width:0;height:0;padding:0;margin:0;border:0;" value="" />',t.div);t.div.append(e),e[0].focus(),e.remove()}else t.designMode?t.win.blur():t.textarea[0].blur();return t},afterChange:function(t){var e=this,n=e.doc,i=n.body;function r(e){setTimeout((function(){t(e)}),1)}return K(n).keyup((function(e){e.ctrlKey||e.altKey||!_CHANGE_KEY_MAP[e.which]||t(e)})),K(n).mouseup(t).contextmenu(t),K(e.win).blur(t),K(i).bind("paste",r),K(i).bind("cut",r),e}}),K.EditClass=KEdit,K.edit=_edit,K.iframeDoc=_iframeDoc,_extend(KToolbar,KWidget,{init:function(t){var e=this;function n(t){var e=K(t);return e.hasClass("ke-outline")?e:e.hasClass("ke-toolbar-icon")?e.parent():void 0}function i(t,e){var i=n(t.target);if(i){if(i.hasClass("ke-disabled"))return;if(i.hasClass("ke-selected"))return;i[e]("ke-on")}}KToolbar.parent.init.call(e,t),e.disableMode=_undef(t.disableMode,!1),e.noDisableItemMap=_toMap(_undef(t.noDisableItems,[])),e._itemMap={},e.div.addClass("ke-toolbar").bind("contextmenu,mousedown,mousemove",(function(t){t.preventDefault()})).attr("unselectable","on"),e.div.mouseover((function(t){i(t,"addClass")})).mouseout((function(t){i(t,"removeClass")})).click((function(t){var i=n(t.target);if(i){if(i.hasClass("ke-disabled"))return;e.options.click.call(this,t,i.attr("data-name"))}}))},get:function(t){return this._itemMap[t]?this._itemMap[t]:this._itemMap[t]=K("span.ke-icon-"+t,this.div).parent()},select:function(t){return _selectToolbar.call(this,t,(function(t){t.addClass("ke-selected")})),self},unselect:function(t){return _selectToolbar.call(this,t,(function(t){t.removeClass("ke-selected").removeClass("ke-on")})),self},enable:function(t){var e=this,n=t.get?t:e.get(t);return n&&(n.removeClass("ke-disabled"),n.opacity(1)),e},disable:function(t){var e=this,n=t.get?t:e.get(t);return n&&(n.removeClass("ke-selected").addClass("ke-disabled"),n.opacity(.5)),e},disableAll:function(t,e){var n=this,i=n.noDisableItemMap;return e&&(i=_toMap(e)),(t===undefined?!n.disableMode:t)?(K("span.ke-outline",n.div).each((function(){var t=K(this),e=t[0].getAttribute("data-name",2);i[e]||n.disable(t)})),n.disableMode=!0):(K("span.ke-outline",n.div).each((function(){var t=K(this),e=t[0].getAttribute("data-name",2);i[e]||n.enable(t)})),n.disableMode=!1),n}}),K.ToolbarClass=KToolbar,K.toolbar=_toolbar,_extend(KMenu,KWidget,{init:function(t){var e=this;t.z=t.z||811213,KMenu.parent.init.call(e,t),e.centerLineMode=_undef(t.centerLineMode,!0),e.div.addClass("ke-menu").bind("click,mousedown",(function(t){t.stopPropagation()})).attr("unselectable","on")},addItem:function(t){var e=this;if("-"!==t.title){var n,i=K('<div class="ke-menu-item" unselectable="on"></div>'),r=K('<div class="ke-inline-block ke-menu-item-left"></div>'),o=K('<div class="ke-inline-block ke-menu-item-right"></div>'),a=_addUnit(t.height),s=_undef(t.iconClass,"");return e.div.append(i),a&&(i.css("height",a),o.css("line-height",a)),e.centerLineMode&&(n=K('<div class="ke-inline-block ke-menu-item-center"></div>'),a&&n.css("height",a)),i.mouseover((function(t){K(this).addClass("ke-menu-item-on"),n&&n.addClass("ke-menu-item-center-on")})).mouseout((function(t){K(this).removeClass("ke-menu-item-on"),n&&n.removeClass("ke-menu-item-center-on")})).click((function(e){t.click.call(K(this)),e.stopPropagation()})).append(r),n&&i.append(n),i.append(o),t.checked&&(s="ke-icon-checked"),""!==s&&r.html('<span class="ke-inline-block ke-toolbar-icon ke-toolbar-icon-url '+s+'"></span>'),o.html(t.title),e}e.div.append(K('<div class="ke-menu-separator"></div>'))},remove:function(){var t=this;return t.options.beforeRemove&&t.options.beforeRemove.call(t),K(".ke-menu-item",t.div[0]).unbind(),KMenu.parent.remove.call(t),t}}),K.MenuClass=KMenu,K.menu=_menu,_extend(KColorPicker,KWidget,{init:function(t){var e=this;t.z=t.z||811213,KColorPicker.parent.init.call(e,t);var n=t.colors||[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]];e.selectedColor=(t.selectedColor||"").toLowerCase(),e._cells=[],e.div.addClass("ke-colorpicker").bind("click,mousedown",(function(t){t.stopPropagation()})).attr("unselectable","on");var i=e.doc.createElement("table");e.div.append(i),i.className="ke-colorpicker-table",i.cellPadding=0,i.cellSpacing=0,i.border=0;var r=i.insertRow(0),o=r.insertCell(0);o.colSpan=n[0].length,e._addAttr(o,"","ke-colorpicker-cell-top");for(var a=0;a<n.length;a++){r=i.insertRow(a+1);for(var s=0;s<n[a].length;s++)o=r.insertCell(s),e._addAttr(o,n[a][s],"ke-colorpicker-cell")}},_addAttr:function(t,e,n){var i=this;t=K(t).addClass(n),i.selectedColor===e.toLowerCase()&&t.addClass("ke-colorpicker-cell-selected"),t.attr("title",e||i.options.noColor),t.mouseover((function(t){K(this).addClass("ke-colorpicker-cell-on")})),t.mouseout((function(t){K(this).removeClass("ke-colorpicker-cell-on")})),t.click((function(t){t.stop(),i.options.click.call(K(this),e)})),e?t.append(K('<div class="ke-colorpicker-cell-color" unselectable="on"></div>').css("background-color",e)):t.html(i.options.noColor),K(t).attr("unselectable","on"),i._cells.push(t)},remove:function(){var t=this;return _each(t._cells,(function(){this.unbind()})),KColorPicker.parent.remove.call(t),t}}),K.ColorPickerClass=KColorPicker,K.colorpicker=_colorpicker,_extend(KUploadButton,{init:function(t){var e=this,n=K(t.button),i=t.fieldName||"file",r=t.url||"",o=n.val(),a=t.extraParams||{},s=n[0].className||"",l=t.target||"kindeditor_upload_iframe_"+(new Date).getTime();t.afterError=t.afterError||function(t){alert(t)};var c=[];for(var u in a)c.push('<input type="hidden" name="'+u+'" value="'+a[u]+'" />');var d=['<div class="ke-inline-block '+s+'">',t.target?"":'<iframe name="'+l+'" style="display:none;"></iframe>',t.form?'<div class="ke-upload-area">':'<form class="ke-upload-area ke-form" method="post" enctype="multipart/form-data" target="'+l+'" action="'+r+'">','<span class="ke-button-common">',c.join(""),'<input type="button" class="ke-button-common ke-button" value="'+o+'" />',"</span>",'<input type="file" class="ke-upload-file" name="'+i+'" tabindex="-1" />',t.form?"</div>":"</form>","</div>"].join(""),h=K(d,n.doc);n.hide(),n.before(h),e.div=h,e.button=n,e.iframe=t.target?K('iframe[name="'+l+'"]'):K("iframe",h),e.form=t.form?K(t.form):K("form",h),e.fileBox=K(".ke-upload-file",h);var p=t.width||K(".ke-button-common",h).width();K(".ke-upload-area",h).width(p),e.options=t},submit:function(){var t=this,e=t.iframe;return e.bind("load",(function(){e.unbind();var n=document.createElement("form");t.fileBox.before(n),K(n).append(t.fileBox),n.reset(),K(n).remove(!0);var i,r=K.iframeDoc(e),o=r.getElementsByTagName("pre")[0],a="";a=o?o.innerHTML:r.body.innerHTML,a=_unescape(a),e[0].src="javascript:false";try{i=K.json(a)}catch(s){t.options.afterError.call(t,"<!doctype html><html>"+r.body.parentNode.innerHTML+"</html>")}i&&t.options.afterUpload.call(t,i)})),t.form[0].submit(),t},remove:function(){var t=this;return t.fileBox&&t.fileBox.unbind(),t.iframe.remove(),t.div.remove(),t.button.show(),t}}),K.UploadButtonClass=KUploadButton,K.uploadbutton=_uploadbutton,_extend(KDialog,KWidget,{init:function(t){var e=this,n=_undef(t.shadowMode,!0);t.z=t.z||811213,t.shadowMode=!1,t.autoScroll=_undef(t.autoScroll,!0),KDialog.parent.init.call(e,t);var i=t.title,r=K(t.body,e.doc),o=t.previewBtn,a=t.yesBtn,s=t.noBtn,l=t.closeBtn,c=_undef(t.showMask,!0);e.div.addClass("ke-dialog").bind("click,mousedown",(function(t){t.stopPropagation()}));var u=K('<div class="ke-dialog-content"></div>').appendTo(e.div);_IE&&_V<7?e.iframeMask=K('<iframe src="about:blank" class="ke-dialog-shadow"></iframe>').appendTo(e.div):n&&K('<div class="ke-dialog-shadow"></div>').appendTo(e.div);var d=K('<div class="ke-dialog-header"></div>');u.append(d),d.html(i),e.closeIcon=K('<span class="ke-dialog-icon-close" title="'+l.name+'"></span>').click(l.click),d.append(e.closeIcon),e.draggable({clickEl:d,beforeDrag:t.beforeDrag});var h=K('<div class="ke-dialog-body"></div>');u.append(h),h.append(r);var p=K('<div class="ke-dialog-footer"></div>');if((o||a||s)&&u.append(p),_each([{btn:o,name:"preview"},{btn:a,name:"yes"},{btn:s,name:"no"}],(function(){if(this.btn){var t=_createButton(this.btn);t.addClass("ke-dialog-"+this.name),p.append(t)}})),e.height&&h.height(_removeUnit(e.height)-d.height()-p.height()),e.div.width(e.div.width()),e.div.height(e.div.height()),e.mask=null,c){var f=_docElement(e.doc),m=Math.max(f.scrollWidth,f.clientWidth),g=Math.max(f.scrollHeight,f.clientHeight);e.mask=_widget({x:0,y:0,z:e.z-1,cls:"ke-dialog-mask",width:m,height:g})}e.autoPos(e.div.width(),e.div.height()),e.footerDiv=p,e.bodyDiv=h,e.headerDiv=d,e.isLoading=!1},setMaskIndex:function(t){var e=this;e.mask.div.css("z-index",t)},showLoading:function(t){t=_undef(t,"");var e=this,n=e.bodyDiv;return e.loading=K('<div class="ke-dialog-loading"><div class="ke-inline-block ke-dialog-loading-content" style="margin-top:'+Math.round(n.height()/3)+'px;">'+t+"</div></div>").width(n.width()).height(n.height()).css("top",e.headerDiv.height()+"px"),n.css("visibility","hidden").after(e.loading),e.isLoading=!0,e},hideLoading:function(){return this.loading&&this.loading.remove(),this.bodyDiv.css("visibility","visible"),this.isLoading=!1,this},remove:function(){var t=this;return t.options.beforeRemove&&t.options.beforeRemove.call(t),t.mask&&t.mask.remove(),t.iframeMask&&t.iframeMask.remove(),t.closeIcon.unbind(),K("input",t.div).unbind(),K("button",t.div).unbind(),t.footerDiv.unbind(),t.bodyDiv.unbind(),t.headerDiv.unbind(),K("iframe",t.div).each((function(){K(this).remove()})),KDialog.parent.remove.call(t),t}}),K.DialogClass=KDialog,K.dialog=_dialog,K.tabs=_tabs,K.loadScript=_loadScript,K.loadStyle=_loadStyle,K.ajax=_ajax;var _plugins={},_language={};KEditor.prototype={lang:function(t){return _lang(t,this.langType)},loadPlugin:function(t,e){var n=this,i=this._pluginStatus;return i||(i=this._pluginStatus={}),_plugins[t]?_isFunction(_plugins[t])?(i[t]||(_plugins[t].call(n,KindEditor),i[t]="inited"),e&&e.call(n),n):(setTimeout((function(){n.loadPlugin(t,e)}),100),n):(_plugins[t]="loading",_loadScript(n.pluginsPath+t+"/"+t+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){setTimeout((function(){_plugins[t]&&n.loadPlugin(t,e)}),0)})),n)},handler:function(t,e){var n=this;return n._handlers[t]||(n._handlers[t]=[]),_isFunction(e)?(n._handlers[t].push(e),n):(_each(n._handlers[t],(function(){e=this.call(n,e)})),e)},clickToolbar:function(t,e){var n=this,i="clickToolbar"+t;return e===undefined?n._handlers[i]?n.handler(i):(n.loadPlugin(t,(function(){n.handler(i)})),n):n.handler(i,e)},updateState:function(){var t=this;return _each("justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,subscript,superscript,bold,italic,underline,strikethrough".split(","),(function(e,n){t.cmd.state(n)?t.toolbar.select(n):t.toolbar.unselect(n)})),t},addContextmenu:function(t){return this._contextmenus.push(t),this},afterCreate:function(t){return this.handler("afterCreate",t)},beforeRemove:function(t){return this.handler("beforeRemove",t)},beforeGetHtml:function(t){return this.handler("beforeGetHtml",t)},beforeSetHtml:function(t){return this.handler("beforeSetHtml",t)},afterSetHtml:function(t){return this.handler("afterSetHtml",t)},create:function(){var t=this,e=t.fullscreenMode;if(t.isCreated)return t;if(t.srcElement.data("kindeditor"))return t;t.srcElement.data("kindeditor","true"),_docElement().style.overflow=e?"hidden":"";var n=e?_docElement().clientWidth+"px":t.width,i=e?_docElement().clientHeight+"px":t.height;(_IE&&_V<8||_QUIRKS)&&(i=_addUnit(_removeUnit(i)+2));var r=t.container=K(t.layout);e?K(document.body).append(r):t.srcElement.before(r);var o=K(".toolbar",r),a=K(".edit",r),s=t.statusbar=K(".statusbar",r);r.removeClass("container").addClass("ke-container ke-container-"+t.themeType).css("width",n),e?(r.css({position:"absolute",left:0,top:0,"z-index":811211}),_GECKO||(t._scrollPos=_getScrollPos()),window.scrollTo(0,0),K(document.body).css({height:"1px",overflow:"hidden"}),K(document.body.parentNode).css("overflow","hidden"),t._fullscreenExecuted=!0):(t._fullscreenExecuted&&(K(document.body).css({height:"",overflow:""}),K(document.body.parentNode).css("overflow","")),t._scrollPos&&window.scrollTo(t._scrollPos.x,t._scrollPos.y));var l=[];K.each(t.items,(function(e,n){"|"==n?l.push('<span class="ke-inline-block ke-separator"></span>'):"/"==n?l.push('<div class="ke-hr"></div>'):(l.push('<span class="ke-outline" data-name="'+n+'" title="'+t.lang(n)+'" unselectable="on">'),l.push('<span class="ke-toolbar-icon ke-toolbar-icon-url ke-icon-'+n+'" unselectable="on"></span></span>'))}));var c=t.toolbar=_toolbar({src:o,html:l.join(""),noDisableItems:t.noDisableItems,click:function(e,n){if(e.stop(),t.menu){var i=t.menu.name;if(t.hideMenu(),i===n)return}t.clickToolbar(n)}}),u=_removeUnit(i)-c.div.height(),d=t.edit=_edit({height:u>0&&_removeUnit(i)>t.minHeight?u:t.minHeight,src:a,srcElement:t.srcElement,designMode:t.designMode,themesPath:t.themesPath,bodyClass:t.bodyClass,cssPath:t.cssPath,cssData:t.cssData,beforeGetHtml:function(e){return e=t.beforeGetHtml(e),e=_removeBookmarkTag(_removeTempTag(e)),_formatHtml(e,t.filterMode?t.htmlTags:null,t.urlType,t.wellFormatMode,t.indentChar)},beforeSetHtml:function(e){return e=_formatHtml(e,t.filterMode?t.htmlTags:null,"",!1),t.beforeSetHtml(e)},afterSetHtml:function(){t.edit=d=this,t.afterSetHtml()},afterCreate:function(){if(t.edit=d=this,t.cmd=d.cmd,t._docMousedownFn=function(e){t.menu&&t.hideMenu()},K(d.doc,document).mousedown(t._docMousedownFn),_bindContextmenuEvent.call(t),_bindNewlineEvent.call(t),_bindTabEvent.call(t),_bindFocusEvent.call(t),d.afterChange((function(e){d.designMode&&(t.updateState(),t.addBookmark(),t.options.afterChange&&t.options.afterChange.call(t))})),d.textarea.keyup((function(e){e.ctrlKey||e.altKey||!_INPUT_KEY_MAP[e.which]||t.options.afterChange&&t.options.afterChange.call(t)})),t.readonlyMode&&t.readonly(),t.isCreated=!0,""===t.initContent&&(t.initContent=t.html()),t._undoStack.length>0){var e=t._undoStack.pop();e.start&&(t.html(e.html),d.cmd.range.moveToBookmark(e),t.select())}t.afterCreate(),t.options.afterCreate&&t.options.afterCreate.call(t)}});function h(){0!==s.height()?t.resize(n,i,!1):setTimeout(h,100)}return s.removeClass("statusbar").addClass("ke-statusbar").append('<span class="ke-inline-block ke-statusbar-center-icon"></span>').append('<span class="ke-inline-block ke-statusbar-right-icon"></span>'),t._fullscreenResizeHandler&&(K(window).unbind("resize",t._fullscreenResizeHandler),t._fullscreenResizeHandler=null),h(),e?(t._fullscreenResizeHandler=function(e){t.isCreated&&t.resize(_docElement().clientWidth,_docElement().clientHeight,!1)},K(window).bind("resize",t._fullscreenResizeHandler),c.select("fullscreen"),s.first().css("visibility","hidden"),s.last().css("visibility","hidden")):(_GECKO&&K(window).bind("scroll",(function(e){t._scrollPos=_getScrollPos()})),t.resizeType>0?_drag({moveEl:r,clickEl:s,moveFn:function(e,n,i,r,o,a){r+=a,t.resize(null,r)}}):s.first().css("visibility","hidden"),2===t.resizeType?_drag({moveEl:r,clickEl:s.last(),moveFn:function(e,n,i,r,o,a){i+=o,r+=a,t.resize(i,r)}}):s.last().css("visibility","hidden")),t},remove:function(){var t=this;return t.isCreated?(t.beforeRemove(),t.srcElement.data("kindeditor",""),t.menu&&t.hideMenu(),_each(t.dialogs,(function(){t.hideDialog()})),K(document).unbind("mousedown",t._docMousedownFn),t.toolbar.remove(),t.edit.remove(),t.statusbar.last().unbind(),t.statusbar.unbind(),t.container.remove(),t.container=t.toolbar=t.edit=t.menu=null,t.dialogs=[],t.isCreated=!1,t):t},resize:function(t,e,n){var i=this;return n=_undef(n,!0),t&&(/%/.test(t)||(t=_removeUnit(t),t=t<i.minWidth?i.minWidth:t),i.container.css("width",_addUnit(t)),n&&(i.width=_addUnit(t))),e&&(e=_removeUnit(e),editHeight=_removeUnit(e)-i.toolbar.div.height()-i.statusbar.height(),editHeight=editHeight<i.minHeight?i.minHeight:editHeight,i.edit.setHeight(editHeight),n&&(i.height=_addUnit(e))),i},select:function(){return this.isCreated&&this.cmd.select(),this},html:function(t){var e=this;return t===undefined?e.isCreated?e.edit.html():_elementVal(e.srcElement):(e.isCreated?e.edit.html(t):_elementVal(e.srcElement,t),e.isCreated&&e.cmd.selection(),e)},fullHtml:function(){return this.isCreated?this.edit.html(undefined,!0):""},text:function(t){var e=this;return t===undefined?_trim(e.html().replace(/<(?!img|embed).*?>/gi,"").replace(/ /gi," ")):e.html(_escape(t))},isEmpty:function(){return""===_trim(this.text().replace(/\r\n|\n|\r/,""))},isDirty:function(){return _trim(this.initContent.replace(/\r\n|\n|\r|t/g,""))!==_trim(this.html().replace(/\r\n|\n|\r|t/g,""))},selectedHtml:function(){var t=this.isCreated?this.cmd.range.html():"";return t=_removeBookmarkTag(_removeTempTag(t)),t},count:function(t){var e=this;return t=(t||"html").toLowerCase(),"html"===t?e.html().length:"text"===t?e.text().replace(/<(?:img|embed).*?>/gi,"K").replace(/\r\n|\n|\r/g,"").length:0},exec:function(t){t=t.toLowerCase();var e=this,n=e.cmd,i=_inArray(t,"selectall,copy,paste,print".split(","))<0;return i&&e.addBookmark(!1),n[t].apply(n,_toArray(arguments,1)),i&&(e.updateState(),e.addBookmark(!1),e.options.afterChange&&e.options.afterChange.call(e)),e},insertHtml:function(t,e){return this.isCreated?(t=this.beforeSetHtml(t),this.exec("inserthtml",t,e),this):this},appendHtml:function(t){if(this.html(this.html()+t),this.isCreated){var e=this.cmd;e.range.selectNodeContents(e.doc.body).collapse(!1),e.select()}return this},sync:function(){return _elementVal(this.srcElement,this.html()),this},focus:function(){return this.isCreated?this.edit.focus():this.srcElement[0].focus(),this},blur:function(){return this.isCreated?this.edit.blur():this.srcElement[0].blur(),this},addBookmark:function(t){t=_undef(t,!0);var e,n=this,i=n.edit,r=i.doc.body,o=_removeTempTag(r.innerHTML);if(t&&n._undoStack.length>0){var a=n._undoStack[n._undoStack.length-1];if(Math.abs(o.length-_removeBookmarkTag(a.html).length)<n.minChangeSize)return n}if(i.designMode&&!n._firstAddBookmark){var s=n.cmd.range;e=s.createBookmark(!0),e.html=_removeTempTag(r.innerHTML),s.moveToBookmark(e)}else e={html:o};return n._firstAddBookmark=!1,_addBookmarkToStack(n._undoStack,e),n},undo:function(){return _undoToRedo.call(this,this._undoStack,this._redoStack)},redo:function(){return _undoToRedo.call(this,this._redoStack,this._undoStack)},fullscreen:function(t){return this.fullscreenMode=t===undefined?!this.fullscreenMode:t,this.addBookmark(!1),this.remove().create()},readonly:function(t){t=_undef(t,!0);var e=this,n=e.edit,i=n.doc;e.designMode?e.toolbar.disableAll(t,[]):_each(e.noDisableItems,(function(){e.toolbar[t?"disable":"enable"](this)})),_IE?i.body.contentEditable=!t:i.designMode=t?"off":"on",n.textarea[0].disabled=t},createMenu:function(t){var e=this,n=t.name,i=e.toolbar.get(n),r=i.pos();return t.x=r.x,t.y=r.y+i.height(),t.z=e.options.zIndex,t.shadowMode=_undef(t.shadowMode,e.shadowMode),t.selectedColor!==undefined?(t.cls="ke-colorpicker-"+e.themeType,t.noColor=e.lang("noColor"),e.menu=_colorpicker(t)):(t.cls="ke-menu-"+e.themeType,t.centerLineMode=!1,e.menu=_menu(t)),e.menu},hideMenu:function(){return this.menu.remove(),this.menu=null,this},hideContextmenu:function(){return this.contextmenu.remove(),this.contextmenu=null,this},createDialog:function(t){var e=this;t.name;if(t.z=e.options.zIndex,t.shadowMode=_undef(t.shadowMode,e.shadowMode),t.closeBtn=_undef(t.closeBtn,{name:e.lang("close"),click:function(t){e.hideDialog(),_IE&&e.cmd&&e.cmd.select()}}),t.noBtn=_undef(t.noBtn,{name:e.lang(t.yesBtn?"no":"close"),click:function(t){e.hideDialog(),_IE&&e.cmd&&e.cmd.select()}}),"page"!=e.dialogAlignType&&(t.alignEl=e.container),t.cls="ke-dialog-"+e.themeType,e.dialogs.length>0){var n=e.dialogs[0],i=e.dialogs[e.dialogs.length-1];n.setMaskIndex(i.z+2),t.z=i.z+3,t.showMask=!1}var r=_dialog(t);return e.dialogs.push(r),r},hideDialog:function(){var t=this;if(t.dialogs.length>0&&t.dialogs.pop().remove(),t.dialogs.length>0){var e=t.dialogs[0],n=t.dialogs[t.dialogs.length-1];e.setMaskIndex(n.z-1)}return t},errorDialog:function(t){var e=this,n=e.createDialog({width:750,title:e.lang("uploadError"),body:'<div style="padding:10px 20px;"><iframe frameborder="0" style="width:708px;height:400px;"></iframe></div>'}),i=K("iframe",n.div),r=K.iframeDoc(i);return r.open(),r.write(t),r.close(),K(r.body).css("background-color","#FFF"),i[0].contentWindow.focus(),e}},_instances=[],K.remove=function(t){_eachEditor(t,(function(t){this.remove(),_instances.splice(t,1)}))},K.sync=function(t){_eachEditor(t,(function(){this.sync()}))},K.html=function(t,e){_eachEditor(t,(function(){this.html(e)}))},K.insertHtml=function(t,e){_eachEditor(t,(function(){this.insertHtml(e)}))},K.appendHtml=function(t,e){_eachEditor(t,(function(){this.appendHtml(e)}))},_IE&&_V<7&&_nativeCommand(document,"BackgroundImageCache",!0),K.EditorClass=KEditor,K.editor=_editor,K.create=_create,K.instances=_instances,K.plugin=_plugin,K.lang=_lang,_plugin("core",(function(t){var e=this,n={undo:"Z",redo:"Y",bold:"B",italic:"I",underline:"U",print:"P",selectall:"A"};if(e.afterSetHtml((function(){e.options.afterChange&&e.options.afterChange.call(e)})),e.afterCreate((function(){if("form"==e.syncType){var n=t(e.srcElement),i=!1;while(n=n.parent())if("form"==n.name){i=!0;break}if(i){n.bind("submit",(function(n){e.sync(),t(window).bind("unload",(function(){e.edit.textarea.remove()}))}));var r=t('[type="reset"]',n);r.click((function(){e.html(e.initContent),e.cmd.selection()})),e.beforeRemove((function(){n.unbind(),r.unbind()}))}}})),e.clickToolbar("source",(function(){e.edit.designMode?(e.toolbar.disableAll(!0),e.edit.design(!1),e.toolbar.select("source")):(e.toolbar.disableAll(!1),e.edit.design(!0),e.toolbar.unselect("source"),_GECKO?setTimeout((function(){e.cmd.selection()}),0):e.cmd.selection()),e.designMode=e.edit.designMode})),e.afterCreate((function(){e.designMode||e.toolbar.disableAll(!0).select("source")})),e.clickToolbar("fullscreen",(function(){e.fullscreen()})),e.fullscreenShortcut){var i=!1;e.afterCreate((function(){if(t(e.edit.doc,e.edit.textarea).keyup((function(t){27==t.which&&setTimeout((function(){e.fullscreen()}),0)})),i){if(_IE&&!e.designMode)return;e.focus()}i||(i=!0)}))}_each("undo,redo".split(","),(function(t,i){n[i]&&e.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){e.clickToolbar(i)}))})),e.clickToolbar(i,(function(){e[i]()}))})),e.clickToolbar("formatblock",(function(){var t=e.lang("formatblock.formatBlock"),n={h1:28,h2:24,h3:18,H4:14,p:12},i=e.cmd.val("formatblock"),r=e.createMenu({name:"formatblock",width:"en"==e.langType?200:150});_each(t,(function(t,o){var a="font-size:"+n[t]+"px;";"h"===t.charAt(0)&&(a+="font-weight:bold;"),r.addItem({title:'<span style="'+a+'" unselectable="on">'+o+"</span>",height:n[t]+12,checked:i===t||i===o,click:function(){e.select().exec("formatblock","<"+t+">").hideMenu()}})}))})),e.clickToolbar("fontname",(function(){var t=e.cmd.val("fontname"),n=e.createMenu({name:"fontname",width:150});_each(e.lang("fontname.fontName"),(function(i,r){n.addItem({title:'<span style="font-family: '+i+';" unselectable="on">'+r+"</span>",checked:t===i.toLowerCase()||t===r.toLowerCase(),click:function(){e.exec("fontname",i).hideMenu()}})}))})),e.clickToolbar("fontsize",(function(){var t=e.cmd.val("fontsize"),n=e.createMenu({name:"fontsize",width:150});_each(e.fontSizeTable,(function(i,r){n.addItem({title:'<span style="font-size:'+r+';" unselectable="on">'+r+"</span>",height:_removeUnit(r)+12,checked:t===r,click:function(){e.exec("fontsize",r).hideMenu()}})}))})),_each("forecolor,hilitecolor".split(","),(function(t,n){e.clickToolbar(n,(function(){e.createMenu({name:n,selectedColor:e.cmd.val(n)||"default",colors:e.colorTable,click:function(t){e.exec(n,t).hideMenu()}})}))})),_each("cut,copy,paste".split(","),(function(t,n){e.clickToolbar(n,(function(){e.focus();try{e.exec(n,null)}catch(t){alert(e.lang(n+"Error"))}}))})),e.clickToolbar("about",(function(){var t='<div style="margin:20px;"><div>KindEditor '+_VERSION+'</div><div>Copyright © <a href="http://www.kindsoft.net/" target="_blank">kindsoft.net</a> All rights reserved.</div></div>';e.createDialog({name:"about",width:350,title:e.lang("about"),body:t})})),e.plugin.getSelectedLink=function(){return e.cmd.commonAncestor("a")},e.plugin.getSelectedImage=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return!/^ke-\w+$/i.test(t[0].className)}))},e.plugin.getSelectedFlash=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-flash"==t[0].className}))},e.plugin.getSelectedMedia=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-media"==t[0].className||"ke-rm"==t[0].className}))},e.plugin.getSelectedAnchor=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-anchor"==t[0].className}))},_each("link,image,flash,media,anchor".split(","),(function(t,n){var i=n.charAt(0).toUpperCase()+n.substr(1);_each("edit,delete".split(","),(function(t,r){e.addContextmenu({title:e.lang(r+i),click:function(){e.loadPlugin(n,(function(){e.plugin[n][r](),e.hideMenu()}))},cond:e.plugin["getSelected"+i],width:150,iconClass:"edit"==r?"ke-icon-"+n:undefined})})),e.addContextmenu({title:"-"})})),e.plugin.getSelectedTable=function(){return e.cmd.commonAncestor("table")},e.plugin.getSelectedRow=function(){return e.cmd.commonAncestor("tr")},e.plugin.getSelectedCell=function(){return e.cmd.commonAncestor("td")},_each("prop,cellprop,colinsertleft,colinsertright,rowinsertabove,rowinsertbelow,rowmerge,colmerge,rowsplit,colsplit,coldelete,rowdelete,insert,delete".split(","),(function(t,n){var i=_inArray(n,["prop","delete"])<0?e.plugin.getSelectedCell:e.plugin.getSelectedTable;e.addContextmenu({title:e.lang("table"+n),click:function(){e.loadPlugin("table",(function(){e.plugin.table[n](),e.hideMenu()}))},cond:i,width:170,iconClass:"ke-icon-table"+n})})),e.addContextmenu({title:"-"}),_each("selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript,hr,print,bold,italic,underline,strikethrough,removeformat,unlink".split(","),(function(t,i){n[i]&&e.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){e.cmd.selection(),e.clickToolbar(i)}))})),e.clickToolbar(i,(function(){e.focus().exec(i,null)}))})),e.afterCreate((function(){var n,i,r,o=e.edit.doc,a="__kindeditor_paste__",s=!1;function l(){n.range.moveToBookmark(i),n.select(),_WEBKIT&&(t("div."+a,r).each((function(){t(this).after("<br />").remove(!0)})),t("span.Apple-style-span",r).remove(!0),t("span.Apple-tab-span",r).remove(!0),t("span[style]",r).each((function(){"nowrap"==t(this).css("white-space")&&t(this).remove(!0)})),t("meta",r).remove());var o=r[0].innerHTML;r.remove(),""!==o&&(_WEBKIT&&(o=o.replace(/(<br>)\1/gi,"$1")),2===e.pasteType&&(o=o.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),/schemas-microsoft-com|worddocument|mso-\w+/i.test(o)?o=_clearMsWord(o,e.filterMode?e.htmlTags:t.options.htmlTags):(o=_formatHtml(o,e.filterMode?e.htmlTags:null),o=e.beforeSetHtml(o))),1===e.pasteType&&(o=o.replace(/ /gi," "),o=o.replace(/\n\s*\n/g,"\n"),o=o.replace(/<br[^>]*>/gi,"\n"),o=o.replace(/<\/p><p[^>]*>/gi,"\n"),o=o.replace(/<[^>]+>/g,""),o=o.replace(/ {2}/g," "),"p"==e.newlineTag?/\n/.test(o)&&(o=o.replace(/^/,"<p>").replace(/$/,"<br /></p>").replace(/\n/g,"<br /></p><p>")):o=o.replace(/\n/g,"<br />$&")),e.insertHtml(o,!0))}t(o.body).bind("paste",(function(c){if(0!==e.pasteType){if(!s){if(s=!0,t("div."+a,o).remove(),n=e.cmd.selection(),i=n.range.createBookmark(),r=t('<div class="'+a+'"></div>',o).css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",left:"-1981px",top:t(i.start).pos().y+"px","white-space":"nowrap"}),t(o.body).append(r),_IE){var u=n.range.get(!0);u.moveToElementText(r[0]),u.select(),u.execCommand("paste"),c.preventDefault()}else n.range.selectNodeContents(r[0]),n.select(),r[0].tabIndex=-1,r[0].focus();setTimeout((function(){l(),s=!1}),0)}}else c.stop()}))})),e.beforeGetHtml((function(t){return _IE&&_V<=8&&(t=t.replace(/<div\s+[^>]*data-ke-input-tag="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e){return unescape(e)})),t=t.replace(/(<input)((?:\s+[^>]*)?>)/gi,(function(t,e,n){return/\s+type="[^"]+"/i.test(t)?t:e+' type="text"'+n}))),t.replace(/(<(?:noscript|noscript\s[^>]*)>)([\s\S]*?)(<\/noscript>)/gi,(function(t,e,n,i){return e+_unescape(n).replace(/\s+/g," ")+i})).replace(/<img[^>]*class="?ke-(flash|rm|media)"?[^>]*>/gi,(function(t){var e=_getAttrList(t),n=_getCssList(e.style||""),i=_mediaAttrs(e["data-ke-tag"]),r=_undef(n.width,""),o=_undef(n.height,"");return/px/i.test(r)&&(r=_removeUnit(r)),/px/i.test(o)&&(o=_removeUnit(o)),i.width=_undef(e.width,r),i.height=_undef(e.height,o),_mediaEmbed(i)})).replace(/<img[^>]*class="?ke-anchor"?[^>]*>/gi,(function(t){var e=_getAttrList(t);return'<a name="'+unescape(e["data-ke-name"])+'"></a>'})).replace(/<div\s+[^>]*data-ke-script-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e,n){return"<script"+unescape(e)+">"+unescape(n)+"<\/script>"})).replace(/<div\s+[^>]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e,n){return"<noscript"+unescape(e)+">"+unescape(n)+"</noscript>"})).replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/gi,(function(t,e,n,i){return t=t.replace(/(\s+(?:href|src)=")[^"]*(")/i,(function(t,e,i){return e+_unescape(n)+i})),t=t.replace(/\s+data-ke-src="[^"]*"/i,""),t})).replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/gi,(function(t,e,n){return e+n}))})),e.beforeSetHtml((function(t){return _IE&&_V<=8&&(t=t.replace(/<input[^>]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/gi,(function(t){var e=_getAttrList(t),n=_getCssList(e.style||"");return"none"==n.display?'<div class="ke-display-none" data-ke-input-tag="'+escape(t)+'"></div>':t}))),t.replace(/<embed[^>]*type="([^"]+)"[^>]*>(?:<\/embed>)?/gi,(function(t){var n=_getAttrList(t);return n.src=_undef(n.src,""),n.width=_undef(n.width,0),n.height=_undef(n.height,0),_mediaImg(e.themesPath+"common/blank.gif",n)})).replace(/<a[^>]*name="([^"]+)"[^>]*>(?:<\/a>)?/gi,(function(t){var n=_getAttrList(t);return n.href!==undefined?t:'<img class="ke-anchor" src="'+e.themesPath+'common/anchor.gif" data-ke-name="'+escape(n.name)+'" />'})).replace(/<script([^>]*)>([\s\S]*?)<\/script>/gi,(function(t,e,n){return'<div class="ke-script" data-ke-script-attr="'+escape(e)+'">'+escape(n)+"</div>"})).replace(/<noscript([^>]*)>([\s\S]*?)<\/noscript>/gi,(function(t,e,n){return'<div class="ke-noscript" data-ke-noscript-attr="'+escape(e)+'">'+escape(n)+"</div>"})).replace(/(<[^>]*)(href|src)="([^"]*)"([^>]*>)/gi,(function(t,e,n,i,r){return t.match(/\sdata-ke-src="[^"]*"/i)||(t=e+n+'="'+i+'" data-ke-src="'+_escape(i)+'"'+r),t})).replace(/(<[^>]+\s)(on\w+="[^"]*"[^>]*>)/gi,(function(t,e,n){return e+"data-ke-"+n})).replace(/<table[^>]*\s+border="0"[^>]*>/gi,(function(t){return t.indexOf("ke-zeroborder")>=0?t:_addClassToTag(t,"ke-zeroborder")}))}))}))}function _isArray(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function _isFunction(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)}function _inArray(t,e){for(var n=0,i=e.length;n<i;n++)if(t===e[n])return n;return-1}function _each(t,e){if(_isArray(t)){for(var n=0,i=t.length;n<i;n++)if(!1===e.call(t[n],n,t[n]))break}else for(var r in t)if(t.hasOwnProperty(r)&&!1===e.call(t[r],r,t[r]))break}function _trim(t){return t.replace(/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"")}function _inString(t,e,n){return n=n===undefined?",":n,(n+e+n).indexOf(n+t+n)>=0}function _addUnit(t,e){return e=e||"px",t&&/^-?\d+(?:\.\d+)?$/.test(t)?t+e:t}function _removeUnit(t){var e;return t&&(e=/(\d+)/.exec(t))?parseInt(e[1],10):0}function _escape(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function _unescape(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}function _toCamel(t){var e=t.split("-");return t="",_each(e,(function(e,n){t+=e>0?n.charAt(0).toUpperCase()+n.substr(1):n})),t}function _toHex(t){function e(t){var e=parseInt(t,10).toString(16).toUpperCase();return e.length>1?e:"0"+e}return t.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/gi,(function(t,n,i,r){return"#"+e(n)+e(i)+e(r)}))}function _toMap(t,e){e=e===undefined?",":e;var n,i={},r=_isArray(t)?t:t.split(e);return _each(r,(function(t,e){if(n=/^(\d+)\.\.(\d+)$/.exec(e))for(var r=parseInt(n[1],10);r<=parseInt(n[2],10);r++)i[r.toString()]=!0;else i[e]=!0})),i}function _toArray(t,e){return Array.prototype.slice.call(t,e||0)}function _undef(t,e){return t===undefined?e:t}function _invalidUrl(t){return!t||/[<>"]/.test(t)}function _addParam(t,e){return t.indexOf("?")>=0?t+"&"+e:t+"?"+e}function _extend(t,e,n){var i;if(n||(n=e,e=null),e){var r=function(){};r.prototype=e.prototype,i=new r,_each(n,(function(t,e){i[t]=e}))}else i=n;i.constructor=t,t.prototype=i,t.parent=e?e.prototype:null}function _json(text){var match;(match=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(text))&&(text=match[0]);var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+text+")");throw"JSON parse error"}function _getBasePath(){for(var t,e=document.getElementsByTagName("script"),n=0,i=e.length;n<i;n++)if(t=e[n].src||"",/kindeditor[\w\-\.]*\.js/.test(t))return t.substring(0,t.lastIndexOf("/")+1);return""}function _bindEvent(t,e,n){t.addEventListener?t.addEventListener(e,n,_useCapture):t.attachEvent&&t.attachEvent("on"+e,n)}function _unbindEvent(t,e,n){t.removeEventListener?t.removeEventListener(e,n,_useCapture):t.detachEvent&&t.detachEvent("on"+e,n)}function KEvent(t,e){this.init(t,e)}function _getId(t){return t[_eventExpendo]||null}function _setId(t){return t[_eventExpendo]=++_eventId,_eventId}function _removeId(t){try{delete t[_eventExpendo]}catch(e){t.removeAttribute&&t.removeAttribute(_eventExpendo)}}function _bind(t,e,n){if(e.indexOf(",")>=0)_each(e.split(","),(function(){_bind(t,this,n)}));else{var i=_getId(t);i||(i=_setId(t)),_eventData[i]===undefined&&(_eventData[i]={});var r=_eventData[i][e];r&&r.length>0?_unbindEvent(t,e,r[0]):(_eventData[i][e]=[],_eventData[i].el=t),r=_eventData[i][e],0===r.length&&(r[0]=function(e){var n=e?new KEvent(t,e):undefined;_each(r,(function(e,i){e>0&&i&&i.call(t,n)}))}),_inArray(n,r)<0&&r.push(n),_bindEvent(t,e,r[0])}}function _unbind(t,e,n){if(e&&e.indexOf(",")>=0)_each(e.split(","),(function(){_unbind(t,this,n)}));else{var i=_getId(t);if(i)if(e!==undefined){if(_eventData[i]){var r=_eventData[i][e];if(r&&r.length>0){n===undefined?(_unbindEvent(t,e,r[0]),delete _eventData[i][e]):(_each(r,(function(t,e){t>0&&e===n&&r.splice(t,1)})),1==r.length&&(_unbindEvent(t,e,r[0]),delete _eventData[i][e]));var o=0;_each(_eventData[i],(function(){o++})),o<2&&(delete _eventData[i],_removeId(t))}}}else i in _eventData&&(_each(_eventData[i],(function(e,n){"el"!=e&&n.length>0&&_unbindEvent(t,e,n[0])})),delete _eventData[i],_removeId(t))}}function _fire(t,e){if(e.indexOf(",")>=0)_each(e.split(","),(function(){_fire(t,this)}));else{var n=_getId(t);if(n){var i=_eventData[n][e];_eventData[n]&&i&&i.length>0&&i[0]()}}}function _ctrl(t,e,n){e=/^\d{2,}$/.test(e)?e:e.toUpperCase().charCodeAt(0),_bind(t,"keydown",(function(i){!i.ctrlKey||i.which!=e||i.shiftKey||i.altKey||(n.call(t),i.stop())}))}function _ready(t){if(_readyFinished)t(KindEditor);else{var e=!1;if(document.addEventListener)_bind(document,"DOMContentLoaded",i);else if(document.attachEvent){_bind(document,"readystatechange",o);var n=!1;try{n=null==window.frameElement}catch(a){}document.documentElement.doScroll&&n&&r()}_bind(window,"load",i)}function i(){e||(e=!0,t(KindEditor),_readyFinished=!0)}function r(){if(!e){try{document.documentElement.doScroll("left")}catch(a){return void setTimeout(r,100)}i()}}function o(){"complete"===document.readyState&&i()}}function _getCssList(t){var e,n={},i=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g;while(e=i.exec(t)){var r=_trim(e[1].toLowerCase()),o=_trim(_toHex(e[2]));n[r]=o}return n}function _getAttrList(t){var e,n={},i=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g;while(e=i.exec(t)){var r=(e[1]||e[2]||e[4]||e[6]).toLowerCase(),o=(e[2]?e[3]:e[4]?e[5]:e[7])||"";n[r]=o}return n}function _addClassToTag(t,e){return t=/\s+class\s*=/.test(t)?t.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,(function(t,n,i,r){return(" "+i+" ").indexOf(" "+e+" ")<0?""===i?n+e+r:n+i+" "+e+r:t})):t.substr(0,t.length-1)+' class="'+e+'">',t}function _formatCss(t){var e="";return _each(_getCssList(t),(function(t,n){e+=t+":"+n+";"})),e}function _formatUrl(t,e,n,i){if(e=_undef(e,"").toLowerCase(),"data:"!=t.substr(0,5)&&(t=t.replace(/([^:])\/\//g,"$1/")),_inArray(e,["absolute","relative","domain"])<0)return t;if(n=n||location.protocol+"//"+location.host,i===undefined){var r=location.pathname.match(/^(\/.*)\//);i=r?r[1]:""}var o;if(o=/^(\w+:\/\/[^\/]*)/.exec(t)){if(o[1]!==n)return t}else if(/^\w+:/.test(t))return t;function a(t){for(var e=t.split("/"),n=[],i=0,r=e.length;i<r;i++){var o=e[i];".."==o?n.length>0&&n.pop():""!==o&&"."!=o&&n.push(o)}return"/"+n.join("/")}function s(e,n){if(t.substr(0,e.length)===e){for(var r=[],a=0;a<n;a++)r.push("..");var l=".";return r.length>0&&(l+="/"+r.join("/")),"/"==i&&(l+="/"),l+t.substr(e.length)}if(o=/^(.*)\//.exec(e))return s(o[1],++n)}return/^\//.test(t)?t=n+a(t.substr(1)):/^\w+:\/\//.test(t)||(t=n+a(i+"/"+t)),"relative"===e?t=s(n+i,0).substr(2):"absolute"===e&&t.substr(0,n.length)===n&&(t=t.substr(n.length)),t}function _formatHtml(t,e,n,i,r){null==t&&(t=""),n=n||"",i=_undef(i,!1),r=_undef(r,"\t");var o="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,(function(t,e,n,i){return e+n.replace(/<(?:br|br\s[^>]*)>/gi,"\n")+i})),t=t.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/gi,"</p>"),t=t.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/gi,"$1<br />$2"),t=t.replace(/\u200B/g,""),t=t.replace(/\u00A9/g,"©"),t=t.replace(/\u00AE/g,"®"),t=t.replace(/\u2003/g," "),t=t.replace(/\u3000/g," "),t=t.replace(/<[^>]+/g,(function(t){return t.replace(/\s+/g," ")}));var a={};e&&(_each(e,(function(t,e){for(var n=t.split(","),i=0,r=n.length;i<r;i++)a[n[i]]=_toMap(e)})),a.script||(t=t.replace(/(<(?:script|script\s[^>]*)>)([\s\S]*?)(<\/script>)/gi,"")),a.style||(t=t.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/gi,"")));var s=/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g,l=[];return t=t.replace(s,(function(t,s,c,u,d,h,p){var f=t,m=s||"",g=c||"",v=u.toLowerCase(),b=d||"",_=h?" "+h:"",y=p||"";if(e&&!a[v])return"";if(""===_&&_SINGLE_TAG_MAP[v]&&(_=" /"),_INLINE_TAG_MAP[v]&&(m&&(m=" "),y&&(y=" ")),_PRE_TAG_MAP[v]&&(g?y="\n":m="\n"),i&&"br"==v&&(y="\n"),_BLOCK_TAG_MAP[v]&&!_PRE_TAG_MAP[v])if(i){g&&l.length>0&&l[l.length-1]===v?l.pop():l.push(v),m="\n",y="\n";for(var w=0,x=g?l.length:l.length-1;w<x;w++)m+=r,g||(y+=r);_?l.pop():g||(y+=r)}else m=y="";if(""!==b){var k=_getAttrList(f);if("font"===v){var S={},D="";_each(k,(function(t,e){"color"===t&&(S.color=e,delete k[t]),"size"===t&&(S["font-size"]=o[parseInt(e,10)-1]||"",delete k[t]),"face"===t&&(S["font-family"]=e,delete k[t]),"style"===t&&(D=e)})),D&&!/;$/.test(D)&&(D+=";"),_each(S,(function(t,e){""!==e&&(/\s/.test(e)&&(e="'"+e+"'"),D+=t+":"+e+";")})),k.style=D}_each(k,(function(t,i){if(_FILL_ATTR_MAP[t]&&(k[t]=t),_inArray(t,["src","href"])>=0&&(k[t]=_formatUrl(i,n)),(e&&"style"!==t&&!a[v]["*"]&&!a[v][t]||"body"===v&&"contenteditable"===t||/^kindeditor_\d+$/.test(t))&&delete k[t],"style"===t&&""!==i){var r=_getCssList(i);_each(r,(function(t,n){!e||a[v].style||a[v]["."+t]||delete r[t]}));var o="";_each(r,(function(t,e){o+=t+":"+e+";"})),k.style=o}})),b="",_each(k,(function(t,e){"style"===t&&""===e||(e=e.replace(/"/g,"""),b+=" "+t+'="'+e+'"')}))}return"font"===v&&(v="span"),m+"<"+g+v+b+_+">"+y})),t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,(function(t,e,n,i){return e+n.replace(/\n/g,'<span id="__kindeditor_pre_newline__">\n')+i})),t=t.replace(/\n\s*\n/g,"\n"),t=t.replace(/<span id="__kindeditor_pre_newline__">\n/g,"\n"),_trim(t)}function _clearMsWord(t,e){return t=t.replace(/<meta[\s\S]*?>/gi,"").replace(/<![\s\S]*?>/gi,"").replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<w:[^>]+>[\s\S]*?<\/w:[^>]+>/gi,"").replace(/<o:[^>]+>[\s\S]*?<\/o:[^>]+>/gi,"").replace(/<xml>[\s\S]*?<\/xml>/gi,"").replace(/<(?:table|td)[^>]*>/gi,(function(t){return t.replace(/border-bottom:([#\w\s]+)/gi,"border:$1")})),_formatHtml(t,e)}function _mediaType(t){return/\.(rm|rmvb)(\?|$)/i.test(t)?"audio/x-pn-realaudio-plugin":/\.(swf|flv)(\?|$)/i.test(t)?"application/x-shockwave-flash":"video/x-ms-asf-plugin"}function _mediaClass(t){return/realaudio/i.test(t)?"ke-rm":/flash/i.test(t)?"ke-flash":"ke-media"}function _mediaAttrs(t){return _getAttrList(unescape(t))}function _mediaEmbed(t){var e="<embed ";return _each(t,(function(t,n){e+=t+'="'+n+'" '})),e+="/>",e}function _mediaImg(t,e){var n=e.width,i=e.height,r=e.type||_mediaType(e.src),o=_mediaEmbed(e),a="";/\D/.test(n)?a+="width:"+n+";":n>0&&(a+="width:"+n+"px;"),/\D/.test(i)?a+="height:"+i+";":i>0&&(a+="height:"+i+"px;");var s='<img class="'+_mediaClass(r)+'" src="'+t+'" ';return""!==a&&(s+='style="'+a+'" '),s+='data-ke-tag="'+escape(o)+'" alt="" />',s}function _tmpl(t,e){var n=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return e?n(e):n}function _contains(t,e){if(9==t.nodeType&&9!=e.nodeType)return!0;while(e=e.parentNode)if(e==t)return!0;return!1}function _getAttr(t,e){e=e.toLowerCase();var n=null;if(_GET_SET_ATTRIBUTE||"script"==t.nodeName.toLowerCase())try{n=t.getAttribute(e,2)}catch(o){n=t.getAttribute(e,1)}else{var i=t.ownerDocument.createElement("div");i.appendChild(t.cloneNode(!1));var r=_getAttrList(_unescape(i.innerHTML));e in r&&(n=r[e])}return"style"===e&&null!==n&&(n=_formatCss(n)),n}function _queryAll(t,e){var n=t.split(",");if(n.length>1){var i=[];return _each(n,(function(){_each(_queryAll(this,e),(function(){_inArray(this,i)<0&&i.push(this)}))})),i}function r(t){return"string"!=typeof t?t:t.replace(/([^\w\-])/g,"\\$1")}function o(t){return t.replace(/\\/g,"")}function a(t,e){return"*"===t||t.toLowerCase()===r(e.toLowerCase())}function s(t,e,n){var i=[],r=n.ownerDocument||n,s=r.getElementById(o(t));return s&&a(e,s.nodeName)&&_contains(n,s)&&i.push(s),i}function l(t,e,n){var i,r,s,l,c=n.ownerDocument||n,u=[];if(n.getElementsByClassName)for(i=n.getElementsByClassName(o(t)),r=0,s=i.length;r<s;r++)l=i[r],a(e,l.nodeName)&&u.push(l);else if(c.querySelectorAll)for(i=c.querySelectorAll(("#document"!==n.nodeName?n.nodeName+" ":"")+e+"."+t),r=0,s=i.length;r<s;r++)l=i[r],_contains(n,l)&&u.push(l);else for(i=n.getElementsByTagName(e),t=" "+t+" ",r=0,s=i.length;r<s;r++)if(l=i[r],1==l.nodeType){var d=l.className;d&&(" "+d+" ").indexOf(t)>-1&&u.push(l)}return u}function c(t,e,n){for(var i,r=[],s=n.ownerDocument||n,l=s.getElementsByName(o(t)),c=0,u=l.length;c<u;c++)i=l[c],a(e,i.nodeName)&&_contains(n,i)&&null!==i.getAttribute("name")&&r.push(i);return r}function u(t,e,n,i){for(var o,a=[],s=i.getElementsByTagName(n),l=0,c=s.length;l<c;l++)o=s[l],1==o.nodeType&&(null===e?null!==_getAttr(o,t)&&a.push(o):e===r(_getAttr(o,t))&&a.push(o));return a}function d(t,e){var n,i=[];n=/^((?:\\.|[^.#\s\[<>])+)/.exec(t);var r=n?n[1]:"*";if(n=/#((?:[\w\-]|\\.)+)$/.exec(t))i=s(n[1],r,e);else if(n=/\.((?:[\w\-]|\\.)+)$/.exec(t))i=l(n[1],r,e);else if(n=/\[((?:[\w\-]|\\.)+)\]/.exec(t))i=u(n[1].toLowerCase(),null,r,e);else if(n=/\[((?:[\w\-]|\\.)+)\s*=\s*['"]?((?:\\.|[^'"]+)+)['"]?\]/.exec(t)){var o=n[1].toLowerCase(),a=n[2];i="id"===o?s(a,r,e):"class"===o?l(a,r,e):"name"===o?c(a,r,e):u(o,a,r,e)}else for(var d,h=e.getElementsByTagName(r),p=0,f=h.length;p<f;p++)d=h[p],1==d.nodeType&&i.push(d);return i}e=e||document;var h,p=[],f=/((?:\\.|[^\s>])+|[\s>])/g;while(h=f.exec(t))" "!==h[1]&&p.push(h[1]);var m=[];if(1==p.length)return d(p[0],e);var g,v,b,_,y,w,x,k,S,D,C=!1;for(w=0,lenth=p.length;w<lenth;w++)if(g=p[w],">"!==g){if(w>0){for(v=[],x=0,S=m.length;x<S;x++)for(_=m[x],b=d(g,_),k=0,D=b.length;k<D;k++)y=b[k],C?_===y.parentNode&&v.push(y):v.push(y);m=v}else m=d(g,e);if(0===m.length)return[]}else C=!0;return m}function _query(t,e){var n=_queryAll(t,e);return n.length>0?n[0]:null}function _get(t){return K(t)[0]}function _getDoc(t){return t?t.ownerDocument||t.document||t:document}function _getWin(t){if(!t)return window;var e=_getDoc(t);return e.parentWindow||e.defaultView}function _setHtml(t,e){if(1==t.nodeType){var n=_getDoc(t);try{t.innerHTML='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+e;var i=n.getElementById("__kindeditor_temp_tag__");i.parentNode.removeChild(i)}catch(r){K(t).empty(),K("@"+e,n).each((function(){t.appendChild(this)}))}}}function _hasClass(t,e){return _inString(e,t.className," ")}function _setAttr(t,e,n){_IE&&_V<8&&"class"==e.toLowerCase()&&(e="className"),t.setAttribute(e,""+n)}function _removeAttr(t,e){_IE&&_V<8&&"class"==e.toLowerCase()&&(e="className"),_setAttr(t,e,""),t.removeAttribute(e)}function _getNodeName(t){return t&&t.nodeName?t.nodeName.toLowerCase():""}function _computedCss(t,e){var n=_getWin(t),i=_toCamel(e),r="";if(n.getComputedStyle){var o=n.getComputedStyle(t,null);r=o[i]||o.getPropertyValue(e)||t.style[i]}else t.currentStyle&&(r=t.currentStyle[i]||t.style[i]);return r}function _hasVal(t){return!!_VALUE_TAG_MAP[_getNodeName(t)]}function _docElement(t){return t=t||document,_QUIRKS?t.body:t.documentElement}function _docHeight(t){var e=_docElement(t);return Math.max(e.scrollHeight,e.clientHeight)}function _docWidth(t){var e=_docElement(t);return Math.max(e.scrollWidth,e.clientWidth)}function _getScrollPos(t){var e,n;return t=t||document,_IE||_NEWIE||_OPERA?(e=_docElement(t).scrollLeft,n=_docElement(t).scrollTop):(e=_getWin(t).scrollX,n=_getWin(t).scrollY),{x:e,y:n}}function KNode(t){this.init(t)}function _updateCollapsed(t){return t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset,t}function _copyAndDelete(t,e,n){var i=t.doc,r=[];function o(i,o,a){var s,l=i.nodeValue.length;if(e){var c=i.cloneNode(!0);s=o>0?c.splitText(o):c,a<l&&s.splitText(a-o)}if(n){var u=i;if(o>0&&(u=i.splitText(o),t.setStart(i,o)),a<l){var d=u.splitText(a-o);t.setEnd(d,0)}r.push(u)}return s}function a(){n&&t.up().collapse(!0);for(var e=0,i=r.length;e<i;e++){var o=r[e];o.parentNode&&o.parentNode.removeChild(o)}}var s=t.cloneRange().down(),l=-1,c=-1,u=-1,d=-1,h=t.commonAncestor(),p=i.createDocumentFragment();if(3==h.nodeType){var f=o(h,t.startOffset,t.endOffset);return e&&p.appendChild(f),a(),e?p:t}function m(a,h){var p,f=a.firstChild;while(f){var g,v=new KRange(i).selectNode(f);if(l=v.compareBoundaryPoints(_START_TO_END,t),l>=0&&c<=0&&(c=v.compareBoundaryPoints(_START_TO_START,t)),c>=0&&u<=0&&(u=v.compareBoundaryPoints(_END_TO_END,t)),u>=0&&d<=0&&(d=v.compareBoundaryPoints(_END_TO_START,t)),d>=0)return!1;if(p=f.nextSibling,l>0)if(1==f.nodeType){if(c>=0&&u<=0)e&&h.appendChild(f.cloneNode(!0)),n&&r.push(f);else if(e&&(g=f.cloneNode(!1),h.appendChild(g)),!1===m(f,g))return!1}else if(3==f.nodeType){var b;if(b=f==s.startContainer?o(f,s.startOffset,f.nodeValue.length):f==s.endContainer?o(f,0,s.endOffset):o(f,0,f.nodeValue.length),e)try{h.appendChild(b)}catch(_){}}f=p}}m(h,p),n&&t.up().collapse(!0);for(var g=0,v=r.length;g<v;g++){var b=r[g];b.parentNode&&b.parentNode.removeChild(b)}return e?p:t}function _moveToElementText(t,e){var n=e;while(n){var i=K(n);if("marquee"==i.name||"select"==i.name)return;n=n.parentNode}try{t.moveToElementText(e)}catch(r){}}function _getStartEnd(t,e){var n=t.parentElement().ownerDocument,i=t.duplicate();i.collapse(e);var r=i.parentElement(),o=r.childNodes;if(0===o.length)return{node:r.parentNode,offset:K(r).index()};var a=n,s=0,l=-1,c=t.duplicate();_moveToElementText(c,r);for(var u=0,d=o.length;u<d;u++){var h=o[u];if(l=c.compareEndPoints("StartToStart",i),0===l)return{node:h.parentNode,offset:u};if(1==h.nodeType){var p,f=t.duplicate(),m=K(h),g=h;m.isControl()&&(p=n.createElement("span"),m.after(p),g=p,s+=m.text().replace(/\r\n|\n|\r/g,"").length),_moveToElementText(f,g),c.setEndPoint("StartToEnd",f),l>0?s+=f.text.replace(/\r\n|\n|\r/g,"").length:s=0,p&&K(p).remove()}else 3==h.nodeType&&(c.moveStart("character",h.nodeValue.length),s+=h.nodeValue.length);l<0&&(a=h)}if(l<0&&1==a.nodeType)return{node:r,offset:K(r.lastChild).index()+1};if(l>0)while(a.nextSibling&&1==a.nodeType)a=a.nextSibling;if(c=t.duplicate(),_moveToElementText(c,r),c.setEndPoint("StartToEnd",i),s-=c.text.replace(/\r\n|\n|\r/g,"").length,l>0&&3==a.nodeType){var v=a.previousSibling;while(v&&3==v.nodeType)s-=v.nodeValue.length,v=v.previousSibling}return{node:a,offset:s}}function _getEndRange(t,e){var n=t.ownerDocument||t,i=n.body.createTextRange();if(n==t)return i.collapse(!0),i;if(1==t.nodeType&&t.childNodes.length>0){var r,o,a=t.childNodes;if(0===e?(o=a[0],r=!0):(o=a[e-1],r=!1),!o)return i;if("head"===K(o).name)return 1===e&&(r=!0),2===e&&(r=!1),i.collapse(r),i;if(1==o.nodeType){var s,l=K(o);return l.isControl()&&(s=n.createElement("span"),r?l.before(s):l.after(s),o=s),_moveToElementText(i,o),i.collapse(r),s&&K(s).remove(),i}t=o,e=r?0:o.nodeValue.length}var c=n.createElement("span");return K(t).before(c),_moveToElementText(i,c),i.moveStart("character",e),K(c).remove(),i}function _toRange(t){var e,n;function i(t){"tr"==K(t.node).name&&(t.node=t.node.cells[t.offset],t.offset=0)}if(_IERANGE){if(t.item)return e=_getDoc(t.item(0)),n=new KRange(e),n.selectNode(t.item(0)),n;e=t.parentElement().ownerDocument;var r=_getStartEnd(t,!0),o=_getStartEnd(t,!1);return i(r),i(o),n=new KRange(e),n.setStart(r.node,r.offset),n.setEnd(o.node,o.offset),n}var a=t.startContainer;return e=a.ownerDocument||a,n=new KRange(e),n.setStart(a,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n}function KRange(t){this.init(t)}function _range(t){return t.nodeName?new KRange(t):t.constructor===KRange?t:_toRange(t)}function _nativeCommand(t,e,n){try{t.execCommand(e,!1,n)}catch(i){}}function _nativeCommandValue(t,e){var n="";try{n=t.queryCommandValue(e)}catch(i){}return"string"!==typeof n&&(n=""),n}function _getSel(t){var e=_getWin(t);return _IERANGE?t.selection:e.getSelection()}function _getRng(t){var e,n=_getSel(t);try{e=n.rangeCount>0?n.getRangeAt(0):n.createRange()}catch(i){}return!_IERANGE||e&&(e.item||e.parentElement().ownerDocument===t)?e:null}function _singleKeyMap(t){var e,n,i={};return _each(t,(function(t,r){e=t.split(",");for(var o=0,a=e.length;o<a;o++)n=e[o],i[n]=r})),i}function _hasAttrOrCss(t,e){return _hasAttrOrCssByKey(t,e,"*")||_hasAttrOrCssByKey(t,e)}function _hasAttrOrCssByKey(t,e,n){if(n=n||t.name,1!==t.type)return!1;var i=_singleKeyMap(e);if(!i[n])return!1;for(var r=i[n].split(","),o=0,a=r.length;o<a;o++){var s=r[o];if("*"===s)return!0;var l=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(s),c=l[1]?"css":"attr";s=l[2];var u=l[3]||"";if(""===u&&""!==t[c](s))return!0;if(""!==u&&t[c](s)===u)return!0}return!1}function _removeAttrOrCss(t,e){1==t.type&&(_removeAttrOrCssByKey(t,e,"*"),_removeAttrOrCssByKey(t,e))}function _removeAttrOrCssByKey(t,e,n){if(n=n||t.name,1===t.type){var i=_singleKeyMap(e);if(i[n]){for(var r=i[n].split(","),o=!1,a=0,s=r.length;a<s;a++){var l=r[a];if("*"===l){o=!0;break}var c=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(l);l=c[2],c[1]?(l=_toCamel(l),t[0].style[l]&&(t[0].style[l]="")):t.removeAttr(l)}o&&t.remove(!0)}}}function _getInnerNode(t){var e=t;while(e.first())e=e.first();return e}function _isEmptyNode(t){return 1==t.type&&!t.isSingle()&&""===t.html().replace(/<[^>]+>/g,"")}function _mergeWrapper(t,e){t=t.clone(!0);var n=_getInnerNode(t),i=t,r=!1;while(e){while(i)i.name===e.name&&(_mergeAttrs(i,e.attr(),e.css()),r=!0),i=i.first();r||n.append(e.clone(!1)),r=!1,e=e.first()}return t}function _wrapNode(t,e){if(e=e.clone(!0),3==t.type)return _getInnerNode(e).append(t.clone(!1)),t.replaceWith(e),e;var n,i=t;while((n=t.first())&&1==n.children().length)t=n;n=t.first();var r=t.doc.createDocumentFragment();while(n)r.appendChild(n[0]),n=n.next();return e=_mergeWrapper(i,e),r.firstChild&&_getInnerNode(e).append(r),i.replaceWith(e),e}function _mergeAttrs(t,e,n){_each(e,(function(e,n){"style"!==e&&t.attr(e,n)})),_each(n,(function(e,n){t.css(e,n)}))}function _inPreElement(t){while(t&&"body"!=t.name){if(_PRE_TAG_MAP[t.name]||"div"==t.name&&t.hasClass("ke-script"))return!0;t=t.parent()}return!1}function KCmd(t){this.init(t)}function _cmd(t){if(t.nodeName){var e=_getDoc(t);t=_range(e).selectNodeContents(e.body).collapse(!1)}return new KCmd(t)}function _drag(t){var e=t.moveEl,n=t.moveFn,i=t.clickEl||e,r=t.beforeDrag,o=t.iframeFix===undefined||t.iframeFix,a=[document];o&&K("iframe").each((function(){var t=_formatUrl(this.src||"","absolute");if(!/^https?:\/\//.test(t)){var e;try{e=_iframeDoc(this)}catch(i){}if(e){var n=K(this).pos();K(e).data("pos-x",n.x),K(e).data("pos-y",n.y),a.push(e)}}})),i.mousedown((function(t){if(0===t.button||1===t.button){t.stopPropagation();var o=i.get(),s=_removeUnit(e.css("left")),l=_removeUnit(e.css("top")),c=e.width(),u=e.height(),d=t.pageX,h=t.pageY;r&&r(),K(a).mousemove(p).mouseup(m).bind("selectstart",f),o.setCapture&&o.setCapture()}function p(t){t.preventDefault();var e=K(_getDoc(t.target)),r=_round((e.data("pos-x")||0)+t.pageX-d),o=_round((e.data("pos-y")||0)+t.pageY-h);n.call(i,s,l,c,u,r,o)}function f(t){t.preventDefault()}function m(t){t.preventDefault(),K(a).unbind("mousemove",p).unbind("mouseup",m).unbind("selectstart",f),o.releaseCapture&&o.releaseCapture()}}))}function KWidget(t){this.init(t)}function _widget(t){return new KWidget(t)}function _iframeDoc(t){return t=_get(t),t.contentDocument||t.contentWindow.document}function _getInitHtml(t,e,n,i){var r=[""===_direction?"<html>":'<html dir="'+_direction+'">','<head><meta charset="utf-8" /><title></title>',"<style>","html {margin:0;padding:0;}","body {margin:0;padding:5px;}",'body, td {font:12px/1.5 "sans serif",tahoma,verdana,helvetica;}',"body, p, div {word-wrap: break-word;}","p {margin:5px 0;}","table {border-collapse:collapse;}","img {border:0;}","noscript {display:none;}","table.ke-zeroborder td {border:1px dotted #AAA;}","img.ke-flash {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/flash.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-rm {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/rm.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-media {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/media.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-anchor {","\tborder:1px dashed #666;","\twidth:16px;","\theight:16px;","}",".ke-script, .ke-noscript, .ke-display-none {","\tdisplay:none;","\tfont-size:0;","\twidth:0;","\theight:0;","}",".ke-pagebreak {","\tborder:1px dotted #AAA;","\tfont-size:0;","\theight:2px;","}","</style>"];return _isArray(n)||(n=[n]),_each(n,(function(t,e){e&&r.push('<link href="'+e+'" rel="stylesheet" />')})),i&&r.push("<style>"+i+"</style>"),r.push("</head><body "+(e?'class="'+e+'"':"")+"></body></html>"),r.join("\n")}function _elementVal(t,e){if(t.hasVal()){if(e===undefined){var n=t.val();return n=n.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),n}return t.val(e)}return t.html(e)}function KEdit(t){this.init(t)}function _edit(t){return new KEdit(t)}function _selectToolbar(t,e){var n=this,i=n.get(t);if(i){if(i.hasClass("ke-disabled"))return;e(i)}}function KToolbar(t){this.init(t)}function _toolbar(t){return new KToolbar(t)}function KMenu(t){this.init(t)}function _menu(t){return new KMenu(t)}function KColorPicker(t){this.init(t)}function _colorpicker(t){return new KColorPicker(t)}function KUploadButton(t){this.init(t)}function _uploadbutton(t){return new KUploadButton(t)}function _createButton(t){t=t||{};var e=t.name||"",n=K('<span class="ke-button-common ke-button-outer" title="'+e+'"></span>'),i=K('<input class="ke-button-common ke-button" type="button" value="'+e+'" />');return t.click&&i.click(t.click),n.append(i),n}function KDialog(t){this.init(t)}function _dialog(t){return new KDialog(t)}function _tabs(t){var e=_widget(t),n=e.remove,i=t.afterSelect,r=e.div,o=[];r.addClass("ke-tabs").bind("contextmenu,mousedown,mousemove",(function(t){t.preventDefault()}));var a=K('<ul class="ke-tabs-ul ke-clearfix"></ul>');return r.append(a),e.add=function(t){var e=K('<li class="ke-tabs-li">'+t.title+"</li>");e.data("tab",t),o.push(e),a.append(e)},e.selectedIndex=0,e.select=function(t){e.selectedIndex=t,_each(o,(function(n,i){i.unbind(),n===t?(i.addClass("ke-tabs-li-selected"),K(i.data("tab").panel).show("")):(i.removeClass("ke-tabs-li-selected").removeClass("ke-tabs-li-on").mouseover((function(){K(this).addClass("ke-tabs-li-on")})).mouseout((function(){K(this).removeClass("ke-tabs-li-on")})).click((function(){e.select(n)})),K(i.data("tab").panel).hide())})),i&&i.call(e,t)},e.remove=function(){_each(o,(function(){this.remove()})),a.remove(),n.call(e)},e}function _loadScript(t,e){var n=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),i=document.createElement("script");n.appendChild(i),i.src=t,i.charset="utf-8",i.onload=i.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState||(e&&e(),i.onload=i.onreadystatechange=null,n.removeChild(i))}}function _chopQuery(t){var e=t.indexOf("?");return e>0?t.substr(0,e):t}function _loadStyle(t){for(var e=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),n=document.createElement("link"),i=_chopQuery(_formatUrl(t,"absolute")),r=K('link[rel="stylesheet"]',e),o=0,a=r.length;o<a;o++)if(_chopQuery(_formatUrl(r[o].href,"absolute"))===i)return;e.appendChild(n),n.href=t,n.rel="stylesheet"}function _ajax(t,e,n,i,r){n=n||"GET",r=r||"json";var o=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");if(o.open(n,t,!0),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status&&e){var t=_trim(o.responseText);"json"==r&&(t=_json(t)),e(t)}},"POST"==n){var a=[];_each(i,(function(t,e){a.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}));try{o.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(s){}o.send(a.join("&"))}else o.send(null)}function _plugin(t,e){return t===undefined?_plugins:e?void(_plugins[t]=e):_plugins[t]}function _parseLangKey(t){var e,n="core";return(e=/^(\w+)\.(\w+)$/.exec(t))&&(n=e[1],t=e[2]),{ns:n,key:t}}function _lang(t,e){if(e=e===undefined?K.options.langType:e,"string"===typeof t){if(!_language[e])return"no language";var n=t.length-1;if("."===t.substr(n))return _language[e][t.substr(0,n)];var i=_parseLangKey(t);return _language[e][i.ns][i.key]}_each(t,(function(t,n){var i=_parseLangKey(t);_language[e]||(_language[e]={}),_language[e][i.ns]||(_language[e][i.ns]={}),_language[e][i.ns][i.key]=n}))}function _getImageFromRange(t,e){if(!t.collapsed){t=t.cloneRange().up();var n=t.startContainer,i=t.startOffset;if(_WEBKIT||t.isControl()){var r=K(n.childNodes[i]);if(r&&"img"==r.name)return e(r)?r:void 0}}}function _bindContextmenuEvent(){var t=this,e=t.edit.doc;K(e).contextmenu((function(e){if(t.menu&&t.hideMenu(),t.useContextmenu){if(0!==t._contextmenus.length){var n=0,i=[];_each(t._contextmenus,(function(){"-"!=this.title?this.cond&&this.cond()&&(i.push(this),this.width&&this.width>n&&(n=this.width)):i.push(this)}));while(i.length>0&&"-"==i[0].title)i.shift();while(i.length>0&&"-"==i[i.length-1].title)i.pop();var r=null;if(_each(i,(function(t){"-"==this.title&&"-"==r.title&&delete i[t],r=this})),i.length>0){e.preventDefault();var o=K(t.edit.iframe).pos(),a=_menu({x:o.x+e.clientX,y:o.y+e.clientY,width:n,css:{visibility:"hidden"},shadowMode:t.shadowMode});_each(i,(function(){this.title&&a.addItem(this)}));var s=_docElement(a.doc),l=a.div.height();e.clientY+l>=s.clientHeight-100&&a.pos(a.x,_removeUnit(a.y)-l),a.div.css("visibility","visible"),t.menu=a}}}else e.preventDefault()}))}function _bindNewlineEvent(){var t=this,e=t.edit.doc,n=t.newlineTag;if((!_IE||"br"===n)&&!(_GECKO&&_V<3&&"p"!==n)&&!(_OPERA&&_V<9)){var i=_toMap("h1,h2,h3,h4,h5,h6,pre,li"),r=_toMap("p,h1,h2,h3,h4,h5,h6,pre,li,blockquote");K(e).keydown((function(a){if(!(13!=a.which||a.shiftKey||a.ctrlKey||a.altKey)){t.cmd.selection();var s=o(t.cmd.range);if("marquee"!=s&&"select"!=s)return"br"!==n||i[s]?void(r[s]||_nativeCommand(e,"formatblock","<p>")):(a.preventDefault(),void t.insertHtml("<br />"+(_IE&&_V<9?"":"")))}})),K(e).keyup((function(i){if(!(13!=i.which||i.shiftKey||i.ctrlKey||i.altKey)&&"br"!=n)if(_GECKO){var a=t.cmd.commonAncestor("p"),s=t.cmd.commonAncestor("a");s&&""==s.text()&&(s.remove(!0),t.cmd.range.selectNodeContents(a[0]).collapse(!0),t.cmd.select())}else{t.cmd.selection();var l=o(t.cmd.range);if("marquee"!=l&&"select"!=l){r[l]||_nativeCommand(e,"formatblock","<p>");var c=t.cmd.commonAncestor("div");if(c){var u=K("<p></p>"),d=c[0].firstChild;while(d){var h=d.nextSibling;u.append(d),d=h}c.before(u),c.remove(),t.cmd.range.selectNodeContents(u[0]),t.cmd.select()}}}}))}function o(t){var e=K(t.commonAncestor());while(e){if(1==e.type&&!e.isStyle())break;e=e.parent()}return e.name}}function _bindTabEvent(){var t=this,e=t.edit.doc;K(e).keydown((function(n){if(9==n.which){if(n.preventDefault(),t.afterTab)return void t.afterTab.call(t,n);var i=t.cmd,r=i.range;r.shrink(),r.collapsed&&1==r.startContainer.nodeType&&(r.insertNode(K("@ ",e)[0]),i.select()),t.insertHtml(" ")}}))}function _bindFocusEvent(){var t=this;K(t.edit.textarea[0],t.edit.win).focus((function(e){t.afterFocus&&t.afterFocus.call(t,e)})).blur((function(e){t.afterBlur&&t.afterBlur.call(t,e)}))}function _removeBookmarkTag(t){return _trim(t.replace(/<span [^>]*id="?__kindeditor_bookmark_\w+_\d+__"?[^>]*><\/span>/gi,""))}function _removeTempTag(t){return t.replace(/<div[^>]+class="?__kindeditor_paste__"?[^>]*>[\s\S]*?<\/div>/gi,"")}function _addBookmarkToStack(t,e){if(0!==t.length){var n=t[t.length-1];_removeBookmarkTag(e.html)!==_removeBookmarkTag(n.html)&&t.push(e)}else t.push(e)}function _undoToRedo(t,e){var n,i,r=this,o=r.edit,a=o.doc.body;if(0===t.length)return r;o.designMode?(n=r.cmd.range,i=n.createBookmark(!0),i.html=a.innerHTML):i={html:a.innerHTML},_addBookmarkToStack(e,i);var s=t.pop();return _removeBookmarkTag(i.html)===_removeBookmarkTag(s.html)&&t.length>0&&(s=t.pop()),o.designMode?(o.html(s.html),s.start&&(n.moveToBookmark(s),r.select())):K(a).html(_removeBookmarkTag(s.html)),r}function KEditor(t){var e=this;function n(t,n){KEditor.prototype[t]===undefined&&(e[t]=n),e.options[t]=n}e.options={},_each(t,(function(e,i){n(e,t[e])})),_each(K.options,(function(t,i){e[t]===undefined&&n(t,i)}));var i=K(e.srcElement||"<textarea/>");e.width||(e.width=i[0].style.width||i.width()),e.height||(e.height=i[0].style.height||i.height()),n("width",_undef(e.width,e.minWidth)),n("height",_undef(e.height,e.minHeight)),n("width",_addUnit(e.width)),n("height",_addUnit(e.height)),_MOBILE&&(!_IOS||_V<534)&&(e.designMode=!1),e.srcElement=i,e.initContent="",e.plugin={},e.isCreated=!1,e._handlers={},e._contextmenus=[],e._undoStack=[],e._redoStack=[],e._firstAddBookmark=!0,e.menu=e.contextmenu=null,e.dialogs=[]}function _editor(t){return new KEditor(t)}function _create(t,e){if(e=e||{},e.basePath=_undef(e.basePath,K.basePath),e.themesPath=_undef(e.themesPath,e.basePath+"themes/"),e.langPath=_undef(e.langPath,e.basePath+"lang/"),e.pluginsPath=_undef(e.pluginsPath,e.basePath+"plugins/"),_undef(e.loadStyleMode,K.options.loadStyleMode)){var n=_undef(e.themeType,K.options.themeType);_loadStyle(e.themesPath+"default/default.css"),_loadStyle(e.themesPath+n+"/"+n+".css")}function i(t){return _each(_plugins,(function(e,n){_isFunction(n)&&(n.call(t,KindEditor),t._pluginStatus||(t._pluginStatus={}),t._pluginStatus[e]="inited")})),t.create()}var r=K(t);if(r&&0!==r.length){if(r.length>1)return r.each((function(){_create(this,e)})),_instances[0];e.srcElement=r[0];var o=new KEditor(e);return _instances.push(o),_language[o.langType]?i(o):(_loadScript(o.langPath+o.langType+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){i(o)})),o)}}function _eachEditor(t,e){K(t).each((function(t,n){K.each(_instances,(function(t,i){if(i&&i.srcElement[0]==n)return e.call(i,t),!1}))}))}})(window),KindEditor.lang({source:"HTML代码",preview:"预览",undo:"后退(Ctrl+Z)",redo:"前进(Ctrl+Y)",cut:"剪切(Ctrl+X)",copy:"复制(Ctrl+C)",paste:"粘贴(Ctrl+V)",plainpaste:"粘贴为无格式文本",wordpaste:"从Word粘贴",selectall:"全选(Ctrl+A)",justifyleft:"左对齐",justifycenter:"居中",justifyright:"右对齐",justifyfull:"两端对齐",insertorderedlist:"编号",insertunorderedlist:"项目符号",indent:"增加缩进",outdent:"减少缩进",subscript:"下标",superscript:"上标",formatblock:"段落",fontname:"字体",fontsize:"文字大小",forecolor:"文字颜色",hilitecolor:"文字背景",bold:"粗体(Ctrl+B)",italic:"斜体(Ctrl+I)",underline:"下划线(Ctrl+U)",strikethrough:"删除线",removeformat:"删除格式",image:"图片",uploadImage:"插入图片",multiimage:"批量图片上传",flash:"Flash",media:"视音频",table:"表格",tablecell:"单元格",hr:"插入横线",emoticons:"插入表情",link:"超级链接",unlink:"取消超级链接",fullscreen:"全屏显示",about:"关于",print:"打印(Ctrl+P)",filemanager:"文件空间",code:"插入程序代码",map:"Google地图",baidumap:"百度地图",lineheight:"行距",clearhtml:"清理HTML代码",pagebreak:"插入分页符",quickformat:"一键排版",insertfile:"插入文件",template:"插入模板",anchor:"锚点",yes:"确定",no:"取消",close:"关闭",editImage:"图片属性",deleteImage:"删除图片",editFlash:"Flash属性",deleteFlash:"删除Flash",editMedia:"视音频属性",deleteMedia:"删除视音频",editLink:"超级链接属性",deleteLink:"取消超级链接",editAnchor:"锚点属性",deleteAnchor:"删除锚点",tableprop:"表格属性",tablecellprop:"单元格属性",tableinsert:"插入表格",tabledelete:"删除表格",tablecolinsertleft:"左侧插入列",tablecolinsertright:"右侧插入列",tablerowinsertabove:"上方插入行",tablerowinsertbelow:"下方插入行",tablerowmerge:"向下合并单元格",tablecolmerge:"向右合并单元格",tablerowsplit:"拆分行",tablecolsplit:"拆分列",tablecoldelete:"删除列",tablerowdelete:"删除行",noColor:"无颜色",pleaseSelectFile:"请选择文件。",invalidImg:"请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",invalidMedia:"请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",invalidWidth:"宽度必须为数字。",invalidHeight:"高度必须为数字。",invalidBorder:"边框必须为数字。",invalidUrl:"请输入有效的URL地址。",invalidRows:"行数为必选项,只允许输入大于0的数字。",invalidCols:"列数为必选项,只允许输入大于0的数字。",invalidPadding:"边距必须为数字。",invalidSpacing:"间距必须为数字。",invalidJson:"服务器发生故障。",uploadSuccess:"上传成功。",cutError:"您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。",copyError:"您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。",pasteError:"您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。",ajaxLoading:"加载中,请稍候 ...",uploadLoading:"上传中,请稍候 ...",uploadError:"上传错误","plainpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","wordpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","code.pleaseInput":"请输入程序代码。","link.url":"URL","link.linkType":"打开类型","link.newWindow":"新窗口","link.selfWindow":"当前窗口","flash.url":"URL","flash.width":"宽度","flash.height":"高度","flash.upload":"上传","flash.viewServer":"文件空间","media.url":"URL","media.width":"宽度","media.height":"高度","media.autostart":"自动播放","media.upload":"上传","media.viewServer":"文件空间","image.remoteImage":"网络图片","image.localImage":"本地上传","image.remoteUrl":"图片地址","image.localUrl":"上传文件","image.size":"图片大小","image.width":"宽","image.height":"高","image.resetSize":"重置大小","image.align":"对齐方式","image.defaultAlign":"默认方式","image.leftAlign":"左对齐","image.rightAlign":"右对齐","image.imgTitle":"图片说明","image.upload":"浏览...","image.viewServer":"本地上传","multiimage.uploadDesc":"允许用户同时上传<%=uploadLimit%>张图片,单张图片容量不超过<%=sizeLimit%>","multiimage.startUpload":"开始上传","multiimage.clearAll":"全部清空","multiimage.insertAll":"全部插入","multiimage.queueLimitExceeded":"文件数量超过限制。","multiimage.fileExceedsSizeLimit":"文件大小超过限制。","multiimage.zeroByteFile":"无法上传空文件。","multiimage.invalidFiletype":"文件类型不正确。","multiimage.unknownError":"发生异常,无法上传。","multiimage.pending":"等待上传","multiimage.uploadError":"上传失败","filemanager.emptyFolder":"空文件夹","filemanager.moveup":"移到上一级文件夹","filemanager.viewType":"显示方式:","filemanager.viewImage":"缩略图","filemanager.listImage":"详细信息","filemanager.orderType":"排序方式:","filemanager.fileName":"名称","filemanager.fileSize":"大小","filemanager.fileType":"类型","insertfile.url":"URL","insertfile.title":"文件说明","insertfile.upload":"上传","insertfile.viewServer":"文件空间","table.cells":"单元格数","table.rows":"行数","table.cols":"列数","table.size":"大小","table.width":"宽度","table.height":"高度","table.percent":"%","table.px":"px","table.space":"边距间距","table.padding":"边距","table.spacing":"间距","table.align":"对齐方式","table.textAlign":"水平对齐","table.verticalAlign":"垂直对齐","table.alignDefault":"默认","table.alignLeft":"左对齐","table.alignCenter":"居中","table.alignRight":"右对齐","table.alignTop":"顶部","table.alignMiddle":"中部","table.alignBottom":"底部","table.alignBaseline":"基线","table.border":"边框","table.borderWidth":"边框","table.borderColor":"颜色","table.backgroundColor":"背景颜色","map.address":"地址: ","map.search":"搜索","baidumap.address":"地址: ","baidumap.search":"搜索","baidumap.insertDynamicMap":"插入动态地图","anchor.name":"锚点名称","formatblock.formatBlock":{h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",p:"正 文"},"fontname.fontName":{SimSun:"宋体",NSimSun:"新宋体",FangSong_GB2312:"仿宋_GB2312",KaiTi_GB2312:"楷体_GB2312",SimHei:"黑体","Microsoft YaHei":"微软雅黑",Arial:"Arial","Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"},"lineheight.lineHeight":[{1:"单倍行距"},{1.5:"1.5倍行距"},{2:"2倍行距"},{2.5:"2.5倍行距"},{3:"3倍行距"}],"template.selectTemplate":"可选模板","template.replaceContent":"替换当前内容","template.fileList":{"1.html":"图片和文字","2.html":"表格","3.html":"项目编号"}},"zh-CN"),KindEditor.options.langType="zh-CN",KindEditor.plugin("anchor",(function(t){var e=this,n="anchor",i=e.lang(n+".");e.plugin.anchor={edit:function(){var r=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keName">'+i.name+"</label>",'<input class="ke-input-text" type="text" id="keName" name="name" value="" style="width:100px;" />',"</div>","</div>"].join(""),o=e.createDialog({name:n,width:300,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(t){e.insertHtml('<a name="'+s.val()+'">').hideDialog().focus()}}}),a=o.div,s=t('input[name="name"]',a),l=e.plugin.getSelectedAnchor();l&&s.val(unescape(l.attr("data-ke-name"))),s[0].focus(),s[0].select()},delete:function(){e.plugin.getSelectedAnchor().remove()}},e.clickToolbar(n,e.plugin.anchor.edit)})),KindEditor.plugin("autoheight",(function(t){var e,n=this;n.autoHeightMode&&(n.isCreated?o():n.afterCreate(o));function i(){var t=n.edit,e=t.doc.body;t.iframe[0].scroll="no",e.style.overflowY="hidden"}function r(){var i=n.edit,r=i.doc.body;i.iframe.height(e),n.resize(null,Math.max((t.IE?r.scrollHeight:r.offsetHeight)+76,e))}function o(){e=t.removeUnit(n.height),n.edit.afterChange(r),i(),r()}})),KindEditor.plugin("baidumap",(function(t){var e=this,n="baidumap",i=e.lang(n+"."),r=t.undef(e.mapWidth,558),o=t.undef(e.mapHeight,360);e.clickToolbar(n,(function(){var a,s,l=['<div style="padding:10px 20px;">','<div class="ke-header">','<div class="ke-left">',i.address+' <input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" name="searchBtn" class="ke-button-common ke-button" value="'+i.search+'" />',"</span>","</div>",'<div class="ke-right">','<input type="checkbox" id="keInsertDynamicMap" name="insertDynamicMap" value="1" /> <label for="keInsertDynamicMap">'+i.insertDynamicMap+"</label>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<div class="ke-map" style="width:'+r+"px;height:"+o+'px;"></div>',"</div>"].join(""),c=e.createDialog({name:n,width:r+42,title:e.lang(n),body:l,yesBtn:{name:e.lang("yes"),click:function(t){var n=a.map,i=n.getCenter(),s=i.lng+","+i.lat,l=n.getZoom(),c=[p[0].checked?e.pluginsPath+"baidumap/index.html":"http://api.map.baidu.com/staticimage","?center="+encodeURIComponent(s),"&zoom="+encodeURIComponent(l),"&width="+r,"&height="+o,"&markers="+encodeURIComponent(s),"&markerStyles="+encodeURIComponent("l,A")].join("");p[0].checked?e.insertHtml('<iframe src="'+c+'" frameborder="0" style="width:'+(r+2)+"px;height:"+(o+2)+'px;"></iframe>'):e.exec("insertimage",c),e.hideDialog().focus()}},beforeRemove:function(){h.remove(),s&&s.write(""),f.remove()}}),u=c.div,d=t('[name="address"]',u),h=t('[name="searchBtn"]',u),p=t('[name="insertDynamicMap"]',c.div),f=t('<iframe class="ke-textarea" frameborder="0" src="'+e.pluginsPath+'baidumap/map.html" style="width:'+r+"px;height:"+o+'px;"></iframe>');function m(){a=f[0].contentWindow,s=t.iframeDoc(f)}f.bind("load",(function(){f.unbind("load"),t.IE?m():setTimeout(m,0)})),t(".ke-map",u).replaceWith(f),h.click((function(){a.search(d.val())}))}))})),KindEditor.plugin("map",(function(t){var e=this,n="map",i=e.lang(n+".");e.clickToolbar(n,(function(){var r,o,a=['<div style="padding:10px 20px;">','<div class="ke-dialog-row">',i.address+' <input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" name="searchBtn" class="ke-button-common ke-button" value="'+i.search+'" />',"</span>","</div>",'<div class="ke-map" style="width:558px;height:360px;"></div>',"</div>"].join(""),s=e.createDialog({name:n,width:600,title:e.lang(n),body:a,yesBtn:{name:e.lang("yes"),click:function(t){r.geocoder;var n=r.map,i=n.getCenter().lat()+","+n.getCenter().lng(),o=n.getZoom(),a=n.getMapTypeId(),s="http://maps.googleapis.com/maps/api/staticmap";s+="?center="+encodeURIComponent(i),s+="&zoom="+encodeURIComponent(o),s+="&size=558x360",s+="&maptype="+encodeURIComponent(a),s+="&markers="+encodeURIComponent(i),s+="&language="+e.langType,s+="&sensor=false",e.exec("insertimage",s).hideDialog().focus()}},beforeRemove:function(){u.remove(),o&&o.write(""),d.remove()}}),l=s.div,c=t('[name="address"]',l),u=t('[name="searchBtn"]',l),d=(["<!doctype html><html><head>",'<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />',"<style>","\thtml { height: 100% }","\tbody { height: 100%; margin: 0; padding: 0; background-color: #FFF }","\t#map_canvas { height: 100% }","</style>",'<script src="http://maps.googleapis.com/maps/api/js?sensor=false&language='+e.langType+'"><\/script>',"<script>","var map, geocoder;","function initialize() {","\tvar latlng = new google.maps.LatLng(31.230393, 121.473704);","\tvar options = {","\t\tzoom: 11,","\t\tcenter: latlng,","\t\tdisableDefaultUI: true,","\t\tpanControl: true,","\t\tzoomControl: true,","\t\tmapTypeControl: true,","\t\tscaleControl: true,","\t\tstreetViewControl: false,","\t\toverviewMapControl: true,","\t\tmapTypeId: google.maps.MapTypeId.ROADMAP","\t};",'\tmap = new google.maps.Map(document.getElementById("map_canvas"), options);',"\tgeocoder = new google.maps.Geocoder();","\tgeocoder.geocode({latLng: latlng}, function(results, status) {","\t\tif (status == google.maps.GeocoderStatus.OK) {","\t\t\tif (results[3]) {",'\t\t\t\tparent.document.getElementById("kindeditor_plugin_map_address").value = results[3].formatted_address;',"\t\t\t}","\t\t}","\t});","}","function search(address) {","\tif (!map) return;","\tgeocoder.geocode({address : address}, function(results, status) {","\t\tif (status == google.maps.GeocoderStatus.OK) {","\t\t\tmap.setZoom(11);","\t\t\tmap.setCenter(results[0].geometry.location);","\t\t\tvar marker = new google.maps.Marker({","\t\t\t\tmap: map,","\t\t\t\tposition: results[0].geometry.location","\t\t\t});","\t\t} else {",'\t\t\talert("Invalid address: " + address);',"\t\t}","\t});","}","<\/script>","</head>",'<body onload="initialize();">','<div id="map_canvas" style="width:100%; height:100%"></div>',"</body></html>"].join("\n"),t('<iframe class="ke-textarea" frameborder="0" src="'+e.pluginsPath+'map/map.html" style="width:558px;height:360px;"></iframe>'));function h(){r=d[0].contentWindow,o=t.iframeDoc(d)}d.bind("load",(function(){d.unbind("load"),t.IE?h():setTimeout(h,0)})),t(".ke-map",l).replaceWith(d),u.click((function(){r.search(c.val())}))}))})),KindEditor.plugin("clearhtml",(function(t){var e=this,n="clearhtml";e.clickToolbar(n,(function(){e.focus();var n=e.html();n=n.replace(/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,""),n=n.replace(/(<style[^>]*>)([\s\S]*?)(<\/style>)/gi,""),n=t.formatHtml(n,{a:["href","target"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess"],img:["src","width","height","border","alt","title",".width",".height"],table:["border"],"td,th":["rowspan","colspan"],"div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":[]}),e.html(n),e.cmd.selection(!0),e.addBookmark()}))})),KindEditor.plugin("code",(function(t){var e=this,n="code";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r=['<div style="padding:10px 20px;">','<div class="ke-dialog-row">','<select class="ke-code-type">','<option value="js">JavaScript</option>','<option value="html">HTML</option>','<option value="css">CSS</option>','<option value="php">PHP</option>','<option value="pl">Perl</option>','<option value="py">Python</option>','<option value="rb">Ruby</option>','<option value="java">Java</option>','<option value="vb">ASP/VB</option>','<option value="cpp">C/C++</option>','<option value="cs">C#</option>','<option value="xml">XML</option>','<option value="bsh">Shell</option>','<option value="">Other</option>',"</select>","</div>",'<textarea class="ke-textarea" style="width:408px;height:260px;"></textarea>',"</div>"].join(""),o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var r=t(".ke-code-type",o.div).val(),s=a.val(),l=""===r?"":" lang-"+r,c='<pre class="prettyprint'+l+'">\n'+t.escape(s)+"</pre> ";if(""===t.trim(s))return alert(i.pleaseInput),void a[0].focus();e.insertHtml(c).hideDialog().focus()}}}),a=t("textarea",o.div);a[0].focus()}))})),KindEditor.plugin("emoticons",(function(t){var e=this,n="emoticons",i=e.emoticonsPath||e.pluginsPath+"emoticons/images/",r=void 0===e.allowPreviewEmoticons||e.allowPreviewEmoticons,o=1;e.clickToolbar(n,(function(){var a,s,l=5,c=9,u=135,d=0,h=l*c,p=Math.ceil(u/h),f=Math.floor(c/2),m=t('<div class="ke-plugin-emoticons"></div>'),g=[],v=e.createMenu({name:n,beforeRemove:function(){x()}});function b(n,r,o){a?n.mouseover((function(){r>f?(a.css("left",0),a.css("right","")):(a.css("left",""),a.css("right",0)),s.attr("src",i+o+".gif"),t(this).addClass("ke-on")})):n.mouseover((function(){t(this).addClass("ke-on")})),n.mouseout((function(){t(this).removeClass("ke-on")})),n.click((function(t){e.insertHtml('<img src="'+i+o+'.gif" border="0" alt="" />').hideMenu().focus(),t.stop()}))}function _(e,n){var r=document.createElement("table");n.append(r),a&&(t(r).mouseover((function(){a.show("block")})),t(r).mouseout((function(){a.hide()})),g.push(t(r))),r.className="ke-table",r.cellPadding=0,r.cellSpacing=0,r.border=0;for(var o=(e-1)*h+d,s=0;s<l;s++)for(var u=r.insertRow(s),p=0;p<c;p++){var f=t(u.insertCell(p));f.addClass("ke-cell"),b(f,p,o);var m=t('<span class="ke-img"></span>').css("background-position","-"+24*o+"px 0px").css("background-image","url("+i+"static.gif)");f.append(m),g.push(f),o++}return r}v.div.append(m),r&&(a=t('<div class="ke-preview"></div>').css("right",0),s=t('<img class="ke-preview-img" src="'+i+d+'.gif" />'),m.append(a),a.append(s));var y,w=_(o,m);function x(){t.each(g,(function(){this.unbind()}))}function k(t,e){t.click((function(t){x(),w.parentNode.removeChild(w),y.remove(),w=_(e,m),S(e),o=e,t.stop()}))}function S(e){y=t('<div class="ke-page"></div>'),m.append(y);for(var n=1;n<=p;n++){if(e!==n){var i=t('<a href="javascript:;">['+n+"]</a>");k(i,n),y.append(i),g.push(i)}else y.append(t("@["+n+"]"));y.append(t("@ "))}}S(o)}))})),KindEditor.plugin("filemanager",(function(t){var e=this,n="filemanager",i=t.undef(e.fileManagerJson,e.basePath+"php/file_manager_json.php"),r=e.pluginsPath+n+"/images/",o=e.lang(n+".");function a(t,e,n){return t+" ("+Math.ceil(e/1024)+"KB, "+n+")"}function s(t,e){e.is_dir?t.attr("title",e.filename):t.attr("title",a(e.filename,e.filesize,e.datetime))}e.plugin.filemanagerDialog=function(a){var l=t.undef(a.width,650),c=t.undef(a.height,510),u=t.undef(a.dirName,""),d=t.undef(a.viewType,"VIEW").toUpperCase(),h=a.clickFn,p=['<div style="padding:10px 20px;">','<div class="ke-plugin-filemanager-header">','<div class="ke-left">','<img class="ke-inline-block" name="moveupImg" src="'+r+'go-up.gif" width="16" height="16" border="0" alt="" /> ','<a class="ke-inline-block" name="moveupLink" href="javascript:;">'+o.moveup+"</a>","</div>",'<div class="ke-right">',o.viewType+' <select class="ke-inline-block" name="viewType">','<option value="VIEW">'+o.viewImage+"</option>",'<option value="LIST">'+o.listImage+"</option>","</select> ",o.orderType+' <select class="ke-inline-block" name="orderType">','<option value="NAME">'+o.fileName+"</option>",'<option value="SIZE">'+o.fileSize+"</option>",'<option value="TYPE">'+o.fileType+"</option>","</select>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<div class="ke-plugin-filemanager-body"></div>',"</div>"].join(""),f=e.createDialog({name:n,width:l,height:c,title:e.lang(n),body:p}),m=f.div,g=t(".ke-plugin-filemanager-body",m),v=(t('[name="moveupImg"]',m),t('[name="moveupLink"]',m)),b=(t('[name="viewServer"]',m),t('[name="viewType"]',m)),_=t('[name="orderType"]',m);function y(n,r,o){var a="path="+n+"&order="+r+"&dir="+u;f.showLoading(e.lang("ajaxLoading")),t.ajax(t.addParam(i,a+"&"+(new Date).getTime()),(function(t){f.hideLoading(),o(t)}))}var w=[];function x(e,n,i,r){var o=t.formatUrl(n.current_url+i.filename,"absolute"),a=encodeURIComponent(n.current_dir_path+i.filename+"/");i.is_dir?e.click((function(t){y(a,_.val(),r)})):(i.is_photo,e.click((function(t){h.call(this,o,i.filename)}))),w.push(e)}function k(e,n){function i(){"VIEW"==b.val()?y(e.current_dir_path,_.val(),D):y(e.current_dir_path,_.val(),S)}t.each(w,(function(){this.unbind()})),v.unbind(),b.unbind(),_.unbind(),e.current_dir_path&&v.click((function(t){y(e.moveup_dir_path,_.val(),n)})),b.change(i),_.change(i),g.html("")}function S(e){k(e,S);var n=document.createElement("table");n.className="ke-table",n.cellPadding=0,n.cellSpacing=0,n.border=0,g.append(n);for(var i=e.file_list,a=0,s=i.length;a<s;a++){var l=i[a],c=t(n.insertRow(a));c.mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));var u=r+(l.is_dir?"folder-16.gif":"file-16.gif"),d=t('<img src="'+u+'" width="16" height="16" alt="'+l.filename+'" align="absmiddle" />'),h=t(c[0].insertCell(0)).addClass("ke-cell ke-name").append(d).append(document.createTextNode(" "+l.filename));!l.is_dir||l.has_file?(c.css("cursor","pointer"),h.attr("title",l.filename),x(h,e,l,S)):h.attr("title",o.emptyFolder),t(c[0].insertCell(1)).addClass("ke-cell ke-size").html(l.is_dir?"-":Math.ceil(l.filesize/1024)+"KB"),t(c[0].insertCell(2)).addClass("ke-cell ke-datetime").html(l.datetime)}}function D(e){k(e,D);for(var n=e.file_list,i=0,a=n.length;i<a;i++){var l=n[i],c=t('<div class="ke-inline-block ke-item"></div>');g.append(c);var u=t('<div class="ke-inline-block ke-photo"></div>').mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));c.append(u);var d=e.current_url+l.filename,h=l.is_dir?r+"folder-64.gif":l.is_photo?d:r+"file-64.gif",p=t('<img src="'+h+'" width="80" height="80" alt="'+l.filename+'" />');!l.is_dir||l.has_file?(u.css("cursor","pointer"),s(u,l),x(u,e,l,D)):u.attr("title",o.emptyFolder),u.append(p),c.append('<div class="ke-name" title="'+l.filename+'">'+l.filename+"</div>")}}return b.val(d),y("",_.val(),"VIEW"==d?D:S),f}})),KindEditor.plugin("flash",(function(t){var e=this,n="flash",i=e.lang(n+"."),r=t.undef(e.allowFlashUpload,!0),o=t.undef(e.allowFileManager,!1),a=t.undef(e.formatUploadUrl,!0),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=t.undef(e.uploadJson,e.basePath+"php/upload_json.php");e.plugin.flash={edit:function(){var u=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+i.url+"</label>",'<input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:160px;" /> ','<input type="button" class="ke-upload-button" value="'+i.upload+'" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+i.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:60px;">'+i.width+"</label>",'<input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="550" maxlength="4" /> ',"</div>",'<div class="ke-dialog-row">','<label for="keHeight" style="width:60px;">'+i.height+"</label>",'<input type="text" id="keHeight" class="ke-input-text ke-input-number" name="height" value="400" maxlength="4" /> ',"</div>","</div>"].join(""),d=e.createDialog({name:n,width:450,title:e.lang(n),body:u,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(p.val()),r=m.val(),o=g.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void p[0].focus();if(!/^\d*$/.test(r))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(o))return alert(e.lang("invalidHeight")),void g[0].focus();var a=t.mediaImg(e.themesPath+"common/blank.gif",{src:i,type:t.mediaType(".swf"),width:r,height:o,quality:"high"});e.insertHtml(a).hideDialog().focus()}}}),h=d.div,p=t('[name="url"]',h),f=t('[name="viewServer"]',h),m=t('[name="width"]',h),g=t('[name="height"]',h);if(p.val("http://"),r){var v=t.uploadbutton({button:t(".ke-upload-button",h)[0],fieldName:l,extraParams:s,url:t.addParam(c,"dir=flash"),afterUpload:function(i){if(d.hideLoading(),0===i.error){var r=i.url;a&&(r=t.formatUrl(r,"absolute")),p.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){d.hideLoading(),e.errorDialog(t)}});v.fileBox.change((function(t){d.showLoading(e.lang("uploadLoading")),v.submit()}))}else t(".ke-upload-button",h).hide();o?f.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"flash",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',h).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):f.hide();var b=e.plugin.getSelectedFlash();if(b){var _=t.mediaAttrs(b.attr("data-ke-tag"));p.val(_.src),m.val(t.removeUnit(b.css("width"))||_.width||0),g.val(t.removeUnit(b.css("height"))||_.height||0)}p[0].focus(),p[0].select()},delete:function(){e.plugin.getSelectedFlash().remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.flash.edit)})),KindEditor.plugin("uploadImage",(function(t){var e=this;e.clickToolbar("uploadImage",(function(){$app.$upload({multiple:!0,success:function(t){e.insertHtml(Array.from(t,t=>`<img src="${t.path}" alt="" />`).join(""))}})}))})),KindEditor.plugin("image",(function(t){var e=this,n="image",i=t.undef(e.allowImageUpload,!1),r=t.undef(e.allowImageRemote,!0),o=t.undef(e.formatUploadUrl,!0),a=t.undef(e.allowFileManager,!0),s=t.undef(e.uploadJson,e.basePath+"php/upload_json.php"),l=t.undef(e.imageTabIndex,0),c=e.pluginsPath+"image/images/",u=t.undef(e.extraFileUploadParams,{}),d=t.undef(e.filePostName,"imgFile"),h=t.undef(e.fillDescAfterUploadImage,!1),p=e.lang(n+".");e.plugin.imageDialog=function(i){i.imageUrl,t.undef(i.imageWidth,""),t.undef(i.imageHeight,""),t.undef(i.imageTitle,""),t.undef(i.imageAlign,"");var r=t.undef(i.showRemote,!0),l=t.undef(i.showLocal,!0),f=t.undef(i.tabIndex,0),m=i.clickFn,g="kindeditor_upload_iframe_"+(new Date).getTime(),v=[];for(var b in u)v.push('<input type="hidden" name="'+b+'" value="'+u[b]+'" />');var _,y=['<div style="padding:20px;">','<div class="tabs"></div>','<div class="tab1" style="display:none;">','<div class="ke-dialog-row">','<label for="remoteUrl" style="width:60px;">'+p.remoteUrl+"</label>",'<input type="text" id="remoteUrl" class="ke-input-text" name="url" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+p.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="remoteWidth" style="width:60px;">'+p.size+"</label>",p.width+' <input type="text" id="remoteWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> ',p.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> ','<img class="ke-refresh-btn" src="'+c+'refresh.png" width="16" height="16" alt="" style="cursor:pointer;" title="'+p.resetSize+'" />',"</div>",'<div class="ke-dialog-row">','<label style="width:60px;">'+p.align+"</label>",'<input type="radio" name="align" class="ke-inline-block" value="" checked="checked" /> <img name="defaultImg" src="'+IMAGE_ALIGN_TOP+'" width="23" height="25" alt="" />',' <input type="radio" name="align" class="ke-inline-block" value="left" /> <img name="leftImg" src="'+IMAGE_ALIGN_LEFT+'" width="23" height="25" alt="" />',' <input type="radio" name="align" class="ke-inline-block" value="right" /> <img name="rightImg" src="'+IMAGE_ALIGN_RIGHT+'" width="23" height="25" alt="" />',"</div>",'<div class="ke-dialog-row">','<label for="remoteTitle" style="width:60px;">'+p.imgTitle+"</label>",'<input type="text" id="remoteTitle" class="ke-input-text" name="title" value="" style="width:200px;" />',"</div>","</div>",'<div class="tab2" style="display:none;">','<iframe name="'+g+'" style="display:none;"></iframe>','<form class="ke-upload-area ke-form" method="post" enctype="multipart/form-data" target="'+g+'" action="'+t.addParam(s,"dir=image")+'">','<div class="ke-dialog-row">',v.join(""),'<label style="width:60px;">'+p.localUrl+"</label>",'<input type="text" name="localUrl" class="ke-input-text" tabindex="-1" style="width:200px;" readonly="true" /> ','<input type="button" class="ke-upload-button" value="'+p.upload+'" />',"</div>","</form>","</div>","</div>"].join(""),w=l||a?450:400,x=l&&r?300:250,k=e.createDialog({name:n,width:w,height:x,title:e.lang(n),body:y,yesBtn:{name:e.lang("yes"),click:function(n){if(!k.isLoading){if(l&&r&&_&&1===_.selectedIndex||!r)return""==L.fileBox.val()?void alert(e.lang("pleaseSelectFile")):(k.showLoading(e.lang("uploadLoading")),L.submit(),void C.val(""));var i=t.trim(D.val()),o=A.val(),a=T.val(),s=F.val(),c="";return $.each((function(){if(this.checked)return c=this.value,!1})),"http://"==i||t.invalidUrl(i)?(alert(e.lang("invalidUrl")),void D[0].focus()):/^\d*$/.test(o)?/^\d*$/.test(a)?void m.call(e,i,s,o,a,0,c):(alert(e.lang("invalidHeight")),void T[0].focus()):(alert(e.lang("invalidWidth")),void A[0].focus())}}},beforeRemove:function(){E.unbind(),A.unbind(),T.unbind(),B.unbind()}}),S=k.div,D=t('[name="url"]',S),C=t('[name="localUrl"]',S),E=t('[name="viewServer"]',S),A=t('.tab1 [name="width"]',S),T=t('.tab1 [name="height"]',S),B=t(".ke-refresh-btn",S),F=t('.tab1 [name="title"]',S),$=t('.tab1 [name="align"]',S);r&&l?(_=t.tabs({src:t(".tabs",S),afterSelect:function(t){}}),_.add({title:p.remoteImage,panel:t(".tab1",S)}),_.add({title:p.localImage,panel:t(".tab2",S)}),_.select(f)):r?t(".tab1",S).show():l&&t(".tab2",S).show();var L=t.uploadbutton({button:t(".ke-upload-button",S)[0],fieldName:d,form:t(".ke-form",S),target:g,width:60,afterUpload:function(i){if(k.hideLoading(),0===i.error){var r=i.url;o&&(r=t.formatUrl(r,"absolute")),e.afterUpload&&e.afterUpload.call(e,r,i,n),h?(t(".ke-dialog-row #remoteUrl",S).val(r),t(".ke-tabs-li",S)[0].click(),t(".ke-refresh-btn",S).click()):m.call(e,r,i.title,i.width,i.height,i.border,i.align)}else alert(i.message)},afterError:function(t){k.hideLoading(),e.errorDialog(t)}});L.fileBox.change((function(t){C.val(L.fileBox.val())})),a?E.click((function(e){$app.$upload({success:function(e){Array.isArray(e)&&(e=e[0]),t('[name="url"]',S).val(e.path)}})})):E.hide();var M=0,P=0;function I(t,e){A.val(t),T.val(e),M=t,P=e}return B.click((function(e){var n=t('<img src="'+D.val()+'" />',document).css({position:"absolute",visibility:"hidden",top:0,left:"-1000px"});n.bind("load",(function(){I(n.width(),n.height()),n.remove()})),t(document.body).append(n)})),A.change((function(t){M>0&&T.val(Math.round(P/M*parseInt(this.value,10)))})),T.change((function(t){P>0&&A.val(Math.round(M/P*parseInt(this.value,10)))})),D.val(i.imageUrl),F.val(i.imageTitle),$.each((function(){if(this.value===i.imageAlign)return this.checked=!0,!1})),r&&0===f&&(D[0].focus(),D[0].select()),k},e.plugin.image={edit:function(){var t=e.plugin.getSelectedImage();e.plugin.imageDialog({imageUrl:t?t.attr("data-ke-src"):"http://",imageWidth:t?t.width():"",imageHeight:t?t.height():"",imageTitle:t?t.attr("title"):"",imageAlign:t?t.attr("align"):"",showRemote:r,showLocal:i,tabIndex:t?0:l,clickFn:function(n,i,r,o,a,s){t?(t.attr("src",n),t.attr("data-ke-src",n),t.attr("width",r),t.attr("height",o),t.attr("title",i),t.attr("align",s),t.attr("alt",i)):e.exec("insertimage",n,i,r,o,a,s),setTimeout((function(){e.hideDialog().focus()}),0)}})},delete:function(){var t=e.plugin.getSelectedImage();"a"==t.parent().name&&(t=t.parent()),t.remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.image.edit)})),KindEditor.plugin("insertfile",(function(t){var e=this,n="insertfile",i=t.undef(e.allowFileUpload,!0),r=t.undef(e.allowFileManager,!1),o=t.undef(e.formatUploadUrl,!0),a=t.undef(e.uploadJson,e.basePath+"php/upload_json.php"),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=e.lang(n+".");e.plugin.fileDialog=function(u){var d=t.undef(u.fileUrl,"http://"),h=t.undef(u.fileTitle,""),p=u.clickFn,f=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+c.url+"</label>",'<input type="text" id="keUrl" name="url" class="ke-input-text" style="width:160px;" /> ','<input type="button" class="ke-upload-button" value="'+c.upload+'" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+c.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keTitle" style="width:60px;">'+c.title+"</label>",'<input type="text" id="keTitle" class="ke-input-text" name="title" value="" style="width:160px;" /></div>',"</div>","</form>","</div>"].join(""),m=e.createDialog({name:n,width:450,title:e.lang(n),body:f,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(v.val()),r=_.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void v[0].focus();""===t.trim(r)&&(r=i),p.call(e,i,r)}}}),g=m.div,v=t('[name="url"]',g),b=t('[name="viewServer"]',g),_=t('[name="title"]',g);if(i){var y=t.uploadbutton({button:t(".ke-upload-button",g)[0],fieldName:l,url:t.addParam(a,"dir=file"),extraParams:s,afterUpload:function(i){if(m.hideLoading(),0===i.error){var r=i.url;o&&(r=t.formatUrl(r,"absolute")),v.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){m.hideLoading(),e.errorDialog(t)}});y.fileBox.change((function(t){m.showLoading(e.lang("uploadLoading")),y.submit()}))}else t(".ke-upload-button",g).hide();r?b.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"file",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',g).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):b.hide(),v.val(d),_.val(h),v[0].focus(),v[0].select()},e.clickToolbar(n,(function(){e.plugin.fileDialog({clickFn:function(t,n){var i='<a class="ke-insertfile" href="'+t+'" data-ke-src="'+t+'" target="_blank">'+n+"</a>";e.insertHtml(i).hideDialog().focus()}})}))})),KindEditor.plugin("lineheight",(function(t){var e=this,n="lineheight",i=e.lang(n+".");e.clickToolbar(n,(function(){var r="",o=e.cmd.commonNode({"*":".line-height"});o&&(r=o.css("line-height"));var a=e.createMenu({name:n,width:150});t.each(i.lineHeight,(function(n,i){t.each(i,(function(t,n){a.addItem({title:n,checked:r===t,click:function(){e.cmd.toggle('<span style="line-height:'+t+';"></span>',{span:".line-height="+t}),e.updateState(),e.addBookmark(),e.hideMenu()}})}))}))}))})),KindEditor.plugin("link",(function(t){var e=this,n="link";e.plugin.link={edit:function(){var i=e.lang(n+"."),r='<div style="padding:20px;"><div class="ke-dialog-row"><label for="keUrl" style="width:60px;">'+i.url+'</label><input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:260px;" /></div><div class="ke-dialog-row""><label for="keType" style="width:60px;">'+i.linkType+'</label><select id="keType" name="type"></select></div></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(s.val());if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void s[0].focus();e.exec("createlink",i,l.val()).hideDialog().focus()}}}),a=o.div,s=t('input[name="url"]',a),l=t('select[name="type"]',a);s.val("http://"),l[0].options[0]=new Option(i.newWindow,"_blank"),l[0].options[1]=new Option(i.selfWindow,""),e.cmd.selection();var c=e.plugin.getSelectedLink();c&&(e.cmd.range.selectNode(c[0]),e.cmd.select(),s.val(c.attr("data-ke-src")),l.val(c.attr("target"))),s[0].focus(),s[0].select()},delete:function(){e.exec("unlink",null)}},e.clickToolbar(n,e.plugin.link.edit)})),KindEditor.plugin("media",(function(t){var e=this,n="media",i=e.lang(n+"."),r=t.undef(e.allowMediaUpload,!0),o=t.undef(e.allowFileManager,!1),a=t.undef(e.formatUploadUrl,!0),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=t.undef(e.uploadJson,e.basePath+"php/upload_json.php");e.plugin.media={edit:function(){var u=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+i.url+"</label>",'<input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:160px;" /> ','<input type="button" class="ke-upload-button" value="'+i.upload+'" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+i.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:60px;">'+i.width+"</label>",'<input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="550" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keHeight" style="width:60px;">'+i.height+"</label>",'<input type="text" id="keHeight" class="ke-input-text ke-input-number" name="height" value="400" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keAutostart">'+i.autostart+"</label>",'<input type="checkbox" id="keAutostart" name="autostart" value="" /> ',"</div>","</div>"].join(""),d=e.createDialog({name:n,width:450,height:230,title:e.lang(n),body:u,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(p.val()),r=m.val(),o=g.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void p[0].focus();if(!/^\d*$/.test(r))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(o))return alert(e.lang("invalidHeight")),void g[0].focus();var a=t.mediaImg(e.themesPath+"common/blank.gif",{src:i,type:t.mediaType(i),width:r,height:o,autostart:v[0].checked?"true":"false",loop:"true"});e.insertHtml(a).hideDialog().focus()}}}),h=d.div,p=t('[name="url"]',h),f=t('[name="viewServer"]',h),m=t('[name="width"]',h),g=t('[name="height"]',h),v=t('[name="autostart"]',h);if(p.val("http://"),r){var b=t.uploadbutton({button:t(".ke-upload-button",h)[0],fieldName:l,extraParams:s,url:t.addParam(c,"dir=media"),afterUpload:function(i){if(d.hideLoading(),0===i.error){var r=i.url;a&&(r=t.formatUrl(r,"absolute")),p.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){d.hideLoading(),e.errorDialog(t)}});b.fileBox.change((function(t){d.showLoading(e.lang("uploadLoading")),b.submit()}))}else t(".ke-upload-button",h).hide();o?f.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"media",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',h).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):f.hide();var _=e.plugin.getSelectedMedia();if(_){var y=t.mediaAttrs(_.attr("data-ke-tag"));p.val(y.src),m.val(t.removeUnit(_.css("width"))||y.width||0),g.val(t.removeUnit(_.css("height"))||y.height||0),v[0].checked="true"===y.autostart}p[0].focus(),p[0].select()},delete:function(){e.plugin.getSelectedMedia().remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.media.edit)})),function(t){function e(t){this.init(t)}t.extend(e,{init:function(e){var n=this;function i(e,n){t(".ke-status > div",e).hide(),t(".ke-message",e).addClass("ke-error").show().html(t.escape(n))}e.afterError=e.afterError||function(t){alert(t)},n.options=e,n.progressbars={},n.div=t(e.container).html(['<div class="ke-swfupload">','<div class="ke-swfupload-top">','<div class="ke-inline-block ke-swfupload-button">','<input type="button" value="Browse" />',"</div>",'<div class="ke-inline-block ke-swfupload-desc">'+e.uploadDesc+"</div>",'<span class="ke-button-common ke-button-outer ke-swfupload-startupload">','<input type="button" class="ke-button-common ke-button" value="'+e.startButtonValue+'" />',"</span>","</div>",'<div class="ke-swfupload-body"></div>',"</div>"].join("")),n.bodyDiv=t(".ke-swfupload-body",n.div);var r={debug:!1,upload_url:e.uploadUrl,flash_url:e.flashUrl,file_post_name:e.filePostName,button_placeholder:t(".ke-swfupload-button > input",n.div)[0],button_image_url:e.buttonImageUrl,button_width:e.buttonWidth,button_height:e.buttonHeight,button_cursor:SWFUpload.CURSOR.HAND,file_types:e.fileTypes,file_types_description:e.fileTypesDesc,file_upload_limit:e.fileUploadLimit,file_size_limit:e.fileSizeLimit,post_params:e.postParams,file_queued_handler:function(t){t.url=n.options.fileIconUrl,n.appendFile(t)},file_queue_error_handler:function(n,i,r){var o="";switch(i){case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED:o=e.queueLimitExceeded;break;case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:o=e.fileExceedsSizeLimit;break;case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:o=e.zeroByteFile;break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:o=e.invalidFiletype;break;default:o=e.unknownError;break}t.DEBUG&&alert(o)},upload_start_handler:function(e){var n=this,i=t('div[data-id="'+e.id+'"]',n.bodyDiv);t(".ke-status > div",i).hide(),t(".ke-progressbar",i).show()},upload_progress_handler:function(t,e,i){var r=Math.round(100*e/i),o=n.progressbars[t.id];o.bar.css("width",Math.round(80*r/100)+"px"),o.percent.html(r+"%")},upload_error_handler:function(e,r,o){if(e&&e.filestatus==SWFUpload.FILE_STATUS.ERROR){var a=t('div[data-id="'+e.id+'"]',n.bodyDiv).eq(0);i(a,n.options.errorMessage)}},upload_success_handler:function(e,r){var o=t('div[data-id="'+e.id+'"]',n.bodyDiv).eq(0),a={};try{a=t.json(r)}catch(s){n.options.afterError.call(this,"<!doctype html><html>"+r+"</html>")}0===a.error?(e.url=a.url,t(".ke-img",o).attr("src",e.url).attr("data-status",e.filestatus).data("data",a),t(".ke-status > div",o).hide()):i(o,t.DEBUG?a.message:n.options.errorMessage)}};n.swfu=new SWFUpload(r),t(".ke-swfupload-startupload input",n.div).click((function(){n.swfu.startUpload()}))},getUrlList:function(){var e=[];return t(".ke-img",self.bodyDiv).each((function(){var n=t(this),i=n.attr("data-status");i==SWFUpload.FILE_STATUS.COMPLETE&&e.push(n.data("data"))})),e},removeFile:function(e){var n=this;n.swfu.cancelUpload(e);var i=t('div[data-id="'+e+'"]',n.bodyDiv);t(".ke-photo",i).unbind(),t(".ke-delete",i).unbind(),i.remove()},removeFiles:function(){var e=this;t(".ke-item",e.bodyDiv).each((function(){e.removeFile(t(this).attr("data-id"))}))},appendFile:function(e){var n=this,i=t('<div class="ke-inline-block ke-item" data-id="'+e.id+'"></div>');n.bodyDiv.append(i);var r=t('<div class="ke-inline-block ke-photo"></div>').mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));i.append(r);var o=t('<img src="'+e.url+'" class="ke-img" data-status="'+e.filestatus+'" width="80" height="80" alt="'+e.name+'" />');r.append(o),t('<span class="ke-delete"></span>').appendTo(r).click((function(){n.removeFile(e.id)}));var a=t('<div class="ke-status"></div>').appendTo(r);t(['<div class="ke-progressbar">','<div class="ke-progressbar-bar"><div class="ke-progressbar-bar-inner"></div></div>','<div class="ke-progressbar-percent">0%</div></div>'].join("")).hide().appendTo(a),t('<div class="ke-message">'+n.options.pendingMessage+"</div>").appendTo(a),i.append('<div class="ke-name">'+e.name+"</div>"),n.progressbars[e.id]={bar:t(".ke-progressbar-bar-inner",r),percent:t(".ke-progressbar-percent",r)}},remove:function(){this.removeFiles(),this.swfu.destroy(),this.div.html("")}}),t.swfupload=function(t,n){return new e(t,n)}}(KindEditor),KindEditor.plugin("multiimage",(function(t){var e=this,n="multiimage",i=(t.undef(e.formatUploadUrl,!0),t.undef(e.uploadJson,e.basePath+"php/upload_json.php")),r=e.pluginsPath+"multiimage/images/",o=t.undef(e.imageSizeLimit,"1MB"),a=(t.undef(e.imageFileTypes,"*.jpg;*.gif;*.png"),t.undef(e.imageUploadLimit,20)),s=t.undef(e.filePostName,"imgFile"),l=e.lang(n+".");e.plugin.multiImageDialog=function(c){var u=c.clickFn,d=t.tmpl(l.uploadDesc,{uploadLimit:a,sizeLimit:o}),h=['<div style="padding:20px;">','<div class="swfupload">',"</div>","</div>"].join(""),p=e.createDialog({name:n,width:650,height:510,title:e.lang(n),body:h,previewBtn:{name:l.insertAll,click:function(t){u.call(e,m.getUrlList())}},yesBtn:{name:l.clearAll,click:function(t){m.removeFiles()}},beforeRemove:function(){(!t.IE||t.V<=8)&&m.remove()}}),f=p.div,m=t.swfupload({container:t(".swfupload",f),buttonImageUrl:r+("zh-CN"==e.langType?"select-files-zh-CN.png":"select-files-en.png"),buttonWidth:"zh-CN"==e.langType?72:88,buttonHeight:23,fileIconUrl:r+"image.png",uploadDesc:d,startButtonValue:l.startUpload,uploadUrl:t.addParam(i,"dir=image"),flashUrl:r+"swfupload.swf",filePostName:s,fileTypes:"*.jpg;*.jpeg;*.gif;*.png;*.bmp",fileTypesDesc:"Image Files",fileUploadLimit:a,fileSizeLimit:o,postParams:t.undef(e.extraFileUploadParams,{}),queueLimitExceeded:l.queueLimitExceeded,fileExceedsSizeLimit:l.fileExceedsSizeLimit,zeroByteFile:l.zeroByteFile,invalidFiletype:l.invalidFiletype,unknownError:l.unknownError,pendingMessage:l.pending,errorMessage:l.uploadError,afterError:function(t){e.errorDialog(t)}});return p},e.clickToolbar(n,(function(){e.plugin.multiImageDialog({clickFn:function(n){0!==n.length&&(t.each(n,(function(t,n){e.afterUpload&&e.afterUpload.call(e,n.url,n,"multiimage"),e.exec("insertimage",n.url,n.title,n.width,n.height,n.border,n.align)})),setTimeout((function(){e.hideDialog().focus()}),0))}})}))})),function(){window.SWFUpload=function(t){this.initSWFUpload(t)},SWFUpload.prototype.initSWFUpload=function(t){try{this.customSettings={},this.settings=t,this.eventQueue=[],this.movieName="KindEditor_SWFUpload_"+SWFUpload.movieCount++,this.movieElement=null,SWFUpload.instances[this.movieName]=this,this.initSettings(),this.loadFlash(),this.displayDebugInfo()}catch(e){throw delete SWFUpload.instances[this.movieName],e}},SWFUpload.instances={},SWFUpload.movieCount=0,SWFUpload.version="2.2.0 2009-03-25",SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130},SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290},SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5},SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120},SWFUpload.CURSOR={ARROW:-1,HAND:-2},SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"},SWFUpload.completeURL=function(t){if("string"!==typeof t||t.match(/^https?:\/\//i)||t.match(/^\//))return t;window.location.protocol,window.location.hostname,window.location.port&&window.location.port;var e=window.location.pathname.lastIndexOf("/");return path=e<=0?"/":window.location.pathname.substr(0,e)+"/",path+t},SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(t,e){this.settings[t]=void 0==this.settings[t]?e:this.settings[t]},this.ensureDefault("upload_url",""),this.ensureDefault("preserve_relative_urls",!1),this.ensureDefault("file_post_name","Filedata"),this.ensureDefault("post_params",{}),this.ensureDefault("use_query_string",!1),this.ensureDefault("requeue_on_error",!1),this.ensureDefault("http_success",[]),this.ensureDefault("assume_success_timeout",0),this.ensureDefault("file_types","*.*"),this.ensureDefault("file_types_description","All Files"),this.ensureDefault("file_size_limit",0),this.ensureDefault("file_upload_limit",0),this.ensureDefault("file_queue_limit",0),this.ensureDefault("flash_url","swfupload.swf"),this.ensureDefault("prevent_swf_caching",!0),this.ensureDefault("button_image_url",""),this.ensureDefault("button_width",1),this.ensureDefault("button_height",1),this.ensureDefault("button_text",""),this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;"),this.ensureDefault("button_text_top_padding",0),this.ensureDefault("button_text_left_padding",0),this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES),this.ensureDefault("button_disabled",!1),this.ensureDefault("button_placeholder_id",""),this.ensureDefault("button_placeholder",null),this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW),this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW),this.ensureDefault("debug",!1),this.settings.debug_enabled=this.settings.debug,this.settings.return_upload_start_handler=this.returnUploadStart,this.ensureDefault("swfupload_loaded_handler",null),this.ensureDefault("file_dialog_start_handler",null),this.ensureDefault("file_queued_handler",null),this.ensureDefault("file_queue_error_handler",null),this.ensureDefault("file_dialog_complete_handler",null),this.ensureDefault("upload_start_handler",null),this.ensureDefault("upload_progress_handler",null),this.ensureDefault("upload_error_handler",null),this.ensureDefault("upload_success_handler",null),this.ensureDefault("upload_complete_handler",null),this.ensureDefault("debug_handler",this.debugMessage),this.ensureDefault("custom_settings",{}),this.customSettings=this.settings.custom_settings,this.settings.prevent_swf_caching&&(this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+(new Date).getTime()),this.settings.preserve_relative_urls||(this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url),this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)),delete this.ensureDefault},SWFUpload.prototype.loadFlash=function(){var t,e;if(null!==document.getElementById(this.movieName))throw"ID "+this.movieName+" is already in use. The Flash Object could not be added";if(t=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder,void 0==t)throw"Could not find the placeholder element: "+this.settings.button_placeholder_id;e=document.createElement("div"),e.innerHTML=this.getFlashHTML(),t.parentNode.replaceChild(e.firstChild,t),void 0==window[this.movieName]&&(window[this.movieName]=this.getMovieElement())},SWFUpload.prototype.getFlashHTML=function(){var t="";return KindEditor.IE&&KindEditor.V>8&&(t=' classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'),['<object id="',this.movieName,'"'+t+' type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',this.settings.flash_url,'" />','<param name="quality" value="high" />','<param name="menu" value="false" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")},SWFUpload.prototype.getFlashVars=function(){var t=this.buildParamString(),e=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&uploadURL=",encodeURIComponent(this.settings.upload_url),"&useQueryString=",encodeURIComponent(this.settings.use_query_string),"&requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&httpSuccess=",encodeURIComponent(e),"&assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&params=",encodeURIComponent(t),"&filePostName=",encodeURIComponent(this.settings.file_post_name),"&fileTypes=",encodeURIComponent(this.settings.file_types),"&fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&buttonWidth=",encodeURIComponent(this.settings.button_width),"&buttonHeight=",encodeURIComponent(this.settings.button_height),"&buttonText=",encodeURIComponent(this.settings.button_text),"&buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&buttonAction=",encodeURIComponent(this.settings.button_action),"&buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")},SWFUpload.prototype.getMovieElement=function(){if(void 0==this.movieElement&&(this.movieElement=document.getElementById(this.movieName)),null===this.movieElement)throw"Could not find Flash element";return this.movieElement},SWFUpload.prototype.buildParamString=function(){var t=this.settings.post_params,e=[];if("object"===typeof t)for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n.toString())+"="+encodeURIComponent(t[n].toString()));return e.join("&")},SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,!1);var t=null;if(t=this.getMovieElement(),t&&"unknown"===typeof t.CallFunction){for(var e in t)try{"function"===typeof t[e]&&(t[e]=null)}catch(n){}try{t.parentNode.removeChild(t)}catch(i){}}return window[this.movieName]=null,SWFUpload.instances[this.movieName]=null,delete SWFUpload.instances[this.movieName],this.movieElement=null,this.settings=null,this.customSettings=null,this.eventQueue=null,this.movieName=null,!0}catch(r){return!1}},SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url: ",this.settings.upload_url,"\n","\t","flash_url: ",this.settings.flash_url,"\n","\t","use_query_string: ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error: ",this.settings.requeue_on_error.toString(),"\n","\t","http_success: ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout: ",this.settings.assume_success_timeout,"\n","\t","file_post_name: ",this.settings.file_post_name,"\n","\t","post_params: ",this.settings.post_params.toString(),"\n","\t","file_types: ",this.settings.file_types,"\n","\t","file_types_description: ",this.settings.file_types_description,"\n","\t","file_size_limit: ",this.settings.file_size_limit,"\n","\t","file_upload_limit: ",this.settings.file_upload_limit,"\n","\t","file_queue_limit: ",this.settings.file_queue_limit,"\n","\t","debug: ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching: ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id: ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder: ",this.settings.button_placeholder?"Set":"Not Set","\n","\t","button_image_url: ",this.settings.button_image_url.toString(),"\n","\t","button_width: ",this.settings.button_width.toString(),"\n","\t","button_height: ",this.settings.button_height.toString(),"\n","\t","button_text: ",this.settings.button_text.toString(),"\n","\t","button_text_style: ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding: ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action: ",this.settings.button_action.toString(),"\n","\t","button_disabled: ",this.settings.button_disabled.toString(),"\n","\t","custom_settings: ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned: ",("function"===typeof this.settings.swfupload_loaded_handler).toString(),"\n","\t","file_dialog_start_handler assigned: ",("function"===typeof this.settings.file_dialog_start_handler).toString(),"\n","\t","file_queued_handler assigned: ",("function"===typeof this.settings.file_queued_handler).toString(),"\n","\t","file_queue_error_handler assigned: ",("function"===typeof this.settings.file_queue_error_handler).toString(),"\n","\t","upload_start_handler assigned: ",("function"===typeof this.settings.upload_start_handler).toString(),"\n","\t","upload_progress_handler assigned: ",("function"===typeof this.settings.upload_progress_handler).toString(),"\n","\t","upload_error_handler assigned: ",("function"===typeof this.settings.upload_error_handler).toString(),"\n","\t","upload_success_handler assigned: ",("function"===typeof this.settings.upload_success_handler).toString(),"\n","\t","upload_complete_handler assigned: ",("function"===typeof this.settings.upload_complete_handler).toString(),"\n","\t","debug_handler assigned: ",("function"===typeof this.settings.debug_handler).toString(),"\n"].join(""))},SWFUpload.prototype.addSetting=function(t,e,n){return this.settings[t]=void 0==e?n:e},SWFUpload.prototype.getSetting=function(t){return void 0!=this.settings[t]?this.settings[t]:""},SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement(),returnValue,returnString;try{returnString=movieElement.CallFunction('<invoke name="'+functionName+'" returntype="javascript">'+__flash__argumentsToXML(argumentArray,0)+"</invoke>"),returnValue=eval(returnString)}catch(ex){throw"Call to "+functionName+" failed"}return void 0!=returnValue&&"object"===typeof returnValue.post&&(returnValue=this.unescapeFilePostParams(returnValue)),returnValue},SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")},SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")},SWFUpload.prototype.startUpload=function(t){this.callFlash("StartUpload",[t])},SWFUpload.prototype.cancelUpload=function(t,e){!1!==e&&(e=!0),this.callFlash("CancelUpload",[t,e])},SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")},SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")},SWFUpload.prototype.setStats=function(t){this.callFlash("SetStats",[t])},SWFUpload.prototype.getFile=function(t){return"number"===typeof t?this.callFlash("GetFileByIndex",[t]):this.callFlash("GetFile",[t])},SWFUpload.prototype.addFileParam=function(t,e,n){return this.callFlash("AddFileParam",[t,e,n])},SWFUpload.prototype.removeFileParam=function(t,e){this.callFlash("RemoveFileParam",[t,e])},SWFUpload.prototype.setUploadURL=function(t){this.settings.upload_url=t.toString(),this.callFlash("SetUploadURL",[t])},SWFUpload.prototype.setPostParams=function(t){this.settings.post_params=t,this.callFlash("SetPostParams",[t])},SWFUpload.prototype.addPostParam=function(t,e){this.settings.post_params[t]=e,this.callFlash("SetPostParams",[this.settings.post_params])},SWFUpload.prototype.removePostParam=function(t){delete this.settings.post_params[t],this.callFlash("SetPostParams",[this.settings.post_params])},SWFUpload.prototype.setFileTypes=function(t,e){this.settings.file_types=t,this.settings.file_types_description=e,this.callFlash("SetFileTypes",[t,e])},SWFUpload.prototype.setFileSizeLimit=function(t){this.settings.file_size_limit=t,this.callFlash("SetFileSizeLimit",[t])},SWFUpload.prototype.setFileUploadLimit=function(t){this.settings.file_upload_limit=t,this.callFlash("SetFileUploadLimit",[t])},SWFUpload.prototype.setFileQueueLimit=function(t){this.settings.file_queue_limit=t,this.callFlash("SetFileQueueLimit",[t])},SWFUpload.prototype.setFilePostName=function(t){this.settings.file_post_name=t,this.callFlash("SetFilePostName",[t])},SWFUpload.prototype.setUseQueryString=function(t){this.settings.use_query_string=t,this.callFlash("SetUseQueryString",[t])},SWFUpload.prototype.setRequeueOnError=function(t){this.settings.requeue_on_error=t,this.callFlash("SetRequeueOnError",[t])},SWFUpload.prototype.setHTTPSuccess=function(t){"string"===typeof t&&(t=t.replace(" ","").split(",")),this.settings.http_success=t,this.callFlash("SetHTTPSuccess",[t])},SWFUpload.prototype.setAssumeSuccessTimeout=function(t){this.settings.assume_success_timeout=t,this.callFlash("SetAssumeSuccessTimeout",[t])},SWFUpload.prototype.setDebugEnabled=function(t){this.settings.debug_enabled=t,this.callFlash("SetDebugEnabled",[t])},SWFUpload.prototype.setButtonImageURL=function(t){void 0==t&&(t=""),this.settings.button_image_url=t,this.callFlash("SetButtonImageURL",[t])},SWFUpload.prototype.setButtonDimensions=function(t,e){this.settings.button_width=t,this.settings.button_height=e;var n=this.getMovieElement();void 0!=n&&(n.style.width=t+"px",n.style.height=e+"px"),this.callFlash("SetButtonDimensions",[t,e])},SWFUpload.prototype.setButtonText=function(t){this.settings.button_text=t,this.callFlash("SetButtonText",[t])},SWFUpload.prototype.setButtonTextPadding=function(t,e){this.settings.button_text_top_padding=e,this.settings.button_text_left_padding=t,this.callFlash("SetButtonTextPadding",[t,e])},SWFUpload.prototype.setButtonTextStyle=function(t){this.settings.button_text_style=t,this.callFlash("SetButtonTextStyle",[t])},SWFUpload.prototype.setButtonDisabled=function(t){this.settings.button_disabled=t,this.callFlash("SetButtonDisabled",[t])},SWFUpload.prototype.setButtonAction=function(t){this.settings.button_action=t,this.callFlash("SetButtonAction",[t])},SWFUpload.prototype.setButtonCursor=function(t){this.settings.button_cursor=t,this.callFlash("SetButtonCursor",[t])},SWFUpload.prototype.queueEvent=function(t,e){void 0==e?e=[]:e instanceof Array||(e=[e]);var n=this;if("function"===typeof this.settings[t])this.eventQueue.push((function(){this.settings[t].apply(this,e)})),setTimeout((function(){n.executeNextEvent()}),0);else if(null!==this.settings[t])throw"Event handler "+t+" is unknown or is not a function"},SWFUpload.prototype.executeNextEvent=function(){var t=this.eventQueue?this.eventQueue.shift():null;"function"===typeof t&&t.apply(this)},SWFUpload.prototype.unescapeFilePostParams=function(t){var e,n=/[$]([0-9a-f]{4})/i,i={};if(void 0!=t){for(var r in t.post)if(t.post.hasOwnProperty(r)){var o;e=r;while(null!==(o=n.exec(e)))e=e.replace(o[0],String.fromCharCode(parseInt("0x"+o[1],16)));i[e]=t.post[r]}t.post=i}return t},SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface")}catch(t){return!1}},SWFUpload.prototype.flashReady=function(){var t=this.getMovieElement();t?(this.cleanUp(t),this.queueEvent("swfupload_loaded_handler")):this.debug("Flash called back ready but the flash movie can't be found.")},SWFUpload.prototype.cleanUp=function(t){try{if(this.movieElement&&"unknown"===typeof t.CallFunction)for(var e in this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)"),t)try{"function"===typeof t[e]&&(t[e]=null)}catch(n){}}catch(i){}window["__flash__removeCallback"]=function(t,e){try{t&&(t[e]=null)}catch(n){}}},SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")},SWFUpload.prototype.fileQueued=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("file_queued_handler",t)},SWFUpload.prototype.fileQueueError=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("file_queue_error_handler",[t,e,n])},SWFUpload.prototype.fileDialogComplete=function(t,e,n){this.queueEvent("file_dialog_complete_handler",[t,e,n])},SWFUpload.prototype.uploadStart=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("return_upload_start_handler",t)},SWFUpload.prototype.returnUploadStart=function(t){var e;if("function"===typeof this.settings.upload_start_handler)t=this.unescapeFilePostParams(t),e=this.settings.upload_start_handler.call(this,t);else if(void 0!=this.settings.upload_start_handler)throw"upload_start_handler must be a function";void 0===e&&(e=!0),e=!!e,this.callFlash("ReturnUploadStart",[e])},SWFUpload.prototype.uploadProgress=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_progress_handler",[t,e,n])},SWFUpload.prototype.uploadError=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_error_handler",[t,e,n])},SWFUpload.prototype.uploadSuccess=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_success_handler",[t,e,n])},SWFUpload.prototype.uploadComplete=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("upload_complete_handler",t)},SWFUpload.prototype.debug=function(t){this.queueEvent("debug_handler",t)},SWFUpload.prototype.debugMessage=function(t){if(this.settings.debug){var e,n=[];if("object"===typeof t&&"string"===typeof t.name&&"string"===typeof t.message){for(var i in t)t.hasOwnProperty(i)&&n.push(i+": "+t[i]);e=n.join("\n")||"",n=e.split("\n"),e="EXCEPTION: "+n.join("\nEXCEPTION: "),SWFUpload.Console.writeLine(e)}else SWFUpload.Console.writeLine(t)}},SWFUpload.Console={},SWFUpload.Console.writeLine=function(t){var e,n;try{e=document.getElementById("SWFUpload_Console"),e||(n=document.createElement("form"),document.getElementsByTagName("body")[0].appendChild(n),e=document.createElement("textarea"),e.id="SWFUpload_Console",e.style.fontFamily="monospace",e.setAttribute("wrap","off"),e.wrap="off",e.style.overflow="auto",e.style.width="700px",e.style.height="350px",e.style.margin="5px",n.appendChild(e)),e.value+=t+"\n",e.scrollTop=e.scrollHeight-e.clientHeight}catch(i){alert("Exception: "+i.name+" Message: "+i.message)}}}(),function(){"function"===typeof SWFUpload&&(SWFUpload.queue={},SWFUpload.prototype.initSettings=function(t){return function(){"function"===typeof t&&t.call(this),this.queueSettings={},this.queueSettings.queue_cancelled_flag=!1,this.queueSettings.queue_upload_count=0,this.queueSettings.user_upload_complete_handler=this.settings.upload_complete_handler,this.queueSettings.user_upload_start_handler=this.settings.upload_start_handler,this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler,this.settings.upload_start_handler=SWFUpload.queue.uploadStartHandler,this.settings.queue_complete_handler=this.settings.queue_complete_handler||null}}(SWFUpload.prototype.initSettings),SWFUpload.prototype.startUpload=function(t){this.queueSettings.queue_cancelled_flag=!1,this.callFlash("StartUpload",[t])},SWFUpload.prototype.cancelQueue=function(){this.queueSettings.queue_cancelled_flag=!0,this.stopUpload();var t=this.getStats();while(t.files_queued>0)this.cancelUpload(),t=this.getStats()},SWFUpload.queue.uploadStartHandler=function(t){var e;return"function"===typeof this.queueSettings.user_upload_start_handler&&(e=this.queueSettings.user_upload_start_handler.call(this,t)),e=!1!==e,this.queueSettings.queue_cancelled_flag=!e,e},SWFUpload.queue.uploadCompleteHandler=function(t){var e,n=this.queueSettings.user_upload_complete_handler;if(t.filestatus===SWFUpload.FILE_STATUS.COMPLETE&&this.queueSettings.queue_upload_count++,e="function"===typeof n?!1!==n.call(this,t):t.filestatus!==SWFUpload.FILE_STATUS.QUEUED,e){var i=this.getStats();i.files_queued>0&&!1===this.queueSettings.queue_cancelled_flag?this.startUpload():!1===this.queueSettings.queue_cancelled_flag?(this.queueEvent("queue_complete_handler",[this.queueSettings.queue_upload_count]),this.queueSettings.queue_upload_count=0):(this.queueSettings.queue_cancelled_flag=!1,this.queueSettings.queue_upload_count=0)}})}(),KindEditor.plugin("pagebreak",(function(t){var e=this,n="pagebreak",i=t.undef(e.pagebreakHtml,'<hr style="page-break-after: always;" class="ke-pagebreak" />');e.clickToolbar(n,(function(){var n=e.cmd,r=n.range;e.focus();var o="br"==e.newlineTag||t.WEBKIT?"":'<span id="__kindeditor_tail_tag__"></span>';if(e.insertHtml(i+o),""!==o){var a=t("#__kindeditor_tail_tag__",e.edit.doc);r.selectNodeContents(a[0]),a.removeAttr("id"),n.select()}}))})),KindEditor.plugin("plainpaste",(function(t){var e=this,n="plainpaste";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r='<div style="padding:10px 20px;"><div style="margin-bottom:10px;">'+i.comment+'</div><textarea class="ke-textarea" style="width:408px;height:260px;"></textarea></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=a.val();i=t.escape(i),i=i.replace(/ {2}/g," "),i="p"==e.newlineTag?i.replace(/^/,"<p>").replace(/$/,"</p>").replace(/\n/g,"</p><p>"):i.replace(/\n/g,"<br />$&"),e.insertHtml(i).hideDialog().focus()}}}),a=t("textarea",o.div);a[0].focus()}))})),KindEditor.plugin("preview",(function(t){var e=this,n="preview";e.clickToolbar(n,(function(){e.lang(n+".");var i='<div style="padding:10px 20px;"><iframe class="ke-textarea" frameborder="0" style="width:708px;height:400px;"></iframe></div>',r=e.createDialog({name:n,width:750,title:e.lang(n),body:i}),o=t("iframe",r.div),a=t.iframeDoc(o);a.open(),a.write(e.fullHtml()),a.close(),t(a.body).css("background-color","#FFF"),o[0].contentWindow.focus()}))})),KindEditor.plugin("quickformat",(function(t){var e=this,n="quickformat",i=t.toMap("blockquote,center,div,h1,h2,h3,h4,h5,h6,p");function r(t){var e=t.first();while(e&&e.first())e=e.first();return e}e.clickToolbar(n,(function(){e.focus();var n,o=e.edit.doc,a=e.cmd.range,s=t(o.body).first(),l=[],c=[],u=a.createBookmark(!0);while(s){n=s.next();var d=r(s);d&&"img"==d.name||(i[s.name]?(s.html(s.html().replace(/^(\s| | )+/gi,"")),s.css("text-indent","2em")):c.push(s),(!n||i[n.name]||i[s.name]&&!i[n.name])&&(c.length>0&&l.push(c),c=[])),s=n}t.each(l,(function(e,n){var i=t('<p style="text-indent:2em;"></p>',o);n[0].before(i),t.each(n,(function(t,e){i.append(e)}))})),a.moveToBookmark(u),e.addBookmark()}))})),KindEditor.plugin("table",(function(t){var e=this,n="table",i=e.lang(n+"."),r="ke-zeroborder";function o(t,e){e=e.toUpperCase(),t.css("background-color",e),t.css("color","#000000"===e?"#FFFFFF":"#000000"),t.html(e)}var a=[];function s(n,i){function r(){t.each(a,(function(){this.remove()})),a=[],t(document).unbind("click,mousedown",r),n.unbind("click,mousedown",r)}i.bind("click,mousedown",(function(t){t.stopPropagation()})),i.click((function(i){r();var s=t(this),l=s.pos(),c=t.colorpicker({x:l.x,y:l.y+s.height(),z:811214,selectedColor:t(this).html(),colors:e.colorTable,noColor:e.lang("noColor"),shadowMode:e.shadowMode,click:function(t){o(s,t),r()}});a.push(c),t(document).bind("click,mousedown",r),n.bind("click,mousedown",r)}))}function l(t,e,n){for(var i=0,r=0,o=e.cells.length;r<o;r++){if(e.cells[r]==n)break;i+=e.cells[r].rowSpan-1}return n.cellIndex-i}e.plugin.table={prop:function(a){var l,c=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keRows" style="width:90px;">'+i.cells+"</label>",i.rows+' <input type="text" id="keRows" class="ke-input-text ke-input-number" name="rows" value="" maxlength="4" /> ',i.cols+' <input type="text" class="ke-input-text ke-input-number" name="cols" value="" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:90px;">'+i.size+"</label>",i.width+' <input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> ','<select name="widthType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select> ",i.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> ','<select name="heightType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="kePadding" style="width:90px;">'+i.space+"</label>",i.padding+' <input type="text" id="kePadding" class="ke-input-text ke-input-number" name="padding" value="" maxlength="4" /> ',i.spacing+' <input type="text" class="ke-input-text ke-input-number" name="spacing" value="" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keAlign" style="width:90px;">'+i.align+"</label>",'<select id="keAlign" name="align">','<option value="">'+i.alignDefault+"</option>",'<option value="left">'+i.alignLeft+"</option>",'<option value="center">'+i.alignCenter+"</option>",'<option value="right">'+i.alignRight+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keBorder" style="width:90px;">'+i.border+"</label>",i.borderWidth+' <input type="text" id="keBorder" class="ke-input-text ke-input-number" name="border" value="" maxlength="4" /> ',i.borderColor+' <span class="ke-inline-block ke-input-color"></span>',"</div>",'<div class="ke-dialog-row">','<label for="keBgColor" style="width:90px;">'+i.backgroundColor+"</label>",'<span class="ke-inline-block ke-input-color"></span>',"</div>","</div>"].join(""),u=e.cmd.range.createBookmark(),d=e.createDialog({name:n,width:500,title:e.lang(n),body:c,beforeRemove:function(){k.unbind()},yesBtn:{name:e.lang("yes"),click:function(n){var i=p.val(),o=f.val(),a=m.val(),s=g.val(),c=v.val(),d=b.val(),h=_.val(),S=y.val(),D=w.val(),C=x.val(),E=t(k[0]).html()||"",A=t(k[1]).html()||"";if(0==i||!/^\d+$/.test(i))return alert(e.lang("invalidRows")),void p[0].focus();if(0==o||!/^\d+$/.test(o))return alert(e.lang("invalidRows")),void f[0].focus();if(!/^\d*$/.test(a))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(s))return alert(e.lang("invalidHeight")),void g[0].focus();if(!/^\d*$/.test(h))return alert(e.lang("invalidPadding")),void _[0].focus();if(!/^\d*$/.test(S))return alert(e.lang("invalidSpacing")),void y[0].focus();if(!/^\d*$/.test(C))return alert(e.lang("invalidBorder")),void x[0].focus();if(l)return""!==a?l.width(a+c):l.css("width",""),void 0!==l[0].width&&l.removeAttr("width"),""!==s?l.height(s+d):l.css("height",""),void 0!==l[0].height&&l.removeAttr("height"),l.css("background-color",A),void 0!==l[0].bgColor&&l.removeAttr("bgColor"),""!==h?l[0].cellPadding=h:l.removeAttr("cellPadding"),""!==S?l[0].cellSpacing=S:l.removeAttr("cellSpacing"),""!==D?l[0].align=D:l.removeAttr("align"),""!==C?l.attr("border",C):l.removeAttr("border"),""===C||"0"===C?l.addClass(r):l.removeClass(r),""!==E?l.attr("borderColor",E):l.removeAttr("borderColor"),e.hideDialog().focus(),e.cmd.range.moveToBookmark(u),e.cmd.select(),void e.addBookmark();var T="";""!==a&&(T+="width:"+a+c+";"),""!==s&&(T+="height:"+s+d+";"),""!==A&&(T+="background-color:"+A+";");var B="<table";""!==T&&(B+=' style="'+T+'"'),""!==h&&(B+=' cellpadding="'+h+'"'),""!==S&&(B+=' cellspacing="'+S+'"'),""!==D&&(B+=' align="'+D+'"'),""!==C&&(B+=' border="'+C+'"'),""!==C&&"0"!==C||(B+=' class="'+r+'"'),""!==E&&(B+=' bordercolor="'+E+'"'),B+=">";for(var F=0;F<i;F++){B+="<tr>";for(var $=0;$<o;$++)B+="<td>"+(t.IE?" ":"<br />")+"</td>";B+="</tr>"}B+="</table>",t.IE||(B+="<br />"),e.insertHtml(B),e.select().hideDialog().focus(),e.addBookmark()}}}),h=d.div,p=t('[name="rows"]',h).val(3),f=t('[name="cols"]',h).val(2),m=t('[name="width"]',h).val(100),g=t('[name="height"]',h),v=t('[name="widthType"]',h),b=t('[name="heightType"]',h),_=t('[name="padding"]',h).val(2),y=t('[name="spacing"]',h).val(0),w=t('[name="align"]',h),x=t('[name="border"]',h).val(1),k=t(".ke-input-color",h);if(s(h,k.eq(0)),s(h,k.eq(1)),o(k.eq(0),"#000000"),o(k.eq(1),""),p[0].focus(),p[0].select(),!a&&(l=e.plugin.getSelectedTable(),l)){p.val(l[0].rows.length),f.val(l[0].rows.length>0?l[0].rows[0].cells.length:0),p.attr("disabled",!0),f.attr("disabled",!0);var S,D=l[0].style.width||l[0].width,C=l[0].style.height||l[0].height;void 0!==D&&(S=/^(\d+)((?:px|%)*)$/.exec(D))?(m.val(S[1]),v.val(S[2])):m.val(""),void 0!==C&&(S=/^(\d+)((?:px|%)*)$/.exec(C))&&(g.val(S[1]),b.val(S[2])),_.val(l[0].cellPadding||""),y.val(l[0].cellSpacing||""),w.val(l[0].align||""),x.val(void 0===l[0].border?"":l[0].border),o(k.eq(0),t.toHex(l.attr("borderColor")||"")),o(k.eq(1),t.toHex(l[0].style.backgroundColor||l[0].bgColor||"")),m[0].focus(),m[0].select()}},cellprop:function(){var r=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keWidth" style="width:90px;">'+i.size+"</label>",i.width+' <input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> ','<select name="widthType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select> ",i.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> ','<select name="heightType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keAlign" style="width:90px;">'+i.align+"</label>",i.textAlign+' <select id="keAlign" name="textAlign">','<option value="">'+i.alignDefault+"</option>",'<option value="left">'+i.alignLeft+"</option>",'<option value="center">'+i.alignCenter+"</option>",'<option value="right">'+i.alignRight+"</option>","</select> ",i.verticalAlign+' <select name="verticalAlign">','<option value="">'+i.alignDefault+"</option>",'<option value="top">'+i.alignTop+"</option>",'<option value="middle">'+i.alignMiddle+"</option>",'<option value="bottom">'+i.alignBottom+"</option>",'<option value="baseline">'+i.alignBaseline+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keBorder" style="width:90px;">'+i.border+"</label>",i.borderWidth+' <input type="text" id="keBorder" class="ke-input-text ke-input-number" name="border" value="" maxlength="4" /> ',i.borderColor+' <span class="ke-inline-block ke-input-color"></span>',"</div>",'<div class="ke-dialog-row">','<label for="keBgColor" style="width:90px;">'+i.backgroundColor+"</label>",'<span class="ke-inline-block ke-input-color"></span>',"</div>","</div>"].join(""),a=e.cmd.range.createBookmark(),l=e.createDialog({name:n,width:500,title:e.lang("tablecell"),body:r,beforeRemove:function(){_.unbind()},yesBtn:{name:e.lang("yes"),click:function(n){var i=u.val(),r=d.val(),o=h.val(),s=p.val(),l=(f.val(),m.val(),g.val()),c=v.val(),y=b.val(),x=t(_[0]).html()||"",k=t(_[1]).html()||"";return/^\d*$/.test(i)?/^\d*$/.test(r)?/^\d*$/.test(y)?(w.css({width:""!==i?i+o:"",height:""!==r?r+s:"","background-color":k,"text-align":l,"vertical-align":c,"border-width":y,"border-style":""!==y?"solid":"","border-color":x}),e.hideDialog().focus(),e.cmd.range.moveToBookmark(a),e.cmd.select(),void e.addBookmark()):(alert(e.lang("invalidBorder")),void b[0].focus()):(alert(e.lang("invalidHeight")),void d[0].focus()):(alert(e.lang("invalidWidth")),void u[0].focus())}}}),c=l.div,u=t('[name="width"]',c).val(100),d=t('[name="height"]',c),h=t('[name="widthType"]',c),p=t('[name="heightType"]',c),f=t('[name="padding"]',c).val(2),m=t('[name="spacing"]',c).val(0),g=t('[name="textAlign"]',c),v=t('[name="verticalAlign"]',c),b=t('[name="border"]',c).val(1),_=t(".ke-input-color",c);s(c,_.eq(0)),s(c,_.eq(1)),o(_.eq(0),"#000000"),o(_.eq(1),""),u[0].focus(),u[0].select();var y,w=e.plugin.getSelectedCell(),x=w[0].style.width||w[0].width||"",k=w[0].style.height||w[0].height||"";(y=/^(\d+)((?:px|%)*)$/.exec(x))?(u.val(y[1]),h.val(y[2])):u.val(""),(y=/^(\d+)((?:px|%)*)$/.exec(k))&&(d.val(y[1]),p.val(y[2])),g.val(w[0].style.textAlign||""),v.val(w[0].style.verticalAlign||"");var S=w[0].style.borderWidth||"";S&&(S=parseInt(S)),b.val(S),o(_.eq(0),t.toHex(w[0].style.borderColor||"")),o(_.eq(1),t.toHex(w[0].style.backgroundColor||"")),u[0].focus(),u[0].select()},insert:function(){this.prop(!0)},delete:function(){var t=e.plugin.getSelectedTable();e.cmd.range.setStartBefore(t[0]).collapse(!0),e.cmd.select(),t.remove(),e.addBookmark()},colinsert:function(n){var i=e.plugin.getSelectedTable()[0],r=e.plugin.getSelectedRow()[0],o=e.plugin.getSelectedCell()[0],a=o.cellIndex+n;a+=i.rows[0].cells.length-r.cells.length;for(var s=0,c=i.rows.length;s<c;s++){var u=i.rows[s],d=u.insertCell(a);d.innerHTML=t.IE?"":"<br />",a=l(i,u,d)}e.cmd.range.selectNodeContents(o).collapse(!0),e.cmd.select(),e.addBookmark()},colinsertleft:function(){this.colinsert(0)},colinsertright:function(){this.colinsert(1)},rowinsert:function(n){var i=e.plugin.getSelectedTable()[0],r=e.plugin.getSelectedRow()[0],o=e.plugin.getSelectedCell()[0],a=r.rowIndex;1===n&&(a=r.rowIndex+(o.rowSpan-1)+n);for(var s=i.insertRow(a),l=0,c=r.cells.length;l<c;l++){r.cells[l].rowSpan>1&&(c-=r.cells[l].rowSpan-1);var u=s.insertCell(l);1===n&&r.cells[l].colSpan>1&&(u.colSpan=r.cells[l].colSpan),u.innerHTML=t.IE?"":"<br />"}for(var d=a;d>=0;d--){var h=i.rows[d].cells;if(h.length>l){for(var p=o.cellIndex;p>=0;p--)h[p].rowSpan>1&&(h[p].rowSpan+=1);break}}e.cmd.range.selectNodeContents(o).collapse(!0),e.cmd.select(),e.addBookmark()},rowinsertabove:function(){this.rowinsert(0)},rowinsertbelow:function(){this.rowinsert(1)},rowmerge:function(){var t=e.plugin.getSelectedTable()[0],n=e.plugin.getSelectedRow()[0],i=e.plugin.getSelectedCell()[0],r=n.rowIndex,o=r+i.rowSpan,a=t.rows[o];if(!(t.rows.length<=o)){var s=i.cellIndex;if(!(a.cells.length<=s)){var l=a.cells[s];i.colSpan===l.colSpan&&(i.rowSpan+=l.rowSpan,a.deleteCell(s),e.cmd.range.selectNodeContents(i).collapse(!0),e.cmd.select(),e.addBookmark())}}},colmerge:function(){e.plugin.getSelectedTable()[0];var t=e.plugin.getSelectedRow()[0],n=e.plugin.getSelectedCell()[0],i=(t.rowIndex,n.cellIndex),r=i+1;if(!(t.cells.length<=r)){var o=t.cells[r];n.rowSpan===o.rowSpan&&(n.colSpan+=o.colSpan,t.deleteCell(r),e.cmd.range.selectNodeContents(n).collapse(!0),e.cmd.select(),e.addBookmark())}},rowsplit:function(){var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=i.rowIndex;if(1!==r.rowSpan){for(var a=l(n,i,r),s=1,c=r.rowSpan;s<c;s++){var u=n.rows[o+s],d=u.insertCell(a);r.colSpan>1&&(d.colSpan=r.colSpan),d.innerHTML=t.IE?"":"<br />",a=l(n,u,d)}t(r).removeAttr("rowSpan"),e.cmd.range.selectNodeContents(r).collapse(!0),e.cmd.select(),e.addBookmark()}},colsplit:function(){e.plugin.getSelectedTable()[0];var n=e.plugin.getSelectedRow()[0],i=e.plugin.getSelectedCell()[0],r=i.cellIndex;if(1!==i.colSpan){for(var o=1,a=i.colSpan;o<a;o++){var s=n.insertCell(r+o);i.rowSpan>1&&(s.rowSpan=i.rowSpan),s.innerHTML=t.IE?"":"<br />"}t(i).removeAttr("colSpan"),e.cmd.range.selectNodeContents(i).collapse(!0),e.cmd.select(),e.addBookmark()}},coldelete:function(){for(var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=r.cellIndex,a=0,s=n.rows.length;a<s;a++){var l=n.rows[a],c=l.cells[o];c.colSpan>1?(c.colSpan-=1,1===c.colSpan&&t(c).removeAttr("colSpan")):l.deleteCell(o),c.rowSpan>1&&(a+=c.rowSpan-1)}0===i.cells.length?(e.cmd.range.setStartBefore(n).collapse(!0),e.cmd.select(),t(n).remove()):e.cmd.selection(!0),e.addBookmark()},rowdelete:function(){for(var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=i.rowIndex,a=r.rowSpan-1;a>=0;a--)n.deleteRow(o+a);0===n.rows.length?(e.cmd.range.setStartBefore(n).collapse(!0),e.cmd.select(),t(n).remove()):e.cmd.selection(!0),e.addBookmark()}},e.clickToolbar(n,e.plugin.table.prop)})),KindEditor.plugin("template",(function(t){var e=this,n="template",i=(e.lang(n+"."),e.pluginsPath+n+"/html/");function r(e){return i+e+"?ver="+encodeURIComponent(t.DEBUG?t.TIME:t.VERSION)}e.clickToolbar(n,(function(){var i=e.lang(n+"."),o=['<div style="padding:10px 20px;">','<div class="ke-header">','<div class="ke-left">',i.selectTemplate+" <select>"];t.each(i.fileList,(function(t,e){o.push('<option value="'+t+'">'+e+"</option>")})),html=[o.join(""),"</select></div>",'<div class="ke-right">','<input type="checkbox" id="keReplaceFlag" name="replaceFlag" value="1" /> <label for="keReplaceFlag">'+i.replaceContent+"</label>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<iframe class="ke-textarea" frameborder="0" style="width:458px;height:260px;background-color:#FFF;"></iframe>',"</div>"].join("");var a=e.createDialog({name:n,width:500,title:e.lang(n),body:html,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.iframeDoc(c);e[l[0].checked?"html":"insertHtml"](i.body.innerHTML).hideDialog().focus()}}}),s=t("select",a.div),l=t('[name="replaceFlag"]',a.div),c=t("iframe",a.div);l[0].checked=!0,c.attr("src",r(s.val())),s.change((function(){c.attr("src",r(this.value))}))}))})),KindEditor.plugin("wordpaste",(function(t){var e=this,n="wordpaste";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r='<div style="padding:10px 20px;"><div style="margin-bottom:10px;">'+i.comment+'</div><iframe class="ke-textarea" frameborder="0" style="width:408px;height:260px;"></iframe></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=l.body.innerHTML;i=t.clearMsWord(i,e.filterMode?e.htmlTags:t.options.htmlTags),e.insertHtml(i).hideDialog().focus()}}}),a=o.div,s=t("iframe",a),l=t.iframeDoc(s);t.IE||(l.designMode="on"),l.open(),l.write("<!doctype html><html><head><title>WordPaste</title></head>"),l.write('<body style="background-color:#FFF;font-size:12px;margin:2px;">'),t.IE||l.write("<br />"),l.write("</body></html>"),l.close(),t.IE&&(l.body.contentEditable="true"),s[0].contentWindow.focus()}))})),KindEditor.plugin("fixtoolbar",(function(t){var e=this;function n(){var e=t(".ke-toolbar"),n=e.pos().y;t(window).bind("scroll",(function(){"fixed"==e.css("position")?document.body.scrollTop-n<0&&(e.css("position","static"),e.css("top","auto")):e.pos().y-document.body.scrollTop<0&&(e.css("position","fixed"),e.css("top",0))}))}e.fixToolBar&&(e.isCreated?n():e.afterCreate(n))}))},"7a43":function(t,e){function n(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return n(t)}catch(r){return i}}},"7a77":function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},"7aac":function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){"use strict";var i=n("1d80"),r=Object;t.exports=function(t){return r(i(t))}},"7ba0":function(t,e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(t){const e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1===(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=n},"7bbc":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.SHA1,s=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n=this.cfg,i=s.create(n.hasher,t),o=r.create(),a=r.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;while(l.length<u){var h=i.update(e).finalize(a);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var v=m.words,b=0;b<f;b++)p[b]^=v[b]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(t,e,n){return l.create(n).compute(t,e)}}(),t.PBKDF2}))},"7bf0":function(t,e){let n;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){let e=0;while(0!==t)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!==typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeof n},e.toSJIS=function(t){return n(t)}},"7c5c":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(this,arguments)}function r(t,e){if(t){if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=r(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function l(t){var e=s(t,"string");return"symbol"===typeof e?e:String(e)}function c(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function u(e){t.defaults=e}t.defaults=c();var d=/[&<>"']/,h=new RegExp(d.source,"g"),p=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,f=new RegExp(p.source,"g"),m={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(t){return m[t]};function v(t,e){if(e){if(d.test(t))return t.replace(h,g)}else if(p.test(t))return t.replace(f,g);return t}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function _(t){return t.replace(b,(function(t,e){return e=e.toLowerCase(),"colon"===e?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var y=/(^|[^\[])\^/g;function w(t,e){t="string"===typeof t?t:t.source,e=e||"";var n={replace:function(e,i){return i=i.source||i,i=i.replace(y,"$1"),t=t.replace(e,i),n},getRegex:function(){return new RegExp(t,e)}};return n}var x=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(t,e,n){if(t){var i;try{i=decodeURIComponent(_(n)).replace(x,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}e&&!k.test(n)&&(n=T(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}var D={},C=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,A=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(t,e){D[" "+t]||(C.test(t)?D[" "+t]=t+"/":D[" "+t]=$(t,"/",!0)),t=D[" "+t];var n=-1===t.indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(E,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(A,"$1")+e:t+e}var B={exec:function(){}};function F(t,e){var n=t.replace(/\|/g,(function(t,e,n){var i=!1,r=e;while(--r>=0&&"\\"===n[r])i=!i;return i?"|":" |"})),i=n.split(/ \|/),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else while(i.length<e)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function $(t,e,n){var i=t.length;if(0===i)return"";var r=0;while(r<i){var o=t.charAt(i-r-1);if(o!==e||n){if(o===e||!n)break;r++}else r++}return t.slice(0,i-r)}function L(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,i=0,r=0;r<n;r++)if("\\"===t[r])r++;else if(t[r]===e[0])i++;else if(t[r]===e[1]&&(i--,i<0))return r;return-1}function M(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function P(t,e){if(e<1)return"";var n="";while(e>1)1&e&&(n+=t),e>>=1,t+=t;return n+t}function I(t,e,n,i){var r=e.href,o=e.title?v(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;var s={type:"link",raw:n,href:r,title:o,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,s}return{type:"image",raw:n,href:r,title:o,text:v(a)}}function N(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var i=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);if(null===e)return t;var n=e[0];return n.length>=i.length?t.slice(i.length):t})).join("\n")}var H=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.space=function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}},n.code=function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$(n,"\n")}}},n.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],i=N(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:i}}},n.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var i=$(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}},n.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},n.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;var r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:e[0],tokens:r,text:n}}},n.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,i,r,o,a,s,l,c,u,d,h,p,f=e[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?"\\d{1,9}\\"+f.slice(-1):"\\"+f,this.options.pedantic&&(f=m?f:"[*+-]");var v=new RegExp("^( {0,3}"+f+")((?:[\t ][^\\n]*)?(?:\\n|$))");while(t){if(p=!1,!(e=v.exec(t)))break;if(this.rules.block.hr.test(t))break;if(n=e[0],t=t.substring(n.length),c=e[2].split("\n",1)[0].replace(/^\t+/,(function(t){return" ".repeat(3*t.length)})),u=t.split("\n",1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,h=c.slice(o),o+=e[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",t=t.substring(u.length+1),p=!0),!p){var b=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),_=new RegExp("^ {0,"+Math.min(3,o-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,o-1)+"}#");while(t){if(d=t.split("\n",1)[0],u=d,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),y.test(u))break;if(w.test(u))break;if(b.test(u))break;if(_.test(t))break;if(u.search(/[^ ]/)>=o||!u.trim())h+="\n"+u.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(y.test(c))break;if(w.test(c))break;if(_.test(c))break;h+="\n"+u}s||u.trim()||(s=!0),n+=d+"\n",t=t.substring(d.length+1),c=u.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h),i&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();var x=g.items.length;for(a=0;a<x;a++)if(this.lexer.state.top=!1,g.items[a].tokens=this.lexer.blockTokens(g.items[a].text,[]),!g.loose){var k=g.items[a].tokens.filter((function(t){return"space"===t.type})),S=k.length>0&&k.some((function(t){return/\n.*\n/.test(t.raw)}));g.loose=S}if(g.loose)for(a=0;a<x;a++)g.items[a].loose=!0;return g}},n.html=function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};if(this.options.sanitize){var i=this.options.sanitizer?this.options.sanitizer(e[0]):v(e[0]);n.type="paragraph",n.text=i,n.tokens=this.lexer.inline(i)}return n}},n.def=function(t){var e=this.rules.block.def.exec(t);if(e){var n=e[1].toLowerCase().replace(/\s+/g," "),i=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:i,title:r}}},n.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:F(e[1]).map((function(t){return{text:t}})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var i,r,o,a,s=n.align.length;for(i=0;i<s;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(s=n.rows.length,i=0;i<s;i++)n.rows[i]=F(n.rows[i],n.header.length).map((function(t){return{text:t}}));for(s=n.header.length,r=0;r<s;r++)n.header[r].tokens=this.lexer.inline(n.header[r].text);for(s=n.rows.length,r=0;r<s;r++)for(a=n.rows[r],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return n}}},n.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}},n.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e){var n="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}},n.text=function(t){var e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}},n.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:v(e[1])}},n.tag=function(t){var e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):v(e[0]):e[0]}},n.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var i=$(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{var r=L(e[2],"()");if(r>-1){var o=0===e[0].indexOf("!")?5:4,a=o+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,a).trim(),e[3]=""}}var s=e[2],l="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);c&&(s=c[1],l=c[3])}else l=e[3]?e[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(n)?s.slice(1):s.slice(1,-1)),I(e,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:l?l.replace(this.rules.inline._escapes,"$1"):l},e[0],this.lexer)}},n.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(i=e[i.toLowerCase()],!i){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return I(n,i,n[0],this.lexer)}},n.emStrong=function(t,e,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(t);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=i[0].length-1,l=s,c=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;u.lastIndex=0,e=e.slice(-1*t.length+s);while(null!=(i=u.exec(e)))if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],o)if(a=o.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&s%3)||(s+a)%3){if(l-=a,!(l>0)){a=Math.min(a,a+l+c);var d=t.slice(0,s+i.index+(i[0].length-o.length)+a);if(Math.min(s,a)%2){var h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}var p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}else c+=a}}},n.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=v(n,!0),{type:"codespan",raw:e[0],text:n}}},n.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},n.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}},n.autolink=function(t,e){var n,i,r=this.rules.inline.autolink.exec(t);if(r)return"@"===r[2]?(n=v(this.options.mangle?e(r[1]):r[1]),i="mailto:"+n):(n=v(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var i,r;if("@"===n[2])i=v(this.options.mangle?e(n[0]):n[0]),r="mailto:"+i;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=v(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},n.inlineText=function(t,e){var n,i=this.rules.inline.text.exec(t);if(i)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):v(i[0]):i[0]:v(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:n}},e}(),z={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:B,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};z.def=w(z.def).replace("label",z._label).replace("title",z._title).getRegex(),z.bullet=/(?:[*+-]|\d{1,9}[.)])/,z.listItemStart=w(/^( *)(bull) */).replace("bull",z.bullet).getRegex(),z.list=w(z.list).replace(/bull/g,z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+z.def.source+")").getRegex(),z._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,z.html=w(z.html,"i").replace("comment",z._comment).replace("tag",z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z.paragraph=w(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",z._tag).getRegex(),z.blockquote=w(z.blockquote).replace("paragraph",z.paragraph).getRegex(),z.normal=i({},z),z.gfm=i({},z.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),z.gfm.table=w(z.gfm.table).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",z._tag).getRegex(),z.gfm.paragraph=w(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",z.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",z._tag).getRegex(),z.pedantic=i({},z.normal,{html:w("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:B,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:w(z.normal._paragraph).replace("hr",z.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var O={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:B,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:B,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function R(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function U(t){var e,n,i="",r=t.length;for(e=0;e<r;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}O._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",O.punctuation=w(O.punctuation).replace(/punctuation/g,O._punctuation).getRegex(),O.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,O.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,O._comment=w(z._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),O.emStrong.lDelim=w(O.emStrong.lDelim).replace(/punct/g,O._punctuation).getRegex(),O.emStrong.rDelimAst=w(O.emStrong.rDelimAst,"g").replace(/punct/g,O._punctuation).getRegex(),O.emStrong.rDelimUnd=w(O.emStrong.rDelimUnd,"g").replace(/punct/g,O._punctuation).getRegex(),O._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,O._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,O._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,O.autolink=w(O.autolink).replace("scheme",O._scheme).replace("email",O._email).getRegex(),O._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,O.tag=w(O.tag).replace("comment",O._comment).replace("attribute",O._attribute).getRegex(),O._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,O._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,O._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,O.link=w(O.link).replace("label",O._label).replace("href",O._href).replace("title",O._title).getRegex(),O.reflink=w(O.reflink).replace("label",O._label).replace("ref",z._label).getRegex(),O.nolink=w(O.nolink).replace("ref",z._label).getRegex(),O.reflinkSearch=w(O.reflinkSearch,"g").replace("reflink",O.reflink).replace("nolink",O.nolink).getRegex(),O.normal=i({},O),O.pedantic=i({},O.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:w(/^!?\[(label)\]\((.*?)\)/).replace("label",O._label).getRegex(),reflink:w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",O._label).getRegex()}),O.gfm=i({},O.normal,{escape:w(O.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),O.gfm.url=w(O.gfm.url,"i").replace("email",O.gfm._extended_email).getRegex(),O.breaks=i({},O.gfm,{br:w(O.br).replace("{2,}","*").getRegex(),text:w(O.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var K=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.defaults,this.options.tokenizer=this.options.tokenizer||new H,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:z.normal,inline:O.normal};this.options.pedantic?(n.block=z.pedantic,n.inline=O.pedantic):this.options.gfm&&(n.block=z.gfm,this.options.breaks?n.inline=O.breaks:n.inline=O.gfm),this.tokenizer.rules=n}e.lex=function(t,n){var i=new e(n);return i.lex(t)},e.lexInline=function(t,n){var i=new e(n);return i.inlineTokens(t)};var i=e.prototype;return i.lex=function(t){var e;t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);while(e=this.inlineQueue.shift())this.inlineTokens(e.src,e.tokens);return this.tokens},i.blockTokens=function(t,e){var n,i,r,o,a=this;void 0===e&&(e=[]),t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,(function(t,e,n){return e+" ".repeat(n.length)}));while(t)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(i){return!!(n=i.call({lexer:a},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else if(r=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var e=1/0,n=t.slice(1),i=void 0;a.options.extensions.startBlock.forEach((function(t){i=t.call({lexer:this},n),"number"===typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),this.state.top&&(n=this.tokenizer.paragraph(r)))i=e[e.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),o=r.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){var s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,e},i.inline=function(t,e){return void 0===e&&(e=[]),this.inlineQueue.push({src:t,tokens:e}),e},i.inlineTokens=function(t,e){var n,i,r,o=this;void 0===e&&(e=[]);var a,s,l,c=t;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)while(null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c)))u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+P("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,a.index)+"["+P("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c)))c=c.slice(0,a.index+a[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;while(t)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(i){return!!(n=i.call({lexer:o},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,c,l))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,U))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,U))){if(r=t,this.options.extensions&&this.options.extensions.startInline&&function(){var e=1/0,n=t.slice(1),i=void 0;o.options.extensions.startInline.forEach((function(t){i=t.call({lexer:this},n),"number"===typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),n=this.tokenizer.inlineText(r,R))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),s=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(t){var d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else t=t.substring(n.raw.length),e.push(n);return e},n(e,null,[{key:"rules",get:function(){return{block:z,inline:O}}}]),e}(),W=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.code=function(t,e,n){var i=(e||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(t,i);null!=r&&r!==t&&(n=!0,t=r)}return t=t.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+v(i)+'">'+(n?t:v(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:v(t,!0))+"</code></pre>\n"},n.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},n.html=function(t){return t},n.heading=function(t,e,n,i){if(this.options.headerIds){var r=this.options.headerPrefix+i.slug(n);return"<h"+e+' id="'+r+'">'+t+"</h"+e+">\n"}return"<h"+e+">"+t+"</h"+e+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(t,e,n){var i=e?"ol":"ul",r=e&&1!==n?' start="'+n+'"':"";return"<"+i+r+">\n"+t+"</"+i+">\n"},n.listitem=function(t){return"<li>"+t+"</li>\n"},n.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(t){return"<p>"+t+"</p>\n"},n.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},n.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},n.tablecell=function(t,e){var n=e.header?"th":"td",i=e.align?"<"+n+' align="'+e.align+'">':"<"+n+">";return i+t+"</"+n+">\n"},n.strong=function(t){return"<strong>"+t+"</strong>"},n.em=function(t){return"<em>"+t+"</em>"},n.codespan=function(t){return"<code>"+t+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(t){return"<del>"+t+"</del>"},n.link=function(t,e,n){if(t=S(this.options.sanitize,this.options.baseUrl,t),null===t)return n;var i='<a href="'+t+'"';return e&&(i+=' title="'+e+'"'),i+=">"+n+"</a>",i},n.image=function(t,e,n){if(t=S(this.options.sanitize,this.options.baseUrl,t),null===t)return n;var i='<img src="'+t+'" alt="'+n+'"';return e&&(i+=' title="'+e+'"'),i+=this.options.xhtml?"/>":">",i},n.text=function(t){return t},e}(),j=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),V=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{i++,n=t+"-"+i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),q=function(){function e(e){this.options=e||t.defaults,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j,this.slugger=new V}e.parse=function(t,n){var i=new e(n);return i.parse(t)},e.parseInline=function(t,n){var i=new e(n);return i.parseInline(t)};var n=e.prototype;return n.parse=function(t,e){void 0===e&&(e=!0);var n,i,r,o,a,s,l,c,u,d,h,p,f,m,g,v,b,y,w,x="",k=t.length;for(n=0;n<k;n++)if(d=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(w=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))x+=w||"";else switch(d.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(d.tokens),d.depth,_(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(d.header[i].tokens),{header:!0,align:d.align[i]});for(c+=this.renderer.tablerow(l),u="",o=d.rows.length,i=0;i<o;i++){for(s=d.rows[i],l="",a=s.length,r=0;r<a;r++)l+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:d.align[r]});u+=this.renderer.tablerow(l)}x+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(d.tokens),x+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,p=d.start,f=d.loose,o=d.items.length,u="",i=0;i<o;i++)g=d.items[i],v=g.checked,b=g.task,m="",g.task&&(y=this.renderer.checkbox(v),f?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,b,v);x+=this.renderer.list(u,h,p);continue;case"html":x+=this.renderer.html(d.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":u=d.tokens?this.parseInline(d.tokens):d.text;while(n+1<k&&"text"===t[n+1].type)d=t[++n],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);x+=e?this.renderer.paragraph(u):u;continue;default:var S='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(S);throw new Error(S)}return x},n.parseInline=function(t,e){e=e||this.renderer;var n,i,r,o="",a=t.length;for(n=0;n<a;n++)if(i=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(r=this.options.extensions.renderers[i.type].call({parser:this},i),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)))o+=r||"";else switch(i.type){case"escape":o+=e.text(i.text);break;case"html":o+=e.html(i.text);break;case"link":o+=e.link(i.href,i.title,this.parseInline(i.tokens,e));break;case"image":o+=e.image(i.href,i.title,i.text);break;case"strong":o+=e.strong(this.parseInline(i.tokens,e));break;case"em":o+=e.em(this.parseInline(i.tokens,e));break;case"codespan":o+=e.codespan(i.text);break;case"br":o+=e.br();break;case"del":o+=e.del(this.parseInline(i.tokens,e));break;case"text":o+=e.text(i.text);break;default:var s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return o},e}(),Y=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.preprocess=function(t){return t},n.postprocess=function(t){return t},e}();function X(t,e,n){return function(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t){var r="<p>An error occurred:</p><pre>"+v(i.message+"",!0)+"</pre>";return e?Promise.resolve(r):n?void n(null,r):r}if(e)return Promise.reject(i);if(!n)throw i;n(i)}}function G(t,e){return function(n,r,o){"function"===typeof r&&(o=r,r=null);var a=i({},r);r=i({},Z.defaults,a);var s=X(r.silent,r.async,o);if("undefined"===typeof n||null===n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(M(r),r.hooks&&(r.hooks.options=r),o){var l,c=r.highlight;try{r.hooks&&(n=r.hooks.preprocess(n)),l=t(n,r)}catch(f){return s(f)}var u=function(t){var n;if(!t)try{r.walkTokens&&Z.walkTokens(l,r.walkTokens),n=e(l,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(f){t=f}return r.highlight=c,t?s(t):o(null,n)};if(!c||c.length<3)return u();if(delete r.highlight,!l.length)return u();var d=0;return Z.walkTokens(l,(function(t){"code"===t.type&&(d++,setTimeout((function(){c(t.text,t.lang,(function(e,n){if(e)return u(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),d--,0===d&&u()}))}),0))})),void(0===d&&u())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((function(e){return t(e,r)})).then((function(t){return r.walkTokens?Promise.all(Z.walkTokens(t,r.walkTokens)).then((function(){return t})):t})).then((function(t){return e(t,r)})).then((function(t){return r.hooks?r.hooks.postprocess(t):t}))["catch"](s);try{r.hooks&&(n=r.hooks.preprocess(n));var h=t(n,r);r.walkTokens&&Z.walkTokens(h,r.walkTokens);var p=e(h,r);return r.hooks&&(p=r.hooks.postprocess(p)),p}catch(f){return s(f)}}}function Z(t,e,n){return G(K.lex,q.parse)(t,e,n)}Y.passThroughHooks=new Set(["preprocess","postprocess"]),Z.options=Z.setOptions=function(t){return Z.defaults=i({},Z.defaults,t),u(Z.defaults),Z},Z.getDefaults=c,Z.defaults=t.defaults,Z.use=function(){for(var t=Z.defaults.extensions||{renderers:{},childTokens:{}},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){var n=i({},e);if(n.async=Z.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var n=t.renderers[e.name];t.renderers[e.name]=n?function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];var o=e.renderer.apply(this,i);return!1===o&&(o=n.apply(this,i)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer&&function(){var t=Z.defaults.renderer||new W,i=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.renderer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.renderer)i(r);n.renderer=t}(),e.tokenizer&&function(){var t=Z.defaults.tokenizer||new H,i=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.tokenizer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.tokenizer)i(r);n.tokenizer=t}(),e.hooks&&function(){var t=Z.defaults.hooks||new Y,i=function(n){var i=t[n];Y.passThroughHooks.has(n)?t[n]=function(r){if(Z.defaults.async)return Promise.resolve(e.hooks[n].call(t,r)).then((function(e){return i.call(t,e)}));var o=e.hooks[n].call(t,r);return i.call(t,o)}:t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.hooks[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.hooks)i(r);n.hooks=t}(),e.walkTokens){var r=Z.defaults.walkTokens;n.walkTokens=function(t){var n=[];return n.push(e.walkTokens.call(this,t)),r&&(n=n.concat(r.call(this,t))),n}}Z.setOptions(n)}))},Z.walkTokens=function(t,e){for(var n,i=[],r=function(){var t=n.value;switch(i=i.concat(e.call(Z,t)),t.type){case"table":for(var r,o=a(t.header);!(r=o()).done;){var s=r.value;i=i.concat(Z.walkTokens(s.tokens,e))}for(var l,c=a(t.rows);!(l=c()).done;)for(var u,d=l.value,h=a(d);!(u=h()).done;){var p=u.value;i=i.concat(Z.walkTokens(p.tokens,e))}break;case"list":i=i.concat(Z.walkTokens(t.items,e));break;default:Z.defaults.extensions&&Z.defaults.extensions.childTokens&&Z.defaults.extensions.childTokens[t.type]?Z.defaults.extensions.childTokens[t.type].forEach((function(n){i=i.concat(Z.walkTokens(t[n],e))})):t.tokens&&(i=i.concat(Z.walkTokens(t.tokens,e)))}},o=a(t);!(n=o()).done;)r();return i},Z.parseInline=G(K.lexInline,q.parseInline),Z.Parser=q,Z.parser=q.parse,Z.Renderer=W,Z.TextRenderer=j,Z.Lexer=K,Z.lexer=K.lex,Z.Tokenizer=H,Z.Slugger=V,Z.Hooks=Y,Z.parse=Z;var Q=Z.options,J=Z.setOptions,tt=Z.use,et=Z.walkTokens,nt=Z.parseInline,it=Z,rt=q.parse,ot=K.lex;t.Hooks=Y,t.Lexer=K,t.Parser=q,t.Renderer=W,t.Slugger=V,t.TextRenderer=j,t.Tokenizer=H,t.getDefaults=c,t.lexer=ot,t.marked=Z,t.options=Q,t.parse=it,t.parseInline=nt,t.parser=rt,t.setOptions=J,t.use=tt,t.walkTokens=et}))},"7daf":function(t,e,n){"use strict";n.r(e),e["default"]='## 选项卡模块\r\n\r\n```\r\n<module :tabs="tabs" @tabChange="">\r\n\t// 通过tabs属性定义标签,页面内容相同仅参数不同时使用\r\n\t// @change 选项卡切换事件\r\n</module>\r\n\r\n<module>\r\n\t// 通过<module-tab>组件定义标签,页面内容不同时使用\r\n\t\r\n\t<module-tab name="选项卡一" @mounted="" @activated="" @deactivated="">\r\n\t\t// @mounted 标签页面首次打开事件\r\n\t\t// @activated 标签页面打开事件\r\n\t\t// @deactivated 标签页面关闭事件\r\n\t</module-tab>\r\n</module>\r\n```'},"81bf":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},"825a":function(t,e,n){"use strict";var i=n("861d"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not an object")}},"83ab":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var i=n("d925"),r=n("e683");t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},"84e8":function(t,e,n){},"861d":function(t,e,n){"use strict";var i=n("1626"),r=n("8ea1"),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===o}:function(t){return"object"==typeof t?null!==t:i(t)}},"870b":function(t,e,n){"use strict";n("75c0")},8776:function(t,e,n){"use strict";n("d68a")},"88a7":function(t,e,n){"use strict";var i=n("cb2d"),r=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.append),u=r(l["delete"]),d=r(l.forEach),h=r([].push),p=new s("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&i(l,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=[];d(this,(function(t,e){h(i,{key:e,value:t})})),a(e,1);var r,s=o(t),l=o(n),p=0,f=0,m=!1,g=i.length;while(p<g)r=i[p++],m||r.key===s?(m=!0,u(this,r.key)):f++;while(f<g)r=i[f++],r.key===s&&r.value===l||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},8925:function(t,e,n){"use strict";var i=n("e330"),r=n("1626"),o=n("c6cd"),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"89e3":function(t,e,n){"use strict";n.r(e),e["default"]='## 多模块\r\n\r\n```\r\n<module title="自适应高度">\r\n\t// 不定义height自适应高度\r\n</module>\r\n\r\n<module title="固定高度" height="200">\r\n\t// 定义height固定高度\r\n</module>\r\n\r\n<module title="自动高度" height="auto">\r\n\t// 定义height为auto根据内容高度变化\r\n</module>\r\n```'},"8bbf":function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8cef":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},"8d23":function(t,e,n){const i=n("2732");function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=i.mod(e,this.genPoly),r=this.degree-n.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n},t.exports=r},"8d8e":function(t,e,n){},"8df1":function(t,e,n){"use strict";n("5c4e")},"8df4":function(t,e,n){"use strict";var i=n("7a77");function r(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r((function(e){t=e}));return{token:e,cancel:t}},t.exports=r},"8ea1":function(t,e,n){"use strict";var i="object"==typeof document&&document.all,r="undefined"==typeof i&&void 0!==i;t.exports={all:i,IS_HTMLDDA:r}},"8fde":function(t,e,n){"use strict";n.r(e),e["default"]='## 单模块\r\n\r\n```\r\n<module title="标题" sub-title="副标题">\r\n\t<template #head>\r\n\t\t// 头部插槽\r\n\t</template>\r\n\t\r\n\t// 模块内容\r\n\t\r\n\t<template #foot>\r\n\t\t// 底部插槽\r\n\t</template>\r\n\t\r\n\t<template #button>\r\n\t\t// 按钮\r\n\t\t<c-button>按钮一</c-button>\r\n\t\t<c-button>按钮二</c-button>\r\n\t</template>\r\n</module>\r\n```'},"90d8":function(t,e,n){"use strict";var i=n("c65b"),r=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!o(s,t)?e:i(a,t)}},"90e3":function(t,e,n){"use strict";var i=n("e330"),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},"90f9":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 各种列类型\r\n<c-table ref="table">\r\n\t// 拖拽列\r\n\t<c-table-column\r\n\t\ttype="drag"\r\n\t></c-table-column>\r\n\t\r\n\t// 选择列\r\n\t<c-table-column\r\n\t\ttype="selector"\r\n\t></c-table-column>\r\n\t\r\n\t// 展开列\r\n\t<c-table-column\r\n\t\tlabel="展开列"\r\n\t\ttype="expand"\r\n\t></c-table-column>\r\n\t\r\n\t// 排序列\r\n\t<c-table-column\r\n\t\tlabel="排序列"\r\n\t\ttype="sort"\r\n\t></c-table-column>\r\n\t\r\n\t// 操作列\r\n\t<c-table-column\r\n\t\tlabel="操作"\r\n\t\ttype="button"\r\n\t>\r\n\t\t<template #default="{data}">\r\n\t\t\t<c-table-button>按钮</c-table-button>\r\n\t\t</template>\r\n\t</c-table-column>\r\n</c-table>\r\n\r\n// 其它功能\r\n<c-table ref="table">\r\n\t// 多级表头\r\n\t<c-table-column\r\n\t\tlabel="多级表头"\r\n\t>\r\n\t\t<c-table-column\r\n\t\t\tlabel="子表头1"\r\n\t\t></c-table-column>\r\n\t\t<c-table-column\r\n\t\t\tlabel="子表头2"\r\n\t\t></c-table-column>\r\n\t</c-table-column>\r\n\r\n\t// 自定义列头内容\r\n\t<c-table-column>\r\n\t\t<template #head>\r\n\t\t\t<c-button>自定义头部</c-button>\r\n\t\t</template>\r\n\t</c-table-column>\r\n\r\n\t// 自定义单元格内容\r\n\t<c-table-column>\r\n\t\t<template #default="{data}">\r\n\t\t\t<span>id: {{data.id}}</span>\r\n\t\t</template>\r\n\t</c-table-column>\r\n\r\n\t// 固定合并行列\r\n\t<c-table-column\r\n\t\trow-span="2" // 固定合并行数\r\n\t\tcol-span="2" // 固定合并列数\r\n\t></c-table-column>\r\n\r\n\t// 动态计算合并行列\r\n\t<c-table-column\r\n\t\t:row-span="({data}, list) => {return 1}" // 根据当前行数据data和所有行数据list自行计算合并行数\r\n\t\t:col-span="({data}, list) => {return 1}" // 根据当前行数据data和所有行数据list自行计算合并列数\r\n\t></c-table-column>\r\n\t\r\n\t// 列数据合计\r\n\t<c-table-column\r\n\t\tsummed // 默认使用单元格的内容进行合计\r\n\t\t:summed="({data}) => {return data.num}" // 也可以传入函数返回自定义合计数据\r\n\t>\r\n\t\t// 自定义合计内容,不需要可不写\r\n\t\t<template #summed="{total}">\r\n\t\t\t合计:{{total}}\r\n\t\t</template>\r\n\t</c-table-column>\r\n</c-table>\r\n\r\n\r\n// 设置表格数据,和data属性功能相同\r\nthis.$refs.table.setData([...]);\r\n\r\n// 获取表格数据\r\nthis.$refs.table.getData();\r\n\r\n// 获取全部行对象\r\nthis.$refs.table.getRow();\r\n\r\n// 获取选中行数据\r\nthis.$refs.table.getRow(\'selected\');\r\n\r\n// 获取指定序号行数据\r\nthis.$refs.table.getRow(0);\r\nthis.$refs.table.getRow([0, 1, 2]);\r\n\r\n// 获取符合自定义条件的行数据\r\nthis.$refs.table.getRow(item => {\r\n\treturn true; // 这里返回判断条件\r\n});\r\n\r\n// 插入一行数据\r\nthis.$refs.table.push({});\r\n```\r\n\r\n## 属性配置\r\n\r\n### 表格主体 <c-table\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ndata | Array | - | 单选框组的值,可使用v-model属性绑定变量\r\npaging | Boolean | true | 是否显示分页栏\r\nborder | Boolean | false | 是否显示边框\r\nfixed-width | Boolean | false | 是否固定列宽\r\n@rowClick | Function | - | 行点击事件\r\n\r\n### 表格列 <c-table-column\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | - | 列类型<br>**drag**: 拖拽列<br>**selector**: 选择列<br>**expand**: 展开列<br>**sort**: 排序列<br>**button**: 操作列\r\nfixed | String | - | 是否固定列<br>**left**: 固定在左侧<br>**right**: 固定在右侧\r\nlabel | String | - | 列名\r\nname | String | - | 列数据字段名\r\nwidth | String | 100 | 列宽\r\nrequired | Boolean | false | 显示必填星号\r\nalign-center | Boolean | false | 内容是否居中\r\nrow-span | Number \\| String \\| Function | - | 合并行数\r\ncol-span | Number \\| String \\| Function | - | 合并列数\r\nsummed | Boolean \\| Function | false | 列合计\r\nmultiple | Boolean | true | 选择列是否支持多选\r\nadd-button | Boolean \\| String | false | 是否支持展开列添加子级按钮,可传入字符串定义按钮名称\r\nexpand-limit | String | - | 展开列最大展开层级,\r\nbutton-limit | String | 4 | 操作列最大展示按钮数,多余的按钮自动归为更多'},9112:function(t,e,n){"use strict";var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9131:function(t,e,n){"use strict";n("44bf")},"921d":function(t,e,n){"use strict";n("c49f")},"924f":function(t,e,n){const i=n("7bf0").getSymbolSize,r=7;e.getPositions=function(t){const e=i(t);return[[0,0],[e-r,0],[0,e-r]]}},"92c7":function(t,e,n){"use strict";n("4ec6")},"94ca":function(t,e,n){"use strict";var i=n("d039"),r=n("1626"),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},"94f8":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[],l=[];(function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}var i=2,r=0;while(r<64)t(i)&&(r<8&&(s[r]=n(e.pow(i,.5))),l[r]=n(e.pow(i,1/3)),r++),i++})();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|t[e+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var b=s&u^~s&d,_=i&r^i&o^r&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=h+w+b+l[p]+c[p],k=y+_;h=d,d=u,u=s,s=a+x|0,a=o,o=r,r=i,i=x+k|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256}))},"956c":function(t,e,n){},9573:function(t,e,n){"use strict";n("9e89")},9582:function(t,e,n){const i=n("7bf0"),r=1335,o=21522,a=i.getBCHDigit(r);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let s=n<<10;while(i.getBCHDigit(s)-a>=0)s^=r<<i.getBCHDigit(s)-a;return(n<<10|s)^o}},"967b":function(t,e,n){},9927:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-qrcode></c-qrcode>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 二维码内容\r\nsize | String \\| Number | 300 | 二维码尺寸,包含边距\r\nmargin | String \\| Number | 0 | 边距"},"9a3c":function(t,e,n){"use strict";n("a9fc")},"9abb":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\n<c-tooltip tip="提示信息">\n\t<c-button>按钮</c-button>\n\n\t<template #tip>\n\t\t<p>自定义提示内容</p>\n\t</template>\n</c-tooltip>\n```\n\n## 属性配置\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\ntip | String | - | 提示内容\nwidth | Number \\| String | - | 提示信息宽度\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向\ncolor | String | black | 颜色<br>**black**: 黑色<br>**white**: 白色'},"9bf2":function(t,e,n){"use strict";var i=n("83ab"),r=n("0cfb"),o=n("aed9"),a=n("825a"),s=n("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=u(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c9b":function(t,e,n){},"9ca8":function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfcgGiCg4SFhoMBiYqLjI2CjZCRjwFDQkFMPUk7MC4sOQFnoaGJk0OLYmFkAjcqkmiJTgEEBFhgWVplHSmgomekrwFAAR8BV2NbXF0dJ66JPolHVGZfXgMdJbyiv4lKAUZQPzI0GxkdEM0BSThSDDNPHEUTLQ/ZowGTPFEGNRYaTTZTFpBAFyOAhwsHJFBAQsSKiHq+7gF7UeACggQYKihYUiUEOh0rVkRAYQKCgxENQEDcFqmlokm9Ysq0N8llS5gzc0asaRMSTp0yWfb0CQzoTKFDGfFM+vKQU6eBAAA7"},"9cd0":function(t,e,n){"use strict";n("0d87")},"9d1b":function(t,e,n){"use strict";n.r(e),e["default"]="## 复杂布局\r\n\r\n```\r\n<module>\r\n\t<module-row></module-row>\r\n\t<module-row>\r\n\t\t<module-col></module-col>\r\n\t\t<module-col></module-col>\r\n\t</module-row>\r\n</module>\r\n```"},"9d94":function(t,e,n){const i=n("bbf0"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=i.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=o},"9e89":function(t,e,n){},a04b:function(t,e,n){"use strict";var i=n("c04e"),r=n("d9b5");t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},a0e5:function(t,e,n){"use strict";n("b414")},a11b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,n){var i=4*n,r=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(r-1)).concat(t.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},a134:function(t,e,n){},a29b:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-link>链接名称</c-link>\r\n<c-link></c-link> // 可不写连接名称,不写则展示链接地址\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nicon | Boolean \\| String | false | 是否显示icon,可传入icon的样式名自定义图标\r\ncolor | String | - | 文字颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**gray**: 灰色\r\nhref | String | - | 链接地址\r\ntarget | String | - | 赋值_blank新窗口打开"},a3b9:function(t,e,n){},a40e:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var t=this._key,e=t.words,n=[],i=0;i<56;i++){var r=a[i]-1;n[i]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var u=o[c]=[],d=l[c];for(i=0;i<24;i++)u[i/6|0]|=n[(s[i]-1+d)%28]<<31-i%6,u[4+(i/6|0)]|=n[28+(s[i+24]-1+d)%28]<<31-i%6;u[0]=u[0]<<1|u[0]>>>31;for(i=1;i<7;i++)u[i]=u[i]>>>4*(i-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(i=0;i<16;i++)h[i]=o[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^r[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function p(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}e.DES=r._createHelper(d);var f=o.TripleDES=r.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(i.create(n)),this._des2=d.createEncryptor(i.create(r)),this._des3=d.createEncryptor(i.create(o))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(f)}(),t.TripleDES}))},a44f:function(t,e,n){"use strict";n("e238")},a45f:function(t,e,n){"use strict";n("a55f")},a46c:function(t,e,n){"use strict";n.r(e),e["default"]='## 弹性布局\r\n\r\n```\r\n<c-flex-row margin gap>\r\n\t<c-flex-col colspan="6">\r\n\t\t// 内容\r\n\t</c-flex-col>\r\n\t<c-flex-col colspan="6">\r\n\t\t// 内容\r\n\t</c-flex-col>\r\n</c-flex-row>\r\n```'},a55f:function(t,e,n){},a817:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,r=i-n%i,o=n+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},a898:function(t,e,n){"use strict";n("c7ef")},a8ce:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var o=e[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return i.create(n,2*e)}};function o(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var a=o(e[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=o(t.charCodeAt(r)<<16-r%2*16);return i.create(n,2*e)}}}(),t.enc.Utf16}))},a9bb:function(t,e,n){},a9fc:function(t,e,n){},aa63:function(t,e,n){const i=n("7bf0"),r=n("7a43"),o=n("7ba0"),a=n("577e4"),s=n("d6c0"),l=n("924f"),c=n("7903"),u=n("34fc"),d=n("8d23"),h=n("c8aa"),p=n("9582"),f=n("bbf0"),m=n("befa");function g(t,e){const n=t.size,i=l.getPositions(e);for(let r=0;r<i.length;r++){const e=i[r][0],o=i[r][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||n<=e+i))for(let r=-1;r<=7;r++)o+r<=-1||n<=o+r||(i>=0&&i<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===i||6===i)||i>=2&&i<=4&&r>=2&&r<=4?t.set(e+i,o+r,!0,!0):t.set(e+i,o+r,!1,!0))}}function v(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2===0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}function b(t,e){const n=s.getPositions(e);for(let i=0;i<n.length;i++){const e=n[i][0],r=n[i][1];for(let n=-2;n<=2;n++)for(let i=-2;i<=2;i++)-2===n||2===n||-2===i||2===i||0===n&&0===i?t.set(e+n,r+i,!0,!0):t.set(e+n,r+i,!1,!0)}}function _(t,e){const n=t.size,i=h.getEncodedBits(e);let r,o,a;for(let s=0;s<18;s++)r=Math.floor(s/3),o=s%3+n-8-3,a=1===(i>>s&1),t.set(r,o,a,!0),t.set(o,r,a,!0)}function y(t,e,n){const i=t.size,r=p.getEncodedBits(e,n);let o,a;for(o=0;o<15;o++)a=1===(r>>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(i-15+o,8,a,!0),o<8?t.set(8,i-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(i-8,8,1,!0)}function w(t,e){const n=t.size;let i=-1,r=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2){6===s&&s--;while(1){for(let n=0;n<2;n++)if(!t.isReserved(r,s-n)){let i=!1;a<e.length&&(i=1===(e[a]>>>o&1)),t.set(r,s-n,i),o--,-1===o&&(a++,o=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}}function x(t,e,n){const r=new o;n.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),f.getCharCountIndicator(e.mode,t)),e.write(r)}));const a=i.getSymbolTotalCodewords(t),s=u.getTotalCodewordsCount(t,e),l=8*(a-s);r.getLengthInBits()+4<=l&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);const c=(l-r.getLengthInBits())/8;for(let i=0;i<c;i++)r.put(i%2?17:236,8);return k(r,t,e)}function k(t,e,n){const r=i.getSymbolTotalCodewords(e),o=u.getTotalCodewordsCount(e,n),a=r-o,s=u.getBlocksCount(e,n),l=r%s,c=s-l,h=Math.floor(r/s),p=Math.floor(a/s),f=p+1,m=h-p,g=new d(m);let v=0;const b=new Array(s),_=new Array(s);let y=0;const w=new Uint8Array(t.buffer);for(let i=0;i<s;i++){const t=i<c?p:f;b[i]=w.slice(v,v+t),_[i]=g.encode(b[i]),v+=t,y=Math.max(y,t)}const x=new Uint8Array(r);let k,S,D=0;for(k=0;k<y;k++)for(S=0;S<s;S++)k<b[S].length&&(x[D++]=b[S][k]);for(k=0;k<m;k++)for(S=0;S<s;S++)x[D++]=_[S][k];return x}function S(t,e,n,r){let o;if(Array.isArray(t))o=m.fromArray(t);else{if("string"!==typeof t)throw new Error("Invalid data");{let i=e;if(!i){const e=m.rawSplit(t);i=h.getBestVersionForData(e,n)}o=m.fromString(t,i||40)}}const s=h.getBestVersionForData(o,n);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<s)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+s+".\n")}else e=s;const l=x(e,n,o),u=i.getSymbolSize(e),d=new a(u);return g(d,e),v(d),b(d,e),y(d,n,0),e>=7&&_(d,e),w(d,l),isNaN(r)&&(r=c.getBestMask(d,y.bind(null,d,n))),c.applyMask(r,d),y(d,n,r),{modules:d,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}e.create=function(t,e){if("undefined"===typeof t||""===t)throw new Error("No input text");let n,o,a=r.M;return"undefined"!==typeof e&&(a=r.from(e.errorCorrectionLevel,r.M),n=h.from(e.version),o=c.from(e.maskPattern),e.toSJISFunc&&i.setToSJISFunction(e.toSJISFunc)),S(t,n,a,o)}},aaef:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){
|
|
12
|
+
return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,a,p,y,w,x,k,S,D,C,E,A=this._hash.words,T=d.words,B=h.words,F=s.words,$=l.words,L=c.words,M=u.words;x=o=A[0],k=a=A[1],S=p=A[2],D=y=A[3],C=w=A[4];for(n=0;n<80;n+=1)E=o+t[e+F[n]]|0,E+=n<16?f(a,p,y)+T[0]:n<32?m(a,p,y)+T[1]:n<48?g(a,p,y)+T[2]:n<64?v(a,p,y)+T[3]:b(a,p,y)+T[4],E|=0,E=_(E,L[n]),E=E+w|0,o=w,w=y,y=_(p,10),p=a,a=E,E=x+t[e+$[n]]|0,E+=n<16?b(k,S,D)+B[0]:n<32?v(k,S,D)+B[1]:n<48?g(k,S,D)+B[2]:n<64?m(k,S,D)+B[3]:f(k,S,D)+B[4],E|=0,E=_(E,M[n]),E=E+C|0,x=C,C=D,D=_(S,10),S=k,k=E;E=A[1]+p+D|0,A[1]=A[2]+y+C|0,A[2]=A[3]+w+x|0,A[3]=A[4]+o+k|0,A[4]=A[0]+a+S|0,A[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function b(t,e,n){return t^(e|~n)}function _(t,e){return t<<e|t>>>32-e}n.RIPEMD160=o._createHelper(p),n.HmacRIPEMD160=o._createHmacHelper(p)}(Math),t.RIPEMD160}))},"10f8":function(t,e,n){"use strict";n("8737")},1132:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=e[o>>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|l,u=0;u<4&&o+.75*u<n;u++)r.push(i.charAt(c>>>6*(3-u)&63));var d=i.charAt(64);if(d)while(r.length%4)r.push(d);return r.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return o(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64}))},1231:function(t,e,n){},"133e":function(t,e,n){},1382:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.Rabbit=i.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=i._createHelper(l)}(),t.Rabbit}))},"13d2":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("1626"),a=n("1a2d"),s=n("83ab"),l=n("5e77").CONFIGURABLE,c=n("8925"),u=n("69f3"),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),b=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),_=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=d(t);return a(i,"source")||(i.source=v(_,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&h(this).source||c(this)}),"toString")},"14d9":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!u();i({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return a(e,n),n}})},"14dd":function(t,e,n){"use strict";n("8e95")},1626:function(t,e,n){"use strict";var i="object"==typeof document&&document.all;t.exports="undefined"==typeof i&&void 0!==i?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},1787:function(t,e,n){"use strict";var i=n("861d");t.exports=function(t){return i(t)||null===t}},"17e1":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,i=n.WordArray,r=i.init,o=i.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)};o.prototype=i}}(),t.lib.WordArray}))},"190d":function(t,e,n){"use strict";n("e702")},"191b":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("94f8"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.algo,o=r.SHA256,a=r.SHA224=o.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224}))},"19dd":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\nthis.$preview({\r\n\tsrc\r\n})\r\n```\r\n\r\n## 配置项\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsrc | String | - | 媒体文件地址"},"1a2d":function(t,e,n){"use strict";var i=n("e330"),r=n("7b0b"),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},"1bd7":function(t,e,n){"use strict";n("7b0d")},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},"1d80":function(t,e,n){"use strict";var i=n("7234"),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},"1e54":function(t,e,n){"use strict";n("577e6")},"1fad":function(t,e,n){"use strict";n("d287")},"21bf":function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,i){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof e&&e.crypto&&(r=e.crypto),!r)try{r=n(0)}catch(v){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},l=s.lib={},c=l.Base=function(){return{extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=l.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=i?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<r;s+=4)e[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),d=s.enc={},h=d.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new u.init(n,e/2)}},p=d.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new u.init(n,e)}},f=d.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},m=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=4*a,l=o/s;l=e?t.ceil(l):t.max((0|l)-this._minBufferSize,0);var c=l*a,d=t.min(4*c,o);if(c){for(var h=0;h<c;h+=a)this._doProcessBlock(r,h);n=r.splice(0,c),i.sigBytes-=d}return new u.init(n,d)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(l.Hasher=m.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}))}).call(this,n("c8ba"))},"23cb":function(t,e,n){"use strict";var i=n("5926"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"23e7":function(t,e,n){"use strict";var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),c=n("94ca");t.exports=function(t,e){var n,u,d,h,p,f,m=t.target,g=t.global,v=t.stat;if(u=g?i:v?i[m]||s(m,{}):(i[m]||{}).prototype,u)for(d in e){if(p=e[d],t.dontCallGetSet?(f=r(u,d),h=f&&f.value):h=u[d],n=c(g?d:m+(v?".":"#")+d,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(u,d,p,t)}}},"241c":function(t,e,n){"use strict";var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},2444:function(t,e,n){"use strict";(function(e){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}var l={adapter:s(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){l.headers[t]=i.merge(o)})),t.exports=l}).call(this,n("4362"))},"25c5":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-progress></c-progress>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | line | 进度条样式<br>**line**: 线形<br>**circle**: 环形\r\ncolor | String | - | 进度条颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**red**: 红色<br>**green**: 绿色<br>**blue**: 蓝色<br>**yellow**: 黄色\r\nbackground | String | - | 进度条底色\r\nsize | String \\| Number | 100 | 线性进度条的长度或环形进度条直径\r\nline-size | String \\| Number | 6 | 进度条粗细\r\nfont-size | String \\| Number | 14 | 百分比文字大小\r\nrate | String \\| Number \\| Array | 0 | 0-100:进度百分比<br>10,110:当前值,最大值,也可传入数组\r\ndecimal | String \\| Number | 0 | 保留小数位数"},"271a":function(t,e,n){"use strict";var i=n("cb2d"),r=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.getAll),u=r(l.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||i(l,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=c(this,t);a(e,1);var r=o(n),s=0;while(s<i.length)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},2732:function(t,e,n){const i=n("699e");e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let r=0;r<t.length;r++)for(let o=0;o<e.length;o++)n[r+o]^=i.mul(t[r],e[o]);return n},e.mod=function(t,e){let n=new Uint8Array(t);while(n.length-e.length>=0){const t=n[0];for(let o=0;o<e.length;o++)n[o]^=i.mul(e[o],t);let r=0;while(r<n.length&&0===n[r])r++;n=n.slice(r)}return n},e.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let r=0;r<t;r++)n=e.mul(n,new Uint8Array([1,i.exp(r)]));return n}},"27a3":function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},"28d6":function(t,e,n){"use strict";n("3664")},"294c":function(t,e,n){"use strict";n("307f")},"29ee":function(t,e,n){},"2a66":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding}))},"2b79":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,c=i.iterations;while(s.length<l){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});e.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),t.EvpKDF}))},"2ba4":function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},"2c34":function(t,e,n){},"2d00":function(t,e,n){"use strict";var i,r,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},"2d83":function(t,e,n){"use strict";var i=n("387f");t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f3a":function(t,e,n){const i=n("bbf0"),r=n("7bf0");function o(t){this.mode=i.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=r.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=o},"307f":function(t,e,n){},"30b5":function(t,e,n){"use strict";var i=n("c532");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},3252:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=n.x64={};a.Word=r.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var r=t[i];n.push(r.high),n.push(r.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=r.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}})}(),t}))},3278:function(t,e,n){var i;n("c73d"),n("d9e2"),n("14d9"),function(e){t.exports=e()}((function(){var t;return function t(e,n,r){function o(s,l){if(!n[s]){if(!e[s]){var c="function"==typeof i&&i;if(!l&&c)return i(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};e[s][0].call(d.exports,(function(t){var n=e[s][1][t];return o(n||t)}),d,d.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){function i(t,e){for(;t&&t.nodeType!==r;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}e.exports=i},{}],2:[function(t,e,n){function i(t,e,n,i,o){var a=r.apply(this,arguments);return t.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}function r(t,e,n,i){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&i.call(t,n)}}var o=t("./closest");e.exports=i},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function i(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!s.string(e))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(t))return r(t,e,n);if(s.nodeList(t))return o(t,e,n);if(s.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function o(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function a(t,e,n){return l(document.body,t,e,n)}var s=t("./is"),l=t("delegate");e.exports=i},{"./is":3,delegate:2}],5:[function(t,e,n){function i(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}e.exports=i},{}],6:[function(t,e,n){function i(){}i.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function i(){r.off(t,i),e.apply(n,arguments)}var r=this;return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;for(i;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,a=i.length;o<a;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},e.exports=i},{}],7:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["module","select"],o);else if(void 0!==i)o(n,e("select"));else{var a={exports:{}};o(a,r.select),r.clipboardAction=a.exports}}(this,(function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(e),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function(){function t(e){i(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s}))},{select:5}],8:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],o);else if(void 0!==i)o(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};o(a,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=a.exports}}(this,(function(t,e,n,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var c=r(e),u=r(n),d=r(i),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),f=function(t){function e(t,n){o(this,e);var i=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.resolveOptions(n),i.listenClick(t),i}return s(e,t),p(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,d.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(u.default);t.exports=f}))},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}))},"342f":function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3452:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"),n("af5b"))})(0,(function(t){return t}))},"34fc":function(t,e,n){const i=n("7a43"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return o[4*(t-1)+0];case i.M:return o[4*(t-1)+1];case i.Q:return o[4*(t-1)+2];case i.H:return o[4*(t-1)+3];default:return}}},3511:function(t,e,n){"use strict";var i=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw i("Maximum allowed index exceeded");return t}},3565:function(t,e,n){t.exports=n.p+"img/empty.png"},"35d5":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-button>按钮</c--button>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsize | String | normal | 按钮尺寸<br>**normal**: 普通按钮<br>**form**: 表单操作按钮\r\ncolor | String | - | 按钮颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**red**: 红色<br>**green**: 绿色<br>**blue**: 蓝色<br>**yellow**: 黄色\r\nhollow | Boolean | false | 是否为中空按钮\r\nprepend-icon | String | - | 前置图标样式名\r\nappend-icon | String | - | 前置图标样式名\r\ndisabled | Boolean | false | 是否禁用按钮\r\n@click | Function | - | 点击事件"},3664:function(t,e,n){},"37f6":function(t,e,n){},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38ba":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("2b79"))})(0,(function(t){t.lib.Cipher||function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,d=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?k:y}return function(e){return{encrypt:function(n,i,r){return t(i).encrypt(e,n,i,r)},decrypt:function(n,i,r){return t(i).decrypt(e,n,i,r)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),p=i.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=h.CBC=function(){var t=p.extend();function n(t,n,i){var r,o=this._iv;o?(r=o,this._iv=e):r=this._prevBlock;for(var a=0;a<i;a++)t[n+a]^=r[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r),i.encryptBlock(t,e),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);i.decryptBlock(t,e),n.call(this,t,e,r),this._prevBlock=o}}),t}(),m=n.pad={},g=m.Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:f,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(i,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),i.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),b=n.format={},_=b.OpenSSL={stringify:function(t){var e,n=t.ciphertext,i=t.salt;return e=i?o.create([1398893684,1701076831]).concat(i).concat(n):n,e.toString(l)},parse:function(t){var e,n=l.parse(t),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},y=i.SerializableCipher=r.extend({cfg:r.extend({format:_}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),o=r.finalize(e),a=r.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=t.createDecryptor(n,i).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),w=n.kdf={},x=w.OpenSSL={execute:function(t,e,n,i,r){if(i||(i=o.random(8)),r)a=u.create({keySize:e+n,hasher:r}).compute(t,i);else var a=u.create({keySize:e+n}).compute(t,i);var s=o.create(a.words.slice(e),4*n);return a.sigBytes=4*e,v.create({key:a,iv:s,salt:i})}},k=i.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:x}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=i.kdf.execute(n,t.keySize,t.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=y.encrypt.call(this,t,e,r.key,i);return o.mixIn(r),o},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt,i.hasher);i.iv=r.iv;var o=y.decrypt.call(this,t,e,r.key,i);return o}})}()}))},3934:function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},3953:function(t,e,n){},"3a34":function(t,e,n){"use strict";var i=n("83ab"),r=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){"use strict";var i=n("e330");t.exports=i({}.isPrototypeOf)},"3bb9":function(t,e,n){"use strict";n("6f90")},"3bbe":function(t,e,n){"use strict";var i=n("1787"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},"3d5a":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=i._createHelper(l)}(),t.RabbitLegacy}))},"3da0":function(t,e,n){"use strict";n("b58f")},"3dd2":function(t,e,n){},"3fb9":function(t,e,n){"use strict";n("5a36")},4006:function(t,e,n){const i=n("45be");function r(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function o(t,e,n){let i=t+e;return"undefined"!==typeof n&&(i+=" "+n),i}function a(t,e,n){let i="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(i+=a?o("M",c+n,.5+u+n):o("m",r,0),r=0,a=!1),c+1<e&&t[l+1]||(i+=o("h",s),s=0)):r++}return i}e.render=function(t,e,n){const o=i.getOptions(e),s=t.modules.size,l=t.modules.data,c=s+2*o.margin,u=o.color.light.a?"<path "+r(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+r(o.color.dark,"stroke")+' d="'+a(l,s,o.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+p+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,f),f}},"40d5":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4146:function(t,e,n){const i=n("45be");function r(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}function o(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,n){let a=n,s=e;"undefined"!==typeof a||e&&e.getContext||(a=e,e=void 0),e||(s=o()),a=i.getOptions(a);const l=i.getImageWidth(t.modules.size,a),c=s.getContext("2d"),u=c.createImageData(l,l);return i.qrToImageData(u.data,t,a),r(c,s,l),c.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,i){let r=i;"undefined"!==typeof r||n&&n.getContext||(r=n,n=void 0),r||(r={});const o=e.render(t,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}},"427b":function(t,e,n){"use strict";n("c5a0")},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"43ba":function(t,e,n){},4425:function(t,e,n){},"44ad":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("c6b6"),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},"44e7":function(t,e,n){"use strict";var i=n("861d"),r=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===r(t))}},"45be":function(t,e){function n(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){const r=n.modules.size,o=n.modules.data,a=e.getScale(r,i),s=Math.floor((r+2*i.margin)*a),l=i.margin*a,c=[i.color.light,i.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=4*(e*s+n),d=i.color.light;if(e>=l&&n>=l&&e<s-l&&n<s-l){const t=Math.floor((e-l)/a),i=Math.floor((n-l)/a);d=c[o[t*r+i]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}},"467f":function(t,e,n){"use strict";var i=n("2d83");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},4764:function(t,e,n){"use strict";n("67e6")},"485a":function(t,e,n){"use strict";var i=n("c65b"),r=n("1626"),o=n("861d"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},"495a":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tab-list ref="tabList"></c-tab-list>\r\n\r\n// 切换到指定序号项\r\nthis.$refs.tabList.changeIndex(0);\r\n\r\n// 切换到指定value项\r\nthis.$refs.tabList.changeValue(val);\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntabs | Array | - | 标签列表数据,[{"name": "选项卡一"}, {"name": "选项卡二"}]\r\ntype | String | tab | 选项卡样式<br>**tab**: 普通选项卡<br>**border-tab**: 带边框的选项卡<br>**card**: 卡片式\r\nimmediate | Boolean | true | 是否立即选中第一项\r\n@change | Function(tab) | - | 标签切换事件,返回对应的标签数据'},"49bf":function(t,e,n){"use strict";n("1231")},"4a7b":function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function c(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(t[r],e[r])}i.forEach(r,(function(t){i.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),i.forEach(o,c),i.forEach(a,(function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(void 0,e[r])})),i.forEach(s,(function(i){i in e?n[i]=l(t[i],e[i]):i in t&&(n[i]=l(void 0,t[i]))}));var u=r.concat(o).concat(a).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return i.forEach(d,c),n}},"4ba9":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<i;a++)t[e+a]^=o[a]}});return e.Decryptor=n,e}(),t.mode.OFB}))},"4bc6":function(t,e,n){},"4c39":function(t,e,n){"use strict";n("64ad")},"4d64":function(t,e,n){"use strict";var i=n("fc6a"),r=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,l=i(e),c=o(l),u=r(a,c);if(t&&n!==n){while(c>u)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4e02":function(t,e,n){},"4e91":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-editor></c-editor>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名"},"50c4":function(t,e,n){"use strict";var i=n("5926"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"516d":function(t,e,n){"use strict";n("b49e")},"526e":function(t,e,n){},5270:function(t,e,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),a=n("2444");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=r(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5494:function(t,e,n){"use strict";var i=n("83ab"),r=n("e330"),o=n("edd0"),a=URLSearchParams.prototype,s=r(a.forEach);i&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},"563e":function(t,e,n){},5692:function(t,e,n){"use strict";var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){"use strict";var i=n("d066"),r=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},"577e":function(t,e,n){"use strict";var i=n("f5df"),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},"577e4":function(t,e){function n(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}n.prototype.set=function(t,e,n,i){const r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},n.prototype.get=function(t,e){return this.data[t*this.size+e]},n.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},n.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=n},"577e6":function(t,e,n){},"58b4":function(t,e,n){"use strict";t.exports=function(t){for(var e=[],n=t.length,i=0;i<n;i++){var r=t.charCodeAt(i);if(r>=55296&&r<=56319&&n>i+1){var o=t.charCodeAt(i+1);o>=56320&&o<=57343&&(r=1024*(r-55296)+o-56320+65536,i+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},5926:function(t,e,n){"use strict";var i=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},5972:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n// 消息弹窗\r\nthis.$message({\r\n\tmessage: '消息弹窗内容'\r\n})\r\n\r\n// 通知弹窗\r\nthis.$notice({\r\n\ttitle: '通知标题',\r\n\tmessage: '通知弹窗内容',\r\n\tbutton: [{\r\n\t\tname: '不再提醒',\r\n\t\tcallback() {}\r\n\t}]\r\n})\r\n\r\n// 确认弹窗\r\nthis.$confirm({\r\n\ttitle: '确认弹窗标题',\r\n\tmessage: '确认弹窗内容',\r\n\tresolve: () => {},\r\n\tcancel: () => {}\r\n})\r\n\r\n// 加载弹窗\r\nthis.$loading();\r\n```\r\n\r\n## 配置项\r\n\r\n### 消息弹窗 $message\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**success**: 成功<br>**file**: 失败<br>**warn**: 警告\r\nmessage | String | - | 消息内容\r\ntimeout | Number | 2500 | 自动消失时长\r\nmask | Boolean | false | 消息弹窗存在时是否允许点击页面其他区域\r\n\r\n### 通知弹窗 $notice\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**success**: 成功<br>**file**: 失败<br>**warn**: 警告\r\ntitle | String | - | 标题\r\nmessage | String | - | 通知内容\r\ntimeout | Number | 1000 | 自动消失时长\r\nbutton | Array | - | 为通知弹窗定义按钮\r\n-- button.name | String | - | 按钮名称\r\n-- button.callback(close) | String | - | 按钮回到函数<br>**close**: 调用该方法可立即关闭通知弹窗\r\n\r\n### 确认弹窗 $confirm\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**enquire**: 询问<br>**warn**: 警告\r\ntitle | String | \"系统提醒\" | 标题\r\nmessage | String | - | 消息内容\r\nbuttonName | String | \"确定\" | 确定按钮名称\r\ncancelButtonName | String | \"取消\" | 取消按钮名称\r\ncancelButton | Boolean | true | 是否显示取消按钮\r\nresolve | Function | - | 确定按钮回调函数\r\ncancel | Function | - | 取消按钮回调函数\r\n\r\n### 加载弹窗 $loading\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nmessage | String | - | 消息内容\r\ntimeout | Number | 10000 | 自动消失时长"},5980:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){(function(){var e=t,n=e.lib,i=n.Base,r=e.enc,o=r.Utf8,a=e.algo;a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),s=r.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(n));return i}})})()}))},5992:function(t,e,n){"use strict";n("0848")},"59b1":function(t,e,n){},"59ed":function(t,e,n){"use strict";var i=n("1626"),r=n("0d51"),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},"5a08":function(t,e,n){},"5a36":function(t,e,n){},"5aa3":function(t,e,n){var i={"./button.md":"35d5","./detail.md":"b74a","./dialog.md":"796e","./draw_sort.md":"d6f7","./editor.md":"4e91","./file.md":"6184","./form.md":"7741","./input.md":"b035","./layout/flex.md":"a46c","./layout/grid.md":"d013","./link.md":"a29b","./module/complex.md":"9d1b","./module/multi.md":"89e3","./module/normal.md":"8fde","./module/tabs.md":"7daf","./options.md":"e6c5","./popup.md":"5972","./preview.md":"19dd","./progress.md":"25c5","./qrcode.md":"9927","./selector.md":"c0c9","./steps.md":"6627","./switch.md":"e474","./tab.md":"495a","./table.md":"90f9","./test.md":"d429","./title.md":"674c","./tooltip.md":"9abb","./tree.md":"6298","./window.md":"d278"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="5aa3"},"5b20":function(t,e,n){"use strict";n("526e")},"5b81":function(t,e,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("e330"),a=n("1d80"),s=n("1626"),l=n("7234"),c=n("44e7"),u=n("577e"),d=n("dc4a"),h=n("90d8"),p=n("0cb2"),f=n("b622"),m=n("c430"),g=f("replace"),v=TypeError,b=o("".indexOf),_=o("".replace),y=o("".slice),w=Math.max,x=function(t,e,n){return n>t.length?-1:""===e?n:b(t,e,n)};i({target:"String",proto:!0},{replaceAll:function(t,e){var n,i,o,f,k,S,D,C,E,A=a(this),T=0,B=0,F="";if(!l(t)){if(n=c(t),n&&(i=u(a(h(t))),!~b(i,"g")))throw new v("`.replaceAll` does not allow non-global regexes");if(o=d(t,g),o)return r(o,t,A,e);if(m&&n)return _(u(A),t,e)}f=u(A),k=u(t),S=s(e),S||(e=u(e)),D=k.length,C=w(1,D),T=x(f,k,0);while(-1!==T)E=S?u(e(k,T,f)):p(k,f,T,[],void 0,e),F+=y(f,B,T)+E,B=T+D,T=x(f,k,T+C);return B<f.length&&(F+=y(f,B)),F}})},"5c6c":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,n){"use strict";var i=n("83ab"),r=n("1a2d"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},"5f53":function(t,e,n){"use strict";n("133e")},"5ffd":function(t,e,n){"use strict";n("e4e3")},6184:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-upload-file></c-upload-file> // 文件上传\r\n<c-upload-file>\r\n\t// 如需要自定义提示说明,可在组件中插入以下代码\r\n\t<template #tip="{type}">\r\n\t\t<p>自定义的提示说明</p>\r\n\t\t<p>{{type}}</p> // type为根据属性生成的提示说明,例如:"支持格式:图片,mp4"\r\n\t</template>\r\n</c-upload-file>\r\n\r\n<c-file></c-file> // 文件展示\r\n```\r\n\r\n## 属性配置\r\n\r\n### 文件上传 <c-upload-file\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 文件上传的值,可使用v-model属性绑定变量,multiple为true时可传入逗号隔开的字符串或数组\r\nname | String | - | 字段名\r\ntype | String | - | 支持文件类型<br>**image**: 图片<br>**video**: 视频<br>**word**: word文档<br>**excel**: excel文档<br>**zip**: 压缩包\r\nsize | String \\| Number | - | 文件大小上限,单位MB\r\nmedia | Boolean | false | 是否以媒体预览的方式展示\r\nbutton | String | "上传文件" | 上传按钮文字\r\ntip | String | - | 提示说明\r\nmultiple | Boolean \\| String \\| Number | false | 是否支持上传多个文件,可传入数字限制最多可上传文件数\r\n\r\n### 文件展示 <c-file\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsrc | String | - | 文件地址\r\nmedia | Boolean | false | 是否以媒体预览的方式展示'},6298:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tree></c-tree>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ndata | Array | - | 节点数据:[{<br>"name": "节点名", <br>"id": "节点值", <br>"pId": "父节点值",<br>"leaf": "是否为叶子节点", <br>"checked": "是否勾选", <br>"data": "自定义数据", <br>"children": "子节点"<br>}]\r\nsimple | Boolean | false | 节点数据是否为简单结构\r\nselect | Boolean \\| Object | false | 节点是否可以选中\r\nselect.unselect | Boolean | true | 选中后是否可以取消选中\r\ncheck | Boolean \\| Object | false | 节点是否可以勾选\r\ncheck.linked | Boolean \\| String | both | 关联方式<br>**false**: 不关联<br>**parent**: 只关联父级<br>**child**: 只关联子级<br>**both**: 都关联\r\nckeck.clickCheck | Boolean | false | 点击节点触发勾选\r\n@load | Function(node, resolve) | - | 加载子节点数据\r\n@click | Function(node) | - | 节点点击事件\r\n@check | Function(node) | - | 节点勾选事件'},"633a":function(t,e,n){},6374:function(t,e,n){"use strict";var i=n("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},"64ad":function(t,e,n){},6627:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-steps></c-steps>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsteps | Array | - | 步骤数据:[{"name": "步骤名", "message": "步骤描述,可不填"}]\r\nactive | String \\| Number | 1 | 当前步骤\r\ngap | String \\| Number | 100 | 步骤节点之间的距离'},"674c":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-title>标题名称</c-title>\r\n```"},"67dd":function(t,e){t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},"67e3":function(t,e,n){},"67e6":function(t,e,n){},"68ca":function(t,e,n){"use strict";n("29ee")},"699e":function(t,e){const n=new Uint8Array(512),i=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)n[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[i[t]+i[e]]}},"69b1":function(t,e,n){},"69f3":function(t,e,n){"use strict";var i,r,o,a=n("cdce"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("1a2d"),d=n("c6cd"),h=n("f772"),p=n("d012"),f="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},b=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}};if(a||d.state){var _=d.state||(d.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,i=function(t,e){if(_.has(t))throw new m(f);return e.facade=t,_.set(t,e),e},r=function(t){return _.get(t)||{}},o=function(t){return _.has(t)}}else{var y=h("state");p[y]=!0,i=function(t,e){if(u(t,y))throw new m(f);return e.facade=t,c(t,y,e),e},r=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:b}},"6b32":function(t,e,n){},"6be5":function(t,e,n){"use strict";n("2c34")},"6d08":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.CipherParams,o=n.enc,a=o.Hex,s=n.format;s.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex}))},"6d60":function(t,e,n){},"6f19":function(t,e,n){"use strict";var i=n("9112"),r=n("0d26"),o=n("b980"),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):i(t,"stack",r(n,s)))}},"6f90":function(t,e,n){},7156:function(t,e,n){"use strict";var i=n("1626"),r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},"720e":function(t,e,n){},7234:function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){"use strict";var i=n("e330"),r=n("59ed");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},"72fe":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];(function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0})();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],p=t[e+2],f=t[e+3],m=t[e+4],g=t[e+5],v=t[e+6],b=t[e+7],_=t[e+8],y=t[e+9],w=t[e+10],x=t[e+11],k=t[e+12],S=t[e+13],D=t[e+14],C=t[e+15],E=o[0],A=o[1],T=o[2],B=o[3];E=c(E,A,T,B,a,7,s[0]),B=c(B,E,A,T,l,12,s[1]),T=c(T,B,E,A,p,17,s[2]),A=c(A,T,B,E,f,22,s[3]),E=c(E,A,T,B,m,7,s[4]),B=c(B,E,A,T,g,12,s[5]),T=c(T,B,E,A,v,17,s[6]),A=c(A,T,B,E,b,22,s[7]),E=c(E,A,T,B,_,7,s[8]),B=c(B,E,A,T,y,12,s[9]),T=c(T,B,E,A,w,17,s[10]),A=c(A,T,B,E,x,22,s[11]),E=c(E,A,T,B,k,7,s[12]),B=c(B,E,A,T,S,12,s[13]),T=c(T,B,E,A,D,17,s[14]),A=c(A,T,B,E,C,22,s[15]),E=u(E,A,T,B,l,5,s[16]),B=u(B,E,A,T,v,9,s[17]),T=u(T,B,E,A,x,14,s[18]),A=u(A,T,B,E,a,20,s[19]),E=u(E,A,T,B,g,5,s[20]),B=u(B,E,A,T,w,9,s[21]),T=u(T,B,E,A,C,14,s[22]),A=u(A,T,B,E,m,20,s[23]),E=u(E,A,T,B,y,5,s[24]),B=u(B,E,A,T,D,9,s[25]),T=u(T,B,E,A,f,14,s[26]),A=u(A,T,B,E,_,20,s[27]),E=u(E,A,T,B,S,5,s[28]),B=u(B,E,A,T,p,9,s[29]),T=u(T,B,E,A,b,14,s[30]),A=u(A,T,B,E,k,20,s[31]),E=d(E,A,T,B,g,4,s[32]),B=d(B,E,A,T,_,11,s[33]),T=d(T,B,E,A,x,16,s[34]),A=d(A,T,B,E,D,23,s[35]),E=d(E,A,T,B,l,4,s[36]),B=d(B,E,A,T,m,11,s[37]),T=d(T,B,E,A,b,16,s[38]),A=d(A,T,B,E,w,23,s[39]),E=d(E,A,T,B,S,4,s[40]),B=d(B,E,A,T,a,11,s[41]),T=d(T,B,E,A,f,16,s[42]),A=d(A,T,B,E,v,23,s[43]),E=d(E,A,T,B,y,4,s[44]),B=d(B,E,A,T,k,11,s[45]),T=d(T,B,E,A,C,16,s[46]),A=d(A,T,B,E,p,23,s[47]),E=h(E,A,T,B,a,6,s[48]),B=h(B,E,A,T,b,10,s[49]),T=h(T,B,E,A,D,15,s[50]),A=h(A,T,B,E,g,21,s[51]),E=h(E,A,T,B,k,6,s[52]),B=h(B,E,A,T,f,10,s[53]),T=h(T,B,E,A,w,15,s[54]),A=h(A,T,B,E,l,21,s[55]),E=h(E,A,T,B,_,6,s[56]),B=h(B,E,A,T,C,10,s[57]),T=h(T,B,E,A,v,15,s[58]),A=h(A,T,B,E,S,21,s[59]),E=h(E,A,T,B,m,6,s[60]),B=h(B,E,A,T,x,10,s[61]),T=h(T,B,E,A,p,15,s[62]),A=h(A,T,B,E,y,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+A|0,o[2]=o[2]+T|0,o[3]=o[3]+B|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,i,r,o,a){var s=t+(e&n|~e&i)+r+a;return(s<<o|s>>>32-o)+e}function u(t,e,n,i,r,o,a){var s=t+(e&i|n&~i)+r+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,i,r,o,a){var s=t+(e^n^i)+r+a;return(s<<o|s>>>32-o)+e}function h(t,e,n,i,r,o,a){var s=t+(n^(e|~i))+r+a;return(s<<o|s>>>32-o)+e}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5}))},7418:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},7741:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n// 普通表单\r\n<c-form ref=\"form\">\r\n\t<c-form-item>\r\n\t\t// 表单项内容写在组件内部,输入框、单复选框、选择器和文件上传组件定义name属性后即可通过get方法获取数据\r\n\t\t<c-input name=\"name\"></c-input>\r\n\t\t\r\n\t\t// 如需要自定义提示说明,可在组件中插入以下代码\r\n\t\t<template #tip>\r\n\t\t\t<p>自定义提示信息</p>\r\n\t\t</template>\r\n\t\t\r\n\t\t// 表单项操作\r\n\t\t<template #handle>\r\n\t\t\t<c-link>跳转链接</c-link>\r\n\t\t</template>\r\n\t</c-form-item>\r\n</c-form>\r\n\r\n// 多列表单\r\n<c-form ref=\"form\">\r\n\t<c-form-column>\r\n\t\t<c-form-item></c-form-item>\r\n\t</c-form-column>\r\n\t\r\n\t<c-form-column>\r\n\t\t<c-form-item></c-form-item>\r\n\t</c-form-column>\r\n</c-form>\r\n\r\n// 表单项多列表单\r\n<c-form ref=\"form\" column=\"2\">\r\n\t<c-form-item></c-form-item>\r\n\t<c-form-item></c-form-item>\r\n</c-form>\r\n\r\n// 嵌套表单\r\n<c-form ref=\"form\">\r\n\t// 当一个子表单处于另一个父表单内时,可以定义子表单的name属性,获取父表单的数据时会将子表单的数据封装在对应的name字段中;不定义name属性则将父子表单的数据合并\r\n\t<c-form name=\"subForm\"></c-form>\r\n\t\r\n\t// 父表单获取到的数据为\r\n\t// {\r\n\t// \t...父表单的数据,\r\n\t// \tsubForm: {\r\n\t// \t\t...子表单的数据\r\n\t// \t}\r\n\t// }\r\n</c-form>\r\n\r\n// 回填数据\r\nthis.$refs.form.set({\r\n\tname: 'value'\r\n});\r\n\r\n// 获取数据\r\nthis.$refs.form.get();\r\n\r\n// 清空数据\r\nthis.$refs.form.clear();\r\n\r\n// 提交数据\r\nthis.$refs.form.submit({\r\n\turl: '', // 接口地址\r\n\t\r\n\t// 校验规则\r\n\trule: {\r\n\t\tname: '提示信息', // 仅校验非空可简写\r\n\t\t\r\n\t\tname: [...check], // 仅定义校验项可简写\r\n\r\n\t\tname: { // 完整配置项\r\n\t\t\tcheck: [{\r\n\t\t\t\ttype: 'empty', // 非空校验\r\n\t\t\t\tmessage: '提示信息, // 提示信息\r\n\t\t\t\tskip: (value, data) {} // 跳过字段单项校验\r\n\t\t\t}, {\r\n\t\t\t\ttype: 'regexp', // 正则校验\r\n\t\t\t\tregexp: ['phone', 'email'] // 正则表达式,满足其一即通过校验(phone: 手机号; tel: 固定电话; email: 邮箱; realname: 姓名; idcard: 身份证号; username: 用户名; password: 密码)\r\n\t\t\t}, {\r\n\t\t\t\ttype: 'function', // 自定义函数校验\r\n\t\t\t\tfun: (value, data) => {} // 校验函数,参数value为该字段的值,参数data为表单数据\r\n\t\t\t}],\r\n\t\t\tskip: (value, data) {}, // 跳过字段校验\r\n\t\t\tfail: (value, data) {} // 字段校验未通过回调\r\n\t\t},\r\n\r\n\t\tname: data => { // 复杂表单项校验,name对应c-form-item组件的name属性\r\n\t\t\treturn true; // 成功返回true\r\n\t\t\treturn '错误信息'; // 失败返回错误信息\r\n\t\t}\r\n\t},\r\n\r\n\t// 校验前处理数据\r\n\tbeforeValid: data => {\r\n\t\treturn data;\r\n\t},\r\n\t\r\n\t// 提交前处理数据\r\n\tdataFormatter: data => {\r\n\t\treturn data;\r\n\t},\r\n\t\r\n\t// 提交成功\r\n\tsuccess: (data, res, msg) => {},\r\n\r\n\t// 校验或提交失败\r\n\tfail: (data, code, res, msg) => {}\r\n});\r\n```\r\n\r\n## 属性配置\r\n\r\n### 表单 <c-form\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ncolumn | String | 1 | 表单项多列展示\r\nvertical | Boolean | false | 表单项纵向排列\r\nunit-width | String | - | 表单项控件区域宽度\r\nname | String | - | 表单数据字段名\r\nlink-parent | Boolean | false | 子表单是否联动父表单的column、vertical、unit-width属性\r\n\r\n### 表单项 <c-form-item\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\nrequired | Boolean | false | 字段名是否带*号\r\nwidth | String | - | 表单项控件区域宽度\r\ntip | String | - | 提示说明"},"77a0":function(t,e,n){(function(e,i){t.exports=i(n("8bbf"))})(0,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};function s(){if(c())return!1;var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}var l=function(){if(c())return!1;var t=navigator.userAgent;return!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},c=function(){return t.prototype.$isServer},u=function(){function t(){n(this,t)}return i(t,[{key:"getEventObject",value:function(t){return this.touchObject?this.isTouch?t.touches:[t]:null}},{key:"getTouchObject",value:function(){if(c())return null;this.isTouch=!1;var t=navigator.userAgent,e=navigator.platform,n={};switch(n.touch=!!("ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),n.nonDeskTouch=n.touch&&!/win32/i.test(e)||n.touch&&/win32/i.test(e)&&/mobile/i.test(t),n.eventType="onmousedown"in window&&!n.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||navigator.msMaxTouchPoints>0?"mstouchpoints":"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0?"touchpoints":"mouse",n.eventType){case"mouse":n.touchstart="mousedown",n.touchend="mouseup",n.touchmove="mousemove",n.touchenter="mouseenter",n.touchmove="mousemove",n.touchleave="mouseleave";break;case"touch":n.touchstart="touchstart",n.touchend="touchend",n.touchmove="touchmove",n.touchcancel="touchcancel",n.touchenter="touchstart",n.touchmove="touchmove",n.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":n.touchstart="MSPointerDown",n.touchend="MSPointerUp",n.touchmove="MSPointerMove",n.touchcancel="MSPointerCancel",n.touchenter="MSPointerDown",n.touchmove="MSPointerMove",n.touchleave="MSPointerUp";break;case"touchpoints":n.touchstart="pointerdown",n.touchend="pointerup",n.touchmove="pointermove",n.touchcancel="pointercancel",n.touchenter="pointerdown",n.touchmove="pointermove",n.touchleave="pointerup";break}return this.touchObject=n}}]),t}(),d=function(){function t(){var e=this;n(this,t),this.originPixelRatio=this.getRatio(),this.lastPixelRatio=this.originPixelRatio,window.addEventListener("resize",(function(){e.lastPixelRatio=e.getRatio()}))}return i(t,[{key:"getRatio",value:function(){var t=0,e=window.screen,n=navigator.userAgent.toLowerCase();return void 0!==window.devicePixelRatio?t=window.devicePixelRatio:~n.indexOf("msie")?e.deviceXDPI&&e.logicalXDPI&&(t=e.deviceXDPI/e.logicalXDPI):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(t=window.outerWidth/window.innerWidth),t&&(t=Math.round(100*t)),t}},{key:"getRatioBetweenPreAndCurrent",value:function(){return this.originPixelRatio/this.lastPixelRatio}}]),t}();function h(t,n,i){if(i&&T(n))return t;if(E(t))n=[],t.forEach((function(t,e){n[e]=h(t,n[e])}));else if(t){if(!A(t))return t;for(var r in n={},t)n[r]="object"===e(t[r])?h(t[r],n[r]):t[r]}return n}function p(t,n,i,r){if(r&&T(n))return t;if(n=n||{},E(t))!E(n)&&i&&(n=[]),E(n)&&t.forEach((function(t,e){n[e]=p(t,n[e],i,r)}));else if(t)if(A(t))for(var o in t)"object"===e(t[o])?T(n[o])?n[o]=h(t[o],n[o],r):p(t[o],n[o],i,r):(T(n[o])||i)&&(n[o]=t[o]);else i&&(n=t);return n}function f(t,e,n,i){(n[e]||"function"===typeof n)&&(i=i||e,Object.defineProperty(t,e,{get:function(){return n[i]},configurable:!0}))}var m=void 0,g=void 0;function v(){if(c())return 0;if(g||(g=new d),void 0!==m)return m*g.getRatioBetweenPreAndCurrent();var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var i=n.offsetWidth;return t.parentNode.removeChild(t),m=e-i,g||(g=new d),m*g.getRatioBetweenPreAndCurrent()}function b(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"on";"on"==r?t.addEventListener(e,n,i):t.removeEventListener(e,n,i)}var _=function(t){console.error("[vuescroll] "+t)},y=function(t){console.warn("[vuescroll] "+t)};function w(t,e){var n=!1;if(!t||!e)return n;while(t.parentNode!==e&&9!==t.parentNode.nodeType&&!t.parentNode._isVuescroll)t=t.parentNode;return t.parentNode==e&&(n=!0),n}function x(t){var e,n=document.documentElement.style;t.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?e="presto":"MozAppearance"in n?e="gecko":"WebkitAppearance"in n?e="webkit":"string"===typeof navigator.cpuClass&&(e="trident");var i={trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[e];return i}function k(t,e){if(c())return!1;var n="-"+x(window)+"-"+e,i=document.createElement("div");return i.style[t]=n,i.style[t]==n&&n}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments[4];if(e&&e.length>1)return r?[].concat(a(n),a(e)):[].concat(a(e),a(n));e=e[0];var o=D(e),s=o.ch,l=o.tag,c=o.isComponent;return c&&(e.data=p({attrs:e.componentOptions.propsData},e.data,!1,!0)),s=r?[].concat(a(n),a(s)):[].concat(a(s),a(n)),delete e.data.slot,t(l,p(i,e.data,!1,!0),s)}function D(t){if(!t||t.length>1)return{};t=t[0]?t[0]:t;var e=!!t.componentOptions,n=void 0,i=void 0;return e?(n=t.componentOptions.children||[],i=t.componentOptions.tag):(n=t.children||[],i=t.tag),{isComponent:e,ch:n,tag:i}}function C(t){var e=t.$parent;return!e._isVuescrollRoot&&e&&(e=e.$parent),e}var E=function(t){return Array.isArray(t)},A=function(t){return"[object Object]"==Object.prototype.toString.call(t)},T=function(t){return"undefined"===typeof t};function B(t,e){var n=void 0;return(n=/(-?\d+(?:\.\d+?)?)%$/.exec(t))?(n=n[1]-0,n=e*n/100):n=t-0,n}function F(t,e){if(!c()&&!document.getElementById(t)){var n=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=t,i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),n.appendChild(i)}}function $(){var t=".__hidebar::-webkit-scrollbar {\n width: 0;\n height: 0;\n }";F("vuescroll-hide-ios-bar",t)}function L(){var t="\n @-webkit-keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @-webkit-keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n @keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n .__vuescroll .__refresh,\n .__vuescroll .__load {\n position: absolute;\n width: 100%;\n color: black;\n height: 50px;\n line-height: 50px;\n text-align: center;\n font-size: 16px;\n }\n .__vuescroll .__refresh svg,\n .__vuescroll .__load svg {\n margin-right: 10px;\n width: 25px;\n height: 25px;\n vertical-align: sub;\n }\n .__vuescroll .__refresh svg.active,\n .__vuescroll .__load svg.active {\n transition: all 0.2s;\n }\n .__vuescroll .__refresh svg.active.deactive,\n .__vuescroll .__load svg.active.deactive {\n transform: rotateZ(180deg);\n }\n .__vuescroll .__refresh svg path,\n .__vuescroll .__refresh svg rect,\n .__vuescroll .__load svg path,\n .__vuescroll .__load svg rect {\n fill: #20a0ff;\n }\n .__vuescroll .__refresh svg.start,\n .__vuescroll .__load svg.start {\n stroke: #343640;\n stroke-width: 4;\n stroke-linecap: round;\n -webkit-animation: loading-rotate 2s linear infinite;\n animation: loading-rotate 2s linear infinite;\n }\n .__vuescroll .__refresh svg.start .bg-path,\n .__vuescroll .__load svg.start .bg-path {\n stroke: #f2f2f2;\n fill: none;\n }\n .__vuescroll .__refresh svg.start .active-path,\n .__vuescroll .__load svg.start .active-path {\n stroke: #20a0ff;\n fill: none;\n stroke-dasharray: 90, 150;\n stroke-dashoffset: 0;\n -webkit-animation: loading-wipe 1.5s ease-in-out infinite;\n animation: loading-wipe 1.5s ease-in-out infinite;\n }\n ";F("vuescroll-silde-mode-style",t)}var M={mounted:function(){P[this._uid]=this},beforeDestroy:function(){delete P[this._uid]},methods:{scrollTo:function(t,e,n){var i=t.x,r=t.y;!0!==e&&"undefined"!=typeof e||(e=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(i,r,e,n)},scrollBy:function(t,e,n){var i=t.dx,r=void 0===i?0:i,o=t.dy,a=void 0===o?0:o,s=this.getPosition(),l=s.scrollLeft,c=void 0===l?0:l,u=s.scrollTop,d=void 0===u?0:u;r&&(c+=B(r,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),a&&(d+=B(a,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(c,d,e,n)},scrollIntoView:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.$el;if("string"===typeof t&&(t=n.querySelector(t)),w(t,n)){var i=this.$el.getBoundingClientRect(),r=i.left,o=i.top,a=t.getBoundingClientRect(),s=a.left,l=a.top,c=r-s,u=o-l;this.scrollBy({dx:-c,dy:-u},e)}else y("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ")},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},P={};function I(){for(var t in P)P[t].refresh()}var N={vuescroll:{sizeStrategy:"percent",detectResize:!0,locking:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};function H(t){var e=!1,n=t.scrollPanel,i=t.bar,r=i.vBar,o=i.hBar,a=t.rail,s=a.vRail,l=a.hRail,c=n["initialScrollY"],u=n["initialScrollX"];return c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&y("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),u&&!String(u).match(/^\d+(\.\d+)?(%)?$/)&&y("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(r||o||s||l)&&y("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),z&&(z=[].concat(z),z.forEach((function(n){n(t)&&(e=!0)}))),e}var z=null,R=function(t,e){t=[].concat(t),t.forEach((function(t){p(t,N)})),z=e},O=["slide","native"],U=function(){},K=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],W="refreshDom",j="loadDom",V={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function q(t){var e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame,n=!!e;if(e&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(e.toString())&&(n=!1),n)return function(t,n){e(t,n)};var i=60,r={},o=1,a=null,s=+new Date;return function(t){var e=o++;return r[e]=t,null===a&&(a=setInterval((function(){var t=+new Date,e=r;for(var n in r={},e)e.hasOwnProperty(n)&&(e[n](t),s=t);t-s>2500&&(clearInterval(a),a=null)}),1e3/i)),e}}var Y={},X=/rgb\(/,G=/rgb\((.*)\)/;function Z(t,e){var n=t+"&"+e;if(Y[n])return Y[n];var i=document.createElement("div");i.style.background=t,document.body.appendChild(i);var r=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),X.test(r)?Y[n]="rgba("+G.exec(r)[1]+", "+e+")":t}var Q={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return V[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(t){var e,n,i,o=this,a=Z(o.ops.rail.background,o.ops.rail.opacity);this.touchManager||(this.touchManager=new u);var s,l=o.ops.rail.size,c=o.otherBarHide?0:l,d=o.touchManager.getTouchObject(),h={class:"__rail-is-"+o.type,style:(e={position:"absolute","z-index":"1",borderRadius:o.ops.rail.specifyBorderRadius||l,background:a,border:o.ops.rail.border},r(e,o.bar.opsSize,l),r(e,o.bar.posName,o.ops.rail["gutterOfEnds"]||0),r(e,o.bar.opposName,o.ops.rail["gutterOfEnds"]||c),r(e,o.bar.sidePosName,o.ops.rail["gutterOfSide"]),e)};d&&(h.on=(s={},r(s,d.touchenter,(function(){o.setRailHover()})),r(s,d.touchleave,(function(){o.setRailLeave()})),s));var p=o.ops.scrollButton.enable?l:0,f={class:"__bar-wrap-is-"+o.type,style:(n={position:"absolute",borderRadius:o.ops.rail.specifyBorderRadius||l},r(n,o.bar.posName,p),r(n,o.bar.opposName,p),n),on:{}},m=o.state.posValue*o.state.size,g=m*o.barRatio/o.barSize,v=o.state.opacity,b=C(this);b.setClassHook("vertical"==this.type?"vBarVisible":"hBarVisible",!!v);var _=(i={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},r(i,o.bar.size,100*o.barSize+"%"),r(i,"background",o.ops.bar.background),r(i,o.bar.opsSize,o.ops.bar.size),r(i,"opacity",v),r(i,"transform","translate"+V[o.type].axis+"("+g+"%)"),i),y={style:_,class:"__bar-is-"+o.type,ref:"thumb",on:{}};"vertical"==o.type?(f.style.width="100%",y.style.left=0,y.style.right=0):(f.style.height="100%",y.style.top=0,y.style.bottom=0);var w=this.touchManager.getTouchObject();return y.on[w.touchstart]=this.createBarEvent(),f.on[w.touchstart]=this.createTrackEvent(),t("div",h,[this.createScrollbarButton(t,"start"),this.hideBar?null:t("div",f,[t("div",y)]),this.createScrollbarButton(t,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var t=C(this),e=t.vuescroll.state;e.isRailHover||(e.isRailHover=!0,t.showBar())},setRailLeave:function(){var t=C(this),e=t.vuescroll.state;e.isRailHover=!1,t.hideBar()},setBarDrag:function(t){this.$emit("setBarDrag",this.isBarDragging=t);var e=C(this);e.setClassHook("vertical"==this.type?"vBarDragging":"hBarDragging",!!t)},createBarEvent:function(){var t=this,e=C(t),n=t.touchManager.getTouchObject();function i(e){var i=t.touchManager.getEventObject(e);i&&(e.stopImmediatePropagation(),e.preventDefault(),i=i[0],document.onselectstart=function(){return!1},t.axisStartPos=i[t.bar.client]-t.$refs["thumb"].getBoundingClientRect()[t.bar.posName],t.setBarDrag(!0),b(document,n.touchmove,o),b(document,n.touchend,a))}function o(n){if(t.axisStartPos){var i=t.touchManager.getEventObject(n);if(i){i=i[0];var o=t.$refs.thumb.parentNode,a=i[t.bar.client]-o.getBoundingClientRect()[t.bar.posName];a/=t.barRatio;var s=(a-t.axisStartPos)/o[t.bar.offset];e.scrollTo(r({},t.bar.axis.toLowerCase(),e.scrollPanelElm[t.bar.scrollSize]*s),!1)}}}function a(){t.setBarDrag(!1),e.hideBar(),document.onselectstart=null,t.axisStartPos=0,b(document,n.touchmove,o,!1,"off"),b(document,n.touchend,a,!1,"off")}return i},createTrackEvent:function(){var t=this;return function(e){var n=C(t),i=t.bar,o=i.client,a=i.offset,s=i.posName,l=i.axis,c=t.$refs["thumb"];if(e.preventDefault(),e.stopImmediatePropagation(),c){var u=c[a],d=t.touchManager.getEventObject(e)[0],h=(d[o]-e.currentTarget.getBoundingClientRect()[s]-u/2)/(e.currentTarget[a]-u);n.scrollTo(r({},l.toLowerCase(),100*h+"%"))}}},createScrollbarButton:function(t,e){var n,i=this;if(!i.ops.scrollButton.enable)return null;var o=i.ops.rail.size,a=i.ops.scrollButton,s=a.opacity,l=a.background,c=Z(l,s),u={class:["__bar-button","__bar-button-is-"+i.type+"-"+e],style:(n={},r(n,i.bar.scrollButton[e],0),r(n,"width",o),r(n,"height",o),r(n,"position","absolute"),r(n,"cursor","pointer"),r(n,"display","table"),n),ref:e},d={class:"__bar-button-inner",style:{border:"calc("+o+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};"vertical"==i.type?"start"==e?(d.style["border-bottom-color"]=c,d.style["transform"]="translateY(-25%)"):(d.style["border-top-color"]=c,d.style["transform"]="translateY(25%)"):"start"==e?(d.style["border-right-color"]=c,d.style["transform"]="translateX(-25%)"):(d.style["border-left-color"]=c,d.style["transform"]="translateX(25%)");var h=this.touchManager.getTouchObject();return d.on[h.touchstart]=this.createScrollButtonEvent(e,h),t("div",u,[t("div",d)])},createScrollButtonEvent:function(t,e){var n=this,i=C(n),o=n.ops.scrollButton,a=o.step,s=o.mousedownStep,l="start"==t?-a:a,c="start"==t?-s:s,u=q(window),d=n.type,h=!1,p=!0,f=void 0;function m(o){if(3!=o.which){if(i.setClassHook("cliking"+d+t+"Button",!0),o.stopImmediatePropagation(),o.preventDefault(),p=!1,i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),l)),b(document,e.touchend,v,!1),"mousedown"==e.touchstart){var a=n.$refs[t];b(a,"mouseenter",_,!1),b(a,"mouseleave",y,!1)}clearTimeout(f),f=setTimeout((function(){h=!0,u(g,window)}),500)}}function g(){h&&!p&&(i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),c),!1),u(g,window))}function v(){if(clearTimeout(f),h=!1,b(document,e.touchend,v,!1,"off"),"mousedown"==e.touchstart){var r=n.$refs[t];b(r,"mouseenter",_,!1,"off"),b(r,"mouseleave",y,!1,"off")}i.setClassHook("cliking"+d+t+"Button",!1)}function _(){p=!1,g()}function y(){p=!0}return m}}};function J(t,e){var n=V[e].axis,i=e.charAt(0)+"Bar",r=!t.bar[i].state.size||!t.mergedOptions.scrollPanel["scrolling"+n]||t.refreshLoad&&"vertical"!==e||t.mergedOptions.bar.disable,o=t.mergedOptions.rail.keepShow;return r&&!o?null:{hideBar:r,props:{type:e,ops:{bar:t.mergedOptions.bar,rail:t.mergedOptions.rail,scrollButton:t.mergedOptions.scrollButton},state:t.bar[i].state,hideBar:r},on:{setBarDrag:t.setBarDrag},ref:e+"Bar",key:e}}function tt(t,e){var n=J(e,"vertical"),i=J(e,"horizontal");return e.setClassHook("hasVBar",!(!n||n.hideBar)),e.setClassHook("hasHBar",!(!i||i.hideBar)),[n?t("bar",o({},n,{props:o({otherBarHide:!i},n.props)})):null,i?t("bar",o({},i,{props:o({otherBarHide:!n},i.props)})):null]}var et=function(t){var e=t.render,n=t.components,i=t.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:n,mixins:[M].concat(a([].concat(i))),created:function(){var t=this,e=p(this.$vuescrollConfig||{},{}),n=p(N,e);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach((function(e){f(t.mergedOptions,e,t.$options.propsData.ops)})),p(n,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=H(this.mergedOptions)},render:function(t){var n=this;if(n.renderError)return t("div",[[n.$slots["default"]]]);n.touchManager||(n.touchManager=new u);var i,s={style:{height:n.vuescroll.state.height,width:n.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:o({__vuescroll:!0},n.classHooks)},l=n.touchManager.getTouchObject();l&&(s.on=(i={},r(i,l.touchenter,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent(),n.setClassHook("mouseEnter",!0)})),r(i,l.touchleave,(function(){n.vuescroll.state.pointerLeave=!0,n.hideBar(),n.setClassHook("mouseEnter",!1)})),r(i,l.touchmove,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent()})),i));var c=[e(t,n)].concat(a(tt(t,n))),d=this.$slots["scroll-container"];return d?S(t,d,c,s):t("div",s,[c])},mounted:function(){var t=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push((function(){t.scrollToAnchor(),t.updateBarStateAndEmitEvent()})))},updated:function(){var t=this;this.updatedCbs.forEach((function(e){e.call(t)})),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs["scrollPanel"]._isVue?this.$refs["scrollPanel"].$el:this.$refs["scrollPanel"]}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(t){this.vuescroll.state.isDragging=t},setClassHook:function(t,e){this.classHooks[t]=e},showAndDefferedHideBar:function(t){var e=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout((function(){e.timeoutId=0,e.hideBar(t)}),this.mergedOptions.bar.showDelay)},showBar:function(){var t=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=t,this.bar.hBar.state.opacity=t},hideBar:function(t){var e=this.vuescroll.state,n=e.isDragging,i=e.isRailHover;n||i||(t&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),this.mergedOptions.bar.keepShow||this.vuescroll.state.isDragging||(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var t=this.mergedOptions.scrollPanel,e=t.maxHeight,n=t.maxWidth,i=this.$el.parentNode,r=i.clientHeight,o=i.clientWidth,a=this.scrollPanelElm,s=a.scrollHeight,l=a.scrollWidth,c=void 0,u=void 0;e||n?(u=s<=e?void 0:e,c=l<=n?void 0:n):(u=r,c=o),this.vuescroll.state.height=u?u+"px":void 0,this.vuescroll.state.width=c?c+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var t=this.mergedOptions.vuescroll.sizeStrategy,e=this.mergedOptions.scrollPanel,n=e.maxHeight,i=e.maxWidth,r=this.scrollPanelElm,o=r.clientHeight,a=r.clientWidth;"number"==t||n&&o>n||i&&a>i?this.useNumbericSize():"percent"==t&&o!=n&&a!=i&&this.usePercentSize()},initWatchOpsChange:function(){var t=this,e={deep:!0,sync:!0};this.$watch("mergedOptions",(function(){setTimeout((function(){if(t.isSmallChangeThisTick)return t.isSmallChangeThisTick=!1,void t.updateBarStateAndEmitEvent("options-change");t.refreshInternalStatus()}),0)}),e),K.forEach((function(n){t.$watch(n,(function(){t.isSmallChangeThisTick=!0}),e)}))},scrollToAnchor:function(){var t=function(t){return/^#[a-zA-Z_]\d*$/.test(t)},e=window.location.hash;if(e&&(!(e=e.slice(e.lastIndexOf("#")))||t(e))){var n=document.querySelector(e);!w(n,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(n)}}}}},nt={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var t=0,e=0,n=C(this);this.ops.initialScrollX&&(t=this.ops.initialScrollX),this.ops.initialScrollY&&(e=this.ops.initialScrollY),(t||e)&&n.scrollTo({x:t,y:e})}},mounted:function(){var t=this;setTimeout((function(){t._isDestroyed||t.updateInitialScroll()}),0)},render:function(t){var e={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},n=C(this),i=n.$slots["scroll-panel"];return i?S(t,i,this.$slots.default,e):t("div",e,[[this.$slots.default]])}};function it(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=(n={},r(n,nt.name,nt),r(n,Q.name,Q),n),s={};s.components=a,s.render=e,s.mixins=t;var l=et(s);return R(i,o),l}function rt(t,e){for(var n=t.children,i=[],r=function(t){var n=t.getBoundingClientRect(),i=n.left,r=n.top,o=n.width,a=n.height,s=e.getBoundingClientRect(),l=s.left,c=s.top,u=s.height,d=s.width;return i-l+o>0&&i-l<d&&r-c+a>0&&r-c<u},o=0;o<n.length;o++){var a=n.item(o);r(a)&&!a.isResizeElm&&i.push(a)}return i}function ot(t,e){return function(n){return e(t,n)}}function at(t,e){var n=null;return"easeInQuad"===t&&(n=e*e),"easeOutQuad"===t&&(n=e*(2-e)),"easeInOutQuad"===t&&(n=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===t&&(n=e*e*e),"easeOutCubic"===t&&(n=--e*e*e+1),"easeInOutCubic"===t&&(n=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===t&&(n=e*e*e*e),"easeOutQuart"===t&&(n=1- --e*e*e*e),"easeInOutQuart"===t&&(n=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===t&&(n=e*e*e*e*e),"easeOutQuint"===t&&(n=1+--e*e*e*e*e),"easeInOutQuint"===t&&(n=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),n||e}function st(){return!0}var lt=Date.now||function(){return(new Date).getTime()},ct=function(){function t(){n(this,t),this.init(),this.isRunning=!1}return i(t,[{key:"pause",value:function(){this.isRunning&&(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){this.isPaused&&(this.isPaused=!1,this.ts=lt()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:st,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:st,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:st,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:st,s=e-t,l=s>0?-1:1,c=lt();this.isRunning||this.init(),l!=this.dir||c-this.ts>200?(this.ts=c,this.dir=l,this.st=t,this.ed=e,this.df=s):this.df+=s,this.spd=n,this.completeCb=r,this.vertifyCb=o,this.stepCb=i,this.easingMethod=a,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var t=this;if(this.df){var e=this.percent||0;this.percent=0,this.isRunning=!0;var n=function n(){if(t.isRunning&&t.vertifyCb(e)&&!t.isStopped){if(e=(lt()-t.ts)/t.spd,t.isPaused)return t.percent=e,void(t.isRunning=!1);if(e<1){var i=t.st+t.df*t.easingMethod(e);t.stepCb(i),t.ref(n)}else t.stepCb(t.st+t.df),t.completeCb(),t.isRunning=!1}else t.isRunning=!1};this.ref(n)}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=q(window),this.isPaused=!1,this.isStopped=!1}}]),t}();function ut(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,r=arguments[4],o=arguments[5],a=void 0,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,h=t,p=h.nodeType,f=new ct,m=new ct;if(p){9==p&&(t=t.scrollingElement);var g=t;a=g.scrollLeft,s=g.scrollTop,l=g.scrollHeight,c=g.scrollWidth,u=g.clientWidth,d=g.clientHeight,e="undefined"===typeof e?a:B(e,c-u),n="undefined"===typeof n?s:B(n,l-d);var v=ot(r,at);f.startScroll(a,e,i,(function(e){t.scrollLeft=e}),o,void 0,v),m.startScroll(s,n,i,(function(e){t.scrollTop=e}),o,void 0,v)}else y("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.")}var dt={mounted:function(){this.scrollX=new ct,this.scrollY=new ct},methods:{nativeStop:function(){this.scrollX.stop(),this.scrollY.stop()},nativePause:function(){this.scrollX.pause(),this.scrollY.pause()},nativeContinue:function(){this.scrollX.continue(),this.scrollY.continue()},nativeScrollTo:function(t,e,n,i){!1===n||"undefined"===typeof n&&(n=this.mergedOptions.scrollPanel.speed);var r=this.scrollPanelElm,o=r.scrollTop,a=r.scrollLeft,s=r.scrollWidth,l=r.clientWidth,c=r.scrollHeight,u=r.clientHeight;if(t="undefined"===typeof t?a:B(t,s-l),e="undefined"===typeof e?o:B(e,c-u),n){i=i||this.mergedOptions.scrollPanel.easing;var d=ot(i,at);t!=a&&this.scrollX.startScroll(a,t,n,(function(t){r.scrollLeft=t}),this.scrollingComplete.bind(this),void 0,d),e!=o&&this.scrollY.startScroll(o,e,n,(function(t){r.scrollTop=t}),this.scrollingComplete.bind(this),void 0,d)}else r.scrollTop=e,r.scrollLeft=t},getCurrentviewDomNative:function(){var t=this.scrollContentElm,e=rt(t,this.$el);return e}}};function ht(t){var e={ref:"scrollPanel",style:{height:"100%",overflowY:"scroll",overflowX:"scroll"},class:[],nativeOn:{"&scroll":t.handleScroll},props:{ops:t.mergedOptions.scrollPanel}};t.scrollYEnable=!0,t.scrollXEnable=!0,e.nativeOn.DOMMouseScroll=e.nativeOn.mousewheel=t.onMouseWheel;var n=t.mergedOptions.scrollPanel,i=n.scrollingY,r=n.scrollingX;t.bar.hBar.state.size&&r||(t.scrollXEnable=!1,e.style.overflowX="hidden"),t.bar.vBar.state.size&&i||(t.scrollYEnable=!1,e.style.overflowY="hidden");var o=v();return o?(t.bar.vBar.state.size&&t.mergedOptions.scrollPanel.scrollingY&&("right"==t.mergedOptions.scrollPanel.verticalNativeBarPos?e.style.marginRight="-"+o+"px":e.style.marginLeft="-"+o+"px"),t.bar.hBar.state.size&&t.mergedOptions.scrollPanel.scrollingX&&(e.style.height="calc(100% + "+o+"px)")):($(),e.class.push("__hidebar"),l()&&(e.style["-webkit-overflow-scrolling"]="touch")),e.style.transformOrigin="",e.style.transform="",e}function pt(t,e){var n={};return n=ht(e),t("scrollPanel",n,[ft(t,e)])}function ft(t,e){var n={position:"relative","box-sizing":"border-box","min-width":"100%","min-height":"100%"},i={style:n,ref:"scrollContent",class:"__view"},r=e.$slots["scroll-content"];return e.mergedOptions.scrollPanel.scrollingX?n.width=k("width","fit-content"):i.style["width"]="100%",e.mergedOptions.scrollPanel.padding&&(i.style.paddingRight=e.mergedOptions.rail.size),r?S(t,r,e.$slots.default,i):t("div",i,[e.$slots.default])}function mt(t){var e={ref:"scrollPanel",style:{"user-select":"none","-webkit-user-select":"none","min-width":"100%","min-height":"100%"},class:[],props:{ops:t.mergedOptions.scrollPanel}};e.class.push("__slide"),l()&&(e.style=r({},"-webkit-overflow-scrolling","touch")),"transform"==t.mergedOptions.vuescroll.renderMethod&&(e.style["transform-origin"]="left top 0px");var n=t.mergedOptions.scrollPanel,i=n.scrollingX,o=n.scrollingY,a=n.padding;if(i&&!t.refreshLoad){var s=k("width","fit-content");s?e.style["width"]=s:e["display"]="inline-block"}return i||e.class.push("x-hidden"),o||e.class.push("y-hidden"),a&&(e.style.paddingRight=t.mergedOptions.rail.size),e}function gt(t,e){var n=D(e.$slots["scroll-panel"]).ch||e.$slots.default,i=[];return n||(e.$slots.default=n=[]),e.mergedOptions.vuescroll.pullRefresh.enable&&i.push(t("div",{class:"__refresh",style:{visibility:e.refrehDomVisiable?"":"hidden"},ref:W,key:W},[vt(t,e,"refresh",e.pullRefreshTip)])),i.push(n),e.mergedOptions.vuescroll.pushLoad.enable&&i.push(t("div",{ref:j,key:j,class:"__load",style:{visibility:e.loadDomVisiable?"":"hidden"}},[vt(t,e,"load",e.pushLoadTip)])),i}function vt(t,e,n,i){var r=e.vuescroll.state[n+"Stage"],o=null;if(o=e.$slots[n+"-"+r])return o;switch(r){case"deactive":case"active":var a="active";"deactive"==r&&(a+=" deactive"),o=t("svg",{class:a,attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000",xmlSpace:"preserve"}},[t("metadata",[" Svg Vector Icons : http://www.sfont.cn "]),t("g",[t("g",{attrs:{transform:"matrix(1 0 0 -1 0 1008)"}},[t("path",{attrs:{d:"M10,543l490,455l490-455L885,438L570,735.5V18H430v717.5L115,438L10,543z"}})])])]);break;case"start":o=t("svg",{attrs:{viewBox:"0 0 50 50"},class:"start"},[t("circle",{attrs:{stroke:"true",cx:"25",cy:"25",r:"20"},class:"bg-path"}),t("circle",{attrs:{cx:"25",cy:"25",r:"20"},class:"active-path"})]);break;case"beforeDeactive":o=t("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3562"}},[t("path",{attrs:{d:"M512 0C229.706831 0 0 229.667446 0 512s229.667446 512 512 512c282.293169 0 512-229.667446 512-512S794.332554 0 512 0z m282.994215 353.406031L433.2544 715.145846a31.484062 31.484062 0 0 1-22.275938 9.231754h-0.4096a31.586462 31.586462 0 0 1-22.449231-9.814646L228.430769 546.327631a31.507692 31.507692 0 0 1 45.701908-43.386093l137.4208 144.785724L750.442338 308.854154a31.507692 31.507692 0 1 1 44.551877 44.551877z",fill:"","p-id":"3563"}})]);break}return[o,i]}function bt(t,e){var n=mt(e);return t("scrollPanel",n,[gt(t,e)])}function _t(t,e){return"native"==e.mode?pt(t,e):"slide"==e.mode?bt(t,e):void 0}function yt(t,e){return wt(t,e)}function wt(t,e){if(!t.hasResized){var n="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",i=document.createElement("div");i.style.cssText=n;var r=document.createElement("object");return r.style.cssText=n,r.type="text/html",r.tabIndex=-1,r.onload=function(){b(r.contentDocument.defaultView,"resize",e)},s()||(r.data="about:blank"),i.isResizeElm=!0,i.appendChild(r),t.appendChild(i),s()&&(r.data="about:blank"),function(){r.contentDocument&&b(r.contentDocument.defaultView,"resize",e,"off"),t.removeChild(i),t.hasResized=!1}}}var xt={methods:{slideScrollTo:function(t,e,n,i){var r=this.getPosition(),o=r.scrollLeft,a=r.scrollTop;t=B(t||o,this.scroller.__maxScrollLeft),e=B(e||a,this.scroller.__maxScrollTop),this.scroller.scrollTo(t,e,n>0,void 0,!1,n,i)},zoomBy:function(t,e,n,i,r){this.scroller?this.scroller.zoomBy(t,e,n,i,r):y("zoomBy and zoomTo are only for slide mode!")},zoomTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=arguments[3],r=arguments[4];this.scroller?this.scroller.zoomTo(t,e,n,i,r):y("zoomBy and zoomTo are only for slide mode!")},getCurrentPage:function(){if(this.scroller&&this.mergedOptions.vuescroll.paging)return this.scroller.getCurrentPage();y("getCurrentPage and goToPage are only for slide mode and paging is enble!")},goToPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.scroller&&this.mergedOptions.vuescroll.paging?this.scroller.goToPage(t,e):y("getCurrentPage and goToPage are only for slide mode and paging is enble!")},triggerRefreshOrLoad:function(t){if(this.scroller){var e=this.mergedOptions.vuescroll.pullRefresh.enable,n=this.mergedOptions.vuescroll.pushLoad.enable;if("refresh"!=t||e)if("load"!=t||n)if("refresh"===t||"load"===t){if("start"!=this.vuescroll.state[t+"Stage"])return this.scroller.triggerRefreshOrLoad(t),!0}else y("param must be one of load and refresh!");else y("load must be enabled and content's height > container's height!");else y("refresh must be enabled!")}else y("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){var t=this.scrollPanelElm,e=rt(t,this.$el);return e}}},kt={mixins:[xt,dt],methods:{internalScrollTo:function(t,e,n,i){"native"==this.mode?this.nativeScrollTo(t,e,n,i):"slide"==this.mode&&this.slideScrollTo(t,e,n,i)},stop:function(){this.nativeStop()},pause:function(){this.nativePause()},continue:function(){this.nativeContinue()},getCurrentviewDom:function(){return"slide"==this.mode?this.getCurrentviewDomSlide():this.getCurrentviewDomNative()}}},St=Date.now||function(){return+new Date},Dt=60,Ct=1e3,Et={},At=1,Tt={effect:{}},Bt=null;Bt="undefined"!==typeof window?window:{},Tt.effect.Animate={requestAnimationFrame:q(Bt),stop:function(t){var e=null!=Et[t];return e&&(Et[t]=null),e},isRunning:function(t){return null!=Et[t]},start:function(t,e,n,i,r,o){var a=St(),s=a,l=0,c=0,u=At++;if(o||(o=document.body),u%20===0){var d={};for(var h in Et)d[h]=!0;Et=d}var p=function d(h){var p=!0!==h,f=St();if(!Et[u]||e&&!e(u))return Et[u]=null,void(n&&n(Dt-c/((f-a)/Ct),u,!1));if(p)for(var m=Math.round((f-s)/(Ct/Dt))-1,g=0;g<Math.min(m,4);g++)d(!0),c++;if(Et[u]){i&&(l=(f-a)/i,l>1&&(l=1));var v=r?r(l):l;!1!==t(v,f,p)&&1!==l||!p?p&&(s=f,Tt.effect.Animate.requestAnimationFrame(d,o)):(Et[u]=null,n&&n(Dt-c/((f-a)/Ct),u,1===l||null==i))}};return Et[u]=!0,Tt.effect.Animate.requestAnimationFrame(p,o),u}};var Ft=null,$t=null;function Lt(t,e){for(var n in this.__callback=t,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:U,animatingEasing:"easeOutCubic",noAnimatingEasing:"easeInOutCubic",penetrationDeceleration:.03,penetrationAcceleration:.08},e)this.options[n]=e[n];Ft=ot(this.options.animatingEasing,at),$t=ot(this.options.noAnimatingEasing,at)}var Mt={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__loadHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshBeforeDeactivate:null,__refreshDeactivate:null,__refreshStart:null,__loadActive:null,__loadActivate:null,__loadBeforeDeactivate:null,__loadDeactivate:null,__loadStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__currentPageX:null,__currentPageY:null,__totalXPage:null,__totalYPage:null,__disable:!1,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=this;t===+t&&(a.__clientWidth=t),e===+e&&(a.__clientHeight=e),n===+n&&(a.__contentWidth=n),i===+i&&(a.__contentHeight=i),a.__computeScrollMax(),o||a.scrollTo(a.__scrollLeft,a.__scrollTop,r)},setPosition:function(t,e){var n=this;n.__clientLeft=t||0,n.__clientTop=e||0},setSnapSize:function(t,e){var n=this;n.__snapWidth=t,n.__snapHeight=e},activatePullToRefresh:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__refreshHeight=t,s.__refreshActivate=n,s.__refreshBeforeDeactivate=o,s.__refreshBeforeDeactiveEnd=a,s.__refreshDeactivate=i,s.__refreshStart=r},activatePushToLoad:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__loadHeight=t,s.__loadActivate=n,s.__loadBeforeDeactivate=o,s.__loadBeforeDeactiveEnd=a,s.__loadDeactivate=i,s.__loadStart=r},triggerRefreshOrLoad:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"refresh",e=this.__isDecelerating;if(e&&(Tt.effect.Animate.stop(e),this.__isDecelerating=!1),"refresh"==t){if(this.__refreshActive||this.__refreshBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&(this.__refreshStart(),this.__refreshActive=!0)}else if("load"==t){if(this.__loadActive||this.__loadBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,this.__maxScrollTop+this.__loadHeight,this.__zoomLevel,!0),this.__loadStart&&(this.__loadStart(),this.__loadActive=!0)}},finishRefreshOrLoad:function(){var t=this;if(t.__refreshActive){t.__refreshActive=!1;var e=function(){t.__refreshBeforeDeactiveEnd&&t.__refreshBeforeDeactiveEnd(),t.__refreshBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__refreshBeforeDeactivate?t.__refreshBeforeDeactivate(e):e()}if(t.__loadActive){t.__loadActive=!1;var n=function(){t.__loadBeforeDeactiveEnd&&t.__loadBeforeDeactiveEnd(),t.__loadBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__loadBeforeDeactivate?t.__loadBeforeDeactivate(n):n()}},getValues:function(){var t=this;return{left:t.__scrollLeft,top:t.__scrollTop,zoom:t.__zoomLevel}},getScrollMax:function(){var t=this;return{left:t.__maxScrollLeft,top:t.__maxScrollTop}},zoomTo:function(t,e,n,i,r){var o=this;if(!o.options.zooming)throw new Error("Zooming is not enabled!");r&&(o.__zoomComplete=r),o.__isDecelerating&&(Tt.effect.Animate.stop(o.__isDecelerating),o.__isDecelerating=!1);var a=o.__zoomLevel;null==n&&(n=o.__clientWidth/2),null==i&&(i=o.__clientHeight/2),t=Math.max(Math.min(t,o.options.maxZoom),o.options.minZoom),o.__computeScrollMax(t);var s=(n+o.__scrollLeft)*t/a-n,l=(i+o.__scrollTop)*t/a-i;s>o.__maxScrollLeft?s=o.__maxScrollLeft:s<0&&(s=0),l>o.__maxScrollTop?l=o.__maxScrollTop:l<0&&(l=0),o.__publish(s,l,t,e)},zoomBy:function(t,e,n,i,r){var o=this;o.zoomTo(o.__zoomLevel*t,e,n,i,r)},scrollTo:function(t,e,n,i,r,o,a){var s=this;if(s.__isDecelerating&&(Tt.effect.Animate.stop(s.__isDecelerating),s.__isDecelerating=!1),null!=i&&i!==s.__zoomLevel){if(!s.options.zooming)throw new Error("Zooming is not enabled!");t*=i,e*=i,s.__computeScrollMax(i)}else i=s.__zoomLevel;s.options.scrollingX||r?s.options.paging?t=Math.round(t/s.__clientWidth)*s.__clientWidth:s.options.snapping&&(t=Math.round(t/s.__snapWidth)*s.__snapWidth):t=s.__scrollLeft,s.options.scrollingY||r?s.options.paging?e=Math.round(e/s.__clientHeight)*s.__clientHeight:s.options.snapping&&(e=Math.round(e/s.__snapHeight)*s.__snapHeight):e=s.__scrollTop,r||(t=Math.max(Math.min(s.__maxScrollLeft,t),0),e=Math.max(Math.min(s.__maxScrollTop,e),0)),t===s.__scrollLeft&&e===s.__scrollTop&&(n=!1),s.__isTracking||s.__publish(t,e,i,n,o,a)},scrollBy:function(t,e,n){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,o=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(t||0),o+(e||0),n)},getCurrentPage:function(){return this.__computePage(),{x:this.__currentPageX,y:this.__currentPageY}},goToPage:function(t,e){var n=t.x,i=t.y;isNaN(n)&&(n=1),isNaN(i)&&(i=1),this.scrollTo((n-1)*this.__clientWidth,(i-1)*this.__clientHeight,e)},doMouseZoom:function(t,e,n,i){var r=this,o=t>0?.97:1.03;return r.zoomTo(r.__zoomLevel*o,!1,n-r.__clientLeft,i-r.__clientTop)},doTouchStart:function(t,e){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var n,i,r=this;r.__interruptedAnimation=!0,r.__isDecelerating&&(Tt.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1,r.__interruptedAnimation=!0),r.__isAnimating&&(Tt.effect.Animate.stop(r.__isAnimating),r.__isAnimating=!1,r.__interruptedAnimation=!0);var o=1===t.length;o?(n=t[0].pageX,i=t[0].pageY):(n=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2),r.__initialTouchLeft=n,r.__initialTouchTop=i,r.__zoomLevelStart=r.__zoomLevel,r.__lastTouchLeft=n,r.__lastTouchTop=i,r.__lastTouchMove=e,r.__lastScale=1,r.__enableScrollX=!o&&r.options.scrollingX,r.__enableScrollY=!o&&r.options.scrollingY,r.__isTracking=!0,r.__didDecelerationComplete=!1,r.__isDragging=!o,r.__isSingleTouch=o,r.__positions=[]},doTouchMove:function(t,e,n){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var i=this;if(i.__isTracking){var r,o;2===t.length?(r=Math.abs(t[0].pageX+t[1].pageX)/2,o=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,o=t[0].pageY);var a=i.__positions;if(i.__isDragging){var s=r-i.__lastTouchLeft,l=o-i.__lastTouchTop,c=i.__scrollLeft,u=i.__scrollTop,d=i.__zoomLevel;if(null!=n&&i.options.zooming){var h=d;if(d=d/i.__lastScale*n,d=Math.max(Math.min(d,i.options.maxZoom),i.options.minZoom),h!==d){var p=r-i.__clientLeft,f=o-i.__clientTop;c=(p+c)*d/h-p,u=(f+u)*d/h-f,i.__computeScrollMax(d)}}var m=i.options.bouncing;if(i.__enableScrollX){c-=s*this.options.speedMultiplier;var g=i.__maxScrollLeft;(c>g||c<0)&&(c+=s/2*this.options.speedMultiplier,c=Math.min(Math.max(-m.left,c),g+m.right))}if(i.__enableScrollY){u-=l*this.options.speedMultiplier;var v=i.__maxScrollTop;(u>v||u<0)&&(u+=l/2*this.options.speedMultiplier,u=Math.min(Math.max(-m.top,u),v+m.bottom),i.__enableScrollX||null==i.__refreshHeight&&null==i.__loadHeight||(!i.__refreshActive&&u<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&u>-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&u>=i.__maxScrollTop+i.__loadHeight&&i.__loadHeight>0?(i.__loadActive=!0,i.__loadActivate&&i.__loadActivate()):i.__loadActive&&u<i.__maxScrollTop+i.__loadHeight&&(i.__loadActive=!1,i.__loadDeactivate&&i.__loadDeactivate())))}a.length>60&&a.splice(0,30),a.push(c,u,e),i.__publish(c,u,d)}else{var b=i.options.locking?3:0,_=5,y=Math.abs(r-i.__initialTouchLeft),w=Math.abs(o-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&y>=b,i.__enableScrollY=i.options.scrollingY&&w>=b,a.push(i.__scrollLeft,i.__scrollTop,e),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&(y>=_||w>=_),i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchLeft=r,i.__lastTouchTop=o,i.__lastTouchMove=e,i.__lastScale=n}},doTouchEnd:function(t){if(t instanceof Date&&(t=t.valueOf()),"number"!==typeof t)throw new Error("Invalid timestamp value: "+t);var e=this;if(e.__isTracking){if(e.__isTracking=!1,e.__isDragging)if(e.__isDragging=!1,e.__isSingleTouch&&e.options.animating&&t-e.__lastTouchMove<=100){for(var n=e.__positions,i=n.length-1,r=i,o=i;o>0&&n[o]>e.__lastTouchMove-100;o-=3)r=o;if(r!==i){var a=n[i]-n[r],s=e.__scrollLeft-n[r-2],l=e.__scrollTop-n[r-1];e.__decelerationVelocityX=s/a*(1e3/60),e.__decelerationVelocityY=l/a*(1e3/60);var c=e.options.paging||e.options.snapping?4:1;Math.abs(e.__decelerationVelocityX)>c||Math.abs(e.__decelerationVelocityY)>c?e.__refreshActive||e.__loadActive||e.__startDeceleration(t):e.__scrollComplete()}else e.__scrollComplete()}else t-e.__lastTouchMove>100&&e.__scrollComplete();e.__isDecelerating||(e.__refreshActive&&e.__refreshStart?(e.__publish(e.__scrollLeft,-e.__refreshHeight,e.__zoomLevel,!0),e.__refreshStart&&e.__refreshStart()):e.__loadActive&&e.__loadStart?(e.__publish(e.__scrollLeft,e.__maxScrollTop+e.__loadHeight,e.__zoomLevel,!0),e.__loadStart&&e.__loadStart()):((e.__interruptedAnimation||e.__isDragging)&&e.__scrollComplete(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0,e.__zoomLevel),e.__refreshActive?(e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate()):e.__loadActive&&(e.__loadActive=!1,e.__loadDeactivate&&e.__loadDeactivate()))),e.__positions.length=0}},onScroll:U,stop:function(){var t=this;t.__disable=!0},start:function(){var t=this;t.__disable=!0},__publish:function(t,e,n,i,r,o){var a=this;if(!a.__disable){isNaN(t)&&(t=this.__scrollLeft),isNaN(e)&&(e=this.__scrollTop);var s=a.__isAnimating;if(s&&(Tt.effect.Animate.stop(s),a.__isAnimating=!1),i&&(a.options.animating||r)){a.__scheduledLeft=t,a.__scheduledTop=e,a.__scheduledZoom=n;var l=a.__scrollLeft,c=a.__scrollTop,u=a.__zoomLevel,d=t-l,h=e-c,p=n-u,f=function(t,e,n){n&&(a.__scrollLeft=l+d*t,a.__scrollTop=c+h*t,a.__zoomLevel=u+p*t,a.__callback&&(a.__callback(a.__scrollLeft,a.__scrollTop,a.__zoomLevel),a.onScroll()))},m=function(t){return a.__isAnimating===t},g=function(t,e,n){e===a.__isAnimating&&(a.__isAnimating=!1),(a.__didDecelerationComplete||n)&&a.__scrollComplete(),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())},v=Ft;o&&(v=ot(o,at)),a.__isAnimating=Tt.effect.Animate.start(f,m,g,r||a.options.animationDuration,s?v:$t)}else a.__scheduledLeft=a.__scrollLeft=t,a.__scheduledTop=a.__scrollTop=e,a.__scheduledZoom=a.__zoomLevel=n,a.__callback&&(a.__callback(t,e,n),a.onScroll()),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())}},__computeScrollMax:function(t){var e=this;null==t&&(t=e.__zoomLevel),e.__maxScrollLeft=Math.max(e.__contentWidth*t-e.__clientWidth,0),e.__maxScrollTop=Math.max(e.__contentHeight*t-e.__clientHeight,0)},__computePage:function(){var t=this,e=t.__clientWidth,n=t.__clientHeight,i=t.__scrollLeft,r=t.__scrollTop;t.__totalXPage=Math.ceil(t.__contentWidth/e),t.__currentPageX=Math.ceil(i/e+1),t.__totalYPage=Math.ceil(t.__contentHeight/n),t.__currentPageY=Math.ceil(r/n+1)},__scrollComplete:function(){var t=this;t.options.scrollingComplete()},__startDeceleration:function(){var t=this;if(t.options.paging){var e=Math.max(Math.min(t.__scrollLeft,t.__maxScrollLeft),0),n=Math.max(Math.min(t.__scrollTop,t.__maxScrollTop),0),i=t.__clientWidth,r=t.__clientHeight;t.__minDecelerationScrollLeft=Math.floor(e/i)*i,t.__minDecelerationScrollTop=Math.floor(n/r)*r,t.__maxDecelerationScrollLeft=Math.ceil(e/i)*i,t.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else t.__minDecelerationScrollLeft=0,t.__minDecelerationScrollTop=0,t.__maxDecelerationScrollLeft=t.__maxScrollLeft,t.__maxDecelerationScrollTop=t.__maxScrollTop;var o=function(e,n,i){t.__stepThroughDeceleration(i)},a=t.options.snapping?4:.001,s=function(){var e=Math.abs(t.__decelerationVelocityX)>=a||Math.abs(t.__decelerationVelocityY)>=a;return e||(t.__didDecelerationComplete=!0),e},l=function(){t.__isDecelerating&&(t.__isDecelerating=!1,t.__didDecelerationComplete&&t.__scrollComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,t.options.snapping))};t.__isDecelerating=Tt.effect.Animate.start(o,s,l)},__stepThroughDeceleration:function(t){var e=this,n=e.options.bouncing,i=e.__minDecelerationScrollLeft,r=e.__maxDecelerationScrollLeft,o=e.__minDecelerationScrollTop,a=e.__maxDecelerationScrollTop,s=e.__scrollLeft+e.__decelerationVelocityX,l=e.__scrollTop+e.__decelerationVelocityY,c=s<i||s>r,u=l<o||l>a,d=Math.min(Math.max(i-n.left,s),r+n.right),h=Math.min(Math.max(o-n.top,l),a+n.bottom);if(t?e.__publish(d,h,e.__zoomLevel):(e.__scrollLeft=s,e.__scrollTop=l),!e.options.paging){var p=.95;e.__decelerationVelocityX*=p,e.__decelerationVelocityY*=p}var f=0,m=0,g=e.options.penetrationDeceleration,v=e.options.penetrationAcceleration;c&&(s<e.__minDecelerationScrollLeft?f=e.__minDecelerationScrollLeft-s:s>e.__maxDecelerationScrollLeft&&(f=e.__maxDecelerationScrollLeft-s)),u&&(l<e.__minDecelerationScrollTop?m=e.__minDecelerationScrollTop-l:l>e.__maxDecelerationScrollTop&&(m=e.__maxDecelerationScrollTop-l)),0!==f&&(f*e.__decelerationVelocityX<=0?(e.__decelerationVelocityX+=f*g,f<0&&-f>=n.right&&e.__decelerationVelocityX>0&&(e.__decelerationVelocityX=-n.right/2),f>0&&f>=n.left&&e.__decelerationVelocityX<0&&(e.__decelerationVelocityX=n.left/2)):e.__decelerationVelocityX=f*v),0!==m&&(m*e.__decelerationVelocityY<=0?(e.__decelerationVelocityY+=m*g,m<0&&-m>=n.bottom&&e.__decelerationVelocityY>0&&(e.__decelerationVelocityY=-n.bottom/2),m>0&&m>=n.top&&e.__decelerationVelocityY<0&&(e.__decelerationVelocityY=n.top/2)):e.__decelerationVelocityY=m*v/2)}};for(var Pt in Mt)Lt.prototype[Pt]=Mt[Pt];function It(t,e,n,i){if("position"==i)return function(e,n){t.style.left=-e+"px",t.style.top=-n+"px"};var r,o=x(e),a=document.createElement("div"),s=o+"Perspective",l="transform";return a.style[s]!==r?function(e,i,r){t.style[l]="translate3d("+-e+n+","+-i+n+",0) scale("+r+")"}:a.style[l]!==r?function(e,i,r){t.style[l]="translate("+-e+n+","+-i+n+") scale("+r+")"}:void 0}var Nt=new u;function Ht(t,e,n,i,r,o){var a=null,s=!1,l=Nt.getTouchObject();function c(t){var i=Nt.getEventObject(t);i[0]&&i[0].target&&i[0].target.tagName.match(/input|textarea|select/i)||e.__disable||(n("mousedown"),s=!0,e.doTouchStart(i,t.timeStamp),r&&t.preventDefault(),t.stopPropagation(),document.addEventListener(l.touchmove,u,{passive:!1}))}function u(t){if(!e.__disable&&s){var i=Nt.getEventObject(t);n("mousemove"),e.doTouchMove(i,t.timeStamp,t.scale),o&&t.preventDefault()}}function d(t){n("mouseup"),s=!1,e.doTouchEnd(t.timeStamp),document.removeEventListener(l.touchmove,u)}function h(t){e.doTouchEnd(t.timeStamp)}function p(t){e.doMouseZoom(t.detail?-120*t.detail:t.wheelDelta,t.timeStamp,t.pageX,t.pageY)}return t.addEventListener(l.touchstart,c,!1),document.addEventListener(l.touchend,d,!1),document.addEventListener(l.touchcancel,h,!1),i&&!Nt.isTouch&&t.addEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1),a=function(){t.removeEventListener(l.touchstart,c,!1),document.removeEventListener(l.touchend,d,!1),document.removeEventListener(l.touchcancel,h,!1),t.removeEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1)},e.onScroll=function(){n("onscroll")},a}function zt(t,e,n,i){var r=n.$listeners,o=function(){n.vuescroll.state[e]="active",n.$emit(t+"-activate",n,i)},a=function(){n.vuescroll.state[e]="deactive",n.$emit(t+"-deactivate",n,i)},s=function(){n.vuescroll.state[e]="beforeDeactiveEnd",n.$emit(t+"-before-deactivate-end",n,i)},l=function(){n.vuescroll.state[e]="start",setTimeout((function(){n.scroller.finishRefreshOrLoad()}),2e3)},c=void 0;return r[t+"-before-deactivate"]&&(c=function(r){n.vuescroll.state[e]="beforeDeactive",n.$emit(t+"-before-deactivate",n,i,r.bind(n.scroller))}),r[t+"-start"]&&(l=function(){n.vuescroll.state[e]="start",n.$emit(t+"-start",n,i,n.scroller.finishRefreshOrLoad.bind(n.scroller))}),{activateCallback:o,deactivateCallback:a,startCallback:l,beforeDeactivateCallback:c,beforeDeactiveEnd:s}}L();var Rt={mounted:function(){this.vsMounted=!0},computed:{pullRefreshTip:function(){return this.mergedOptions.vuescroll.pullRefresh.tips[this.vuescroll.state.refreshStage]},pushLoadTip:function(){return this.mergedOptions.vuescroll.pushLoad.tips[this.vuescroll.state.loadStage]},refreshLoad:function(){return this.mergedOptions.vuescroll.pullRefresh.enable||this.mergedOptions.vuescroll.pushLoad.enable},refrehDomVisiable:function(){return this.vsMounted&&this.outTheTopBoundary},loadDomVisiable:function(){return this.vsMounted&&this.outTheBottomBoundary}},data:function(){return{vuescroll:{state:{refreshStage:"deactive",loadStage:"deactive"}},vsMounted:!1,outTheTopBoundary:!1,outTheBottomBoundary:!1}},methods:{updateScroller:function(){this.updateDimesion(),this.registryRefreshLoad()},updateDimesion:function(){var t=this.$el.clientWidth,e=this.$el.clientHeight,n=this.scrollPanelElm.scrollWidth,i=this.scrollPanelElm.scrollHeight,r=0,o=0;if(this.mergedOptions.vuescroll.pullRefresh.enable&&this.vsMounted){var a=this.$refs[W].elm||this.$refs[W];r=a.offsetHeight,a.style.marginTop=-r+"px"}if(this.mergedOptions.vuescroll.pushLoad.enable&&this.vsMounted){var s=this.$refs[j].elm||this.$refs[j];o=s.offsetHeight,i-=o,s.style.bottom="-"+o+"px"}this.scroller&&this.scroller.setDimensions(t,e,n,i,!1)},registryRefreshLoad:function(){this.mergedOptions.vuescroll.pullRefresh.enable&&this.registryEvent("refresh"),this.mergedOptions.vuescroll.pushLoad.enable&&this.registryEvent("load")},registryScroller:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.left,i=void 0===n?0:n,r=e.top,a=void 0===r?0:r,s=e.zoom,l=void 0===s?1:s,c=this.mergedOptions.vuescroll.scroller,u=c.preventDefault,d=c.preventDefaultOnMove,h=this.mergedOptions.vuescroll,p=h.paging,f=h.snapping.enable,m=h.renderMethod,g=h.zooming,v=h.locking;g=!this.refreshLoad&&!p&&!f&&g;var b=this.mergedOptions.scrollPanel,_=b.scrollingY,y=b.scrollingX,w=this.scrollingComplete.bind(this);this.scroller=new Lt(It(this.scrollPanelElm,window,"px",m),o({},this.mergedOptions.vuescroll.scroller,{zooming:g,scrollingY:_,scrollingX:y&&!this.refreshLoad,animationDuration:this.mergedOptions.scrollPanel.speed,paging:p,snapping:f,scrollingComplete:w,locking:v})),this.scroller.__disable=this.mergedOptions.vuescroll.scroller.disable,this.scroller.__scrollLeft=i,this.scroller.__scrollTop=a,this.scroller.__zoomLevel=l,f&&this.scroller.setSnapSize(this.mergedOptions.vuescroll.snapping.width,this.mergedOptions.vuescroll.snapping.height);var x=this.$el.getBoundingClientRect();this.scroller.setPosition(x.left+this.$el.clientLeft,x.top+this.$el.clientTop);var k=Ht(this.$el,this.scroller,(function(e){switch(e){case"mousedown":t.vuescroll.state.isDragging=!0;break;case"onscroll":var n=t.vuescroll.state["loadStage"],i=t.mergedOptions.vuescroll.pushLoad,r=i.enable,o=i.auto,a=i.autoLoadDistance,s=t.scroller,l=s.__scrollTop,c=s.__maxScrollTop;"start"!=n&&r&&o&&!t.lockAutoLoad&&a>=c-l&&l>0&&(t.lockAutoLoad=!0,t.triggerRefreshOrLoad("load")),a<c-l&&(t.lockAutoLoad=!1),t.handleScroll(!1);break;case"mouseup":t.vuescroll.state.isDragging=!1;break}}),g,u,d);return this.updateScroller(),k},updateSlideModeBarState:function(){var t=void 0,e=void 0,n=this.$el,i=this.scroller,r=0,o=0,a=this.$el,s=a.clientWidth,l=a.clientHeight,c=s+this.scroller.__maxScrollLeft,u=l+this.scroller.__maxScrollTop;i.__scrollLeft<0?r=-i.__scrollLeft:i.__scrollLeft>i.__maxScrollLeft&&(r=i.__scrollLeft-i.__maxScrollLeft),i.__scrollTop<0?(o=-i.__scrollTop,this.outTheBottomBoundary=!1,this.outTheTopBoundary=!0):i.__scrollTop>i.__maxScrollTop?(o=i.__scrollTop-i.__maxScrollTop,this.outTheTopBoundary=!1,this.outTheBottomBoundary=!0):this.outTheTopBoundary=this.outTheBottomBoundary=!1,t=l/(u+o),e=s/(c+r);var d=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),h=Math.min(Math.max(0,i.__scrollLeft),i.__maxScrollLeft);this.bar.vBar.state.posValue=100*(d+o)/n.clientHeight,this.bar.hBar.state.posValue=100*(h+r)/n.clientWidth,i.__scrollLeft<0&&(this.bar.hBar.state.posValue=0),i.__scrollTop<0&&(this.bar.vBar.state.posValue=0),this.bar.vBar.state.size=t<1?t:0,this.bar.hBar.state.size=e<1?e:0},registryEvent:function(t){var e="refresh"==t?W:j,n="refresh"==t?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,i="refresh"==t?"refreshStage":"loadStage",r=this.$refs[e].elm||this.$refs[e],o=zt(t,i,this,r),a=r.offsetHeight;n.bind(this.scroller)(a,o)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}},Ot={methods:{updateNativeModeBarState:function(){var t=this.scrollPanelElm,e="percent"==this.vuescroll.state.currentSizeStrategy,n=this.vuescroll.state,i=n.width,r=n.height,o=e||!i?t.clientWidth:i.slice(0,-2),a=e||!r?t.clientHeight:r.slice(0,-2),s=a/t.scrollHeight,l=o/t.scrollWidth;this.bar.vBar.state.posValue=100*t.scrollTop/a,this.bar.hBar.state.posValue=100*t.scrollLeft/o,this.bar.vBar.state.size=s<1?s:0,this.bar.hBar.state.size=l<1?l:0},getNativePosition:function(){return{scrollTop:this.scrollPanelElm.scrollTop,scrollLeft:this.scrollPanelElm.scrollLeft}},css:function(t,e){return window.getComputedStyle(t)[e]},checkScrollable:function(t,e,n){var i=!1,r=t.target?t.target:t;while(r&&1==r.nodeType&&r!==this.scrollPanelElm.parentNode&&!/^BODY|HTML/.test(r.nodeName)){var o=this.css(r,"overflow")||"";if(/scroll|auto/.test(o)){var a=this.getScrollProcess(r),s=a.v,l=a.h,c="hidden"!==this.css(r,"overflowX"),u="hidden"!==this.css(r,"overflowY");if(c&&(e<0&&l>0||e>0&&l<1)||u&&(n<0&&s>0||n>0&&s<1)){i=r==this.scrollPanelElm;break}}r=!!r.parentNode&&r.parentNode}return i},onMouseWheel:function(t){var e=this.mergedOptions.vuescroll,n=e.wheelDirectionReverse,i=e.wheelScrollDuration,r=e.checkShiftKey,o=e.locking,a=e.deltaPercent,s=void 0,l=void 0;t.wheelDelta?t.deltaY||t.deltaX?(s=t.deltaX*a,l=t.deltaY*a,o&&(Math.abs(t.deltaX)>Math.abs(t.deltaY)?l=0:s=0)):(s=0,l=-1*t.wheelDelta/2):t.detail&&(l=s=16*t.detail,1==t.axis?l=0:2==t.axis&&(s=0)),r&&t.shiftKey&&(s^=l,l^=s,s^=l),n&&(s^=l,l^=s,s^=l),this.checkScrollable(t,s,l)&&(t.stopPropagation(),t.preventDefault(),this.scrollBy({dx:s,dy:l},i))}},computed:{scrollContentElm:function(){return this.$refs["scrollContent"]._isVue?this.$refs["scrollContent"].$el:this.$refs["scrollContent"]}}},Ut=[Rt,Ot],Kt=[kt].concat(a(Ut)),Wt={mixins:Kt,mounted:function(){this._isDestroyed||this.renderError||("slide"==this.mode&&this.updatedCbs.push(this.updateScroller),this.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(t){this.scroller&&(this.scroller.__disable=t)}}))},computed:{mode:function(){return this.mergedOptions.vuescroll.mode}},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},handleScroll:function(t){this.updateBarStateAndEmitEvent("handle-scroll",t)},updateBarStateAndEmitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("native"==this.mode)this.updateNativeModeBarState();else if("slide"==this.mode){if(!this.scroller)return;this.updateSlideModeBarState()}t&&this.emitEvent(t,e),this.mergedOptions.bar.onlyShowBarOnScroll?"handle-scroll"!=t&&"handle-resize"!=t&&"refresh-status"!=t&&"window-resize"!=t&&"options-change"!=t||this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar()},getScrollProcess:function(){var t=this.scrollPanelElm,e=t.scrollHeight,n=t.scrollWidth,i=t.clientHeight,r=t.clientWidth,o=t.scrollTop,a=t.scrollLeft;"slide"==this.mode&&(e=this.scroller.__contentHeight,n=this.scroller.__contentWidth,o=this.scroller.__scrollTop,a=this.scroller.__scrollLeft,i=this.$el.clientHeight,r=this.$el.clientWidth);var s=Math.min(o/(e-i||1),1),l=Math.min(a/(n-r||1),1);return{v:s,h:l}},emitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.scrollPanelElm,i=n.scrollTop,r=n.scrollLeft,o={type:"vertical"},a={type:"horizontal"},s=this.getScrollProcess(),l=s.v,c=s.h;o["process"]=l,a["process"]=c,o["barSize"]=this.bar.vBar.state.size,a["barSize"]=this.bar.hBar.state.size,o["scrollTop"]=i,a["scrollLeft"]=r,this.$emit(t,o,a,e)},initVariables:function(){this.lastMode=this.mode,this.$el._isVuescroll=!0},refreshMode:function(){var t=void 0;this.scroller&&(t=this.scroller.getValues()),this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),"slide"==this.mode?this.destroyScroller=this.registryScroller(t):"native"==this.mode&&(this.scrollPanelElm.style.transform="",this.scrollPanelElm.style.transformOrigin="")},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.refreshMode(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var t=this,e=this.mergedOptions.vuescroll.detectResize,n=!1;if(this.lastMode!=this.mode&&(n=!0,this.lastMode=this.mode),(!this.destroyResize||!e||n)&&(this.destroyResize&&this.destroyResize(),e)){var i=null;"slide"==this.mode?i=this.scrollPanelElm:"native"==this.mode&&(i=this.scrollContentElm);var r=this,o=function(){r.updateBarStateAndEmitEvent("window-resize"),"slide"==r.mode&&(r.updatedCbs.push(r.updateScroller),r.$forceUpdate())},a=function(){var e={};"slide"==t.mode?(e["width"]=t.scroller.__contentWidth,e["height"]=t.scroller.__contentHeight,t.updateBarStateAndEmitEvent("handle-resize",e),t.updatedCbs.push(t.updateScroller),t.$forceUpdate()):"native"==t.mode&&(e["width"]=t.scrollPanelElm.scrollWidth,e["height"]=t.scrollPanelElm.scrollHeight,t.updateBarStateAndEmitEvent("handle-resize",e)),t.setVsSize()};window.addEventListener("resize",o,!1);var s=yt(i,a),l=function(){window.removeEventListener("resize",o,!1)};this.destroyResize=function(){l(),s(),t.destroyResize=null}}},getPosition:function(){return"slide"==this.mode?this.getSlidePosition():"native"==this.mode?this.getNativePosition():void 0}}},jt={vuescroll:{renderMethod:"transform",pullRefresh:{enable:!1,tips:{deactive:"Pull to Refresh",active:"Release to Refresh",start:"Refreshing...",beforeDeactive:"Refresh Successfully!"}},pushLoad:{enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0},paging:!1,zooming:!0,snapping:{enable:!1,width:100,height:100},scroller:{bouncing:{top:100,bottom:100,left:100,right:100},minZoom:.5,maxZoom:3,speedMultiplier:1,penetrationDeceleration:.03,penetrationAcceleration:.08,preventDefault:!1,preventDefaultOnMove:!0,disable:!1}}};function Vt(t){var e=!1,n=t.vuescroll;return n.paging==n.snapping.enable&&n.paging&&(n.pullRefresh||n.pushLoad)&&_("paging, snapping, (pullRefresh with pushLoad) can only one of them to be true."),e}var qt={vuescroll:{wheelScrollDuration:0,wheelDirectionReverse:!1,checkShiftKey:!0,deltaPercent:1}},Yt={vuescroll:{mode:"native"}};function Xt(t){var e=!1,n=t.vuescroll;return~O.indexOf(n.mode)||(_("Unknown mode: "+n.mode+',the vuescroll\'s option "mode" should be one of the '+O),e=!0),e}var Gt=[Yt,jt,qt],Zt=[Xt,Vt],Qt=it(Wt,_t,Gt,Zt);function Jt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.name||Qt.name,Qt),t.prototype.$vuescrollConfig=e.ops||{}}var te=o({install:Jt,version:"4.18.1",refreshAll:I,scrollTo:ut},Qt);return"undefined"!==typeof window&&window.Vue&&window.Vue.use(te),te}))},7839:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7903:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};function i(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let i=0,r=0,o=0,a=null,s=null;for(let l=0;l<e;l++){r=o=0,a=s=null;for(let c=0;c<e;c++){let e=t.get(l,c);e===a?r++:(r>=5&&(i+=n.N1+(r-5)),a=e,r=1),e=t.get(c,l),e===s?o++:(o>=5&&(i+=n.N1+(o-5)),s=e,o=1)}r>=5&&(i+=n.N1+(r-5)),o>=5&&(i+=n.N1+(o-5))}return i},e.getPenaltyN2=function(t){const e=t.size;let i=0;for(let n=0;n<e-1;n++)for(let r=0;r<e-1;r++){const e=t.get(n,r)+t.get(n,r+1)+t.get(n+1,r)+t.get(n+1,r+1);4!==e&&0!==e||i++}return i*n.N2},e.getPenaltyN3=function(t){const e=t.size;let i=0,r=0,o=0;for(let n=0;n<e;n++){r=o=0;for(let a=0;a<e;a++)r=r<<1&2047|t.get(n,a),a>=10&&(1488===r||93===r)&&i++,o=o<<1&2047|t.get(a,n),a>=10&&(1488===o||93===o)&&i++}return i*n.N3},e.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let n=0;n<i;n++)e+=t.data[n];const r=Math.abs(Math.ceil(100*e/i/5)-10);return r*n.N4},e.applyMask=function(t,e){const n=e.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)e.isReserved(o,r)||e.xor(o,r,i(t,o,r))},e.getBestMask=function(t,n){const i=Object.keys(e.Patterns).length;let r=0,o=1/0;for(let a=0;a<i;a++){n(a),e.applyMask(a,t);const i=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),i<o&&(o=i,r=a)}return r}},7960:function(t,e,n){"use strict";n("81a1")},"796e":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-dialog ref="dialog" title="会话弹窗标题">\r\n\t会话弹窗内容\r\n\t\r\n\t// 如需要自定义按钮,可在组件内插入以下代码\r\n\t<template #button>\r\n\t\t<c-button>按钮名称</c-button>\r\n\t</template>\r\n</c-dialog>\r\n\r\nthis.$refs.dialog.open() // 打开会话弹窗\r\nthis.$refs.dialog.close() // 关闭会话弹窗\r\n\r\n// 打开会话时可以修改属性\r\nthis.$refs.dialog.open({\r\n\ttitle,\r\n\tbutton,\r\n\tbuttonName,\r\n\tcancelButton,\r\n\tcancelButtonName\r\n})\r\n\r\n// 弹窗回调方式\r\n// 1.定义绑定事件\r\n<c-dialog @resolve="确定按钮回调方法" @cancel="取消按钮回调方法"></c-dialog>\r\n// 2.传入回调方法\r\nthis.$refs.dialog.open({\r\n\tresolve: () => {},\r\n\tcancel: () => {},\r\n\t...\r\n})\r\n// 3.使用异步函数\r\nlet {type, stop, next} = await this.$refs.dialog.open();\r\n或\r\nthis.$refs.dialog.open().then(({type, stop, next}) => {});\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nmode | String | - | 模式<br>**popup**: 弹出<br>**slide**: 侧滑\r\ntitle | String | - | 会话弹窗标题\r\nwidth | Number \\| String | - | 会话弹窗宽度\r\nheight | Number \\| String | - | 会话弹窗内容区域高度\r\nresize-button | Boolean | false | 是否显示最大化最小化按钮\r\nclose-button | Boolean | true | 是否显示关闭按钮\r\nbutton | Boolean | true | 是否显示按钮\r\nbutton-name | String | "确定" | 确定按钮名称\r\ncancel-button | Boolean | true | 是否显示取消按钮\r\ncancel-button-name | String | "取消" | 取消按钮名称\r\nmove | Boolean | true | 是否支持移动\r\nmove-limit | Boolean | true | 移动范围限制\r\nmask | Booelan | true | 是否显示遮罩层\r\n@resolve | Function(stop, next) | - | 确定按钮回调<br>**stop**: 阻止会话弹窗关闭方法<br>**next**: 关闭会话弹窗方法\r\n@cancel | Function(stop, next) | - | 取消按钮回调<br>**stop**: 阻止会话弹窗关闭方法<br>**next**: 关闭会话弹窗方法\r\n@close | Function | - | 弹窗关闭回调'},"79d9":function(module,exports,__webpack_require__){__webpack_require__("14d9"),__webpack_require__("c73d");const IMAGE_ALIGN_TOP=__webpack_require__("072b"),IMAGE_ALIGN_LEFT=__webpack_require__("9ca8"),IMAGE_ALIGN_RIGHT=__webpack_require__("d359");(function(window,undefined){if(!window.KindEditor){window.console||(window.console={}),console.log||(console.log=function(){});var _VERSION="4.1.11 (2016-03-31)",_ua=navigator.userAgent.toLowerCase(),_IE=_ua.indexOf("msie")>-1&&-1==_ua.indexOf("opera"),_NEWIE=-1==_ua.indexOf("msie")&&_ua.indexOf("trident")>-1,_GECKO=_ua.indexOf("gecko")>-1&&-1==_ua.indexOf("khtml"),_WEBKIT=_ua.indexOf("applewebkit")>-1,_OPERA=_ua.indexOf("opera")>-1,_MOBILE=_ua.indexOf("mobile")>-1,_IOS=/ipad|iphone|ipod/.test(_ua),_QUIRKS="CSS1Compat"!=document.compatMode,_IERANGE=!window.getSelection,_matches=/(?:msie|firefox|webkit|opera)[\/:\s](\d+)/.exec(_ua),_V=_matches?_matches[1]:"0",_TIME=(new Date).getTime(),_round=Math.round,K={DEBUG:!1,VERSION:_VERSION,IE:_IE,GECKO:_GECKO,WEBKIT:_WEBKIT,OPERA:_OPERA,V:_V,TIME:_TIME,each:_each,isArray:_isArray,isFunction:_isFunction,inArray:_inArray,inString:_inString,trim:_trim,addUnit:_addUnit,removeUnit:_removeUnit,escape:_escape,unescape:_unescape,toCamel:_toCamel,toHex:_toHex,toMap:_toMap,toArray:_toArray,undef:_undef,invalidUrl:_invalidUrl,addParam:_addParam,extend:_extend,json:_json},_INLINE_TAG_MAP=_toMap("a,abbr,acronym,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,img,input,ins,kbd,label,map,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),_BLOCK_TAG_MAP=_toMap("address,applet,blockquote,body,center,dd,dir,div,dl,dt,fieldset,form,frameset,h1,h2,h3,h4,h5,h6,head,hr,html,iframe,ins,isindex,li,map,menu,meta,noframes,noscript,object,ol,p,pre,script,style,table,tbody,td,tfoot,th,thead,title,tr,ul"),_SINGLE_TAG_MAP=_toMap("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),_STYLE_TAG_MAP=_toMap("b,basefont,big,del,em,font,i,s,small,span,strike,strong,sub,sup,u"),_CONTROL_TAG_MAP=_toMap("img,table,input,textarea,button"),_PRE_TAG_MAP=_toMap("pre,style,script"),_NOSPLIT_TAG_MAP=_toMap("html,head,body,td,tr,table,ol,ul,li"),_AUTOCLOSE_TAG_MAP=_toMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),_FILL_ATTR_MAP=_toMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),_VALUE_TAG_MAP=_toMap("input,button,textarea,select");K.basePath=_getBasePath(),K.options={designMode:!0,fullscreenMode:!1,filterMode:!1,wellFormatMode:!0,shadowMode:!0,loadStyleMode:!0,basePath:K.basePath,themesPath:K.basePath+"themes/",langPath:K.basePath+"lang/",pluginsPath:K.basePath+"plugins/",themeType:"default",langType:"zh-CN",urlType:"",newlineTag:"p",resizeType:2,syncType:"form",pasteType:2,dialogAlignType:"page",useContextmenu:!0,fullscreenShortcut:!1,bodyClass:"ke-content",indentChar:"\t",cssPath:"",cssData:"",minWidth:650,minHeight:100,minChangeSize:50,zIndex:811213,items:["source","|","undo","redo","|","formatblock","fontname","fontsize","forecolor","hilitecolor","bold","italic","underline","strikethrough","removeformat","|","justifyleft","justifycenter","justifyright","justifyfull","|","indent","outdent","subscript","superscript","|","uploadImage"],noDisableItems:["source","fullscreen"],colorTable:[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]],fontSizeTable:["9px","10px","12px","14px","16px","18px","24px","32px"],htmlTags:{font:["id","class","color","size","face",".background-color"],span:["id","class",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".line-height"],div:["id","class","align",".border",".margin",".padding",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".background",".font-style",".text-decoration",".vertical-align",".margin-left"],table:["id","class","border","cellspacing","cellpadding","width","height","align","bordercolor",".padding",".margin",".border","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".background",".width",".height",".border-collapse"],"td,th":["id","class","align","valign","width","height","colspan","rowspan","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".vertical-align",".background",".border"],a:["id","class","href","target","name"],embed:["id","class","src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess","wmode"],img:["id","class","src","width","height","border","alt","title","align",".width",".height",".border"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["id","class","align",".text-align",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".text-indent",".margin-left"],pre:["id","class"],hr:["id","class",".page-break-after"],"br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del":["id","class"],iframe:["id","class","src","frameborder","width","height",".width",".height"]},layout:'<div class="container"><div class="toolbar"></div><div class="edit"></div><div class="statusbar"></div></div>'};var _useCapture=!1,_INPUT_KEY_MAP=_toMap("8,9,13,32,46,48..57,59,61,65..90,106,109..111,188,190..192,219..222"),_CURSORMOVE_KEY_MAP=_toMap("33..40"),_CHANGE_KEY_MAP={};_each(_INPUT_KEY_MAP,(function(t,e){_CHANGE_KEY_MAP[t]=e})),_each(_CURSORMOVE_KEY_MAP,(function(t,e){_CHANGE_KEY_MAP[t]=e}));var _EVENT_PROPS="altKey,attrChange,attrName,bubbles,button,cancelable,charCode,clientX,clientY,ctrlKey,currentTarget,data,detail,eventPhase,fromElement,handler,keyCode,metaKey,newValue,offsetX,offsetY,originalTarget,pageX,pageY,prevValue,relatedNode,relatedTarget,screenX,screenY,shiftKey,srcElement,target,toElement,view,wheelDelta,which".split(",");_extend(KEvent,{init:function(t,e){var n=this,i=t.ownerDocument||t.document||t;if(n.event=e,_each(_EVENT_PROPS,(function(t,i){n[i]=e[i]})),n.target||(n.target=n.srcElement||i),3===n.target.nodeType&&(n.target=n.target.parentNode),!n.relatedTarget&&n.fromElement&&(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),null==n.pageX&&null!=n.clientX){var r=i.documentElement,o=i.body;n.pageX=n.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),n.pageY=n.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)}switch(!n.which&&(n.charCode||0===n.charCode?n.charCode:n.keyCode)&&(n.which=n.charCode||n.keyCode),!n.metaKey&&n.ctrlKey&&(n.metaKey=n.ctrlKey),n.which||n.button===undefined||(n.which=1&n.button?1:2&n.button?3:4&n.button?2:0),n.which){case 186:n.which=59;break;case 187:case 107:case 43:n.which=61;break;case 189:case 45:n.which=109;break;case 42:n.which=106;break;case 47:n.which=111;break;case 78:n.which=110;break}n.which>=96&&n.which<=105&&(n.which-=48)},preventDefault:function(){var t=this.event;t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(){var t=this.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},stop:function(){this.preventDefault(),this.stopPropagation()}});var _eventExpendo="kindeditor_"+_TIME,_eventId=0,_eventData={},_readyFinished=!1;window.attachEvent&&window.attachEvent("onunload",(function(){_each(_eventData,(function(t,e){e.el&&_unbind(e.el)}))})),K.ctrl=_ctrl,K.ready=_ready,K.formatUrl=_formatUrl,K.formatHtml=_formatHtml,K.getCssList=_getCssList,K.getAttrList=_getAttrList,K.mediaType=_mediaType,K.mediaAttrs=_mediaAttrs,K.mediaEmbed=_mediaEmbed,K.mediaImg=_mediaImg,K.clearMsWord=_clearMsWord,K.tmpl=_tmpl;var _getSetAttrDiv=document.createElement("div");_getSetAttrDiv.setAttribute("className","t");var _GET_SET_ATTRIBUTE="t"!==_getSetAttrDiv.className;K.query=_query,K.queryAll=_queryAll,_extend(KNode,{init:function(t){var e=this;t=_isArray(t)?t:[t];for(var n=0,i=0,r=t.length;i<r;i++)t[i]&&(e[i]=t[i].constructor===KNode?t[i][0]:t[i],n++);e.length=n,e.doc=_getDoc(e[0]),e.name=_getNodeName(e[0]),e.type=e.length>0?e[0].nodeType:null,e.win=_getWin(e[0])},each:function(t){for(var e=this,n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e;return e},bind:function(t,e){return this.each((function(){_bind(this,t,e)})),this},unbind:function(t,e){return this.each((function(){_unbind(this,t,e)})),this},fire:function(t){return this.length<1||_fire(this[0],t),this},hasAttr:function(t){return!(this.length<1)&&!!_getAttr(this[0],t)},attr:function(t,e){var n=this;return t===undefined?_getAttrList(n.outer()):"object"===typeof t?(_each(t,(function(t,e){n.attr(t,e)})),n):e===undefined?(e=n.length<1?null:_getAttr(n[0],t),null===e?"":e):(n.each((function(){_setAttr(this,t,e)})),n)},removeAttr:function(t){return this.each((function(){_removeAttr(this,t)})),this},get:function(t){return this.length<1?null:this[t||0]},eq:function(t){return this.length<1?null:this[t]?new KNode(this[t]):null},hasClass:function(t){return!(this.length<1)&&_hasClass(this[0],t)},addClass:function(t){return this.each((function(){_hasClass(this,t)||(this.className=_trim(this.className+" "+t))})),this},removeClass:function(t){return this.each((function(){_hasClass(this,t)&&(this.className=_trim(this.className.replace(new RegExp("(^|\\s)"+t+"(\\s|$)")," ")))})),this},html:function(t){var e=this;return t===undefined?e.length<1||1!=e.type?"":_formatHtml(e[0].innerHTML):(e.each((function(){_setHtml(this,t)})),e)},text:function(){var t=this;return t.length<1?"":_IE?t[0].innerText:t[0].textContent},hasVal:function(){return!(this.length<1)&&_hasVal(this[0])},val:function(t){var e=this;return t===undefined?e.length<1?"":e.hasVal()?e[0].value:e.attr("value"):(e.each((function(){_hasVal(this)?this.value=t:_setAttr(this,"value",t)})),e)},css:function(t,e){var n=this;return t===undefined?_getCssList(n.attr("style")):"object"===typeof t?(_each(t,(function(t,e){n.css(t,e)})),n):e===undefined?n.length<1?"":n[0].style[_toCamel(t)]||_computedCss(n[0],t)||"":(n.each((function(){this.style[_toCamel(t)]=e})),n)},width:function(t){var e=this;return t===undefined?e.length<1?0:e[0].offsetWidth:e.css("width",_addUnit(t))},height:function(t){var e=this;return t===undefined?e.length<1?0:e[0].offsetHeight:e.css("height",_addUnit(t))},opacity:function(t){return this.each((function(){this.style.opacity===undefined?this.style.filter=1==t?"":"alpha(opacity="+100*t+")":this.style.opacity=1==t?"":t})),this},data:function(t,e){var n=this;return t="kindeditor_data_"+t,e===undefined?n.length<1?null:n[0][t]:(this.each((function(){this[t]=e})),n)},pos:function(){var t=this,e=t[0],n=0,i=0;if(e)if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),o=_getScrollPos(t.doc);n=r.left+o.x,i=r.top+o.y}else while(e)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{x:_round(n),y:_round(i)}},clone:function(t){return this.length<1?new KNode([]):new KNode(this[0].cloneNode(t))},append:function(t){return this.each((function(){this.appendChild&&this.appendChild(_get(t))})),this},appendTo:function(t){return this.each((function(){_get(t).appendChild(this)})),this},before:function(t){return this.each((function(){this.parentNode.insertBefore(_get(t),this)})),this},after:function(t){return this.each((function(){this.nextSibling?this.parentNode.insertBefore(_get(t),this.nextSibling):this.parentNode.appendChild(_get(t))})),this},replaceWith:function(t){var e=[];return this.each((function(n,i){_unbind(i);var r=_get(t);i.parentNode.replaceChild(r,i),e.push(r)})),K(e)},empty:function(){var t=this;return t.each((function(t,e){var n=e.firstChild;while(n){if(!e.parentNode)return;var i=n.nextSibling;n.parentNode.removeChild(n),n=i}})),t},remove:function(t){var e=this;return e.each((function(n,i){if(i.parentNode){if(_unbind(i),t){var r=i.firstChild;while(r){var o=r.nextSibling;i.parentNode.insertBefore(r,i),r=o}}i.parentNode.removeChild(i),delete e[n]}})),e.length=0,e},show:function(t){var e=this;return t===undefined&&(t=e._originDisplay||""),"none"!=e.css("display")?e:e.css("display",t)},hide:function(){var t=this;return t.length<1?t:(t._originDisplay=t[0].style.display,t.css("display","none"))},outer:function(){var t=this;if(t.length<1)return"";var e,n=t.doc.createElement("div");return n.appendChild(t[0].cloneNode(!0)),e=_formatHtml(n.innerHTML),n=null,e},isSingle:function(){return!!_SINGLE_TAG_MAP[this.name]},isInline:function(){return!!_INLINE_TAG_MAP[this.name]},isBlock:function(){return!!_BLOCK_TAG_MAP[this.name]},isStyle:function(){return!!_STYLE_TAG_MAP[this.name]},isControl:function(){return!!_CONTROL_TAG_MAP[this.name]},contains:function(t){return!(this.length<1)&&_contains(this[0],_get(t))},parent:function(){if(this.length<1)return null;var t=this[0].parentNode;return t?new KNode(t):null},children:function(){if(this.length<1)return new KNode([]);var t=[],e=this[0].firstChild;while(e)3==e.nodeType&&""===_trim(e.nodeValue)||t.push(e),e=e.nextSibling;return new KNode(t)},first:function(){var t=this.children();return t.length>0?t.eq(0):null},last:function(){var t=this.children();return t.length>0?t.eq(t.length-1):null},index:function(){if(this.length<1)return-1;var t=-1,e=this[0];while(e)t++,e=e.previousSibling;return t},prev:function(){if(this.length<1)return null;var t=this[0].previousSibling;return t?new KNode(t):null},next:function(){if(this.length<1)return null;var t=this[0].nextSibling;return t?new KNode(t):null},scan:function(t,e){if(!(this.length<1))return e=e===undefined||e,n(this[0]),this;function n(i){var r=e?i.firstChild:i.lastChild;while(r){var o=e?r.nextSibling:r.previousSibling;if(!1===t(r))return!1;if(!1===n(r))return!1;r=o}}}}),_each("blur,focus,focusin,focusout,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error,contextmenu".split(","),(function(t,e){KNode.prototype[e]=function(t){return t?this.bind(e,t):this.fire(e)}}));var _K=K;K=function(t,e){if(t!==undefined&&null!==t){if("string"===typeof t){e&&(e=_get(e));var n=t.length;if("@"===t.charAt(0)&&(t=t.substr(1)),t.length!==n||/<.+>/.test(t)){var i=e?e.ownerDocument||e:document,r=i.createElement("div"),o=[];r.innerHTML='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+t;for(var a=0,s=r.childNodes.length;a<s;a++){var l=r.childNodes[a];"__kindeditor_temp_tag__"!=l.id&&o.push(l)}return c(o)}return c(_queryAll(t,e))}return t&&t.constructor===KNode?t:(t.toArray&&(t=t.toArray()),_isArray(t)?c(t):c(_toArray(arguments)))}function c(t){return t[0]||(t=[]),new KNode(t)}},_each(_K,(function(t,e){K[t]=e})),K.NodeClass=KNode,window.KindEditor=K;var _START_TO_START=0,_START_TO_END=1,_END_TO_END=2,_END_TO_START=3,_BOOKMARK_ID=0;_extend(KRange,{init:function(t){var e=this;e.startContainer=t,e.startOffset=0,e.endContainer=t,e.endOffset=0,e.collapsed=!0,e.doc=t},commonAncestor:function(){function t(t){var e=[];while(t)e.push(t),t=t.parentNode;return e}var e,n,i=t(this.startContainer),r=t(this.endContainer),o=0,a=i.length,s=r.length;while(++o)if(e=i[a-o],n=r[s-o],!e||!n||e!==n)break;return i[a-o+1]},setStart:function(t,e){var n=this,i=n.doc;return n.startContainer=t,n.startOffset=e,n.endContainer===i&&(n.endContainer=t,n.endOffset=e),_updateCollapsed(this)},setEnd:function(t,e){var n=this,i=n.doc;return n.endContainer=t,n.endOffset=e,n.startContainer===i&&(n.startContainer=t,n.startOffset=e),_updateCollapsed(this)},setStartBefore:function(t){return this.setStart(t.parentNode||this.doc,K(t).index())},setStartAfter:function(t){return this.setStart(t.parentNode||this.doc,K(t).index()+1)},setEndBefore:function(t){return this.setEnd(t.parentNode||this.doc,K(t).index())},setEndAfter:function(t){return this.setEnd(t.parentNode||this.doc,K(t).index()+1)},selectNode:function(t){return this.setStartBefore(t).setEndAfter(t)},selectNodeContents:function(t){var e=K(t);if(3==e.type||e.isSingle())return this.selectNode(t);var n=e.children();return n.length>0?this.setStartBefore(n[0]).setEndAfter(n[n.length-1]):this.setStart(t,0).setEnd(t,0)},collapse:function(t){return t?this.setEnd(this.startContainer,this.startOffset):this.setStart(this.endContainer,this.endOffset)},compareBoundaryPoints:function(t,e){var n=this.get(),i=e.get();if(!_IERANGE)return n.compareBoundaryPoints(t,i);var r={};r[_START_TO_START]="StartToStart",r[_START_TO_END]="EndToStart",r[_END_TO_END]="EndToEnd",r[_END_TO_START]="StartToEnd";var o,a,s,l,c,u=n.compareEndPoints(r[t],i);if(0!==u)return u;if(t!==_START_TO_START&&t!==_END_TO_START||(o=this.startContainer,l=this.startOffset),t!==_START_TO_END&&t!==_END_TO_END||(o=this.endContainer,l=this.endOffset),t!==_START_TO_START&&t!==_START_TO_END||(a=e.startContainer,c=e.startOffset),t!==_END_TO_END&&t!==_END_TO_START||(a=e.endContainer,c=e.endOffset),o===a){var d=l-c;return d>0?1:d<0?-1:0}s=a;while(s&&s.parentNode!==o)s=s.parentNode;if(s)return K(s).index()>=l?-1:1;s=o;while(s&&s.parentNode!==a)s=s.parentNode;return s?K(s).index()>=c?1:-1:(s=K(a).next(),s&&s.contains(o)?1:(s=K(o).next(),s&&s.contains(a)?-1:void 0))},cloneRange:function(){return new KRange(this.doc).setStart(this.startContainer,this.startOffset).setEnd(this.endContainer,this.endOffset)},toString:function(){var t=this.get(),e=_IERANGE?t.text:t.toString();return e.replace(/\r\n|\n|\r/g,"")},cloneContents:function(){return _copyAndDelete(this,!0,!1)},deleteContents:function(){return _copyAndDelete(this,!1,!0)},extractContents:function(){return _copyAndDelete(this,!0,!0)},insertNode:function(t){var e,n,i,r=this,o=r.startContainer,a=r.startOffset,s=r.endContainer,l=r.endOffset,c=1;return"#document-fragment"===t.nodeName.toLowerCase()&&(e=t.firstChild,n=t.lastChild,c=t.childNodes.length),1==o.nodeType?(i=o.childNodes[a],i?(o.insertBefore(t,i),o===s&&(l+=c)):o.appendChild(t)):3==o.nodeType&&(0===a?(o.parentNode.insertBefore(t,o),o.parentNode===s&&(l+=c)):a>=o.nodeValue.length?o.nextSibling?o.parentNode.insertBefore(t,o.nextSibling):o.parentNode.appendChild(t):(i=a>0?o.splitText(a):o,o.parentNode.insertBefore(t,i),o===s&&(s=i,l-=a))),e?r.setStartBefore(e).setEndAfter(n):r.selectNode(t),r.compareBoundaryPoints(_END_TO_END,r.cloneRange().setEnd(s,l))>=1?r:r.setEnd(s,l)},surroundContents:function(t){return t.appendChild(this.extractContents()),this.insertNode(t).selectNode(t)},isControl:function(){var t=this,e=t.startContainer,n=t.startOffset,i=t.endContainer,r=t.endOffset;return 1==e.nodeType&&e===i&&n+1===r&&K(e.childNodes[n]).isControl()},get:function(t){var e,n=this,i=n.doc;if(!_IERANGE){e=i.createRange();try{e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset)}catch(o){}return e}if(t&&n.isControl())return e=i.body.createControlRange(),e.addElement(n.startContainer.childNodes[n.startOffset]),e;var r=n.cloneRange().down();return e=i.body.createTextRange(),e.setEndPoint("StartToStart",_getEndRange(r.startContainer,r.startOffset)),e.setEndPoint("EndToStart",_getEndRange(r.endContainer,r.endOffset)),e},html:function(){return K(this.cloneContents()).outer()},down:function(){var t=this;function e(e,n,i){if(1==e.nodeType){var r,o,a,s,l=K(e).children();if(0!==l.length)n>0&&(r=l.eq(n-1)),n<l.length&&(o=l.eq(n)),r&&3==r.type&&(a=r[0],s=a.nodeValue.length),o&&3==o.type&&(a=o[0],s=0),a&&(i?t.setStart(a,s):t.setEnd(a,s))}}return e(t.startContainer,t.startOffset,!0),e(t.endContainer,t.endOffset,!1),t},up:function(){var t=this;function e(e,n,i){3==e.nodeType&&(0===n?i?t.setStartBefore(e):t.setEndBefore(e):n==e.nodeValue.length&&(i?t.setStartAfter(e):t.setEndAfter(e)))}return e(t.startContainer,t.startOffset,!0),e(t.endContainer,t.endOffset,!1),t},enlarge:function(t){var e=this;function n(n,i,r){var o,a=K(n);if(!(3==a.type||_NOSPLIT_TAG_MAP[a.name]||!t&&a.isBlock()))if(0===i){while(!a.prev()){if(o=a.parent(),!o||_NOSPLIT_TAG_MAP[o.name]||!t&&o.isBlock())break;a=o}r?e.setStartBefore(a[0]):e.setEndBefore(a[0])}else if(i==a.children().length){while(!a.next()){if(o=a.parent(),!o||_NOSPLIT_TAG_MAP[o.name]||!t&&o.isBlock())break;a=o}r?e.setStartAfter(a[0]):e.setEndAfter(a[0])}}return e.up(),n(e.startContainer,e.startOffset,!0),n(e.endContainer,e.endOffset,!1),e},shrink:function(){var t,e=this,n=e.collapsed;while(1==e.startContainer.nodeType&&(t=e.startContainer.childNodes[e.startOffset])&&1==t.nodeType&&!K(t).isSingle())e.setStart(t,0);if(n)return e.collapse(n);while(1==e.endContainer.nodeType&&e.endOffset>0&&(t=e.endContainer.childNodes[e.endOffset-1])&&1==t.nodeType&&!K(t).isSingle())e.setEnd(t,t.childNodes.length);return e},createBookmark:function(t){var e,n=this,i=n.doc,r=K('<span style="display:none;"></span>',i)[0];return r.id="__kindeditor_bookmark_start_"+_BOOKMARK_ID+++"__",n.collapsed||(e=r.cloneNode(!0),e.id="__kindeditor_bookmark_end_"+_BOOKMARK_ID+++"__"),e&&n.cloneRange().collapse(!1).insertNode(e).setEndBefore(e),n.insertNode(r).setStartAfter(r),{start:t?"#"+r.id:r,end:e?t?"#"+e.id:e:null}},moveToBookmark:function(t){var e=this,n=e.doc,i=K(t.start,n),r=t.end?K(t.end,n):null;return!i||i.length<1||(e.setStartBefore(i[0]),i.remove(),r&&r.length>0?(e.setEndBefore(r[0]),r.remove()):e.collapse(!0)),e},dump:function(){console.log("--------------------"),console.log(3==this.startContainer.nodeType?this.startContainer.nodeValue:this.startContainer,this.startOffset),console.log(3==this.endContainer.nodeType?this.endContainer.nodeValue:this.endContainer,this.endOffset)}}),K.RangeClass=KRange,K.range=_range,K.START_TO_START=_START_TO_START,K.START_TO_END=_START_TO_END,K.END_TO_END=_END_TO_END,K.END_TO_START=_END_TO_START,_extend(KCmd,{init:function(t){var e=this,n=t.doc;e.doc=n,e.win=_getWin(n),e.sel=_getSel(n),e.range=t},selection:function(t){var e=this,n=e.doc,i=_getRng(n);return e.sel=_getSel(n),i?(e.range=_range(i),"html"==K(e.range.startContainer).name&&e.range.selectNodeContents(n.body).collapse(!1),e):(t&&e.range.selectNodeContents(n.body).collapse(!1),e)},select:function(t){t=_undef(t,!0);var e,n=this,i=n.sel,r=n.range.cloneRange().shrink(),o=r.startContainer,a=r.startOffset,s=(r.endContainer,r.endOffset,_getDoc(o)),l=n.win,c=!1;if(t&&1==o.nodeType&&r.collapsed){if(_IERANGE){var u=K("<span> </span>",s);r.insertNode(u[0]),e=s.body.createTextRange();try{e.moveToElementText(u[0])}catch(p){}return e.collapse(!1),e.select(),u.remove(),l.focus(),n}if(_WEBKIT){var d=o.childNodes;(K(o).isInline()||a>0&&K(d[a-1]).isInline()||d[a]&&K(d[a]).isInline())&&(r.insertNode(s.createTextNode("")),c=!0)}}if(_IERANGE)try{e=r.get(!0),e.select()}catch(f){}else if(c&&r.collapse(!1),e=r.get(!0),i.removeAllRanges(),i.addRange(e),s!==document){var h=K(e.endContainer).pos();l.scrollTo(h.x,h.y)}return l.focus(),n},wrap:function(t){var e,n=this,i=n.doc,r=n.range;if(e=K(t,i),r.collapsed)return r.shrink(),r.insertNode(e[0]).selectNodeContents(e[0]),n;if(e.isBlock()){var o=e.clone(!0),a=o;while(a.first())a=a.first();return a.append(r.extractContents()),r.insertNode(o[0]).selectNode(o[0]),n}r.enlarge();var s=r.createBookmark(),l=r.commonAncestor(),c=!1;return K(l).scan((function(t){if(c||t!=s.start){if(c){if(t==s.end)return!1;var n=K(t);if(_inPreElement(n))return;if(3==n.type&&_trim(t.nodeValue).length>0){var i;while((i=n.parent())&&i.isStyle()&&1==i.children().length)n=i;_wrapNode(n,e)}}}else c=!0})),r.moveToBookmark(s),n},split:function(t,e){var n,i=this.range,r=i.doc,o=i.cloneRange().collapse(t),a=o.startContainer,s=o.startOffset,l=3==a.nodeType?a.parentNode:a,c=!1;while(l&&l.parentNode){if(n=K(l),e){if(!n.isStyle())break;if(!_hasAttrOrCss(n,e))break}else if(_NOSPLIT_TAG_MAP[n.name])break;c=!0,l=l.parentNode}if(c){var u=r.createElement("span");i.cloneRange().collapse(!t).insertNode(u),t?o.setStartBefore(l.firstChild).setEnd(a,s):o.setStart(a,s).setEndAfter(l.lastChild);var d=o.extractContents(),h=d.firstChild,p=d.lastChild;t?(o.insertNode(d),i.setStartAfter(p).setEndBefore(u)):(l.appendChild(d),i.setStartBefore(u).setEndBefore(h));var f=u.parentNode;if(f==i.endContainer){var m=K(u).prev(),g=K(u).next();m&&g&&3==m.type&&3==g.type?i.setEnd(m[0],m[0].nodeValue.length):t||i.setEnd(i.endContainer,i.endOffset-1)}f.removeChild(u)}return this},remove:function(t){var e,n,i=this,r=i.doc,o=i.range;if(o.enlarge(),0===o.startOffset){var a,s=K(o.startContainer);while((a=s.parent())&&a.isStyle()&&1==a.children().length)s=a;o.setStart(s[0],0),s=K(o.startContainer),s.isBlock()&&_removeAttrOrCss(s,t);var l=s.parent();l&&l.isBlock()&&_removeAttrOrCss(l,t)}if(o.collapsed){if(i.split(!0,t),e=o.startContainer,n=o.startOffset,n>0){var c=K(e.childNodes[n-1]);c&&_isEmptyNode(c)&&(c.remove(),o.setStart(e,n-1))}var u=K(e.childNodes[n]);return u&&_isEmptyNode(u)&&u.remove(),_isEmptyNode(e)&&(o.startBefore(e),e.remove()),o.collapse(!0),i}i.split(!0,t),i.split(!1,t);var d=r.createElement("span"),h=r.createElement("span");o.cloneRange().collapse(!1).insertNode(h),o.cloneRange().collapse(!0).insertNode(d);var p=[],f=!1;K(o.commonAncestor()).scan((function(t){if(f||t!=d)return t!=h&&void(f&&p.push(t));f=!0})),K(d).remove(),K(h).remove(),e=o.startContainer,n=o.startOffset;var m=o.endContainer,g=o.endOffset;if(n>0){var v=K(e.childNodes[n-1]);v&&_isEmptyNode(v)&&(v.remove(),o.setStart(e,n-1),e==m&&o.setEnd(m,g-1));var b=K(e.childNodes[n]);b&&_isEmptyNode(b)&&(b.remove(),e==m&&o.setEnd(m,g-1))}var _=K(m.childNodes[o.endOffset]);_&&_isEmptyNode(_)&&_.remove();var y=o.createBookmark(!0);return _each(p,(function(e,n){_removeAttrOrCss(K(n),t)})),o.moveToBookmark(y),i},commonNode:function(t){var e=this.range,n=e.endContainer,i=e.endOffset,r=3==n.nodeType||0===i?n:n.childNodes[i-1];function o(e){var n=e,i=e;while(i){if(_hasAttrOrCss(K(i),t))return K(i);i=i.parentNode}while(n&&(n=n.lastChild))if(_hasAttrOrCss(K(n),t))return K(n);return null}var a=o(r);if(a)return a;if(1==r.nodeType||3==n.nodeType&&0===i){var s=K(r).prev();if(s)return o(s)}return null},commonAncestor:function(t){var e=this.range,n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=3==n.nodeType||0===i?n:n.childNodes[i-1],s=3==r.nodeType||0===o?r:r.childNodes[o-1];function l(e){while(e){if(1==e.nodeType&&e.tagName.toLowerCase()===t)return e;e=e.parentNode}return null}var c=l(a),u=l(s);return c&&u&&c===u?K(c):null},state:function(t){var e=this,n=e.doc,i=!1;try{i=n.queryCommandState(t)}catch(r){}return i},val:function(t){var e=this,n=e.doc;e.range;function i(t){return t.toLowerCase()}t=i(t);var r,o="";return"fontfamily"===t||"fontname"===t?(o=_nativeCommandValue(n,"fontname"),o=o.replace(/['"]/g,""),i(o)):"formatblock"===t?(o=_nativeCommandValue(n,t),""===o&&(r=e.commonNode({"h1,h2,h3,h4,h5,h6,p,div,pre,address":"*"}),r&&(o=r.name)),"Normal"===o&&(o="p"),i(o)):"fontsize"===t?(r=e.commonNode({"*":".font-size"}),r&&(o=r.css("font-size")),i(o)):"forecolor"===t?(r=e.commonNode({"*":".color"}),r&&(o=r.css("color")),o=_toHex(o),""===o&&(o="default"),i(o)):"hilitecolor"===t?(r=e.commonNode({"*":".background-color"}),r&&(o=r.css("background-color")),o=_toHex(o),""===o&&(o="default"),i(o)):o},toggle:function(t,e){var n=this;return n.commonNode(e)?n.remove(e):n.wrap(t),n.select()},bold:function(){return this.toggle("<strong></strong>",{span:".font-weight=bold",strong:"*",b:"*"})},italic:function(){return this.toggle("<em></em>",{span:".font-style=italic",em:"*",i:"*"})},underline:function(){return this.toggle("<u></u>",{span:".text-decoration=underline",u:"*"})},strikethrough:function(){return this.toggle("<s></s>",{span:".text-decoration=line-through",s:"*"})},forecolor:function(t){return this.wrap('<span style="color:'+t+';"></span>').select()},hilitecolor:function(t){return this.wrap('<span style="background-color:'+t+';"></span>').select()},fontsize:function(t){return this.wrap('<span style="font-size:'+t+';"></span>').select()},fontname:function(t){return this.fontfamily(t)},fontfamily:function(t){return this.wrap('<span style="font-family:'+t+';"></span>').select()},removeformat:function(){var t={"*":".font-weight,.font-style,.text-decoration,.color,.background-color,.font-size,.font-family,.text-indent"},e=_STYLE_TAG_MAP;return _each(e,(function(e,n){t[e]="*"})),this.remove(t),this.select()},inserthtml:function(t,e){var n=this,i=n.range;if(""===t)return n;function r(t,e){e='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+e;var i=t.get();i.item?i.item(0).outerHTML=e:i.pasteHTML(e);var r=t.doc.getElementById("__kindeditor_temp_tag__");r.parentNode.removeChild(r);var o=_toRange(i);t.setEnd(o.endContainer,o.endOffset),t.collapse(!1),n.select(!1)}function o(t,e){var i=t.doc,r=i.createDocumentFragment();K("@"+e,i).each((function(){r.appendChild(this)})),t.deleteContents(),t.insertNode(r),t.collapse(!1),n.select(!1)}if(_IERANGE&&e){try{r(i,t)}catch(a){o(i,t)}return n}return o(i,t),n},hr:function(){return this.inserthtml("<hr />")},print:function(){return this.win.print(),this},insertimage:function(t,e,n,i,r,o){e=_undef(e,""),r=_undef(r,0);var a='<img src="'+_escape(t)+'" data-ke-src="'+_escape(t)+'" ';return n&&(a+='width="'+_escape(n)+'" '),i&&(a+='height="'+_escape(i)+'" '),e&&(a+='title="'+_escape(e)+'" '),o&&(a+='align="'+_escape(o)+'" '),a+='alt="'+_escape(e)+'" ',a+="/>",this.inserthtml(a)},createlink:function(t,e){var n=this,i=n.doc,r=n.range;n.select();var o=n.commonNode({a:"*"});o&&!r.isControl()&&(r.selectNode(o.get()),n.select());var a='<a href="'+_escape(t)+'" data-ke-src="'+_escape(t)+'" ';if(e&&(a+=' target="'+_escape(e)+'"'),r.collapsed)return a+=">"+_escape(t)+"</a>",n.inserthtml(a);if(r.isControl()){var s=K(r.startContainer.childNodes[r.startOffset]);return a+="></a>",s.after(K(a,i)),s.next().append(s),r.selectNode(s[0]),n.select()}function l(t,e,n){K(t).attr("href",e).attr("data-ke-src",e),n?K(t).attr("target",n):K(t).removeAttr("target")}var c=r.startContainer,u=r.startOffset,d=r.endContainer,h=r.endOffset;if(1==c.nodeType&&c===d&&u+1===h){var p=c.childNodes[u];if("a"==p.nodeName.toLowerCase())return l(p,t,e),n}return _nativeCommand(i,"createlink","__kindeditor_temp_url__"),K('a[href="__kindeditor_temp_url__"]',i).each((function(){l(this,t,e)})),n},unlink:function(){var t=this,e=t.doc,n=t.range;if(t.select(),n.collapsed){var i=t.commonNode({a:"*"});if(i&&(n.selectNode(i.get()),t.select()),_nativeCommand(e,"unlink",null),_WEBKIT&&"img"===K(n.startContainer).name){var r=K(n.startContainer).parent();"a"===r.name&&r.remove(!0)}}else _nativeCommand(e,"unlink",null);return t}}),_each("formatblock,selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript".split(","),(function(t,e){KCmd.prototype[e]=function(t){var n=this;return n.select(),_nativeCommand(n.doc,e,t),_IERANGE&&_inArray(e,"justifyleft,justifycenter,justifyright,justifyfull".split(","))>=0&&n.selection(),(!_IERANGE||_inArray(e,"formatblock,selectall,insertorderedlist,insertunorderedlist".split(","))>=0)&&n.selection(),n}})),_each("cut,copy,paste".split(","),(function(t,e){KCmd.prototype[e]=function(){var t=this;if(!t.doc.queryCommandSupported(e))throw"not supported";return t.select(),_nativeCommand(t.doc,e,null),t}})),K.CmdClass=KCmd,K.cmd=_cmd,_extend(KWidget,{init:function(t){var e=this;if(e.name=t.name||"",e.doc=t.doc||document,e.win=_getWin(e.doc),e.x=_addUnit(t.x),e.y=_addUnit(t.y),e.z=t.z,e.width=_addUnit(t.width),e.height=_addUnit(t.height),e.div=K('<div style="display:block;"></div>'),e.options=t,e._alignEl=t.alignEl,e.width&&e.div.css("width",e.width),e.height&&e.div.css("height",e.height),e.z&&e.div.css({position:"absolute",left:e.x,top:e.y,"z-index":e.z}),!e.z||e.x!==undefined&&e.y!==undefined||e.autoPos(e.width,e.height),t.cls&&e.div.addClass(t.cls),t.shadowMode&&e.div.addClass("ke-shadow"),t.css&&e.div.css(t.css),t.src?K(t.src).replaceWith(e.div):K(e.doc.body).append(e.div),t.html&&e.div.html(t.html),t.autoScroll)if(_IE&&_V<7||_QUIRKS){var n=_getScrollPos();K(e.win).bind("scroll",(function(t){var i=_getScrollPos(),r=i.x-n.x,o=i.y-n.y;e.pos(_removeUnit(e.x)+r,_removeUnit(e.y)+o,!1)}))}else e.div.css("position","fixed")},pos:function(t,e,n){var i=this;return n=_undef(n,!0),null!==t&&(t=t<0?0:_addUnit(t),i.div.css("left",t),n&&(i.x=t)),null!==e&&(e=e<0?0:_addUnit(e),i.div.css("top",e),n&&(i.y=e)),i},autoPos:function(t,e){var n=this,i=_removeUnit(t)||0,r=_removeUnit(e)||0,o=_getScrollPos();if(n._alignEl){var a=K(n._alignEl),s=a.pos(),l=_round(a[0].clientWidth/2-i/2),c=_round(a[0].clientHeight/2-r/2);x=l<0?s.x:s.x+l,y=c<0?s.y:s.y+c}else{var u=_docElement(n.doc);x=_round(o.x+(u.clientWidth-i)/2),y=_round(o.y+(u.clientHeight-r)/2)}return _IE&&_V<7||_QUIRKS||(x-=o.x,y-=o.y),n.pos(x,y)},remove:function(){var t=this;return(_IE&&_V<7||_QUIRKS)&&K(t.win).unbind("scroll"),t.div.remove(),_each(t,(function(e){t[e]=null})),this},show:function(){return this.div.show(),this},hide:function(){return this.div.hide(),this},draggable:function(t){var e=this;return t=t||{},t.moveEl=e.div,t.moveFn=function(t,n,i,r,o,a){(t+=o)<0&&(t=0),(n+=a)<0&&(n=0),e.pos(t,n)},_drag(t),e}}),K.WidgetClass=KWidget,K.widget=_widget;var html,_direction="";(html=document.getElementsByTagName("html"))&&(_direction=html[0].dir),_extend(KEdit,KWidget,{init:function(t){var e=this;KEdit.parent.init.call(e,t),e.srcElement=K(t.srcElement),e.div.addClass("ke-edit"),e.designMode=_undef(t.designMode,!0),e.beforeGetHtml=t.beforeGetHtml,e.beforeSetHtml=t.beforeSetHtml,e.afterSetHtml=t.afterSetHtml;var n=_undef(t.themesPath,""),i=t.bodyClass,r=t.cssPath,o=t.cssData,a="res:"!=location.protocol&&location.host.replace(/:\d+/,"")!==document.domain,s="document.open();"+(a?'document.domain="'+document.domain+'";':"")+"document.close();",l=_IE?' src="javascript:void(function(){'+encodeURIComponent(s)+'}())"':"";function c(){var s=_iframeDoc(e.iframe);s.open(),a&&(s.domain=document.domain),s.write(_getInitHtml(n,i,r,o)),s.close(),e.win=e.iframe[0].contentWindow,e.doc=s;var l=_cmd(s);e.afterChange((function(t){l.selection()})),_WEBKIT&&K(s).click((function(t){"img"===K(t.target).name&&(l.selection(!0),l.range.selectNode(t.target),l.select())})),_IE&&(e._mousedownHandler=function(){var t=l.range.cloneRange();t.shrink(),t.isControl()&&e.blur()},K(document).mousedown(e._mousedownHandler),K(s).keydown((function(t){if(8==t.which){l.selection();var e=l.range;e.isControl()&&(e.collapse(!0),K(e.startContainer.childNodes[e.startOffset]).remove(),t.preventDefault())}}))),e.cmd=l,e.html(_elementVal(e.srcElement)),_IE?(s.body.disabled=!0,s.body.contentEditable=!0,s.body.removeAttribute("disabled")):s.designMode="on",t.afterCreate&&t.afterCreate.call(e)}e.iframe=K('<iframe class="ke-edit-iframe" hidefocus="true" frameborder="0"'+l+"></iframe>").css("width","100%"),e.textarea=K('<textarea class="ke-edit-textarea" hidefocus="true"></textarea>').css("width","100%"),e.tabIndex=isNaN(parseInt(t.tabIndex,10))?e.srcElement.attr("tabindex"):parseInt(t.tabIndex,10),e.iframe.attr("tabindex",e.tabIndex),e.textarea.attr("tabindex",e.tabIndex),e.width&&e.setWidth(e.width),e.height&&e.setHeight(e.height),e.designMode?e.textarea.hide():e.iframe.hide(),a&&e.iframe.bind("load",(function(t){e.iframe.unbind("load"),_IE?c():setTimeout(c,0)})),e.div.append(e.iframe),e.div.append(e.textarea),e.srcElement.hide(),!a&&c()},setWidth:function(t){var e=this;return t=_addUnit(t),e.width=t,e.div.css("width",t),e},setHeight:function(t){var e=this;return t=_addUnit(t),e.height=t,e.div.css("height",t),e.iframe.css("height",t),(_IE&&_V<8||_QUIRKS)&&(t=_addUnit(_removeUnit(t)-2)),e.textarea.css("height",t),e},remove:function(){var t=this,e=t.doc;K(e.body).unbind(),K(e).unbind(),K(t.win).unbind(),t._mousedownHandler&&K(document).unbind("mousedown",t._mousedownHandler),_elementVal(t.srcElement,t.html()),t.srcElement.show(),t.iframe.unbind(),t.textarea.unbind(),KEdit.parent.remove.call(t)},html:function(t,e){var n=this,i=n.doc;if(n.designMode){var r=i.body;return t===undefined?(t=e?"<!doctype html><html>"+r.parentNode.innerHTML+"</html>":r.innerHTML,n.beforeGetHtml&&(t=n.beforeGetHtml(t)),_GECKO&&"<br />"==t&&(t=""),t):(n.beforeSetHtml&&(t=n.beforeSetHtml(t)),_IE&&_V>=9&&(t=t.replace(/(<.*?checked=")checked(".*>)/gi,"$1$2")),K(r).html(t),n.afterSetHtml&&n.afterSetHtml(),n)}return t===undefined?n.textarea.val():(n.textarea.val(t),n)},design:function(t){var e,n=this;if(t===undefined?!n.designMode:t){if(!n.designMode){e=n.html(),n.designMode=!0,n.textarea.hide(),n.html(e);var i=n.iframe,r=_removeUnit(n.height);i.height(r-2),i.show(),setTimeout((function(){i.height(r)}),0)}}else n.designMode&&(e=n.html(),n.designMode=!1,n.html(e),n.iframe.hide(),n.textarea.show());return n.focus()},focus:function(){var t=this;return t.designMode?t.win.focus():t.textarea[0].focus(),t},blur:function(){var t=this;if(_IE){var e=K('<input type="text" style="float:left;width:0;height:0;padding:0;margin:0;border:0;" value="" />',t.div);t.div.append(e),e[0].focus(),e.remove()}else t.designMode?t.win.blur():t.textarea[0].blur();return t},afterChange:function(t){var e=this,n=e.doc,i=n.body;function r(e){setTimeout((function(){t(e)}),1)}return K(n).keyup((function(e){e.ctrlKey||e.altKey||!_CHANGE_KEY_MAP[e.which]||t(e)})),K(n).mouseup(t).contextmenu(t),K(e.win).blur(t),K(i).bind("paste",r),K(i).bind("cut",r),e}}),K.EditClass=KEdit,K.edit=_edit,K.iframeDoc=_iframeDoc,_extend(KToolbar,KWidget,{init:function(t){var e=this;function n(t){var e=K(t);return e.hasClass("ke-outline")?e:e.hasClass("ke-toolbar-icon")?e.parent():void 0}function i(t,e){var i=n(t.target);if(i){if(i.hasClass("ke-disabled"))return;if(i.hasClass("ke-selected"))return;i[e]("ke-on")}}KToolbar.parent.init.call(e,t),e.disableMode=_undef(t.disableMode,!1),e.noDisableItemMap=_toMap(_undef(t.noDisableItems,[])),e._itemMap={},e.div.addClass("ke-toolbar").bind("contextmenu,mousedown,mousemove",(function(t){t.preventDefault()})).attr("unselectable","on"),e.div.mouseover((function(t){i(t,"addClass")})).mouseout((function(t){i(t,"removeClass")})).click((function(t){var i=n(t.target);if(i){if(i.hasClass("ke-disabled"))return;e.options.click.call(this,t,i.attr("data-name"))}}))},get:function(t){return this._itemMap[t]?this._itemMap[t]:this._itemMap[t]=K("span.ke-icon-"+t,this.div).parent()},select:function(t){return _selectToolbar.call(this,t,(function(t){t.addClass("ke-selected")})),self},unselect:function(t){return _selectToolbar.call(this,t,(function(t){t.removeClass("ke-selected").removeClass("ke-on")})),self},enable:function(t){var e=this,n=t.get?t:e.get(t);return n&&(n.removeClass("ke-disabled"),n.opacity(1)),e},disable:function(t){var e=this,n=t.get?t:e.get(t);return n&&(n.removeClass("ke-selected").addClass("ke-disabled"),n.opacity(.5)),e},disableAll:function(t,e){var n=this,i=n.noDisableItemMap;return e&&(i=_toMap(e)),(t===undefined?!n.disableMode:t)?(K("span.ke-outline",n.div).each((function(){var t=K(this),e=t[0].getAttribute("data-name",2);i[e]||n.disable(t)})),n.disableMode=!0):(K("span.ke-outline",n.div).each((function(){var t=K(this),e=t[0].getAttribute("data-name",2);i[e]||n.enable(t)})),n.disableMode=!1),n}}),K.ToolbarClass=KToolbar,K.toolbar=_toolbar,_extend(KMenu,KWidget,{init:function(t){var e=this;t.z=t.z||811213,KMenu.parent.init.call(e,t),e.centerLineMode=_undef(t.centerLineMode,!0),e.div.addClass("ke-menu").bind("click,mousedown",(function(t){t.stopPropagation()})).attr("unselectable","on")},addItem:function(t){var e=this;if("-"!==t.title){var n,i=K('<div class="ke-menu-item" unselectable="on"></div>'),r=K('<div class="ke-inline-block ke-menu-item-left"></div>'),o=K('<div class="ke-inline-block ke-menu-item-right"></div>'),a=_addUnit(t.height),s=_undef(t.iconClass,"");return e.div.append(i),a&&(i.css("height",a),o.css("line-height",a)),e.centerLineMode&&(n=K('<div class="ke-inline-block ke-menu-item-center"></div>'),a&&n.css("height",a)),i.mouseover((function(t){K(this).addClass("ke-menu-item-on"),n&&n.addClass("ke-menu-item-center-on")})).mouseout((function(t){K(this).removeClass("ke-menu-item-on"),n&&n.removeClass("ke-menu-item-center-on")})).click((function(e){t.click.call(K(this)),e.stopPropagation()})).append(r),n&&i.append(n),i.append(o),t.checked&&(s="ke-icon-checked"),""!==s&&r.html('<span class="ke-inline-block ke-toolbar-icon ke-toolbar-icon-url '+s+'"></span>'),o.html(t.title),e}e.div.append(K('<div class="ke-menu-separator"></div>'))},remove:function(){var t=this;return t.options.beforeRemove&&t.options.beforeRemove.call(t),K(".ke-menu-item",t.div[0]).unbind(),KMenu.parent.remove.call(t),t}}),K.MenuClass=KMenu,K.menu=_menu,_extend(KColorPicker,KWidget,{init:function(t){var e=this;t.z=t.z||811213,KColorPicker.parent.init.call(e,t);var n=t.colors||[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]];e.selectedColor=(t.selectedColor||"").toLowerCase(),e._cells=[],e.div.addClass("ke-colorpicker").bind("click,mousedown",(function(t){t.stopPropagation()})).attr("unselectable","on");var i=e.doc.createElement("table");e.div.append(i),i.className="ke-colorpicker-table",i.cellPadding=0,i.cellSpacing=0,i.border=0;var r=i.insertRow(0),o=r.insertCell(0);o.colSpan=n[0].length,e._addAttr(o,"","ke-colorpicker-cell-top");for(var a=0;a<n.length;a++){r=i.insertRow(a+1);for(var s=0;s<n[a].length;s++)o=r.insertCell(s),e._addAttr(o,n[a][s],"ke-colorpicker-cell")}},_addAttr:function(t,e,n){var i=this;t=K(t).addClass(n),i.selectedColor===e.toLowerCase()&&t.addClass("ke-colorpicker-cell-selected"),t.attr("title",e||i.options.noColor),t.mouseover((function(t){K(this).addClass("ke-colorpicker-cell-on")})),t.mouseout((function(t){K(this).removeClass("ke-colorpicker-cell-on")})),t.click((function(t){t.stop(),i.options.click.call(K(this),e)})),e?t.append(K('<div class="ke-colorpicker-cell-color" unselectable="on"></div>').css("background-color",e)):t.html(i.options.noColor),K(t).attr("unselectable","on"),i._cells.push(t)},remove:function(){var t=this;return _each(t._cells,(function(){this.unbind()})),KColorPicker.parent.remove.call(t),t}}),K.ColorPickerClass=KColorPicker,K.colorpicker=_colorpicker,_extend(KUploadButton,{init:function(t){var e=this,n=K(t.button),i=t.fieldName||"file",r=t.url||"",o=n.val(),a=t.extraParams||{},s=n[0].className||"",l=t.target||"kindeditor_upload_iframe_"+(new Date).getTime();t.afterError=t.afterError||function(t){alert(t)};var c=[];for(var u in a)c.push('<input type="hidden" name="'+u+'" value="'+a[u]+'" />');var d=['<div class="ke-inline-block '+s+'">',t.target?"":'<iframe name="'+l+'" style="display:none;"></iframe>',t.form?'<div class="ke-upload-area">':'<form class="ke-upload-area ke-form" method="post" enctype="multipart/form-data" target="'+l+'" action="'+r+'">','<span class="ke-button-common">',c.join(""),'<input type="button" class="ke-button-common ke-button" value="'+o+'" />',"</span>",'<input type="file" class="ke-upload-file" name="'+i+'" tabindex="-1" />',t.form?"</div>":"</form>","</div>"].join(""),h=K(d,n.doc);n.hide(),n.before(h),e.div=h,e.button=n,e.iframe=t.target?K('iframe[name="'+l+'"]'):K("iframe",h),e.form=t.form?K(t.form):K("form",h),e.fileBox=K(".ke-upload-file",h);var p=t.width||K(".ke-button-common",h).width();K(".ke-upload-area",h).width(p),e.options=t},submit:function(){var t=this,e=t.iframe;return e.bind("load",(function(){e.unbind();var n=document.createElement("form");t.fileBox.before(n),K(n).append(t.fileBox),n.reset(),K(n).remove(!0);var i,r=K.iframeDoc(e),o=r.getElementsByTagName("pre")[0],a="";a=o?o.innerHTML:r.body.innerHTML,a=_unescape(a),e[0].src="javascript:false";try{i=K.json(a)}catch(s){t.options.afterError.call(t,"<!doctype html><html>"+r.body.parentNode.innerHTML+"</html>")}i&&t.options.afterUpload.call(t,i)})),t.form[0].submit(),t},remove:function(){var t=this;return t.fileBox&&t.fileBox.unbind(),t.iframe.remove(),t.div.remove(),t.button.show(),t}}),K.UploadButtonClass=KUploadButton,K.uploadbutton=_uploadbutton,_extend(KDialog,KWidget,{init:function(t){var e=this,n=_undef(t.shadowMode,!0);t.z=t.z||811213,t.shadowMode=!1,t.autoScroll=_undef(t.autoScroll,!0),KDialog.parent.init.call(e,t);var i=t.title,r=K(t.body,e.doc),o=t.previewBtn,a=t.yesBtn,s=t.noBtn,l=t.closeBtn,c=_undef(t.showMask,!0);e.div.addClass("ke-dialog").bind("click,mousedown",(function(t){t.stopPropagation()}));var u=K('<div class="ke-dialog-content"></div>').appendTo(e.div);_IE&&_V<7?e.iframeMask=K('<iframe src="about:blank" class="ke-dialog-shadow"></iframe>').appendTo(e.div):n&&K('<div class="ke-dialog-shadow"></div>').appendTo(e.div);var d=K('<div class="ke-dialog-header"></div>');u.append(d),d.html(i),e.closeIcon=K('<span class="ke-dialog-icon-close" title="'+l.name+'"></span>').click(l.click),d.append(e.closeIcon),e.draggable({clickEl:d,beforeDrag:t.beforeDrag});var h=K('<div class="ke-dialog-body"></div>');u.append(h),h.append(r);var p=K('<div class="ke-dialog-footer"></div>');if((o||a||s)&&u.append(p),_each([{btn:o,name:"preview"},{btn:a,name:"yes"},{btn:s,name:"no"}],(function(){if(this.btn){var t=_createButton(this.btn);t.addClass("ke-dialog-"+this.name),p.append(t)}})),e.height&&h.height(_removeUnit(e.height)-d.height()-p.height()),e.div.width(e.div.width()),e.div.height(e.div.height()),e.mask=null,c){var f=_docElement(e.doc),m=Math.max(f.scrollWidth,f.clientWidth),g=Math.max(f.scrollHeight,f.clientHeight);e.mask=_widget({x:0,y:0,z:e.z-1,cls:"ke-dialog-mask",width:m,height:g})}e.autoPos(e.div.width(),e.div.height()),e.footerDiv=p,e.bodyDiv=h,e.headerDiv=d,e.isLoading=!1},setMaskIndex:function(t){var e=this;e.mask.div.css("z-index",t)},showLoading:function(t){t=_undef(t,"");var e=this,n=e.bodyDiv;return e.loading=K('<div class="ke-dialog-loading"><div class="ke-inline-block ke-dialog-loading-content" style="margin-top:'+Math.round(n.height()/3)+'px;">'+t+"</div></div>").width(n.width()).height(n.height()).css("top",e.headerDiv.height()+"px"),n.css("visibility","hidden").after(e.loading),e.isLoading=!0,e},hideLoading:function(){return this.loading&&this.loading.remove(),this.bodyDiv.css("visibility","visible"),this.isLoading=!1,this},remove:function(){var t=this;return t.options.beforeRemove&&t.options.beforeRemove.call(t),t.mask&&t.mask.remove(),t.iframeMask&&t.iframeMask.remove(),t.closeIcon.unbind(),K("input",t.div).unbind(),K("button",t.div).unbind(),t.footerDiv.unbind(),t.bodyDiv.unbind(),t.headerDiv.unbind(),K("iframe",t.div).each((function(){K(this).remove()})),KDialog.parent.remove.call(t),t}}),K.DialogClass=KDialog,K.dialog=_dialog,K.tabs=_tabs,K.loadScript=_loadScript,K.loadStyle=_loadStyle,K.ajax=_ajax;var _plugins={},_language={};KEditor.prototype={lang:function(t){return _lang(t,this.langType)},loadPlugin:function(t,e){var n=this,i=this._pluginStatus;return i||(i=this._pluginStatus={}),_plugins[t]?_isFunction(_plugins[t])?(i[t]||(_plugins[t].call(n,KindEditor),i[t]="inited"),e&&e.call(n),n):(setTimeout((function(){n.loadPlugin(t,e)}),100),n):(_plugins[t]="loading",_loadScript(n.pluginsPath+t+"/"+t+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){setTimeout((function(){_plugins[t]&&n.loadPlugin(t,e)}),0)})),n)},handler:function(t,e){var n=this;return n._handlers[t]||(n._handlers[t]=[]),_isFunction(e)?(n._handlers[t].push(e),n):(_each(n._handlers[t],(function(){e=this.call(n,e)})),e)},clickToolbar:function(t,e){var n=this,i="clickToolbar"+t;return e===undefined?n._handlers[i]?n.handler(i):(n.loadPlugin(t,(function(){n.handler(i)})),n):n.handler(i,e)},updateState:function(){var t=this;return _each("justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,subscript,superscript,bold,italic,underline,strikethrough".split(","),(function(e,n){t.cmd.state(n)?t.toolbar.select(n):t.toolbar.unselect(n)})),t},addContextmenu:function(t){return this._contextmenus.push(t),this},afterCreate:function(t){return this.handler("afterCreate",t)},beforeRemove:function(t){return this.handler("beforeRemove",t)},beforeGetHtml:function(t){return this.handler("beforeGetHtml",t)},beforeSetHtml:function(t){return this.handler("beforeSetHtml",t)},afterSetHtml:function(t){return this.handler("afterSetHtml",t)},create:function(){var t=this,e=t.fullscreenMode;if(t.isCreated)return t;if(t.srcElement.data("kindeditor"))return t;t.srcElement.data("kindeditor","true"),_docElement().style.overflow=e?"hidden":"";var n=e?_docElement().clientWidth+"px":t.width,i=e?_docElement().clientHeight+"px":t.height;(_IE&&_V<8||_QUIRKS)&&(i=_addUnit(_removeUnit(i)+2));var r=t.container=K(t.layout);e?K(document.body).append(r):t.srcElement.before(r);var o=K(".toolbar",r),a=K(".edit",r),s=t.statusbar=K(".statusbar",r);r.removeClass("container").addClass("ke-container ke-container-"+t.themeType).css("width",n),e?(r.css({position:"absolute",left:0,top:0,"z-index":811211}),_GECKO||(t._scrollPos=_getScrollPos()),window.scrollTo(0,0),K(document.body).css({height:"1px",overflow:"hidden"}),K(document.body.parentNode).css("overflow","hidden"),t._fullscreenExecuted=!0):(t._fullscreenExecuted&&(K(document.body).css({height:"",overflow:""}),K(document.body.parentNode).css("overflow","")),t._scrollPos&&window.scrollTo(t._scrollPos.x,t._scrollPos.y));var l=[];K.each(t.items,(function(e,n){"|"==n?l.push('<span class="ke-inline-block ke-separator"></span>'):"/"==n?l.push('<div class="ke-hr"></div>'):(l.push('<span class="ke-outline" data-name="'+n+'" title="'+t.lang(n)+'" unselectable="on">'),l.push('<span class="ke-toolbar-icon ke-toolbar-icon-url ke-icon-'+n+'" unselectable="on"></span></span>'))}));var c=t.toolbar=_toolbar({src:o,html:l.join(""),noDisableItems:t.noDisableItems,click:function(e,n){if(e.stop(),t.menu){var i=t.menu.name;if(t.hideMenu(),i===n)return}t.clickToolbar(n)}}),u=_removeUnit(i)-c.div.height(),d=t.edit=_edit({height:u>0&&_removeUnit(i)>t.minHeight?u:t.minHeight,src:a,srcElement:t.srcElement,designMode:t.designMode,themesPath:t.themesPath,bodyClass:t.bodyClass,cssPath:t.cssPath,cssData:t.cssData,beforeGetHtml:function(e){return e=t.beforeGetHtml(e),e=_removeBookmarkTag(_removeTempTag(e)),_formatHtml(e,t.filterMode?t.htmlTags:null,t.urlType,t.wellFormatMode,t.indentChar)},beforeSetHtml:function(e){return e=_formatHtml(e,t.filterMode?t.htmlTags:null,"",!1),t.beforeSetHtml(e)},afterSetHtml:function(){t.edit=d=this,t.afterSetHtml()},afterCreate:function(){if(t.edit=d=this,t.cmd=d.cmd,t._docMousedownFn=function(e){t.menu&&t.hideMenu()},K(d.doc,document).mousedown(t._docMousedownFn),_bindContextmenuEvent.call(t),_bindNewlineEvent.call(t),_bindTabEvent.call(t),_bindFocusEvent.call(t),d.afterChange((function(e){d.designMode&&(t.updateState(),t.addBookmark(),t.options.afterChange&&t.options.afterChange.call(t))})),d.textarea.keyup((function(e){e.ctrlKey||e.altKey||!_INPUT_KEY_MAP[e.which]||t.options.afterChange&&t.options.afterChange.call(t)})),t.readonlyMode&&t.readonly(),t.isCreated=!0,""===t.initContent&&(t.initContent=t.html()),t._undoStack.length>0){var e=t._undoStack.pop();e.start&&(t.html(e.html),d.cmd.range.moveToBookmark(e),t.select())}t.afterCreate(),t.options.afterCreate&&t.options.afterCreate.call(t)}});function h(){0!==s.height()?t.resize(n,i,!1):setTimeout(h,100)}return s.removeClass("statusbar").addClass("ke-statusbar").append('<span class="ke-inline-block ke-statusbar-center-icon"></span>').append('<span class="ke-inline-block ke-statusbar-right-icon"></span>'),t._fullscreenResizeHandler&&(K(window).unbind("resize",t._fullscreenResizeHandler),t._fullscreenResizeHandler=null),h(),e?(t._fullscreenResizeHandler=function(e){t.isCreated&&t.resize(_docElement().clientWidth,_docElement().clientHeight,!1)},K(window).bind("resize",t._fullscreenResizeHandler),c.select("fullscreen"),s.first().css("visibility","hidden"),s.last().css("visibility","hidden")):(_GECKO&&K(window).bind("scroll",(function(e){t._scrollPos=_getScrollPos()})),t.resizeType>0?_drag({moveEl:r,clickEl:s,moveFn:function(e,n,i,r,o,a){r+=a,t.resize(null,r)}}):s.first().css("visibility","hidden"),2===t.resizeType?_drag({moveEl:r,clickEl:s.last(),moveFn:function(e,n,i,r,o,a){i+=o,r+=a,t.resize(i,r)}}):s.last().css("visibility","hidden")),t},remove:function(){var t=this;return t.isCreated?(t.beforeRemove(),t.srcElement.data("kindeditor",""),t.menu&&t.hideMenu(),_each(t.dialogs,(function(){t.hideDialog()})),K(document).unbind("mousedown",t._docMousedownFn),t.toolbar.remove(),t.edit.remove(),t.statusbar.last().unbind(),t.statusbar.unbind(),t.container.remove(),t.container=t.toolbar=t.edit=t.menu=null,t.dialogs=[],t.isCreated=!1,t):t},resize:function(t,e,n){var i=this;return n=_undef(n,!0),t&&(/%/.test(t)||(t=_removeUnit(t),t=t<i.minWidth?i.minWidth:t),i.container.css("width",_addUnit(t)),n&&(i.width=_addUnit(t))),e&&(e=_removeUnit(e),editHeight=_removeUnit(e)-i.toolbar.div.height()-i.statusbar.height(),editHeight=editHeight<i.minHeight?i.minHeight:editHeight,i.edit.setHeight(editHeight),n&&(i.height=_addUnit(e))),i},select:function(){return this.isCreated&&this.cmd.select(),this},html:function(t){var e=this;return t===undefined?e.isCreated?e.edit.html():_elementVal(e.srcElement):(e.isCreated?e.edit.html(t):_elementVal(e.srcElement,t),e.isCreated&&e.cmd.selection(),e)},fullHtml:function(){return this.isCreated?this.edit.html(undefined,!0):""},text:function(t){var e=this;return t===undefined?_trim(e.html().replace(/<(?!img|embed).*?>/gi,"").replace(/ /gi," ")):e.html(_escape(t))},isEmpty:function(){return""===_trim(this.text().replace(/\r\n|\n|\r/,""))},isDirty:function(){return _trim(this.initContent.replace(/\r\n|\n|\r|t/g,""))!==_trim(this.html().replace(/\r\n|\n|\r|t/g,""))},selectedHtml:function(){var t=this.isCreated?this.cmd.range.html():"";return t=_removeBookmarkTag(_removeTempTag(t)),t},count:function(t){var e=this;return t=(t||"html").toLowerCase(),"html"===t?e.html().length:"text"===t?e.text().replace(/<(?:img|embed).*?>/gi,"K").replace(/\r\n|\n|\r/g,"").length:0},exec:function(t){t=t.toLowerCase();var e=this,n=e.cmd,i=_inArray(t,"selectall,copy,paste,print".split(","))<0;return i&&e.addBookmark(!1),n[t].apply(n,_toArray(arguments,1)),i&&(e.updateState(),e.addBookmark(!1),e.options.afterChange&&e.options.afterChange.call(e)),e},insertHtml:function(t,e){return this.isCreated?(t=this.beforeSetHtml(t),this.exec("inserthtml",t,e),this):this},appendHtml:function(t){if(this.html(this.html()+t),this.isCreated){var e=this.cmd;e.range.selectNodeContents(e.doc.body).collapse(!1),e.select()}return this},sync:function(){return _elementVal(this.srcElement,this.html()),this},focus:function(){return this.isCreated?this.edit.focus():this.srcElement[0].focus(),this},blur:function(){return this.isCreated?this.edit.blur():this.srcElement[0].blur(),this},addBookmark:function(t){t=_undef(t,!0);var e,n=this,i=n.edit,r=i.doc.body,o=_removeTempTag(r.innerHTML);if(t&&n._undoStack.length>0){var a=n._undoStack[n._undoStack.length-1];if(Math.abs(o.length-_removeBookmarkTag(a.html).length)<n.minChangeSize)return n}if(i.designMode&&!n._firstAddBookmark){var s=n.cmd.range;e=s.createBookmark(!0),e.html=_removeTempTag(r.innerHTML),s.moveToBookmark(e)}else e={html:o};return n._firstAddBookmark=!1,_addBookmarkToStack(n._undoStack,e),n},undo:function(){return _undoToRedo.call(this,this._undoStack,this._redoStack)},redo:function(){return _undoToRedo.call(this,this._redoStack,this._undoStack)},fullscreen:function(t){return this.fullscreenMode=t===undefined?!this.fullscreenMode:t,this.addBookmark(!1),this.remove().create()},readonly:function(t){t=_undef(t,!0);var e=this,n=e.edit,i=n.doc;e.designMode?e.toolbar.disableAll(t,[]):_each(e.noDisableItems,(function(){e.toolbar[t?"disable":"enable"](this)})),_IE?i.body.contentEditable=!t:i.designMode=t?"off":"on",n.textarea[0].disabled=t},createMenu:function(t){var e=this,n=t.name,i=e.toolbar.get(n),r=i.pos();return t.x=r.x,t.y=r.y+i.height(),t.z=e.options.zIndex,t.shadowMode=_undef(t.shadowMode,e.shadowMode),t.selectedColor!==undefined?(t.cls="ke-colorpicker-"+e.themeType,t.noColor=e.lang("noColor"),e.menu=_colorpicker(t)):(t.cls="ke-menu-"+e.themeType,t.centerLineMode=!1,e.menu=_menu(t)),e.menu},hideMenu:function(){return this.menu.remove(),this.menu=null,this},hideContextmenu:function(){return this.contextmenu.remove(),this.contextmenu=null,this},createDialog:function(t){var e=this;t.name;if(t.z=e.options.zIndex,t.shadowMode=_undef(t.shadowMode,e.shadowMode),t.closeBtn=_undef(t.closeBtn,{name:e.lang("close"),click:function(t){e.hideDialog(),_IE&&e.cmd&&e.cmd.select()}}),t.noBtn=_undef(t.noBtn,{name:e.lang(t.yesBtn?"no":"close"),click:function(t){e.hideDialog(),_IE&&e.cmd&&e.cmd.select()}}),"page"!=e.dialogAlignType&&(t.alignEl=e.container),t.cls="ke-dialog-"+e.themeType,e.dialogs.length>0){var n=e.dialogs[0],i=e.dialogs[e.dialogs.length-1];n.setMaskIndex(i.z+2),t.z=i.z+3,t.showMask=!1}var r=_dialog(t);return e.dialogs.push(r),r},hideDialog:function(){var t=this;if(t.dialogs.length>0&&t.dialogs.pop().remove(),t.dialogs.length>0){var e=t.dialogs[0],n=t.dialogs[t.dialogs.length-1];e.setMaskIndex(n.z-1)}return t},errorDialog:function(t){var e=this,n=e.createDialog({width:750,title:e.lang("uploadError"),body:'<div style="padding:10px 20px;"><iframe frameborder="0" style="width:708px;height:400px;"></iframe></div>'}),i=K("iframe",n.div),r=K.iframeDoc(i);return r.open(),r.write(t),r.close(),K(r.body).css("background-color","#FFF"),i[0].contentWindow.focus(),e}},_instances=[],K.remove=function(t){_eachEditor(t,(function(t){this.remove(),_instances.splice(t,1)}))},K.sync=function(t){_eachEditor(t,(function(){this.sync()}))},K.html=function(t,e){_eachEditor(t,(function(){this.html(e)}))},K.insertHtml=function(t,e){_eachEditor(t,(function(){this.insertHtml(e)}))},K.appendHtml=function(t,e){_eachEditor(t,(function(){this.appendHtml(e)}))},_IE&&_V<7&&_nativeCommand(document,"BackgroundImageCache",!0),K.EditorClass=KEditor,K.editor=_editor,K.create=_create,K.instances=_instances,K.plugin=_plugin,K.lang=_lang,_plugin("core",(function(t){var e=this,n={undo:"Z",redo:"Y",bold:"B",italic:"I",underline:"U",print:"P",selectall:"A"};if(e.afterSetHtml((function(){e.options.afterChange&&e.options.afterChange.call(e)})),e.afterCreate((function(){if("form"==e.syncType){var n=t(e.srcElement),i=!1;while(n=n.parent())if("form"==n.name){i=!0;break}if(i){n.bind("submit",(function(n){e.sync(),t(window).bind("unload",(function(){e.edit.textarea.remove()}))}));var r=t('[type="reset"]',n);r.click((function(){e.html(e.initContent),e.cmd.selection()})),e.beforeRemove((function(){n.unbind(),r.unbind()}))}}})),e.clickToolbar("source",(function(){e.edit.designMode?(e.toolbar.disableAll(!0),e.edit.design(!1),e.toolbar.select("source")):(e.toolbar.disableAll(!1),e.edit.design(!0),e.toolbar.unselect("source"),_GECKO?setTimeout((function(){e.cmd.selection()}),0):e.cmd.selection()),e.designMode=e.edit.designMode})),e.afterCreate((function(){e.designMode||e.toolbar.disableAll(!0).select("source")})),e.clickToolbar("fullscreen",(function(){e.fullscreen()})),e.fullscreenShortcut){var i=!1;e.afterCreate((function(){if(t(e.edit.doc,e.edit.textarea).keyup((function(t){27==t.which&&setTimeout((function(){e.fullscreen()}),0)})),i){if(_IE&&!e.designMode)return;e.focus()}i||(i=!0)}))}_each("undo,redo".split(","),(function(t,i){n[i]&&e.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){e.clickToolbar(i)}))})),e.clickToolbar(i,(function(){e[i]()}))})),e.clickToolbar("formatblock",(function(){var t=e.lang("formatblock.formatBlock"),n={h1:28,h2:24,h3:18,H4:14,p:12},i=e.cmd.val("formatblock"),r=e.createMenu({name:"formatblock",width:"en"==e.langType?200:150});_each(t,(function(t,o){var a="font-size:"+n[t]+"px;";"h"===t.charAt(0)&&(a+="font-weight:bold;"),r.addItem({title:'<span style="'+a+'" unselectable="on">'+o+"</span>",height:n[t]+12,checked:i===t||i===o,click:function(){e.select().exec("formatblock","<"+t+">").hideMenu()}})}))})),e.clickToolbar("fontname",(function(){var t=e.cmd.val("fontname"),n=e.createMenu({name:"fontname",width:150});_each(e.lang("fontname.fontName"),(function(i,r){n.addItem({title:'<span style="font-family: '+i+';" unselectable="on">'+r+"</span>",checked:t===i.toLowerCase()||t===r.toLowerCase(),click:function(){e.exec("fontname",i).hideMenu()}})}))})),e.clickToolbar("fontsize",(function(){var t=e.cmd.val("fontsize"),n=e.createMenu({name:"fontsize",width:150});_each(e.fontSizeTable,(function(i,r){n.addItem({title:'<span style="font-size:'+r+';" unselectable="on">'+r+"</span>",height:_removeUnit(r)+12,checked:t===r,click:function(){e.exec("fontsize",r).hideMenu()}})}))})),_each("forecolor,hilitecolor".split(","),(function(t,n){e.clickToolbar(n,(function(){e.createMenu({name:n,selectedColor:e.cmd.val(n)||"default",colors:e.colorTable,click:function(t){e.exec(n,t).hideMenu()}})}))})),_each("cut,copy,paste".split(","),(function(t,n){e.clickToolbar(n,(function(){e.focus();try{e.exec(n,null)}catch(t){alert(e.lang(n+"Error"))}}))})),e.clickToolbar("about",(function(){var t='<div style="margin:20px;"><div>KindEditor '+_VERSION+'</div><div>Copyright © <a href="http://www.kindsoft.net/" target="_blank">kindsoft.net</a> All rights reserved.</div></div>';e.createDialog({name:"about",width:350,title:e.lang("about"),body:t})})),e.plugin.getSelectedLink=function(){return e.cmd.commonAncestor("a")},e.plugin.getSelectedImage=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return!/^ke-\w+$/i.test(t[0].className)}))},e.plugin.getSelectedFlash=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-flash"==t[0].className}))},e.plugin.getSelectedMedia=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-media"==t[0].className||"ke-rm"==t[0].className}))},e.plugin.getSelectedAnchor=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-anchor"==t[0].className}))},_each("link,image,flash,media,anchor".split(","),(function(t,n){var i=n.charAt(0).toUpperCase()+n.substr(1);_each("edit,delete".split(","),(function(t,r){e.addContextmenu({title:e.lang(r+i),click:function(){e.loadPlugin(n,(function(){e.plugin[n][r](),e.hideMenu()}))},cond:e.plugin["getSelected"+i],width:150,iconClass:"edit"==r?"ke-icon-"+n:undefined})})),e.addContextmenu({title:"-"})})),e.plugin.getSelectedTable=function(){return e.cmd.commonAncestor("table")},e.plugin.getSelectedRow=function(){return e.cmd.commonAncestor("tr")},e.plugin.getSelectedCell=function(){return e.cmd.commonAncestor("td")},_each("prop,cellprop,colinsertleft,colinsertright,rowinsertabove,rowinsertbelow,rowmerge,colmerge,rowsplit,colsplit,coldelete,rowdelete,insert,delete".split(","),(function(t,n){var i=_inArray(n,["prop","delete"])<0?e.plugin.getSelectedCell:e.plugin.getSelectedTable;e.addContextmenu({title:e.lang("table"+n),click:function(){e.loadPlugin("table",(function(){e.plugin.table[n](),e.hideMenu()}))},cond:i,width:170,iconClass:"ke-icon-table"+n})})),e.addContextmenu({title:"-"}),_each("selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript,hr,print,bold,italic,underline,strikethrough,removeformat,unlink".split(","),(function(t,i){n[i]&&e.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){e.cmd.selection(),e.clickToolbar(i)}))})),e.clickToolbar(i,(function(){e.focus().exec(i,null)}))})),e.afterCreate((function(){var n,i,r,o=e.edit.doc,a="__kindeditor_paste__",s=!1;function l(){n.range.moveToBookmark(i),n.select(),_WEBKIT&&(t("div."+a,r).each((function(){t(this).after("<br />").remove(!0)})),t("span.Apple-style-span",r).remove(!0),t("span.Apple-tab-span",r).remove(!0),t("span[style]",r).each((function(){"nowrap"==t(this).css("white-space")&&t(this).remove(!0)})),t("meta",r).remove());var o=r[0].innerHTML;r.remove(),""!==o&&(_WEBKIT&&(o=o.replace(/(<br>)\1/gi,"$1")),2===e.pasteType&&(o=o.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),/schemas-microsoft-com|worddocument|mso-\w+/i.test(o)?o=_clearMsWord(o,e.filterMode?e.htmlTags:t.options.htmlTags):(o=_formatHtml(o,e.filterMode?e.htmlTags:null),o=e.beforeSetHtml(o))),1===e.pasteType&&(o=o.replace(/ /gi," "),o=o.replace(/\n\s*\n/g,"\n"),o=o.replace(/<br[^>]*>/gi,"\n"),o=o.replace(/<\/p><p[^>]*>/gi,"\n"),o=o.replace(/<[^>]+>/g,""),o=o.replace(/ {2}/g," "),"p"==e.newlineTag?/\n/.test(o)&&(o=o.replace(/^/,"<p>").replace(/$/,"<br /></p>").replace(/\n/g,"<br /></p><p>")):o=o.replace(/\n/g,"<br />$&")),e.insertHtml(o,!0))}t(o.body).bind("paste",(function(c){if(0!==e.pasteType){if(!s){if(s=!0,t("div."+a,o).remove(),n=e.cmd.selection(),i=n.range.createBookmark(),r=t('<div class="'+a+'"></div>',o).css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",left:"-1981px",top:t(i.start).pos().y+"px","white-space":"nowrap"}),t(o.body).append(r),_IE){var u=n.range.get(!0);u.moveToElementText(r[0]),u.select(),u.execCommand("paste"),c.preventDefault()}else n.range.selectNodeContents(r[0]),n.select(),r[0].tabIndex=-1,r[0].focus();setTimeout((function(){l(),s=!1}),0)}}else c.stop()}))})),e.beforeGetHtml((function(t){return _IE&&_V<=8&&(t=t.replace(/<div\s+[^>]*data-ke-input-tag="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e){return unescape(e)})),t=t.replace(/(<input)((?:\s+[^>]*)?>)/gi,(function(t,e,n){return/\s+type="[^"]+"/i.test(t)?t:e+' type="text"'+n}))),t.replace(/(<(?:noscript|noscript\s[^>]*)>)([\s\S]*?)(<\/noscript>)/gi,(function(t,e,n,i){return e+_unescape(n).replace(/\s+/g," ")+i})).replace(/<img[^>]*class="?ke-(flash|rm|media)"?[^>]*>/gi,(function(t){var e=_getAttrList(t),n=_getCssList(e.style||""),i=_mediaAttrs(e["data-ke-tag"]),r=_undef(n.width,""),o=_undef(n.height,"");return/px/i.test(r)&&(r=_removeUnit(r)),/px/i.test(o)&&(o=_removeUnit(o)),i.width=_undef(e.width,r),i.height=_undef(e.height,o),_mediaEmbed(i)})).replace(/<img[^>]*class="?ke-anchor"?[^>]*>/gi,(function(t){var e=_getAttrList(t);return'<a name="'+unescape(e["data-ke-name"])+'"></a>'})).replace(/<div\s+[^>]*data-ke-script-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e,n){return"<script"+unescape(e)+">"+unescape(n)+"<\/script>"})).replace(/<div\s+[^>]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e,n){return"<noscript"+unescape(e)+">"+unescape(n)+"</noscript>"})).replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/gi,(function(t,e,n,i){return t=t.replace(/(\s+(?:href|src)=")[^"]*(")/i,(function(t,e,i){return e+_unescape(n)+i})),t=t.replace(/\s+data-ke-src="[^"]*"/i,""),t})).replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/gi,(function(t,e,n){return e+n}))})),e.beforeSetHtml((function(t){return _IE&&_V<=8&&(t=t.replace(/<input[^>]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/gi,(function(t){var e=_getAttrList(t),n=_getCssList(e.style||"");return"none"==n.display?'<div class="ke-display-none" data-ke-input-tag="'+escape(t)+'"></div>':t}))),t.replace(/<embed[^>]*type="([^"]+)"[^>]*>(?:<\/embed>)?/gi,(function(t){var n=_getAttrList(t);return n.src=_undef(n.src,""),n.width=_undef(n.width,0),n.height=_undef(n.height,0),_mediaImg(e.themesPath+"common/blank.gif",n)})).replace(/<a[^>]*name="([^"]+)"[^>]*>(?:<\/a>)?/gi,(function(t){var n=_getAttrList(t);return n.href!==undefined?t:'<img class="ke-anchor" src="'+e.themesPath+'common/anchor.gif" data-ke-name="'+escape(n.name)+'" />'})).replace(/<script([^>]*)>([\s\S]*?)<\/script>/gi,(function(t,e,n){return'<div class="ke-script" data-ke-script-attr="'+escape(e)+'">'+escape(n)+"</div>"})).replace(/<noscript([^>]*)>([\s\S]*?)<\/noscript>/gi,(function(t,e,n){return'<div class="ke-noscript" data-ke-noscript-attr="'+escape(e)+'">'+escape(n)+"</div>"})).replace(/(<[^>]*)(href|src)="([^"]*)"([^>]*>)/gi,(function(t,e,n,i,r){return t.match(/\sdata-ke-src="[^"]*"/i)||(t=e+n+'="'+i+'" data-ke-src="'+_escape(i)+'"'+r),t})).replace(/(<[^>]+\s)(on\w+="[^"]*"[^>]*>)/gi,(function(t,e,n){return e+"data-ke-"+n})).replace(/<table[^>]*\s+border="0"[^>]*>/gi,(function(t){return t.indexOf("ke-zeroborder")>=0?t:_addClassToTag(t,"ke-zeroborder")}))}))}))}function _isArray(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function _isFunction(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)}function _inArray(t,e){for(var n=0,i=e.length;n<i;n++)if(t===e[n])return n;return-1}function _each(t,e){if(_isArray(t)){for(var n=0,i=t.length;n<i;n++)if(!1===e.call(t[n],n,t[n]))break}else for(var r in t)if(t.hasOwnProperty(r)&&!1===e.call(t[r],r,t[r]))break}function _trim(t){return t.replace(/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"")}function _inString(t,e,n){return n=n===undefined?",":n,(n+e+n).indexOf(n+t+n)>=0}function _addUnit(t,e){return e=e||"px",t&&/^-?\d+(?:\.\d+)?$/.test(t)?t+e:t}function _removeUnit(t){var e;return t&&(e=/(\d+)/.exec(t))?parseInt(e[1],10):0}function _escape(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function _unescape(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}function _toCamel(t){var e=t.split("-");return t="",_each(e,(function(e,n){t+=e>0?n.charAt(0).toUpperCase()+n.substr(1):n})),t}function _toHex(t){function e(t){var e=parseInt(t,10).toString(16).toUpperCase();return e.length>1?e:"0"+e}return t.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/gi,(function(t,n,i,r){return"#"+e(n)+e(i)+e(r)}))}function _toMap(t,e){e=e===undefined?",":e;var n,i={},r=_isArray(t)?t:t.split(e);return _each(r,(function(t,e){if(n=/^(\d+)\.\.(\d+)$/.exec(e))for(var r=parseInt(n[1],10);r<=parseInt(n[2],10);r++)i[r.toString()]=!0;else i[e]=!0})),i}function _toArray(t,e){return Array.prototype.slice.call(t,e||0)}function _undef(t,e){return t===undefined?e:t}function _invalidUrl(t){return!t||/[<>"]/.test(t)}function _addParam(t,e){return t.indexOf("?")>=0?t+"&"+e:t+"?"+e}function _extend(t,e,n){var i;if(n||(n=e,e=null),e){var r=function(){};r.prototype=e.prototype,i=new r,_each(n,(function(t,e){i[t]=e}))}else i=n;i.constructor=t,t.prototype=i,t.parent=e?e.prototype:null}function _json(text){var match;(match=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(text))&&(text=match[0]);var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+text+")");throw"JSON parse error"}function _getBasePath(){for(var t,e=document.getElementsByTagName("script"),n=0,i=e.length;n<i;n++)if(t=e[n].src||"",/kindeditor[\w\-\.]*\.js/.test(t))return t.substring(0,t.lastIndexOf("/")+1);return""}function _bindEvent(t,e,n){t.addEventListener?t.addEventListener(e,n,_useCapture):t.attachEvent&&t.attachEvent("on"+e,n)}function _unbindEvent(t,e,n){t.removeEventListener?t.removeEventListener(e,n,_useCapture):t.detachEvent&&t.detachEvent("on"+e,n)}function KEvent(t,e){this.init(t,e)}function _getId(t){return t[_eventExpendo]||null}function _setId(t){return t[_eventExpendo]=++_eventId,_eventId}function _removeId(t){try{delete t[_eventExpendo]}catch(e){t.removeAttribute&&t.removeAttribute(_eventExpendo)}}function _bind(t,e,n){if(e.indexOf(",")>=0)_each(e.split(","),(function(){_bind(t,this,n)}));else{var i=_getId(t);i||(i=_setId(t)),_eventData[i]===undefined&&(_eventData[i]={});var r=_eventData[i][e];r&&r.length>0?_unbindEvent(t,e,r[0]):(_eventData[i][e]=[],_eventData[i].el=t),r=_eventData[i][e],0===r.length&&(r[0]=function(e){var n=e?new KEvent(t,e):undefined;_each(r,(function(e,i){e>0&&i&&i.call(t,n)}))}),_inArray(n,r)<0&&r.push(n),_bindEvent(t,e,r[0])}}function _unbind(t,e,n){if(e&&e.indexOf(",")>=0)_each(e.split(","),(function(){_unbind(t,this,n)}));else{var i=_getId(t);if(i)if(e!==undefined){if(_eventData[i]){var r=_eventData[i][e];if(r&&r.length>0){n===undefined?(_unbindEvent(t,e,r[0]),delete _eventData[i][e]):(_each(r,(function(t,e){t>0&&e===n&&r.splice(t,1)})),1==r.length&&(_unbindEvent(t,e,r[0]),delete _eventData[i][e]));var o=0;_each(_eventData[i],(function(){o++})),o<2&&(delete _eventData[i],_removeId(t))}}}else i in _eventData&&(_each(_eventData[i],(function(e,n){"el"!=e&&n.length>0&&_unbindEvent(t,e,n[0])})),delete _eventData[i],_removeId(t))}}function _fire(t,e){if(e.indexOf(",")>=0)_each(e.split(","),(function(){_fire(t,this)}));else{var n=_getId(t);if(n){var i=_eventData[n][e];_eventData[n]&&i&&i.length>0&&i[0]()}}}function _ctrl(t,e,n){e=/^\d{2,}$/.test(e)?e:e.toUpperCase().charCodeAt(0),_bind(t,"keydown",(function(i){!i.ctrlKey||i.which!=e||i.shiftKey||i.altKey||(n.call(t),i.stop())}))}function _ready(t){if(_readyFinished)t(KindEditor);else{var e=!1;if(document.addEventListener)_bind(document,"DOMContentLoaded",i);else if(document.attachEvent){_bind(document,"readystatechange",o);var n=!1;try{n=null==window.frameElement}catch(a){}document.documentElement.doScroll&&n&&r()}_bind(window,"load",i)}function i(){e||(e=!0,t(KindEditor),_readyFinished=!0)}function r(){if(!e){try{document.documentElement.doScroll("left")}catch(a){return void setTimeout(r,100)}i()}}function o(){"complete"===document.readyState&&i()}}function _getCssList(t){var e,n={},i=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g;while(e=i.exec(t)){var r=_trim(e[1].toLowerCase()),o=_trim(_toHex(e[2]));n[r]=o}return n}function _getAttrList(t){var e,n={},i=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g;while(e=i.exec(t)){var r=(e[1]||e[2]||e[4]||e[6]).toLowerCase(),o=(e[2]?e[3]:e[4]?e[5]:e[7])||"";n[r]=o}return n}function _addClassToTag(t,e){return t=/\s+class\s*=/.test(t)?t.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,(function(t,n,i,r){return(" "+i+" ").indexOf(" "+e+" ")<0?""===i?n+e+r:n+i+" "+e+r:t})):t.substr(0,t.length-1)+' class="'+e+'">',t}function _formatCss(t){var e="";return _each(_getCssList(t),(function(t,n){e+=t+":"+n+";"})),e}function _formatUrl(t,e,n,i){if(e=_undef(e,"").toLowerCase(),"data:"!=t.substr(0,5)&&(t=t.replace(/([^:])\/\//g,"$1/")),_inArray(e,["absolute","relative","domain"])<0)return t;if(n=n||location.protocol+"//"+location.host,i===undefined){var r=location.pathname.match(/^(\/.*)\//);i=r?r[1]:""}var o;if(o=/^(\w+:\/\/[^\/]*)/.exec(t)){if(o[1]!==n)return t}else if(/^\w+:/.test(t))return t;function a(t){for(var e=t.split("/"),n=[],i=0,r=e.length;i<r;i++){var o=e[i];".."==o?n.length>0&&n.pop():""!==o&&"."!=o&&n.push(o)}return"/"+n.join("/")}function s(e,n){if(t.substr(0,e.length)===e){for(var r=[],a=0;a<n;a++)r.push("..");var l=".";return r.length>0&&(l+="/"+r.join("/")),"/"==i&&(l+="/"),l+t.substr(e.length)}if(o=/^(.*)\//.exec(e))return s(o[1],++n)}return/^\//.test(t)?t=n+a(t.substr(1)):/^\w+:\/\//.test(t)||(t=n+a(i+"/"+t)),"relative"===e?t=s(n+i,0).substr(2):"absolute"===e&&t.substr(0,n.length)===n&&(t=t.substr(n.length)),t}function _formatHtml(t,e,n,i,r){null==t&&(t=""),n=n||"",i=_undef(i,!1),r=_undef(r,"\t");var o="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,(function(t,e,n,i){return e+n.replace(/<(?:br|br\s[^>]*)>/gi,"\n")+i})),t=t.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/gi,"</p>"),t=t.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/gi,"$1<br />$2"),t=t.replace(/\u200B/g,""),t=t.replace(/\u00A9/g,"©"),t=t.replace(/\u00AE/g,"®"),t=t.replace(/\u2003/g," "),t=t.replace(/\u3000/g," "),t=t.replace(/<[^>]+/g,(function(t){return t.replace(/\s+/g," ")}));var a={};e&&(_each(e,(function(t,e){for(var n=t.split(","),i=0,r=n.length;i<r;i++)a[n[i]]=_toMap(e)})),a.script||(t=t.replace(/(<(?:script|script\s[^>]*)>)([\s\S]*?)(<\/script>)/gi,"")),a.style||(t=t.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/gi,"")));var s=/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g,l=[];return t=t.replace(s,(function(t,s,c,u,d,h,p){var f=t,m=s||"",g=c||"",v=u.toLowerCase(),b=d||"",_=h?" "+h:"",y=p||"";if(e&&!a[v])return"";if(""===_&&_SINGLE_TAG_MAP[v]&&(_=" /"),_INLINE_TAG_MAP[v]&&(m&&(m=" "),y&&(y=" ")),_PRE_TAG_MAP[v]&&(g?y="\n":m="\n"),i&&"br"==v&&(y="\n"),_BLOCK_TAG_MAP[v]&&!_PRE_TAG_MAP[v])if(i){g&&l.length>0&&l[l.length-1]===v?l.pop():l.push(v),m="\n",y="\n";for(var w=0,x=g?l.length:l.length-1;w<x;w++)m+=r,g||(y+=r);_?l.pop():g||(y+=r)}else m=y="";if(""!==b){var k=_getAttrList(f);if("font"===v){var S={},D="";_each(k,(function(t,e){"color"===t&&(S.color=e,delete k[t]),"size"===t&&(S["font-size"]=o[parseInt(e,10)-1]||"",delete k[t]),"face"===t&&(S["font-family"]=e,delete k[t]),"style"===t&&(D=e)})),D&&!/;$/.test(D)&&(D+=";"),_each(S,(function(t,e){""!==e&&(/\s/.test(e)&&(e="'"+e+"'"),D+=t+":"+e+";")})),k.style=D}_each(k,(function(t,i){if(_FILL_ATTR_MAP[t]&&(k[t]=t),_inArray(t,["src","href"])>=0&&(k[t]=_formatUrl(i,n)),(e&&"style"!==t&&!a[v]["*"]&&!a[v][t]||"body"===v&&"contenteditable"===t||/^kindeditor_\d+$/.test(t))&&delete k[t],"style"===t&&""!==i){var r=_getCssList(i);_each(r,(function(t,n){!e||a[v].style||a[v]["."+t]||delete r[t]}));var o="";_each(r,(function(t,e){o+=t+":"+e+";"})),k.style=o}})),b="",_each(k,(function(t,e){"style"===t&&""===e||(e=e.replace(/"/g,"""),b+=" "+t+'="'+e+'"')}))}return"font"===v&&(v="span"),m+"<"+g+v+b+_+">"+y})),t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,(function(t,e,n,i){return e+n.replace(/\n/g,'<span id="__kindeditor_pre_newline__">\n')+i})),t=t.replace(/\n\s*\n/g,"\n"),t=t.replace(/<span id="__kindeditor_pre_newline__">\n/g,"\n"),_trim(t)}function _clearMsWord(t,e){return t=t.replace(/<meta[\s\S]*?>/gi,"").replace(/<![\s\S]*?>/gi,"").replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<w:[^>]+>[\s\S]*?<\/w:[^>]+>/gi,"").replace(/<o:[^>]+>[\s\S]*?<\/o:[^>]+>/gi,"").replace(/<xml>[\s\S]*?<\/xml>/gi,"").replace(/<(?:table|td)[^>]*>/gi,(function(t){return t.replace(/border-bottom:([#\w\s]+)/gi,"border:$1")})),_formatHtml(t,e)}function _mediaType(t){return/\.(rm|rmvb)(\?|$)/i.test(t)?"audio/x-pn-realaudio-plugin":/\.(swf|flv)(\?|$)/i.test(t)?"application/x-shockwave-flash":"video/x-ms-asf-plugin"}function _mediaClass(t){return/realaudio/i.test(t)?"ke-rm":/flash/i.test(t)?"ke-flash":"ke-media"}function _mediaAttrs(t){return _getAttrList(unescape(t))}function _mediaEmbed(t){var e="<embed ";return _each(t,(function(t,n){e+=t+'="'+n+'" '})),e+="/>",e}function _mediaImg(t,e){var n=e.width,i=e.height,r=e.type||_mediaType(e.src),o=_mediaEmbed(e),a="";/\D/.test(n)?a+="width:"+n+";":n>0&&(a+="width:"+n+"px;"),/\D/.test(i)?a+="height:"+i+";":i>0&&(a+="height:"+i+"px;");var s='<img class="'+_mediaClass(r)+'" src="'+t+'" ';return""!==a&&(s+='style="'+a+'" '),s+='data-ke-tag="'+escape(o)+'" alt="" />',s}function _tmpl(t,e){var n=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return e?n(e):n}function _contains(t,e){if(9==t.nodeType&&9!=e.nodeType)return!0;while(e=e.parentNode)if(e==t)return!0;return!1}function _getAttr(t,e){e=e.toLowerCase();var n=null;if(_GET_SET_ATTRIBUTE||"script"==t.nodeName.toLowerCase())try{n=t.getAttribute(e,2)}catch(o){n=t.getAttribute(e,1)}else{var i=t.ownerDocument.createElement("div");i.appendChild(t.cloneNode(!1));var r=_getAttrList(_unescape(i.innerHTML));e in r&&(n=r[e])}return"style"===e&&null!==n&&(n=_formatCss(n)),n}function _queryAll(t,e){var n=t.split(",");if(n.length>1){var i=[];return _each(n,(function(){_each(_queryAll(this,e),(function(){_inArray(this,i)<0&&i.push(this)}))})),i}function r(t){return"string"!=typeof t?t:t.replace(/([^\w\-])/g,"\\$1")}function o(t){return t.replace(/\\/g,"")}function a(t,e){return"*"===t||t.toLowerCase()===r(e.toLowerCase())}function s(t,e,n){var i=[],r=n.ownerDocument||n,s=r.getElementById(o(t));return s&&a(e,s.nodeName)&&_contains(n,s)&&i.push(s),i}function l(t,e,n){var i,r,s,l,c=n.ownerDocument||n,u=[];if(n.getElementsByClassName)for(i=n.getElementsByClassName(o(t)),r=0,s=i.length;r<s;r++)l=i[r],a(e,l.nodeName)&&u.push(l);else if(c.querySelectorAll)for(i=c.querySelectorAll(("#document"!==n.nodeName?n.nodeName+" ":"")+e+"."+t),r=0,s=i.length;r<s;r++)l=i[r],_contains(n,l)&&u.push(l);else for(i=n.getElementsByTagName(e),t=" "+t+" ",r=0,s=i.length;r<s;r++)if(l=i[r],1==l.nodeType){var d=l.className;d&&(" "+d+" ").indexOf(t)>-1&&u.push(l)}return u}function c(t,e,n){for(var i,r=[],s=n.ownerDocument||n,l=s.getElementsByName(o(t)),c=0,u=l.length;c<u;c++)i=l[c],a(e,i.nodeName)&&_contains(n,i)&&null!==i.getAttribute("name")&&r.push(i);return r}function u(t,e,n,i){for(var o,a=[],s=i.getElementsByTagName(n),l=0,c=s.length;l<c;l++)o=s[l],1==o.nodeType&&(null===e?null!==_getAttr(o,t)&&a.push(o):e===r(_getAttr(o,t))&&a.push(o));return a}function d(t,e){var n,i=[];n=/^((?:\\.|[^.#\s\[<>])+)/.exec(t);var r=n?n[1]:"*";if(n=/#((?:[\w\-]|\\.)+)$/.exec(t))i=s(n[1],r,e);else if(n=/\.((?:[\w\-]|\\.)+)$/.exec(t))i=l(n[1],r,e);else if(n=/\[((?:[\w\-]|\\.)+)\]/.exec(t))i=u(n[1].toLowerCase(),null,r,e);else if(n=/\[((?:[\w\-]|\\.)+)\s*=\s*['"]?((?:\\.|[^'"]+)+)['"]?\]/.exec(t)){var o=n[1].toLowerCase(),a=n[2];i="id"===o?s(a,r,e):"class"===o?l(a,r,e):"name"===o?c(a,r,e):u(o,a,r,e)}else for(var d,h=e.getElementsByTagName(r),p=0,f=h.length;p<f;p++)d=h[p],1==d.nodeType&&i.push(d);return i}e=e||document;var h,p=[],f=/((?:\\.|[^\s>])+|[\s>])/g;while(h=f.exec(t))" "!==h[1]&&p.push(h[1]);var m=[];if(1==p.length)return d(p[0],e);var g,v,b,_,y,w,x,k,S,D,C=!1;for(w=0,lenth=p.length;w<lenth;w++)if(g=p[w],">"!==g){if(w>0){for(v=[],x=0,S=m.length;x<S;x++)for(_=m[x],b=d(g,_),k=0,D=b.length;k<D;k++)y=b[k],C?_===y.parentNode&&v.push(y):v.push(y);m=v}else m=d(g,e);if(0===m.length)return[]}else C=!0;return m}function _query(t,e){var n=_queryAll(t,e);return n.length>0?n[0]:null}function _get(t){return K(t)[0]}function _getDoc(t){return t?t.ownerDocument||t.document||t:document}function _getWin(t){if(!t)return window;var e=_getDoc(t);return e.parentWindow||e.defaultView}function _setHtml(t,e){if(1==t.nodeType){var n=_getDoc(t);try{t.innerHTML='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+e;var i=n.getElementById("__kindeditor_temp_tag__");i.parentNode.removeChild(i)}catch(r){K(t).empty(),K("@"+e,n).each((function(){t.appendChild(this)}))}}}function _hasClass(t,e){return _inString(e,t.className," ")}function _setAttr(t,e,n){_IE&&_V<8&&"class"==e.toLowerCase()&&(e="className"),t.setAttribute(e,""+n)}function _removeAttr(t,e){_IE&&_V<8&&"class"==e.toLowerCase()&&(e="className"),_setAttr(t,e,""),t.removeAttribute(e)}function _getNodeName(t){return t&&t.nodeName?t.nodeName.toLowerCase():""}function _computedCss(t,e){var n=_getWin(t),i=_toCamel(e),r="";if(n.getComputedStyle){var o=n.getComputedStyle(t,null);r=o[i]||o.getPropertyValue(e)||t.style[i]}else t.currentStyle&&(r=t.currentStyle[i]||t.style[i]);return r}function _hasVal(t){return!!_VALUE_TAG_MAP[_getNodeName(t)]}function _docElement(t){return t=t||document,_QUIRKS?t.body:t.documentElement}function _docHeight(t){var e=_docElement(t);return Math.max(e.scrollHeight,e.clientHeight)}function _docWidth(t){var e=_docElement(t);return Math.max(e.scrollWidth,e.clientWidth)}function _getScrollPos(t){var e,n;return t=t||document,_IE||_NEWIE||_OPERA?(e=_docElement(t).scrollLeft,n=_docElement(t).scrollTop):(e=_getWin(t).scrollX,n=_getWin(t).scrollY),{x:e,y:n}}function KNode(t){this.init(t)}function _updateCollapsed(t){return t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset,t}function _copyAndDelete(t,e,n){var i=t.doc,r=[];function o(i,o,a){var s,l=i.nodeValue.length;if(e){var c=i.cloneNode(!0);s=o>0?c.splitText(o):c,a<l&&s.splitText(a-o)}if(n){var u=i;if(o>0&&(u=i.splitText(o),t.setStart(i,o)),a<l){var d=u.splitText(a-o);t.setEnd(d,0)}r.push(u)}return s}function a(){n&&t.up().collapse(!0);for(var e=0,i=r.length;e<i;e++){var o=r[e];o.parentNode&&o.parentNode.removeChild(o)}}var s=t.cloneRange().down(),l=-1,c=-1,u=-1,d=-1,h=t.commonAncestor(),p=i.createDocumentFragment();if(3==h.nodeType){var f=o(h,t.startOffset,t.endOffset);return e&&p.appendChild(f),a(),e?p:t}function m(a,h){var p,f=a.firstChild;while(f){var g,v=new KRange(i).selectNode(f);if(l=v.compareBoundaryPoints(_START_TO_END,t),l>=0&&c<=0&&(c=v.compareBoundaryPoints(_START_TO_START,t)),c>=0&&u<=0&&(u=v.compareBoundaryPoints(_END_TO_END,t)),u>=0&&d<=0&&(d=v.compareBoundaryPoints(_END_TO_START,t)),d>=0)return!1;if(p=f.nextSibling,l>0)if(1==f.nodeType){if(c>=0&&u<=0)e&&h.appendChild(f.cloneNode(!0)),n&&r.push(f);else if(e&&(g=f.cloneNode(!1),h.appendChild(g)),!1===m(f,g))return!1}else if(3==f.nodeType){var b;if(b=f==s.startContainer?o(f,s.startOffset,f.nodeValue.length):f==s.endContainer?o(f,0,s.endOffset):o(f,0,f.nodeValue.length),e)try{h.appendChild(b)}catch(_){}}f=p}}m(h,p),n&&t.up().collapse(!0);for(var g=0,v=r.length;g<v;g++){var b=r[g];b.parentNode&&b.parentNode.removeChild(b)}return e?p:t}function _moveToElementText(t,e){var n=e;while(n){var i=K(n);if("marquee"==i.name||"select"==i.name)return;n=n.parentNode}try{t.moveToElementText(e)}catch(r){}}function _getStartEnd(t,e){var n=t.parentElement().ownerDocument,i=t.duplicate();i.collapse(e);var r=i.parentElement(),o=r.childNodes;if(0===o.length)return{node:r.parentNode,offset:K(r).index()};var a=n,s=0,l=-1,c=t.duplicate();_moveToElementText(c,r);for(var u=0,d=o.length;u<d;u++){var h=o[u];if(l=c.compareEndPoints("StartToStart",i),0===l)return{node:h.parentNode,offset:u};if(1==h.nodeType){var p,f=t.duplicate(),m=K(h),g=h;m.isControl()&&(p=n.createElement("span"),m.after(p),g=p,s+=m.text().replace(/\r\n|\n|\r/g,"").length),_moveToElementText(f,g),c.setEndPoint("StartToEnd",f),l>0?s+=f.text.replace(/\r\n|\n|\r/g,"").length:s=0,p&&K(p).remove()}else 3==h.nodeType&&(c.moveStart("character",h.nodeValue.length),s+=h.nodeValue.length);l<0&&(a=h)}if(l<0&&1==a.nodeType)return{node:r,offset:K(r.lastChild).index()+1};if(l>0)while(a.nextSibling&&1==a.nodeType)a=a.nextSibling;if(c=t.duplicate(),_moveToElementText(c,r),c.setEndPoint("StartToEnd",i),s-=c.text.replace(/\r\n|\n|\r/g,"").length,l>0&&3==a.nodeType){var v=a.previousSibling;while(v&&3==v.nodeType)s-=v.nodeValue.length,v=v.previousSibling}return{node:a,offset:s}}function _getEndRange(t,e){var n=t.ownerDocument||t,i=n.body.createTextRange();if(n==t)return i.collapse(!0),i;if(1==t.nodeType&&t.childNodes.length>0){var r,o,a=t.childNodes;if(0===e?(o=a[0],r=!0):(o=a[e-1],r=!1),!o)return i;if("head"===K(o).name)return 1===e&&(r=!0),2===e&&(r=!1),i.collapse(r),i;if(1==o.nodeType){var s,l=K(o);return l.isControl()&&(s=n.createElement("span"),r?l.before(s):l.after(s),o=s),_moveToElementText(i,o),i.collapse(r),s&&K(s).remove(),i}t=o,e=r?0:o.nodeValue.length}var c=n.createElement("span");return K(t).before(c),_moveToElementText(i,c),i.moveStart("character",e),K(c).remove(),i}function _toRange(t){var e,n;function i(t){"tr"==K(t.node).name&&(t.node=t.node.cells[t.offset],t.offset=0)}if(_IERANGE){if(t.item)return e=_getDoc(t.item(0)),n=new KRange(e),n.selectNode(t.item(0)),n;e=t.parentElement().ownerDocument;var r=_getStartEnd(t,!0),o=_getStartEnd(t,!1);return i(r),i(o),n=new KRange(e),n.setStart(r.node,r.offset),n.setEnd(o.node,o.offset),n}var a=t.startContainer;return e=a.ownerDocument||a,n=new KRange(e),n.setStart(a,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n}function KRange(t){this.init(t)}function _range(t){return t.nodeName?new KRange(t):t.constructor===KRange?t:_toRange(t)}function _nativeCommand(t,e,n){try{t.execCommand(e,!1,n)}catch(i){}}function _nativeCommandValue(t,e){var n="";try{n=t.queryCommandValue(e)}catch(i){}return"string"!==typeof n&&(n=""),n}function _getSel(t){var e=_getWin(t);return _IERANGE?t.selection:e.getSelection()}function _getRng(t){var e,n=_getSel(t);try{e=n.rangeCount>0?n.getRangeAt(0):n.createRange()}catch(i){}return!_IERANGE||e&&(e.item||e.parentElement().ownerDocument===t)?e:null}function _singleKeyMap(t){var e,n,i={};return _each(t,(function(t,r){e=t.split(",");for(var o=0,a=e.length;o<a;o++)n=e[o],i[n]=r})),i}function _hasAttrOrCss(t,e){return _hasAttrOrCssByKey(t,e,"*")||_hasAttrOrCssByKey(t,e)}function _hasAttrOrCssByKey(t,e,n){if(n=n||t.name,1!==t.type)return!1;var i=_singleKeyMap(e);if(!i[n])return!1;for(var r=i[n].split(","),o=0,a=r.length;o<a;o++){var s=r[o];if("*"===s)return!0;var l=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(s),c=l[1]?"css":"attr";s=l[2];var u=l[3]||"";if(""===u&&""!==t[c](s))return!0;if(""!==u&&t[c](s)===u)return!0}return!1}function _removeAttrOrCss(t,e){1==t.type&&(_removeAttrOrCssByKey(t,e,"*"),_removeAttrOrCssByKey(t,e))}function _removeAttrOrCssByKey(t,e,n){if(n=n||t.name,1===t.type){var i=_singleKeyMap(e);if(i[n]){for(var r=i[n].split(","),o=!1,a=0,s=r.length;a<s;a++){var l=r[a];if("*"===l){o=!0;break}var c=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(l);l=c[2],c[1]?(l=_toCamel(l),t[0].style[l]&&(t[0].style[l]="")):t.removeAttr(l)}o&&t.remove(!0)}}}function _getInnerNode(t){var e=t;while(e.first())e=e.first();return e}function _isEmptyNode(t){return 1==t.type&&!t.isSingle()&&""===t.html().replace(/<[^>]+>/g,"")}function _mergeWrapper(t,e){t=t.clone(!0);var n=_getInnerNode(t),i=t,r=!1;while(e){while(i)i.name===e.name&&(_mergeAttrs(i,e.attr(),e.css()),r=!0),i=i.first();r||n.append(e.clone(!1)),r=!1,e=e.first()}return t}function _wrapNode(t,e){if(e=e.clone(!0),3==t.type)return _getInnerNode(e).append(t.clone(!1)),t.replaceWith(e),e;var n,i=t;while((n=t.first())&&1==n.children().length)t=n;n=t.first();var r=t.doc.createDocumentFragment();while(n)r.appendChild(n[0]),n=n.next();return e=_mergeWrapper(i,e),r.firstChild&&_getInnerNode(e).append(r),i.replaceWith(e),e}function _mergeAttrs(t,e,n){_each(e,(function(e,n){"style"!==e&&t.attr(e,n)})),_each(n,(function(e,n){t.css(e,n)}))}function _inPreElement(t){while(t&&"body"!=t.name){if(_PRE_TAG_MAP[t.name]||"div"==t.name&&t.hasClass("ke-script"))return!0;t=t.parent()}return!1}function KCmd(t){this.init(t)}function _cmd(t){if(t.nodeName){var e=_getDoc(t);t=_range(e).selectNodeContents(e.body).collapse(!1)}return new KCmd(t)}function _drag(t){var e=t.moveEl,n=t.moveFn,i=t.clickEl||e,r=t.beforeDrag,o=t.iframeFix===undefined||t.iframeFix,a=[document];o&&K("iframe").each((function(){var t=_formatUrl(this.src||"","absolute");if(!/^https?:\/\//.test(t)){var e;try{e=_iframeDoc(this)}catch(i){}if(e){var n=K(this).pos();K(e).data("pos-x",n.x),K(e).data("pos-y",n.y),a.push(e)}}})),i.mousedown((function(t){if(0===t.button||1===t.button){t.stopPropagation();var o=i.get(),s=_removeUnit(e.css("left")),l=_removeUnit(e.css("top")),c=e.width(),u=e.height(),d=t.pageX,h=t.pageY;r&&r(),K(a).mousemove(p).mouseup(m).bind("selectstart",f),o.setCapture&&o.setCapture()}function p(t){t.preventDefault();var e=K(_getDoc(t.target)),r=_round((e.data("pos-x")||0)+t.pageX-d),o=_round((e.data("pos-y")||0)+t.pageY-h);n.call(i,s,l,c,u,r,o)}function f(t){t.preventDefault()}function m(t){t.preventDefault(),K(a).unbind("mousemove",p).unbind("mouseup",m).unbind("selectstart",f),o.releaseCapture&&o.releaseCapture()}}))}function KWidget(t){this.init(t)}function _widget(t){return new KWidget(t)}function _iframeDoc(t){return t=_get(t),t.contentDocument||t.contentWindow.document}function _getInitHtml(t,e,n,i){var r=[""===_direction?"<html>":'<html dir="'+_direction+'">','<head><meta charset="utf-8" /><title></title>',"<style>","html {margin:0;padding:0;}","body {margin:0;padding:5px;}",'body, td {font:12px/1.5 "sans serif",tahoma,verdana,helvetica;}',"body, p, div {word-wrap: break-word;}","p {margin:5px 0;}","table {border-collapse:collapse;}","img {border:0;}","noscript {display:none;}","table.ke-zeroborder td {border:1px dotted #AAA;}","img.ke-flash {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/flash.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-rm {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/rm.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-media {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/media.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-anchor {","\tborder:1px dashed #666;","\twidth:16px;","\theight:16px;","}",".ke-script, .ke-noscript, .ke-display-none {","\tdisplay:none;","\tfont-size:0;","\twidth:0;","\theight:0;","}",".ke-pagebreak {","\tborder:1px dotted #AAA;","\tfont-size:0;","\theight:2px;","}","</style>"];return _isArray(n)||(n=[n]),_each(n,(function(t,e){e&&r.push('<link href="'+e+'" rel="stylesheet" />')})),i&&r.push("<style>"+i+"</style>"),r.push("</head><body "+(e?'class="'+e+'"':"")+"></body></html>"),r.join("\n")}function _elementVal(t,e){if(t.hasVal()){if(e===undefined){var n=t.val();return n=n.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),n}return t.val(e)}return t.html(e)}function KEdit(t){this.init(t)}function _edit(t){return new KEdit(t)}function _selectToolbar(t,e){var n=this,i=n.get(t);if(i){if(i.hasClass("ke-disabled"))return;e(i)}}function KToolbar(t){this.init(t)}function _toolbar(t){return new KToolbar(t)}function KMenu(t){this.init(t)}function _menu(t){return new KMenu(t)}function KColorPicker(t){this.init(t)}function _colorpicker(t){return new KColorPicker(t)}function KUploadButton(t){this.init(t)}function _uploadbutton(t){return new KUploadButton(t)}function _createButton(t){t=t||{};var e=t.name||"",n=K('<span class="ke-button-common ke-button-outer" title="'+e+'"></span>'),i=K('<input class="ke-button-common ke-button" type="button" value="'+e+'" />');return t.click&&i.click(t.click),n.append(i),n}function KDialog(t){this.init(t)}function _dialog(t){return new KDialog(t)}function _tabs(t){var e=_widget(t),n=e.remove,i=t.afterSelect,r=e.div,o=[];r.addClass("ke-tabs").bind("contextmenu,mousedown,mousemove",(function(t){t.preventDefault()}));var a=K('<ul class="ke-tabs-ul ke-clearfix"></ul>');return r.append(a),e.add=function(t){var e=K('<li class="ke-tabs-li">'+t.title+"</li>");e.data("tab",t),o.push(e),a.append(e)},e.selectedIndex=0,e.select=function(t){e.selectedIndex=t,_each(o,(function(n,i){i.unbind(),n===t?(i.addClass("ke-tabs-li-selected"),K(i.data("tab").panel).show("")):(i.removeClass("ke-tabs-li-selected").removeClass("ke-tabs-li-on").mouseover((function(){K(this).addClass("ke-tabs-li-on")})).mouseout((function(){K(this).removeClass("ke-tabs-li-on")})).click((function(){e.select(n)})),K(i.data("tab").panel).hide())})),i&&i.call(e,t)},e.remove=function(){_each(o,(function(){this.remove()})),a.remove(),n.call(e)},e}function _loadScript(t,e){var n=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),i=document.createElement("script");n.appendChild(i),i.src=t,i.charset="utf-8",i.onload=i.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState||(e&&e(),i.onload=i.onreadystatechange=null,n.removeChild(i))}}function _chopQuery(t){var e=t.indexOf("?");return e>0?t.substr(0,e):t}function _loadStyle(t){for(var e=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),n=document.createElement("link"),i=_chopQuery(_formatUrl(t,"absolute")),r=K('link[rel="stylesheet"]',e),o=0,a=r.length;o<a;o++)if(_chopQuery(_formatUrl(r[o].href,"absolute"))===i)return;e.appendChild(n),n.href=t,n.rel="stylesheet"}function _ajax(t,e,n,i,r){n=n||"GET",r=r||"json";var o=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");if(o.open(n,t,!0),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status&&e){var t=_trim(o.responseText);"json"==r&&(t=_json(t)),e(t)}},"POST"==n){var a=[];_each(i,(function(t,e){a.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}));try{o.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(s){}o.send(a.join("&"))}else o.send(null)}function _plugin(t,e){return t===undefined?_plugins:e?void(_plugins[t]=e):_plugins[t]}function _parseLangKey(t){var e,n="core";return(e=/^(\w+)\.(\w+)$/.exec(t))&&(n=e[1],t=e[2]),{ns:n,key:t}}function _lang(t,e){if(e=e===undefined?K.options.langType:e,"string"===typeof t){if(!_language[e])return"no language";var n=t.length-1;if("."===t.substr(n))return _language[e][t.substr(0,n)];var i=_parseLangKey(t);return _language[e][i.ns][i.key]}_each(t,(function(t,n){var i=_parseLangKey(t);_language[e]||(_language[e]={}),_language[e][i.ns]||(_language[e][i.ns]={}),_language[e][i.ns][i.key]=n}))}function _getImageFromRange(t,e){if(!t.collapsed){t=t.cloneRange().up();var n=t.startContainer,i=t.startOffset;if(_WEBKIT||t.isControl()){var r=K(n.childNodes[i]);if(r&&"img"==r.name)return e(r)?r:void 0}}}function _bindContextmenuEvent(){var t=this,e=t.edit.doc;K(e).contextmenu((function(e){if(t.menu&&t.hideMenu(),t.useContextmenu){if(0!==t._contextmenus.length){var n=0,i=[];_each(t._contextmenus,(function(){"-"!=this.title?this.cond&&this.cond()&&(i.push(this),this.width&&this.width>n&&(n=this.width)):i.push(this)}));while(i.length>0&&"-"==i[0].title)i.shift();while(i.length>0&&"-"==i[i.length-1].title)i.pop();var r=null;if(_each(i,(function(t){"-"==this.title&&"-"==r.title&&delete i[t],r=this})),i.length>0){e.preventDefault();var o=K(t.edit.iframe).pos(),a=_menu({x:o.x+e.clientX,y:o.y+e.clientY,width:n,css:{visibility:"hidden"},shadowMode:t.shadowMode});_each(i,(function(){this.title&&a.addItem(this)}));var s=_docElement(a.doc),l=a.div.height();e.clientY+l>=s.clientHeight-100&&a.pos(a.x,_removeUnit(a.y)-l),a.div.css("visibility","visible"),t.menu=a}}}else e.preventDefault()}))}function _bindNewlineEvent(){var t=this,e=t.edit.doc,n=t.newlineTag;if((!_IE||"br"===n)&&!(_GECKO&&_V<3&&"p"!==n)&&!(_OPERA&&_V<9)){var i=_toMap("h1,h2,h3,h4,h5,h6,pre,li"),r=_toMap("p,h1,h2,h3,h4,h5,h6,pre,li,blockquote");K(e).keydown((function(a){if(!(13!=a.which||a.shiftKey||a.ctrlKey||a.altKey)){t.cmd.selection();var s=o(t.cmd.range);if("marquee"!=s&&"select"!=s)return"br"!==n||i[s]?void(r[s]||_nativeCommand(e,"formatblock","<p>")):(a.preventDefault(),void t.insertHtml("<br />"+(_IE&&_V<9?"":"")))}})),K(e).keyup((function(i){if(!(13!=i.which||i.shiftKey||i.ctrlKey||i.altKey)&&"br"!=n)if(_GECKO){var a=t.cmd.commonAncestor("p"),s=t.cmd.commonAncestor("a");s&&""==s.text()&&(s.remove(!0),t.cmd.range.selectNodeContents(a[0]).collapse(!0),t.cmd.select())}else{t.cmd.selection();var l=o(t.cmd.range);if("marquee"!=l&&"select"!=l){r[l]||_nativeCommand(e,"formatblock","<p>");var c=t.cmd.commonAncestor("div");if(c){var u=K("<p></p>"),d=c[0].firstChild;while(d){var h=d.nextSibling;u.append(d),d=h}c.before(u),c.remove(),t.cmd.range.selectNodeContents(u[0]),t.cmd.select()}}}}))}function o(t){var e=K(t.commonAncestor());while(e){if(1==e.type&&!e.isStyle())break;e=e.parent()}return e.name}}function _bindTabEvent(){var t=this,e=t.edit.doc;K(e).keydown((function(n){if(9==n.which){if(n.preventDefault(),t.afterTab)return void t.afterTab.call(t,n);var i=t.cmd,r=i.range;r.shrink(),r.collapsed&&1==r.startContainer.nodeType&&(r.insertNode(K("@ ",e)[0]),i.select()),t.insertHtml(" ")}}))}function _bindFocusEvent(){var t=this;K(t.edit.textarea[0],t.edit.win).focus((function(e){t.afterFocus&&t.afterFocus.call(t,e)})).blur((function(e){t.afterBlur&&t.afterBlur.call(t,e)}))}function _removeBookmarkTag(t){return _trim(t.replace(/<span [^>]*id="?__kindeditor_bookmark_\w+_\d+__"?[^>]*><\/span>/gi,""))}function _removeTempTag(t){return t.replace(/<div[^>]+class="?__kindeditor_paste__"?[^>]*>[\s\S]*?<\/div>/gi,"")}function _addBookmarkToStack(t,e){if(0!==t.length){var n=t[t.length-1];_removeBookmarkTag(e.html)!==_removeBookmarkTag(n.html)&&t.push(e)}else t.push(e)}function _undoToRedo(t,e){var n,i,r=this,o=r.edit,a=o.doc.body;if(0===t.length)return r;o.designMode?(n=r.cmd.range,i=n.createBookmark(!0),i.html=a.innerHTML):i={html:a.innerHTML},_addBookmarkToStack(e,i);var s=t.pop();return _removeBookmarkTag(i.html)===_removeBookmarkTag(s.html)&&t.length>0&&(s=t.pop()),o.designMode?(o.html(s.html),s.start&&(n.moveToBookmark(s),r.select())):K(a).html(_removeBookmarkTag(s.html)),r}function KEditor(t){var e=this;function n(t,n){KEditor.prototype[t]===undefined&&(e[t]=n),e.options[t]=n}e.options={},_each(t,(function(e,i){n(e,t[e])})),_each(K.options,(function(t,i){e[t]===undefined&&n(t,i)}));var i=K(e.srcElement||"<textarea/>");e.width||(e.width=i[0].style.width||i.width()),e.height||(e.height=i[0].style.height||i.height()),n("width",_undef(e.width,e.minWidth)),n("height",_undef(e.height,e.minHeight)),n("width",_addUnit(e.width)),n("height",_addUnit(e.height)),_MOBILE&&(!_IOS||_V<534)&&(e.designMode=!1),e.srcElement=i,e.initContent="",e.plugin={},e.isCreated=!1,e._handlers={},e._contextmenus=[],e._undoStack=[],e._redoStack=[],e._firstAddBookmark=!0,e.menu=e.contextmenu=null,e.dialogs=[]}function _editor(t){return new KEditor(t)}function _create(t,e){if(e=e||{},e.basePath=_undef(e.basePath,K.basePath),e.themesPath=_undef(e.themesPath,e.basePath+"themes/"),e.langPath=_undef(e.langPath,e.basePath+"lang/"),e.pluginsPath=_undef(e.pluginsPath,e.basePath+"plugins/"),_undef(e.loadStyleMode,K.options.loadStyleMode)){var n=_undef(e.themeType,K.options.themeType);_loadStyle(e.themesPath+"default/default.css"),_loadStyle(e.themesPath+n+"/"+n+".css")}function i(t){return _each(_plugins,(function(e,n){_isFunction(n)&&(n.call(t,KindEditor),t._pluginStatus||(t._pluginStatus={}),t._pluginStatus[e]="inited")})),t.create()}var r=K(t);if(r&&0!==r.length){if(r.length>1)return r.each((function(){_create(this,e)})),_instances[0];e.srcElement=r[0];var o=new KEditor(e);return _instances.push(o),_language[o.langType]?i(o):(_loadScript(o.langPath+o.langType+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){i(o)})),o)}}function _eachEditor(t,e){K(t).each((function(t,n){K.each(_instances,(function(t,i){if(i&&i.srcElement[0]==n)return e.call(i,t),!1}))}))}})(window),KindEditor.lang({source:"HTML代码",preview:"预览",undo:"后退(Ctrl+Z)",redo:"前进(Ctrl+Y)",cut:"剪切(Ctrl+X)",copy:"复制(Ctrl+C)",paste:"粘贴(Ctrl+V)",plainpaste:"粘贴为无格式文本",wordpaste:"从Word粘贴",selectall:"全选(Ctrl+A)",justifyleft:"左对齐",justifycenter:"居中",justifyright:"右对齐",justifyfull:"两端对齐",insertorderedlist:"编号",insertunorderedlist:"项目符号",indent:"增加缩进",outdent:"减少缩进",subscript:"下标",superscript:"上标",formatblock:"段落",fontname:"字体",fontsize:"文字大小",forecolor:"文字颜色",hilitecolor:"文字背景",bold:"粗体(Ctrl+B)",italic:"斜体(Ctrl+I)",underline:"下划线(Ctrl+U)",strikethrough:"删除线",removeformat:"删除格式",image:"图片",uploadImage:"插入图片",multiimage:"批量图片上传",flash:"Flash",media:"视音频",table:"表格",tablecell:"单元格",hr:"插入横线",emoticons:"插入表情",link:"超级链接",unlink:"取消超级链接",fullscreen:"全屏显示",about:"关于",print:"打印(Ctrl+P)",filemanager:"文件空间",code:"插入程序代码",map:"Google地图",baidumap:"百度地图",lineheight:"行距",clearhtml:"清理HTML代码",pagebreak:"插入分页符",quickformat:"一键排版",insertfile:"插入文件",template:"插入模板",anchor:"锚点",yes:"确定",no:"取消",close:"关闭",editImage:"图片属性",deleteImage:"删除图片",editFlash:"Flash属性",deleteFlash:"删除Flash",editMedia:"视音频属性",deleteMedia:"删除视音频",editLink:"超级链接属性",deleteLink:"取消超级链接",editAnchor:"锚点属性",deleteAnchor:"删除锚点",tableprop:"表格属性",tablecellprop:"单元格属性",tableinsert:"插入表格",tabledelete:"删除表格",tablecolinsertleft:"左侧插入列",tablecolinsertright:"右侧插入列",tablerowinsertabove:"上方插入行",tablerowinsertbelow:"下方插入行",tablerowmerge:"向下合并单元格",tablecolmerge:"向右合并单元格",tablerowsplit:"拆分行",tablecolsplit:"拆分列",tablecoldelete:"删除列",tablerowdelete:"删除行",noColor:"无颜色",pleaseSelectFile:"请选择文件。",invalidImg:"请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",invalidMedia:"请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",invalidWidth:"宽度必须为数字。",invalidHeight:"高度必须为数字。",invalidBorder:"边框必须为数字。",invalidUrl:"请输入有效的URL地址。",invalidRows:"行数为必选项,只允许输入大于0的数字。",invalidCols:"列数为必选项,只允许输入大于0的数字。",invalidPadding:"边距必须为数字。",invalidSpacing:"间距必须为数字。",invalidJson:"服务器发生故障。",uploadSuccess:"上传成功。",cutError:"您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。",copyError:"您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。",pasteError:"您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。",ajaxLoading:"加载中,请稍候 ...",uploadLoading:"上传中,请稍候 ...",uploadError:"上传错误","plainpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","wordpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","code.pleaseInput":"请输入程序代码。","link.url":"URL","link.linkType":"打开类型","link.newWindow":"新窗口","link.selfWindow":"当前窗口","flash.url":"URL","flash.width":"宽度","flash.height":"高度","flash.upload":"上传","flash.viewServer":"文件空间","media.url":"URL","media.width":"宽度","media.height":"高度","media.autostart":"自动播放","media.upload":"上传","media.viewServer":"文件空间","image.remoteImage":"网络图片","image.localImage":"本地上传","image.remoteUrl":"图片地址","image.localUrl":"上传文件","image.size":"图片大小","image.width":"宽","image.height":"高","image.resetSize":"重置大小","image.align":"对齐方式","image.defaultAlign":"默认方式","image.leftAlign":"左对齐","image.rightAlign":"右对齐","image.imgTitle":"图片说明","image.upload":"浏览...","image.viewServer":"本地上传","multiimage.uploadDesc":"允许用户同时上传<%=uploadLimit%>张图片,单张图片容量不超过<%=sizeLimit%>","multiimage.startUpload":"开始上传","multiimage.clearAll":"全部清空","multiimage.insertAll":"全部插入","multiimage.queueLimitExceeded":"文件数量超过限制。","multiimage.fileExceedsSizeLimit":"文件大小超过限制。","multiimage.zeroByteFile":"无法上传空文件。","multiimage.invalidFiletype":"文件类型不正确。","multiimage.unknownError":"发生异常,无法上传。","multiimage.pending":"等待上传","multiimage.uploadError":"上传失败","filemanager.emptyFolder":"空文件夹","filemanager.moveup":"移到上一级文件夹","filemanager.viewType":"显示方式:","filemanager.viewImage":"缩略图","filemanager.listImage":"详细信息","filemanager.orderType":"排序方式:","filemanager.fileName":"名称","filemanager.fileSize":"大小","filemanager.fileType":"类型","insertfile.url":"URL","insertfile.title":"文件说明","insertfile.upload":"上传","insertfile.viewServer":"文件空间","table.cells":"单元格数","table.rows":"行数","table.cols":"列数","table.size":"大小","table.width":"宽度","table.height":"高度","table.percent":"%","table.px":"px","table.space":"边距间距","table.padding":"边距","table.spacing":"间距","table.align":"对齐方式","table.textAlign":"水平对齐","table.verticalAlign":"垂直对齐","table.alignDefault":"默认","table.alignLeft":"左对齐","table.alignCenter":"居中","table.alignRight":"右对齐","table.alignTop":"顶部","table.alignMiddle":"中部","table.alignBottom":"底部","table.alignBaseline":"基线","table.border":"边框","table.borderWidth":"边框","table.borderColor":"颜色","table.backgroundColor":"背景颜色","map.address":"地址: ","map.search":"搜索","baidumap.address":"地址: ","baidumap.search":"搜索","baidumap.insertDynamicMap":"插入动态地图","anchor.name":"锚点名称","formatblock.formatBlock":{h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",p:"正 文"},"fontname.fontName":{SimSun:"宋体",NSimSun:"新宋体",FangSong_GB2312:"仿宋_GB2312",KaiTi_GB2312:"楷体_GB2312",SimHei:"黑体","Microsoft YaHei":"微软雅黑",Arial:"Arial","Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"},"lineheight.lineHeight":[{1:"单倍行距"},{1.5:"1.5倍行距"},{2:"2倍行距"},{2.5:"2.5倍行距"},{3:"3倍行距"}],"template.selectTemplate":"可选模板","template.replaceContent":"替换当前内容","template.fileList":{"1.html":"图片和文字","2.html":"表格","3.html":"项目编号"}},"zh-CN"),KindEditor.options.langType="zh-CN",KindEditor.plugin("anchor",(function(t){var e=this,n="anchor",i=e.lang(n+".");e.plugin.anchor={edit:function(){var r=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keName">'+i.name+"</label>",'<input class="ke-input-text" type="text" id="keName" name="name" value="" style="width:100px;" />',"</div>","</div>"].join(""),o=e.createDialog({name:n,width:300,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(t){e.insertHtml('<a name="'+s.val()+'">').hideDialog().focus()}}}),a=o.div,s=t('input[name="name"]',a),l=e.plugin.getSelectedAnchor();l&&s.val(unescape(l.attr("data-ke-name"))),s[0].focus(),s[0].select()},delete:function(){e.plugin.getSelectedAnchor().remove()}},e.clickToolbar(n,e.plugin.anchor.edit)})),KindEditor.plugin("autoheight",(function(t){var e,n=this;n.autoHeightMode&&(n.isCreated?o():n.afterCreate(o));function i(){var t=n.edit,e=t.doc.body;t.iframe[0].scroll="no",e.style.overflowY="hidden"}function r(){var i=n.edit,r=i.doc.body;i.iframe.height(e),n.resize(null,Math.max((t.IE?r.scrollHeight:r.offsetHeight)+76,e))}function o(){e=t.removeUnit(n.height),n.edit.afterChange(r),i(),r()}})),KindEditor.plugin("baidumap",(function(t){var e=this,n="baidumap",i=e.lang(n+"."),r=t.undef(e.mapWidth,558),o=t.undef(e.mapHeight,360);e.clickToolbar(n,(function(){var a,s,l=['<div style="padding:10px 20px;">','<div class="ke-header">','<div class="ke-left">',i.address+' <input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" name="searchBtn" class="ke-button-common ke-button" value="'+i.search+'" />',"</span>","</div>",'<div class="ke-right">','<input type="checkbox" id="keInsertDynamicMap" name="insertDynamicMap" value="1" /> <label for="keInsertDynamicMap">'+i.insertDynamicMap+"</label>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<div class="ke-map" style="width:'+r+"px;height:"+o+'px;"></div>',"</div>"].join(""),c=e.createDialog({name:n,width:r+42,title:e.lang(n),body:l,yesBtn:{name:e.lang("yes"),click:function(t){var n=a.map,i=n.getCenter(),s=i.lng+","+i.lat,l=n.getZoom(),c=[p[0].checked?e.pluginsPath+"baidumap/index.html":"http://api.map.baidu.com/staticimage","?center="+encodeURIComponent(s),"&zoom="+encodeURIComponent(l),"&width="+r,"&height="+o,"&markers="+encodeURIComponent(s),"&markerStyles="+encodeURIComponent("l,A")].join("");p[0].checked?e.insertHtml('<iframe src="'+c+'" frameborder="0" style="width:'+(r+2)+"px;height:"+(o+2)+'px;"></iframe>'):e.exec("insertimage",c),e.hideDialog().focus()}},beforeRemove:function(){h.remove(),s&&s.write(""),f.remove()}}),u=c.div,d=t('[name="address"]',u),h=t('[name="searchBtn"]',u),p=t('[name="insertDynamicMap"]',c.div),f=t('<iframe class="ke-textarea" frameborder="0" src="'+e.pluginsPath+'baidumap/map.html" style="width:'+r+"px;height:"+o+'px;"></iframe>');function m(){a=f[0].contentWindow,s=t.iframeDoc(f)}f.bind("load",(function(){f.unbind("load"),t.IE?m():setTimeout(m,0)})),t(".ke-map",u).replaceWith(f),h.click((function(){a.search(d.val())}))}))})),KindEditor.plugin("map",(function(t){var e=this,n="map",i=e.lang(n+".");e.clickToolbar(n,(function(){var r,o,a=['<div style="padding:10px 20px;">','<div class="ke-dialog-row">',i.address+' <input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" name="searchBtn" class="ke-button-common ke-button" value="'+i.search+'" />',"</span>","</div>",'<div class="ke-map" style="width:558px;height:360px;"></div>',"</div>"].join(""),s=e.createDialog({name:n,width:600,title:e.lang(n),body:a,yesBtn:{name:e.lang("yes"),click:function(t){r.geocoder;var n=r.map,i=n.getCenter().lat()+","+n.getCenter().lng(),o=n.getZoom(),a=n.getMapTypeId(),s="http://maps.googleapis.com/maps/api/staticmap";s+="?center="+encodeURIComponent(i),s+="&zoom="+encodeURIComponent(o),s+="&size=558x360",s+="&maptype="+encodeURIComponent(a),s+="&markers="+encodeURIComponent(i),s+="&language="+e.langType,s+="&sensor=false",e.exec("insertimage",s).hideDialog().focus()}},beforeRemove:function(){u.remove(),o&&o.write(""),d.remove()}}),l=s.div,c=t('[name="address"]',l),u=t('[name="searchBtn"]',l),d=(["<!doctype html><html><head>",'<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />',"<style>","\thtml { height: 100% }","\tbody { height: 100%; margin: 0; padding: 0; background-color: #FFF }","\t#map_canvas { height: 100% }","</style>",'<script src="http://maps.googleapis.com/maps/api/js?sensor=false&language='+e.langType+'"><\/script>',"<script>","var map, geocoder;","function initialize() {","\tvar latlng = new google.maps.LatLng(31.230393, 121.473704);","\tvar options = {","\t\tzoom: 11,","\t\tcenter: latlng,","\t\tdisableDefaultUI: true,","\t\tpanControl: true,","\t\tzoomControl: true,","\t\tmapTypeControl: true,","\t\tscaleControl: true,","\t\tstreetViewControl: false,","\t\toverviewMapControl: true,","\t\tmapTypeId: google.maps.MapTypeId.ROADMAP","\t};",'\tmap = new google.maps.Map(document.getElementById("map_canvas"), options);',"\tgeocoder = new google.maps.Geocoder();","\tgeocoder.geocode({latLng: latlng}, function(results, status) {","\t\tif (status == google.maps.GeocoderStatus.OK) {","\t\t\tif (results[3]) {",'\t\t\t\tparent.document.getElementById("kindeditor_plugin_map_address").value = results[3].formatted_address;',"\t\t\t}","\t\t}","\t});","}","function search(address) {","\tif (!map) return;","\tgeocoder.geocode({address : address}, function(results, status) {","\t\tif (status == google.maps.GeocoderStatus.OK) {","\t\t\tmap.setZoom(11);","\t\t\tmap.setCenter(results[0].geometry.location);","\t\t\tvar marker = new google.maps.Marker({","\t\t\t\tmap: map,","\t\t\t\tposition: results[0].geometry.location","\t\t\t});","\t\t} else {",'\t\t\talert("Invalid address: " + address);',"\t\t}","\t});","}","<\/script>","</head>",'<body onload="initialize();">','<div id="map_canvas" style="width:100%; height:100%"></div>',"</body></html>"].join("\n"),t('<iframe class="ke-textarea" frameborder="0" src="'+e.pluginsPath+'map/map.html" style="width:558px;height:360px;"></iframe>'));function h(){r=d[0].contentWindow,o=t.iframeDoc(d)}d.bind("load",(function(){d.unbind("load"),t.IE?h():setTimeout(h,0)})),t(".ke-map",l).replaceWith(d),u.click((function(){r.search(c.val())}))}))})),KindEditor.plugin("clearhtml",(function(t){var e=this,n="clearhtml";e.clickToolbar(n,(function(){e.focus();var n=e.html();n=n.replace(/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,""),n=n.replace(/(<style[^>]*>)([\s\S]*?)(<\/style>)/gi,""),n=t.formatHtml(n,{a:["href","target"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess"],img:["src","width","height","border","alt","title",".width",".height"],table:["border"],"td,th":["rowspan","colspan"],"div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":[]}),e.html(n),e.cmd.selection(!0),e.addBookmark()}))})),KindEditor.plugin("code",(function(t){var e=this,n="code";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r=['<div style="padding:10px 20px;">','<div class="ke-dialog-row">','<select class="ke-code-type">','<option value="js">JavaScript</option>','<option value="html">HTML</option>','<option value="css">CSS</option>','<option value="php">PHP</option>','<option value="pl">Perl</option>','<option value="py">Python</option>','<option value="rb">Ruby</option>','<option value="java">Java</option>','<option value="vb">ASP/VB</option>','<option value="cpp">C/C++</option>','<option value="cs">C#</option>','<option value="xml">XML</option>','<option value="bsh">Shell</option>','<option value="">Other</option>',"</select>","</div>",'<textarea class="ke-textarea" style="width:408px;height:260px;"></textarea>',"</div>"].join(""),o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var r=t(".ke-code-type",o.div).val(),s=a.val(),l=""===r?"":" lang-"+r,c='<pre class="prettyprint'+l+'">\n'+t.escape(s)+"</pre> ";if(""===t.trim(s))return alert(i.pleaseInput),void a[0].focus();e.insertHtml(c).hideDialog().focus()}}}),a=t("textarea",o.div);a[0].focus()}))})),KindEditor.plugin("emoticons",(function(t){var e=this,n="emoticons",i=e.emoticonsPath||e.pluginsPath+"emoticons/images/",r=void 0===e.allowPreviewEmoticons||e.allowPreviewEmoticons,o=1;e.clickToolbar(n,(function(){var a,s,l=5,c=9,u=135,d=0,h=l*c,p=Math.ceil(u/h),f=Math.floor(c/2),m=t('<div class="ke-plugin-emoticons"></div>'),g=[],v=e.createMenu({name:n,beforeRemove:function(){x()}});function b(n,r,o){a?n.mouseover((function(){r>f?(a.css("left",0),a.css("right","")):(a.css("left",""),a.css("right",0)),s.attr("src",i+o+".gif"),t(this).addClass("ke-on")})):n.mouseover((function(){t(this).addClass("ke-on")})),n.mouseout((function(){t(this).removeClass("ke-on")})),n.click((function(t){e.insertHtml('<img src="'+i+o+'.gif" border="0" alt="" />').hideMenu().focus(),t.stop()}))}function _(e,n){var r=document.createElement("table");n.append(r),a&&(t(r).mouseover((function(){a.show("block")})),t(r).mouseout((function(){a.hide()})),g.push(t(r))),r.className="ke-table",r.cellPadding=0,r.cellSpacing=0,r.border=0;for(var o=(e-1)*h+d,s=0;s<l;s++)for(var u=r.insertRow(s),p=0;p<c;p++){var f=t(u.insertCell(p));f.addClass("ke-cell"),b(f,p,o);var m=t('<span class="ke-img"></span>').css("background-position","-"+24*o+"px 0px").css("background-image","url("+i+"static.gif)");f.append(m),g.push(f),o++}return r}v.div.append(m),r&&(a=t('<div class="ke-preview"></div>').css("right",0),s=t('<img class="ke-preview-img" src="'+i+d+'.gif" />'),m.append(a),a.append(s));var y,w=_(o,m);function x(){t.each(g,(function(){this.unbind()}))}function k(t,e){t.click((function(t){x(),w.parentNode.removeChild(w),y.remove(),w=_(e,m),S(e),o=e,t.stop()}))}function S(e){y=t('<div class="ke-page"></div>'),m.append(y);for(var n=1;n<=p;n++){if(e!==n){var i=t('<a href="javascript:;">['+n+"]</a>");k(i,n),y.append(i),g.push(i)}else y.append(t("@["+n+"]"));y.append(t("@ "))}}S(o)}))})),KindEditor.plugin("filemanager",(function(t){var e=this,n="filemanager",i=t.undef(e.fileManagerJson,e.basePath+"php/file_manager_json.php"),r=e.pluginsPath+n+"/images/",o=e.lang(n+".");function a(t,e,n){return t+" ("+Math.ceil(e/1024)+"KB, "+n+")"}function s(t,e){e.is_dir?t.attr("title",e.filename):t.attr("title",a(e.filename,e.filesize,e.datetime))}e.plugin.filemanagerDialog=function(a){var l=t.undef(a.width,650),c=t.undef(a.height,510),u=t.undef(a.dirName,""),d=t.undef(a.viewType,"VIEW").toUpperCase(),h=a.clickFn,p=['<div style="padding:10px 20px;">','<div class="ke-plugin-filemanager-header">','<div class="ke-left">','<img class="ke-inline-block" name="moveupImg" src="'+r+'go-up.gif" width="16" height="16" border="0" alt="" /> ','<a class="ke-inline-block" name="moveupLink" href="javascript:;">'+o.moveup+"</a>","</div>",'<div class="ke-right">',o.viewType+' <select class="ke-inline-block" name="viewType">','<option value="VIEW">'+o.viewImage+"</option>",'<option value="LIST">'+o.listImage+"</option>","</select> ",o.orderType+' <select class="ke-inline-block" name="orderType">','<option value="NAME">'+o.fileName+"</option>",'<option value="SIZE">'+o.fileSize+"</option>",'<option value="TYPE">'+o.fileType+"</option>","</select>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<div class="ke-plugin-filemanager-body"></div>',"</div>"].join(""),f=e.createDialog({name:n,width:l,height:c,title:e.lang(n),body:p}),m=f.div,g=t(".ke-plugin-filemanager-body",m),v=(t('[name="moveupImg"]',m),t('[name="moveupLink"]',m)),b=(t('[name="viewServer"]',m),t('[name="viewType"]',m)),_=t('[name="orderType"]',m);function y(n,r,o){var a="path="+n+"&order="+r+"&dir="+u;f.showLoading(e.lang("ajaxLoading")),t.ajax(t.addParam(i,a+"&"+(new Date).getTime()),(function(t){f.hideLoading(),o(t)}))}var w=[];function x(e,n,i,r){var o=t.formatUrl(n.current_url+i.filename,"absolute"),a=encodeURIComponent(n.current_dir_path+i.filename+"/");i.is_dir?e.click((function(t){y(a,_.val(),r)})):(i.is_photo,e.click((function(t){h.call(this,o,i.filename)}))),w.push(e)}function k(e,n){function i(){"VIEW"==b.val()?y(e.current_dir_path,_.val(),D):y(e.current_dir_path,_.val(),S)}t.each(w,(function(){this.unbind()})),v.unbind(),b.unbind(),_.unbind(),e.current_dir_path&&v.click((function(t){y(e.moveup_dir_path,_.val(),n)})),b.change(i),_.change(i),g.html("")}function S(e){k(e,S);var n=document.createElement("table");n.className="ke-table",n.cellPadding=0,n.cellSpacing=0,n.border=0,g.append(n);for(var i=e.file_list,a=0,s=i.length;a<s;a++){var l=i[a],c=t(n.insertRow(a));c.mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));var u=r+(l.is_dir?"folder-16.gif":"file-16.gif"),d=t('<img src="'+u+'" width="16" height="16" alt="'+l.filename+'" align="absmiddle" />'),h=t(c[0].insertCell(0)).addClass("ke-cell ke-name").append(d).append(document.createTextNode(" "+l.filename));!l.is_dir||l.has_file?(c.css("cursor","pointer"),h.attr("title",l.filename),x(h,e,l,S)):h.attr("title",o.emptyFolder),t(c[0].insertCell(1)).addClass("ke-cell ke-size").html(l.is_dir?"-":Math.ceil(l.filesize/1024)+"KB"),t(c[0].insertCell(2)).addClass("ke-cell ke-datetime").html(l.datetime)}}function D(e){k(e,D);for(var n=e.file_list,i=0,a=n.length;i<a;i++){var l=n[i],c=t('<div class="ke-inline-block ke-item"></div>');g.append(c);var u=t('<div class="ke-inline-block ke-photo"></div>').mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));c.append(u);var d=e.current_url+l.filename,h=l.is_dir?r+"folder-64.gif":l.is_photo?d:r+"file-64.gif",p=t('<img src="'+h+'" width="80" height="80" alt="'+l.filename+'" />');!l.is_dir||l.has_file?(u.css("cursor","pointer"),s(u,l),x(u,e,l,D)):u.attr("title",o.emptyFolder),u.append(p),c.append('<div class="ke-name" title="'+l.filename+'">'+l.filename+"</div>")}}return b.val(d),y("",_.val(),"VIEW"==d?D:S),f}})),KindEditor.plugin("flash",(function(t){var e=this,n="flash",i=e.lang(n+"."),r=t.undef(e.allowFlashUpload,!0),o=t.undef(e.allowFileManager,!1),a=t.undef(e.formatUploadUrl,!0),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=t.undef(e.uploadJson,e.basePath+"php/upload_json.php");e.plugin.flash={edit:function(){var u=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+i.url+"</label>",'<input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:160px;" /> ','<input type="button" class="ke-upload-button" value="'+i.upload+'" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+i.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:60px;">'+i.width+"</label>",'<input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="550" maxlength="4" /> ',"</div>",'<div class="ke-dialog-row">','<label for="keHeight" style="width:60px;">'+i.height+"</label>",'<input type="text" id="keHeight" class="ke-input-text ke-input-number" name="height" value="400" maxlength="4" /> ',"</div>","</div>"].join(""),d=e.createDialog({name:n,width:450,title:e.lang(n),body:u,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(p.val()),r=m.val(),o=g.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void p[0].focus();if(!/^\d*$/.test(r))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(o))return alert(e.lang("invalidHeight")),void g[0].focus();var a=t.mediaImg(e.themesPath+"common/blank.gif",{src:i,type:t.mediaType(".swf"),width:r,height:o,quality:"high"});e.insertHtml(a).hideDialog().focus()}}}),h=d.div,p=t('[name="url"]',h),f=t('[name="viewServer"]',h),m=t('[name="width"]',h),g=t('[name="height"]',h);if(p.val("http://"),r){var v=t.uploadbutton({button:t(".ke-upload-button",h)[0],fieldName:l,extraParams:s,url:t.addParam(c,"dir=flash"),afterUpload:function(i){if(d.hideLoading(),0===i.error){var r=i.url;a&&(r=t.formatUrl(r,"absolute")),p.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){d.hideLoading(),e.errorDialog(t)}});v.fileBox.change((function(t){d.showLoading(e.lang("uploadLoading")),v.submit()}))}else t(".ke-upload-button",h).hide();o?f.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"flash",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',h).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):f.hide();var b=e.plugin.getSelectedFlash();if(b){var _=t.mediaAttrs(b.attr("data-ke-tag"));p.val(_.src),m.val(t.removeUnit(b.css("width"))||_.width||0),g.val(t.removeUnit(b.css("height"))||_.height||0)}p[0].focus(),p[0].select()},delete:function(){e.plugin.getSelectedFlash().remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.flash.edit)})),KindEditor.plugin("uploadImage",(function(t){var e=this;e.clickToolbar("uploadImage",(function(){$app.$upload({multiple:!0,success:function(t){e.insertHtml(Array.from(t,t=>`<img src="${t.path}" alt="" />`).join(""))}})}))})),KindEditor.plugin("image",(function(t){var e=this,n="image",i=t.undef(e.allowImageUpload,!1),r=t.undef(e.allowImageRemote,!0),o=t.undef(e.formatUploadUrl,!0),a=t.undef(e.allowFileManager,!0),s=t.undef(e.uploadJson,e.basePath+"php/upload_json.php"),l=t.undef(e.imageTabIndex,0),c=e.pluginsPath+"image/images/",u=t.undef(e.extraFileUploadParams,{}),d=t.undef(e.filePostName,"imgFile"),h=t.undef(e.fillDescAfterUploadImage,!1),p=e.lang(n+".");e.plugin.imageDialog=function(i){i.imageUrl,t.undef(i.imageWidth,""),t.undef(i.imageHeight,""),t.undef(i.imageTitle,""),t.undef(i.imageAlign,"");var r=t.undef(i.showRemote,!0),l=t.undef(i.showLocal,!0),f=t.undef(i.tabIndex,0),m=i.clickFn,g="kindeditor_upload_iframe_"+(new Date).getTime(),v=[];for(var b in u)v.push('<input type="hidden" name="'+b+'" value="'+u[b]+'" />');var _,y=['<div style="padding:20px;">','<div class="tabs"></div>','<div class="tab1" style="display:none;">','<div class="ke-dialog-row">','<label for="remoteUrl" style="width:60px;">'+p.remoteUrl+"</label>",'<input type="text" id="remoteUrl" class="ke-input-text" name="url" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+p.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="remoteWidth" style="width:60px;">'+p.size+"</label>",p.width+' <input type="text" id="remoteWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> ',p.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> ','<img class="ke-refresh-btn" src="'+c+'refresh.png" width="16" height="16" alt="" style="cursor:pointer;" title="'+p.resetSize+'" />',"</div>",'<div class="ke-dialog-row">','<label style="width:60px;">'+p.align+"</label>",'<input type="radio" name="align" class="ke-inline-block" value="" checked="checked" /> <img name="defaultImg" src="'+IMAGE_ALIGN_TOP+'" width="23" height="25" alt="" />',' <input type="radio" name="align" class="ke-inline-block" value="left" /> <img name="leftImg" src="'+IMAGE_ALIGN_LEFT+'" width="23" height="25" alt="" />',' <input type="radio" name="align" class="ke-inline-block" value="right" /> <img name="rightImg" src="'+IMAGE_ALIGN_RIGHT+'" width="23" height="25" alt="" />',"</div>",'<div class="ke-dialog-row">','<label for="remoteTitle" style="width:60px;">'+p.imgTitle+"</label>",'<input type="text" id="remoteTitle" class="ke-input-text" name="title" value="" style="width:200px;" />',"</div>","</div>",'<div class="tab2" style="display:none;">','<iframe name="'+g+'" style="display:none;"></iframe>','<form class="ke-upload-area ke-form" method="post" enctype="multipart/form-data" target="'+g+'" action="'+t.addParam(s,"dir=image")+'">','<div class="ke-dialog-row">',v.join(""),'<label style="width:60px;">'+p.localUrl+"</label>",'<input type="text" name="localUrl" class="ke-input-text" tabindex="-1" style="width:200px;" readonly="true" /> ','<input type="button" class="ke-upload-button" value="'+p.upload+'" />',"</div>","</form>","</div>","</div>"].join(""),w=l||a?450:400,x=l&&r?300:250,k=e.createDialog({name:n,width:w,height:x,title:e.lang(n),body:y,yesBtn:{name:e.lang("yes"),click:function(n){if(!k.isLoading){if(l&&r&&_&&1===_.selectedIndex||!r)return""==L.fileBox.val()?void alert(e.lang("pleaseSelectFile")):(k.showLoading(e.lang("uploadLoading")),L.submit(),void C.val(""));var i=t.trim(D.val()),o=A.val(),a=T.val(),s=F.val(),c="";return $.each((function(){if(this.checked)return c=this.value,!1})),"http://"==i||t.invalidUrl(i)?(alert(e.lang("invalidUrl")),void D[0].focus()):/^\d*$/.test(o)?/^\d*$/.test(a)?void m.call(e,i,s,o,a,0,c):(alert(e.lang("invalidHeight")),void T[0].focus()):(alert(e.lang("invalidWidth")),void A[0].focus())}}},beforeRemove:function(){E.unbind(),A.unbind(),T.unbind(),B.unbind()}}),S=k.div,D=t('[name="url"]',S),C=t('[name="localUrl"]',S),E=t('[name="viewServer"]',S),A=t('.tab1 [name="width"]',S),T=t('.tab1 [name="height"]',S),B=t(".ke-refresh-btn",S),F=t('.tab1 [name="title"]',S),$=t('.tab1 [name="align"]',S);r&&l?(_=t.tabs({src:t(".tabs",S),afterSelect:function(t){}}),_.add({title:p.remoteImage,panel:t(".tab1",S)}),_.add({title:p.localImage,panel:t(".tab2",S)}),_.select(f)):r?t(".tab1",S).show():l&&t(".tab2",S).show();var L=t.uploadbutton({button:t(".ke-upload-button",S)[0],fieldName:d,form:t(".ke-form",S),target:g,width:60,afterUpload:function(i){if(k.hideLoading(),0===i.error){var r=i.url;o&&(r=t.formatUrl(r,"absolute")),e.afterUpload&&e.afterUpload.call(e,r,i,n),h?(t(".ke-dialog-row #remoteUrl",S).val(r),t(".ke-tabs-li",S)[0].click(),t(".ke-refresh-btn",S).click()):m.call(e,r,i.title,i.width,i.height,i.border,i.align)}else alert(i.message)},afterError:function(t){k.hideLoading(),e.errorDialog(t)}});L.fileBox.change((function(t){C.val(L.fileBox.val())})),a?E.click((function(e){$app.$upload({success:function(e){Array.isArray(e)&&(e=e[0]),t('[name="url"]',S).val(e.path)}})})):E.hide();var M=0,P=0;function I(t,e){A.val(t),T.val(e),M=t,P=e}return B.click((function(e){var n=t('<img src="'+D.val()+'" />',document).css({position:"absolute",visibility:"hidden",top:0,left:"-1000px"});n.bind("load",(function(){I(n.width(),n.height()),n.remove()})),t(document.body).append(n)})),A.change((function(t){M>0&&T.val(Math.round(P/M*parseInt(this.value,10)))})),T.change((function(t){P>0&&A.val(Math.round(M/P*parseInt(this.value,10)))})),D.val(i.imageUrl),F.val(i.imageTitle),$.each((function(){if(this.value===i.imageAlign)return this.checked=!0,!1})),r&&0===f&&(D[0].focus(),D[0].select()),k},e.plugin.image={edit:function(){var t=e.plugin.getSelectedImage();e.plugin.imageDialog({imageUrl:t?t.attr("data-ke-src"):"http://",imageWidth:t?t.width():"",imageHeight:t?t.height():"",imageTitle:t?t.attr("title"):"",imageAlign:t?t.attr("align"):"",showRemote:r,showLocal:i,tabIndex:t?0:l,clickFn:function(n,i,r,o,a,s){t?(t.attr("src",n),t.attr("data-ke-src",n),t.attr("width",r),t.attr("height",o),t.attr("title",i),t.attr("align",s),t.attr("alt",i)):e.exec("insertimage",n,i,r,o,a,s),setTimeout((function(){e.hideDialog().focus()}),0)}})},delete:function(){var t=e.plugin.getSelectedImage();"a"==t.parent().name&&(t=t.parent()),t.remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.image.edit)})),KindEditor.plugin("insertfile",(function(t){var e=this,n="insertfile",i=t.undef(e.allowFileUpload,!0),r=t.undef(e.allowFileManager,!1),o=t.undef(e.formatUploadUrl,!0),a=t.undef(e.uploadJson,e.basePath+"php/upload_json.php"),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=e.lang(n+".");e.plugin.fileDialog=function(u){var d=t.undef(u.fileUrl,"http://"),h=t.undef(u.fileTitle,""),p=u.clickFn,f=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+c.url+"</label>",'<input type="text" id="keUrl" name="url" class="ke-input-text" style="width:160px;" /> ','<input type="button" class="ke-upload-button" value="'+c.upload+'" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+c.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keTitle" style="width:60px;">'+c.title+"</label>",'<input type="text" id="keTitle" class="ke-input-text" name="title" value="" style="width:160px;" /></div>',"</div>","</form>","</div>"].join(""),m=e.createDialog({name:n,width:450,title:e.lang(n),body:f,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(v.val()),r=_.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void v[0].focus();""===t.trim(r)&&(r=i),p.call(e,i,r)}}}),g=m.div,v=t('[name="url"]',g),b=t('[name="viewServer"]',g),_=t('[name="title"]',g);if(i){var y=t.uploadbutton({button:t(".ke-upload-button",g)[0],fieldName:l,url:t.addParam(a,"dir=file"),extraParams:s,afterUpload:function(i){if(m.hideLoading(),0===i.error){var r=i.url;o&&(r=t.formatUrl(r,"absolute")),v.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){m.hideLoading(),e.errorDialog(t)}});y.fileBox.change((function(t){m.showLoading(e.lang("uploadLoading")),y.submit()}))}else t(".ke-upload-button",g).hide();r?b.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"file",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',g).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):b.hide(),v.val(d),_.val(h),v[0].focus(),v[0].select()},e.clickToolbar(n,(function(){e.plugin.fileDialog({clickFn:function(t,n){var i='<a class="ke-insertfile" href="'+t+'" data-ke-src="'+t+'" target="_blank">'+n+"</a>";e.insertHtml(i).hideDialog().focus()}})}))})),KindEditor.plugin("lineheight",(function(t){var e=this,n="lineheight",i=e.lang(n+".");e.clickToolbar(n,(function(){var r="",o=e.cmd.commonNode({"*":".line-height"});o&&(r=o.css("line-height"));var a=e.createMenu({name:n,width:150});t.each(i.lineHeight,(function(n,i){t.each(i,(function(t,n){a.addItem({title:n,checked:r===t,click:function(){e.cmd.toggle('<span style="line-height:'+t+';"></span>',{span:".line-height="+t}),e.updateState(),e.addBookmark(),e.hideMenu()}})}))}))}))})),KindEditor.plugin("link",(function(t){var e=this,n="link";e.plugin.link={edit:function(){var i=e.lang(n+"."),r='<div style="padding:20px;"><div class="ke-dialog-row"><label for="keUrl" style="width:60px;">'+i.url+'</label><input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:260px;" /></div><div class="ke-dialog-row""><label for="keType" style="width:60px;">'+i.linkType+'</label><select id="keType" name="type"></select></div></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(s.val());if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void s[0].focus();e.exec("createlink",i,l.val()).hideDialog().focus()}}}),a=o.div,s=t('input[name="url"]',a),l=t('select[name="type"]',a);s.val("http://"),l[0].options[0]=new Option(i.newWindow,"_blank"),l[0].options[1]=new Option(i.selfWindow,""),e.cmd.selection();var c=e.plugin.getSelectedLink();c&&(e.cmd.range.selectNode(c[0]),e.cmd.select(),s.val(c.attr("data-ke-src")),l.val(c.attr("target"))),s[0].focus(),s[0].select()},delete:function(){e.exec("unlink",null)}},e.clickToolbar(n,e.plugin.link.edit)})),KindEditor.plugin("media",(function(t){var e=this,n="media",i=e.lang(n+"."),r=t.undef(e.allowMediaUpload,!0),o=t.undef(e.allowFileManager,!1),a=t.undef(e.formatUploadUrl,!0),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=t.undef(e.uploadJson,e.basePath+"php/upload_json.php");e.plugin.media={edit:function(){var u=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+i.url+"</label>",'<input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:160px;" /> ','<input type="button" class="ke-upload-button" value="'+i.upload+'" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+i.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:60px;">'+i.width+"</label>",'<input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="550" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keHeight" style="width:60px;">'+i.height+"</label>",'<input type="text" id="keHeight" class="ke-input-text ke-input-number" name="height" value="400" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keAutostart">'+i.autostart+"</label>",'<input type="checkbox" id="keAutostart" name="autostart" value="" /> ',"</div>","</div>"].join(""),d=e.createDialog({name:n,width:450,height:230,title:e.lang(n),body:u,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(p.val()),r=m.val(),o=g.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void p[0].focus();if(!/^\d*$/.test(r))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(o))return alert(e.lang("invalidHeight")),void g[0].focus();var a=t.mediaImg(e.themesPath+"common/blank.gif",{src:i,type:t.mediaType(i),width:r,height:o,autostart:v[0].checked?"true":"false",loop:"true"});e.insertHtml(a).hideDialog().focus()}}}),h=d.div,p=t('[name="url"]',h),f=t('[name="viewServer"]',h),m=t('[name="width"]',h),g=t('[name="height"]',h),v=t('[name="autostart"]',h);if(p.val("http://"),r){var b=t.uploadbutton({button:t(".ke-upload-button",h)[0],fieldName:l,extraParams:s,url:t.addParam(c,"dir=media"),afterUpload:function(i){if(d.hideLoading(),0===i.error){var r=i.url;a&&(r=t.formatUrl(r,"absolute")),p.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){d.hideLoading(),e.errorDialog(t)}});b.fileBox.change((function(t){d.showLoading(e.lang("uploadLoading")),b.submit()}))}else t(".ke-upload-button",h).hide();o?f.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"media",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',h).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):f.hide();var _=e.plugin.getSelectedMedia();if(_){var y=t.mediaAttrs(_.attr("data-ke-tag"));p.val(y.src),m.val(t.removeUnit(_.css("width"))||y.width||0),g.val(t.removeUnit(_.css("height"))||y.height||0),v[0].checked="true"===y.autostart}p[0].focus(),p[0].select()},delete:function(){e.plugin.getSelectedMedia().remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.media.edit)})),function(t){function e(t){this.init(t)}t.extend(e,{init:function(e){var n=this;function i(e,n){t(".ke-status > div",e).hide(),t(".ke-message",e).addClass("ke-error").show().html(t.escape(n))}e.afterError=e.afterError||function(t){alert(t)},n.options=e,n.progressbars={},n.div=t(e.container).html(['<div class="ke-swfupload">','<div class="ke-swfupload-top">','<div class="ke-inline-block ke-swfupload-button">','<input type="button" value="Browse" />',"</div>",'<div class="ke-inline-block ke-swfupload-desc">'+e.uploadDesc+"</div>",'<span class="ke-button-common ke-button-outer ke-swfupload-startupload">','<input type="button" class="ke-button-common ke-button" value="'+e.startButtonValue+'" />',"</span>","</div>",'<div class="ke-swfupload-body"></div>',"</div>"].join("")),n.bodyDiv=t(".ke-swfupload-body",n.div);var r={debug:!1,upload_url:e.uploadUrl,flash_url:e.flashUrl,file_post_name:e.filePostName,button_placeholder:t(".ke-swfupload-button > input",n.div)[0],button_image_url:e.buttonImageUrl,button_width:e.buttonWidth,button_height:e.buttonHeight,button_cursor:SWFUpload.CURSOR.HAND,file_types:e.fileTypes,file_types_description:e.fileTypesDesc,file_upload_limit:e.fileUploadLimit,file_size_limit:e.fileSizeLimit,post_params:e.postParams,file_queued_handler:function(t){t.url=n.options.fileIconUrl,n.appendFile(t)},file_queue_error_handler:function(n,i,r){var o="";switch(i){case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED:o=e.queueLimitExceeded;break;case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:o=e.fileExceedsSizeLimit;break;case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:o=e.zeroByteFile;break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:o=e.invalidFiletype;break;default:o=e.unknownError;break}t.DEBUG&&alert(o)},upload_start_handler:function(e){var n=this,i=t('div[data-id="'+e.id+'"]',n.bodyDiv);t(".ke-status > div",i).hide(),t(".ke-progressbar",i).show()},upload_progress_handler:function(t,e,i){var r=Math.round(100*e/i),o=n.progressbars[t.id];o.bar.css("width",Math.round(80*r/100)+"px"),o.percent.html(r+"%")},upload_error_handler:function(e,r,o){if(e&&e.filestatus==SWFUpload.FILE_STATUS.ERROR){var a=t('div[data-id="'+e.id+'"]',n.bodyDiv).eq(0);i(a,n.options.errorMessage)}},upload_success_handler:function(e,r){var o=t('div[data-id="'+e.id+'"]',n.bodyDiv).eq(0),a={};try{a=t.json(r)}catch(s){n.options.afterError.call(this,"<!doctype html><html>"+r+"</html>")}0===a.error?(e.url=a.url,t(".ke-img",o).attr("src",e.url).attr("data-status",e.filestatus).data("data",a),t(".ke-status > div",o).hide()):i(o,t.DEBUG?a.message:n.options.errorMessage)}};n.swfu=new SWFUpload(r),t(".ke-swfupload-startupload input",n.div).click((function(){n.swfu.startUpload()}))},getUrlList:function(){var e=[];return t(".ke-img",self.bodyDiv).each((function(){var n=t(this),i=n.attr("data-status");i==SWFUpload.FILE_STATUS.COMPLETE&&e.push(n.data("data"))})),e},removeFile:function(e){var n=this;n.swfu.cancelUpload(e);var i=t('div[data-id="'+e+'"]',n.bodyDiv);t(".ke-photo",i).unbind(),t(".ke-delete",i).unbind(),i.remove()},removeFiles:function(){var e=this;t(".ke-item",e.bodyDiv).each((function(){e.removeFile(t(this).attr("data-id"))}))},appendFile:function(e){var n=this,i=t('<div class="ke-inline-block ke-item" data-id="'+e.id+'"></div>');n.bodyDiv.append(i);var r=t('<div class="ke-inline-block ke-photo"></div>').mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));i.append(r);var o=t('<img src="'+e.url+'" class="ke-img" data-status="'+e.filestatus+'" width="80" height="80" alt="'+e.name+'" />');r.append(o),t('<span class="ke-delete"></span>').appendTo(r).click((function(){n.removeFile(e.id)}));var a=t('<div class="ke-status"></div>').appendTo(r);t(['<div class="ke-progressbar">','<div class="ke-progressbar-bar"><div class="ke-progressbar-bar-inner"></div></div>','<div class="ke-progressbar-percent">0%</div></div>'].join("")).hide().appendTo(a),t('<div class="ke-message">'+n.options.pendingMessage+"</div>").appendTo(a),i.append('<div class="ke-name">'+e.name+"</div>"),n.progressbars[e.id]={bar:t(".ke-progressbar-bar-inner",r),percent:t(".ke-progressbar-percent",r)}},remove:function(){this.removeFiles(),this.swfu.destroy(),this.div.html("")}}),t.swfupload=function(t,n){return new e(t,n)}}(KindEditor),KindEditor.plugin("multiimage",(function(t){var e=this,n="multiimage",i=(t.undef(e.formatUploadUrl,!0),t.undef(e.uploadJson,e.basePath+"php/upload_json.php")),r=e.pluginsPath+"multiimage/images/",o=t.undef(e.imageSizeLimit,"1MB"),a=(t.undef(e.imageFileTypes,"*.jpg;*.gif;*.png"),t.undef(e.imageUploadLimit,20)),s=t.undef(e.filePostName,"imgFile"),l=e.lang(n+".");e.plugin.multiImageDialog=function(c){var u=c.clickFn,d=t.tmpl(l.uploadDesc,{uploadLimit:a,sizeLimit:o}),h=['<div style="padding:20px;">','<div class="swfupload">',"</div>","</div>"].join(""),p=e.createDialog({name:n,width:650,height:510,title:e.lang(n),body:h,previewBtn:{name:l.insertAll,click:function(t){u.call(e,m.getUrlList())}},yesBtn:{name:l.clearAll,click:function(t){m.removeFiles()}},beforeRemove:function(){(!t.IE||t.V<=8)&&m.remove()}}),f=p.div,m=t.swfupload({container:t(".swfupload",f),buttonImageUrl:r+("zh-CN"==e.langType?"select-files-zh-CN.png":"select-files-en.png"),buttonWidth:"zh-CN"==e.langType?72:88,buttonHeight:23,fileIconUrl:r+"image.png",uploadDesc:d,startButtonValue:l.startUpload,uploadUrl:t.addParam(i,"dir=image"),flashUrl:r+"swfupload.swf",filePostName:s,fileTypes:"*.jpg;*.jpeg;*.gif;*.png;*.bmp",fileTypesDesc:"Image Files",fileUploadLimit:a,fileSizeLimit:o,postParams:t.undef(e.extraFileUploadParams,{}),queueLimitExceeded:l.queueLimitExceeded,fileExceedsSizeLimit:l.fileExceedsSizeLimit,zeroByteFile:l.zeroByteFile,invalidFiletype:l.invalidFiletype,unknownError:l.unknownError,pendingMessage:l.pending,errorMessage:l.uploadError,afterError:function(t){e.errorDialog(t)}});return p},e.clickToolbar(n,(function(){e.plugin.multiImageDialog({clickFn:function(n){0!==n.length&&(t.each(n,(function(t,n){e.afterUpload&&e.afterUpload.call(e,n.url,n,"multiimage"),e.exec("insertimage",n.url,n.title,n.width,n.height,n.border,n.align)})),setTimeout((function(){e.hideDialog().focus()}),0))}})}))})),function(){window.SWFUpload=function(t){this.initSWFUpload(t)},SWFUpload.prototype.initSWFUpload=function(t){try{this.customSettings={},this.settings=t,this.eventQueue=[],this.movieName="KindEditor_SWFUpload_"+SWFUpload.movieCount++,this.movieElement=null,SWFUpload.instances[this.movieName]=this,this.initSettings(),this.loadFlash(),this.displayDebugInfo()}catch(e){throw delete SWFUpload.instances[this.movieName],e}},SWFUpload.instances={},SWFUpload.movieCount=0,SWFUpload.version="2.2.0 2009-03-25",SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130},SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290},SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5},SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120},SWFUpload.CURSOR={ARROW:-1,HAND:-2},SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"},SWFUpload.completeURL=function(t){if("string"!==typeof t||t.match(/^https?:\/\//i)||t.match(/^\//))return t;window.location.protocol,window.location.hostname,window.location.port&&window.location.port;var e=window.location.pathname.lastIndexOf("/");return path=e<=0?"/":window.location.pathname.substr(0,e)+"/",path+t},SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(t,e){this.settings[t]=void 0==this.settings[t]?e:this.settings[t]},this.ensureDefault("upload_url",""),this.ensureDefault("preserve_relative_urls",!1),this.ensureDefault("file_post_name","Filedata"),this.ensureDefault("post_params",{}),this.ensureDefault("use_query_string",!1),this.ensureDefault("requeue_on_error",!1),this.ensureDefault("http_success",[]),this.ensureDefault("assume_success_timeout",0),this.ensureDefault("file_types","*.*"),this.ensureDefault("file_types_description","All Files"),this.ensureDefault("file_size_limit",0),this.ensureDefault("file_upload_limit",0),this.ensureDefault("file_queue_limit",0),this.ensureDefault("flash_url","swfupload.swf"),this.ensureDefault("prevent_swf_caching",!0),this.ensureDefault("button_image_url",""),this.ensureDefault("button_width",1),this.ensureDefault("button_height",1),this.ensureDefault("button_text",""),this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;"),this.ensureDefault("button_text_top_padding",0),this.ensureDefault("button_text_left_padding",0),this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES),this.ensureDefault("button_disabled",!1),this.ensureDefault("button_placeholder_id",""),this.ensureDefault("button_placeholder",null),this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW),this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW),this.ensureDefault("debug",!1),this.settings.debug_enabled=this.settings.debug,this.settings.return_upload_start_handler=this.returnUploadStart,this.ensureDefault("swfupload_loaded_handler",null),this.ensureDefault("file_dialog_start_handler",null),this.ensureDefault("file_queued_handler",null),this.ensureDefault("file_queue_error_handler",null),this.ensureDefault("file_dialog_complete_handler",null),this.ensureDefault("upload_start_handler",null),this.ensureDefault("upload_progress_handler",null),this.ensureDefault("upload_error_handler",null),this.ensureDefault("upload_success_handler",null),this.ensureDefault("upload_complete_handler",null),this.ensureDefault("debug_handler",this.debugMessage),this.ensureDefault("custom_settings",{}),this.customSettings=this.settings.custom_settings,this.settings.prevent_swf_caching&&(this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+(new Date).getTime()),this.settings.preserve_relative_urls||(this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url),this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)),delete this.ensureDefault},SWFUpload.prototype.loadFlash=function(){var t,e;if(null!==document.getElementById(this.movieName))throw"ID "+this.movieName+" is already in use. The Flash Object could not be added";if(t=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder,void 0==t)throw"Could not find the placeholder element: "+this.settings.button_placeholder_id;e=document.createElement("div"),e.innerHTML=this.getFlashHTML(),t.parentNode.replaceChild(e.firstChild,t),void 0==window[this.movieName]&&(window[this.movieName]=this.getMovieElement())},SWFUpload.prototype.getFlashHTML=function(){var t="";return KindEditor.IE&&KindEditor.V>8&&(t=' classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'),['<object id="',this.movieName,'"'+t+' type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',this.settings.flash_url,'" />','<param name="quality" value="high" />','<param name="menu" value="false" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")},SWFUpload.prototype.getFlashVars=function(){var t=this.buildParamString(),e=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&uploadURL=",encodeURIComponent(this.settings.upload_url),"&useQueryString=",encodeURIComponent(this.settings.use_query_string),"&requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&httpSuccess=",encodeURIComponent(e),"&assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&params=",encodeURIComponent(t),"&filePostName=",encodeURIComponent(this.settings.file_post_name),"&fileTypes=",encodeURIComponent(this.settings.file_types),"&fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&buttonWidth=",encodeURIComponent(this.settings.button_width),"&buttonHeight=",encodeURIComponent(this.settings.button_height),"&buttonText=",encodeURIComponent(this.settings.button_text),"&buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&buttonAction=",encodeURIComponent(this.settings.button_action),"&buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")},SWFUpload.prototype.getMovieElement=function(){if(void 0==this.movieElement&&(this.movieElement=document.getElementById(this.movieName)),null===this.movieElement)throw"Could not find Flash element";return this.movieElement},SWFUpload.prototype.buildParamString=function(){var t=this.settings.post_params,e=[];if("object"===typeof t)for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n.toString())+"="+encodeURIComponent(t[n].toString()));return e.join("&")},SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,!1);var t=null;if(t=this.getMovieElement(),t&&"unknown"===typeof t.CallFunction){for(var e in t)try{"function"===typeof t[e]&&(t[e]=null)}catch(n){}try{t.parentNode.removeChild(t)}catch(i){}}return window[this.movieName]=null,SWFUpload.instances[this.movieName]=null,delete SWFUpload.instances[this.movieName],this.movieElement=null,this.settings=null,this.customSettings=null,this.eventQueue=null,this.movieName=null,!0}catch(r){return!1}},SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url: ",this.settings.upload_url,"\n","\t","flash_url: ",this.settings.flash_url,"\n","\t","use_query_string: ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error: ",this.settings.requeue_on_error.toString(),"\n","\t","http_success: ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout: ",this.settings.assume_success_timeout,"\n","\t","file_post_name: ",this.settings.file_post_name,"\n","\t","post_params: ",this.settings.post_params.toString(),"\n","\t","file_types: ",this.settings.file_types,"\n","\t","file_types_description: ",this.settings.file_types_description,"\n","\t","file_size_limit: ",this.settings.file_size_limit,"\n","\t","file_upload_limit: ",this.settings.file_upload_limit,"\n","\t","file_queue_limit: ",this.settings.file_queue_limit,"\n","\t","debug: ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching: ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id: ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder: ",this.settings.button_placeholder?"Set":"Not Set","\n","\t","button_image_url: ",this.settings.button_image_url.toString(),"\n","\t","button_width: ",this.settings.button_width.toString(),"\n","\t","button_height: ",this.settings.button_height.toString(),"\n","\t","button_text: ",this.settings.button_text.toString(),"\n","\t","button_text_style: ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding: ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action: ",this.settings.button_action.toString(),"\n","\t","button_disabled: ",this.settings.button_disabled.toString(),"\n","\t","custom_settings: ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned: ",("function"===typeof this.settings.swfupload_loaded_handler).toString(),"\n","\t","file_dialog_start_handler assigned: ",("function"===typeof this.settings.file_dialog_start_handler).toString(),"\n","\t","file_queued_handler assigned: ",("function"===typeof this.settings.file_queued_handler).toString(),"\n","\t","file_queue_error_handler assigned: ",("function"===typeof this.settings.file_queue_error_handler).toString(),"\n","\t","upload_start_handler assigned: ",("function"===typeof this.settings.upload_start_handler).toString(),"\n","\t","upload_progress_handler assigned: ",("function"===typeof this.settings.upload_progress_handler).toString(),"\n","\t","upload_error_handler assigned: ",("function"===typeof this.settings.upload_error_handler).toString(),"\n","\t","upload_success_handler assigned: ",("function"===typeof this.settings.upload_success_handler).toString(),"\n","\t","upload_complete_handler assigned: ",("function"===typeof this.settings.upload_complete_handler).toString(),"\n","\t","debug_handler assigned: ",("function"===typeof this.settings.debug_handler).toString(),"\n"].join(""))},SWFUpload.prototype.addSetting=function(t,e,n){return this.settings[t]=void 0==e?n:e},SWFUpload.prototype.getSetting=function(t){return void 0!=this.settings[t]?this.settings[t]:""},SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement(),returnValue,returnString;try{returnString=movieElement.CallFunction('<invoke name="'+functionName+'" returntype="javascript">'+__flash__argumentsToXML(argumentArray,0)+"</invoke>"),returnValue=eval(returnString)}catch(ex){throw"Call to "+functionName+" failed"}return void 0!=returnValue&&"object"===typeof returnValue.post&&(returnValue=this.unescapeFilePostParams(returnValue)),returnValue},SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")},SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")},SWFUpload.prototype.startUpload=function(t){this.callFlash("StartUpload",[t])},SWFUpload.prototype.cancelUpload=function(t,e){!1!==e&&(e=!0),this.callFlash("CancelUpload",[t,e])},SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")},SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")},SWFUpload.prototype.setStats=function(t){this.callFlash("SetStats",[t])},SWFUpload.prototype.getFile=function(t){return"number"===typeof t?this.callFlash("GetFileByIndex",[t]):this.callFlash("GetFile",[t])},SWFUpload.prototype.addFileParam=function(t,e,n){return this.callFlash("AddFileParam",[t,e,n])},SWFUpload.prototype.removeFileParam=function(t,e){this.callFlash("RemoveFileParam",[t,e])},SWFUpload.prototype.setUploadURL=function(t){this.settings.upload_url=t.toString(),this.callFlash("SetUploadURL",[t])},SWFUpload.prototype.setPostParams=function(t){this.settings.post_params=t,this.callFlash("SetPostParams",[t])},SWFUpload.prototype.addPostParam=function(t,e){this.settings.post_params[t]=e,this.callFlash("SetPostParams",[this.settings.post_params])},SWFUpload.prototype.removePostParam=function(t){delete this.settings.post_params[t],this.callFlash("SetPostParams",[this.settings.post_params])},SWFUpload.prototype.setFileTypes=function(t,e){this.settings.file_types=t,this.settings.file_types_description=e,this.callFlash("SetFileTypes",[t,e])},SWFUpload.prototype.setFileSizeLimit=function(t){this.settings.file_size_limit=t,this.callFlash("SetFileSizeLimit",[t])},SWFUpload.prototype.setFileUploadLimit=function(t){this.settings.file_upload_limit=t,this.callFlash("SetFileUploadLimit",[t])},SWFUpload.prototype.setFileQueueLimit=function(t){this.settings.file_queue_limit=t,this.callFlash("SetFileQueueLimit",[t])},SWFUpload.prototype.setFilePostName=function(t){this.settings.file_post_name=t,this.callFlash("SetFilePostName",[t])},SWFUpload.prototype.setUseQueryString=function(t){this.settings.use_query_string=t,this.callFlash("SetUseQueryString",[t])},SWFUpload.prototype.setRequeueOnError=function(t){this.settings.requeue_on_error=t,this.callFlash("SetRequeueOnError",[t])},SWFUpload.prototype.setHTTPSuccess=function(t){"string"===typeof t&&(t=t.replace(" ","").split(",")),this.settings.http_success=t,this.callFlash("SetHTTPSuccess",[t])},SWFUpload.prototype.setAssumeSuccessTimeout=function(t){this.settings.assume_success_timeout=t,this.callFlash("SetAssumeSuccessTimeout",[t])},SWFUpload.prototype.setDebugEnabled=function(t){this.settings.debug_enabled=t,this.callFlash("SetDebugEnabled",[t])},SWFUpload.prototype.setButtonImageURL=function(t){void 0==t&&(t=""),this.settings.button_image_url=t,this.callFlash("SetButtonImageURL",[t])},SWFUpload.prototype.setButtonDimensions=function(t,e){this.settings.button_width=t,this.settings.button_height=e;var n=this.getMovieElement();void 0!=n&&(n.style.width=t+"px",n.style.height=e+"px"),this.callFlash("SetButtonDimensions",[t,e])},SWFUpload.prototype.setButtonText=function(t){this.settings.button_text=t,this.callFlash("SetButtonText",[t])},SWFUpload.prototype.setButtonTextPadding=function(t,e){this.settings.button_text_top_padding=e,this.settings.button_text_left_padding=t,this.callFlash("SetButtonTextPadding",[t,e])},SWFUpload.prototype.setButtonTextStyle=function(t){this.settings.button_text_style=t,this.callFlash("SetButtonTextStyle",[t])},SWFUpload.prototype.setButtonDisabled=function(t){this.settings.button_disabled=t,this.callFlash("SetButtonDisabled",[t])},SWFUpload.prototype.setButtonAction=function(t){this.settings.button_action=t,this.callFlash("SetButtonAction",[t])},SWFUpload.prototype.setButtonCursor=function(t){this.settings.button_cursor=t,this.callFlash("SetButtonCursor",[t])},SWFUpload.prototype.queueEvent=function(t,e){void 0==e?e=[]:e instanceof Array||(e=[e]);var n=this;if("function"===typeof this.settings[t])this.eventQueue.push((function(){this.settings[t].apply(this,e)})),setTimeout((function(){n.executeNextEvent()}),0);else if(null!==this.settings[t])throw"Event handler "+t+" is unknown or is not a function"},SWFUpload.prototype.executeNextEvent=function(){var t=this.eventQueue?this.eventQueue.shift():null;"function"===typeof t&&t.apply(this)},SWFUpload.prototype.unescapeFilePostParams=function(t){var e,n=/[$]([0-9a-f]{4})/i,i={};if(void 0!=t){for(var r in t.post)if(t.post.hasOwnProperty(r)){var o;e=r;while(null!==(o=n.exec(e)))e=e.replace(o[0],String.fromCharCode(parseInt("0x"+o[1],16)));i[e]=t.post[r]}t.post=i}return t},SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface")}catch(t){return!1}},SWFUpload.prototype.flashReady=function(){var t=this.getMovieElement();t?(this.cleanUp(t),this.queueEvent("swfupload_loaded_handler")):this.debug("Flash called back ready but the flash movie can't be found.")},SWFUpload.prototype.cleanUp=function(t){try{if(this.movieElement&&"unknown"===typeof t.CallFunction)for(var e in this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)"),t)try{"function"===typeof t[e]&&(t[e]=null)}catch(n){}}catch(i){}window["__flash__removeCallback"]=function(t,e){try{t&&(t[e]=null)}catch(n){}}},SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")},SWFUpload.prototype.fileQueued=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("file_queued_handler",t)},SWFUpload.prototype.fileQueueError=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("file_queue_error_handler",[t,e,n])},SWFUpload.prototype.fileDialogComplete=function(t,e,n){this.queueEvent("file_dialog_complete_handler",[t,e,n])},SWFUpload.prototype.uploadStart=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("return_upload_start_handler",t)},SWFUpload.prototype.returnUploadStart=function(t){var e;if("function"===typeof this.settings.upload_start_handler)t=this.unescapeFilePostParams(t),e=this.settings.upload_start_handler.call(this,t);else if(void 0!=this.settings.upload_start_handler)throw"upload_start_handler must be a function";void 0===e&&(e=!0),e=!!e,this.callFlash("ReturnUploadStart",[e])},SWFUpload.prototype.uploadProgress=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_progress_handler",[t,e,n])},SWFUpload.prototype.uploadError=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_error_handler",[t,e,n])},SWFUpload.prototype.uploadSuccess=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_success_handler",[t,e,n])},SWFUpload.prototype.uploadComplete=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("upload_complete_handler",t)},SWFUpload.prototype.debug=function(t){this.queueEvent("debug_handler",t)},SWFUpload.prototype.debugMessage=function(t){if(this.settings.debug){var e,n=[];if("object"===typeof t&&"string"===typeof t.name&&"string"===typeof t.message){for(var i in t)t.hasOwnProperty(i)&&n.push(i+": "+t[i]);e=n.join("\n")||"",n=e.split("\n"),e="EXCEPTION: "+n.join("\nEXCEPTION: "),SWFUpload.Console.writeLine(e)}else SWFUpload.Console.writeLine(t)}},SWFUpload.Console={},SWFUpload.Console.writeLine=function(t){var e,n;try{e=document.getElementById("SWFUpload_Console"),e||(n=document.createElement("form"),document.getElementsByTagName("body")[0].appendChild(n),e=document.createElement("textarea"),e.id="SWFUpload_Console",e.style.fontFamily="monospace",e.setAttribute("wrap","off"),e.wrap="off",e.style.overflow="auto",e.style.width="700px",e.style.height="350px",e.style.margin="5px",n.appendChild(e)),e.value+=t+"\n",e.scrollTop=e.scrollHeight-e.clientHeight}catch(i){alert("Exception: "+i.name+" Message: "+i.message)}}}(),function(){"function"===typeof SWFUpload&&(SWFUpload.queue={},SWFUpload.prototype.initSettings=function(t){return function(){"function"===typeof t&&t.call(this),this.queueSettings={},this.queueSettings.queue_cancelled_flag=!1,this.queueSettings.queue_upload_count=0,this.queueSettings.user_upload_complete_handler=this.settings.upload_complete_handler,this.queueSettings.user_upload_start_handler=this.settings.upload_start_handler,this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler,this.settings.upload_start_handler=SWFUpload.queue.uploadStartHandler,this.settings.queue_complete_handler=this.settings.queue_complete_handler||null}}(SWFUpload.prototype.initSettings),SWFUpload.prototype.startUpload=function(t){this.queueSettings.queue_cancelled_flag=!1,this.callFlash("StartUpload",[t])},SWFUpload.prototype.cancelQueue=function(){this.queueSettings.queue_cancelled_flag=!0,this.stopUpload();var t=this.getStats();while(t.files_queued>0)this.cancelUpload(),t=this.getStats()},SWFUpload.queue.uploadStartHandler=function(t){var e;return"function"===typeof this.queueSettings.user_upload_start_handler&&(e=this.queueSettings.user_upload_start_handler.call(this,t)),e=!1!==e,this.queueSettings.queue_cancelled_flag=!e,e},SWFUpload.queue.uploadCompleteHandler=function(t){var e,n=this.queueSettings.user_upload_complete_handler;if(t.filestatus===SWFUpload.FILE_STATUS.COMPLETE&&this.queueSettings.queue_upload_count++,e="function"===typeof n?!1!==n.call(this,t):t.filestatus!==SWFUpload.FILE_STATUS.QUEUED,e){var i=this.getStats();i.files_queued>0&&!1===this.queueSettings.queue_cancelled_flag?this.startUpload():!1===this.queueSettings.queue_cancelled_flag?(this.queueEvent("queue_complete_handler",[this.queueSettings.queue_upload_count]),this.queueSettings.queue_upload_count=0):(this.queueSettings.queue_cancelled_flag=!1,this.queueSettings.queue_upload_count=0)}})}(),KindEditor.plugin("pagebreak",(function(t){var e=this,n="pagebreak",i=t.undef(e.pagebreakHtml,'<hr style="page-break-after: always;" class="ke-pagebreak" />');e.clickToolbar(n,(function(){var n=e.cmd,r=n.range;e.focus();var o="br"==e.newlineTag||t.WEBKIT?"":'<span id="__kindeditor_tail_tag__"></span>';if(e.insertHtml(i+o),""!==o){var a=t("#__kindeditor_tail_tag__",e.edit.doc);r.selectNodeContents(a[0]),a.removeAttr("id"),n.select()}}))})),KindEditor.plugin("plainpaste",(function(t){var e=this,n="plainpaste";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r='<div style="padding:10px 20px;"><div style="margin-bottom:10px;">'+i.comment+'</div><textarea class="ke-textarea" style="width:408px;height:260px;"></textarea></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=a.val();i=t.escape(i),i=i.replace(/ {2}/g," "),i="p"==e.newlineTag?i.replace(/^/,"<p>").replace(/$/,"</p>").replace(/\n/g,"</p><p>"):i.replace(/\n/g,"<br />$&"),e.insertHtml(i).hideDialog().focus()}}}),a=t("textarea",o.div);a[0].focus()}))})),KindEditor.plugin("preview",(function(t){var e=this,n="preview";e.clickToolbar(n,(function(){e.lang(n+".");var i='<div style="padding:10px 20px;"><iframe class="ke-textarea" frameborder="0" style="width:708px;height:400px;"></iframe></div>',r=e.createDialog({name:n,width:750,title:e.lang(n),body:i}),o=t("iframe",r.div),a=t.iframeDoc(o);a.open(),a.write(e.fullHtml()),a.close(),t(a.body).css("background-color","#FFF"),o[0].contentWindow.focus()}))})),KindEditor.plugin("quickformat",(function(t){var e=this,n="quickformat",i=t.toMap("blockquote,center,div,h1,h2,h3,h4,h5,h6,p");function r(t){var e=t.first();while(e&&e.first())e=e.first();return e}e.clickToolbar(n,(function(){e.focus();var n,o=e.edit.doc,a=e.cmd.range,s=t(o.body).first(),l=[],c=[],u=a.createBookmark(!0);while(s){n=s.next();var d=r(s);d&&"img"==d.name||(i[s.name]?(s.html(s.html().replace(/^(\s| | )+/gi,"")),s.css("text-indent","2em")):c.push(s),(!n||i[n.name]||i[s.name]&&!i[n.name])&&(c.length>0&&l.push(c),c=[])),s=n}t.each(l,(function(e,n){var i=t('<p style="text-indent:2em;"></p>',o);n[0].before(i),t.each(n,(function(t,e){i.append(e)}))})),a.moveToBookmark(u),e.addBookmark()}))})),KindEditor.plugin("table",(function(t){var e=this,n="table",i=e.lang(n+"."),r="ke-zeroborder";function o(t,e){e=e.toUpperCase(),t.css("background-color",e),t.css("color","#000000"===e?"#FFFFFF":"#000000"),t.html(e)}var a=[];function s(n,i){function r(){t.each(a,(function(){this.remove()})),a=[],t(document).unbind("click,mousedown",r),n.unbind("click,mousedown",r)}i.bind("click,mousedown",(function(t){t.stopPropagation()})),i.click((function(i){r();var s=t(this),l=s.pos(),c=t.colorpicker({x:l.x,y:l.y+s.height(),z:811214,selectedColor:t(this).html(),colors:e.colorTable,noColor:e.lang("noColor"),shadowMode:e.shadowMode,click:function(t){o(s,t),r()}});a.push(c),t(document).bind("click,mousedown",r),n.bind("click,mousedown",r)}))}function l(t,e,n){for(var i=0,r=0,o=e.cells.length;r<o;r++){if(e.cells[r]==n)break;i+=e.cells[r].rowSpan-1}return n.cellIndex-i}e.plugin.table={prop:function(a){var l,c=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keRows" style="width:90px;">'+i.cells+"</label>",i.rows+' <input type="text" id="keRows" class="ke-input-text ke-input-number" name="rows" value="" maxlength="4" /> ',i.cols+' <input type="text" class="ke-input-text ke-input-number" name="cols" value="" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:90px;">'+i.size+"</label>",i.width+' <input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> ','<select name="widthType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select> ",i.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> ','<select name="heightType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="kePadding" style="width:90px;">'+i.space+"</label>",i.padding+' <input type="text" id="kePadding" class="ke-input-text ke-input-number" name="padding" value="" maxlength="4" /> ',i.spacing+' <input type="text" class="ke-input-text ke-input-number" name="spacing" value="" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keAlign" style="width:90px;">'+i.align+"</label>",'<select id="keAlign" name="align">','<option value="">'+i.alignDefault+"</option>",'<option value="left">'+i.alignLeft+"</option>",'<option value="center">'+i.alignCenter+"</option>",'<option value="right">'+i.alignRight+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keBorder" style="width:90px;">'+i.border+"</label>",i.borderWidth+' <input type="text" id="keBorder" class="ke-input-text ke-input-number" name="border" value="" maxlength="4" /> ',i.borderColor+' <span class="ke-inline-block ke-input-color"></span>',"</div>",'<div class="ke-dialog-row">','<label for="keBgColor" style="width:90px;">'+i.backgroundColor+"</label>",'<span class="ke-inline-block ke-input-color"></span>',"</div>","</div>"].join(""),u=e.cmd.range.createBookmark(),d=e.createDialog({name:n,width:500,title:e.lang(n),body:c,beforeRemove:function(){k.unbind()},yesBtn:{name:e.lang("yes"),click:function(n){var i=p.val(),o=f.val(),a=m.val(),s=g.val(),c=v.val(),d=b.val(),h=_.val(),S=y.val(),D=w.val(),C=x.val(),E=t(k[0]).html()||"",A=t(k[1]).html()||"";if(0==i||!/^\d+$/.test(i))return alert(e.lang("invalidRows")),void p[0].focus();if(0==o||!/^\d+$/.test(o))return alert(e.lang("invalidRows")),void f[0].focus();if(!/^\d*$/.test(a))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(s))return alert(e.lang("invalidHeight")),void g[0].focus();if(!/^\d*$/.test(h))return alert(e.lang("invalidPadding")),void _[0].focus();if(!/^\d*$/.test(S))return alert(e.lang("invalidSpacing")),void y[0].focus();if(!/^\d*$/.test(C))return alert(e.lang("invalidBorder")),void x[0].focus();if(l)return""!==a?l.width(a+c):l.css("width",""),void 0!==l[0].width&&l.removeAttr("width"),""!==s?l.height(s+d):l.css("height",""),void 0!==l[0].height&&l.removeAttr("height"),l.css("background-color",A),void 0!==l[0].bgColor&&l.removeAttr("bgColor"),""!==h?l[0].cellPadding=h:l.removeAttr("cellPadding"),""!==S?l[0].cellSpacing=S:l.removeAttr("cellSpacing"),""!==D?l[0].align=D:l.removeAttr("align"),""!==C?l.attr("border",C):l.removeAttr("border"),""===C||"0"===C?l.addClass(r):l.removeClass(r),""!==E?l.attr("borderColor",E):l.removeAttr("borderColor"),e.hideDialog().focus(),e.cmd.range.moveToBookmark(u),e.cmd.select(),void e.addBookmark();var T="";""!==a&&(T+="width:"+a+c+";"),""!==s&&(T+="height:"+s+d+";"),""!==A&&(T+="background-color:"+A+";");var B="<table";""!==T&&(B+=' style="'+T+'"'),""!==h&&(B+=' cellpadding="'+h+'"'),""!==S&&(B+=' cellspacing="'+S+'"'),""!==D&&(B+=' align="'+D+'"'),""!==C&&(B+=' border="'+C+'"'),""!==C&&"0"!==C||(B+=' class="'+r+'"'),""!==E&&(B+=' bordercolor="'+E+'"'),B+=">";for(var F=0;F<i;F++){B+="<tr>";for(var $=0;$<o;$++)B+="<td>"+(t.IE?" ":"<br />")+"</td>";B+="</tr>"}B+="</table>",t.IE||(B+="<br />"),e.insertHtml(B),e.select().hideDialog().focus(),e.addBookmark()}}}),h=d.div,p=t('[name="rows"]',h).val(3),f=t('[name="cols"]',h).val(2),m=t('[name="width"]',h).val(100),g=t('[name="height"]',h),v=t('[name="widthType"]',h),b=t('[name="heightType"]',h),_=t('[name="padding"]',h).val(2),y=t('[name="spacing"]',h).val(0),w=t('[name="align"]',h),x=t('[name="border"]',h).val(1),k=t(".ke-input-color",h);if(s(h,k.eq(0)),s(h,k.eq(1)),o(k.eq(0),"#000000"),o(k.eq(1),""),p[0].focus(),p[0].select(),!a&&(l=e.plugin.getSelectedTable(),l)){p.val(l[0].rows.length),f.val(l[0].rows.length>0?l[0].rows[0].cells.length:0),p.attr("disabled",!0),f.attr("disabled",!0);var S,D=l[0].style.width||l[0].width,C=l[0].style.height||l[0].height;void 0!==D&&(S=/^(\d+)((?:px|%)*)$/.exec(D))?(m.val(S[1]),v.val(S[2])):m.val(""),void 0!==C&&(S=/^(\d+)((?:px|%)*)$/.exec(C))&&(g.val(S[1]),b.val(S[2])),_.val(l[0].cellPadding||""),y.val(l[0].cellSpacing||""),w.val(l[0].align||""),x.val(void 0===l[0].border?"":l[0].border),o(k.eq(0),t.toHex(l.attr("borderColor")||"")),o(k.eq(1),t.toHex(l[0].style.backgroundColor||l[0].bgColor||"")),m[0].focus(),m[0].select()}},cellprop:function(){var r=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keWidth" style="width:90px;">'+i.size+"</label>",i.width+' <input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> ','<select name="widthType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select> ",i.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> ','<select name="heightType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keAlign" style="width:90px;">'+i.align+"</label>",i.textAlign+' <select id="keAlign" name="textAlign">','<option value="">'+i.alignDefault+"</option>",'<option value="left">'+i.alignLeft+"</option>",'<option value="center">'+i.alignCenter+"</option>",'<option value="right">'+i.alignRight+"</option>","</select> ",i.verticalAlign+' <select name="verticalAlign">','<option value="">'+i.alignDefault+"</option>",'<option value="top">'+i.alignTop+"</option>",'<option value="middle">'+i.alignMiddle+"</option>",'<option value="bottom">'+i.alignBottom+"</option>",'<option value="baseline">'+i.alignBaseline+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keBorder" style="width:90px;">'+i.border+"</label>",i.borderWidth+' <input type="text" id="keBorder" class="ke-input-text ke-input-number" name="border" value="" maxlength="4" /> ',i.borderColor+' <span class="ke-inline-block ke-input-color"></span>',"</div>",'<div class="ke-dialog-row">','<label for="keBgColor" style="width:90px;">'+i.backgroundColor+"</label>",'<span class="ke-inline-block ke-input-color"></span>',"</div>","</div>"].join(""),a=e.cmd.range.createBookmark(),l=e.createDialog({name:n,width:500,title:e.lang("tablecell"),body:r,beforeRemove:function(){_.unbind()},yesBtn:{name:e.lang("yes"),click:function(n){var i=u.val(),r=d.val(),o=h.val(),s=p.val(),l=(f.val(),m.val(),g.val()),c=v.val(),y=b.val(),x=t(_[0]).html()||"",k=t(_[1]).html()||"";return/^\d*$/.test(i)?/^\d*$/.test(r)?/^\d*$/.test(y)?(w.css({width:""!==i?i+o:"",height:""!==r?r+s:"","background-color":k,"text-align":l,"vertical-align":c,"border-width":y,"border-style":""!==y?"solid":"","border-color":x}),e.hideDialog().focus(),e.cmd.range.moveToBookmark(a),e.cmd.select(),void e.addBookmark()):(alert(e.lang("invalidBorder")),void b[0].focus()):(alert(e.lang("invalidHeight")),void d[0].focus()):(alert(e.lang("invalidWidth")),void u[0].focus())}}}),c=l.div,u=t('[name="width"]',c).val(100),d=t('[name="height"]',c),h=t('[name="widthType"]',c),p=t('[name="heightType"]',c),f=t('[name="padding"]',c).val(2),m=t('[name="spacing"]',c).val(0),g=t('[name="textAlign"]',c),v=t('[name="verticalAlign"]',c),b=t('[name="border"]',c).val(1),_=t(".ke-input-color",c);s(c,_.eq(0)),s(c,_.eq(1)),o(_.eq(0),"#000000"),o(_.eq(1),""),u[0].focus(),u[0].select();var y,w=e.plugin.getSelectedCell(),x=w[0].style.width||w[0].width||"",k=w[0].style.height||w[0].height||"";(y=/^(\d+)((?:px|%)*)$/.exec(x))?(u.val(y[1]),h.val(y[2])):u.val(""),(y=/^(\d+)((?:px|%)*)$/.exec(k))&&(d.val(y[1]),p.val(y[2])),g.val(w[0].style.textAlign||""),v.val(w[0].style.verticalAlign||"");var S=w[0].style.borderWidth||"";S&&(S=parseInt(S)),b.val(S),o(_.eq(0),t.toHex(w[0].style.borderColor||"")),o(_.eq(1),t.toHex(w[0].style.backgroundColor||"")),u[0].focus(),u[0].select()},insert:function(){this.prop(!0)},delete:function(){var t=e.plugin.getSelectedTable();e.cmd.range.setStartBefore(t[0]).collapse(!0),e.cmd.select(),t.remove(),e.addBookmark()},colinsert:function(n){var i=e.plugin.getSelectedTable()[0],r=e.plugin.getSelectedRow()[0],o=e.plugin.getSelectedCell()[0],a=o.cellIndex+n;a+=i.rows[0].cells.length-r.cells.length;for(var s=0,c=i.rows.length;s<c;s++){var u=i.rows[s],d=u.insertCell(a);d.innerHTML=t.IE?"":"<br />",a=l(i,u,d)}e.cmd.range.selectNodeContents(o).collapse(!0),e.cmd.select(),e.addBookmark()},colinsertleft:function(){this.colinsert(0)},colinsertright:function(){this.colinsert(1)},rowinsert:function(n){var i=e.plugin.getSelectedTable()[0],r=e.plugin.getSelectedRow()[0],o=e.plugin.getSelectedCell()[0],a=r.rowIndex;1===n&&(a=r.rowIndex+(o.rowSpan-1)+n);for(var s=i.insertRow(a),l=0,c=r.cells.length;l<c;l++){r.cells[l].rowSpan>1&&(c-=r.cells[l].rowSpan-1);var u=s.insertCell(l);1===n&&r.cells[l].colSpan>1&&(u.colSpan=r.cells[l].colSpan),u.innerHTML=t.IE?"":"<br />"}for(var d=a;d>=0;d--){var h=i.rows[d].cells;if(h.length>l){for(var p=o.cellIndex;p>=0;p--)h[p].rowSpan>1&&(h[p].rowSpan+=1);break}}e.cmd.range.selectNodeContents(o).collapse(!0),e.cmd.select(),e.addBookmark()},rowinsertabove:function(){this.rowinsert(0)},rowinsertbelow:function(){this.rowinsert(1)},rowmerge:function(){var t=e.plugin.getSelectedTable()[0],n=e.plugin.getSelectedRow()[0],i=e.plugin.getSelectedCell()[0],r=n.rowIndex,o=r+i.rowSpan,a=t.rows[o];if(!(t.rows.length<=o)){var s=i.cellIndex;if(!(a.cells.length<=s)){var l=a.cells[s];i.colSpan===l.colSpan&&(i.rowSpan+=l.rowSpan,a.deleteCell(s),e.cmd.range.selectNodeContents(i).collapse(!0),e.cmd.select(),e.addBookmark())}}},colmerge:function(){e.plugin.getSelectedTable()[0];var t=e.plugin.getSelectedRow()[0],n=e.plugin.getSelectedCell()[0],i=(t.rowIndex,n.cellIndex),r=i+1;if(!(t.cells.length<=r)){var o=t.cells[r];n.rowSpan===o.rowSpan&&(n.colSpan+=o.colSpan,t.deleteCell(r),e.cmd.range.selectNodeContents(n).collapse(!0),e.cmd.select(),e.addBookmark())}},rowsplit:function(){var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=i.rowIndex;if(1!==r.rowSpan){for(var a=l(n,i,r),s=1,c=r.rowSpan;s<c;s++){var u=n.rows[o+s],d=u.insertCell(a);r.colSpan>1&&(d.colSpan=r.colSpan),d.innerHTML=t.IE?"":"<br />",a=l(n,u,d)}t(r).removeAttr("rowSpan"),e.cmd.range.selectNodeContents(r).collapse(!0),e.cmd.select(),e.addBookmark()}},colsplit:function(){e.plugin.getSelectedTable()[0];var n=e.plugin.getSelectedRow()[0],i=e.plugin.getSelectedCell()[0],r=i.cellIndex;if(1!==i.colSpan){for(var o=1,a=i.colSpan;o<a;o++){var s=n.insertCell(r+o);i.rowSpan>1&&(s.rowSpan=i.rowSpan),s.innerHTML=t.IE?"":"<br />"}t(i).removeAttr("colSpan"),e.cmd.range.selectNodeContents(i).collapse(!0),e.cmd.select(),e.addBookmark()}},coldelete:function(){for(var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=r.cellIndex,a=0,s=n.rows.length;a<s;a++){var l=n.rows[a],c=l.cells[o];c.colSpan>1?(c.colSpan-=1,1===c.colSpan&&t(c).removeAttr("colSpan")):l.deleteCell(o),c.rowSpan>1&&(a+=c.rowSpan-1)}0===i.cells.length?(e.cmd.range.setStartBefore(n).collapse(!0),e.cmd.select(),t(n).remove()):e.cmd.selection(!0),e.addBookmark()},rowdelete:function(){for(var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=i.rowIndex,a=r.rowSpan-1;a>=0;a--)n.deleteRow(o+a);0===n.rows.length?(e.cmd.range.setStartBefore(n).collapse(!0),e.cmd.select(),t(n).remove()):e.cmd.selection(!0),e.addBookmark()}},e.clickToolbar(n,e.plugin.table.prop)})),KindEditor.plugin("template",(function(t){var e=this,n="template",i=(e.lang(n+"."),e.pluginsPath+n+"/html/");function r(e){return i+e+"?ver="+encodeURIComponent(t.DEBUG?t.TIME:t.VERSION)}e.clickToolbar(n,(function(){var i=e.lang(n+"."),o=['<div style="padding:10px 20px;">','<div class="ke-header">','<div class="ke-left">',i.selectTemplate+" <select>"];t.each(i.fileList,(function(t,e){o.push('<option value="'+t+'">'+e+"</option>")})),html=[o.join(""),"</select></div>",'<div class="ke-right">','<input type="checkbox" id="keReplaceFlag" name="replaceFlag" value="1" /> <label for="keReplaceFlag">'+i.replaceContent+"</label>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<iframe class="ke-textarea" frameborder="0" style="width:458px;height:260px;background-color:#FFF;"></iframe>',"</div>"].join("");var a=e.createDialog({name:n,width:500,title:e.lang(n),body:html,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.iframeDoc(c);e[l[0].checked?"html":"insertHtml"](i.body.innerHTML).hideDialog().focus()}}}),s=t("select",a.div),l=t('[name="replaceFlag"]',a.div),c=t("iframe",a.div);l[0].checked=!0,c.attr("src",r(s.val())),s.change((function(){c.attr("src",r(this.value))}))}))})),KindEditor.plugin("wordpaste",(function(t){var e=this,n="wordpaste";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r='<div style="padding:10px 20px;"><div style="margin-bottom:10px;">'+i.comment+'</div><iframe class="ke-textarea" frameborder="0" style="width:408px;height:260px;"></iframe></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=l.body.innerHTML;i=t.clearMsWord(i,e.filterMode?e.htmlTags:t.options.htmlTags),e.insertHtml(i).hideDialog().focus()}}}),a=o.div,s=t("iframe",a),l=t.iframeDoc(s);t.IE||(l.designMode="on"),l.open(),l.write("<!doctype html><html><head><title>WordPaste</title></head>"),l.write('<body style="background-color:#FFF;font-size:12px;margin:2px;">'),t.IE||l.write("<br />"),l.write("</body></html>"),l.close(),t.IE&&(l.body.contentEditable="true"),s[0].contentWindow.focus()}))})),KindEditor.plugin("fixtoolbar",(function(t){var e=this;function n(){var e=t(".ke-toolbar"),n=e.pos().y;t(window).bind("scroll",(function(){"fixed"==e.css("position")?document.body.scrollTop-n<0&&(e.css("position","static"),e.css("top","auto")):e.pos().y-document.body.scrollTop<0&&(e.css("position","fixed"),e.css("top",0))}))}e.fixToolBar&&(e.isCreated?n():e.afterCreate(n))}))},"7a43":function(t,e){function n(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return n(t)}catch(r){return i}}},"7a77":function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},"7aac":function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){"use strict";var i=n("1d80"),r=Object;t.exports=function(t){return r(i(t))}},"7b0d":function(t,e,n){},"7ba0":function(t,e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(t){const e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1===(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=n},"7bbc":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("94f8"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.SHA256,s=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n=this.cfg,i=s.create(n.hasher,t),o=r.create(),a=r.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;while(l.length<u){var h=i.update(e).finalize(a);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var v=m.words,b=0;b<f;b++)p[b]^=v[b]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(t,e,n){return l.create(n).compute(t,e)}}(),t.PBKDF2}))},"7bf0":function(t,e){let n;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){let e=0;while(0!==t)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!==typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeof n},e.toSJIS=function(t){return n(t)}},"7c5c":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(this,arguments)}function r(t,e){if(t){if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=r(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function l(t){var e=s(t,"string");return"symbol"===typeof e?e:String(e)}function c(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function u(e){t.defaults=e}t.defaults=c();var d=/[&<>"']/,h=new RegExp(d.source,"g"),p=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,f=new RegExp(p.source,"g"),m={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(t){return m[t]};function v(t,e){if(e){if(d.test(t))return t.replace(h,g)}else if(p.test(t))return t.replace(f,g);return t}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function _(t){return t.replace(b,(function(t,e){return e=e.toLowerCase(),"colon"===e?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var y=/(^|[^\[])\^/g;function w(t,e){t="string"===typeof t?t:t.source,e=e||"";var n={replace:function(e,i){return i=i.source||i,i=i.replace(y,"$1"),t=t.replace(e,i),n},getRegex:function(){return new RegExp(t,e)}};return n}var x=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(t,e,n){if(t){var i;try{i=decodeURIComponent(_(n)).replace(x,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}e&&!k.test(n)&&(n=T(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}var D={},C=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,A=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(t,e){D[" "+t]||(C.test(t)?D[" "+t]=t+"/":D[" "+t]=$(t,"/",!0)),t=D[" "+t];var n=-1===t.indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(E,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(A,"$1")+e:t+e}var B={exec:function(){}};function F(t,e){var n=t.replace(/\|/g,(function(t,e,n){var i=!1,r=e;while(--r>=0&&"\\"===n[r])i=!i;return i?"|":" |"})),i=n.split(/ \|/),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else while(i.length<e)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function $(t,e,n){var i=t.length;if(0===i)return"";var r=0;while(r<i){var o=t.charAt(i-r-1);if(o!==e||n){if(o===e||!n)break;r++}else r++}return t.slice(0,i-r)}function L(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,i=0,r=0;r<n;r++)if("\\"===t[r])r++;else if(t[r]===e[0])i++;else if(t[r]===e[1]&&(i--,i<0))return r;return-1}function M(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function P(t,e){if(e<1)return"";var n="";while(e>1)1&e&&(n+=t),e>>=1,t+=t;return n+t}function I(t,e,n,i){var r=e.href,o=e.title?v(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;var s={type:"link",raw:n,href:r,title:o,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,s}return{type:"image",raw:n,href:r,title:o,text:v(a)}}function N(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var i=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);if(null===e)return t;var n=e[0];return n.length>=i.length?t.slice(i.length):t})).join("\n")}var H=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.space=function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}},n.code=function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$(n,"\n")}}},n.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],i=N(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:i}}},n.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var i=$(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}},n.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},n.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;var r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:e[0],tokens:r,text:n}}},n.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,i,r,o,a,s,l,c,u,d,h,p,f=e[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?"\\d{1,9}\\"+f.slice(-1):"\\"+f,this.options.pedantic&&(f=m?f:"[*+-]");var v=new RegExp("^( {0,3}"+f+")((?:[\t ][^\\n]*)?(?:\\n|$))");while(t){if(p=!1,!(e=v.exec(t)))break;if(this.rules.block.hr.test(t))break;if(n=e[0],t=t.substring(n.length),c=e[2].split("\n",1)[0].replace(/^\t+/,(function(t){return" ".repeat(3*t.length)})),u=t.split("\n",1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,h=c.slice(o),o+=e[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",t=t.substring(u.length+1),p=!0),!p){var b=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),_=new RegExp("^ {0,"+Math.min(3,o-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,o-1)+"}#");while(t){if(d=t.split("\n",1)[0],u=d,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),y.test(u))break;if(w.test(u))break;if(b.test(u))break;if(_.test(t))break;if(u.search(/[^ ]/)>=o||!u.trim())h+="\n"+u.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(y.test(c))break;if(w.test(c))break;if(_.test(c))break;h+="\n"+u}s||u.trim()||(s=!0),n+=d+"\n",t=t.substring(d.length+1),c=u.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h),i&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();var x=g.items.length;for(a=0;a<x;a++)if(this.lexer.state.top=!1,g.items[a].tokens=this.lexer.blockTokens(g.items[a].text,[]),!g.loose){var k=g.items[a].tokens.filter((function(t){return"space"===t.type})),S=k.length>0&&k.some((function(t){return/\n.*\n/.test(t.raw)}));g.loose=S}if(g.loose)for(a=0;a<x;a++)g.items[a].loose=!0;return g}},n.html=function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};if(this.options.sanitize){var i=this.options.sanitizer?this.options.sanitizer(e[0]):v(e[0]);n.type="paragraph",n.text=i,n.tokens=this.lexer.inline(i)}return n}},n.def=function(t){var e=this.rules.block.def.exec(t);if(e){var n=e[1].toLowerCase().replace(/\s+/g," "),i=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:i,title:r}}},n.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:F(e[1]).map((function(t){return{text:t}})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var i,r,o,a,s=n.align.length;for(i=0;i<s;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(s=n.rows.length,i=0;i<s;i++)n.rows[i]=F(n.rows[i],n.header.length).map((function(t){return{text:t}}));for(s=n.header.length,r=0;r<s;r++)n.header[r].tokens=this.lexer.inline(n.header[r].text);for(s=n.rows.length,r=0;r<s;r++)for(a=n.rows[r],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return n}}},n.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}},n.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e){var n="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}},n.text=function(t){var e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}},n.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:v(e[1])}},n.tag=function(t){var e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):v(e[0]):e[0]}},n.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var i=$(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{var r=L(e[2],"()");if(r>-1){var o=0===e[0].indexOf("!")?5:4,a=o+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,a).trim(),e[3]=""}}var s=e[2],l="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);c&&(s=c[1],l=c[3])}else l=e[3]?e[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(n)?s.slice(1):s.slice(1,-1)),I(e,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:l?l.replace(this.rules.inline._escapes,"$1"):l},e[0],this.lexer)}},n.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(i=e[i.toLowerCase()],!i){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return I(n,i,n[0],this.lexer)}},n.emStrong=function(t,e,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(t);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=i[0].length-1,l=s,c=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;u.lastIndex=0,e=e.slice(-1*t.length+s);while(null!=(i=u.exec(e)))if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],o)if(a=o.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&s%3)||(s+a)%3){if(l-=a,!(l>0)){a=Math.min(a,a+l+c);var d=t.slice(0,s+i.index+(i[0].length-o.length)+a);if(Math.min(s,a)%2){var h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}var p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}else c+=a}}},n.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=v(n,!0),{type:"codespan",raw:e[0],text:n}}},n.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},n.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}},n.autolink=function(t,e){var n,i,r=this.rules.inline.autolink.exec(t);if(r)return"@"===r[2]?(n=v(this.options.mangle?e(r[1]):r[1]),i="mailto:"+n):(n=v(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var i,r;if("@"===n[2])i=v(this.options.mangle?e(n[0]):n[0]),r="mailto:"+i;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=v(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},n.inlineText=function(t,e){var n,i=this.rules.inline.text.exec(t);if(i)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):v(i[0]):i[0]:v(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:n}},e}(),z={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:B,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};z.def=w(z.def).replace("label",z._label).replace("title",z._title).getRegex(),z.bullet=/(?:[*+-]|\d{1,9}[.)])/,z.listItemStart=w(/^( *)(bull) */).replace("bull",z.bullet).getRegex(),z.list=w(z.list).replace(/bull/g,z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+z.def.source+")").getRegex(),z._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,z.html=w(z.html,"i").replace("comment",z._comment).replace("tag",z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z.paragraph=w(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",z._tag).getRegex(),z.blockquote=w(z.blockquote).replace("paragraph",z.paragraph).getRegex(),z.normal=i({},z),z.gfm=i({},z.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),z.gfm.table=w(z.gfm.table).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",z._tag).getRegex(),z.gfm.paragraph=w(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",z.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",z._tag).getRegex(),z.pedantic=i({},z.normal,{html:w("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:B,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:w(z.normal._paragraph).replace("hr",z.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:B,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:B,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function O(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function U(t){var e,n,i="",r=t.length;for(e=0;e<r;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}R._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",R.punctuation=w(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,R.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,R._comment=w(z._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),R.emStrong.lDelim=w(R.emStrong.lDelim).replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimAst=w(R.emStrong.rDelimAst,"g").replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimUnd=w(R.emStrong.rDelimUnd,"g").replace(/punct/g,R._punctuation).getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,R.autolink=w(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=w(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=w(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=w(R.reflink).replace("label",R._label).replace("ref",z._label).getRegex(),R.nolink=w(R.nolink).replace("ref",z._label).getRegex(),R.reflinkSearch=w(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=i({},R),R.pedantic=i({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:w(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=i({},R.normal,{escape:w(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),R.gfm.url=w(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=i({},R.gfm,{br:w(R.br).replace("{2,}","*").getRegex(),text:w(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var K=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.defaults,this.options.tokenizer=this.options.tokenizer||new H,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:z.normal,inline:R.normal};this.options.pedantic?(n.block=z.pedantic,n.inline=R.pedantic):this.options.gfm&&(n.block=z.gfm,this.options.breaks?n.inline=R.breaks:n.inline=R.gfm),this.tokenizer.rules=n}e.lex=function(t,n){var i=new e(n);return i.lex(t)},e.lexInline=function(t,n){var i=new e(n);return i.inlineTokens(t)};var i=e.prototype;return i.lex=function(t){var e;t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);while(e=this.inlineQueue.shift())this.inlineTokens(e.src,e.tokens);return this.tokens},i.blockTokens=function(t,e){var n,i,r,o,a=this;void 0===e&&(e=[]),t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,(function(t,e,n){return e+" ".repeat(n.length)}));while(t)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(i){return!!(n=i.call({lexer:a},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else if(r=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var e=1/0,n=t.slice(1),i=void 0;a.options.extensions.startBlock.forEach((function(t){i=t.call({lexer:this},n),"number"===typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),this.state.top&&(n=this.tokenizer.paragraph(r)))i=e[e.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),o=r.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){var s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,e},i.inline=function(t,e){return void 0===e&&(e=[]),this.inlineQueue.push({src:t,tokens:e}),e},i.inlineTokens=function(t,e){var n,i,r,o=this;void 0===e&&(e=[]);var a,s,l,c=t;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)while(null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c)))u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+P("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,a.index)+"["+P("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c)))c=c.slice(0,a.index+a[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;while(t)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(i){return!!(n=i.call({lexer:o},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,c,l))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,U))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,U))){if(r=t,this.options.extensions&&this.options.extensions.startInline&&function(){var e=1/0,n=t.slice(1),i=void 0;o.options.extensions.startInline.forEach((function(t){i=t.call({lexer:this},n),"number"===typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),n=this.tokenizer.inlineText(r,O))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),s=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(t){var d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else t=t.substring(n.raw.length),e.push(n);return e},n(e,null,[{key:"rules",get:function(){return{block:z,inline:R}}}]),e}(),W=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.code=function(t,e,n){var i=(e||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(t,i);null!=r&&r!==t&&(n=!0,t=r)}return t=t.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+v(i)+'">'+(n?t:v(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:v(t,!0))+"</code></pre>\n"},n.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},n.html=function(t){return t},n.heading=function(t,e,n,i){if(this.options.headerIds){var r=this.options.headerPrefix+i.slug(n);return"<h"+e+' id="'+r+'">'+t+"</h"+e+">\n"}return"<h"+e+">"+t+"</h"+e+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(t,e,n){var i=e?"ol":"ul",r=e&&1!==n?' start="'+n+'"':"";return"<"+i+r+">\n"+t+"</"+i+">\n"},n.listitem=function(t){return"<li>"+t+"</li>\n"},n.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(t){return"<p>"+t+"</p>\n"},n.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},n.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},n.tablecell=function(t,e){var n=e.header?"th":"td",i=e.align?"<"+n+' align="'+e.align+'">':"<"+n+">";return i+t+"</"+n+">\n"},n.strong=function(t){return"<strong>"+t+"</strong>"},n.em=function(t){return"<em>"+t+"</em>"},n.codespan=function(t){return"<code>"+t+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(t){return"<del>"+t+"</del>"},n.link=function(t,e,n){if(t=S(this.options.sanitize,this.options.baseUrl,t),null===t)return n;var i='<a href="'+t+'"';return e&&(i+=' title="'+e+'"'),i+=">"+n+"</a>",i},n.image=function(t,e,n){if(t=S(this.options.sanitize,this.options.baseUrl,t),null===t)return n;var i='<img src="'+t+'" alt="'+n+'"';return e&&(i+=' title="'+e+'"'),i+=this.options.xhtml?"/>":">",i},n.text=function(t){return t},e}(),j=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),V=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{i++,n=t+"-"+i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),q=function(){function e(e){this.options=e||t.defaults,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j,this.slugger=new V}e.parse=function(t,n){var i=new e(n);return i.parse(t)},e.parseInline=function(t,n){var i=new e(n);return i.parseInline(t)};var n=e.prototype;return n.parse=function(t,e){void 0===e&&(e=!0);var n,i,r,o,a,s,l,c,u,d,h,p,f,m,g,v,b,y,w,x="",k=t.length;for(n=0;n<k;n++)if(d=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(w=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))x+=w||"";else switch(d.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(d.tokens),d.depth,_(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(d.header[i].tokens),{header:!0,align:d.align[i]});for(c+=this.renderer.tablerow(l),u="",o=d.rows.length,i=0;i<o;i++){for(s=d.rows[i],l="",a=s.length,r=0;r<a;r++)l+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:d.align[r]});u+=this.renderer.tablerow(l)}x+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(d.tokens),x+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,p=d.start,f=d.loose,o=d.items.length,u="",i=0;i<o;i++)g=d.items[i],v=g.checked,b=g.task,m="",g.task&&(y=this.renderer.checkbox(v),f?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,b,v);x+=this.renderer.list(u,h,p);continue;case"html":x+=this.renderer.html(d.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":u=d.tokens?this.parseInline(d.tokens):d.text;while(n+1<k&&"text"===t[n+1].type)d=t[++n],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);x+=e?this.renderer.paragraph(u):u;continue;default:var S='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(S);throw new Error(S)}return x},n.parseInline=function(t,e){e=e||this.renderer;var n,i,r,o="",a=t.length;for(n=0;n<a;n++)if(i=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(r=this.options.extensions.renderers[i.type].call({parser:this},i),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)))o+=r||"";else switch(i.type){case"escape":o+=e.text(i.text);break;case"html":o+=e.html(i.text);break;case"link":o+=e.link(i.href,i.title,this.parseInline(i.tokens,e));break;case"image":o+=e.image(i.href,i.title,i.text);break;case"strong":o+=e.strong(this.parseInline(i.tokens,e));break;case"em":o+=e.em(this.parseInline(i.tokens,e));break;case"codespan":o+=e.codespan(i.text);break;case"br":o+=e.br();break;case"del":o+=e.del(this.parseInline(i.tokens,e));break;case"text":o+=e.text(i.text);break;default:var s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return o},e}(),Y=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.preprocess=function(t){return t},n.postprocess=function(t){return t},e}();function X(t,e,n){return function(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t){var r="<p>An error occurred:</p><pre>"+v(i.message+"",!0)+"</pre>";return e?Promise.resolve(r):n?void n(null,r):r}if(e)return Promise.reject(i);if(!n)throw i;n(i)}}function G(t,e){return function(n,r,o){"function"===typeof r&&(o=r,r=null);var a=i({},r);r=i({},Z.defaults,a);var s=X(r.silent,r.async,o);if("undefined"===typeof n||null===n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(M(r),r.hooks&&(r.hooks.options=r),o){var l,c=r.highlight;try{r.hooks&&(n=r.hooks.preprocess(n)),l=t(n,r)}catch(f){return s(f)}var u=function(t){var n;if(!t)try{r.walkTokens&&Z.walkTokens(l,r.walkTokens),n=e(l,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(f){t=f}return r.highlight=c,t?s(t):o(null,n)};if(!c||c.length<3)return u();if(delete r.highlight,!l.length)return u();var d=0;return Z.walkTokens(l,(function(t){"code"===t.type&&(d++,setTimeout((function(){c(t.text,t.lang,(function(e,n){if(e)return u(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),d--,0===d&&u()}))}),0))})),void(0===d&&u())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((function(e){return t(e,r)})).then((function(t){return r.walkTokens?Promise.all(Z.walkTokens(t,r.walkTokens)).then((function(){return t})):t})).then((function(t){return e(t,r)})).then((function(t){return r.hooks?r.hooks.postprocess(t):t}))["catch"](s);try{r.hooks&&(n=r.hooks.preprocess(n));var h=t(n,r);r.walkTokens&&Z.walkTokens(h,r.walkTokens);var p=e(h,r);return r.hooks&&(p=r.hooks.postprocess(p)),p}catch(f){return s(f)}}}function Z(t,e,n){return G(K.lex,q.parse)(t,e,n)}Y.passThroughHooks=new Set(["preprocess","postprocess"]),Z.options=Z.setOptions=function(t){return Z.defaults=i({},Z.defaults,t),u(Z.defaults),Z},Z.getDefaults=c,Z.defaults=t.defaults,Z.use=function(){for(var t=Z.defaults.extensions||{renderers:{},childTokens:{}},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){var n=i({},e);if(n.async=Z.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var n=t.renderers[e.name];t.renderers[e.name]=n?function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];var o=e.renderer.apply(this,i);return!1===o&&(o=n.apply(this,i)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer&&function(){var t=Z.defaults.renderer||new W,i=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.renderer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.renderer)i(r);n.renderer=t}(),e.tokenizer&&function(){var t=Z.defaults.tokenizer||new H,i=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.tokenizer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.tokenizer)i(r);n.tokenizer=t}(),e.hooks&&function(){var t=Z.defaults.hooks||new Y,i=function(n){var i=t[n];Y.passThroughHooks.has(n)?t[n]=function(r){if(Z.defaults.async)return Promise.resolve(e.hooks[n].call(t,r)).then((function(e){return i.call(t,e)}));var o=e.hooks[n].call(t,r);return i.call(t,o)}:t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.hooks[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.hooks)i(r);n.hooks=t}(),e.walkTokens){var r=Z.defaults.walkTokens;n.walkTokens=function(t){var n=[];return n.push(e.walkTokens.call(this,t)),r&&(n=n.concat(r.call(this,t))),n}}Z.setOptions(n)}))},Z.walkTokens=function(t,e){for(var n,i=[],r=function(){var t=n.value;switch(i=i.concat(e.call(Z,t)),t.type){case"table":for(var r,o=a(t.header);!(r=o()).done;){var s=r.value;i=i.concat(Z.walkTokens(s.tokens,e))}for(var l,c=a(t.rows);!(l=c()).done;)for(var u,d=l.value,h=a(d);!(u=h()).done;){var p=u.value;i=i.concat(Z.walkTokens(p.tokens,e))}break;case"list":i=i.concat(Z.walkTokens(t.items,e));break;default:Z.defaults.extensions&&Z.defaults.extensions.childTokens&&Z.defaults.extensions.childTokens[t.type]?Z.defaults.extensions.childTokens[t.type].forEach((function(n){i=i.concat(Z.walkTokens(t[n],e))})):t.tokens&&(i=i.concat(Z.walkTokens(t.tokens,e)))}},o=a(t);!(n=o()).done;)r();return i},Z.parseInline=G(K.lexInline,q.parseInline),Z.Parser=q,Z.parser=q.parse,Z.Renderer=W,Z.TextRenderer=j,Z.Lexer=K,Z.lexer=K.lex,Z.Tokenizer=H,Z.Slugger=V,Z.Hooks=Y,Z.parse=Z;var Q=Z.options,J=Z.setOptions,tt=Z.use,et=Z.walkTokens,nt=Z.parseInline,it=Z,rt=q.parse,ot=K.lex;t.Hooks=Y,t.Lexer=K,t.Parser=q,t.Renderer=W,t.Slugger=V,t.TextRenderer=j,t.Tokenizer=H,t.getDefaults=c,t.lexer=ot,t.marked=Z,t.options=Q,t.parse=it,t.parseInline=nt,t.parser=rt,t.setOptions=J,t.use=tt,t.walkTokens=et}))},"7daf":function(t,e,n){"use strict";n.r(e),e["default"]='## 选项卡模块\r\n\r\n```\r\n<module :tabs="tabs" @tabChange="">\r\n\t// 通过tabs属性定义标签,页面内容相同仅参数不同时使用\r\n\t// @change 选项卡切换事件\r\n</module>\r\n\r\n<module>\r\n\t// 通过<module-tab>组件定义标签,页面内容不同时使用\r\n\t\r\n\t<module-tab name="选项卡一" @mounted="" @activated="" @deactivated="">\r\n\t\t// @mounted 标签页面首次打开事件\r\n\t\t// @activated 标签页面打开事件\r\n\t\t// @deactivated 标签页面关闭事件\r\n\t</module-tab>\r\n</module>\r\n```'},"81a1":function(t,e,n){},"81bf":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},"825a":function(t,e,n){"use strict";var i=n("861d"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},8293:function(t,e,n){},"83ab":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var i=n("d925"),r=n("e683");t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},8454:function(t,e,n){},"85f2":function(t,e,n){"use strict";n("04f3")},"861d":function(t,e,n){"use strict";var i=n("1626");t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},8709:function(t,e,n){"use strict";n("67e3")},8737:function(t,e,n){},"88a7":function(t,e,n){"use strict";var i=n("cb2d"),r=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.append),u=r(l["delete"]),d=r(l.forEach),h=r([].push),p=new s("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&i(l,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=[];d(this,(function(t,e){h(i,{key:e,value:t})})),a(e,1);var r,s=o(t),l=o(n),p=0,f=0,m=!1,g=i.length;while(p<g)r=i[p++],m||r.key===s?(m=!0,u(this,r.key)):f++;while(f<g)r=i[f++],r.key===s&&r.value===l||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},8925:function(t,e,n){"use strict";var i=n("e330"),r=n("1626"),o=n("c6cd"),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"89e3":function(t,e,n){"use strict";n.r(e),e["default"]='## 多模块\r\n\r\n```\r\n<module title="自适应高度">\r\n\t// 不定义height自适应高度\r\n</module>\r\n\r\n<module title="固定高度" height="200">\r\n\t// 定义height固定高度\r\n</module>\r\n\r\n<module title="自动高度" height="auto">\r\n\t// 定义height为auto根据内容高度变化\r\n</module>\r\n```'},"8bbf":function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8cef":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},"8d23":function(t,e,n){const i=n("2732");function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=i.mod(e,this.genPoly),r=this.degree-n.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n},t.exports=r},"8df4":function(t,e,n){"use strict";var i=n("7a77");function r(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r((function(e){t=e}));return{token:e,cancel:t}},t.exports=r},"8e23":function(t,e,n){},"8e8b":function(t,e,n){},"8e95":function(t,e,n){},"8fde":function(t,e,n){"use strict";n.r(e),e["default"]='## 单模块\r\n\r\n```\r\n<module title="标题" sub-title="副标题">\r\n\t<template #head>\r\n\t\t// 头部插槽\r\n\t</template>\r\n\t\r\n\t// 模块内容\r\n\t\r\n\t<template #foot>\r\n\t\t// 底部插槽\r\n\t</template>\r\n\t\r\n\t<template #button>\r\n\t\t// 按钮\r\n\t\t<c-button>按钮一</c-button>\r\n\t\t<c-button>按钮二</c-button>\r\n\t</template>\r\n</module>\r\n```'},"90ca":function(t,e,n){"use strict";n("e35e")},"90d8":function(t,e,n){"use strict";var i=n("c65b"),r=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!o(s,t)?e:i(a,t)}},"90e3":function(t,e,n){"use strict";var i=n("e330"),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},"90f9":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 各种列类型\r\n<c-table ref="table">\r\n\t// 拖拽列\r\n\t<c-table-column\r\n\t\ttype="drag"\r\n\t></c-table-column>\r\n\t\r\n\t// 选择列\r\n\t<c-table-column\r\n\t\ttype="selector"\r\n\t></c-table-column>\r\n\t\r\n\t// 展开列\r\n\t<c-table-column\r\n\t\tlabel="展开列"\r\n\t\ttype="expand"\r\n\t></c-table-column>\r\n\t\r\n\t// 排序列\r\n\t<c-table-column\r\n\t\tlabel="排序列"\r\n\t\ttype="sort"\r\n\t></c-table-column>\r\n\t\r\n\t// 操作列\r\n\t<c-table-column\r\n\t\tlabel="操作"\r\n\t\ttype="button"\r\n\t>\r\n\t\t<template #default="{data}">\r\n\t\t\t<c-table-button>按钮</c-table-button>\r\n\t\t</template>\r\n\t</c-table-column>\r\n</c-table>\r\n\r\n// 其它功能\r\n<c-table ref="table">\r\n\t// 多级表头\r\n\t<c-table-column\r\n\t\tlabel="多级表头"\r\n\t>\r\n\t\t<c-table-column\r\n\t\t\tlabel="子表头1"\r\n\t\t></c-table-column>\r\n\t\t<c-table-column\r\n\t\t\tlabel="子表头2"\r\n\t\t></c-table-column>\r\n\t</c-table-column>\r\n\r\n\t// 自定义列头内容\r\n\t<c-table-column>\r\n\t\t<template #head>\r\n\t\t\t<c-button>自定义头部</c-button>\r\n\t\t</template>\r\n\t</c-table-column>\r\n\r\n\t// 自定义单元格内容\r\n\t<c-table-column>\r\n\t\t<template #default="{data}">\r\n\t\t\t<span>id: {{data.id}}</span>\r\n\t\t</template>\r\n\t</c-table-column>\r\n\r\n\t// 固定合并行列\r\n\t<c-table-column\r\n\t\trow-span="2" // 固定合并行数\r\n\t\tcol-span="2" // 固定合并列数\r\n\t></c-table-column>\r\n\r\n\t// 动态计算合并行列\r\n\t<c-table-column\r\n\t\t:row-span="({data}, list) => {return 1}" // 根据当前行数据data和所有行数据list自行计算合并行数\r\n\t\t:col-span="({data}, list) => {return 1}" // 根据当前行数据data和所有行数据list自行计算合并列数\r\n\t></c-table-column>\r\n\t\r\n\t// 列数据合计\r\n\t<c-table-column\r\n\t\tsummed // 默认使用单元格的内容进行合计\r\n\t\t:summed="({data}) => {return data.num}" // 也可以传入函数返回自定义合计数据\r\n\t>\r\n\t\t// 自定义合计内容,不需要可不写\r\n\t\t<template #summed="{total}">\r\n\t\t\t合计:{{total}}\r\n\t\t</template>\r\n\t</c-table-column>\r\n</c-table>\r\n\r\n\r\n// 设置表格数据,和data属性功能相同\r\nthis.$refs.table.setData([...]);\r\n\r\n// 获取表格数据\r\nthis.$refs.table.getData();\r\n\r\n// 获取全部行对象\r\nthis.$refs.table.getRow();\r\n\r\n// 获取选中行数据\r\nthis.$refs.table.getRow(\'selected\');\r\n\r\n// 获取指定序号行数据\r\nthis.$refs.table.getRow(0);\r\nthis.$refs.table.getRow([0, 1, 2]);\r\n\r\n// 获取符合自定义条件的行数据\r\nthis.$refs.table.getRow(item => {\r\n\treturn true; // 这里返回判断条件\r\n});\r\n\r\n// 插入一行数据\r\nthis.$refs.table.push({});\r\n```\r\n\r\n## 属性配置\r\n\r\n### 表格主体 <c-table\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ndata | Array | - | 单选框组的值,可使用v-model属性绑定变量\r\npaging | Boolean | true | 是否显示分页栏\r\nborder | Boolean | false | 是否显示边框\r\nfixed-width | Boolean | false | 是否固定列宽\r\n@rowClick | Function | - | 行点击事件\r\n\r\n### 表格列 <c-table-column\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | - | 列类型<br>**drag**: 拖拽列<br>**selector**: 选择列<br>**expand**: 展开列<br>**sort**: 排序列<br>**button**: 操作列\r\nfixed | String | - | 是否固定列<br>**left**: 固定在左侧<br>**right**: 固定在右侧\r\nlabel | String | - | 列名\r\nname | String | - | 列数据字段名\r\nwidth | String | 100 | 列宽\r\nrequired | Boolean | false | 显示必填星号\r\nalign-center | Boolean | false | 内容是否居中\r\nrow-span | Number \\| String \\| Function | - | 合并行数\r\ncol-span | Number \\| String \\| Function | - | 合并列数\r\nsummed | Boolean \\| Function | false | 列合计\r\nmultiple | Boolean | true | 选择列是否支持多选\r\nadd-button | Boolean \\| String | false | 是否支持展开列添加子级按钮,可传入字符串定义按钮名称\r\nexpand-limit | String | - | 展开列最大展开层级,\r\nbutton-limit | String | 4 | 操作列最大展示按钮数,多余的按钮自动归为更多'},9103:function(t,e,n){"use strict";n("6d60")},9112:function(t,e,n){"use strict";var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9200:function(t,e,n){"use strict";n("3dd2")},"924f":function(t,e,n){const i=n("7bf0").getSymbolSize,r=7;e.getPositions=function(t){const e=i(t);return[[0,0],[e-r,0],[0,e-r]]}},"942a":function(t,e,n){},"94b5":function(t,e,n){},"94ca":function(t,e,n){"use strict";var i=n("d039"),r=n("1626"),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},"94e4":function(t,e,n){"use strict";n("a513")},"94f8":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[],l=[];(function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}var i=2,r=0;while(r<64)t(i)&&(r<8&&(s[r]=n(e.pow(i,.5))),l[r]=n(e.pow(i,1/3)),r++),i++})();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|t[e+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var b=s&u^~s&d,_=i&r^i&o^r&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=h+w+b+l[p]+c[p],k=y+_;h=d,d=u,u=s,s=a+x|0,a=o,o=r,r=i,i=x+k|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256}))},9582:function(t,e,n){const i=n("7bf0"),r=1335,o=21522,a=i.getBCHDigit(r);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let s=n<<10;while(i.getBCHDigit(s)-a>=0)s^=r<<i.getBCHDigit(s)-a;return(n<<10|s)^o}},9927:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-qrcode></c-qrcode>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 二维码内容\r\nsize | String \\| Number | 300 | 二维码尺寸,包含边距\r\nmargin | String \\| Number | 0 | 边距"},"9abb":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tooltip tip="提示信息">\r\n\t<c-button>按钮</c-button>\r\n\r\n\t<template #tip>\r\n\t\t<p>自定义提示内容</p>\r\n\t</template>\r\n</c-tooltip>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntip | String | - | 提示内容\r\nwidth | Number \\| String | - | 提示信息宽度\r\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\r\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向\r\ncolor | String | black | 颜色<br>**black**: 黑色<br>**white**: 白色'},"9bf2":function(t,e,n){"use strict";var i=n("83ab"),r=n("0cfb"),o=n("aed9"),a=n("825a"),s=n("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=u(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9ca8":function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfcgGiCg4SFhoMBiYqLjI2CjZCRjwFDQkFMPUk7MC4sOQFnoaGJk0OLYmFkAjcqkmiJTgEEBFhgWVplHSmgomekrwFAAR8BV2NbXF0dJ66JPolHVGZfXgMdJbyiv4lKAUZQPzI0GxkdEM0BSThSDDNPHEUTLQ/ZowGTPFEGNRYaTTZTFpBAFyOAhwsHJFBAQsSKiHq+7gF7UeACggQYKihYUiUEOh0rVkRAYQKCgxENQEDcFqmlokm9Ysq0N8llS5gzc0asaRMSTp0yWfb0CQzoTKFDGfFM+vKQU6eBAAA7"},"9d1b":function(t,e,n){"use strict";n.r(e),e["default"]="## 复杂布局\r\n\r\n```\r\n<module>\r\n\t<module-row></module-row>\r\n\t<module-row>\r\n\t\t<module-col></module-col>\r\n\t\t<module-col></module-col>\r\n\t</module-row>\r\n</module>\r\n```"},"9d94":function(t,e,n){const i=n("bbf0"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=i.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=o},"9dac":function(t,e,n){"use strict";n("3953")},a04b:function(t,e,n){"use strict";var i=n("c04e"),r=n("d9b5");t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},a0a0:function(t,e,n){},a11b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,n){var i=4*n,r=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(r-1)).concat(t.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},a29b:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-link>链接名称</c-link>\r\n<c-link></c-link> // 可不写连接名称,不写则展示链接地址\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nicon | Boolean \\| String | false | 是否显示icon,可传入icon的样式名自定义图标\r\ncolor | String | - | 文字颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**gray**: 灰色\r\nhref | String | - | 链接地址\r\ntarget | String | - | 赋值_blank新窗口打开"},a3d9:function(t,e,n){"use strict";n("8e8b")},a40e:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var t=this._key,e=t.words,n=[],i=0;i<56;i++){var r=a[i]-1;n[i]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var u=o[c]=[],d=l[c];for(i=0;i<24;i++)u[i/6|0]|=n[(s[i]-1+d)%28]<<31-i%6,u[4+(i/6|0)]|=n[28+(s[i+24]-1+d)%28]<<31-i%6;u[0]=u[0]<<1|u[0]>>>31;for(i=1;i<7;i++)u[i]=u[i]>>>4*(i-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(i=0;i<16;i++)h[i]=o[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^r[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function p(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}e.DES=r._createHelper(d);var f=o.TripleDES=r.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(i.create(n)),this._des2=d.createEncryptor(i.create(r)),this._des3=d.createEncryptor(i.create(o))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(f)}(),t.TripleDES}))},a46c:function(t,e,n){"use strict";n.r(e),e["default"]='## 弹性布局\r\n\r\n```\r\n<c-flex-row margin gap>\r\n\t<c-flex-col colspan="6">\r\n\t\t// 内容\r\n\t</c-flex-col>\r\n\t<c-flex-col colspan="6">\r\n\t\t// 内容\r\n\t</c-flex-col>\r\n</c-flex-row>\r\n```'},a513:function(t,e,n){},a817:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,r=i-n%i,o=n+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},a8ce:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var o=e[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return i.create(n,2*e)}};function o(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var a=o(e[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=o(t.charCodeAt(r)<<16-r%2*16);return i.create(n,2*e)}}}(),t.enc.Utf16}))},aa63:function(t,e,n){const i=n("7bf0"),r=n("7a43"),o=n("7ba0"),a=n("577e4"),s=n("d6c0"),l=n("924f"),c=n("7903"),u=n("34fc"),d=n("8d23"),h=n("c8aa"),p=n("9582"),f=n("bbf0"),m=n("befa");function g(t,e){const n=t.size,i=l.getPositions(e);for(let r=0;r<i.length;r++){const e=i[r][0],o=i[r][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||n<=e+i))for(let r=-1;r<=7;r++)o+r<=-1||n<=o+r||(i>=0&&i<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===i||6===i)||i>=2&&i<=4&&r>=2&&r<=4?t.set(e+i,o+r,!0,!0):t.set(e+i,o+r,!1,!0))}}function v(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2===0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}function b(t,e){const n=s.getPositions(e);for(let i=0;i<n.length;i++){const e=n[i][0],r=n[i][1];for(let n=-2;n<=2;n++)for(let i=-2;i<=2;i++)-2===n||2===n||-2===i||2===i||0===n&&0===i?t.set(e+n,r+i,!0,!0):t.set(e+n,r+i,!1,!0)}}function _(t,e){const n=t.size,i=h.getEncodedBits(e);let r,o,a;for(let s=0;s<18;s++)r=Math.floor(s/3),o=s%3+n-8-3,a=1===(i>>s&1),t.set(r,o,a,!0),t.set(o,r,a,!0)}function y(t,e,n){const i=t.size,r=p.getEncodedBits(e,n);let o,a;for(o=0;o<15;o++)a=1===(r>>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(i-15+o,8,a,!0),o<8?t.set(8,i-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(i-8,8,1,!0)}function w(t,e){const n=t.size;let i=-1,r=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2){6===s&&s--;while(1){for(let n=0;n<2;n++)if(!t.isReserved(r,s-n)){let i=!1;a<e.length&&(i=1===(e[a]>>>o&1)),t.set(r,s-n,i),o--,-1===o&&(a++,o=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}}function x(t,e,n){const r=new o;n.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),f.getCharCountIndicator(e.mode,t)),e.write(r)}));const a=i.getSymbolTotalCodewords(t),s=u.getTotalCodewordsCount(t,e),l=8*(a-s);r.getLengthInBits()+4<=l&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);const c=(l-r.getLengthInBits())/8;for(let i=0;i<c;i++)r.put(i%2?17:236,8);return k(r,t,e)}function k(t,e,n){const r=i.getSymbolTotalCodewords(e),o=u.getTotalCodewordsCount(e,n),a=r-o,s=u.getBlocksCount(e,n),l=r%s,c=s-l,h=Math.floor(r/s),p=Math.floor(a/s),f=p+1,m=h-p,g=new d(m);let v=0;const b=new Array(s),_=new Array(s);let y=0;const w=new Uint8Array(t.buffer);for(let i=0;i<s;i++){const t=i<c?p:f;b[i]=w.slice(v,v+t),_[i]=g.encode(b[i]),v+=t,y=Math.max(y,t)}const x=new Uint8Array(r);let k,S,D=0;for(k=0;k<y;k++)for(S=0;S<s;S++)k<b[S].length&&(x[D++]=b[S][k]);for(k=0;k<m;k++)for(S=0;S<s;S++)x[D++]=_[S][k];return x}function S(t,e,n,r){let o;if(Array.isArray(t))o=m.fromArray(t);else{if("string"!==typeof t)throw new Error("Invalid data");{let i=e;if(!i){const e=m.rawSplit(t);i=h.getBestVersionForData(e,n)}o=m.fromString(t,i||40)}}const s=h.getBestVersionForData(o,n);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<s)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+s+".\n")}else e=s;const l=x(e,n,o),u=i.getSymbolSize(e),d=new a(u);return g(d,e),v(d),b(d,e),y(d,n,0),e>=7&&_(d,e),w(d,l),isNaN(r)&&(r=c.getBestMask(d,y.bind(null,d,n))),c.applyMask(r,d),y(d,n,r),{modules:d,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}e.create=function(t,e){if("undefined"===typeof t||""===t)throw new Error("No input text");let n,o,a=r.M;return"undefined"!==typeof e&&(a=r.from(e.errorCorrectionLevel,r.M),n=h.from(e.version),o=c.from(e.maskPattern),e.toSJISFunc&&i.setToSJISFunction(e.toSJISFunc)),S(t,n,a,o)}},aaef:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){
|
|
13
13
|
/** @preserve
|
|
14
14
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
15
15
|
* derived from CryptoJS.mode.CTR
|
|
16
16
|
* Jan Hruby jhruby.web@gmail.com
|
|
17
17
|
*/
|
|
18
|
-
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}function i(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var r=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)t[e+l]^=s[l]}});return e.Decryptor=r,e}(),t.mode.CTRGladman}))},ab1f:function(t,e,n){"use strict";n("50f6")},ab36:function(t,e,n){"use strict";var i=n("861d"),r=n("9112");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},ad2f:function(t,e,n){},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},aeb0:function(t,e,n){"use strict";var i=n("9bf2").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){"use strict";var i=n("83ab"),r=n("d039");t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b005:function(t,e,n){"use strict";n("6ac6")},b035:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-input></c-input>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ntype | String | text | 按钮尺寸<br>**text**: 文本框<br>**password**: 密码框<br>**number**: 数字框<br>**stepper**: 步进器<br>**textarea**: 多行文本\r\nplaceholder | String | - | 提示占位符\r\nmaxlength | Number \\| String | - | 可输入最大字符数\r\ndecimal | Number \\| String | 0 | 数字框小数位数\r\nrange | Number \\| Array | 0 | 数字框数字范围<br>可输入逗号隔开的字符串('0,100')或数组([0, 100])\r\nprepend-text | String | - | 前置文本内容\r\nappend-text | String | - | 后置文本内容\r\nvisible | Boolean | false | 密码框显示密码按钮\r\nstep | Number \\| String | 1 | 步进器精度\r\nstep-controls | String | both | 步进器按钮位置<br>**both**: 两侧<br>**side**: 一侧\r\ndisabled | Boolean | false | 是否禁用输入框\r\nreadonly | Boolean | false | 输入框是否只读\r\nclear | Boolean | false | 是否显示清空按钮\r\n@input | Function | - | 输入事件\r\n@focus | Function | - | 焦点移入事件\r\n@blur | Function | - | 焦点移出事件\r\n@change | Function | - | 内容改变事件\r\n@suggest | Function(value, resolve) | - | 输入建议事件"},b414:function(t,e,n){},b42e:function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:i)(e)}},b46e:function(t,e,n){},b50d:function(t,e,n){"use strict";var i=n("c532"),r=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),c=n("3934"),u=n("2d83");t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"],(i.isBlob(d)||i.isFile(d))&&d.type&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=unescape(encodeURIComponent(t.auth.password))||"";h.Authorization="Basic "+btoa(f+":"+m)}var g=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||c(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&i.forEach(h,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},b622:function(t,e,n){"use strict";var i=n("da84"),r=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),c=i.Symbol,u=r("wks"),d=l?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),u[t]}},b74a:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\r\n<c-detail column="3">\n\t<c-detail-item label="字段名" colspan="2">\n\t\t单独设置占两列\n\t</c-detail-item>\n\t\n\t<c-detail-item label="字段名">\n\t\t内容\n\t</c-detail-item>\n</c-detail>\n```\n\n## 属性配置\r\n\r\n### 详情主体 <c-detail\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ncolumn | String | - | 列数\r\n\r\n### 详情项 <c-detail-item\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\ncolspan | String | 1 | 该项占几列'},b767:function(t,e,n){"use strict";n("6fb7")},b86b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,i=n.Word,r=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b959:function(t,e,n){},b980:function(t,e,n){"use strict";var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},bbf0:function(t,e,n){const i=n("27a3"),r=n("0425");function o(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return o(t)}catch(i){return n}}},bc3a:function(t,e,n){t.exports=n("cee4")},bd2f:function(t,e,n){"use strict";n("4f25")},bd4c:function(t,e,n){},befa:function(t,e,n){const i=n("bbf0"),r=n("dd7e"),o=n("9d94"),a=n("0196"),s=n("2f3a"),l=n("0425"),c=n("7bf0"),u=n("10b0");function d(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const i=[];let r;while(null!==(r=t.exec(n)))i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function p(t){const e=h(l.NUMERIC,i.NUMERIC,t),n=h(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let r,o;c.isKanjiModeEnabled()?(r=h(l.BYTE,i.BYTE,t),o=h(l.KANJI,i.KANJI,t)):(r=h(l.BYTE_KANJI,i.BYTE,t),o=[]);const a=e.concat(n,r,o);return a.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return o.getBitsLength(t);case i.KANJI:return s.getBitsLength(t);case i.BYTE:return a.getBitsLength(t)}}function m(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function g(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];switch(r.mode){case i.NUMERIC:e.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:e.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:e.push([r,{data:r.data,mode:i.BYTE,length:d(r.data)}]);break;case i.BYTE:e.push([{data:r.data,mode:i.BYTE,length:d(r.data)}])}}return e}function v(t,e){const n={},r={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),n[u]={node:c,lastCount:0},r[u]={};for(let t=0;t<o.length;t++){const a=o[t];n[a]&&n[a].node.mode===c.mode?(r[a][u]=f(n[a].lastCount+c.length,c.mode)-f(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),r[a][u]=f(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,e))}}o=l}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:n}}function b(t,e){let n;const l=i.getBestModeForData(t);if(n=i.from(e,l),n!==i.BYTE&&n.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(l));switch(n!==i.KANJI||c.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(t);case i.ALPHANUMERIC:return new o(t);case i.KANJI:return new s(t);case i.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"===typeof e?t.push(b(e,null)):e.data&&t.push(b(e.data,e.mode)),t}),[])},e.fromString=function(t,n){const i=p(t,c.isKanjiModeEnabled()),r=g(i),o=v(r,n),a=u.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return e.fromArray(m(s))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},c04e:function(t,e,n){"use strict";var i=n("c65b"),r=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c0c9:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-select></c-select> // 下拉框\r\n<c-region></c-region> // 地址框\r\n<c-datetime></c-datetime> // 日期框\r\n<c-color></c-color> // 颜色框\r\n<c-transfer></c-transfer> // 穿梭框\r\n```\r\n\r\n## 属性配置\r\n\r\n### 下拉框 <c-select\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 下拉框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 下拉框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\nplaceholder | String | - | 提示占位符\r\noptions | Array | - | 选项数据:[{"name": "选项名", "value": "选项值"}]\r\ndisabled | Boolean | false | 是否禁用下拉框\r\nmultiple | Boolean \\| Object | false | 是否支持多选\r\nmultiple.limit | Number | - | 多选最多可以选的选项数\r\nmultiple.linefeed | Boolean | false | 多选标签是否换行显示\r\nsearch | Boolean \\| Object | false | 是否支持搜索,异步模式下默认开启\r\nsearch.empty | Boolean | true | 异步模式下是否支持空搜索\r\nasync | Boolean | false | 异步模式\r\nclear | Boolean | false | 是否显示清空按钮\r\n@change | Function | - | 选项变化事件\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用\r\n@customEvent | Function(data, resolve) | - | 自定义事件\r\n\r\n### 地址框 <c-region\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 地址框的值,可使用v-model属性绑定变量\r\nprovince-name | String | - | 省份字段名\r\ncity-name | String | - | 城市字段名\r\ncounty-name | String | - | 区县字段名\r\naddress-name | String | - | 详细街道字段名\r\nlevel | String \\| Number | 3 | 地址库级别<br>**1**: 到省级<br>**2**: 到市级<br>**3**: 到区县级<br>**4**: 到详细街道地址\r\n\r\n### 日期框 <c-datetime\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 日期框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\nstart-name | String | - | 开始日期字段名\r\nend-name | String | - | 结束日期字段名\r\nplaceholder | String | - | 提示占位符\r\ntype | String | datetime | 日期类型<br>**datetime**: 日期+时间<br>**date**: 仅日期<br>**time**: 仅时间\r\ntime-accuracy | String | sec | 时间精度<br>**hour**: 到小时<br>**min**: 到分钟<br>**sec**: 到秒\r\ndefault-time | String \\| Array | - | 默认时间\r\nrange | Boolean | - | 是否为范围选择\r\nformat | Boolean | \'yyyy-MM-dd hh:mm:ss\' | 日期格式\r\ndisabled | Boolean | false | 是否禁用日期框\r\n\r\n### 颜色框 <c-color\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 颜色框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\n\r\n### 穿梭框 <c-transfer\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Array | - | 穿梭框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 穿梭框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\ntitle | String \\| Array | 数据 | 穿梭框的标题,传入字符串xx时标题为"全部xx"和"已选xx",也可传入数组:[\'左侧标题\', \'右侧标题\']\r\ndata | Array | - | 所有可选数据:[{"name": "选项名", "value": "选项值"}]\r\nsearch | Boolean \\| Object | false | 搜索功能,异步模式下默认开启\r\nsearch.immediate | Boolean | true | 异步模式下是否立即加载数据\r\nsearch.placeholder | String | - | 搜索框提示信息\r\nasync | Boolean | false | 异步模式\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用'},c198:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.BlockCipher,r=e.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var m=t[n],g=t[m],v=t[g],b=257*t[r]^16843008*r;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;b=16843009*v^65537*g^257*m^16843008*n;d[r]=b<<24|b>>>8,h[r]=b<<16|b>>>16,p[r]=b<<8|b>>>24,f[r]=b,n?(n=m^t[t[t[v^m]]],i^=t[t[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)s<n?a[s]=e[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=u<<8|u>>>24,u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c<r;c++){s=r-c;if(c%4)var u=a[s];else u=a[s-4];l[c]=c<4||s<=4?u:d[o[u>>>24]]^h[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,l,c,u,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,d,h,p,f,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],d=t[e+2]^n[2],h=t[e+3]^n[3],p=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],b=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=b}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++];t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=b},keySize:8});e.AES=i._createHelper(g)}(),t.AES}))},c1bc:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64url={stringify:function(t,e=!0){var n=t.words,i=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&a+.75*d<i;d++)o.push(r.charAt(u>>>6*(3-d)&63));var h=r.charAt(64);if(h)while(o.length%4)o.push(h);return o.join("")},parse:function(t,e=!0){var n=t.length,i=e?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<i.length;a++)r[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return o(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64url}))},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c3b6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=r.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}e.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(s)}(),t.RC4}))},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c49f:function(t,e,n){},c532:function(t,e,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function d(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===r.call(t)}function g(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function b(t){return"[object Function]"===r.call(t)}function _(t){return p(t)&&b(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function S(){var t={};function e(e,n){f(t[n])&&f(e)?t[n]=S(t[n],e):f(e)?t[n]=S({},e):o(e)?t[n]=e.slice():t[n]=e}for(var n=0,i=arguments.length;n<i;n++)k(arguments[n],e);return t}function D(t,e,n){return k(e,(function(e,r){t[r]=n&&"function"===typeof e?i(e,n):e})),t}function C(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:p,isPlainObject:f,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:b,isStream:_,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:k,merge:S,extend:D,trim:w,stripBOM:C}},c600:function(t,e,n){},c65b:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){"use strict";var i=n("e330"),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},c6cd:function(t,e,n){"use strict";var i=n("da84"),r=n("6374"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c73d:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("edd0"),a=n("83ab"),s=TypeError,l=Object.defineProperty,c=r.self!==r;try{if(a){var u=Object.getOwnPropertyDescriptor(r,"self");!c&&u&&u.get&&u.enumerable||o(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw s("Illegal invocation");l(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:c},{self:r})}catch(d){}},c7ef:function(t,e,n){},c8aa:function(t,e,n){const i=n("7bf0"),r=n("34fc"),o=n("7a43"),a=n("bbf0"),s=n("27a3"),l=7973,c=i.getBCHDigit(l);function u(t,n,i){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}function d(t,e){return a.getCharCountIndicator(t,e)+4}function h(t,e){let n=0;return t.forEach((function(t){const i=d(t.mode,e);n+=i+t.getBitsLength()})),n}function p(t,n){for(let i=1;i<=40;i++){const r=h(t,i);if(r<=e.getCapacity(i,n,a.MIXED))return i}}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=i.getSymbolTotalCodewords(t),l=r.getTotalCodewordsCount(t,e),c=8*(o-l);if(n===a.MIXED)return c;const u=c-d(n,t);switch(n){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(t,e){let n;const i=o.from(e,o.M);if(Array.isArray(t)){if(t.length>1)return p(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return u(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;while(i.getBCHDigit(e)-c>=0)e^=l<<i.getBCHDigit(e)-c;return t<<12|e}},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){"use strict";var i=n("e330"),r=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);while(e.length>c)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},cb2d:function(t,e,n){"use strict";var i=n("1626"),r=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){"use strict";var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cdce:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},cee4:function(t,e,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var c=l(s);c.Axios=o,c.create=function(t){return l(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},d012:function(t,e,n){"use strict";t.exports={}},d013:function(t,e,n){"use strict";n.r(e),e["default"]='## 栅格布局\r\n\r\n```\r\n<c-grid-row margin gap>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n</c-grid-row>\r\n```'},d039:function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d055:function(t,e,n){const i=n("67dd"),r=n("aa63"),o=n("4146"),a=n("4006");function s(t,e,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!i())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=o=void 0):2!==l||e.getContext||(o=n,n=e,e=void 0),new Promise((function(i,a){try{const a=r.create(n,o);i(t(a,e,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=e,e=o=void 0):3===l&&(e.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=e,e=void 0));try{const i=r.create(n,o);a(null,t(i,e,o))}catch(u){a(u)}}e.create=r.create,e.toCanvas=s.bind(null,o.render),e.toDataURL=s.bind(null,o.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},d066:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d257:function(t,e,n){},d278:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\n<c-window ref="window">\n\t<div>窗口内容</div>\n\n\t<template #beforeButton>\n\t\t自定义内容\n\t</template>\n\t\n\t<template #button>\n\t\t<c-button>按钮名称</c-button>\n\t</template>\n</c-window>\n\nthis.$refs.window.show(follow, position, align) // 显示悬浮窗口,follow:跟随的目标节点,position:跟随位置(top、bottom、left、right),align:对齐方向(start、end)\nthis.$refs.window.hide() // 隐藏悬浮窗口\n```\n\n## 属性配置\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\ntitle | String | - | 悬浮窗口标题\nwidth | Number \\| String | 400 | 悬浮窗口宽度\nheight | Number \\| String | - | 悬浮窗口内容区域高度\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向'},d2bb:function(t,e,n){"use strict";var i=n("7282"),r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},d30d:function(t,e,n){},d359:function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfZgGiCg4SFhoMBiYqLjI2CjZCRjwFnlZUBQ0JBTD1JOzAuLDmJk41Di2JhZAI3KqRoiZaXTgEEBFhgWVplHSmvkUABHwFXY1tcXR0nv5SyAT6JR1RmX14DHSXMjUoBRlA/MjQbGR0QzLJnAUk4UgwzTxxFEy0P2ow8UQY1FhpNNlMLSJxzFiOAhwsHJFBAQsSKCHuLXhS4gCABhgoKllQJMdBSAB0rVkRAYQKCgxENQECMJAlWM3QwnQUoxZLlpJg4L810WdOmy5w4V/ZcdBMoTKFDkSY9xLRpIAA7"},d3cb:function(t,e,n){},d429:function(t,e,n){"use strict";n.r(e),e["default"]='# 一级标题\n\n> 高亮区域\n\n## 二级标题\n\n正文内容**加粗**\r\n\r\n[链接](#gridOptions)\n\n```\n代码区域\n```\n\n<a id="gridOptions"></a>\n\n表头 | 表头 | 表头\n---- | ---- | ----\n表体 | 表体 | 表体<br>换行'},d68a:function(t,e,n){},d6c0:function(t,e,n){const i=n("7bf0").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7];for(let i=1;i<e-1;i++)o[i]=o[i-1]-r;return o.push(6),o.reverse()},e.getPositions=function(t){const n=[],i=e.getRowColCoords(t),r=i.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([i[e],i[t]]);return n}},d6d6:function(t,e,n){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},d6e6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Hasher,r=e.x64,o=r.Word,a=r.WordArray,s=e.algo;function l(){return o.create.apply(o,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=l()})();var d=s.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=r.high,g=r.low,v=o.high,b=o.low,_=a.high,y=a.low,w=s.high,x=s.low,k=l.high,S=l.low,D=d.high,C=d.low,E=h.high,A=h.low,T=p,B=f,F=m,$=g,L=v,M=b,P=_,I=y,N=w,H=x,z=k,O=S,R=D,U=C,K=E,W=A,j=0;j<80;j++){var V,q,Y=u[j];if(j<16)q=Y.high=0|t[e+2*j],V=Y.low=0|t[e+2*j+1];else{var X=u[j-15],G=X.high,Z=X.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,J=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),tt=u[j-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=u[j-7],at=ot.high,st=ot.low,lt=u[j-16],ct=lt.high,ut=lt.low;V=J+st,q=Q+at+(V>>>0<J>>>0?1:0),V+=rt,q=q+it+(V>>>0<rt>>>0?1:0),V+=ut,q=q+ct+(V>>>0<ut>>>0?1:0),Y.high=q,Y.low=V}var dt=N&z^~N&R,ht=H&O^~H&U,pt=T&F^T&L^F&L,ft=B&$^B&M^$&M,mt=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),gt=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),vt=(N>>>14|H<<18)^(N>>>18|H<<14)^(N<<23|H>>>9),bt=(H>>>14|N<<18)^(H>>>18|N<<14)^(H<<23|N>>>9),_t=c[j],yt=_t.high,wt=_t.low,xt=W+bt,kt=K+vt+(xt>>>0<W>>>0?1:0),St=(xt=xt+ht,kt=kt+dt+(xt>>>0<ht>>>0?1:0),xt=xt+wt,kt=kt+yt+(xt>>>0<wt>>>0?1:0),xt=xt+V,kt=kt+q+(xt>>>0<V>>>0?1:0),gt+ft),Dt=mt+pt+(St>>>0<gt>>>0?1:0);K=R,W=U,R=z,U=O,z=N,O=H,H=I+xt|0,N=P+kt+(H>>>0<I>>>0?1:0)|0,P=L,I=M,L=F,M=$,F=T,$=B,B=xt+St|0,T=kt+Dt+(B>>>0<xt>>>0?1:0)|0}f=i.low=f+B,i.high=p+T+(f>>>0<B>>>0?1:0),g=r.low=g+$,r.high=m+F+(g>>>0<$>>>0?1:0),b=o.low=b+M,o.high=v+L+(b>>>0<M>>>0?1:0),y=a.low=y+I,a.high=_+P+(y>>>0<I>>>0?1:0),x=s.low=x+H,s.high=w+N+(x>>>0<H>>>0?1:0),S=l.low=S+O,l.high=k+z+(S>>>0<O>>>0?1:0),C=d.low=C+U,d.high=D+R+(C>>>0<U>>>0?1:0),A=h.low=A+W,h.high=E+K+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var r=this._hash.toX32();return r},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(d),e.HmacSHA512=i._createHmacHelper(d)}(),t.SHA512}))},d6f7:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-draw-sort v-model="sortList" class="flex-wrap">\r\n\t<template #default="{item, id, index}">\r\n\t\t<c-draw-item :key="id" :index="index">\r\n\t\t\t// 内容\r\n\t\t</c-draw-item>\r\n\t</template>\r\n</c-draw-sort>\r\n```'},d7aa:function(t,e,n){},d857:function(t,e,n){"use strict";n("d3cb")},d8a7:function(t,e,n){},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d933:function(t,e,n){},d9b5:function(t,e,n){"use strict";var i=n("d066"),r=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},d9e2:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=r[s],c=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,c),i({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){"use strict";var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},dcc6:function(t,e,n){},dd7e:function(t,e,n){const i=n("bbf0");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},df1e:function(t,e,n){},df2f:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+a[c];d+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),t.SHA1}))},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),a="/"===o(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),o=i(n.split("/")),a=Math.min(r.length,o.length),s=a,l=0;l<a;l++)if(r[l]!==o[l]){s=l;break}var c=[];for(l=s;l<r.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===i&&(r=!1,i=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e12b:function(t,e,n){},e238:function(t,e,n){},e330:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){"use strict";var i=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},e474:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-switch></c-switch>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Any | false | 开关当前的状态值,可使用v-model属性绑定变量\r\nstate-value | Array | [true, false] | 开关的状态值,第0项对于打开状态,第1项对应关闭状态\r\nstate-text | Array | ['开启', '关闭']] | 开关的状态文字,第0项对于打开状态,第1项对应关闭状态\r\nstate-color | Array | ['#00B578', '#eee'] | 开关的状态颜色,第0项对于打开状态,第1项对应关闭状态\r\n@beforeChange | Function(state, next) | - | 开关状态变更前的回调函数<br>**state**: 开关变更前的状态<br>**next**: 继续变更开关状态的方法,不调用则开关状态不变更\r\n@change | Function(state) | - | 开关状态变更后的回调函数<br>**state**: 开关变更后的状态"},e566:function(t,e,n){"use strict";n("d30d")},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),d=n("e391"),h=n("ab36"),p=n("6f19"),f=n("83ab"),m=n("c430");t.exports=function(t,e,n,g){var v="stackTraceLimit",b=g?2:1,_=t.split("."),y=_[_.length-1],w=i.apply(null,_);if(w){var x=w.prototype;if(!m&&r(x,"cause")&&delete x.cause,!n)return w;var k=i("Error"),S=e((function(t,e){var n=d(g?e:t,void 0),i=g?new w(t):new w;return void 0!==n&&o(i,"message",n),p(i,S,i.stack,2),this&&a(x,this)&&u(i,this,S),arguments.length>b&&h(i,arguments[b]),i}));if(S.prototype=x,"Error"!==y?s?s(S,k):l(S,k,{name:!0}):f&&v in w&&(c(S,w,v),c(S,w,"prepareStackTrace")),l(S,w),!m)try{x.name!==y&&o(x,"name",y),x.constructor=S}catch(D){}return S}}},e61b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],u=[],d=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=e%5,r=(2*t+3*e)%5;t=i,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var l=0,h=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?h^=1<<f:l^=1<<f-32}128&o?o=o<<1^113:o<<=1}d[a]=s.create(l,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=s.create()})();var p=l.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],a=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[r];s.high^=a,s.low^=o}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){s=n[p+5*g];f^=s.high,m^=s.low}var v=h[p];v.high=f,v.low=m}for(p=0;p<5;p++){var b=h[(p+4)%5],_=h[(p+1)%5],y=_.high,w=_.low;for(f=b.high^(y<<1|w>>>31),m=b.low^(w<<1|y>>>31),g=0;g<5;g++){s=n[p+5*g];s.high^=f,s.low^=m}}for(var x=1;x<25;x++){s=n[x];var k=s.high,S=s.low,D=c[x];D<32?(f=k<<D|S>>>32-D,m=S<<D|k>>>32-D):(f=S<<D-32|k>>>64-D,m=k<<D-32|S>>>64-D);var C=h[u[x]];C.high=f,C.low=m}var E=h[0],A=n[0];E.high=A.high,E.low=A.low;for(p=0;p<5;p++)for(g=0;g<5;g++){x=p+5*g,s=n[x];var T=h[x],B=h[(p+1)%5+5*g],F=h[(p+2)%5+5*g];s.high=T.high^~B.high&F.high,s.low=T.low^~B.low&F.low}s=n[0];var $=d[l];s.high^=$.high,s.low^=$.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new r.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3}))},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6c5:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 单选框\r\n<c-radio-group>\r\n\t<c-radio value="1">选项一</c-radio>\r\n\t<c-radio value="2">选项二</c-radio>\r\n</c-radio-group>\r\n<c-radio-group :options="[{"name": "选项一", "value": "1"}]"></c-radio-group>\r\n\r\n// 复选框\r\n<c-checkbox-group>\r\n\t<c-checkbox value="1">选项一</c-checkbox>\r\n\t<c-checkbox value="2">选项二</c-checkbox>\r\n</c-checkbox-group>\r\n<c-checkbox-group :options="[{"name": "选项一", "value": "1"}]"></c-checkbox-group>\r\n```\r\n\r\n## 属性配置\r\n\r\n### 单选框组 <c-radio-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 单选框组的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用单选框组下所有单选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用单选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 单选框 <c-radio\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在单选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用单选框\r\n\r\n### 复选框组 <c-checkbox-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 复选框组的值,可输入逗号隔开的字符串(\'1,2\')或数组([1, 2]),可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用复选框组下所有复选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用复选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 复选框 <c-checkbox\\>\r\n```\r\n<c-checkbox\\>组件可在复选框组中使用,也可独立使用\r\n```\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在复选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用复选框\r\n@change | Function | - | 勾选状态改变事件,仅独立使用时可用\r\n@click | Function | - | 复选框点击事件'},e731:function(t,e,n){"use strict";n("ad2f")},e893:function(t,e,n){"use strict";var i=n("1a2d"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},e8b5:function(t,e,n){"use strict";var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"===i(t)}},edd0:function(t,e,n){"use strict";var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},f0ae:function(t,e,n){"use strict";n("8d8e")},f4ea:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=a[s]}});return e.Decryptor=n,e}(),t.mode.CTR}))},f5df:function(t,e,n){"use strict";var i=n("00ee"),r=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=l(t),s))?n:c?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},f6b4:function(t,e,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},f772:function(t,e,n){"use strict";var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"i18n",(function(){return Df})),n.d(e,"cryptoJs",(function(){return Ih.a})),n.d(e,"qrcode",(function(){return Hh.a})),n.d(e,"validate",(function(){return Hs})),n.d(e,"shortcutKey",(function(){return yf})),n.d(e,"debounce",(function(){return Ef})),n.d(e,"throttle",(function(){return Af})),n.d(e,"cookie",(function(){return Tf})),n.d(e,"parseFile",(function(){return Bf})),n.d(e,"createStore",(function(){return Ln})),n.d(e,"getStore",(function(){return Mn})),n.d(e,"mapStore",(function(){return Pn})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("14d9"),n("37f6"),n("4e02"),n("69b1");var o=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"vue-component-library"},[e("div",{staticClass:"lang flex"},[e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="zh"}}},[t._v("中文")]),e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="en"}}},[t._v("English")])],1),t._l(t.docTab,(function(n,i){return e("c-button",{key:i,staticClass:"tab",attrs:{size:"form",color:t.crtTab==n?t.crtTabColor:""},on:{click:function(e){t.crtTab=n}}},[t._v(t._s(n))])})),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.marked.parse("# "+t.crtTab))}}),e("api-button",{directives:[{name:"show",rawName:"v-show",value:"按钮"==t.crtTab,expression:"crtTab == '按钮'"}]}),e("api-input",{directives:[{name:"show",rawName:"v-show",value:"输入框"==t.crtTab,expression:"crtTab == '输入框'"}]}),e("api-options",{directives:[{name:"show",rawName:"v-show",value:"单复选框"==t.crtTab,expression:"crtTab == '单复选框'"}]}),e("api-selector",{directives:[{name:"show",rawName:"v-show",value:"选择器"==t.crtTab,expression:"crtTab == '选择器'"}]}),e("api-switch",{directives:[{name:"show",rawName:"v-show",value:"开关"==t.crtTab,expression:"crtTab == '开关'"}]}),e("api-file",{directives:[{name:"show",rawName:"v-show",value:"文件"==t.crtTab,expression:"crtTab == '文件'"}]}),e("api-editor",{directives:[{name:"show",rawName:"v-show",value:"编辑器"==t.crtTab,expression:"crtTab == '编辑器'"}]}),e("api-link",{directives:[{name:"show",rawName:"v-show",value:"链接"==t.crtTab,expression:"crtTab == '链接'"}]}),e("api-tooltip",{directives:[{name:"show",rawName:"v-show",value:"提示信息"==t.crtTab,expression:"crtTab == '提示信息'"}]}),e("api-title",{directives:[{name:"show",rawName:"v-show",value:"标题"==t.crtTab,expression:"crtTab == '标题'"}]}),e("api-pagination",{directives:[{name:"show",rawName:"v-show",value:"分页栏"==t.crtTab,expression:"crtTab == '分页栏'"}]}),e("api-table",{directives:[{name:"show",rawName:"v-show",value:"表格"==t.crtTab,expression:"crtTab == '表格'"}]}),e("api-form",{directives:[{name:"show",rawName:"v-show",value:"表单"==t.crtTab,expression:"crtTab == '表单'"}]}),e("api-detail",{directives:[{name:"show",rawName:"v-show",value:"详情"==t.crtTab,expression:"crtTab == '详情'"}]}),e("api-popup",{directives:[{name:"show",rawName:"v-show",value:"消息弹窗"==t.crtTab,expression:"crtTab == '消息弹窗'"}]}),e("api-dialog",{directives:[{name:"show",rawName:"v-show",value:"会话弹窗"==t.crtTab,expression:"crtTab == '会话弹窗'"}]}),e("api-window",{directives:[{name:"show",rawName:"v-show",value:"悬浮窗口"==t.crtTab,expression:"crtTab == '悬浮窗口'"}]}),e("api-preview",{directives:[{name:"show",rawName:"v-show",value:"媒体预览"==t.crtTab,expression:"crtTab == '媒体预览'"}]}),e("api-tab",{directives:[{name:"show",rawName:"v-show",value:"选项卡"==t.crtTab,expression:"crtTab == '选项卡'"}]}),e("api-layout",{directives:[{name:"show",rawName:"v-show",value:"布局"==t.crtTab,expression:"crtTab == '布局'"}]}),e("api-module",{directives:[{name:"show",rawName:"v-show",value:"模块"==t.crtTab,expression:"crtTab == '模块'"}]}),e("api-draw-sort",{directives:[{name:"show",rawName:"v-show",value:"拖拽排序"==t.crtTab,expression:"crtTab == '拖拽排序'"}]}),e("api-dropdown",{directives:[{name:"show",rawName:"v-show",value:"下拉菜单"==t.crtTab,expression:"crtTab == '下拉菜单'"}]}),e("api-right-menu",{directives:[{name:"show",rawName:"v-show",value:"右键菜单"==t.crtTab,expression:"crtTab == '右键菜单'"}]}),e("api-tree",{directives:[{name:"show",rawName:"v-show",value:"树"==t.crtTab,expression:"crtTab == '树'"}]}),e("api-steps",{directives:[{name:"show",rawName:"v-show",value:"步骤条"==t.crtTab,expression:"crtTab == '步骤条'"}]}),e("api-progress",{directives:[{name:"show",rawName:"v-show",value:"进度条"==t.crtTab,expression:"crtTab == '进度条'"}]}),e("api-qrcode",{directives:[{name:"show",rawName:"v-show",value:"二维码"==t.crtTab,expression:"crtTab == '二维码'"}]})],2)])},a=[],s=function(){var t=this,e=t._self._c;return e("div",[e("div",[t._l(t.buttonSize,(function(n,i){return e("div",{key:i},[e("c-button",{key:"n"+i,attrs:{size:n}},[t._v("按钮")]),t._l(t.buttonHollow,(function(i,r){return t._l(t.buttonColor,(function(o,a){return e("c-button",{key:`${r}${a}`,attrs:{size:n,color:o,hollow:i}},[t._v("按钮")])}))}))],2)})),e("div",[e("c-button",{attrs:{disabled:""}},[t._v("按钮")])],1),e("div",{staticClass:"flex"},[e("c-button",{attrs:{"prepend-icon":"c-icon-search"}},[t._v("按钮")]),e("c-button",{attrs:{"append-icon":"c-icon-search"}},[t._v("按钮")])],1)],2),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("button"))}})])},l=[],c={data(){return{buttonSize:["normal","form","dialog"],buttonColor:["main","lesser","red","green","blue","yellow"],buttonHollow:[!0,!1]}}},u=c;n("e566");function d(t,e,n,i,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var h=d(u,s,l,!1,null,"1a1f6dc0",null),p=h.exports,f=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-input",{on:{suggest:t.suggestHandle}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"number",decimal:"2",range:"0,9999"}})],1),e("br"),e("p",[e("c-input",{attrs:{"prepend-text":"前置文本","append-text":"后置文本"}})],1),e("br"),e("p",[e("c-input",{scopedSlots:t._u([{key:"prependText",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"prependIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0},{key:"appendText",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0}])})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"10",range:"0,100"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"0.1",range:"0,1",decimal:"1","step-controls":"side"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"password",visible:""}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"textarea",maxlength:"100"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("input"))}})])},m=[],g={data(){return{}},mounted(){},methods:{suggestHandle(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push(t+"输入建议"+o);e(r)}}},v=g,b=d(v,f,m,!1,null,"5bbd0d88",null),_=b.exports,y=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-radio-group",{attrs:{value:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-radio-group",{attrs:{options:t.options,value:"3",disabled:""},on:{change:t.changeHandle}})],1),e("p",[e("c-checkbox-group",{attrs:{limit:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-checkbox-group",{attrs:{options:t.options,value:"2,3",disabled:""},on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("options"))}})])},w=[],x={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}]}},mounted(){},methods:{changeHandle(t){console.log(t)}}},k=x,S=d(k,y,w,!1,null,"7eb1e109",null),D=S.exports,C=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{attrs:{"unit-width":"400"}},[e("c-form-item",{attrs:{label:"下拉框",tip:"单选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:"",search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选换行展示 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:{linefeed:!0},search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 异步选项"}},[e("p",[e("c-select",{attrs:{"value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 异步选项"}},[e("p",[e("c-select",{attrs:{multiple:"","value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"自定义事件"}},[e("p",[e("c-select",{attrs:{multiple:{linefeed:!0}},on:{customEvent:t.customEvent,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"地址框"}},[e("p",[e("c-region",{attrs:{level:"4"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"日期框"}},[e("p",[e("c-datetime",{on:{change:t.changeHandle}})],1),e("br"),e("p",[e("c-datetime",{attrs:{range:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"颜色框"}},[e("p",[e("c-color",{on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"穿梭框"}},[e("p",[e("c-transfer",{attrs:{data:t.initRandomOptions},on:{search:t.randomOptions,change:t.changeHandle}})],1)])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("selector"))}})])},E=[],A={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2,children:[{name:"optionSub1",value:21},{name:"optionSub2",value:22,children:[]},{name:"optionSub3",value:23}]},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},customEvent(t,e){this.randomOptions("",e)},changeHandle(t){console.log(t)}}},T=A,B=d(T,C,E,!1,null,"4492c4d6",null),F=B.exports,$=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-switch",{on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("switch"))}})])},L=[],M={data(){return{}},mounted(){},methods:{changeHandle(t){console.log(t)}}},P=M,I=d(P,$,L,!1,null,"b20cbce2",null),N=I.exports,H=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png,https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png",type:"image,video",multiple:"2",media:""},scopedSlots:t._u([{key:"tip",fn:function({type:n}){return[e("p",[t._v("自定义的提示说明")]),e("p",[t._v(t._s(n))])]}}])})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",type:"image,video",media:"",tip:"提示说明"}})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"http://placehold.it/750x750/666/fff.png,http://placehold.it/750x750/666/fff.png",type:"word,excel",tip:"tip属性"}})],1),e("br"),e("br"),e("p",[e("c-file",{attrs:{src:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",media:""}})],1),e("br"),e("p",[e("c-file",{attrs:{src:"http://placehold.it/750x750/666/fff.png"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("file"))}})])},z=[],O={data(){return{}},mounted(){},methods:{}},R=O,U=d(R,H,z,!1,null,"b1ed53f8",null),K=U.exports,W=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"800px"}},[e("p",[e("c-editor")],1)]),e("br"),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("editor"))}})])},j=[],V={data(){return{}},mounted(){},methods:{}},q=V,Y=d(q,W,j,!1,null,"1036af41",null),X=Y.exports,G=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("链接名称")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}})],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:""}},[t._v("带icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:"c-icon-search"}},[t._v("自定义icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"main",href:"https://www.baidu.com/",target:"_blank"}},[t._v("主色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"lesser",href:"https://www.baidu.com/",target:"_blank"}},[t._v("辅色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"gray",href:"https://www.baidu.com/",target:"_blank"}},[t._v("灰色链接")])],1),e("br")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("link"))}})])},Z=[],Q={data(){return{}},mounted(){},methods:{}},J=Q,tt=d(J,G,Z,!1,null,"8e49391a",null),et=tt.exports,nt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"320px",margin:"0 auto"}},[e("div",{staticClass:"flex-start-center",staticStyle:{height:"50px","margin-bottom":"20px"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v("默认提示信息")]),e("c-tooltip",{attrs:{tip:"提示信息内容"}}),e("span",{staticStyle:{margin:"0 10px 0 20px"}},[t._v("默认提示信息(白色)")]),e("c-tooltip",{attrs:{tip:"提示信息内容",color:"white"}})],1),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"start"}},[e("c-button",{ref:"button"},[t._v("上左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"end"}},[e("c-button",{ref:"button"},[t._v("上右")])],1)],1),e("div",{staticClass:"flex-between",staticStyle:{height:"80px"}},[e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"left",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左上")])],1),e("c-tooltip",{attrs:{position:"left",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左下")])],1)],1),e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"right",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右上")])],1),e("c-tooltip",{attrs:{position:"right",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右下")])],1)],1)]),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"start"}},[e("c-button",{ref:"button"},[t._v("下左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"end"}},[e("c-button",{ref:"button"},[t._v("下右")])],1)],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tooltip"))}})])},it=[],rt={data(){return{}},mounted(){},methods:{}},ot=rt,at=d(ot,nt,it,!1,null,"680d77da",null),st=at.exports,lt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-title",[t._v("标题名称")]),e("c-title",{attrs:{icon:"c-icon-search"}},[t._v("自定义图标标题")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("title"))}})])},ct=[],ut={data(){return{}},mounted(){},methods:{}},dt=ut,ht=d(dt,lt,ct,!1,null,"211d9b4c",null),pt=ht.exports,ft=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#F5F5F5"}},[e("c-pagination",{attrs:{total:"100"},on:{handle:t.update}})],1)])},mt=[],gt={data(){return{}},mounted(){},methods:{update(t){console.log(t)}}},vt=gt,bt=d(vt,ft,mt,!1,null,"2b668974",null),_t=bt.exports,yt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"preview",staticStyle:{"margin-top":"20px"}},[e("c-table",{ref:"table",attrs:{border:"","fixed-width":t.fixedWidth,"width-resize":"",height:"500",paging:!1},on:{rowClick:t.rowClick,widthResize:t.widthResize}},[e("c-table-column",{attrs:{type:"drag"},on:{drag:t.dragHandle}}),e("c-table-column",{attrs:{type:"selector",name:"selected"}}),e("c-table-column",{attrs:{fixed:"left",label:"col.expand",type:"expand","expand-button":({data:t})=>4!=t.num,"expand-limit":"3","add-button":""},on:{expand:t.expandHandle,add:t.addHandle},scopedSlots:t._u([{key:"default",fn:function({data:e}){return[t._v(" "+t._s(e.children?"子节点":4==e.num?"不可展开":"可展开")+" ")]}}])}),e("c-table-column",{attrs:{label:"col.normal",name:"num",required:"",summed:""},scopedSlots:t._u([{key:"summed",fn:function({total:e}){return[t._v(" 默认数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.custom",summed:({data:t})=>t.num},scopedSlots:t._u([{key:"default",fn:function({data:n}){return[e("span",[t._v("num: "+t._s(n.num.toFixed(2)))])]}},{key:"summed",fn:function({total:e}){return[t._v(" 自定义数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.sort",type:"sort","align-center":""},on:{sort:t.sortHandle}}),e("c-table-column",{attrs:{label:"col.complex"}},[e("c-table-column",{attrs:{label:"col.children",name:"rowspan","col-span":t.colSpan,"row-span":t.rowSpan}}),e("c-table-column",{attrs:{label:"col.children",name:"rowspan"}})],1),e("c-table-column",{attrs:{name:"_selected"},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-button",[t._v("自定义头部")])]},proxy:!0}])}),t.col?e("c-table-column",{attrs:{label:"动态列1"}},[t._v("1")]):t._e(),t.col?e("c-table-column",{attrs:{label:"动态列2"}},[t._v("2")]):t._e(),e("c-table-column",{attrs:{label:"静态列"}},[t._v("0")]),t.col?t._e():e("c-table-column",{attrs:{fixed:"right",label:"动态列3"}},[t._v("3")]),e("c-table-column",{attrs:{type:"button",label:"col.handle","button-limit":"3"},scopedSlots:t._u([{key:"default",fn:function({data:n}){return[n.button?t._e():e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮1")]),n.button?e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮2")]):t._e(),t.button?t._e():e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮1")]),t.button?e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮2")]):t._e(),e("c-table-button",[t._v("按钮")]),e("c-table-button",[t._v("按钮")])]}}])})],1)],1),e("br"),e("c-button",{on:{click:function(e){t.col=!t.col}}},[t._v("切换列")]),e("c-button",{on:{click:function(e){t.button=!t.button}}},[t._v("切换按钮")]),e("c-button",{on:{click:function(e){t.fixedWidth=!t.fixedWidth}}},[t._v(t._s(t.fixedWidth?"自动宽度":"固定宽度"))]),e("c-button",{on:{click:function(e){return t.getData()}}},[t._v("获取数据")]),e("c-button",{on:{click:function(e){return t.getData("selected")}}},[t._v("获取选中行")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("table"))}})],1)},wt=[],xt={data(){return{col:!1,button:!1,fixedWidth:!1}},mounted(){this.$refs.table.setData([{selected:!0,name:"admin",num:2,date:"2024-01-01 00:00:00",rowspan:1,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:4,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:5,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{selected:!0,name:"admin",num:1,date:"2024-01-01 00:00:00",rowspan:4,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:3,date:"2024-01-01 00:00:00",rowspan:5,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1}])},methods:{rowSpan({data:t},e){return e.filter(({data:e})=>e.rowspan==t.rowspan).length},colSpan({data:t},e){return 1==t.rowspan?2:1},rowClick(t){console.log(t)},expandHandle(t,e){setTimeout(()=>{e([{children:!0,text:"子节点",num:0}])},1e3)},addHandle(t,e){setTimeout(()=>{e({children:!0,text:"新子节点",num:0})},1e3)},dragHandle(t){console.log(t)},sortHandle(t,e,n){console.log(t,e),n()},getData(t){console.log(this.$refs.table.getData(t))},widthResize(t){console.log(t)}}},kt=xt,St=d(kt,yt,wt,!1,null,"4a95acbf",null),Dt=St.exports,Ct=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{ref:"form",attrs:{vertical:t.verticalState,"unit-width":"400"}},[e("c-form-item",{attrs:{label:"form.label"},scopedSlots:t._u([{key:"handle",fn:function(){return[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("跳转链接")])]},proxy:!0}])},[e("c-input",{attrs:{name:"input"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-radio-group",{attrs:{name:"radio"}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-checkbox-group",{attrs:{name:"checkbox"}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.labelWithAsterisk",required:""}},[e("c-select",{attrs:{name:"select",options:t.options}})],1),e("c-form-item",{attrs:{label:"form.labelTip",tip:"提示信息"}},[e("c-region",{attrs:{level:"4","province-name":"province","city-name":"city","county-name":"county","address-name":"address"}})],1),e("c-form-item",{attrs:{label:"form.labelCustomTip"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("span",{staticStyle:{color:"blue"}},[t._v("自定义提示信息")])]},proxy:!0}])},[e("c-datetime",{attrs:{type:"date",range:"","start-name":"start","end-name":"end"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-color",{attrs:{name:"color"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-switch",{attrs:{name:"switch","state-value":[1,0]}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-transfer",{attrs:{name:"transfer",data:t.initRandomOptions},on:{search:t.randomOptions}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",multiple:"",media:"",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label",name:"complex"}},[e("p",{staticStyle:{"line-height":"38px"}},[t._v("复杂表单项内容...")]),e("c-input",{attrs:{name:"complexInput"}})],1),e("c-form-item",[e("c-button",{on:{click:function(e){t.verticalState=!t.verticalState}}},[t._v(t._s(t.verticalState?"横向排列":"纵向排列"))]),e("c-button",{on:{click:t.getData}},[t._v("获取数据")]),e("c-button",{on:{click:t.setData}},[t._v("回填数据")]),e("c-button",{on:{click:t.validData}},[t._v("校验")]),e("c-button",{on:{click:t.clearData}},[t._v("清空")])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("form"))}})])},Et=[],At={data(){return{verticalState:!1,options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},setData(){this.$refs.form.set({input:1,radio:2,checkbox:[1,3],select:2,province:"province1",city:"city2",county:"county1",address:"address",start:"2024-01-01",end:"2024-01-31",color:"#000000",switch:1,file:["https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png","https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png"],complexInput:"1"})},getData(){console.log(this.$refs.form.get())},clearData(){this.$refs.form.clear()},validData(){this.$refs.form.validate({breakWhenFail:!1,rule:{input:{check:"输入框内容为空"},radio:"选项不能为空",checkbox:"选项不能为空",select:[{type:"empty",message:"下拉框内容为空"},{type:"function",fun:()=>new Promise(t=>{setTimeout(()=>{t(!0)},1e3)})}],county:"地区不能为空",end:"日期不能为空",color:"颜色不能为空",transfer:"穿梭框不能为空",file:"请上传文件",complex:t=>!!t.complexInput||"复杂字段校验失败"},success:t=>{console.log("success",t)},fail:t=>{console.log("fail",t)}})}}},Tt=At,Bt=d(Tt,Ct,Et,!1,null,"2bf99f4d",null),Ft=Bt.exports,$t=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-detail",{attrs:{column:"3"}},[e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名",colspan:"2"}},[t._v(" 单独设置占两列 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("detail"))}})])},Lt=[],Mt={data(){return{}},mounted(){},methods:{}},Pt=Mt,It=d(Pt,$t,Lt,!1,null,"6bceeb66",null),Nt=It.exports,Ht=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message()}}},[t._v("普通消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("success")}}},[t._v("成功消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("warn")}}},[t._v("警告消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("fail")}}},[t._v("失败消息弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice()}}},[t._v("普通通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("success")}}},[t._v("成功通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("warn")}}},[t._v("警告通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("fail")}}},[t._v("失败通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.noticeButton()}}},[t._v("带按钮的通知弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("enquire")}}},[t._v("询问确认弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("warn")}}},[t._v("提醒确认弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading()}}},[t._v("普通加载弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading("加载中")}}},[t._v("带文案加载弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("popup"))}})])},zt=[],Ot={data(){return{}},mounted(){},methods:{message(t){this.$message({type:t,message:"消息弹窗内容"})},notice(t){this.$notice({type:t,title:"通知标题",message:"通知弹窗内容"})},noticeButton(){this.$notice({title:"通知标题",message:"通知弹窗内容",button:[{name:"不再提醒",callback(){console.log(0)}}]})},confirm(t){this.$confirm({type:t,title:"确认弹窗标题",message:"确认弹窗内容",resolve:()=>{console.log("resolve")},cancel:()=>{console.log("cancel")}})},loading(t){this.$loading({message:t,timeout:1e3})}}},Rt=Ot,Ut=d(Rt,Ht,zt,!1,null,"694f65b0",null),Kt=Ut.exports,Wt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("popup")}}},[t._v("弹出模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("slide")}}},[t._v("侧滑模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("mask")}}},[t._v("无遮罩会话弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("dialog"))}}),e("c-dialog",{ref:"popup",attrs:{title:"会话弹窗1",height:"199","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"mask",attrs:{title:"会话弹窗2","resize-button":"",mask:!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"slide",attrs:{mode:"slide",title:"会话弹窗3","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])])],1)},jt=[],Vt={data(){return{}},mounted(){},methods:{dialog(t){this.$refs[t].open({zIndex:"mask"==t?1020:0})}}},qt=Vt,Yt=d(qt,Wt,jt,!1,null,"6313ac22",null),Xt=Yt.exports,Gt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-button",{ref:"button",on:{click:function(e){return t.$refs.window.show(t.$refs.button)}}},[t._v("显示窗口")]),e("c-window",{ref:"window",attrs:{title:"测试"},scopedSlots:t._u([{key:"beforeButton",fn:function(){return[t._v(" 自定义内容 ")]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮")])]},proxy:!0}])},[e("div",{staticStyle:{height:"100px"}},[t._v("窗口内容")])])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("window"))}})])},Zt=[],Qt={data(){return{}},mounted(){},methods:{}},Jt=Qt,te=d(Jt,Gt,Zt,!1,null,"72eef246",null),ee=te.exports,ne=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://uploadstatic.mihoyo.com/puzzle/upload/puzzle/2023/03/01/d2121e7797f65af32e3ed9eb258be585_8579148517963343593.jpg")}}},[t._v("图片预览")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://ys.mihoyo.com/main/_nuxt/videos/3e78e80.mp4")}}},[t._v("视频预览")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("preview"))}})])},ie=[],re={data(){return{}},mounted(){},methods:{preview(t){this.$preview({src:t})}}},oe=re,ae=d(oe,ne,ie,!1,null,"41bde794",null),se=ae.exports,le=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"border-tab"},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"card"},on:{change:t.tabsHandle}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tab"))}})])},ce=[],ue={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{tabsHandle(t){console.log(t)}}},de=ue,he=d(de,le,ce,!1,null,"483ea3ec",null),pe=he.exports,fe=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:""}},[e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/grid"))}}),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-flex-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/flex"))}})],1)])},me=[],ge={data(){return{}},mounted(){},methods:{}},ve=ge,be=d(ve,fe,me,!1,null,"29fab78c",null),_e=be.exports,ye=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"标题","sub-title":"副标题"},scopedSlots:t._u([{key:"head",fn:function(){return[e("div",{staticClass:"flex-end-center",staticStyle:{height:"100%"}},[t._v(" 头部插槽 ")])]},proxy:!0},{key:"foot",fn:function(){return[e("p",{staticStyle:{"line-height":"50px","text-align":"center",background:"#fffcd1"}},[t._v("底部插槽")])]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮一")]),e("c-button",[t._v("按钮二")])]},proxy:!0}])},[e("div",{staticStyle:{height:"1000px"}})])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/normal"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"自适应高度","sub-title":"填充剩余高度,最小高度为100(不包含头部)"}}),e("module",{attrs:{title:"固定高度",height:"200","sub-title":"指定模块高度(不包含头部)"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])]),e("module",{attrs:{title:"自动高度",height:"auto","sub-title":"根据内容高度变化"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/multi"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{tabs:t.tabs,"tab-type":"border-tab"},on:{tabChange:t.tabsHandle}},[e("div")]),e("module",[e("module-tab",{attrs:{name:"选项卡一"},on:{mounted:function(e){return t.moduleTabHandle(1,"mounted")},activated:function(e){return t.moduleTabHandle(1,"activated")},deactivated:function(e){return t.moduleTabHandle(1,"deactivated")}}},[e("div",{staticStyle:{height:"600px"}},[t._v("内容高600px")])]),e("module-tab",{attrs:{name:"选项卡二"},on:{mounted:function(e){return t.moduleTabHandle(2,"mounted")},activated:function(e){return t.moduleTabHandle(2,"activated")},deactivated:function(e){return t.moduleTabHandle(2,"deactivated")}}},[e("div",{staticStyle:{height:"1000px"}},[t._v("内容高1000px")])])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/tabs"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",[e("module-row"),e("module-row",[e("module-col"),e("module-col")],1)],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/complex"))}})])},we=[],xe={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{moduleTabHandle(t,e){console.log(t,e)},tabsHandle(t){console.log(t)}}},ke=xe,Se=(n("4acb"),d(ke,ye,we,!1,null,"0406f941",null)),De=Se.exports,Ce=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-draw-sort",{staticClass:"flex-wrap",scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-draw-item",{key:i,staticStyle:{margin:"0 30px 10px 0"},attrs:{index:r,"handle-style":{position:"absolute",left:"100%",top:"0",width:"20px","line-height":"20px","text-align":"center",background:"#ddd"}},scopedSlots:t._u([{key:"handle",fn:function(){return[e("div",[t._v("拖")])]},proxy:!0}],null,!0)},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{mousedown:function(t){t.stopPropagation()},click:function(e){return t.removeSortItem(r)}}},[t._v("删除")])])])]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-draw-sort",{staticClass:"flex-wrap",scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-draw-item",{key:i,staticStyle:{margin:"0 30px 10px 0"},attrs:{index:r}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{mousedown:function(t){t.stopPropagation()},click:function(e){return t.removeSortItem(r)}}},[t._v("删除")])])])]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-button",{staticClass:"api-handle",on:{click:t.addSortItem}},[t._v("添加一项")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("draw_sort"))}})])},Ee=[],Ae={data(){return{sortList:[0,1,2,3,4,5],sortAdd:6}},watch:{sortList(t){console.log(t)}},mounted(){},methods:{addSortItem(){this.sortList.push(this.sortAdd++)},removeSortItem(t){this.sortList.splice(t,1)}}},Te=Ae,Be=d(Te,Ce,Ee,!1,null,"4d76aed9",null),Fe=Be.exports,$e=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-dropdown",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("c-button",[t._v("下拉菜单"),e("i",{staticClass:"c-dropdown-angle c-icon-tri-down"})])],1)],1)])},Le=[],Me={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},Pe=Me,Ie=d(Pe,$e,Le,!1,null,"6d885ec1",null),Ne=Ie.exports,He=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-right-menu",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("div",{staticStyle:{display:"inline-block",padding:"20px",background:"#F5F5F5"}},[t._v(" 在此处单击右键 ")])])],1)])},ze=[],Oe={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},Re=Oe,Ue=d(Re,He,ze,!1,null,"cefe2f94",null),Ke=Ue.exports,We=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticStyle:{"margin-bottom":"20px"}},[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","root")}}},[t._v("获取根节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","selected")}}},[t._v("获取选中节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","checked")}}},[t._v("获取勾选节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("insertRoot")}}},[t._v("插入根节点")])],1),e("c-tree",{ref:"tree",attrs:{data:t.treeData,select:{expand:!0,unselect:!0},check:{clickCheck:!0}},on:{load:function(e){return t.treeHandle("load",arguments[0],arguments[1])},click:function(e){return t.treeHandle("click",e)},check:function(e){return t.treeHandle("check",e)}}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tree"))}})])},je=[],Ve={data(){return{treeData:[{id:1,pId:0,name:"节点1"},{id:2,pId:0,name:"节点2"}]}},mounted(){},methods:{treeHandle(t,e,n){if(console.log(t,e),"load"==t){let t=[],i=this.$parent.random(2,6);for(let n=1;n<=i;n++)t.push({id:e.id.toString()+n,name:e.name+n,pId:e.id,leaf:this.$parent.random(0,9)>6});setTimeout(()=>{n(t)},500)}else if("getNode"==t)console.log(this.$refs.tree.getNode(e));else if("insertRoot"==t){let t=[],e=this.$refs.tree.getNode().length+1,n=e+this.$parent.random(2,6);for(let i=e;i<=n;i++)t.push({id:i,name:"节点"+i,pId:0,leaf:this.$parent.random(0,9)>6});this.$refs.tree.insertRoot(t)}}}},qe=Ve,Ye=d(qe,We,je,!1,null,"3dac96a0",null),Xe=Ye.exports,Ge=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-steps",{attrs:{steps:t.stepsList,active:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("steps"))}})])},Ze=[],Qe={data(){return{stepsList:[{name:"步骤一"},{name:"步骤二",message:"步骤描述"},{name:"步骤三",message:"步骤描述"},{name:"步骤四"}]}},mounted(){},methods:{}},Je=Qe,tn=d(Je,Ge,Ze,!1,null,"852e07c0",null),en=tn.exports,nn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"200px"}},[e("c-progress",{attrs:{type:"line",rate:[5,10],decimal:"1"}}),e("br"),e("br"),e("c-progress",{attrs:{type:"circle",rate:"44,111",decimal:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("progress"))}})])},rn=[],on={data(){return{}},mounted(){},methods:{}},an=on,sn=d(an,nn,rn,!1,null,"7fc615f7",null),ln=sn.exports,cn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#FAFAFA"}},[e("c-qrcode",{attrs:{value:"qweqwqwe",margin:"20"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("qrcode"))}})])},un=[],dn={data(){return{}},mounted(){},methods:{}},hn=dn,pn=d(hn,cn,un,!1,null,"77da1f1b",null),fn=pn.exports,mn=n("7c5c"),gn=n.n(mn),vn={name:"vueComponentLibrary",components:{apiButton:p,apiInput:_,apiOptions:D,apiSelector:F,apiSwitch:N,apiFile:K,apiEditor:X,apiLink:et,apiTooltip:st,apiTitle:pt,apiPagination:_t,apiTable:Dt,apiForm:Ft,apiDetail:Nt,apiPopup:Kt,apiDialog:Xt,apiWindow:ee,apiPreview:se,apiTab:pe,apiLayout:_e,apiModule:De,apiDrawSort:Fe,apiDropdown:Ne,apiRightMenu:Ke,apiTree:Xe,apiSteps:en,apiProgress:ln,apiQrcode:fn},data(){return{marked:gn.a,docTab:["按钮","输入框","单复选框","选择器","开关","文件","编辑器","链接","提示信息","标题","分页栏","表格","表单","详情","消息弹窗","会话弹窗","悬浮窗口","媒体预览","选项卡","布局","模块","拖拽排序","下拉菜单","右键菜单","树","步骤条","进度条","二维码"],tabColor:["main","lesser","red","green","blue","yellow"],crtTab:Tf.get("crt_tab")||"按钮"}},computed:{crtTabColor(){return this.crtTab,this.tabColor[Math.floor(Math.random()*this.tabColor.length)]},loadDoc(){return t=>gn.a.parse(n("5aa3")(`./${t}.md`).default)}},watch:{crtTab(t){Tf.set("crt_tab",t)}},mounted(){window.$app=this},methods:{random(t,e){return Math.floor(Math.random()*(e-t+1)+t)}}},bn=vn,_n=(n("121b"),d(bn,o,a,!1,null,null,null)),yn=_n.exports,wn=function(){var t=this,e=t._self._c;return e("button",{staticClass:"c-button",style:t.compStyle,attrs:{color:t.color,hollow:t.hollow,disabled:!!t.disabled},on:{click:e=>t.$emit("click",e),mouseenter:function(e){t.hoverState=!0},mouseleave:function(e){t.hoverState=!1}}},[e("div",{staticClass:"flex-center"},[t.prependIcon?e("i",{staticClass:"icon",class:t.prependIcon}):t._e(),e("span",[t._t("default")],2),t.appendIcon?e("i",{staticClass:"icon",class:t.appendIcon}):t._e()])])},xn=[],kn={name:"cButton",props:{size:{type:String,default:"normal"},color:{type:String,default:"normal"},hollow:Boolean,disabled:Boolean,prependIcon:String,appendIcon:String},data(){return{hoverState:!1}},computed:{sizeStyle(){return this.$compsConfig.style.buttonSize[this.size]||{}},colorStyle(){let t=this.$compsConfig.color[this.color];if(!t)return{};let e=t[this.hoverState?1:0];return{"border-color":e,color:this.hollow?e:"#fff",background:this.hollow?"#fff":e}},compStyle(){return Object.assign({},this.sizeStyle,this.colorStyle)}}},Sn=kn,Dn=(n("7106"),d(Sn,wn,xn,!1,null,"e0a2fe40",null)),Cn=Dn.exports,En=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:"hidden"!=t.type,expression:"type != 'hidden'"}],staticClass:"c-input",class:{"c-textarea":"textarea"==t.type,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},["textarea"==t.type?e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",style:{"padding-bottom":t.maxlength?"20px":"8px"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:function(e){return t.$emit("change")}}}),t.maxlength?e("span",{staticClass:"c-input-length"},[t._v(t._s(t.valueData.length)+" / "+t._s(t.maxlength))]):t._e()]):e("div",{staticClass:"flex"},[t.$scopedSlots.prependText||t.prependText?e("div",{staticClass:"c-input-text flex-center"},[t._t("prependText"),e("span",[t._v(t._s(t.$t(t.prependText)))])],2):t._e(),"stepper"==t.type&&"both"==t.stepControls?e("button",{staticClass:"c-input-step flex-center",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e(),e("div",{staticClass:"flex-center flex-grow"},[t.$scopedSlots.prepend?e("div",{staticClass:"c-input-content"},[t._t("prepend")],2):t._e(),t.$scopedSlots.prependIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("prependIcon")],2):t._e(),"checkbox"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(t.valueData)?t._i(t.valueData,null)>-1:t.valueData},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){var n=t.valueData,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);i.checked?a<0&&(t.valueData=n.concat([o])):a>-1&&(t.valueData=n.slice(0,a).concat(n.slice(a+1)))}else t.valueData=r},function(e){return t.$emit("change")}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("enter")}}}):"radio"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"radio"},domProps:{checked:t._q(t.valueData,null)},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){t.valueData=null},function(e){return t.$emit("change")}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("enter")}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:t.compType},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:function(e){return t.$emit("change")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("enter")}}}),t.clear&&t.valueData&&!t.readonly?e("a",{staticClass:"c-input-icon clear flex-center",on:{click:t.clearHandle}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t.visible?e("a",{staticClass:"c-input-icon flex-center",on:{click:function(e){t.visibleState=!t.visibleState}}},[e("i",{staticClass:"c-icon-eyes",class:{"c-icon-eyes-close":t.visibleState}})]):t._e(),t.$scopedSlots.appendIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("appendIcon")],2):t._e(),t.$scopedSlots.append?e("div",{staticClass:"c-input-content"},[t._t("append")],2):t._e()]),e("div",{staticClass:"flex-column"},["stepper"==t.type?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.maxRange&&t.maxRange==t.valueData},on:{click:function(e){return t.stepHandle(1)}}},[e("i",{staticClass:"c-icon-plus"})]):t._e(),"stepper"==t.type&&"side"==t.stepControls?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e()]),t.$scopedSlots.appendText||t.appendText||t.unit?e("div",{staticClass:"c-input-text flex-center"},[t._t("appendText"),e("span",[t._v(t._s(t.$t(t.appendText||t.unit)))])],2):t._e()]),t._events.suggest?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition&&t.suggestList.length,expression:"listPosition && suggestList.length"}],ref:"list",staticClass:"c-input-suggest",style:t.listPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{options:t.suggestList},on:{click:t.set}})],1):t._e()])},An=[];function Tn(t,e){var n=window.getComputedStyle(t,null);return n[e]}function Bn(t,e){var n=t.parentNode;if(n)return n===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?e(window.document.body):e(window):((["scroll","auto"].includes(Tn(n,"overflow"))||["scroll","auto"].includes(Tn(n,"overflow-x"))||["scroll","auto"].includes(Tn(n,"overflow-y")))&&e(n),Bn(t.parentNode,e))}var Fn=n("8bbf"),$n=n.n(Fn);function Ln(t){const e="function"==typeof t?t:$n.a.extend({data(){return t},methods:{commit(t,e){this[t]=e}}});return new e({i18n:Df})}function Mn(t,e="store"){let n;return function t(i){i&&(i[e]?n=i[e]:t(i.$parent))}(t),{[e]:n||{commit:function(){}}}}function Pn(t,e){"string"!=typeof t&&(e=t,t="store");const n={};if(e.constructor==Array)e.forEach(e=>{n[e]={get(){try{return this[t][e]}catch(n){return}},set(){}}});else for(let i in e)n[i]={get(){return e[i](this[t])},set(){}};return n}const In={render(t){return t("div",[this.options.map(e=>[t("div",{class:"flex-center-cross c-input-suggest-item flex-center-cross",attrs:{title:this.$t(e)},on:{click:()=>this.clickHandle(e)}},[t("p",{class:"ellipsis flex-grow"},[this.$t(e)])])])])},props:{options:Array},methods:{clickHandle(t){this.$emit("click",t),this.$parent.blurHandle()}}};var Nn={name:"cInput",components:{selectList:In},props:{type:{type:String,default:"text"},value:[Number,String],name:String,placeholder:String,maxlength:[Number,String],decimal:[Number,String],range:[String,Array],disabled:Boolean,readonly:Boolean,alignCenter:Boolean,prependText:String,appendText:String,unit:String,visible:Boolean,clear:{type:Boolean,default:!0},step:{type:[String,Number],default:1},stepControls:{type:String,default:"both"}},data(){return{...Mn(this,"cFormItemStore"),valueData:"",visibleState:!1,listPosition:!1,suggestList:[],active:!1}},computed:{...Pn("cFormItemStore",["warnState"]),compType(){return"number"==this.type||this.visibleState?"text":this.type},compRange(){return!!this.range&&("string"==typeof this.range?this.range.split(","):this.range)},minRange(){return"object"==typeof this.compRange&&2==this.compRange.length&&parseFloat(this.compRange[0])},maxRange(){return!1!==this.compRange&&parseFloat(this.compRange[1])},compDecimal(){return!!["number","stepper"].includes(this.type)&&(parseInt(this.decimal)||0)}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},compDecimal(){this.inputHandle({type:"blur"})}},mounted(){this.set(this.value),this._events.suggest&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this._events.suggest&&document.body.removeChild(this.$refs.list)},methods:{set(t=""){t=t||0===t?t:"",this.valueData=t.toString().trim()},get(){return this.valueData.toString().trim()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},inputHandle(t){if(this.cFormItemStore.commit("warnState",!1),!1!==this.compDecimal){var e=[["^(-?)0?(\\d+)$","$1$2"],["^(-?)\\.$","$1"],["\\.(\\d*)\\.+",".$1"],["^(\\d+\\.?\\d*)-+","$1"],["^(-\\d*\\.?\\d*)-+","$1"],["^(-?\\d+\\.\\d{"+this.compDecimal+"}).+","$1"],[this.compDecimal?"[^-\\d\\.]+$":"[^-\\d]+$",""]];e.forEach(t=>{this.valueData=this.valueData.toString().replace(new RegExp(t[0]),t[1])}),""!==this.valueData&&"blur"==t.type&&(!1!==this.minRange&&this.valueData<this.minRange&&(this.valueData=this.minRange),!1!==this.maxRange&&this.valueData>this.maxRange&&(this.valueData=this.maxRange))}"input"!=t.type?(this.$emit(t.type,t),"focus"==t.type?this._events.suggest&&(this.suggestHandle(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.blurHandle,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)})):"blur"==t.type&&this.blurHandle(t)):this.suggestHandle()},blurHandle(t){t&&this.active||(this.listPosition=!1,this.suggestList=[],window.removeEventListener("click",this.blurHandle,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},clearHandle(){this.valueData="",this.suggestHandle(),this.focus(),this.$nextTick(()=>{this.$emit("change")})},suggestHandle(){this.valueData?this.$emit("suggest",this.valueData,t=>{this.suggestList=t,this.$nextTick(this.updatePosition)}):this.suggestList=[]},stepHandle(t){let e=this.valueData.toString().split(".")[1]||"",n=this.step.toString().split(".")[1]||"",i=n.length>e.length?n.length:e.length;this.valueData=parseFloat(((parseFloat(this.valueData)||0)+t*parseFloat(this.step)).toFixed(i)),this.inputHandle({type:"blur"}),this.$nextTick(()=>{this.$emit("change")})},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<300?this.$refs.list.offsetHeight:300,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+this.$el.offsetHeight-1)+"px",width:this.$el.offsetWidth+"px","max-height":this.parsePixel(300,!0)}}}},Hn=Nn,zn=(n("a0e5"),d(Hn,En,An,!1,null,"2a6d5e9c",null)),On=zn.exports,Rn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio",class:{"z-chk":t.checkState,"z-dis":t.disabledState},on:{click:t.checkHandle}},[e("div",{staticClass:"c-radio-check"}),t.$slots.default?e("div",{staticClass:"c-radio-content"},[t._t("default")],2):t._e()])},Un=[],Kn={name:"cRadio",props:{value:[Number,String],disabled:Boolean},data(){return{store:this.$parent.store}},computed:{...Pn(["valueData","groupDisabled"]),checkState(){return this.valueData==this.value},disabledState(){return this.groupDisabled||this.disabled}},methods:{checkHandle(){this.disabledState||this.checkState||this.$parent.changeHandle(this.value)},changeHandle(t){this.$emit("change",t)}}},Wn=Kn,jn=(n("647a"),d(Wn,Rn,Un,!1,null,"1ef111e6",null)),Vn=jn.exports,qn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},Yn=[],Xn={name:"cRadioGroup",props:{value:[String,Number],name:String,disabled:Boolean,options:Array},data(){return{...Mn(this,"cFormItemStore"),store:Ln({valueData:this.value,groupDisabled:this.disabled})}},computed:{...Pn("cFormItemStore",["warnState"]),...Pn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},disabled(t){this.store.commit("groupDisabled",t)}},methods:{set(t=""){this.store.commit("valueData",t)},get(){return this.valueData},changeHandle(t){this.$children.forEach(e=>{(e.checkState||e.value==t)&&e.changeHandle(e.value==t)}),this.store.commit("valueData",t),this.$emit("change",this.get())}}},Gn=Xn,Zn=(n("4f8d"),d(Gn,qn,Yn,!1,null,"bafabe12",null)),Qn=Zn.exports,Jn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox",class:{"z-chk":t.checkState,"z-dis":t.disabledState},style:{height:t.parsePixel(t.size,!0)},on:{click:function(e){return t.checkHandle(!t.checkState)}}},[e("div",{staticClass:"c-checkbox-check",style:{width:t.parsePixel(t.size,!0),height:t.parsePixel(t.size,!0),"line-height":t.parsePixel(t.size,!0),"font-size":t.parsePixel(t.iconSize,!0)}},[t.half?e("i",{staticClass:"c-icon-check-half"}):t.checkState?e("i",{staticClass:"c-icon-check"}):t._e()]),t.$slots.default?e("div",{staticClass:"c-checkbox-content"},[t._t("default")],2):t._e()])},ti=[],ei={name:"cCheckbox",props:{value:[Number,String,Boolean],disabled:Boolean,half:Boolean,size:{type:[Number,String],default:20}},data(){let t="cCheckboxGroup"==this.$parent.$options.name;return{selfChecked:!!this.value,inGroup:t,store:t?this.$parent.store:void 0}},computed:{...Pn(["valueData","limit","groupDisabled"]),parseValueData(){return"object"==typeof this.valueData?Array.from(this.valueData,t=>t.toString()):this.valueData.toString()?this.valueData.toString().split(","):[]},checkState(){return this.inGroup?this.parseValueData.includes(this.value.toString()):this.selfChecked},disabledState(){return this.inGroup&&this.groupDisabled||this.disabled},overflow(){return!this.checkState&&this.limit>0&&this.parseValueData.length>=this.limit},iconSize(){return parseInt(this.size)<20?12:13}},watch:{value(t){this.selfChecked=!!t,this.store&&this.store.updateValueData()}},mounted(){this.store&&this.store.updateValueData()},beforeDestroy(){this.store&&this.store.updateValueData()},methods:{checkHandle(t){if(!this.disabledState){if(this.inGroup){if(this.overflow)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.limit})});let e;t?e=this.parseValueData.concat([this.value.toString()]):(e=this.parseValueData.join(",").split(","),e.splice(e.indexOf(this.value.toString()),1)),this.store.commit("valueData","object"==typeof this.valueData?e:e.join(",")),this.$parent.changeHandle()}else this.selfChecked=t,this.$emit("input",t);this.$emit("change",t)}}}},ni=ei,ii=(n("5d56"),d(ni,Jn,ti,!1,null,"2b8f077c",null)),ri=ii.exports,oi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},ai=[],si={name:"cCheckboxGroup",props:{value:{type:[String,Number,Array],default:""},name:String,disabled:Boolean,limit:[String,Number],options:Array},data(){return{...Mn(this,"cFormItemStore"),store:Ln({updateValueData:Ef(()=>{this.set(this.valueData.filter(t=>!!this.$children.find(e=>"cCheckbox"==e.$options.name&&e.value.toString()==t.toString())))},10,!1),valueData:[],limit:parseInt(this.limit),groupDisabled:this.disabled})}},computed:{...Pn("cFormItemStore",["warnState"]),...Pn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},limit(t){this.store.commit("limit",t)},disabled(t){this.store.commit("groupDisabled",t)}},mounted(){this.set(this.value)},updated(){},methods:{set(t){t||(t=[]),"string"==typeof t&&(t=t.split(",")),this.store.commit("valueData",t)},get(){return this.valueData},changeHandle(){this.$emit("change",this.get())}}},li=si,ci=(n("5bf8"),d(li,oi,ai,!1,null,"1b0c5c6a",null)),ui=ci.exports,di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-select",class:{"z-active":t.listPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState,"auto-height":t.multiple&&t.multipleConfig.linefeed&&!t.emptyState},on:{click:t.developHandle,mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-select-main flex-between-center"},[e("div",{ref:"value",staticClass:"flex-grow flex-center-cross",class:{"flex-wrap":t.multipleConfig.linefeed,"c-select-tag":t.multiple&&!t.emptyState}},[t.multiple&&!t.emptyState?t._l(t.currentData,(function(n,i){return e("div",{key:i,staticClass:"item flex-center"},[e("span",{staticClass:"ellipsis",attrs:{title:t.$t(n.name)}},[t._v(t._s(t.$t(n.name)))]),t.disabled?t._e():e("a",{staticClass:"c-icon-cross",on:{click:function(e){return e.stopPropagation(),t.deleteValue(n)}}})])})):t._e(),t.searchConfig?e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchValue,expression:"searchValue"}],ref:"input",staticClass:"c-select-input flex-grow",attrs:{disabled:t.disabled,placeholder:t.emptyState?t.$t(t.placeholder):t.multiple?"":t.valueName,autocomplete:"off"},domProps:{value:t.searchValue},on:{input:[function(e){e.target.composing||(t.searchValue=e.target.value)},t.asyncSearchHandle]}}):t._e(),!t.emptyState&&t.multiple||t.searchConfig?t._e():e("span",{staticClass:"c-select-current flex-grow ellipsis",class:{"z-empty":t.emptyState},attrs:{title:t.emptyState?t.$t(t.placeholder):t.valueName}},[t._v(t._s(t.emptyState?t.$t(t.placeholder):t.valueName))])],2),t.clear&&!t.emptyState?e("a",{staticClass:"c-select-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),e("span",{staticClass:"c-select-icon flex-center"},[t.$scopedSlots.icon?t._t("icon"):e("i",{staticClass:"c-icon-angle-down"})],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-select-options",style:t.listPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{async:t.asyncState,options:t.optionsList,disableOptions:t.disableOptions,multiple:!!t.multiple},on:{search:t.searchFocus},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},hi=[];function pi(t,e,n=0){var i=[];return e&&e.map(e=>{(this.async||!this.keyword||this.$t(e.name).toLocaleLowerCase().includes(this.keyword.toLocaleLowerCase()))&&(i=i.concat([t("div",{class:"flex-center-cross c-select-options-item flex-center-cross "+(this.currentDataValue.includes(e.value.toString())?"z-crt":""),attrs:{title:this.$t(e.name),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)},on:{click:()=>this.clickHandle(e)}},[n?[t("div",{class:"c-select-options-item-level c-icon-level-line",style:`margin-left: ${20*(n-1)}px;`})]:[],t("p",{class:"ellipsis flex-grow"},[this.$t(e.name)]),this.multiple?[t("i",{class:"c-select-options-item-check c-icon-check"})]:[]])])),i=i.concat(pi.call(this,t,e.children,n+1))}),i}const fi={render(t){return t("div",[pi.call(this,t,this.options)])},props:{async:Boolean,options:Array,disableOptions:Array,multiple:Boolean,value:String},data(){return{store:this.$parent.store}},computed:{...Pn(["currentValue","currentData"]),keyword(){return this.value.trim()},currentDataValue(){return this.currentData.map(t=>t.value.toString())}},watch:{currentValue(){this.updateCurrentData()},options(){this.async||this.updateCurrentData()}},mounted(){this.updateCurrentData()},methods:{updateCurrentData(){let t=[],e="object"==typeof this.currentValue?this.currentValue.map(t=>t.toString()):this.currentValue.toString().split(",");e.length&&function n(i){i.forEach(i=>{e.includes(i.value.toString())&&t.push(i),i.children&&n(i.children)})}(this.async?this.currentData:this.options),this.store.commit("currentData",t)},clickHandle(t){if(-1==this.disableOptions.findIndex(e=>e==t.value))if(this.multiple){let e,n=this.currentData.findIndex(e=>e.value==t.value);if(-1!=n)e=this.currentData.map(t=>t),e.splice(n,1);else{if(this.currentData.length>=this.$parent.multipleConfig.limit)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.$parent.multipleConfig.limit})});e=this.currentData.concat([t])}this.store.commit("currentData",e);let i=e.map(t=>t.value);this.store.commit("currentValue","object"==typeof this.currentValue?i:i.join(",")),this.$parent.changeHandle(),this.$emit("input",""),this.$emit("search")}else this.currentDataValue.includes(t.value.toString())||(this.store.commit("currentData",[t]),this.store.commit("currentValue",t.value),this.$parent.changeHandle()),this.$parent.foldHandle()}}};var mi={name:"cSelect",components:{selectList:fi},props:{async:Boolean,value:{type:[String,Number,Array],default:""},valueData:Array,name:String,placeholder:{type:String,default:"_t.select.placeholder"},options:{type:[Array,String],default:()=>[]},disableOptions:{type:Array,default(){return[]}},listWidth:[Number,String],listHeight:{type:[Number,String],default:300},disabled:Boolean,clear:{type:Boolean,default:!0},multiple:[Boolean,Object],search:{type:[Boolean,Object],default(){return this.$compsConfig.config.select.search}}},data(){return{...Mn(this,"cFormItemStore"),store:Ln({currentValue:this.multiple?[]:"",currentData:[]}),optionsList:[],listPosition:!1,active:!1,searchValue:""}},computed:{...Pn("cFormItemStore",["warnState"]),...Pn(["currentValue","currentData"]),multipleConfig(){return!!this.multiple&&Object.assign({limit:1/0,linefeed:!1},"object"==typeof this.multiple?this.multiple:{})},searchConfig(){return!this._events.customEvent&&(!(!this.asyncState&&!this.search)&&Object.assign({empty:!0},"object"==typeof this.search?this.search:{}))},valueName(){return this.currentData[0]?this.$t(this.currentData[0].name):""},emptyState(){return!this.currentValue&&0!==this.currentValue||this.multiple&&!this.currentValue.length},asyncState(){return this.async||!!this._events.customEvent},optionsListClone(){return JSON.parse(JSON.stringify(this.optionsList||[]))}},watch:{value(t){this.set(t)},currentValue(){this.$emit("input",this.get())},currentData(){this.multipleConfig&&this.multipleConfig.linefeed&&this.listPosition&&this.updatePosition()},valueName(t){this.searchConfig&&!this.multiple&&(this.searchValue=t)},valueData(t){this.asyncState&&this.setValueData(t)},options(t,e){this.asyncState||(this.getOptionsList(),Array.isArray(t)&&e.length&&this.set(""))},searchValue(){this.$nextTick(()=>{this.listPosition&&this.updatePosition()})}},mounted(){this.asyncState?this.setValueData(this.valueData):(this.set(this.value),this.getOptionsList()),document.body.appendChild(this.$refs.list)},beforeDestroy(){document.body.removeChild(this.$refs.list)},methods:{set(t){t||0===t||(t=this.multiple?[]:""),this.multiple&&!Array.isArray(t)&&(t=t.toString().split(",")),this.store.commit("currentValue",t)},get(){return this.currentValue},getData(){return this.multiple?this.currentData:this.currentData[0]||{}},setValueData(t){t&&(this.store.commit("currentData",t),this.set(this.multiple?t.map(t=>t.value):t[0]?t[0].value:""))},getOptionsList(){Array.isArray(this.options)?this.optionsList=JSON.parse(JSON.stringify(this.options)):this.$compsConfig.data.options[this.options]&&this.$compsConfig.data.options[this.options]("",t=>{this.optionsList=t})},developHandle(){this.cFormItemStore.commit("warnState",!1),this.disabled||(this._events.customEvent?this.$emit("customEvent",this.currentData,t=>{this.multiple?this.setValueData(t):this.setValueData(Array.isArray(t)?[t[0]]:[t]),this.changeHandle()}):this.listPosition?this.foldHandle():(this.searchFocus(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.asyncState&&this.searchConfig.empty&&this.asyncSearchHandle(),this.$refs.value.scrollLeft=9999))},foldHandle(t){t&&this.active||this._events.customEvent||(this.searchFocus(!1),this.searchValue=this.searchConfig&&!this.multiple?this.valueName:"",this.listPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.asyncState&&(this.optionsList=[]),this.$refs.value.scrollLeft=0)},searchFocus(t=!0){this.searchValue="",this.$nextTick(()=>{this.$refs.input&&this.$refs.input[t?"focus":"blur"]()})},asyncSearchHandle(){this.asyncState&&(this.searchConfig.empty||this.searchValue.trim()?this.searchConfig.options?this.$compsConfig.data.options[this.searchConfig.options](this.searchValue.trim(),t=>{this.optionsList=t||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.$emit("search",this.searchValue.trim(),t=>{this.optionsList=JSON.parse(JSON.stringify(t))||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.optionsList=[])},deleteValue(t){this.currentValue.splice(this.currentValue.findIndex(e=>e==t.value),1),this.changeHandle(),this.searchFocus()},clearHandle(){this.set("object"==typeof this.currentValue?[]:""),this.changeHandle(),this.listPosition&&this.searchFocus()},changeHandle(){this.$nextTick(()=>{this.$emit("change",this.getData())})},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<this.listHeight?this.$refs.list.offsetHeight:this.listHeight,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+t.height-1)+"px",width:(this.listWidth||t.width)+"px","max-height":this.parsePixel(this.listHeight,!0)}}}},gi=mi,vi=(n("9cd0"),d(gi,di,hi,!1,null,"0b54ce17",null)),bi=vi.exports,_i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-region",attrs:{warn:!!t.provinceName&&t.warnState}},[e("div",{staticClass:"flex"},[t.level>=1?e("c-select",{ref:"province",staticClass:"flex-grow",attrs:{options:t.provinceOptions,placeholder:"_t.region.province",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"province")}},model:{value:t.valueData.province,callback:function(e){t.$set(t.valueData,"province",e)},expression:"valueData.province"}}):t._e(),t.level>=2?e("c-select",{ref:"city",staticClass:"flex-grow",attrs:{options:t.cityOptions,placeholder:"_t.region.city",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"city")}},model:{value:t.valueData.city,callback:function(e){t.$set(t.valueData,"city",e)},expression:"valueData.city"}}):t._e(),t.level>=3?e("c-select",{ref:"county",staticClass:"flex-grow",attrs:{options:t.countyOptions,placeholder:"_t.region.county",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"county")}},model:{value:t.valueData.county,callback:function(e){t.$set(t.valueData,"county",e)},expression:"valueData.county"}}):t._e()],1),4==t.level?e("c-input",{attrs:{placeholder:"_t.region.address",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"address")}},model:{value:t.valueData.address,callback:function(e){t.$set(t.valueData,"address",e)},expression:"valueData.address"}}):t._e()],1)},yi=[],wi={name:"cRegion",props:{value:{type:Object,default:()=>({})},provinceName:String,cityName:String,countyName:String,addressName:String,level:{type:[Number,String],default:3},disabled:Boolean},data(){return{...Mn(this,"cFormItemStore"),valueData:{province:"",city:"",county:"",address:""},provinceOptions:[],cityOptions:[],countyOptions:[]}},computed:{...Pn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.updateOptions("province"),this.set(this.value)},methods:{set(t={}){this.valueData.province=t.province,this.updateOptions("city",t.province,t.city),this.updateOptions("county",t.province,t.county),this.valueData.address=t.address||""},get(){return this.valueData},getData(){return{province:this.$refs.province.getData(),city:this.$refs.city&&this.$refs.city.getData(),county:this.$refs.county&&this.$refs.county.getData(),address:this.valueData.address}},async updateOptions(t,e,n){("province"==t||"city"==t&&this.level>1||"county"==t&&this.level>2)&&(this[t+"Options"]=[],(e||"province"==t)&&(this[t+"Options"]=await this.$compsConfig.data.region(t,e)),"province"!=t&&(this.valueData[t]=n),(1==this.level||2==this.level&&"city"==t||3==this.level&&"county"==t)&&this.$emit("input",this.get()))},changeHandle(t,e){"province"==e?(this.updateOptions("city",t.value),this.updateOptions("county")):"city"==e?this.updateOptions("county",t.value):this.$emit("input",this.get()),this.$emit("change",this.get())}}},xi=wi,ki=(n("f0ae"),d(xi,_i,yi,!1,null,"06a2f838",null)),Si=ki.exports,Di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-datetime",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!(t.name||t.startName||t.endName)&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-datetime-main flex-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputStart,expression:"inputStart"}],ref:"start",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.range?t.placeholder[0]:t.placeholder),disabled:t.disabled},domProps:{value:t.inputStart},on:{change:function(e){return t.inputHandle("start")},click:function(e){return t.developHandle("start")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputStart=e.target.value)}}}),t.range?e("span",{staticClass:"c-datetime-line"},[t._v("-")]):t._e(),t.range?e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputEnd,expression:"inputEnd"}],ref:"end",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.placeholder[1]),disabled:t.disabled},domProps:{value:t.inputEnd},on:{change:function(e){return t.inputHandle("end")},click:function(e){return t.developHandle("end")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputEnd=e.target.value)}}}):t._e(),t.clear&&(t.start||t.end)?e("a",{staticClass:"c-datetime-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t._m(0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-datetime-selector",style:t.pickerPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-datetime-picker",{ref:"picker",attrs:{type:t.type,timeAccuracy:t.timeAccuracy,start:"end"==t.inputType?t.start:"",end:"start"==t.inputType?t.end:"",format:t.format},on:{input:t.setDate}})],1)])},Ci=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"c-datetime-icon flex-center"},[e("i",{staticClass:"c-icon-calendar"})])}],Ei={name:"cDatetime",props:{value:[String,Array],name:String,startName:String,endName:String,type:{type:String,default:"datetime"},timeAccuracy:{type:String,default:"sec"},range:Boolean,disabled:Boolean,placeholder:{type:[String,Array],default(){return this.range?["_t.datetime.placeholderStart","_t.datetime.placeholderEnd"]:"_t.datetime.placeholder"}},defaultTime:{type:[String,Array],default(){return this.range?["00:00:00","23:59:59"]:"00:00:00"}},format:{type:String,default(){return{datetime:"yyyy-MM-dd hh:mm:ss",date:"yyyy-MM-dd",time:"hh:mm:ss"}[this.type]}},clear:{type:Boolean,default:!0}},data(){return{...Mn(this,"cFormItemStore"),start:"",end:"",inputType:"",inputStart:"",inputEnd:"",pickerPosition:!1,active:!1}},computed:{...Pn("cFormItemStore",["warnState"]),valueData(){return this.range?[this.start,this.end]:this.start}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},inputType(t,e){t?(this.blurHandle(),this.updatePosition()):this.$refs[e].blur()}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t=""){this.range?(this.inputStart=this.start=t&&t[0]||"",this.inputEnd=this.end=t&&t[1]||""):this.inputStart=this.start=t},get(){return this.valueData},changeHandle(){this.$emit("change",this.get())},developHandle(t){this.disabled||(this.inputType=t,this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$refs.picker.set(this[this.inputType]||(new Date).format("yyyy-MM-dd "+(this.range?this.defaultTime["end"==t?1:0]:this.defaultTime))))},foldHandle(t){t&&this.active||(this.inputType="",this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.range?this.$refs.end.getBoundingClientRect():null,n=this.$refs.pickerBox.getBoundingClientRect(),i="end"==this.inputType?e.left-8:t.left,r=window.innerWidth-i-20,o=window.innerHeight-t.bottom<n.height;this.pickerPosition={left:(r<n.width?i+r-n.width:i)+"px",top:window.scrollY+(o?t.top-n.height+1:t.top+t.height-1)+"px"}},blurHandle(){this.inputType&&this.$refs[this.inputType].focus()},inputHandle(t){let e="end"==t?"inputEnd":"inputStart",n=this.$refs.picker.parseDate(this[e])||[],i=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`);this[e]="Invalid Date"==i?this[t]:this[t]=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`).format(this.format)},clearHandle(){this.set(""),this.changeHandle()},setDate(t){"start"==this.inputType?(this.start=t,this.inputStart=t,this.range&&!this.end?this.developHandle("end"):(this.inputType="",this.foldHandle())):(this.end=t,this.inputEnd=t,this.start?(this.inputType="",this.foldHandle()):this.developHandle("start")),this.changeHandle()}}},Ai=Ei,Ti=(n("3c72"),d(Ai,Di,Ci,!1,null,"3f1dceae",null)),Bi=Ti.exports,Fi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-color",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-color-main flex-center",on:{click:t.developHandle}},[e("div",{staticClass:"c-color-preview",style:{background:t.valueData}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],staticClass:"flex-grow",attrs:{disabled:t.disabled},domProps:{value:t.valueData},on:{blur:function(e){return t.set(t.valueData)},input:function(e){e.target.composing||(t.valueData=e.target.value)}}}),t.clear&&t.valueData?e("a",{staticClass:"c-color-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-color-selector",style:t.pickerPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-color-picker",{ref:"picker",on:{input:t.pickerHandle}})],1)])},$i=[],Li={name:"cColor",props:{value:String,name:String,disabled:Boolean,clear:{type:Boolean,default:!0}},data(){return{...Mn(this,"cFormItemStore"),valueData:this.value,pickerPosition:!1,active:!1}},computed:{...Pn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.set(this.value)},methods:{set(t){t?this.$refs.picker.set(t):this.valueData=""},get(){return this.valueData},changeHandle(){this.$emit("change",this.get())},clearHandle(){this.set("")},developHandle(t){this.disabled||(this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}))},foldHandle(t){t&&this.active||(this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.pickerBox.getBoundingClientRect(),n=window.innerWidth-t.left-20,i=window.innerHeight-t.bottom<e.height;this.pickerPosition={left:(n<e.width?t.left+n-e.width:t.left)+"px",top:window.scrollY+(i?t.top-e.height+1:t.top+t.height-1)+"px"}},pickerHandle(t){this.valueData=t,this.$emit("input",this.get())}}},Mi=Li,Pi=(n("b767"),d(Mi,Fi,$i,!1,null,"4c079628",null)),Ii=Pi.exports,Ni=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-transfer flex-center-cross"},[e("dl",{staticClass:"flex-column",style:{height:t.parsePixel(t.height,!0)}},[e("dt",[t._v(t._s(t.compTitle[0]))]),t.searchConfig?e("dd",[e("div",{staticClass:"c-transfer-search flex-center"},[e("c-input",{staticClass:"flex-grow",attrs:{type:"text",placeholder:t.$t(t.searchConfig.placeholder)},on:{enter:t.searchHandle},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),e("i",{staticClass:"icon c-icon-search"})],1)]):t._e(),e("dd",{staticClass:"flex-grow"},[e("ul",[t._l(t.options,(function(n,i){return[t.currentOptions.find(t=>t.value==n.value)?t._e():e("li",{directives:[{name:"show",rawName:"v-show",value:!n.hide,expression:"!item.hide"}],key:i,class:{"z-crt":n.checked},on:{click:function(e){return t.$set(n,"checked",!n.checked)}}},[t._v(t._s(t.$t(n.name)))])]}))],2)])]),e("div",{staticClass:"c-transfer-handle flex-column",attrs:{warn:!!t.name&&t.warnState}},[e("button",{on:{click:function(e){return t.handle(!0)}}},[e("i",{staticClass:"c-icon-angle-dbright"})]),e("button",{on:{click:function(e){return t.handle(!1)}}},[e("i",{staticClass:"c-icon-angle-dbleft"})])]),e("dl",{staticClass:"flex-column",style:{height:t.parsePixel(t.height,!0)}},[e("dt",[t._v(t._s(t.compTitle[1]))]),e("dd",{staticClass:"flex-grow"},[e("ul",[t._l(t.currentOptions,(function(n,i){return[e("li",{key:i,class:{"z-crt":n.checked},on:{click:function(e){return t.$set(n,"checked",!n.checked)}}},[t._v(t._s(t.$t(n.name)))])]}))],2)])])])},Hi=[],zi={name:"cTransfer",props:{async:Boolean,value:Array,valueData:Array,name:String,data:Array,title:{type:[String,Array],default:"_t.transfer.title"},search:[Boolean,Object],height:{type:[String,Number],default:300}},data(){return{...Mn(this,"cFormItemStore"),initialized:!1,options:[],currentOptions:[],keyword:""}},computed:{...Pn("cFormItemStore",["warnState"]),searchConfig(){return!(!this.async&&!this.search)&&Object.assign({placeholder:"_t.transfer.searchPlaceholder",immediate:!0},"object"==typeof this.search?this.search:{})},compTitle(){return"string"==typeof this.title?[this.$t("_t.transfer.titleLeft",{name:this.$t(this.title)}),this.$t("_t.transfer.titleRight",{name:this.$t(this.title)})]:[this.$t(this.title[0]),this.$t(this.title[1])]}},watch:{value(t){this.set(t)},valueData(t){this.async&&(this.currentOptions=t||[])},data(t){this.async||(this.options=JSON.parse(JSON.stringify(t))||[],this.$nextTick(()=>{this.set(this.value)}))},options(t,e){e&&e.length||(this.initialized=!0)},currentOptions(){let t=this.get();JSON.stringify(t)!=JSON.stringify(this.value)&&this.$emit("input",t)}},mounted(){this.async?(this.currentOptions=this.valueData||[],this.searchConfig.immediate&&this.searchHandle()):this.data&&this.data.length&&(this.options=JSON.parse(JSON.stringify(this.data)),this.$nextTick(()=>{this.set(this.value)}))},methods:{set(t=[]){!this.async&&this.initialized&&(this.currentOptions=this.options.filter(e=>t.includes(e.value)))},get(){return this.currentOptions.map(t=>t.value)},getData(){return this.currentOptions},handle(t){this.cFormItemStore.commit("warnState",!1),t?this.options.filter(t=>t.checked).forEach(t=>{this.currentOptions.includes(t)||(t.checked=!1,this.currentOptions.push(t))}):this.currentOptions=this.currentOptions.filter(t=>{if(!t.checked)return!0;t.checked=!1}),this.$emit("change",this.getData())},searchHandle(){if(this.async)this.$emit("search",this.keyword.trim(),t=>{this.options=JSON.parse(JSON.stringify(t))||[]});else{let t=this.keyword.trim();this.options.forEach(e=>{this.$set(e,"hide",t&&!e.name.includes(t))})}}}},Oi=zi,Ri=(n("921d"),d(Oi,Ni,Hi,!1,null,"33db10ea",null)),Ui=Ri.exports,Ki=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-switch",class:t.state?"z-open":"",style:{width:t.compWidth+"px",background:t.stateColor[t.state?0:1]},on:{click:t.switchHandle}},[e("div",{staticClass:"text flex-center",style:t.textStyle},[t._v(t._s(t.$t(t.stateText[t.state?0:1])))]),e("div",{staticClass:"handle",style:{left:t.handleSeat,width:t.handleSize+"px",height:t.handleSize+"px"}})])},Wi=[],ji={name:"cSwitch",props:{value:[Boolean,Number,String],stateValue:{type:Array,default(){return[!0,!1]}},stateText:{type:Array,default(){return["_t.switch.open","_t.switch.close"]}},stateColor:{type:Array,default(){return["#00B578","#eee"]}},name:String},data(){return{handleSize:22,valueData:this.value||this.stateValue[1]}},computed:{state(){return!this.stateValue.indexOf(this.valueData)},compWidth(){let t=Math.max(this.$t(this.stateText[0]).length,this.$t(this.stateText[1]).length);return 3+this.handleSize+4+t*("zh"==this.$i18n.locale?1:.5)*13+10},handleSeat(){return this.state?this.compWidth-this.handleSize-3+"px":"3px"},textStyle(){return this.state?{left:0}:{right:0}}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},methods:{set(t=this.stateValue[1]){this.valueData=t},get(){return this.valueData},switchHandle(){this._events.beforeChange?this.$emit("beforeChange",this.state,()=>{this.switch()}):this.switch(),this.$emit("change",this.get())},switch(t=this.state){this.valueData=this.stateValue[t?1:0]}}},Vi=ji,qi=(n("a45f"),d(Vi,Ki,Wi,!1,null,"f2d3ad7e",null)),Yi=qi.exports,Xi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-upload",class:{"flex-start-end":t.media},attrs:{media:t.media}},[t.media?e("c-draw-sort",{staticClass:"c-upload-media flex-wrap",attrs:{disabled:!t.multiple||!t.sort},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-draw-item",{key:i,staticClass:"c-upload-media-item flex-center",attrs:{index:r}},[e("c-file",{attrs:{src:n,media:""}}),e("a",{staticClass:"flex-center",on:{click:function(e){return e.stopPropagation(),t.removeHandle(r)},mousedown:function(t){t.stopPropagation()}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}}],null,!1,1593950063),model:{value:t.parseValueData,callback:function(e){t.parseValueData=e},expression:"parseValueData"}},[t.upperLimit||t.parseValueData.length&&t.button?t._e():e("div",{staticClass:"c-upload-media-item c-upload-media-upload flex-center",attrs:{slot:"append"},on:{click:t.uploadHandle},slot:"append"},[e("i",{class:t.mediaIcon})])]):t._e(),e("div",{staticClass:"c-upload-handle",class:{"flex-column":t.media,"flex-center-cross":!t.media}},[t.button?e("c-button",{style:{"align-self":t.media?"flex-start":""},attrs:{size:"upload","prepend-icon":t.icon,hollow:"",warn:!!t.name&&t.warnState},on:{click:t.uploadHandle}},[t._v(t._s(t.$t(t.button)))]):t._e(),t.type||t.tip||t.$slots.tip?e("div",{staticClass:"c-upload-tip"},[t._t("tip",null,{type:t.fileTypeTip}),t.$scopedSlots.tip?t._e():e("div",{class:{"flex-center":!t.media}},[t.tip?e("p",[t._v(t._s(t.tip))]):t._e(),t.fileTypeTip?e("p",[t._v(t._s(t.tip&&!t.media?",":"")+t._s(t.fileTypeTip))]):t._e()])],2):t._e()],1),t.media?t._e():e("ul",{directives:[{name:"show",rawName:"v-show",value:t.parseValueData.length,expression:"parseValueData.length"}],staticClass:"c-upload-list"},t._l(t.parseValueData,(function(n,i){return e("li",{key:i,staticClass:"flex-center-cross"},[e("c-file",{staticClass:"ellipsis",attrs:{src:n}}),e("a",{on:{click:function(e){return t.removeHandle(i)}}},[t._v(t._s(t.$t("_t.upload.delete")))])],1)})),0)],1)},Gi=[],Zi={name:"cUploadFile",props:{value:{type:[String,Array],default:""},name:String,type:String,size:[String,Number],media:Boolean,sort:{type:Boolean,default:!0},icon:{type:String,default:"c-icon-upload"},mediaIcon:{type:String,default:"c-icon-media"},button:{type:[String,Boolean],default:"_t.upload.button"},tip:String,multiple:{type:[Boolean,Number,String],default:!1}},data(){return{...Mn(this,"cFormItemStore"),valueData:this.multiple?[]:""}},computed:{...Pn("cFormItemStore",["warnState"]),parseValueData:{get(){return this.valueData?"object"==typeof this.valueData?this.valueData:this.valueData.toString().split(","):[]},set(t){this.multiple&&(this.valueData=t.join(",").split(","))}},fileTypeTip(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[this.$t("_t.upload.type.image")],video:["mp4"],word:["doc(x)"],excel:["xls(x)"],zip:[this.$t("_t.upload.type.zip")]}[e]||[e])}),this.$t("_t.upload.tip",{type:t.join(",")})}return""},upperLimit(){return this.multiple?"boolean"!=typeof this.multiple&&this.parseValueData.length>=parseInt(this.multiple):this.parseValueData.length>0}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},mounted(){this.set(this.value)},methods:{set(t){t||(t=this.multiple?[]:""),this.multiple&&"string"==typeof t&&(t=t.split(",")),this.valueData=t},get(){return this.valueData},removeHandle(t){let e=this.parseValueData.join(",").split(",");e.splice(t,1),this.set(this.multiple?e:e.join(",")),this.$emit("change",this.get())},uploadHandle(){this.cFormItemStore.commit("warnState",!1),this.upperLimit&&this.multiple?this.$message({message:this.$t("_t.upload.message.limit",{limit:this.multiple})}):this._events.click?this.$emit("click",{type:this.type,size:this.size,count:this.multiple?"boolean"!=typeof this.multiple?parseInt(this.multiple)-this.parseValueData.length:"":1,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):this.set(t[0].path),this.$emit("change",this.get())}}):this.$upload({type:this.type,size:this.size,multiple:this.multiple,loading:!0,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):(Array.isArray(t)&&(t=t[0]),this.set(t.path)),this.$emit("change",this.get())}})}}},Qi=Zi,Ji=(n("3849"),d(Qi,Xi,Gi,!1,null,"0d3363d8",null)),tr=Ji.exports,er=function(){var t=this,e=t._self._c;return t.media?e("div",{staticClass:"c-file-media flex-center",attrs:{title:`${t.info.name}${t.info.suffix?".":""}${t.info.suffix}`},on:{click:t.previewHandle}},["video"==t.info.media?e("video",{attrs:{src:t.src}}):"image"==t.info.media?e("img",{attrs:{src:t.src}}):e("i",{staticClass:"c-file-icon c-icon-file",class:"c-icon-file-"+t.info.suffix})]):e("div",{staticClass:"c-file flex-center-cross",on:{click:t.download}},[e("i",{staticClass:"c-file-icon c-icon-fw c-icon-file",class:"c-icon-file-"+t.info.suffix}),e("a",{staticClass:"ellipsis"},[t._v(t._s(t.info.name)+t._s(t.info.suffix?".":"")+t._s(t.info.suffix))])])},nr=[],ir={name:"cFile",props:{src:String,media:Boolean,preview:{type:Boolean,default:!0}},computed:{info(){return Bf(this.src)}},methods:{download(){window.open(this.src)},previewHandle(){this.preview&&(this.info.media?this.$preview({src:this.src}):this.download())}}},rr=ir,or=(n("4996"),d(rr,er,nr,!1,null,"79083cfe",null)),ar=or.exports,sr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-editor"},[e("div",{ref:"div",attrs:{id:t.id}})])},lr=[],cr=(n("79d9"),n("5a08"),{name:"cEditor",props:{value:String,name:String,height:{type:[String,Number],default:300},autoHeight:Boolean},data(){return{id:"KindEditor"+this._uid}},watch:{value(t){this.editor.html(t)}},mounted(){setTimeout(()=>{this.editor||this.create(),this.set(this.value)})},activated(){this.destroy(),this.create()},beforeDestroy(){this.destroy()},methods:{set(t=""){this.editor.html(t)},get(){return this.editor.html()},create(){this.editor=KindEditor.create("#"+this.id,{width:"100%",height:this.height,resizeType:1,autoHeightMode:!!this.autoHeight,afterBlur:()=>{this.$emit("input",this.get())}})},destroy(){this.editor&&this.editor.remove()}}}),ur=cr,dr=(n("6286"),d(ur,sr,lr,!1,null,"cbdbd666",null)),hr=dr.exports,pr=function(){var t=this,e=t._self._c;return e("a",{staticClass:"c-link",attrs:{color:t.color,href:t.href,target:t.target},on:{click:function(e){return t.$emit("click")}}},[t.icon?e("i",{staticClass:"icon c-icon-link",class:t.icon}):t._e(),t.$slots.default?e("span",[t._t("default")],2):e("span",[t._v(t._s(t.href))])])},fr=[],mr={name:"cLink",props:{icon:[Boolean,String],href:String,target:String,color:{type:[String,Boolean],default:"normal"}}},gr=mr,vr=(n("51d5"),d(gr,pr,fr,!1,null,"4c0df2c1",null)),br=vr.exports,_r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},[t.mask?e("div",{staticClass:"c-popup-mask an an-fadein",class:{"an-fadeout":!t.active},style:{"z-index":t.zIndex},on:{dblclick:()=>{t.closeButton&&t.close()}}}):t._e(),e("div",{ref:"wrapper",staticClass:"c-dialog-wrapper",style:{...t.position,"z-index":t.zIndex,width:t.parsePixel(t.compWidth,!0)},attrs:{mode:t.mode}},[e("div",{staticClass:"c-dialog flex-column an",class:{"z-shadow":!t.mask,[t.animateClass]:t.active,"an-fadeout":!t.active},attrs:{mode:t.mode,confirm:t.confirm}},[!1!==t.options.title?e("div",{staticClass:"c-dialog-head",attrs:{move:!!t.move},on:{mousedown:t.moveHandle}},[e("p",[t._v(t._s(t.$t(t.options.title)))])]):t._e(),e("div",{staticClass:"flex c-dialog-handle"},[t.resizeButton?[e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:t.minimize}},[e("i",{staticClass:"c-icon-dialog-min"})]),e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:function(e){t.max=!t.max}}},[e("i",{class:[t.max?"c-icon-dialog-normal":"c-icon-dialog-max"]})])]:t._e(),t.closeButton?e("div",{staticClass:"c-dialog-handle-item close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})]):t._e()],2),e("div",{class:{"flex-grow":"slide"==t.mode||t.max,"flex-column":t.enableFlex},style:{height:t.compHeight,overflow:"auto"==t.compHeight?"":"auto"}},[t._t("default")],2),t.options.button?e("div",{staticClass:"c-dialog-button flex-center-cross flex-end-center"},[t.$slots.button?t._t("button"):[e("c-button",{attrs:{size:"dialog",color:"main"},on:{click:function(e){return t.buttonHandle("resolve")}}},[t._v(t._s(t.$t(t.options.buttonName)))]),t.options.cancelButton?e("c-button",{attrs:{size:"dialog"},on:{click:function(e){return t.buttonHandle("cancel")}}},[t._v(t._s(t.$t(t.options.cancelButtonName)))]):t._e()]],2):t._e()])])])},yr=[],wr={name:"cDialog",props:{mode:{type:String,default:"popup"},confirm:Boolean,title:{type:[String,Boolean],default:""},width:[Number,String],height:{type:[Number,String],default:"auto"},resizeButton:Boolean,closeButton:{type:Boolean,default:!0},move:{type:Boolean,default:!0},moveLimit:{type:Boolean,default:!0},button:{type:Boolean,default:!0},buttonName:{type:String,default:"_t.popup.button"},cancelButton:{type:Boolean,default:!0},cancelButtonName:{type:String,default:"_t.popup.cancelButton"},enableFlex:Boolean,mask:{type:Boolean,default:!0}},data(){return{zIndex:1001,animate:!1,show:!1,active:!1,position:{},actualWidth:0,actualHeight:0,openOptions:{},max:!1,min:!1}},computed:{compWidth(){return this.max?"100%":this.actualWidth||this.width||{popup:750,slide:600}[this.mode]},compHeight(){return"slide"==this.mode?"100%":this.parsePixel(this.actualHeight||this.height,!0)},propsOptions(){return{title:this.title,button:this.button,buttonName:this.buttonName,cancelButton:this.cancelButton,cancelButtonName:this.cancelButtonName}},options(){return Object.assign({},this.propsOptions,this.openOptions)},animateClass(){return this.animate?{popup:"an-popup",slide:"an-slidein"}[this.mode]:""}},watch:{max(t){t?(this._lastPosition=this.position,this.position={left:0,top:0,right:0,bottom:0}):this.position=this._lastPosition}},mounted(){(function t(e){e&&("cDialog"==e.$options.name?this.zIndex=e.zIndex+1:t.call(this,e.$parent))}).call(this,this.$parent)},activated(){this._min&&this._min.show()},deactivated(){this._min&&this._min.hide()},beforeDestroy(){this._min&&this._min.remove()},methods:{updatePosition(t){this.show&&("slide"==this.mode?this.position={right:0,top:0}:this.$nextTick(()=>{let e=this.$refs.wrapper.getBoundingClientRect();e.width>document.body.clientWidth?e.width=this.actualWidth=document.body.clientWidth:this.actualWidth=0;let n=(!1!==this.options.title?61:0)+(this.options.button?61:0);e.height>window.innerHeight?(this.actualHeight=window.innerHeight-n,e.height=this.actualHeight+n):this.actualHeight=0,this.position=t?{left:parseInt(t.left)+"px",top:parseInt(t.top)+"px"}:{left:(document.body.clientWidth-e.width)/2+"px",top:(window.innerHeight-e.height)/2+"px"}}))},open(t={}){if(!this._min)return t.zIndex&&(this.zIndex=t.zIndex),this.openOptions=t,this.openHandle(),this.updatePosition(t.position),new Promise(t=>{this._resolve=t});this.openHandle()},minimize(){this.active&&(this._min=this.$minDialog(this,{title:this.options.title||"",closeButton:this.closeButton,back:this.openHandle}),this.closeHandle())},close(){this._min&&this._min.remove(),delete this._min,this.closeHandle(),this.$emit("close"),setTimeout(()=>{this.actualWidth=this.actualHeight=0,this.max=this.min=!1},250)},openHandle(){this._min&&this._min.remove(),delete this._min,this.animate=!0,this.active=!0,this.show=!0,setTimeout(()=>{this.animate=!1},450)},closeHandle(){this.active=!1,setTimeout(()=>{this.show=!1},250)},buttonHandle(t){let e=!1;(function(e,n){this.$emit(t,e,n),this._resolve({type:t,stop:e,next:n}),this.openOptions[t]&&this.openOptions[t](e,n)}).call(this,()=>{e=!0},this.close),setTimeout(()=>{!e&&this.close()})},moveHandle(t){this.moveEnd();let e="slide"==this.mode,n=this.$refs.wrapper.getBoundingClientRect(),i={x:e?document.body.clientWidth-n.right:n.left,y:n.top},r={x:t.clientX,y:t.clientY};this._mousemoveEvent=t=>{let o={x:t.clientX<0?0:t.clientX>document.body.clientWidth?document.body.clientWidth:t.clientX,y:t.clientY<0?0:t.clientY>window.innerHeight?window.innerHeight:t.clientY},a={x:i.x+(o.x-r.x)*(e?-1:1),y:i.y+o.y-r.y};if(this.moveLimit){let t={x:document.body.clientWidth-n.width,y:window.innerHeight-n.height};a.x=a.x<0?0:a.x>t.x?t.x:a.x,a.y=a.y<0?0:a.y>t.y?t.y:a.y}this.position={[e?"right":"left"]:a.x+"px",top:e?0:a.y+"px"}},document.addEventListener("mousemove",this._mousemoveEvent),document.addEventListener("mouseup",this.moveEnd)},moveEnd(){document.removeEventListener("mousemove",this._mousemoveEvent),document.removeEventListener("mouseup",this.moveEnd)}}},xr=wr,kr=(n("0bfd"),d(xr,_r,yr,!1,null,"18021c34",null)),Sr=kr.exports,Dr=function(){var t=this,e=t._self._c;return e("dl",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"c-window",style:t.compStyle},[e("dt",{staticClass:"flex-between-center"},[e("p",[t._v(t._s(t.$t(t.title)))]),e("a",{on:{click:t.hideHandle}},[e("i",{staticClass:"c-icon-cross"})])]),e("dd",{style:{height:t.parsePixel(this.height,!0)}},[t._t("default")],2),t.$scopedSlots.button?e("dd",{staticClass:"flex-between-center"},[e("div",[t._t("beforeButton")],2),e("div",{staticClass:"c-window-button flex"},[t._t("button")],2)]):t._e()])},Cr=[],Er={name:"cWindow",props:{title:String,width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},position:{type:String,default:"bottom"},align:{type:String,default:"start"}},data(){return{active:!1,positionStyle:{}}},computed:{compStyle(){return Object.assign({width:this.parsePixel(this.width,!0)},this.positionStyle)}},deactivated(){this.hide()},methods:{show(t,e=this.position,n=this.align){this.active=!0,t?(t=t.$options?t.$el:t,this._updatePosition=()=>{let i=t.getBoundingClientRect();this.positionStyle={left:i.left+({left:-this.$el.offsetWidth,right:i.width}[e]||0)+(["top","bottom"].includes(e)&&"start"!=n?i.width-this.$el.offsetWidth:0)+"px",top:i.top+({top:-this.$el.offsetHeight,bottom:i.height}[e]||0)+(["left","right"].includes(e)&&"start"!=n?i.height-this.$el.offsetHeight:0)+"px"}},this._removeEvent=()=>{Bn(t,t=>{t.removeEventListener("scroll",this._updatePosition)})},Bn(t,t=>{t.addEventListener("scroll",this._updatePosition)}),this.$nextTick(this._updatePosition)):this.positionStyle={position:"static"}},hide(){this._removeEvent&&this._removeEvent(),this.active=!1},hideHandle(){this.hide(),this.$emit("close")}}},Ar=Er,Tr=(n("b005"),d(Ar,Dr,Cr,!1,null,"7a27c016",null)),Br=Tr.exports,Fr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table flex-column flex-grow-auto",style:{height:t.compHeight,"user-select":t.widthResizePosition?"none":"auto"},attrs:{border:t.border}},[e("div",{staticClass:"c-table-main flex-column flex-grow-auto"},[e("c-tbody",{ref:"tbody",attrs:{"auto-height":"auto"==t.height},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-thead")]},proxy:!0},t.$scopedSlots.custom?{key:"custom",fn:function({data:e,index:n}){return[t._t("custom",null,{data:e,index:n})]}}:null,t.summedRow?{key:"summed",fn:function(){return[e("c-summed")]},proxy:!0}:null],null,!0)})],1),!t.data&&t.pageBar?e("div",{staticClass:"c-table-foot"},[e("c-pagination",{staticClass:"c-table-page",attrs:{value:t.pageIndex,total:t.total},on:{handle:t.pageHandle}})],1):t._e(),t.widthResizePosition?e("div",{staticClass:"c-table-head-drag-line",style:{left:t.widthResizePosition+"px"}}):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)])},$r=[];function Lr(t,e){switch(e.type){case"selector":return e.multiple?[t("div",{class:"flex-center-cross"},[t("c-checkbox",{attrs:{value:this.allSelected},on:{change:t=>{this.store.selectHandle("all",t,e)}}})])]:"";default:return[t("div",{class:e.isParent||e.alignCenter?"flex-center":"flex-center-cross"},[e.$scopedSlots.head?e.$scopedSlots.head():[],e.required?[t("b",{class:"c-table-head-required"},["*"])]:[],t("p",{class:"ellipsis",attrs:{title:this.$t(e.label)}},[this.$t(e.label)])])]}}var Mr={render(t){return t("div",{class:"c-table-head",style:`min-width: ${this.columnsWidth}px;`},[t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map(e=>t("col",{attrs:{width:e.resizeWidth}}))]),t("thead",[this.header.map(e=>[t("tr",[e.map(e=>[t("th",{attrs:{rowspan:e.isParent?1:this.header.length-e.headLevel,colspan:e.childrenCount||1,parent:e.isParent,fixed:"right"==e.fixed,last:e._last},style:void 0!==e._position?`z-index: 10; position: sticky; ${e.fixed}: ${e._position}px`:""},[Lr.call(this,t,e),this.widthResize&&!e.isParent&&e.widthResize?[t("div",{class:"c-table-head-drag",attrs:{type:"right"==e.fixed?"left":"right"},on:{mousedown:t=>this.dragHandle(t,e,"right"==e.fixed?"left":"right")}})]:[]])])])])])])])},data(){return{store:this.$parent.store}},computed:{...Pn(["header","columns","fixedWidth","columnsWidth","allSelected","widthResize"])},methods:{dragHandle(t,e,n){let i=t.target.getBoundingClientRect().left-this.store.table.$el.getBoundingClientRect().left,r=t.clientX,o=0,a="right"==n?1/0:e.resizeWidth-20,s="left"==n?-1/0:20-e.resizeWidth;this.store.commit("widthResizePosition",i);const l=Af(t=>{o=t.clientX-r,this.store.commit("widthResizePosition",i+o)},20),c=()=>{o=(o>a?a:o<s?s:o)*("right"==n?1:-1),e.resizeWidth+=o,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),this.store.commit("widthResizePosition",null),this.store.table.$emit("widthResize",{type:e.type,name:e.name,width:e.resizeWidth})};document.addEventListener("mousemove",l),document.addEventListener("mouseup",c)}}},Pr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table-button flex-wrap"},[t._l(t.buttonList.list,(function(n,i){return e("div",{key:i,staticClass:"c-table-button-item ellipsis",attrs:{title:t.$t(n)},on:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[t._v(t._s(t.$t(n)))])})),t.buttonList.more?e("div",{ref:"more",staticClass:"c-table-button-item",on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[t._v(" "+t._s(t.$t("_t.table.more"))),e("i",{staticClass:"c-icon-tri-down"})]):t._e(),t.buttonList.more?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-table-button-more",style:t.listPosition,on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[e("ul",{attrs:{up:t.listPosition.up}},t._l(t.buttonList.more,(function(n,i){return e("li",{key:i,staticClass:"ellipsis",attrs:{title:t.$t(n)},on:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[t._v(t._s(n))])})),0)]):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)],2)},Ir=[],Nr={props:{limit:Number,data:Object},data(){return{store:this.$parent.store,buttons:[],listPosition:!1}},computed:{buttonList(){var t=Array.from(this.buttons,t=>t),e="";return t.length>this.limit&&(e=t.splice(this.limit-1)),{list:t,more:e}}},watch:{data:{handler(){this.update()},immediate:!0,deep:!0},buttonList(t){t.more&&this.$nextTick(()=>{this.$refs.list&&document.body.appendChild(this.$refs.list)})}},mounted(){this.store.buttonVm.push(this),this.$refs.list&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this.store.buttonVm.splice(this.store.buttonVm.findIndex(t=>t==this),1),this.$refs.list&&document.body.removeChild(this.$refs.list)},methods:{update(){this.$nextTick(()=>{this.buttons=Array.from(this.$refs.hidden.children,(t,e)=>t.innerText)})},buttonHadnle(t){this.moreHandle(!1),this.$children.find(e=>e.$slots.default[0].text==t).$emit("click")},moreHandle(t){t?this._moreTimer?clearTimeout(this._moreTimer):(this.listPosition=!0,Bn(this.$refs.more,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$nextTick(this.updatePosition)):this._moreTimer=setTimeout(()=>{delete this._moreTimer,Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.listPosition=!1},20)},updatePosition(){let t=this.$refs.more.getBoundingClientRect(),e=this.$refs.list.offsetHeight,n=window.innerHeight-t.bottom<e;this.listPosition={up:n,right:document.body.offsetWidth-t.right+"px",top:(n?t.top-e:t.bottom)+"px"}}}},Hr=Nr,zr=d(Hr,Pr,Ir,!1,null,null,null),Or=zr.exports;
|
|
18
|
+
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}function i(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var r=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)t[e+l]^=s[l]}});return e.Decryptor=r,e}(),t.mode.CTRGladman}))},ab36:function(t,e,n){"use strict";var i=n("861d"),r=n("9112");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},ab45:function(t,e,n){"use strict";n("a0a0")},ac0c:function(t,e,n){"use strict";n("633a")},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},ad74:function(t,e,n){},aeb0:function(t,e,n){"use strict";var i=n("9bf2").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){"use strict";var i=n("83ab"),r=n("d039");t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af5b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.BlockCipher,r=e.algo;const o=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function c(t,e){let n=e>>24&255,i=e>>16&255,r=e>>8&255,o=255&e,a=t.sbox[0][n]+t.sbox[1][i];return a^=t.sbox[2][r],a+=t.sbox[3][o],a}function u(t,e,n){let i,r=e,a=n;for(let s=0;s<o;++s)r^=t.pbox[s],a=c(t,r)^a,i=r,r=a,a=i;return i=r,r=a,a=i,a^=t.pbox[o],r^=t.pbox[o+1],{left:r,right:a}}function d(t,e,n){let i,r=e,a=n;for(let s=o+1;s>1;--s)r^=t.pbox[s],a=c(t,r)^a,i=r,r=a,a=i;return i=r,r=a,a=i,a^=t.pbox[1],r^=t.pbox[0],{left:r,right:a}}function h(t,e,n){for(let o=0;o<4;o++){t.sbox[o]=[];for(let e=0;e<256;e++)t.sbox[o][e]=s[o][e]}let i=0;for(let s=0;s<o+2;s++)t.pbox[s]=a[s]^e[i],i++,i>=n&&(i=0);let r=0,l=0,c=0;for(let a=0;a<o+2;a+=2)c=u(t,r,l),r=c.left,l=c.right,t.pbox[a]=r,t.pbox[a+1]=l;for(let o=0;o<4;o++)for(let e=0;e<256;e+=2)c=u(t,r,l),r=c.left,l=c.right,t.sbox[o][e]=r,t.sbox[o][e+1]=l;return!0}var p=r.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4;h(l,e,n)}},encryptBlock:function(t,e){var n=u(l,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=d(l,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=i._createHelper(p)}(),t.Blowfish}))},b035:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-input></c-input>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ntype | String | text | 按钮尺寸<br>**text**: 文本框<br>**password**: 密码框<br>**number**: 数字框<br>**stepper**: 步进器<br>**textarea**: 多行文本\r\nplaceholder | String | - | 提示占位符\r\nmaxlength | Number \\| String | - | 可输入最大字符数\r\ndecimal | Number \\| String | 0 | 数字框小数位数\r\nrange | Number \\| Array | 0 | 数字框数字范围<br>可输入逗号隔开的字符串('0,100')或数组([0, 100])\r\nprepend-text | String | - | 前置文本内容\r\nappend-text | String | - | 后置文本内容\r\nvisible | Boolean | false | 密码框显示密码按钮\r\nstep | Number \\| String | 1 | 步进器精度\r\nstep-controls | String | both | 步进器按钮位置<br>**both**: 两侧<br>**side**: 一侧\r\ndisabled | Boolean | false | 是否禁用输入框\r\nreadonly | Boolean | false | 输入框是否只读\r\nclear | Boolean | false | 是否显示清空按钮\r\n@input | Function | - | 输入事件\r\n@focus | Function | - | 焦点移入事件\r\n@blur | Function | - | 焦点移出事件\r\n@change | Function | - | 内容改变事件\r\n@suggest | Function(value, resolve) | - | 输入建议事件"},b29c:function(t,e,n){"use strict";n("4bc6")},b3e1:function(t,e,n){"use strict";n("563e")},b42e:function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:i)(e)}},b49e:function(t,e,n){},b50d:function(t,e,n){"use strict";var i=n("c532"),r=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),c=n("3934"),u=n("2d83");t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"],(i.isBlob(d)||i.isFile(d))&&d.type&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=unescape(encodeURIComponent(t.auth.password))||"";h.Authorization="Basic "+btoa(f+":"+m)}var g=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||c(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&i.forEach(h,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},b58f:function(t,e,n){},b622:function(t,e,n){"use strict";var i=n("da84"),r=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),c=i.Symbol,u=r("wks"),d=l?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),u[t]}},b74a:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-detail column="3">\r\n\t<c-detail-item label="字段名" colspan="2">\r\n\t\t单独设置占两列\r\n\t</c-detail-item>\r\n\t\r\n\t<c-detail-item label="字段名">\r\n\t\t内容\r\n\t</c-detail-item>\r\n</c-detail>\r\n```\r\n\r\n## 属性配置\r\n\r\n### 详情主体 <c-detail\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ncolumn | String | - | 列数\r\n\r\n### 详情项 <c-detail-item\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\ncolspan | String | 1 | 该项占几列'},b86b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,i=n.Word,r=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b8e3:function(t,e,n){"use strict";n("6b32")},b980:function(t,e,n){"use strict";var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},bbf0:function(t,e,n){const i=n("27a3"),r=n("0425");function o(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return o(t)}catch(i){return n}}},bc3a:function(t,e,n){t.exports=n("cee4")},befa:function(t,e,n){const i=n("bbf0"),r=n("dd7e"),o=n("9d94"),a=n("0196"),s=n("2f3a"),l=n("0425"),c=n("7bf0"),u=n("10b0");function d(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const i=[];let r;while(null!==(r=t.exec(n)))i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function p(t){const e=h(l.NUMERIC,i.NUMERIC,t),n=h(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let r,o;c.isKanjiModeEnabled()?(r=h(l.BYTE,i.BYTE,t),o=h(l.KANJI,i.KANJI,t)):(r=h(l.BYTE_KANJI,i.BYTE,t),o=[]);const a=e.concat(n,r,o);return a.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return o.getBitsLength(t);case i.KANJI:return s.getBitsLength(t);case i.BYTE:return a.getBitsLength(t)}}function m(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function g(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];switch(r.mode){case i.NUMERIC:e.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:e.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:e.push([r,{data:r.data,mode:i.BYTE,length:d(r.data)}]);break;case i.BYTE:e.push([{data:r.data,mode:i.BYTE,length:d(r.data)}])}}return e}function v(t,e){const n={},r={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),n[u]={node:c,lastCount:0},r[u]={};for(let t=0;t<o.length;t++){const a=o[t];n[a]&&n[a].node.mode===c.mode?(r[a][u]=f(n[a].lastCount+c.length,c.mode)-f(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),r[a][u]=f(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,e))}}o=l}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:n}}function b(t,e){let n;const l=i.getBestModeForData(t);if(n=i.from(e,l),n!==i.BYTE&&n.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(l));switch(n!==i.KANJI||c.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(t);case i.ALPHANUMERIC:return new o(t);case i.KANJI:return new s(t);case i.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"===typeof e?t.push(b(e,null)):e.data&&t.push(b(e.data,e.mode)),t}),[])},e.fromString=function(t,n){const i=p(t,c.isKanjiModeEnabled()),r=g(i),o=v(r,n),a=u.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return e.fromArray(m(s))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},c04e:function(t,e,n){"use strict";var i=n("c65b"),r=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c0c9:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-select></c-select> // 下拉框\r\n<c-region></c-region> // 地址框\r\n<c-datetime></c-datetime> // 日期框\r\n<c-color></c-color> // 颜色框\r\n<c-transfer></c-transfer> // 穿梭框\r\n```\r\n\r\n## 属性配置\r\n\r\n### 下拉框 <c-select\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 下拉框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 下拉框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\nplaceholder | String | - | 提示占位符\r\noptions | Array | - | 选项数据:[{"name": "选项名", "value": "选项值"}]\r\ndisabled | Boolean | false | 是否禁用下拉框\r\nmultiple | Boolean \\| Object | false | 是否支持多选\r\nmultiple.limit | Number | - | 多选最多可以选的选项数\r\nmultiple.linefeed | Boolean | false | 多选标签是否换行显示\r\nsearch | Boolean \\| Object | false | 是否支持搜索,异步模式下默认开启\r\nsearch.empty | Boolean | true | 异步模式下是否支持空搜索\r\nasync | Boolean | false | 异步模式\r\nclear | Boolean | false | 是否显示清空按钮\r\n@change | Function | - | 选项变化事件\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用\r\n@customEvent | Function(data, resolve) | - | 自定义事件\r\n\r\n### 地址框 <c-region\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 地址框的值,可使用v-model属性绑定变量\r\nprovince-name | String | - | 省份字段名\r\ncity-name | String | - | 城市字段名\r\ncounty-name | String | - | 区县字段名\r\naddress-name | String | - | 详细街道字段名\r\nlevel | String \\| Number | 3 | 地址库级别<br>**1**: 到省级<br>**2**: 到市级<br>**3**: 到区县级<br>**4**: 到详细街道地址\r\n\r\n### 日期框 <c-datetime\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 日期框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\nstart-name | String | - | 开始日期字段名\r\nend-name | String | - | 结束日期字段名\r\nplaceholder | String | - | 提示占位符\r\ntype | String | datetime | 日期类型<br>**datetime**: 日期+时间<br>**date**: 仅日期<br>**time**: 仅时间\r\ntime-accuracy | String | sec | 时间精度<br>**hour**: 到小时<br>**min**: 到分钟<br>**sec**: 到秒\r\ndefault-time | String \\| Array | - | 默认时间\r\nrange | Boolean | - | 是否为范围选择\r\nformat | Boolean | \'yyyy-MM-dd hh:mm:ss\' | 日期格式\r\ndisabled | Boolean | false | 是否禁用日期框\r\n\r\n### 颜色框 <c-color\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 颜色框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\n\r\n### 穿梭框 <c-transfer\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Array | - | 穿梭框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 穿梭框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\ntitle | String \\| Array | 数据 | 穿梭框的标题,传入字符串xx时标题为"全部xx"和"已选xx",也可传入数组:[\'左侧标题\', \'右侧标题\']\r\ndata | Array | - | 所有可选数据:[{"name": "选项名", "value": "选项值"}]\r\nsearch | Boolean \\| Object | false | 搜索功能,异步模式下默认开启\r\nsearch.immediate | Boolean | true | 异步模式下是否立即加载数据\r\nsearch.placeholder | String | - | 搜索框提示信息\r\nasync | Boolean | false | 异步模式\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用'},c198:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.BlockCipher,r=e.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var m=t[n],g=t[m],v=t[g],b=257*t[r]^16843008*r;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;b=16843009*v^65537*g^257*m^16843008*n;d[r]=b<<24|b>>>8,h[r]=b<<16|b>>>16,p[r]=b<<8|b>>>24,f[r]=b,n?(n=m^t[t[t[v^m]]],i^=t[t[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)s<n?a[s]=e[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=u<<8|u>>>24,u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c<r;c++){s=r-c;if(c%4)var u=a[s];else u=a[s-4];l[c]=c<4||s<=4?u:d[o[u>>>24]]^h[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,l,c,u,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,d,h,p,f,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],d=t[e+2]^n[2],h=t[e+3]^n[3],p=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],b=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=b}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++];t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=b},keySize:8});e.AES=i._createHelper(g)}(),t.AES}))},c1bc:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,i=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&a+.75*d<i;d++)o.push(r.charAt(u>>>6*(3-d)&63));var h=r.charAt(64);if(h)while(o.length%4)o.push(h);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,i=e?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<i.length;a++)r[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return o(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64url}))},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c3b6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=r.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}e.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(s)}(),t.RC4}))},c3c3:function(t,e,n){},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c532:function(t,e,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function d(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===r.call(t)}function g(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function b(t){return"[object Function]"===r.call(t)}function _(t){return p(t)&&b(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function S(){var t={};function e(e,n){f(t[n])&&f(e)?t[n]=S(t[n],e):f(e)?t[n]=S({},e):o(e)?t[n]=e.slice():t[n]=e}for(var n=0,i=arguments.length;n<i;n++)k(arguments[n],e);return t}function D(t,e,n){return k(e,(function(e,r){t[r]=n&&"function"===typeof e?i(e,n):e})),t}function C(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:p,isPlainObject:f,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:b,isStream:_,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:k,merge:S,extend:D,trim:w,stripBOM:C}},c5a0:function(t,e,n){},c65b:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){"use strict";var i=n("e330"),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},c6cd:function(t,e,n){"use strict";var i=n("da84"),r=n("6374"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c73d:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("edd0"),a=n("83ab"),s=TypeError,l=Object.defineProperty,c=r.self!==r;try{if(a){var u=Object.getOwnPropertyDescriptor(r,"self");!c&&u&&u.get&&u.enumerable||o(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw new s("Illegal invocation");l(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:c},{self:r})}catch(d){}},c792:function(t,e,n){"use strict";n("8e23")},c8aa:function(t,e,n){const i=n("7bf0"),r=n("34fc"),o=n("7a43"),a=n("bbf0"),s=n("27a3"),l=7973,c=i.getBCHDigit(l);function u(t,n,i){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}function d(t,e){return a.getCharCountIndicator(t,e)+4}function h(t,e){let n=0;return t.forEach((function(t){const i=d(t.mode,e);n+=i+t.getBitsLength()})),n}function p(t,n){for(let i=1;i<=40;i++){const r=h(t,i);if(r<=e.getCapacity(i,n,a.MIXED))return i}}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=i.getSymbolTotalCodewords(t),l=r.getTotalCodewordsCount(t,e),c=8*(o-l);if(n===a.MIXED)return c;const u=c-d(n,t);switch(n){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(t,e){let n;const i=o.from(e,o.M);if(Array.isArray(t)){if(t.length>1)return p(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return u(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;while(i.getBCHDigit(e)-c>=0)e^=l<<i.getBCHDigit(e)-c;return t<<12|e}},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){"use strict";var i=n("e330"),r=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);while(e.length>c)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},cb2d:function(t,e,n){"use strict";var i=n("1626"),r=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){"use strict";var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cc71:function(t,e,n){},cdce:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},cee4:function(t,e,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var c=l(s);c.Axios=o,c.create=function(t){return l(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},d012:function(t,e,n){"use strict";t.exports={}},d013:function(t,e,n){"use strict";n.r(e),e["default"]='## 栅格布局\r\n\r\n```\r\n<c-grid-row margin gap>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n</c-grid-row>\r\n```'},d039:function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d055:function(t,e,n){const i=n("67dd"),r=n("aa63"),o=n("4146"),a=n("4006");function s(t,e,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!i())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=o=void 0):2!==l||e.getContext||(o=n,n=e,e=void 0),new Promise((function(i,a){try{const a=r.create(n,o);i(t(a,e,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=e,e=o=void 0):3===l&&(e.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=e,e=void 0));try{const i=r.create(n,o);a(null,t(i,e,o))}catch(u){a(u)}}e.create=r.create,e.toCanvas=s.bind(null,o.render),e.toDataURL=s.bind(null,o.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},d066:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d278:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-window ref="window">\r\n\t<div>窗口内容</div>\r\n\r\n\t<template #beforeButton>\r\n\t\t自定义内容\r\n\t</template>\r\n\t\r\n\t<template #button>\r\n\t\t<c-button>按钮名称</c-button>\r\n\t</template>\r\n</c-window>\r\n\r\nthis.$refs.window.show(follow, position, align) // 显示悬浮窗口,follow:跟随的目标节点,position:跟随位置(top、bottom、left、right),align:对齐方向(start、end)\r\nthis.$refs.window.hide() // 隐藏悬浮窗口\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntitle | String | - | 悬浮窗口标题\r\nwidth | Number \\| String | 400 | 悬浮窗口宽度\r\nheight | Number \\| String | - | 悬浮窗口内容区域高度\r\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\r\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向'},d287:function(t,e,n){},d2bb:function(t,e,n){"use strict";var i=n("7282"),r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},d359:function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfZgGiCg4SFhoMBiYqLjI2CjZCRjwFnlZUBQ0JBTD1JOzAuLDmJk41Di2JhZAI3KqRoiZaXTgEEBFhgWVplHSmvkUABHwFXY1tcXR0nv5SyAT6JR1RmX14DHSXMjUoBRlA/MjQbGR0QzLJnAUk4UgwzTxxFEy0P2ow8UQY1FhpNNlMLSJxzFiOAhwsHJFBAQsSKCHuLXhS4gCABhgoKllQJMdBSAB0rVkRAYQKCgxENQECMJAlWM3QwnQUoxZLlpJg4L810WdOmy5w4V/ZcdBMoTKFDkSY9xLRpIAA7"},d429:function(t,e,n){"use strict";n.r(e),e["default"]='# 一级标题\r\n\r\n> 高亮区域\r\n\r\n## 二级标题\r\n\r\n正文内容**加粗**\r\n\r\n[链接](#gridOptions)\r\n\r\n```\r\n代码区域\r\n```\r\n\r\n<a id="gridOptions"></a>\r\n\r\n表头 | 表头 | 表头\r\n---- | ---- | ----\r\n表体 | 表体 | 表体<br>换行'},d647:function(t,e,n){"use strict";n("94b5")},d6c0:function(t,e,n){const i=n("7bf0").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7];for(let i=1;i<e-1;i++)o[i]=o[i-1]-r;return o.push(6),o.reverse()},e.getPositions=function(t){const n=[],i=e.getRowColCoords(t),r=i.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([i[e],i[t]]);return n}},d6d6:function(t,e,n){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw new i("Not enough arguments");return t}},d6e6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Hasher,r=e.x64,o=r.Word,a=r.WordArray,s=e.algo;function l(){return o.create.apply(o,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=l()})();var d=s.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=r.high,g=r.low,v=o.high,b=o.low,_=a.high,y=a.low,w=s.high,x=s.low,k=l.high,S=l.low,D=d.high,C=d.low,E=h.high,A=h.low,T=p,B=f,F=m,$=g,L=v,M=b,P=_,I=y,N=w,H=x,z=k,R=S,O=D,U=C,K=E,W=A,j=0;j<80;j++){var V,q,Y=u[j];if(j<16)q=Y.high=0|t[e+2*j],V=Y.low=0|t[e+2*j+1];else{var X=u[j-15],G=X.high,Z=X.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,J=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),tt=u[j-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=u[j-7],at=ot.high,st=ot.low,lt=u[j-16],ct=lt.high,ut=lt.low;V=J+st,q=Q+at+(V>>>0<J>>>0?1:0),V+=rt,q=q+it+(V>>>0<rt>>>0?1:0),V+=ut,q=q+ct+(V>>>0<ut>>>0?1:0),Y.high=q,Y.low=V}var dt=N&z^~N&O,ht=H&R^~H&U,pt=T&F^T&L^F&L,ft=B&$^B&M^$&M,mt=(T>>>28|B<<4)^(T<<30|B>>>2)^(T<<25|B>>>7),gt=(B>>>28|T<<4)^(B<<30|T>>>2)^(B<<25|T>>>7),vt=(N>>>14|H<<18)^(N>>>18|H<<14)^(N<<23|H>>>9),bt=(H>>>14|N<<18)^(H>>>18|N<<14)^(H<<23|N>>>9),_t=c[j],yt=_t.high,wt=_t.low,xt=W+bt,kt=K+vt+(xt>>>0<W>>>0?1:0),St=(xt=xt+ht,kt=kt+dt+(xt>>>0<ht>>>0?1:0),xt=xt+wt,kt=kt+yt+(xt>>>0<wt>>>0?1:0),xt=xt+V,kt=kt+q+(xt>>>0<V>>>0?1:0),gt+ft),Dt=mt+pt+(St>>>0<gt>>>0?1:0);K=O,W=U,O=z,U=R,z=N,R=H,H=I+xt|0,N=P+kt+(H>>>0<I>>>0?1:0)|0,P=L,I=M,L=F,M=$,F=T,$=B,B=xt+St|0,T=kt+Dt+(B>>>0<xt>>>0?1:0)|0}f=i.low=f+B,i.high=p+T+(f>>>0<B>>>0?1:0),g=r.low=g+$,r.high=m+F+(g>>>0<$>>>0?1:0),b=o.low=b+M,o.high=v+L+(b>>>0<M>>>0?1:0),y=a.low=y+I,a.high=_+P+(y>>>0<I>>>0?1:0),x=s.low=x+H,s.high=w+N+(x>>>0<H>>>0?1:0),S=l.low=S+R,l.high=k+z+(S>>>0<R>>>0?1:0),C=d.low=C+U,d.high=D+O+(C>>>0<U>>>0?1:0),A=h.low=A+W,h.high=E+K+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var r=this._hash.toX32();return r},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(d),e.HmacSHA512=i._createHmacHelper(d)}(),t.SHA512}))},d6f7:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-draw-sort v-model="sortList" class="flex-wrap">\r\n\t<template #default="{item, id, index}">\r\n\t\t<c-draw-item :key="id" :index="index">\r\n\t\t\t// 内容\r\n\t\t</c-draw-item>\r\n\t</template>\r\n</c-draw-sort>\r\n```'},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d929:function(t,e,n){"use strict";n("43ba")},d9b5:function(t,e,n){"use strict";var i=n("d066"),r=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},d9e2:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=r[s],c=7!==new Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,c),i({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){"use strict";var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},dd7e:function(t,e,n){const i=n("bbf0");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},df2f:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+a[c];d+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),t.SHA1}))},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),a="/"===o(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),o=i(n.split("/")),a=Math.min(r.length,o.length),s=a,l=0;l<a;l++)if(r[l]!==o[l]){s=l;break}var c=[];for(l=s;l<r.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===i&&(r=!1,i=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},df82:function(t,e,n){},e330:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},e35e:function(t,e,n){},e391:function(t,e,n){"use strict";var i=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},e474:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-switch></c-switch>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Any | false | 开关当前的状态值,可使用v-model属性绑定变量\r\nstate-value | Array | [true, false] | 开关的状态值,第0项对于打开状态,第1项对应关闭状态\r\nstate-text | Array | ['开启', '关闭']] | 开关的状态文字,第0项对于打开状态,第1项对应关闭状态\r\nstate-color | Array | ['#00B578', '#eee'] | 开关的状态颜色,第0项对于打开状态,第1项对应关闭状态\r\n@beforeChange | Function(state, next) | - | 开关状态变更前的回调函数<br>**state**: 开关变更前的状态<br>**next**: 继续变更开关状态的方法,不调用则开关状态不变更\r\n@change | Function(state) | - | 开关状态变更后的回调函数<br>**state**: 开关变更后的状态"},e4746:function(t,e,n){"use strict";n("8293")},e4e3:function(t,e,n){},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),d=n("e391"),h=n("ab36"),p=n("6f19"),f=n("83ab"),m=n("c430");t.exports=function(t,e,n,g){var v="stackTraceLimit",b=g?2:1,_=t.split("."),y=_[_.length-1],w=i.apply(null,_);if(w){var x=w.prototype;if(!m&&r(x,"cause")&&delete x.cause,!n)return w;var k=i("Error"),S=e((function(t,e){var n=d(g?e:t,void 0),i=g?new w(t):new w;return void 0!==n&&o(i,"message",n),p(i,S,i.stack,2),this&&a(x,this)&&u(i,this,S),arguments.length>b&&h(i,arguments[b]),i}));if(S.prototype=x,"Error"!==y?s?s(S,k):l(S,k,{name:!0}):f&&v in w&&(c(S,w,v),c(S,w,"prepareStackTrace")),l(S,w),!m)try{x.name!==y&&o(x,"name",y),x.constructor=S}catch(D){}return S}}},e5f1:function(t,e,n){"use strict";n("4425")},e61b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],u=[],d=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=e%5,r=(2*t+3*e)%5;t=i,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var l=0,h=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?h^=1<<f:l^=1<<f-32}128&o?o=o<<1^113:o<<=1}d[a]=s.create(l,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=s.create()})();var p=l.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],a=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[r];s.high^=a,s.low^=o}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){s=n[p+5*g];f^=s.high,m^=s.low}var v=h[p];v.high=f,v.low=m}for(p=0;p<5;p++){var b=h[(p+4)%5],_=h[(p+1)%5],y=_.high,w=_.low;for(f=b.high^(y<<1|w>>>31),m=b.low^(w<<1|y>>>31),g=0;g<5;g++){s=n[p+5*g];s.high^=f,s.low^=m}}for(var x=1;x<25;x++){s=n[x];var k=s.high,S=s.low,D=c[x];D<32?(f=k<<D|S>>>32-D,m=S<<D|k>>>32-D):(f=S<<D-32|k>>>64-D,m=k<<D-32|S>>>64-D);var C=h[u[x]];C.high=f,C.low=m}var E=h[0],A=n[0];E.high=A.high,E.low=A.low;for(p=0;p<5;p++)for(g=0;g<5;g++){x=p+5*g,s=n[x];var T=h[x],B=h[(p+1)%5+5*g],F=h[(p+2)%5+5*g];s.high=T.high^~B.high&F.high,s.low=T.low^~B.low&F.low}s=n[0];var $=d[l];s.high^=$.high,s.low^=$.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new r.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3}))},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6c5:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 单选框\r\n<c-radio-group>\r\n\t<c-radio value="1">选项一</c-radio>\r\n\t<c-radio value="2">选项二</c-radio>\r\n</c-radio-group>\r\n<c-radio-group :options="[{"name": "选项一", "value": "1"}]"></c-radio-group>\r\n\r\n// 复选框\r\n<c-checkbox-group>\r\n\t<c-checkbox value="1">选项一</c-checkbox>\r\n\t<c-checkbox value="2">选项二</c-checkbox>\r\n</c-checkbox-group>\r\n<c-checkbox-group :options="[{"name": "选项一", "value": "1"}]"></c-checkbox-group>\r\n```\r\n\r\n## 属性配置\r\n\r\n### 单选框组 <c-radio-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 单选框组的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用单选框组下所有单选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用单选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 单选框 <c-radio\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在单选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用单选框\r\n\r\n### 复选框组 <c-checkbox-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 复选框组的值,可输入逗号隔开的字符串(\'1,2\')或数组([1, 2]),可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用复选框组下所有复选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用复选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 复选框 <c-checkbox\\>\r\n```\r\n<c-checkbox\\>组件可在复选框组中使用,也可独立使用\r\n```\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在复选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用复选框\r\n@change | Function | - | 勾选状态改变事件,仅独立使用时可用\r\n@click | Function | - | 复选框点击事件'},e702:function(t,e,n){},e893:function(t,e,n){"use strict";var i=n("1a2d"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},e8b5:function(t,e,n){"use strict";var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"===i(t)}},edd0:function(t,e,n){"use strict";var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},f490:function(t,e,n){"use strict";n("cc71")},f4ea:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=a[s]}});return e.Decryptor=n,e}(),t.mode.CTR}))},f5df:function(t,e,n){"use strict";var i=n("00ee"),r=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=l(t),s))?n:c?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},f6b4:function(t,e,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},f772:function(t,e,n){"use strict";var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},f9f1:function(t,e,n){"use strict";n("942a")},fab0:function(t,e,n){"use strict";n("fc9c")},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"i18n",(function(){return Cf})),n.d(e,"cryptoJs",(function(){return Ih.a})),n.d(e,"qrcode",(function(){return Hh.a})),n.d(e,"validate",(function(){return Hs})),n.d(e,"shortcutKey",(function(){return wf})),n.d(e,"debounce",(function(){return Af})),n.d(e,"throttle",(function(){return Tf})),n.d(e,"cookie",(function(){return Bf})),n.d(e,"parseFile",(function(){return Ff})),n.d(e,"createStore",(function(){return Ln})),n.d(e,"getStore",(function(){return Mn})),n.d(e,"mapStore",(function(){return Pn})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("14d9"),n("37f6"),n("4e02"),n("69b1");var o=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"vue-component-library"},[e("div",{staticClass:"lang flex"},[e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="zh"}}},[t._v("中文")]),e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="en"}}},[t._v("English")])],1),t._l(t.docTab,(function(n,i){return e("c-button",{key:i,staticClass:"tab",attrs:{size:"form",color:t.crtTab==n?t.crtTabColor:""},on:{click:function(e){t.crtTab=n}}},[t._v(t._s(n))])})),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.marked.parse("# "+t.crtTab))}}),e("api-button",{directives:[{name:"show",rawName:"v-show",value:"按钮"==t.crtTab,expression:"crtTab == '按钮'"}]}),e("api-input",{directives:[{name:"show",rawName:"v-show",value:"输入框"==t.crtTab,expression:"crtTab == '输入框'"}]}),e("api-options",{directives:[{name:"show",rawName:"v-show",value:"单复选框"==t.crtTab,expression:"crtTab == '单复选框'"}]}),e("api-selector",{directives:[{name:"show",rawName:"v-show",value:"选择器"==t.crtTab,expression:"crtTab == '选择器'"}]}),e("api-switch",{directives:[{name:"show",rawName:"v-show",value:"开关"==t.crtTab,expression:"crtTab == '开关'"}]}),e("api-file",{directives:[{name:"show",rawName:"v-show",value:"文件"==t.crtTab,expression:"crtTab == '文件'"}]}),e("api-editor",{directives:[{name:"show",rawName:"v-show",value:"编辑器"==t.crtTab,expression:"crtTab == '编辑器'"}]}),e("api-link",{directives:[{name:"show",rawName:"v-show",value:"链接"==t.crtTab,expression:"crtTab == '链接'"}]}),e("api-tooltip",{directives:[{name:"show",rawName:"v-show",value:"提示信息"==t.crtTab,expression:"crtTab == '提示信息'"}]}),e("api-title",{directives:[{name:"show",rawName:"v-show",value:"标题"==t.crtTab,expression:"crtTab == '标题'"}]}),e("api-pagination",{directives:[{name:"show",rawName:"v-show",value:"分页栏"==t.crtTab,expression:"crtTab == '分页栏'"}]}),e("api-table",{directives:[{name:"show",rawName:"v-show",value:"表格"==t.crtTab,expression:"crtTab == '表格'"}]}),e("api-form",{directives:[{name:"show",rawName:"v-show",value:"表单"==t.crtTab,expression:"crtTab == '表单'"}]}),e("api-detail",{directives:[{name:"show",rawName:"v-show",value:"详情"==t.crtTab,expression:"crtTab == '详情'"}]}),e("api-popup",{directives:[{name:"show",rawName:"v-show",value:"消息弹窗"==t.crtTab,expression:"crtTab == '消息弹窗'"}]}),e("api-dialog",{directives:[{name:"show",rawName:"v-show",value:"会话弹窗"==t.crtTab,expression:"crtTab == '会话弹窗'"}]}),e("api-window",{directives:[{name:"show",rawName:"v-show",value:"悬浮窗口"==t.crtTab,expression:"crtTab == '悬浮窗口'"}]}),e("api-preview",{directives:[{name:"show",rawName:"v-show",value:"媒体预览"==t.crtTab,expression:"crtTab == '媒体预览'"}]}),e("api-tab",{directives:[{name:"show",rawName:"v-show",value:"选项卡"==t.crtTab,expression:"crtTab == '选项卡'"}]}),e("api-layout",{directives:[{name:"show",rawName:"v-show",value:"布局"==t.crtTab,expression:"crtTab == '布局'"}]}),e("api-module",{directives:[{name:"show",rawName:"v-show",value:"模块"==t.crtTab,expression:"crtTab == '模块'"}]}),e("api-draw-sort",{directives:[{name:"show",rawName:"v-show",value:"拖拽排序"==t.crtTab,expression:"crtTab == '拖拽排序'"}]}),e("api-dropdown",{directives:[{name:"show",rawName:"v-show",value:"下拉菜单"==t.crtTab,expression:"crtTab == '下拉菜单'"}]}),e("api-right-menu",{directives:[{name:"show",rawName:"v-show",value:"右键菜单"==t.crtTab,expression:"crtTab == '右键菜单'"}]}),e("api-tree",{directives:[{name:"show",rawName:"v-show",value:"树"==t.crtTab,expression:"crtTab == '树'"}]}),e("api-steps",{directives:[{name:"show",rawName:"v-show",value:"步骤条"==t.crtTab,expression:"crtTab == '步骤条'"}]}),e("api-progress",{directives:[{name:"show",rawName:"v-show",value:"进度条"==t.crtTab,expression:"crtTab == '进度条'"}]}),e("api-qrcode",{directives:[{name:"show",rawName:"v-show",value:"二维码"==t.crtTab,expression:"crtTab == '二维码'"}]})],2)])},a=[],s=function(){var t=this,e=t._self._c;return e("div",[e("div",[t._l(t.buttonSize,(function(n,i){return e("div",{key:i},[e("c-button",{key:"n"+i,attrs:{size:n}},[t._v("按钮")]),t._l(t.buttonHollow,(function(i,r){return t._l(t.buttonColor,(function(o,a){return e("c-button",{key:`${r}${a}`,attrs:{size:n,color:o,hollow:i}},[t._v("按钮")])}))}))],2)})),e("div",[e("c-button",{attrs:{disabled:""}},[t._v("按钮")])],1),e("div",{staticClass:"flex"},[e("c-button",{attrs:{"prepend-icon":"c-icon-search"}},[t._v("按钮")]),e("c-button",{attrs:{"append-icon":"c-icon-search"}},[t._v("按钮")])],1)],2),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("button"))}})])},l=[],c={data(){return{buttonSize:["normal","form","dialog"],buttonColor:["main","lesser","red","green","blue","yellow"],buttonHollow:[!0,!1]}}},u=c;n("0a8a");function d(t,e,n,i,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var h=d(u,s,l,!1,null,"1a1f6dc0",null),p=h.exports,f=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-input",{on:{suggest:t.suggestHandle}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"number",decimal:"2",range:"0,9999"}})],1),e("br"),e("p",[e("c-input",{attrs:{"prepend-text":"前置文本","append-text":"后置文本"}})],1),e("br"),e("p",[e("c-input",{scopedSlots:t._u([{key:"prependText",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"prependIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0},{key:"appendText",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0}])})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"10",range:"0,100"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"0.1",range:"0,1",decimal:"1","step-controls":"side"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"password",visible:""}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"textarea",maxlength:"100"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("input"))}})])},m=[],g={data(){return{}},mounted(){},methods:{suggestHandle(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push(t+"输入建议"+o);e(r)}}},v=g,b=d(v,f,m,!1,null,"5bbd0d88",null),_=b.exports,y=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-radio-group",{attrs:{value:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-radio-group",{attrs:{options:t.options,value:"3",disabled:""},on:{change:t.changeHandle}})],1),e("p",[e("c-checkbox-group",{attrs:{limit:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-checkbox-group",{attrs:{options:t.options,value:"2,3",disabled:""},on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("options"))}})])},w=[],x={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}]}},mounted(){},methods:{changeHandle(t){console.log(t)}}},k=x,S=d(k,y,w,!1,null,"7eb1e109",null),D=S.exports,C=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{attrs:{"unit-width":"400"}},[e("c-form-item",{attrs:{label:"下拉框",tip:"单选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:"",search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选换行展示 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:{linefeed:!0},search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 异步选项"}},[e("p",[e("c-select",{attrs:{"value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 异步选项"}},[e("p",[e("c-select",{attrs:{multiple:"","value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"自定义事件"}},[e("p",[e("c-select",{attrs:{multiple:{linefeed:!0}},on:{customEvent:t.customEvent,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"地址框"}},[e("p",[e("c-region",{attrs:{level:"4"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"日期框"}},[e("p",[e("c-datetime",{on:{change:t.changeHandle}})],1),e("br"),e("p",[e("c-datetime",{attrs:{range:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"颜色框"}},[e("p",[e("c-color",{on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"穿梭框"}},[e("p",[e("c-transfer",{attrs:{data:t.initRandomOptions},on:{search:t.randomOptions,change:t.changeHandle}})],1)])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("selector"))}})])},E=[],A={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2,children:[{name:"optionSub1",value:21},{name:"optionSub2",value:22,children:[]},{name:"optionSub3",value:23}]},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},customEvent(t,e){this.randomOptions("",e)},changeHandle(t){console.log(t)}}},T=A,B=d(T,C,E,!1,null,"4492c4d6",null),F=B.exports,$=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-switch",{on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("switch"))}})])},L=[],M={data(){return{}},mounted(){},methods:{changeHandle(t){console.log(t)}}},P=M,I=d(P,$,L,!1,null,"b20cbce2",null),N=I.exports,H=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png,https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png",type:"image,video",multiple:"2",media:""},scopedSlots:t._u([{key:"tip",fn:function({type:n}){return[e("p",[t._v("自定义的提示说明")]),e("p",[t._v(t._s(n))])]}}])})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",type:"image,video",media:"",tip:"提示说明"}})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"http://placehold.it/750x750/666/fff.png,http://placehold.it/750x750/666/fff.png",type:"word,excel",tip:"tip属性"}})],1),e("br"),e("br"),e("p",[e("c-file",{attrs:{src:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",media:""}})],1),e("br"),e("p",[e("c-file",{attrs:{src:"http://placehold.it/750x750/666/fff.png"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("file"))}})])},z=[],R={data(){return{}},mounted(){},methods:{}},O=R,U=d(O,H,z,!1,null,"b1ed53f8",null),K=U.exports,W=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"800px"}},[e("p",[e("c-editor")],1)]),e("br"),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("editor"))}})])},j=[],V={data(){return{}},mounted(){},methods:{}},q=V,Y=d(q,W,j,!1,null,"1036af41",null),X=Y.exports,G=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("链接名称")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}})],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:""}},[t._v("带icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:"c-icon-search"}},[t._v("自定义icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"main",href:"https://www.baidu.com/",target:"_blank"}},[t._v("主色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"lesser",href:"https://www.baidu.com/",target:"_blank"}},[t._v("辅色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"gray",href:"https://www.baidu.com/",target:"_blank"}},[t._v("灰色链接")])],1),e("br")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("link"))}})])},Z=[],Q={data(){return{}},mounted(){},methods:{}},J=Q,tt=d(J,G,Z,!1,null,"8e49391a",null),et=tt.exports,nt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"320px",margin:"0 auto"}},[e("div",{staticClass:"flex-start-center",staticStyle:{height:"50px","margin-bottom":"20px"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v("默认提示信息")]),e("c-tooltip",{attrs:{tip:"提示信息内容"}}),e("span",{staticStyle:{margin:"0 10px 0 20px"}},[t._v("默认提示信息(白色)")]),e("c-tooltip",{attrs:{tip:"提示信息内容",color:"white"}})],1),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"start"}},[e("c-button",{ref:"button"},[t._v("上左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"end"}},[e("c-button",{ref:"button"},[t._v("上右")])],1)],1),e("div",{staticClass:"flex-between",staticStyle:{height:"80px"}},[e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"left",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左上")])],1),e("c-tooltip",{attrs:{position:"left",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左下")])],1)],1),e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"right",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右上")])],1),e("c-tooltip",{attrs:{position:"right",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右下")])],1)],1)]),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"start"}},[e("c-button",{ref:"button"},[t._v("下左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"end"}},[e("c-button",{ref:"button"},[t._v("下右")])],1)],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tooltip"))}})])},it=[],rt={data(){return{}},mounted(){},methods:{}},ot=rt,at=d(ot,nt,it,!1,null,"680d77da",null),st=at.exports,lt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-title",[t._v("标题名称")]),e("c-title",{attrs:{icon:"c-icon-search"}},[t._v("自定义图标标题")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("title"))}})])},ct=[],ut={data(){return{}},mounted(){},methods:{}},dt=ut,ht=d(dt,lt,ct,!1,null,"211d9b4c",null),pt=ht.exports,ft=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#F5F5F5"}},[e("c-pagination",{attrs:{total:"100"},on:{handle:t.update}})],1)])},mt=[],gt={data(){return{}},mounted(){},methods:{update(t){console.log(t)}}},vt=gt,bt=d(vt,ft,mt,!1,null,"2b668974",null),_t=bt.exports,yt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"preview",staticStyle:{"margin-top":"20px"}},[e("c-table",{ref:"table",attrs:{border:"","fixed-width":t.fixedWidth,"width-resize":"",height:"500",paging:!1},on:{rowClick:t.rowClick,widthResize:t.widthResize}},[e("c-table-column",{attrs:{type:"drag"},on:{drag:t.dragHandle}}),e("c-table-column",{attrs:{type:"selector",name:"selected"}}),e("c-table-column",{attrs:{fixed:"left",label:"col.expand",type:"expand","expand-button":({data:t})=>4!=t.num,"expand-limit":"3","add-button":""},on:{expand:t.expandHandle,add:t.addHandle},scopedSlots:t._u([{key:"default",fn:function({data:e}){return[t._v(" "+t._s(e.children?"子节点":4==e.num?"不可展开":"可展开")+" ")]}}])}),e("c-table-column",{attrs:{label:"col.normal",name:"num",required:"",summed:""},scopedSlots:t._u([{key:"summed",fn:function({total:e}){return[t._v(" 默认数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.custom",summed:({data:t})=>t.num},scopedSlots:t._u([{key:"default",fn:function({data:n}){return[e("span",[t._v("num: "+t._s(n.num.toFixed(2)))])]}},{key:"summed",fn:function({total:e}){return[t._v(" 自定义数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.sort",type:"sort","align-center":""},on:{sort:t.sortHandle}}),e("c-table-column",{attrs:{label:"col.complex"}},[e("c-table-column",{attrs:{label:"col.children",name:"rowspan","col-span":t.colSpan,"row-span":t.rowSpan}}),e("c-table-column",{attrs:{label:"col.children",name:"rowspan"}})],1),e("c-table-column",{attrs:{name:"_selected"},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-button",[t._v("自定义头部")])]},proxy:!0}])}),t.col?e("c-table-column",{attrs:{label:"动态列1"}},[t._v("1")]):t._e(),t.col?e("c-table-column",{attrs:{label:"动态列2"}},[t._v("2")]):t._e(),e("c-table-column",{attrs:{label:"静态列"}},[t._v("0")]),t.col?t._e():e("c-table-column",{attrs:{fixed:"right",label:"动态列3"}},[t._v("3")]),e("c-table-column",{attrs:{type:"button",label:"col.handle","button-limit":"3"},scopedSlots:t._u([{key:"default",fn:function({data:n}){return[n.button?t._e():e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮1")]),n.button?e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮2")]):t._e(),t.button?t._e():e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮1")]),t.button?e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮2")]):t._e(),e("c-table-button",[t._v("按钮")]),e("c-table-button",[t._v("按钮")])]}}])})],1)],1),e("br"),e("c-button",{on:{click:function(e){t.col=!t.col}}},[t._v("切换列")]),e("c-button",{on:{click:function(e){t.button=!t.button}}},[t._v("切换按钮")]),e("c-button",{on:{click:function(e){t.fixedWidth=!t.fixedWidth}}},[t._v(t._s(t.fixedWidth?"自动宽度":"固定宽度"))]),e("c-button",{on:{click:function(e){return t.getData()}}},[t._v("获取数据")]),e("c-button",{on:{click:function(e){return t.getData("selected")}}},[t._v("获取选中行")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("table"))}})],1)},wt=[],xt={data(){return{col:!1,button:!1,fixedWidth:!1}},mounted(){this.$refs.table.setData([{selected:!0,name:"admin",num:2,date:"2024-01-01 00:00:00",rowspan:1,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:4,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:5,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{selected:!0,name:"admin",num:1,date:"2024-01-01 00:00:00",rowspan:4,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:3,date:"2024-01-01 00:00:00",rowspan:5,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1}])},methods:{rowSpan({data:t},e){return e.filter(({data:e})=>e.rowspan==t.rowspan).length},colSpan({data:t},e){return 1==t.rowspan?2:1},rowClick(t){console.log(t)},expandHandle(t,e){setTimeout(()=>{e([{children:!0,text:"子节点",num:0}])},1e3)},addHandle(t,e){setTimeout(()=>{e({children:!0,text:"新子节点",num:0})},1e3)},dragHandle(t){console.log(t)},sortHandle(t,e,n){console.log(t,e),n()},getData(t){console.log(this.$refs.table.getData(t))},widthResize(t){console.log(t)}}},kt=xt,St=d(kt,yt,wt,!1,null,"4a95acbf",null),Dt=St.exports,Ct=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{ref:"form",attrs:{vertical:t.verticalState,"unit-width":"400"}},[e("c-form-item",{attrs:{label:"form.label"},scopedSlots:t._u([{key:"handle",fn:function(){return[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("跳转链接")])]},proxy:!0}])},[e("c-input",{attrs:{name:"input"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-radio-group",{attrs:{name:"radio"}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-checkbox-group",{attrs:{name:"checkbox"}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.labelWithAsterisk",required:""}},[e("c-select",{attrs:{name:"select",options:t.options}})],1),e("c-form-item",{attrs:{label:"form.labelTip",tip:"提示信息"}},[e("c-region",{attrs:{level:"4","province-name":"province","city-name":"city","county-name":"county","address-name":"address"}})],1),e("c-form-item",{attrs:{label:"form.labelCustomTip"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("span",{staticStyle:{color:"blue"}},[t._v("自定义提示信息")])]},proxy:!0}])},[e("c-datetime",{attrs:{type:"date",range:"","start-name":"start","end-name":"end"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-color",{attrs:{name:"color"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-switch",{attrs:{name:"switch","state-value":[1,0]}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-transfer",{attrs:{name:"transfer",data:t.initRandomOptions},on:{search:t.randomOptions}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",multiple:"",media:"",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label",name:"complex"}},[e("p",{staticStyle:{"line-height":"38px"}},[t._v("复杂表单项内容...")]),e("c-input",{attrs:{name:"complexInput"}})],1),e("c-form-item",[e("c-button",{on:{click:function(e){t.verticalState=!t.verticalState}}},[t._v(t._s(t.verticalState?"横向排列":"纵向排列"))]),e("c-button",{on:{click:t.getData}},[t._v("获取数据")]),e("c-button",{on:{click:t.setData}},[t._v("回填数据")]),e("c-button",{on:{click:t.validData}},[t._v("校验")]),e("c-button",{on:{click:t.clearData}},[t._v("清空")])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("form"))}})])},Et=[],At={data(){return{verticalState:!1,options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},setData(){this.$refs.form.set({input:1,radio:2,checkbox:[1,3],select:2,province:"province1",city:"city2",county:"county1",address:"address",start:"2024-01-01",end:"2024-01-31",color:"#000000",switch:1,file:["https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png","https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png"],complexInput:"1"})},getData(){console.log(this.$refs.form.get())},clearData(){this.$refs.form.clear()},validData(){this.$refs.form.validate({breakWhenFail:!1,rule:{input:{check:"输入框内容为空"},radio:"选项不能为空",checkbox:"选项不能为空",select:[{type:"empty",message:"下拉框内容为空"},{type:"function",fun:()=>new Promise(t=>{setTimeout(()=>{t(!0)},1e3)})}],county:"地区不能为空",end:"日期不能为空",color:"颜色不能为空",transfer:"穿梭框不能为空",file:"请上传文件",complex:t=>!!t.complexInput||"复杂字段校验失败"},success:t=>{console.log("success",t)},fail:t=>{console.log("fail",t)}})}}},Tt=At,Bt=d(Tt,Ct,Et,!1,null,"2bf99f4d",null),Ft=Bt.exports,$t=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-detail",{attrs:{column:"3"}},[e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名",colspan:"2"}},[t._v(" 单独设置占两列 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("detail"))}})])},Lt=[],Mt={data(){return{}},mounted(){},methods:{}},Pt=Mt,It=d(Pt,$t,Lt,!1,null,"6bceeb66",null),Nt=It.exports,Ht=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message()}}},[t._v("普通消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("success")}}},[t._v("成功消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("warn")}}},[t._v("警告消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("fail")}}},[t._v("失败消息弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice()}}},[t._v("普通通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("success")}}},[t._v("成功通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("warn")}}},[t._v("警告通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("fail")}}},[t._v("失败通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.noticeButton()}}},[t._v("带按钮的通知弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("enquire")}}},[t._v("询问确认弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("warn")}}},[t._v("提醒确认弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading()}}},[t._v("普通加载弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading("加载中")}}},[t._v("带文案加载弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("popup"))}})])},zt=[],Rt={data(){return{}},mounted(){},methods:{message(t){this.$message({type:t,message:"消息弹窗内容"})},notice(t){this.$notice({type:t,title:"通知标题",message:"通知弹窗内容"})},noticeButton(){this.$notice({title:"通知标题",message:"通知弹窗内容",button:[{name:"不再提醒",callback(){console.log(0)}}]})},confirm(t){this.$confirm({type:t,title:"确认弹窗标题",message:"确认弹窗内容",resolve:()=>{console.log("resolve")},cancel:()=>{console.log("cancel")}})},loading(t){this.$loading({message:t,timeout:1e3})}}},Ot=Rt,Ut=d(Ot,Ht,zt,!1,null,"694f65b0",null),Kt=Ut.exports,Wt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("popup")}}},[t._v("弹出模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("slide")}}},[t._v("侧滑模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("mask")}}},[t._v("无遮罩会话弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("dialog"))}}),e("c-dialog",{ref:"popup",attrs:{title:"会话弹窗1",height:"199","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"mask",attrs:{title:"会话弹窗2","resize-button":"",mask:!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"slide",attrs:{mode:"slide",title:"会话弹窗3","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])])],1)},jt=[],Vt={data(){return{}},mounted(){},methods:{dialog(t){this.$refs[t].open({zIndex:"mask"==t?1020:0})}}},qt=Vt,Yt=d(qt,Wt,jt,!1,null,"6313ac22",null),Xt=Yt.exports,Gt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-button",{ref:"button",on:{click:function(e){return t.$refs.window.show(t.$refs.button)}}},[t._v("显示窗口")]),e("c-window",{ref:"window",attrs:{title:"测试"},scopedSlots:t._u([{key:"beforeButton",fn:function(){return[t._v(" 自定义内容 ")]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮")])]},proxy:!0}])},[e("div",{staticStyle:{height:"100px"}},[t._v("窗口内容")])])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("window"))}})])},Zt=[],Qt={data(){return{}},mounted(){},methods:{}},Jt=Qt,te=d(Jt,Gt,Zt,!1,null,"72eef246",null),ee=te.exports,ne=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://uploadstatic.mihoyo.com/puzzle/upload/puzzle/2023/03/01/d2121e7797f65af32e3ed9eb258be585_8579148517963343593.jpg")}}},[t._v("图片预览")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://ys.mihoyo.com/main/_nuxt/videos/3e78e80.mp4")}}},[t._v("视频预览")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("preview"))}})])},ie=[],re={data(){return{}},mounted(){},methods:{preview(t){this.$preview({src:t})}}},oe=re,ae=d(oe,ne,ie,!1,null,"41bde794",null),se=ae.exports,le=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"border-tab"},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"card"},on:{change:t.tabsHandle}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tab"))}})])},ce=[],ue={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{tabsHandle(t){console.log(t)}}},de=ue,he=d(de,le,ce,!1,null,"483ea3ec",null),pe=he.exports,fe=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:""}},[e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/grid"))}}),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-flex-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/flex"))}})],1)])},me=[],ge={data(){return{}},mounted(){},methods:{}},ve=ge,be=d(ve,fe,me,!1,null,"29fab78c",null),_e=be.exports,ye=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"标题","sub-title":"副标题"},scopedSlots:t._u([{key:"head",fn:function(){return[e("div",{staticClass:"flex-end-center",staticStyle:{height:"100%"}},[t._v(" 头部插槽 ")])]},proxy:!0},{key:"foot",fn:function(){return[e("p",{staticStyle:{"line-height":"50px","text-align":"center",background:"#fffcd1"}},[t._v("底部插槽")])]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮一")]),e("c-button",[t._v("按钮二")])]},proxy:!0}])},[e("div",{staticStyle:{height:"1000px"}})])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/normal"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"自适应高度","sub-title":"填充剩余高度,最小高度为100(不包含头部)"}}),e("module",{attrs:{title:"固定高度",height:"200","sub-title":"指定模块高度(不包含头部)"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])]),e("module",{attrs:{title:"自动高度",height:"auto","sub-title":"根据内容高度变化"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/multi"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{tabs:t.tabs,"tab-type":"border-tab"},on:{tabChange:t.tabsHandle}},[e("div")]),e("module",[e("module-tab",{attrs:{name:"选项卡一"},on:{mounted:function(e){return t.moduleTabHandle(1,"mounted")},activated:function(e){return t.moduleTabHandle(1,"activated")},deactivated:function(e){return t.moduleTabHandle(1,"deactivated")}}},[e("div",{staticStyle:{height:"600px"}},[t._v("内容高600px")])]),e("module-tab",{attrs:{name:"选项卡二"},on:{mounted:function(e){return t.moduleTabHandle(2,"mounted")},activated:function(e){return t.moduleTabHandle(2,"activated")},deactivated:function(e){return t.moduleTabHandle(2,"deactivated")}}},[e("div",{staticStyle:{height:"1000px"}},[t._v("内容高1000px")])])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/tabs"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",[e("module-row"),e("module-row",[e("module-col"),e("module-col")],1)],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/complex"))}})])},we=[],xe={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{moduleTabHandle(t,e){console.log(t,e)},tabsHandle(t){console.log(t)}}},ke=xe,Se=(n("4764"),d(ke,ye,we,!1,null,"0406f941",null)),De=Se.exports,Ce=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-draw-sort",{staticClass:"flex-wrap",scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-draw-item",{key:i,staticStyle:{margin:"0 30px 10px 0"},attrs:{index:r,"handle-style":{position:"absolute",left:"100%",top:"0",width:"20px","line-height":"20px","text-align":"center",background:"#ddd"}},scopedSlots:t._u([{key:"handle",fn:function(){return[e("div",[t._v("拖")])]},proxy:!0}],null,!0)},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{mousedown:function(t){t.stopPropagation()},click:function(e){return t.removeSortItem(r)}}},[t._v("删除")])])])]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-draw-sort",{staticClass:"flex-wrap",scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-draw-item",{key:i,staticStyle:{margin:"0 30px 10px 0"},attrs:{index:r}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{mousedown:function(t){t.stopPropagation()},click:function(e){return t.removeSortItem(r)}}},[t._v("删除")])])])]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-button",{staticClass:"api-handle",on:{click:t.addSortItem}},[t._v("添加一项")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("draw_sort"))}})])},Ee=[],Ae={data(){return{sortList:[0,1,2,3,4,5],sortAdd:6}},watch:{sortList(t){console.log(t)}},mounted(){},methods:{addSortItem(){this.sortList.push(this.sortAdd++)},removeSortItem(t){this.sortList.splice(t,1)}}},Te=Ae,Be=d(Te,Ce,Ee,!1,null,"4d76aed9",null),Fe=Be.exports,$e=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-dropdown",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("c-button",[t._v("下拉菜单"),e("i",{staticClass:"c-dropdown-angle c-icon-tri-down"})])],1)],1)])},Le=[],Me={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},Pe=Me,Ie=d(Pe,$e,Le,!1,null,"6d885ec1",null),Ne=Ie.exports,He=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-right-menu",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("div",{staticStyle:{display:"inline-block",padding:"20px",background:"#F5F5F5"}},[t._v(" 在此处单击右键 ")])])],1)])},ze=[],Re={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},Oe=Re,Ue=d(Oe,He,ze,!1,null,"cefe2f94",null),Ke=Ue.exports,We=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticStyle:{"margin-bottom":"20px"}},[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","root")}}},[t._v("获取根节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","selected")}}},[t._v("获取选中节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","checked")}}},[t._v("获取勾选节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("insertRoot")}}},[t._v("插入根节点")])],1),e("c-tree",{ref:"tree",attrs:{data:t.treeData,select:{expand:!0,unselect:!0},check:{clickCheck:!0}},on:{load:function(e){return t.treeHandle("load",arguments[0],arguments[1])},click:function(e){return t.treeHandle("click",e)},check:function(e){return t.treeHandle("check",e)}}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tree"))}})])},je=[],Ve={data(){return{treeData:[{id:1,pId:0,name:"节点1"},{id:2,pId:0,name:"节点2"}]}},mounted(){},methods:{treeHandle(t,e,n){if(console.log(t,e),"load"==t){let t=[],i=this.$parent.random(2,6);for(let n=1;n<=i;n++)t.push({id:e.id.toString()+n,name:e.name+n,pId:e.id,leaf:this.$parent.random(0,9)>6});setTimeout(()=>{n(t)},500)}else if("getNode"==t)console.log(this.$refs.tree.getNode(e));else if("insertRoot"==t){let t=[],e=this.$refs.tree.getNode().length+1,n=e+this.$parent.random(2,6);for(let i=e;i<=n;i++)t.push({id:i,name:"节点"+i,pId:0,leaf:this.$parent.random(0,9)>6});this.$refs.tree.insertRoot(t)}}}},qe=Ve,Ye=d(qe,We,je,!1,null,"3dac96a0",null),Xe=Ye.exports,Ge=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-steps",{attrs:{steps:t.stepsList,active:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("steps"))}})])},Ze=[],Qe={data(){return{stepsList:[{name:"步骤一"},{name:"步骤二",message:"步骤描述"},{name:"步骤三",message:"步骤描述"},{name:"步骤四"}]}},mounted(){},methods:{}},Je=Qe,tn=d(Je,Ge,Ze,!1,null,"852e07c0",null),en=tn.exports,nn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"200px"}},[e("c-progress",{attrs:{type:"line",rate:[5,10],decimal:"1"}}),e("br"),e("br"),e("c-progress",{attrs:{type:"circle",rate:"44,111",decimal:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("progress"))}})])},rn=[],on={data(){return{}},mounted(){},methods:{}},an=on,sn=d(an,nn,rn,!1,null,"7fc615f7",null),ln=sn.exports,cn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#FAFAFA"}},[e("c-qrcode",{attrs:{value:"qweqwqwe",margin:"20"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("qrcode"))}})])},un=[],dn={data(){return{}},mounted(){},methods:{}},hn=dn,pn=d(hn,cn,un,!1,null,"77da1f1b",null),fn=pn.exports,mn=n("7c5c"),gn=n.n(mn),vn={name:"vueComponentLibrary",components:{apiButton:p,apiInput:_,apiOptions:D,apiSelector:F,apiSwitch:N,apiFile:K,apiEditor:X,apiLink:et,apiTooltip:st,apiTitle:pt,apiPagination:_t,apiTable:Dt,apiForm:Ft,apiDetail:Nt,apiPopup:Kt,apiDialog:Xt,apiWindow:ee,apiPreview:se,apiTab:pe,apiLayout:_e,apiModule:De,apiDrawSort:Fe,apiDropdown:Ne,apiRightMenu:Ke,apiTree:Xe,apiSteps:en,apiProgress:ln,apiQrcode:fn},data(){return{marked:gn.a,docTab:["按钮","输入框","单复选框","选择器","开关","文件","编辑器","链接","提示信息","标题","分页栏","表格","表单","详情","消息弹窗","会话弹窗","悬浮窗口","媒体预览","选项卡","布局","模块","拖拽排序","下拉菜单","右键菜单","树","步骤条","进度条","二维码"],tabColor:["main","lesser","red","green","blue","yellow"],crtTab:Bf.get("crt_tab")||"按钮"}},computed:{crtTabColor(){return this.crtTab,this.tabColor[Math.floor(Math.random()*this.tabColor.length)]},loadDoc(){return t=>gn.a.parse(n("5aa3")(`./${t}.md`).default)}},watch:{crtTab(t){Bf.set("crt_tab",t)}},mounted(){window.$app=this},methods:{random(t,e){return Math.floor(Math.random()*(e-t+1)+t)}}},bn=vn,_n=(n("b3e1"),d(bn,o,a,!1,null,null,null)),yn=_n.exports,wn=function(){var t=this,e=t._self._c;return e("button",{staticClass:"c-button",style:t.compStyle,attrs:{color:t.color,hollow:t.hollow,disabled:!!t.disabled},on:{click:e=>t.$emit("click",e),mouseenter:function(e){t.hoverState=!0},mouseleave:function(e){t.hoverState=!1}}},[e("div",{staticClass:"flex-center"},[t.prependIcon?e("i",{staticClass:"icon",class:t.prependIcon}):t._e(),e("span",[t._t("default")],2),t.appendIcon?e("i",{staticClass:"icon",class:t.appendIcon}):t._e()])])},xn=[],kn={name:"cButton",props:{size:{type:String,default:"normal"},color:{type:String,default:"normal"},hollow:Boolean,disabled:Boolean,prependIcon:String,appendIcon:String},data(){return{hoverState:!1}},computed:{sizeStyle(){return this.$compsConfig.style.buttonSize[this.size]||{}},colorStyle(){let t=this.$compsConfig.color[this.color];if(!t)return{};let e=t[this.hoverState?1:0];return{"border-color":e,color:this.hollow?e:"#fff",background:this.hollow?"#fff":e}},compStyle(){return Object.assign({},this.sizeStyle,this.colorStyle)}}},Sn=kn,Dn=(n("68ca"),d(Sn,wn,xn,!1,null,"e0a2fe40",null)),Cn=Dn.exports,En=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:"hidden"!=t.type,expression:"type != 'hidden'"}],staticClass:"c-input",class:{"c-textarea":"textarea"==t.type,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},["textarea"==t.type?e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",style:{"padding-bottom":t.maxlength?"20px":"8px"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:function(e){return t.$emit("change")}}}),t.maxlength?e("span",{staticClass:"c-input-length"},[t._v(t._s(t.valueData.length)+" / "+t._s(t.maxlength))]):t._e()]):e("div",{staticClass:"flex"},[t.$scopedSlots.prependText||t.prependText?e("div",{staticClass:"c-input-text flex-center"},[t._t("prependText"),e("span",[t._v(t._s(t.$t(t.prependText)))])],2):t._e(),"stepper"==t.type&&"both"==t.stepControls?e("button",{staticClass:"c-input-step flex-center",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e(),e("div",{staticClass:"flex-center flex-grow"},[t.$scopedSlots.prepend?e("div",{staticClass:"c-input-content"},[t._t("prepend")],2):t._e(),t.$scopedSlots.prependIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("prependIcon")],2):t._e(),"checkbox"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(t.valueData)?t._i(t.valueData,null)>-1:t.valueData},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){var n=t.valueData,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);i.checked?a<0&&(t.valueData=n.concat([o])):a>-1&&(t.valueData=n.slice(0,a).concat(n.slice(a+1)))}else t.valueData=r},function(e){return t.$emit("change")}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("enter")}}}):"radio"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"radio"},domProps:{checked:t._q(t.valueData,null)},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){t.valueData=null},function(e){return t.$emit("change")}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("enter")}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:t.compType},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:function(e){return t.$emit("change")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$emit("enter")}}}),t.clear&&t.valueData&&!t.readonly?e("a",{staticClass:"c-input-icon clear flex-center",on:{click:t.clearHandle}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t.visible?e("a",{staticClass:"c-input-icon flex-center",on:{click:function(e){t.visibleState=!t.visibleState}}},[e("i",{staticClass:"c-icon-eyes",class:{"c-icon-eyes-close":t.visibleState}})]):t._e(),t.$scopedSlots.appendIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("appendIcon")],2):t._e(),t.$scopedSlots.append?e("div",{staticClass:"c-input-content"},[t._t("append")],2):t._e()]),e("div",{staticClass:"flex-column"},["stepper"==t.type?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.maxRange&&t.maxRange==t.valueData},on:{click:function(e){return t.stepHandle(1)}}},[e("i",{staticClass:"c-icon-plus"})]):t._e(),"stepper"==t.type&&"side"==t.stepControls?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e()]),t.$scopedSlots.appendText||t.appendText||t.unit?e("div",{staticClass:"c-input-text flex-center"},[t._t("appendText"),e("span",[t._v(t._s(t.$t(t.appendText||t.unit)))])],2):t._e()]),t._events.suggest?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition&&t.suggestList.length,expression:"listPosition && suggestList.length"}],ref:"list",staticClass:"c-input-suggest",style:t.listPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{options:t.suggestList},on:{click:t.set}})],1):t._e()])},An=[];function Tn(t,e){var n=window.getComputedStyle(t,null);return n[e]}function Bn(t,e){var n=t.parentNode;if(n)return n===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?e(window.document.body):e(window):((["scroll","auto"].includes(Tn(n,"overflow"))||["scroll","auto"].includes(Tn(n,"overflow-x"))||["scroll","auto"].includes(Tn(n,"overflow-y")))&&e(n),Bn(t.parentNode,e))}var Fn=n("8bbf"),$n=n.n(Fn);function Ln(t){const e="function"==typeof t?t:$n.a.extend({data(){return t},methods:{commit(t,e){this[t]=e}}});return new e({i18n:Cf})}function Mn(t,e="store"){let n;return function t(i){i&&(i[e]?n=i[e]:t(i.$parent))}(t),{[e]:n||{commit:function(){}}}}function Pn(t,e){"string"!=typeof t&&(e=t,t="store");const n={};if(e.constructor==Array)e.forEach(e=>{n[e]={get(){try{return this[t][e]}catch(n){return}},set(){}}});else for(let i in e)n[i]={get(){return e[i](this[t])},set(){}};return n}const In={render(t){return t("div",[this.options.map(e=>[t("div",{class:"flex-center-cross c-input-suggest-item flex-center-cross",attrs:{title:this.$t(e)},on:{click:()=>this.clickHandle(e)}},[t("p",{class:"ellipsis flex-grow"},[this.$t(e)])])])])},props:{options:Array},methods:{clickHandle(t){this.$emit("click",t),this.$parent.blurHandle()}}};var Nn={name:"cInput",components:{selectList:In},props:{type:{type:String,default:"text"},value:[Number,String],name:String,placeholder:String,maxlength:[Number,String],decimal:[Number,String],range:[String,Array],disabled:Boolean,readonly:Boolean,alignCenter:Boolean,prependText:String,appendText:String,unit:String,visible:Boolean,clear:{type:Boolean,default:!0},step:{type:[String,Number],default:1},stepControls:{type:String,default:"both"}},data(){return{...Mn(this,"cFormItemStore"),valueData:"",visibleState:!1,listPosition:!1,suggestList:[],active:!1}},computed:{...Pn("cFormItemStore",["warnState"]),compType(){return"number"==this.type||this.visibleState?"text":this.type},compRange(){return!!this.range&&("string"==typeof this.range?this.range.split(","):this.range)},minRange(){return"object"==typeof this.compRange&&2==this.compRange.length&&parseFloat(this.compRange[0])},maxRange(){return!1!==this.compRange&&parseFloat(this.compRange[1])},compDecimal(){return!!["number","stepper"].includes(this.type)&&(parseInt(this.decimal)||0)}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},compDecimal(){this.inputHandle({type:"blur"})}},mounted(){this.set(this.value),this._events.suggest&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this._events.suggest&&document.body.removeChild(this.$refs.list)},methods:{set(t=""){t=t||0===t?t:"",this.valueData=t.toString().trim()},get(){return this.valueData.toString().trim()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},inputHandle(t){if(this.cFormItemStore.commit("warnState",!1),!1!==this.compDecimal){var e=[["^(-?)0?(\\d+)$","$1$2"],["^(-?)\\.$","$1"],["\\.(\\d*)\\.+",".$1"],["^(\\d+\\.?\\d*)-+","$1"],["^(-\\d*\\.?\\d*)-+","$1"],["^(-?\\d+\\.\\d{"+this.compDecimal+"}).+","$1"],[this.compDecimal?"[^-\\d\\.]+$":"[^-\\d]+$",""]];e.forEach(t=>{this.valueData=this.valueData.toString().replace(new RegExp(t[0]),t[1])}),""!==this.valueData&&"blur"==t.type&&(!1!==this.minRange&&this.valueData<this.minRange&&(this.valueData=this.minRange),!1!==this.maxRange&&this.valueData>this.maxRange&&(this.valueData=this.maxRange))}"input"!=t.type?(this.$emit(t.type,t),"focus"==t.type?this._events.suggest&&(this.suggestHandle(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.blurHandle,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)})):"blur"==t.type&&this.blurHandle(t)):this.suggestHandle()},blurHandle(t){t&&this.active||(this.listPosition=!1,this.suggestList=[],window.removeEventListener("click",this.blurHandle,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},clearHandle(){this.valueData="",this.suggestHandle(),this.focus(),this.$nextTick(()=>{this.$emit("change")})},suggestHandle(){this.valueData?this.$emit("suggest",this.valueData,t=>{this.suggestList=t,this.$nextTick(this.updatePosition)}):this.suggestList=[]},stepHandle(t){let e=this.valueData.toString().split(".")[1]||"",n=this.step.toString().split(".")[1]||"",i=n.length>e.length?n.length:e.length;this.valueData=parseFloat(((parseFloat(this.valueData)||0)+t*parseFloat(this.step)).toFixed(i)),this.inputHandle({type:"blur"}),this.$nextTick(()=>{this.$emit("change")})},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<300?this.$refs.list.offsetHeight:300,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+this.$el.offsetHeight-1)+"px",width:this.$el.offsetWidth+"px","max-height":this.parsePixel(300,!0)}}}},Hn=Nn,zn=(n("85f2"),d(Hn,En,An,!1,null,"2a6d5e9c",null)),Rn=zn.exports,On=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio",class:{"z-chk":t.checkState,"z-dis":t.disabledState},on:{click:t.checkHandle}},[e("div",{staticClass:"c-radio-check"}),t.$slots.default?e("div",{staticClass:"c-radio-content"},[t._t("default")],2):t._e()])},Un=[],Kn={name:"cRadio",props:{value:[Number,String],disabled:Boolean},data(){return{store:this.$parent.store}},computed:{...Pn(["valueData","groupDisabled"]),checkState(){return this.valueData==this.value},disabledState(){return this.groupDisabled||this.disabled}},methods:{checkHandle(){this.disabledState||this.checkState||this.$parent.changeHandle(this.value)},changeHandle(t){this.$emit("change",t)}}},Wn=Kn,jn=(n("f9f1"),d(Wn,On,Un,!1,null,"1ef111e6",null)),Vn=jn.exports,qn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},Yn=[],Xn={name:"cRadioGroup",props:{value:[String,Number],name:String,disabled:Boolean,options:Array},data(){return{...Mn(this,"cFormItemStore"),store:Ln({valueData:this.value,groupDisabled:this.disabled})}},computed:{...Pn("cFormItemStore",["warnState"]),...Pn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},disabled(t){this.store.commit("groupDisabled",t)}},methods:{set(t=""){this.store.commit("valueData",t)},get(){return this.valueData},changeHandle(t){this.$children.forEach(e=>{(e.checkState||e.value==t)&&e.changeHandle(e.value==t)}),this.store.commit("valueData",t),this.$emit("change",this.get())}}},Gn=Xn,Zn=(n("516d"),d(Gn,qn,Yn,!1,null,"bafabe12",null)),Qn=Zn.exports,Jn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox",class:{"z-chk":t.checkState,"z-dis":t.disabledState},style:{height:t.parsePixel(t.size,!0)},on:{click:function(e){return t.checkHandle(!t.checkState)}}},[e("div",{staticClass:"c-checkbox-check",style:{width:t.parsePixel(t.size,!0),height:t.parsePixel(t.size,!0),"line-height":t.parsePixel(t.size,!0),"font-size":t.parsePixel(t.iconSize,!0)}},[t.half?e("i",{staticClass:"c-icon-check-half"}):t.checkState?e("i",{staticClass:"c-icon-check"}):t._e()]),t.$slots.default?e("div",{staticClass:"c-checkbox-content"},[t._t("default")],2):t._e()])},ti=[],ei={name:"cCheckbox",props:{value:[Number,String,Boolean],disabled:Boolean,half:Boolean,size:{type:[Number,String],default:20}},data(){let t="cCheckboxGroup"==this.$parent.$options.name;return{selfChecked:!!this.value,inGroup:t,store:t?this.$parent.store:void 0}},computed:{...Pn(["valueData","limit","groupDisabled"]),parseValueData(){return"object"==typeof this.valueData?Array.from(this.valueData,t=>t.toString()):this.valueData.toString()?this.valueData.toString().split(","):[]},checkState(){return this.inGroup?this.parseValueData.includes(this.value.toString()):this.selfChecked},disabledState(){return this.inGroup&&this.groupDisabled||this.disabled},overflow(){return!this.checkState&&this.limit>0&&this.parseValueData.length>=this.limit},iconSize(){return parseInt(this.size)<20?12:13}},watch:{value(t){this.selfChecked=!!t,this.store&&this.store.updateValueData()}},mounted(){this.store&&this.store.updateValueData()},beforeDestroy(){this.store&&this.store.updateValueData()},methods:{checkHandle(t){if(!this.disabledState){if(this.inGroup){if(this.overflow)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.limit})});let e;t?e=this.parseValueData.concat([this.value.toString()]):(e=this.parseValueData.join(",").split(","),e.splice(e.indexOf(this.value.toString()),1)),this.store.commit("valueData","object"==typeof this.valueData?e:e.join(",")),this.$parent.changeHandle()}else this.selfChecked=t,this.$emit("input",t);this.$emit("change",t)}}}},ni=ei,ii=(n("ab45"),d(ni,Jn,ti,!1,null,"2b8f077c",null)),ri=ii.exports,oi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},ai=[],si={name:"cCheckboxGroup",props:{value:{type:[String,Number,Array],default:""},name:String,disabled:Boolean,limit:[String,Number],options:Array},data(){return{...Mn(this,"cFormItemStore"),store:Ln({updateValueData:Af(()=>{this.set(this.valueData.filter(t=>!!this.$children.find(e=>"cCheckbox"==e.$options.name&&e.value.toString()==t.toString())))},10,!1),valueData:[],limit:parseInt(this.limit),groupDisabled:this.disabled})}},computed:{...Pn("cFormItemStore",["warnState"]),...Pn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},limit(t){this.store.commit("limit",t)},disabled(t){this.store.commit("groupDisabled",t)}},mounted(){this.set(this.value)},updated(){},methods:{set(t){t||(t=[]),"string"==typeof t&&(t=t.split(",")),this.store.commit("valueData",t)},get(){return this.valueData},changeHandle(){this.$emit("change",this.get())}}},li=si,ci=(n("94e4"),d(li,oi,ai,!1,null,"1b0c5c6a",null)),ui=ci.exports,di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-select",class:{"z-active":t.listPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState,"auto-height":t.multiple&&t.multipleConfig.linefeed&&!t.emptyState},on:{click:t.developHandle,mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-select-main flex-between-center"},[e("div",{ref:"value",staticClass:"flex-grow flex-center-cross",class:{"flex-wrap":t.multipleConfig.linefeed,"c-select-tag":t.multiple&&!t.emptyState}},[t.multiple&&!t.emptyState?t._l(t.currentData,(function(n,i){return e("div",{key:i,staticClass:"item flex-center"},[e("span",{staticClass:"ellipsis",attrs:{title:t.$t(n.name)}},[t._v(t._s(t.$t(n.name)))]),t.disabled?t._e():e("a",{staticClass:"c-icon-cross",on:{click:function(e){return e.stopPropagation(),t.deleteValue(n)}}})])})):t._e(),t.searchConfig?e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchValue,expression:"searchValue"}],ref:"input",staticClass:"c-select-input flex-grow",attrs:{disabled:t.disabled,placeholder:t.emptyState?t.$t(t.placeholder):t.multiple?"":t.valueName,autocomplete:"off"},domProps:{value:t.searchValue},on:{input:[function(e){e.target.composing||(t.searchValue=e.target.value)},t.asyncSearchHandle]}}):t._e(),!t.emptyState&&t.multiple||t.searchConfig?t._e():e("span",{staticClass:"c-select-current flex-grow ellipsis",class:{"z-empty":t.emptyState},attrs:{title:t.emptyState?t.$t(t.placeholder):t.valueName}},[t._v(t._s(t.emptyState?t.$t(t.placeholder):t.valueName))])],2),t.clear&&!t.emptyState?e("a",{staticClass:"c-select-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),e("span",{staticClass:"c-select-icon flex-center"},[t.$scopedSlots.icon?t._t("icon"):e("i",{staticClass:"c-icon-angle-down"})],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-select-options",style:t.listPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{async:t.asyncState,options:t.optionsList,disableOptions:t.disableOptions,multiple:!!t.multiple},on:{search:t.searchFocus},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},hi=[];function pi(t,e,n=0){var i=[];return e&&e.map(e=>{(this.async||!this.keyword||this.$t(e.name).toLocaleLowerCase().includes(this.keyword.toLocaleLowerCase()))&&(i=i.concat([t("div",{class:"flex-center-cross c-select-options-item flex-center-cross "+(this.currentDataValue.includes(e.value.toString())?"z-crt":""),attrs:{title:this.$t(e.name),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)},on:{click:()=>this.clickHandle(e)}},[n?[t("div",{class:"c-select-options-item-level c-icon-level-line",style:`margin-left: ${20*(n-1)}px;`})]:[],t("p",{class:"ellipsis flex-grow"},[this.$t(e.name)]),this.multiple?[t("i",{class:"c-select-options-item-check c-icon-check"})]:[]])])),i=i.concat(pi.call(this,t,e.children,n+1))}),i}const fi={render(t){return t("div",[pi.call(this,t,this.options)])},props:{async:Boolean,options:Array,disableOptions:Array,multiple:Boolean,value:String},data(){return{store:this.$parent.store}},computed:{...Pn(["currentValue","currentData"]),keyword(){return this.value.trim()},currentDataValue(){return this.currentData.map(t=>t.value.toString())}},watch:{currentValue(){this.updateCurrentData()},options(){this.async||this.updateCurrentData()}},mounted(){this.updateCurrentData()},methods:{updateCurrentData(){let t=[],e="object"==typeof this.currentValue?this.currentValue.map(t=>t.toString()):this.currentValue.toString().split(",");e.length&&function n(i){i.forEach(i=>{e.includes(i.value.toString())&&t.push(i),i.children&&n(i.children)})}(this.async?this.currentData:this.options),this.store.commit("currentData",t)},clickHandle(t){if(-1==this.disableOptions.findIndex(e=>e==t.value))if(this.multiple){let e,n=this.currentData.findIndex(e=>e.value==t.value);if(-1!=n)e=this.currentData.map(t=>t),e.splice(n,1);else{if(this.currentData.length>=this.$parent.multipleConfig.limit)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.$parent.multipleConfig.limit})});e=this.currentData.concat([t])}this.store.commit("currentData",e);let i=e.map(t=>t.value);this.store.commit("currentValue","object"==typeof this.currentValue?i:i.join(",")),this.$parent.changeHandle(),this.$emit("input",""),this.$emit("search")}else this.currentDataValue.includes(t.value.toString())||(this.store.commit("currentData",[t]),this.store.commit("currentValue",t.value),this.$parent.changeHandle()),this.$parent.foldHandle()}}};var mi={name:"cSelect",components:{selectList:fi},props:{async:Boolean,value:{type:[String,Number,Array],default:""},valueData:Array,name:String,placeholder:{type:String,default:"_t.select.placeholder"},options:{type:[Array,String],default:()=>[]},disableOptions:{type:Array,default(){return[]}},listWidth:[Number,String],listHeight:{type:[Number,String],default:300},disabled:Boolean,clear:{type:Boolean,default:!0},multiple:[Boolean,Object],search:{type:[Boolean,Object],default(){return this.$compsConfig.config.select.search}}},data(){return{...Mn(this,"cFormItemStore"),store:Ln({currentValue:this.multiple?[]:"",currentData:[]}),optionsList:[],listPosition:!1,active:!1,searchValue:""}},computed:{...Pn("cFormItemStore",["warnState"]),...Pn(["currentValue","currentData"]),multipleConfig(){return!!this.multiple&&Object.assign({limit:1/0,linefeed:!1},"object"==typeof this.multiple?this.multiple:{})},searchConfig(){return!this._events.customEvent&&(!(!this.asyncState&&!this.search)&&Object.assign({empty:!0},"object"==typeof this.search?this.search:{}))},valueName(){return this.currentData[0]?this.$t(this.currentData[0].name):""},emptyState(){return!this.currentValue&&0!==this.currentValue||this.multiple&&!this.currentValue.length},asyncState(){return this.async||!!this._events.customEvent},optionsListClone(){return JSON.parse(JSON.stringify(this.optionsList||[]))}},watch:{value(t){this.set(t)},currentValue(){this.$emit("input",this.get())},currentData(){this.multipleConfig&&this.multipleConfig.linefeed&&this.listPosition&&this.updatePosition()},valueName(t){this.searchConfig&&!this.multiple&&(this.searchValue=t)},valueData(t){this.asyncState&&this.setValueData(t)},options(t,e){this.asyncState||(this.getOptionsList(),Array.isArray(t)&&e.length&&this.set(""))},searchValue(){this.$nextTick(()=>{this.listPosition&&this.updatePosition()})}},mounted(){this.asyncState?this.setValueData(this.valueData):(this.set(this.value),this.getOptionsList()),document.body.appendChild(this.$refs.list)},beforeDestroy(){document.body.removeChild(this.$refs.list)},methods:{set(t){t||0===t||(t=this.multiple?[]:""),this.multiple&&!Array.isArray(t)&&(t=t.toString().split(",")),this.store.commit("currentValue",t)},get(){return this.currentValue},getData(){return this.multiple?this.currentData:this.currentData[0]||{}},setValueData(t){t&&(this.store.commit("currentData",t),this.set(this.multiple?t.map(t=>t.value):t[0]?t[0].value:""))},getOptionsList(){Array.isArray(this.options)?this.optionsList=JSON.parse(JSON.stringify(this.options)):this.$compsConfig.data.options[this.options]&&this.$compsConfig.data.options[this.options]("",t=>{this.optionsList=t})},developHandle(){this.cFormItemStore.commit("warnState",!1),this.disabled||(this._events.customEvent?this.$emit("customEvent",this.currentData,t=>{this.multiple?this.setValueData(t):this.setValueData(Array.isArray(t)?[t[0]]:[t]),this.changeHandle()}):this.listPosition?this.foldHandle():(this.searchFocus(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.asyncState&&this.searchConfig.empty&&this.asyncSearchHandle(),this.$refs.value.scrollLeft=9999))},foldHandle(t){t&&this.active||this._events.customEvent||(this.searchFocus(!1),this.searchValue=this.searchConfig&&!this.multiple?this.valueName:"",this.listPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.asyncState&&(this.optionsList=[]),this.$refs.value.scrollLeft=0)},searchFocus(t=!0){this.searchValue="",this.$nextTick(()=>{this.$refs.input&&this.$refs.input[t?"focus":"blur"]()})},asyncSearchHandle(){this.asyncState&&(this.searchConfig.empty||this.searchValue.trim()?this.searchConfig.options?this.$compsConfig.data.options[this.searchConfig.options](this.searchValue.trim(),t=>{this.optionsList=t||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.$emit("search",this.searchValue.trim(),t=>{this.optionsList=JSON.parse(JSON.stringify(t))||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.optionsList=[])},deleteValue(t){this.currentValue.splice(this.currentValue.findIndex(e=>e==t.value),1),this.changeHandle(),this.searchFocus()},clearHandle(){this.set("object"==typeof this.currentValue?[]:""),this.changeHandle(),this.listPosition&&this.searchFocus()},changeHandle(){this.$nextTick(()=>{this.$emit("change",this.getData())})},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<this.listHeight?this.$refs.list.offsetHeight:this.listHeight,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+t.height-1)+"px",width:(this.listWidth||t.width)+"px","max-height":this.parsePixel(this.listHeight,!0)}}}},gi=mi,vi=(n("5ffd"),d(gi,di,hi,!1,null,"0b54ce17",null)),bi=vi.exports,_i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-region",attrs:{warn:!!t.provinceName&&t.warnState}},[e("div",{staticClass:"flex"},[t.level>=1?e("c-select",{ref:"province",staticClass:"flex-grow",attrs:{options:t.provinceOptions,placeholder:"_t.region.province",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"province")}},model:{value:t.valueData.province,callback:function(e){t.$set(t.valueData,"province",e)},expression:"valueData.province"}}):t._e(),t.level>=2?e("c-select",{ref:"city",staticClass:"flex-grow",attrs:{options:t.cityOptions,placeholder:"_t.region.city",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"city")}},model:{value:t.valueData.city,callback:function(e){t.$set(t.valueData,"city",e)},expression:"valueData.city"}}):t._e(),t.level>=3?e("c-select",{ref:"county",staticClass:"flex-grow",attrs:{options:t.countyOptions,placeholder:"_t.region.county",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"county")}},model:{value:t.valueData.county,callback:function(e){t.$set(t.valueData,"county",e)},expression:"valueData.county"}}):t._e()],1),4==t.level?e("c-input",{attrs:{placeholder:"_t.region.address",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"address")}},model:{value:t.valueData.address,callback:function(e){t.$set(t.valueData,"address",e)},expression:"valueData.address"}}):t._e()],1)},yi=[],wi={name:"cRegion",props:{value:{type:Object,default:()=>({})},provinceName:String,cityName:String,countyName:String,addressName:String,level:{type:[Number,String],default:3},disabled:Boolean},data(){return{...Mn(this,"cFormItemStore"),valueData:{province:"",city:"",county:"",address:""},provinceOptions:[],cityOptions:[],countyOptions:[]}},computed:{...Pn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.updateOptions("province"),this.set(this.value)},methods:{set(t={}){this.valueData.province=t.province,this.updateOptions("city",t.province,t.city),this.updateOptions("county",t.province,t.county),this.valueData.address=t.address||""},get(){return this.valueData},getData(){return{province:this.$refs.province.getData(),city:this.$refs.city&&this.$refs.city.getData(),county:this.$refs.county&&this.$refs.county.getData(),address:this.valueData.address}},async updateOptions(t,e,n){("province"==t||"city"==t&&this.level>1||"county"==t&&this.level>2)&&(this[t+"Options"]=[],(e||"province"==t)&&(this[t+"Options"]=await this.$compsConfig.data.region(t,e)),"province"!=t&&(this.valueData[t]=n),(1==this.level||2==this.level&&"city"==t||3==this.level&&"county"==t)&&this.$emit("input",this.get()))},changeHandle(t,e){"province"==e?(this.updateOptions("city",t.value),this.updateOptions("county")):"city"==e?this.updateOptions("county",t.value):this.$emit("input",this.get()),this.$emit("change",this.get())}}},xi=wi,ki=(n("ff69"),d(xi,_i,yi,!1,null,"06a2f838",null)),Si=ki.exports,Di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-datetime",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!(t.name||t.startName||t.endName)&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-datetime-main flex-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputStart,expression:"inputStart"}],ref:"start",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.range?t.placeholder[0]:t.placeholder),disabled:t.disabled},domProps:{value:t.inputStart},on:{change:function(e){return t.inputHandle("start")},click:function(e){return t.developHandle("start")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputStart=e.target.value)}}}),t.range?e("span",{staticClass:"c-datetime-line"},[t._v("-")]):t._e(),t.range?e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputEnd,expression:"inputEnd"}],ref:"end",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.placeholder[1]),disabled:t.disabled},domProps:{value:t.inputEnd},on:{change:function(e){return t.inputHandle("end")},click:function(e){return t.developHandle("end")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputEnd=e.target.value)}}}):t._e(),t.clear&&(t.start||t.end)?e("a",{staticClass:"c-datetime-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t._m(0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-datetime-selector",style:t.pickerPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-datetime-picker",{ref:"picker",attrs:{type:t.type,timeAccuracy:t.timeAccuracy,start:"end"==t.inputType?t.start:"",end:"start"==t.inputType?t.end:"",format:t.format},on:{input:t.setDate}})],1)])},Ci=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"c-datetime-icon flex-center"},[e("i",{staticClass:"c-icon-calendar"})])}],Ei={name:"cDatetime",props:{value:[String,Array],name:String,startName:String,endName:String,type:{type:String,default:"datetime"},timeAccuracy:{type:String,default:"sec"},range:Boolean,disabled:Boolean,placeholder:{type:[String,Array],default(){return this.range?["_t.datetime.placeholderStart","_t.datetime.placeholderEnd"]:"_t.datetime.placeholder"}},defaultTime:{type:[String,Array],default(){return this.range?["00:00:00","23:59:59"]:"00:00:00"}},format:{type:String,default(){return{datetime:"yyyy-MM-dd hh:mm:ss",date:"yyyy-MM-dd",time:"hh:mm:ss"}[this.type]}},clear:{type:Boolean,default:!0}},data(){return{...Mn(this,"cFormItemStore"),start:"",end:"",inputType:"",inputStart:"",inputEnd:"",pickerPosition:!1,active:!1}},computed:{...Pn("cFormItemStore",["warnState"]),valueData(){return this.range?[this.start,this.end]:this.start}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},inputType(t,e){t?(this.blurHandle(),this.updatePosition()):this.$refs[e].blur()}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t=""){this.range?(this.inputStart=this.start=t&&t[0]||"",this.inputEnd=this.end=t&&t[1]||""):this.inputStart=this.start=t},get(){return this.valueData},changeHandle(){this.$emit("change",this.get())},developHandle(t){this.disabled||(this.inputType=t,this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$refs.picker.set(this[this.inputType]||(new Date).format("yyyy-MM-dd "+(this.range?this.defaultTime["end"==t?1:0]:this.defaultTime))))},foldHandle(t){t&&this.active||(this.inputType="",this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.range?this.$refs.end.getBoundingClientRect():null,n=this.$refs.pickerBox.getBoundingClientRect(),i="end"==this.inputType?e.left-8:t.left,r=window.innerWidth-i-20,o=window.innerHeight-t.bottom<n.height;this.pickerPosition={left:(r<n.width?i+r-n.width:i)+"px",top:window.scrollY+(o?t.top-n.height+1:t.top+t.height-1)+"px"}},blurHandle(){this.inputType&&this.$refs[this.inputType].focus()},inputHandle(t){let e="end"==t?"inputEnd":"inputStart",n=this.$refs.picker.parseDate(this[e])||[],i=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`);this[e]="Invalid Date"==i?this[t]:this[t]=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`).format(this.format)},clearHandle(){this.set(""),this.changeHandle()},setDate(t){"start"==this.inputType?(this.start=t,this.inputStart=t,this.range&&!this.end?this.developHandle("end"):(this.inputType="",this.foldHandle())):(this.end=t,this.inputEnd=t,this.start?(this.inputType="",this.foldHandle()):this.developHandle("start")),this.changeHandle()}}},Ai=Ei,Ti=(n("5b20"),d(Ai,Di,Ci,!1,null,"3f1dceae",null)),Bi=Ti.exports,Fi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-color",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-color-main flex-center",on:{click:t.developHandle}},[e("div",{staticClass:"c-color-preview",style:{background:t.valueData}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],staticClass:"flex-grow",attrs:{disabled:t.disabled},domProps:{value:t.valueData},on:{blur:function(e){return t.set(t.valueData)},input:function(e){e.target.composing||(t.valueData=e.target.value)}}}),t.clear&&t.valueData?e("a",{staticClass:"c-color-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-color-selector",style:t.pickerPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-color-picker",{ref:"picker",on:{input:t.pickerHandle}})],1)])},$i=[],Li={name:"cColor",props:{value:String,name:String,disabled:Boolean,clear:{type:Boolean,default:!0}},data(){return{...Mn(this,"cFormItemStore"),valueData:this.value,pickerPosition:!1,active:!1}},computed:{...Pn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.set(this.value)},methods:{set(t){t?this.$refs.picker.set(t):this.valueData=""},get(){return this.valueData},changeHandle(){this.$emit("change",this.get())},clearHandle(){this.set("")},developHandle(t){this.disabled||(this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}))},foldHandle(t){t&&this.active||(this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.pickerBox.getBoundingClientRect(),n=window.innerWidth-t.left-20,i=window.innerHeight-t.bottom<e.height;this.pickerPosition={left:(n<e.width?t.left+n-e.width:t.left)+"px",top:window.scrollY+(i?t.top-e.height+1:t.top+t.height-1)+"px"}},pickerHandle(t){this.valueData=t,this.$emit("input",this.get())}}},Mi=Li,Pi=(n("0a2e"),d(Mi,Fi,$i,!1,null,"4c079628",null)),Ii=Pi.exports,Ni=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-transfer flex-center-cross"},[e("dl",{staticClass:"flex-column",style:{height:t.parsePixel(t.height,!0)}},[e("dt",[t._v(t._s(t.compTitle[0]))]),t.searchConfig?e("dd",[e("div",{staticClass:"c-transfer-search flex-center"},[e("c-input",{staticClass:"flex-grow",attrs:{type:"text",placeholder:t.$t(t.searchConfig.placeholder)},on:{enter:t.searchHandle},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),e("i",{staticClass:"icon c-icon-search"})],1)]):t._e(),e("dd",{staticClass:"flex-grow"},[e("ul",[t._l(t.options,(function(n,i){return[t.currentOptions.find(t=>t.value==n.value)?t._e():e("li",{directives:[{name:"show",rawName:"v-show",value:!n.hide,expression:"!item.hide"}],key:i,class:{"z-crt":n.checked},on:{click:function(e){return t.$set(n,"checked",!n.checked)}}},[t._v(t._s(t.$t(n.name)))])]}))],2)])]),e("div",{staticClass:"c-transfer-handle flex-column",attrs:{warn:!!t.name&&t.warnState}},[e("button",{on:{click:function(e){return t.handle(!0)}}},[e("i",{staticClass:"c-icon-angle-dbright"})]),e("button",{on:{click:function(e){return t.handle(!1)}}},[e("i",{staticClass:"c-icon-angle-dbleft"})])]),e("dl",{staticClass:"flex-column",style:{height:t.parsePixel(t.height,!0)}},[e("dt",[t._v(t._s(t.compTitle[1]))]),e("dd",{staticClass:"flex-grow"},[e("ul",[t._l(t.currentOptions,(function(n,i){return[e("li",{key:i,class:{"z-crt":n.checked},on:{click:function(e){return t.$set(n,"checked",!n.checked)}}},[t._v(t._s(t.$t(n.name)))])]}))],2)])])])},Hi=[],zi={name:"cTransfer",props:{async:Boolean,value:Array,valueData:Array,name:String,data:Array,title:{type:[String,Array],default:"_t.transfer.title"},search:[Boolean,Object],height:{type:[String,Number],default:300}},data(){return{...Mn(this,"cFormItemStore"),initialized:!1,options:[],currentOptions:[],keyword:""}},computed:{...Pn("cFormItemStore",["warnState"]),searchConfig(){return!(!this.async&&!this.search)&&Object.assign({placeholder:"_t.transfer.searchPlaceholder",immediate:!0},"object"==typeof this.search?this.search:{})},compTitle(){return"string"==typeof this.title?[this.$t("_t.transfer.titleLeft",{name:this.$t(this.title)}),this.$t("_t.transfer.titleRight",{name:this.$t(this.title)})]:[this.$t(this.title[0]),this.$t(this.title[1])]}},watch:{value(t){this.set(t)},valueData(t){this.async&&(this.currentOptions=t||[])},data(t){this.async||(this.options=JSON.parse(JSON.stringify(t))||[],this.$nextTick(()=>{this.set(this.value)}))},options(t,e){e&&e.length||(this.initialized=!0)},currentOptions(){let t=this.get();JSON.stringify(t)!=JSON.stringify(this.value)&&this.$emit("input",t)}},mounted(){this.async?(this.currentOptions=this.valueData||[],this.searchConfig.immediate&&this.searchHandle()):this.data&&this.data.length&&(this.options=JSON.parse(JSON.stringify(this.data)),this.$nextTick(()=>{this.set(this.value)}))},methods:{set(t=[]){!this.async&&this.initialized&&(this.currentOptions=this.options.filter(e=>t.includes(e.value)))},get(){return this.currentOptions.map(t=>t.value)},getData(){return this.currentOptions},handle(t){this.cFormItemStore.commit("warnState",!1),t?this.options.filter(t=>t.checked).forEach(t=>{this.currentOptions.includes(t)||(t.checked=!1,this.currentOptions.push(t))}):this.currentOptions=this.currentOptions.filter(t=>{if(!t.checked)return!0;t.checked=!1}),this.$emit("change",this.getData())},searchHandle(){if(this.async)this.$emit("search",this.keyword.trim(),t=>{this.options=JSON.parse(JSON.stringify(t))||[]});else{let t=this.keyword.trim();this.options.forEach(e=>{this.$set(e,"hide",t&&!e.name.includes(t))})}}}},Ri=zi,Oi=(n("5992"),d(Ri,Ni,Hi,!1,null,"33db10ea",null)),Ui=Oi.exports,Ki=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-switch",class:t.state?"z-open":"",style:{width:t.compWidth+"px",background:t.stateColor[t.state?0:1]},on:{click:t.switchHandle}},[e("div",{staticClass:"text flex-center",style:t.textStyle},[t._v(t._s(t.$t(t.stateText[t.state?0:1])))]),e("div",{staticClass:"handle",style:{left:t.handleSeat,width:t.handleSize+"px",height:t.handleSize+"px"}})])},Wi=[],ji={name:"cSwitch",props:{value:[Boolean,Number,String],stateValue:{type:Array,default(){return[!0,!1]}},stateText:{type:Array,default(){return["_t.switch.open","_t.switch.close"]}},stateColor:{type:Array,default(){return["#00B578","#eee"]}},name:String},data(){return{handleSize:22,valueData:this.value||this.stateValue[1]}},computed:{state(){return!this.stateValue.indexOf(this.valueData)},compWidth(){let t=Math.max(this.$t(this.stateText[0]).length,this.$t(this.stateText[1]).length);return 3+this.handleSize+4+t*("zh"==this.$i18n.locale?1:.5)*13+10},handleSeat(){return this.state?this.compWidth-this.handleSize-3+"px":"3px"},textStyle(){return this.state?{left:0}:{right:0}}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},methods:{set(t=this.stateValue[1]){this.valueData=t},get(){return this.valueData},switchHandle(){this._events.beforeChange?this.$emit("beforeChange",this.state,()=>{this.switch()}):this.switch(),this.$emit("change",this.get())},switch(t=this.state){this.valueData=this.stateValue[t?1:0]}}},Vi=ji,qi=(n("3fb9"),d(Vi,Ki,Wi,!1,null,"f2d3ad7e",null)),Yi=qi.exports,Xi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-upload",class:{"flex-start-end":t.media},attrs:{media:t.media}},[t.media?e("c-draw-sort",{staticClass:"c-upload-media flex-wrap",attrs:{disabled:!t.multiple||!t.sort},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-draw-item",{key:i,staticClass:"c-upload-media-item flex-center",attrs:{index:r}},[e("c-file",{attrs:{src:n,media:""}}),e("a",{staticClass:"flex-center",on:{click:function(e){return e.stopPropagation(),t.removeHandle(r)},mousedown:function(t){t.stopPropagation()}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}}],null,!1,1593950063),model:{value:t.parseValueData,callback:function(e){t.parseValueData=e},expression:"parseValueData"}},[t.upperLimit||t.parseValueData.length&&t.button?t._e():e("div",{staticClass:"c-upload-media-item c-upload-media-upload flex-center",attrs:{slot:"append"},on:{click:t.uploadHandle},slot:"append"},[e("i",{class:t.mediaIcon})])]):t._e(),e("div",{staticClass:"c-upload-handle",class:{"flex-column":t.media,"flex-center-cross":!t.media}},[t.button?e("c-button",{style:{"align-self":t.media?"flex-start":""},attrs:{size:"upload","prepend-icon":t.icon,hollow:"",warn:!!t.name&&t.warnState},on:{click:t.uploadHandle}},[t._v(t._s(t.$t(t.button)))]):t._e(),t.type||t.tip||t.$slots.tip?e("div",{staticClass:"c-upload-tip"},[t._t("tip",null,{type:t.fileTypeTip}),t.$scopedSlots.tip?t._e():e("div",{class:{"flex-center":!t.media}},[t.tip?e("p",[t._v(t._s(t.tip))]):t._e(),t.fileTypeTip?e("p",[t._v(t._s(t.tip&&!t.media?",":"")+t._s(t.fileTypeTip))]):t._e()])],2):t._e()],1),t.media?t._e():e("ul",{directives:[{name:"show",rawName:"v-show",value:t.parseValueData.length,expression:"parseValueData.length"}],staticClass:"c-upload-list"},t._l(t.parseValueData,(function(n,i){return e("li",{key:i,staticClass:"flex-center-cross"},[e("c-file",{staticClass:"ellipsis",attrs:{src:n}}),e("a",{on:{click:function(e){return t.removeHandle(i)}}},[t._v(t._s(t.$t("_t.upload.delete")))])],1)})),0)],1)},Gi=[],Zi={name:"cUploadFile",props:{value:{type:[String,Array],default:""},name:String,type:String,size:[String,Number],media:Boolean,sort:{type:Boolean,default:!0},icon:{type:String,default:"c-icon-upload"},mediaIcon:{type:String,default:"c-icon-media"},button:{type:[String,Boolean],default:"_t.upload.button"},tip:String,multiple:{type:[Boolean,Number,String],default:!1}},data(){return{...Mn(this,"cFormItemStore"),valueData:this.multiple?[]:""}},computed:{...Pn("cFormItemStore",["warnState"]),parseValueData:{get(){return this.valueData?"object"==typeof this.valueData?this.valueData:this.valueData.toString().split(","):[]},set(t){this.multiple&&(this.valueData=t.join(",").split(","))}},fileTypeTip(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[this.$t("_t.upload.type.image")],video:["mp4"],word:["doc(x)"],excel:["xls(x)"],zip:[this.$t("_t.upload.type.zip")]}[e]||[e])}),this.$t("_t.upload.tip",{type:t.join(",")})}return""},upperLimit(){return this.multiple?"boolean"!=typeof this.multiple&&this.parseValueData.length>=parseInt(this.multiple):this.parseValueData.length>0}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},mounted(){this.set(this.value)},methods:{set(t){t||(t=this.multiple?[]:""),this.multiple&&"string"==typeof t&&(t=t.split(",")),this.valueData=t},get(){return this.valueData},removeHandle(t){let e=this.parseValueData.join(",").split(",");e.splice(t,1),this.set(this.multiple?e:e.join(",")),this.$emit("change",this.get())},uploadHandle(){this.cFormItemStore.commit("warnState",!1),this.upperLimit&&this.multiple?this.$message({message:this.$t("_t.upload.message.limit",{limit:this.multiple})}):this._events.click?this.$emit("click",{type:this.type,size:this.size,count:this.multiple?"boolean"!=typeof this.multiple?parseInt(this.multiple)-this.parseValueData.length:"":1,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):this.set(t[0].path),this.$emit("change",this.get())}}):this.$upload({type:this.type,size:this.size,multiple:this.multiple,loading:!0,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):(Array.isArray(t)&&(t=t[0]),this.set(t.path)),this.$emit("change",this.get())}})}}},Qi=Zi,Ji=(n("294c"),d(Qi,Xi,Gi,!1,null,"0d3363d8",null)),tr=Ji.exports,er=function(){var t=this,e=t._self._c;return t.media?e("div",{staticClass:"c-file-media flex-center",attrs:{title:`${t.info.name}${t.info.suffix?".":""}${t.info.suffix}`},on:{click:t.previewHandle}},["video"==t.info.media?e("video",{attrs:{src:t.src}}):"image"==t.info.media?e("img",{attrs:{src:t.src}}):e("i",{staticClass:"c-file-icon c-icon-file",class:"c-icon-file-"+t.info.suffix})]):e("div",{staticClass:"c-file flex-center-cross",on:{click:t.download}},[e("i",{staticClass:"c-file-icon c-icon-fw c-icon-file",class:"c-icon-file-"+t.info.suffix}),e("a",{staticClass:"ellipsis"},[t._v(t._s(t.info.name)+t._s(t.info.suffix?".":"")+t._s(t.info.suffix))])])},nr=[],ir={name:"cFile",props:{src:String,media:Boolean,preview:{type:Boolean,default:!0}},computed:{info(){return Ff(this.src)}},methods:{download(){window.open(this.src)},previewHandle(){this.preview&&(this.info.media?this.$preview({src:this.src}):this.download())}}},rr=ir,or=(n("1e54"),d(rr,er,nr,!1,null,"79083cfe",null)),ar=or.exports,sr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-editor"},[e("div",{ref:"div",attrs:{id:t.id}})])},lr=[],cr=(n("79d9"),n("5a08"),{name:"cEditor",props:{value:String,name:String,height:{type:[String,Number],default:300},autoHeight:Boolean},data(){return{id:"KindEditor"+this._uid}},watch:{value(t){this.editor.html(t)}},mounted(){setTimeout(()=>{this.editor||this.create(),this.set(this.value)})},activated(){this.destroy(),this.create()},beforeDestroy(){this.destroy()},methods:{set(t=""){this.editor.html(t)},get(){return this.editor.html()},create(){this.editor=KindEditor.create("#"+this.id,{width:"100%",height:this.height,resizeType:1,autoHeightMode:!!this.autoHeight,afterBlur:()=>{this.$emit("input",this.get())}})},destroy(){this.editor&&this.editor.remove()}}}),ur=cr,dr=(n("e5f1"),d(ur,sr,lr,!1,null,"cbdbd666",null)),hr=dr.exports,pr=function(){var t=this,e=t._self._c;return e("a",{staticClass:"c-link",attrs:{color:t.color,href:t.href,target:t.target},on:{click:function(e){return t.$emit("click")}}},[t.icon?e("i",{staticClass:"icon c-icon-link",class:t.icon}):t._e(),t.$slots.default?e("span",[t._t("default")],2):e("span",[t._v(t._s(t.href))])])},fr=[],mr={name:"cLink",props:{icon:[Boolean,String],href:String,target:String,color:{type:[String,Boolean],default:"normal"}}},gr=mr,vr=(n("a3d9"),d(gr,pr,fr,!1,null,"4c0df2c1",null)),br=vr.exports,_r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},[t.mask?e("div",{staticClass:"c-popup-mask an an-fadein",class:{"an-fadeout":!t.active},style:{"z-index":t.zIndex},on:{dblclick:()=>{t.closeButton&&t.close()}}}):t._e(),e("div",{ref:"wrapper",staticClass:"c-dialog-wrapper",style:{...t.position,"z-index":t.zIndex,width:t.parsePixel(t.compWidth,!0)},attrs:{mode:t.mode}},[e("div",{staticClass:"c-dialog flex-column an",class:{"z-shadow":!t.mask,[t.animateClass]:t.active,"an-fadeout":!t.active},attrs:{mode:t.mode,confirm:t.confirm}},[!1!==t.options.title?e("div",{staticClass:"c-dialog-head",attrs:{move:!!t.move},on:{mousedown:t.moveHandle}},[e("p",[t._v(t._s(t.$t(t.options.title)))])]):t._e(),e("div",{staticClass:"flex c-dialog-handle"},[t.resizeButton?[e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:t.minimize}},[e("i",{staticClass:"c-icon-dialog-min"})]),e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:function(e){t.max=!t.max}}},[e("i",{class:[t.max?"c-icon-dialog-normal":"c-icon-dialog-max"]})])]:t._e(),t.closeButton?e("div",{staticClass:"c-dialog-handle-item close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})]):t._e()],2),e("div",{class:{"flex-grow":"slide"==t.mode||t.max,"flex-column":t.enableFlex},style:{height:t.compHeight,overflow:"auto"==t.compHeight?"":"auto"}},[t._t("default")],2),t.options.button?e("div",{staticClass:"c-dialog-button flex-center-cross flex-end-center"},[t.$slots.button?t._t("button"):[e("c-button",{attrs:{size:"dialog",color:"main"},on:{click:function(e){return t.buttonHandle("resolve")}}},[t._v(t._s(t.$t(t.options.buttonName)))]),t.options.cancelButton?e("c-button",{attrs:{size:"dialog"},on:{click:function(e){return t.buttonHandle("cancel")}}},[t._v(t._s(t.$t(t.options.cancelButtonName)))]):t._e()]],2):t._e()])])])},yr=[],wr={name:"cDialog",props:{mode:{type:String,default:"popup"},confirm:Boolean,title:{type:[String,Boolean],default:""},width:[Number,String],height:{type:[Number,String],default:"auto"},resizeButton:Boolean,closeButton:{type:Boolean,default:!0},move:{type:Boolean,default:!0},moveLimit:{type:Boolean,default:!0},button:{type:Boolean,default:!0},buttonName:{type:String,default:"_t.popup.button"},cancelButton:{type:Boolean,default:!0},cancelButtonName:{type:String,default:"_t.popup.cancelButton"},enableFlex:Boolean,mask:{type:Boolean,default:!0}},data(){return{zIndex:1001,animate:!1,show:!1,active:!1,position:{},actualWidth:0,actualHeight:0,openOptions:{},max:!1,min:!1}},computed:{compWidth(){return this.max?"100%":this.actualWidth||this.width||{popup:750,slide:600}[this.mode]},compHeight(){return"slide"==this.mode?"100%":this.parsePixel(this.actualHeight||this.height,!0)},propsOptions(){return{title:this.title,button:this.button,buttonName:this.buttonName,cancelButton:this.cancelButton,cancelButtonName:this.cancelButtonName}},options(){return Object.assign({},this.propsOptions,this.openOptions)},animateClass(){return this.animate?{popup:"an-popup",slide:"an-slidein"}[this.mode]:""}},watch:{max(t){t?(this._lastPosition=this.position,this.position={left:0,top:0,right:0,bottom:0}):this.position=this._lastPosition}},mounted(){(function t(e){e&&("cDialog"==e.$options.name?this.zIndex=e.zIndex+1:t.call(this,e.$parent))}).call(this,this.$parent)},activated(){this._min&&this._min.show()},deactivated(){this._min&&this._min.hide()},beforeDestroy(){this._min&&this._min.remove()},methods:{updatePosition(t){this.show&&("slide"==this.mode?this.position={right:0,top:0}:this.$nextTick(()=>{let e=this.$refs.wrapper.getBoundingClientRect();e.width>document.body.clientWidth?e.width=this.actualWidth=document.body.clientWidth:this.actualWidth=0;let n=(!1!==this.options.title?61:0)+(this.options.button?61:0);e.height>window.innerHeight?(this.actualHeight=window.innerHeight-n,e.height=this.actualHeight+n):this.actualHeight=0,this.position=t?{left:parseInt(t.left)+"px",top:parseInt(t.top)+"px"}:{left:(document.body.clientWidth-e.width)/2+"px",top:(window.innerHeight-e.height)/2+"px"}}))},open(t={}){if(!this._min)return t.zIndex&&(this.zIndex=t.zIndex),this.openOptions=t,this.openHandle(),this.updatePosition(t.position),new Promise(t=>{this._resolve=t});this.openHandle()},minimize(){this.active&&(this._min=this.$minDialog(this,{title:this.options.title||"",closeButton:this.closeButton,back:this.openHandle}),this.closeHandle())},close(){this._min&&this._min.remove(),delete this._min,this.closeHandle(),this.$emit("close"),setTimeout(()=>{this.actualWidth=this.actualHeight=0,this.max=this.min=!1},250)},openHandle(){this._min&&this._min.remove(),delete this._min,this.animate=!0,this.active=!0,this.show=!0,setTimeout(()=>{this.animate=!1},450)},closeHandle(){this.active=!1,setTimeout(()=>{this.show=!1},250)},buttonHandle(t){let e=!1;(function(e,n){this.$emit(t,e,n),this._resolve({type:t,stop:e,next:n}),this.openOptions[t]&&this.openOptions[t](e,n)}).call(this,()=>{e=!0},this.close),setTimeout(()=>{!e&&this.close()})},moveHandle(t){this.moveEnd();let e="slide"==this.mode,n=this.$refs.wrapper.getBoundingClientRect(),i={x:e?document.body.clientWidth-n.right:n.left,y:n.top},r={x:t.clientX,y:t.clientY};this._mousemoveEvent=t=>{let o={x:t.clientX<0?0:t.clientX>document.body.clientWidth?document.body.clientWidth:t.clientX,y:t.clientY<0?0:t.clientY>window.innerHeight?window.innerHeight:t.clientY},a={x:i.x+(o.x-r.x)*(e?-1:1),y:i.y+o.y-r.y};if(this.moveLimit){let t={x:document.body.clientWidth-n.width,y:window.innerHeight-n.height};a.x=a.x<0?0:a.x>t.x?t.x:a.x,a.y=a.y<0?0:a.y>t.y?t.y:a.y}this.position={[e?"right":"left"]:a.x+"px",top:e?0:a.y+"px"}},document.addEventListener("mousemove",this._mousemoveEvent),document.addEventListener("mouseup",this.moveEnd)},moveEnd(){document.removeEventListener("mousemove",this._mousemoveEvent),document.removeEventListener("mouseup",this.moveEnd)}}},xr=wr,kr=(n("d929"),d(xr,_r,yr,!1,null,"18021c34",null)),Sr=kr.exports,Dr=function(){var t=this,e=t._self._c;return e("dl",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"c-window",style:t.compStyle},[e("dt",{staticClass:"flex-between-center"},[e("p",[t._v(t._s(t.$t(t.title)))]),e("a",{on:{click:t.hideHandle}},[e("i",{staticClass:"c-icon-cross"})])]),e("dd",{style:{height:t.parsePixel(this.height,!0)}},[t._t("default")],2),t.$scopedSlots.button?e("dd",{staticClass:"flex-between-center"},[e("div",[t._t("beforeButton")],2),e("div",{staticClass:"c-window-button flex"},[t._t("button")],2)]):t._e()])},Cr=[],Er={name:"cWindow",props:{title:String,width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},position:{type:String,default:"bottom"},align:{type:String,default:"start"}},data(){return{active:!1,positionStyle:{}}},computed:{compStyle(){return Object.assign({width:this.parsePixel(this.width,!0)},this.positionStyle)}},deactivated(){this.hide()},methods:{show(t,e=this.position,n=this.align){this.active=!0,t?(t=t.$options?t.$el:t,this._updatePosition=()=>{let i=t.getBoundingClientRect();this.positionStyle={left:i.left+({left:-this.$el.offsetWidth,right:i.width}[e]||0)+(["top","bottom"].includes(e)&&"start"!=n?i.width-this.$el.offsetWidth:0)+"px",top:i.top+({top:-this.$el.offsetHeight,bottom:i.height}[e]||0)+(["left","right"].includes(e)&&"start"!=n?i.height-this.$el.offsetHeight:0)+"px"}},this._removeEvent=()=>{Bn(t,t=>{t.removeEventListener("scroll",this._updatePosition)})},Bn(t,t=>{t.addEventListener("scroll",this._updatePosition)}),this.$nextTick(this._updatePosition)):this.positionStyle={position:"static"}},hide(){this._removeEvent&&this._removeEvent(),this.active=!1},hideHandle(){this.hide(),this.$emit("close")}}},Ar=Er,Tr=(n("28d6"),d(Ar,Dr,Cr,!1,null,"7a27c016",null)),Br=Tr.exports,Fr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table flex-column flex-grow-auto",style:{height:t.compHeight,"user-select":t.widthResizePosition?"none":"auto"},attrs:{border:t.border}},[e("div",{staticClass:"c-table-main flex-column flex-grow-auto"},[e("c-tbody",{ref:"tbody",attrs:{"auto-height":"auto"==t.height},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-thead")]},proxy:!0},t.$scopedSlots.custom?{key:"custom",fn:function({data:e,index:n}){return[t._t("custom",null,{data:e,index:n})]}}:null,t.summedRow?{key:"summed",fn:function(){return[e("c-summed")]},proxy:!0}:null],null,!0)})],1),!t.data&&t.pageBar?e("div",{staticClass:"c-table-foot"},[e("c-pagination",{staticClass:"c-table-page",attrs:{value:t.pageIndex,total:t.total},on:{handle:t.pageHandle}})],1):t._e(),t.widthResizePosition?e("div",{staticClass:"c-table-head-drag-line",style:{left:t.widthResizePosition+"px"}}):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)])},$r=[];function Lr(t,e){switch(e.type){case"selector":return e.multiple?[t("div",{class:"flex-center-cross"},[t("c-checkbox",{attrs:{value:this.allSelected},on:{change:t=>{this.store.selectHandle("all",t,e)}}})])]:"";default:return[t("div",{class:e.isParent||e.alignCenter?"flex-center":"flex-center-cross"},[e.$scopedSlots.head?e.$scopedSlots.head():[],e.required?[t("b",{class:"c-table-head-required"},["*"])]:[],t("p",{class:"ellipsis",attrs:{title:this.$t(e.label)}},[this.$t(e.label)])])]}}var Mr={render(t){return t("div",{class:"c-table-head",style:`min-width: ${this.columnsWidth}px;`},[t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map(e=>t("col",{attrs:{width:e.resizeWidth}}))]),t("thead",[this.header.map(e=>[t("tr",[e.map(e=>[t("th",{attrs:{rowspan:e.isParent?1:this.header.length-e.headLevel,colspan:e.colspan,parent:e.isParent,fixed:"right"==e.fixed,last:e._last},style:void 0!==e._position?`z-index: 10; position: sticky; ${e.fixed}: ${e._position}px`:""},[Lr.call(this,t,e),this.widthResize&&!e.isParent&&e.widthResize?[t("div",{class:"c-table-head-drag",attrs:{type:"right"==e.fixed?"left":"right"},on:{mousedown:t=>this.dragHandle(t,e,"right"==e.fixed?"left":"right")}})]:[]])])])])])])])},data(){return{store:this.$parent.store}},computed:{...Pn(["header","columns","fixedWidth","columnsWidth","allSelected","widthResize"])},methods:{dragHandle(t,e,n){let i=t.target.getBoundingClientRect().left-this.store.table.$el.getBoundingClientRect().left,r=t.clientX,o=0,a="right"==n?1/0:e.resizeWidth-20,s="left"==n?-1/0:20-e.resizeWidth;this.store.commit("widthResizePosition",i);const l=Tf(t=>{o=t.clientX-r,this.store.commit("widthResizePosition",i+o)},20),c=()=>{o=(o>a?a:o<s?s:o)*("right"==n?1:-1),e.resizeWidth+=o,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),this.store.commit("widthResizePosition",null),this.store.table.$emit("widthResize",{type:e.type,name:e.name,width:e.resizeWidth})};document.addEventListener("mousemove",l),document.addEventListener("mouseup",c)}}},Pr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table-button flex-wrap"},[t._l(t.buttonList.list,(function(n,i){return e("div",{key:i,staticClass:"c-table-button-item ellipsis",attrs:{title:t.$t(n)},on:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[t._v(t._s(t.$t(n)))])})),t.buttonList.more?e("div",{ref:"more",staticClass:"c-table-button-item",on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[t._v(" "+t._s(t.$t("_t.table.more"))),e("i",{staticClass:"c-icon-tri-down"})]):t._e(),t.buttonList.more?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-table-button-more",style:t.listPosition,on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[e("ul",{attrs:{up:t.listPosition.up}},t._l(t.buttonList.more,(function(n,i){return e("li",{key:i,staticClass:"ellipsis",attrs:{title:t.$t(n)},on:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[t._v(t._s(n))])})),0)]):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)],2)},Ir=[],Nr={props:{limit:Number,data:Object},data(){return{store:this.$parent.store,buttons:[],listPosition:!1}},computed:{buttonList(){var t=Array.from(this.buttons,t=>t),e="";return t.length>this.limit&&(e=t.splice(this.limit-1)),{list:t,more:e}}},watch:{data:{handler(){this.update()},immediate:!0,deep:!0},buttonList(t){t.more&&this.$nextTick(()=>{this.$refs.list&&document.body.appendChild(this.$refs.list)})}},mounted(){this.store.buttonVm.push(this),this.$refs.list&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this.store.buttonVm.splice(this.store.buttonVm.findIndex(t=>t==this),1),this.$refs.list&&document.body.removeChild(this.$refs.list)},methods:{update(){this.$nextTick(()=>{this.buttons=Array.from(this.$refs.hidden.children,(t,e)=>t.innerText)})},buttonHadnle(t){this.moreHandle(!1),this.$children.find(e=>e.$slots.default[0].text==t).$emit("click")},moreHandle(t){t?this._moreTimer?clearTimeout(this._moreTimer):(this.listPosition=!0,Bn(this.$refs.more,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$nextTick(this.updatePosition)):this._moreTimer=setTimeout(()=>{delete this._moreTimer,Bn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.listPosition=!1},20)},updatePosition(){let t=this.$refs.more.getBoundingClientRect(),e=this.$refs.list.offsetHeight,n=window.innerHeight-t.bottom<e;this.listPosition={up:n,right:document.body.offsetWidth-t.right+"px",top:(n?t.top-e:t.bottom)+"px"}}}},Hr=Nr,zr=d(Hr,Pr,Ir,!1,null,null,null),Rr=zr.exports;
|
|
19
19
|
/**!
|
|
20
20
|
* Sortable 1.15.2
|
|
21
21
|
* @author RubaXa <trash@rubaxa.org>
|
|
22
22
|
* @author owenm <owen23355@gmail.com>
|
|
23
23
|
* @license MIT
|
|
24
24
|
*/
|
|
25
|
-
function Rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ur(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rr(Object(n),!0).forEach((function(e){Wr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kr(t){return Kr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(t)}function Wr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jr(){return jr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jr.apply(this,arguments)}function Vr(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}function qr(t,e){if(null==t)return{};var n,i,r=Vr(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var Yr="1.15.2";function Xr(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var Gr=Xr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Zr=Xr(/Edge/i),Qr=Xr(/firefox/i),Jr=Xr(/safari/i)&&!Xr(/chrome/i)&&!Xr(/android/i),to=Xr(/iP(ad|od|hone)/i),eo=Xr(/chrome/i)&&Xr(/android/i),no={capture:!1,passive:!1};function io(t,e,n){t.addEventListener(e,n,!Gr&&no)}function ro(t,e,n){t.removeEventListener(e,n,!Gr&&no)}function oo(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function ao(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function so(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&oo(t,e):oo(t,e))||i&&t===n)return t;if(t===n)break}while(t=ao(t))}return null}var lo,co=/\s+/g;function uo(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(co," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(co," ")}}function ho(t,e,n){var i=t&&t.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"===typeof n?"":"px")}}function po(t,e){var n="";if("string"===typeof t)n=t;else do{var i=ho(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function fo(t,e,n){if(t){var i=t.getElementsByTagName(e),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function mo(){var t=document.scrollingElement;return t||document.documentElement}function go(t,e,n,i,r){if(t.getBoundingClientRect||t===window){var o,a,s,l,c,u,d;if(t!==window&&t.parentNode&&t!==mo()?(o=t.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,c=o.right,u=o.height,d=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!Gr))do{if(r&&r.getBoundingClientRect&&("none"!==ho(r,"transform")||n&&"static"!==ho(r,"position"))){var h=r.getBoundingClientRect();a-=h.top+parseInt(ho(r,"border-top-width")),s-=h.left+parseInt(ho(r,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(r=r.parentNode);if(i&&t!==window){var p=po(r||t),f=p&&p.a,m=p&&p.d;p&&(a/=m,s/=f,d/=f,u/=m,l=a+u,c=s+d)}return{top:a,left:s,bottom:l,right:c,width:d,height:u}}}function vo(t,e,n){var i=ko(t,!0),r=go(t)[e];while(i){var o=go(i)[n],a=void 0;if(a="top"===n||"left"===n?r>=o:r<=o,!a)return i;if(i===mo())break;i=ko(i,!1)}return!1}function bo(t,e,n,i){var r=0,o=0,a=t.children;while(o<a.length){if("none"!==a[o].style.display&&a[o]!==Ma.ghost&&(i||a[o]!==Ma.dragged)&&so(a[o],n.draggable,t,!1)){if(r===e)return a[o];r++}o++}return null}function _o(t,e){var n=t.lastElementChild;while(n&&(n===Ma.ghost||"none"===ho(n,"display")||e&&!oo(n,e)))n=n.previousElementSibling;return n||null}function yo(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ma.clone||e&&!oo(t,e)||n++;return n}function wo(t){var e=0,n=0,i=mo();if(t)do{var r=po(t),o=r.a,a=r.d;e+=t.scrollLeft*o,n+=t.scrollTop*a}while(t!==i&&(t=t.parentNode));return[e,n]}function xo(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}function ko(t,e){if(!t||!t.getBoundingClientRect)return mo();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=ho(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return mo();if(i||e)return n;i=!0}}}while(n=n.parentNode);return mo()}function So(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Do(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function Co(t,e){return function(){if(!lo){var n=arguments,i=this;1===n.length?t.call(i,n[0]):t.apply(i,n),lo=setTimeout((function(){lo=void 0}),e)}}}function Eo(){clearTimeout(lo),lo=void 0}function Ao(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function To(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Bo(t,e,n){var i={};return Array.from(t.children).forEach((function(r){var o,a,s,l;if(so(r,e.draggable,t,!1)&&!r.animated&&r!==n){var c=go(r);i.left=Math.min(null!==(o=i.left)&&void 0!==o?o:1/0,c.left),i.top=Math.min(null!==(a=i.top)&&void 0!==a?a:1/0,c.top),i.right=Math.max(null!==(s=i.right)&&void 0!==s?s:-1/0,c.right),i.bottom=Math.max(null!==(l=i.bottom)&&void 0!==l?l:-1/0,c.bottom)}})),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var Fo="Sortable"+(new Date).getTime();function $o(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==ho(t,"display")&&t!==Ma.ghost){e.push({target:t,rect:go(t)});var n=Ur({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=po(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(xo(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var r=!1,o=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,s=go(n),l=n.prevFromRect,c=n.prevToRect,u=t.rect,d=po(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Do(l,s)&&!Do(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(e=Mo(u,l,c,i.options)),Do(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=i.options.animation),i.animate(n,u,s,e)),e&&(r=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){ho(t,"transition",""),ho(t,"transform","");var r=po(this.el),o=r&&r.a,a=r&&r.d,s=(e.left-n.left)/(o||1),l=(e.top-n.top)/(a||1);t.animatingX=!!s,t.animatingY=!!l,ho(t,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=Lo(t),ho(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),ho(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){ho(t,"transition",""),ho(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),i)}}}}function Lo(t){return t.offsetWidth}function Mo(t,e,n,i){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*i.animation}var Po=[],Io={initializeByDefault:!0},No={mount:function(t){for(var e in Io)Io.hasOwnProperty(e)&&!(e in t)&&(t[e]=Io[e]);Po.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),Po.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=t+"Global";Po.forEach((function(i){e[i.pluginName]&&(e[i.pluginName][r]&&e[i.pluginName][r](Ur({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](Ur({sortable:e},n)))}))},initializePlugins:function(t,e,n,i){for(var r in Po.forEach((function(i){var r=i.pluginName;if(t.options[r]||i.initializeByDefault){var o=new i(t,e,t.options);o.sortable=t,o.options=t.options,t[r]=o,jr(n,o.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var o=this.modifyOption(t,r,t.options[r]);"undefined"!==typeof o&&(t.options[r]=o)}},getEventProperties:function(t,e){var n={};return Po.forEach((function(i){"function"===typeof i.eventProperties&&jr(n,i.eventProperties.call(e[i.pluginName],t))})),n},modifyOption:function(t,e,n){var i;return Po.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"===typeof r.optionListeners[e]&&(i=r.optionListeners[e].call(t[r.pluginName],n))})),i}};function Ho(t){var e=t.sortable,n=t.rootEl,i=t.name,r=t.targetEl,o=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,p=t.putSortable,f=t.extraEventProperties;if(e=e||n&&n[Fo],e){var m,g=e.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||Gr||Zr?(m=document.createEvent("Event"),m.initEvent(i,!0,!0)):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=s||n,m.item=r||n,m.clone=o,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=u,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=p?p.lastPutMode:void 0;var b=Ur(Ur({},f),No.getEventProperties(i,e));for(var _ in b)m[_]=b[_];n&&n.dispatchEvent(m),g[v]&&g[v].call(e,m)}}var zo=["evt"],Oo=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=qr(n,zo);No.pluginEvent.bind(Ma)(t,e,Ur({dragEl:Uo,parentEl:Ko,ghostEl:Wo,rootEl:jo,nextEl:Vo,lastDownEl:qo,cloneEl:Yo,cloneHidden:Xo,dragStarted:la,putSortable:ea,activeSortable:Ma.active,originalEvent:i,oldIndex:Go,oldDraggableIndex:Qo,newIndex:Zo,newDraggableIndex:Jo,hideGhostForTarget:Ba,unhideGhostForTarget:Fa,cloneNowHidden:function(){Xo=!0},cloneNowShown:function(){Xo=!1},dispatchSortableEvent:function(t){Ro({sortable:e,name:t,originalEvent:i})}},r))};function Ro(t){Ho(Ur({putSortable:ea,cloneEl:Yo,targetEl:Uo,rootEl:jo,oldIndex:Go,oldDraggableIndex:Qo,newIndex:Zo,newDraggableIndex:Jo},t))}var Uo,Ko,Wo,jo,Vo,qo,Yo,Xo,Go,Zo,Qo,Jo,ta,ea,na,ia,ra,oa,aa,sa,la,ca,ua,da,ha,pa=!1,fa=!1,ma=[],ga=!1,va=!1,ba=[],_a=!1,ya=[],wa="undefined"!==typeof document,xa=to,ka=Zr||Gr?"cssFloat":"float",Sa=wa&&!eo&&!to&&"draggable"in document.createElement("div"),Da=function(){if(wa){if(Gr)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ca=function(t,e){var n=ho(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=bo(t,0,e),o=bo(t,1,e),a=r&&ho(r),s=o&&ho(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+go(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+go(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[ka]||o&&"none"===n[ka]&&l+c>i)?"vertical":"horizontal"},Ea=function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return i===a||r===s||i+o/2===a+l/2},Aa=function(t,e){var n;return ma.some((function(i){var r=i[Fo].options.emptyInsertThreshold;if(r&&!_o(i)){var o=go(i),a=t>=o.left-r&&t<=o.right+r,s=e>=o.top-r&&e<=o.bottom+r;return a&&s?n=i:void 0}})),n},Ta=function(t){function e(t,n){return function(i,r,o,a){var s=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(i,r,o,a),n)(i,r,o,a);var l=(n?i:r).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==Kr(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Ba=function(){!Da&&Wo&&ho(Wo,"display","none")},Fa=function(){!Da&&Wo&&ho(Wo,"display","")};wa&&!eo&&document.addEventListener("click",(function(t){if(fa)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),fa=!1,!1}),!0);var $a=function(t){if(Uo){t=t.touches?t.touches[0]:t;var e=Aa(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[Fo]._onDragOver(n)}}},La=function(t){Uo&&Uo.parentNode[Fo]._isOutsideThisEl(t.target)};function Ma(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=jr({},e),t[Fo]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ca(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ma.supportPointer&&"PointerEvent"in window&&!Jr,emptyInsertThreshold:5};for(var i in No.initializePlugins(this,t,n),n)!(i in e)&&(e[i]=n[i]);for(var r in Ta(e),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Sa,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?io(t,"pointerdown",this._onTapStart):(io(t,"mousedown",this._onTapStart),io(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(io(t,"dragover",this),io(t,"dragenter",this)),ma.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),jr(this,$o())}function Pa(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Ia(t,e,n,i,r,o,a,s){var l,c,u=t[Fo],d=u.options.onMove;return!window.CustomEvent||Gr||Zr?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=i,l.related=r||e,l.relatedRect=o||go(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function Na(t){t.draggable=!1}function Ha(){_a=!1}function za(t,e,n){var i=go(bo(n.el,0,n.options,!0)),r=Bo(n.el,n.options,Wo),o=10;return e?t.clientX<r.left-o||t.clientY<i.top&&t.clientX<i.right:t.clientY<r.top-o||t.clientY<i.bottom&&t.clientX<i.left}function Oa(t,e,n){var i=go(_o(n.el,n.options.draggable)),r=Bo(n.el,n.options,Wo),o=10;return e?t.clientX>r.right+o||t.clientY>i.bottom&&t.clientX>i.left:t.clientY>r.bottom+o||t.clientX>i.right&&t.clientY>i.top}function Ra(t,e,n,i,r,o,a,s){var l=i?t.clientY:t.clientX,c=i?n.height:n.width,u=i?n.top:n.left,d=i?n.bottom:n.right,h=!1;if(!a)if(s&&da<c*r){if(!ga&&(1===ua?l>u+c*o/2:l<d-c*o/2)&&(ga=!0),ga)h=!0;else if(1===ua?l<u+da:l>d-da)return-ua}else if(l>u+c*(1-r)/2&&l<d-c*(1-r)/2)return Ua(e);return h=h||a,h&&(l<u+c*o/2||l>d-c*o/2)?l>u+c/2?1:-1:0}function Ua(t){return yo(Uo)<yo(t)?1:-1}function Ka(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;while(n--)i+=e.charCodeAt(n);return i.toString(36)}function Wa(t){ya.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var i=e[n];i.checked&&ya.push(i)}}function ja(t){return setTimeout(t,0)}function Va(t){return clearTimeout(t)}Ma.prototype={constructor:Ma,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ca=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,Uo):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=i.filter;if(Wa(n),!Uo&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!Jr||!s||"SELECT"!==s.tagName.toUpperCase())&&(s=so(s,i.draggable,n,!1),(!s||!s.animated)&&qo!==s)){if(Go=yo(s),Qo=yo(s,i.draggable),"function"===typeof c){if(c.call(this,t,s,this))return Ro({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Oo("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=so(l,i.trim(),n,!1),i)return Ro({sortable:e,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),Oo("filter",e,{evt:t}),!0})),c))return void(r&&t.cancelable&&t.preventDefault());i.handle&&!so(l,i.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(n&&!Uo&&n.parentNode===o){var l=go(n);if(jo=o,Uo=n,Ko=Uo.parentNode,Vo=Uo.nextSibling,qo=n,ta=a.group,Ma.dragged=Uo,na={target:Uo,clientX:(e||t).clientX,clientY:(e||t).clientY},aa=na.clientX-l.left,sa=na.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Uo.style["will-change"]="all",i=function(){Oo("delayEnded",r,{evt:t}),Ma.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Qr&&r.nativeDraggable&&(Uo.draggable=!0),r._triggerDragStart(t,e),Ro({sortable:r,name:"choose",originalEvent:t}),uo(Uo,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){fo(Uo,t.trim(),Na)})),io(s,"dragover",$a),io(s,"mousemove",$a),io(s,"touchmove",$a),io(s,"mouseup",r._onDrop),io(s,"touchend",r._onDrop),io(s,"touchcancel",r._onDrop),Qr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Uo.draggable=!0),Oo("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(Zr||Gr))i();else{if(Ma.eventCanceled)return void this._onDrop();io(s,"mouseup",r._disableDelayedDrag),io(s,"touchend",r._disableDelayedDrag),io(s,"touchcancel",r._disableDelayedDrag),io(s,"mousemove",r._delayedDragTouchMoveHandler),io(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&io(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Uo&&Na(Uo),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ro(t,"mouseup",this._disableDelayedDrag),ro(t,"touchend",this._disableDelayedDrag),ro(t,"touchcancel",this._disableDelayedDrag),ro(t,"mousemove",this._delayedDragTouchMoveHandler),ro(t,"touchmove",this._delayedDragTouchMoveHandler),ro(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?io(document,"pointermove",this._onTouchMove):io(document,e?"touchmove":"mousemove",this._onTouchMove):(io(Uo,"dragend",this),io(jo,"dragstart",this._onDragStart));try{document.selection?ja((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(pa=!1,jo&&Uo){Oo("dragStarted",this,{evt:e}),this.nativeDraggable&&io(document,"dragover",La);var n=this.options;!t&&uo(Uo,n.dragClass,!1),uo(Uo,n.ghostClass,!0),Ma.active=this,t&&this._appendGhost(),Ro({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ia){this._lastX=ia.clientX,this._lastY=ia.clientY,Ba();var t=document.elementFromPoint(ia.clientX,ia.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(ia.clientX,ia.clientY),t===e)break;e=t}if(Uo.parentNode[Fo]._isOutsideThisEl(t),e)do{if(e[Fo]){var n=void 0;if(n=e[Fo]._onDragOver({clientX:ia.clientX,clientY:ia.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Fa()}},_onTouchMove:function(t){if(na){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=Wo&&po(Wo,!0),a=Wo&&o&&o.a,s=Wo&&o&&o.d,l=xa&&ha&&wo(ha),c=(r.clientX-na.clientX+i.x)/(a||1)+(l?l[0]-ba[0]:0)/(a||1),u=(r.clientY-na.clientY+i.y)/(s||1)+(l?l[1]-ba[1]:0)/(s||1);if(!Ma.active&&!pa){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(Wo){o?(o.e+=c-(ra||0),o.f+=u-(oa||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");ho(Wo,"webkitTransform",d),ho(Wo,"mozTransform",d),ho(Wo,"msTransform",d),ho(Wo,"transform",d),ra=c,oa=u,ia=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Wo){var t=this.options.fallbackOnBody?document.body:jo,e=go(Uo,!0,xa,!0,t),n=this.options;if(xa){ha=t;while("static"===ho(ha,"position")&&"none"===ho(ha,"transform")&&ha!==document)ha=ha.parentNode;ha!==document.body&&ha!==document.documentElement?(ha===document&&(ha=mo()),e.top+=ha.scrollTop,e.left+=ha.scrollLeft):ha=mo(),ba=wo(ha)}Wo=Uo.cloneNode(!0),uo(Wo,n.ghostClass,!1),uo(Wo,n.fallbackClass,!0),uo(Wo,n.dragClass,!0),ho(Wo,"transition",""),ho(Wo,"transform",""),ho(Wo,"box-sizing","border-box"),ho(Wo,"margin",0),ho(Wo,"top",e.top),ho(Wo,"left",e.left),ho(Wo,"width",e.width),ho(Wo,"height",e.height),ho(Wo,"opacity","0.8"),ho(Wo,"position",xa?"absolute":"fixed"),ho(Wo,"zIndex","100000"),ho(Wo,"pointerEvents","none"),Ma.ghost=Wo,t.appendChild(Wo),ho(Wo,"transform-origin",aa/parseInt(Wo.style.width)*100+"% "+sa/parseInt(Wo.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,r=n.options;Oo("dragStart",this,{evt:t}),Ma.eventCanceled?this._onDrop():(Oo("setupClone",this),Ma.eventCanceled||(Yo=To(Uo),Yo.removeAttribute("id"),Yo.draggable=!1,Yo.style["will-change"]="",this._hideClone(),uo(Yo,this.options.chosenClass,!1),Ma.clone=Yo),n.cloneId=ja((function(){Oo("clone",n),Ma.eventCanceled||(n.options.removeCloneOnHide||jo.insertBefore(Yo,Uo),n._hideClone(),Ro({sortable:n,name:"clone"}))})),!e&&uo(Uo,r.dragClass,!0),e?(fa=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ro(document,"mouseup",n._onDrop),ro(document,"touchend",n._onDrop),ro(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,Uo)),io(document,"drop",n),ho(Uo,"transform","translateZ(0)")),pa=!0,n._dragStartId=ja(n._dragStarted.bind(n,e,t)),io(document,"selectstart",n),la=!0,Jr&&ho(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,i,r,o=this.el,a=t.target,s=this.options,l=s.group,c=Ma.active,u=ta===l,d=s.sort,h=ea||c,p=this,f=!1;if(!_a){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=so(a,s.draggable,o,!0),T("dragOver"),Ma.eventCanceled)return f;if(Uo.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return F(!1);if(fa=!1,c&&!s.disabled&&(u?d||(i=Ko!==jo):ea===this||(this.lastPutMode=ta.checkPull(this,c,Uo,t))&&l.checkPut(this,c,Uo,t))){if(r="vertical"===this._getDirection(t,a),e=go(Uo),T("dragOverValid"),Ma.eventCanceled)return f;if(i)return Ko=jo,B(),this._hideClone(),T("revert"),Ma.eventCanceled||(Vo?jo.insertBefore(Uo,Vo):jo.appendChild(Uo)),F(!0);var m=_o(o,s.draggable);if(!m||Oa(t,r,this)&&!m.animated){if(m===Uo)return F(!1);if(m&&o===t.target&&(a=m),a&&(n=go(a)),!1!==Ia(jo,o,Uo,e,a,n,t,!!a))return B(),m&&m.nextSibling?o.insertBefore(Uo,m.nextSibling):o.appendChild(Uo),Ko=o,$(),F(!0)}else if(m&&za(t,r,this)){var g=bo(o,0,s,!0);if(g===Uo)return F(!1);if(a=g,n=go(a),!1!==Ia(jo,o,Uo,e,a,n,t,!1))return B(),o.insertBefore(Uo,g),Ko=o,$(),F(!0)}else if(a.parentNode===o){n=go(a);var v,b,_=0,y=Uo.parentNode!==o,w=!Ea(Uo.animated&&Uo.toRect||e,a.animated&&a.toRect||n,r),x=r?"top":"left",k=vo(a,"top","top")||vo(Uo,"top","top"),S=k?k.scrollTop:void 0;if(ca!==a&&(v=n[x],ga=!1,va=!w&&s.invertSwap||y),_=Ra(t,a,n,r,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,va,ca===a),0!==_){var D=yo(Uo);do{D-=_,b=Ko.children[D]}while(b&&("none"===ho(b,"display")||b===Wo))}if(0===_||b===a)return F(!1);ca=a,ua=_;var C=a.nextElementSibling,E=!1;E=1===_;var A=Ia(jo,o,Uo,e,a,n,t,E);if(!1!==A)return 1!==A&&-1!==A||(E=1===A),_a=!0,setTimeout(Ha,30),B(),E&&!C?o.appendChild(Uo):a.parentNode.insertBefore(Uo,E?C:a),k&&Ao(k,0,S-k.scrollTop),Ko=Uo.parentNode,void 0===v||va||(da=Math.abs(v-go(a)[x])),$(),F(!0)}if(o.contains(Uo))return F(!1)}return!1}function T(s,l){Oo(s,p,Ur({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:i,dragRect:e,targetRect:n,canSort:d,fromSortable:h,target:a,completed:F,onMove:function(n,i){return Ia(jo,o,Uo,e,n,go(n),t,i)},changed:$},l))}function B(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function F(e){return T("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==h&&(uo(Uo,ea?ea.options.ghostClass:c.options.ghostClass,!1),uo(Uo,s.ghostClass,!0)),ea!==p&&p!==Ma.active?ea=p:p===Ma.active&&ea&&(ea=null),h===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===Uo&&!Uo.animated||a===o&&!a.animated)&&(ca=null),s.dragoverBubble||t.rootEl||a===document||(Uo.parentNode[Fo]._isOutsideThisEl(t.target),!e&&$a(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),f=!0}function $(){Zo=yo(Uo),Jo=yo(Uo,s.draggable),Ro({sortable:p,name:"change",toEl:o,newIndex:Zo,newDraggableIndex:Jo,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ro(document,"mousemove",this._onTouchMove),ro(document,"touchmove",this._onTouchMove),ro(document,"pointermove",this._onTouchMove),ro(document,"dragover",$a),ro(document,"mousemove",$a),ro(document,"touchmove",$a)},_offUpEvents:function(){var t=this.el.ownerDocument;ro(t,"mouseup",this._onDrop),ro(t,"touchend",this._onDrop),ro(t,"pointerup",this._onDrop),ro(t,"touchcancel",this._onDrop),ro(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;Zo=yo(Uo),Jo=yo(Uo,n.draggable),Oo("drop",this,{evt:t}),Ko=Uo&&Uo.parentNode,Zo=yo(Uo),Jo=yo(Uo,n.draggable),Ma.eventCanceled||(pa=!1,va=!1,ga=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Va(this.cloneId),Va(this._dragStartId),this.nativeDraggable&&(ro(document,"drop",this),ro(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Jr&&ho(document.body,"user-select",""),ho(Uo,"transform",""),t&&(la&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Wo&&Wo.parentNode&&Wo.parentNode.removeChild(Wo),(jo===Ko||ea&&"clone"!==ea.lastPutMode)&&Yo&&Yo.parentNode&&Yo.parentNode.removeChild(Yo),Uo&&(this.nativeDraggable&&ro(Uo,"dragend",this),Na(Uo),Uo.style["will-change"]="",la&&!pa&&uo(Uo,ea?ea.options.ghostClass:this.options.ghostClass,!1),uo(Uo,this.options.chosenClass,!1),Ro({sortable:this,name:"unchoose",toEl:Ko,newIndex:null,newDraggableIndex:null,originalEvent:t}),jo!==Ko?(Zo>=0&&(Ro({rootEl:Ko,name:"add",toEl:Ko,fromEl:jo,originalEvent:t}),Ro({sortable:this,name:"remove",toEl:Ko,originalEvent:t}),Ro({rootEl:Ko,name:"sort",toEl:Ko,fromEl:jo,originalEvent:t}),Ro({sortable:this,name:"sort",toEl:Ko,originalEvent:t})),ea&&ea.save()):Zo!==Go&&Zo>=0&&(Ro({sortable:this,name:"update",toEl:Ko,originalEvent:t}),Ro({sortable:this,name:"sort",toEl:Ko,originalEvent:t})),Ma.active&&(null!=Zo&&-1!==Zo||(Zo=Go,Jo=Qo),Ro({sortable:this,name:"end",toEl:Ko,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Oo("nulling",this),jo=Uo=Ko=Wo=Vo=Yo=qo=Xo=na=ia=la=Zo=Jo=Go=Qo=ca=ua=ea=ta=Ma.dragged=Ma.ghost=Ma.clone=Ma.active=null,ya.forEach((function(t){t.checked=!0})),ya.length=ra=oa=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Uo&&(this._onDragOver(t),Pa(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)t=n[i],so(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Ka(t));return e},sort:function(t,e){var n={},i=this.el;this.toArray().forEach((function(t,e){var r=i.children[e];so(r,this.options.draggable,i,!1)&&(n[t]=r)}),this),e&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(i.removeChild(n[t]),i.appendChild(n[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return so(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=No.modifyOption(this,t,e);n[t]="undefined"!==typeof i?i:e,"group"===t&&Ta(n)},destroy:function(){Oo("destroy",this);var t=this.el;t[Fo]=null,ro(t,"mousedown",this._onTapStart),ro(t,"touchstart",this._onTapStart),ro(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ro(t,"dragover",this),ro(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ma.splice(ma.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Xo){if(Oo("hideClone",this),Ma.eventCanceled)return;ho(Yo,"display","none"),this.options.removeCloneOnHide&&Yo.parentNode&&Yo.parentNode.removeChild(Yo),Xo=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(Xo){if(Oo("showClone",this),Ma.eventCanceled)return;Uo.parentNode!=jo||this.options.group.revertClone?Vo?jo.insertBefore(Yo,Vo):jo.appendChild(Yo):jo.insertBefore(Yo,Uo),this.options.group.revertClone&&this.animate(Uo,Yo),ho(Yo,"display",""),Xo=!1}}else this._hideClone()}},wa&&io(document,"touchmove",(function(t){(Ma.active||pa)&&t.cancelable&&t.preventDefault()})),Ma.utils={on:io,off:ro,css:ho,find:fo,is:function(t,e){return!!so(t,e,t,!1)},extend:So,throttle:Co,closest:so,toggleClass:uo,clone:To,index:yo,nextTick:ja,cancelNextTick:Va,detectDirection:Ca,getChild:bo},Ma.get=function(t){return t[Fo]},Ma.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ma.utils=Ur(Ur({},Ma.utils),t.utils)),No.mount(t)}))},Ma.create=function(t,e){return new Ma(t,e)},Ma.version=Yr;var qa,Ya,Xa,Ga,Za,Qa,Ja=[],ts=!1;function es(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?io(document,"dragover",this._handleAutoScroll):this.options.supportPointer?io(document,"pointermove",this._handleFallbackAutoScroll):e.touches?io(document,"touchmove",this._handleFallbackAutoScroll):io(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?ro(document,"dragover",this._handleAutoScroll):(ro(document,"pointermove",this._handleFallbackAutoScroll),ro(document,"touchmove",this._handleFallbackAutoScroll),ro(document,"mousemove",this._handleFallbackAutoScroll)),is(),ns(),Eo()},nulling:function(){Za=Ya=qa=ts=Qa=Xa=Ga=null,Ja.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(i,r);if(Za=t,e||this.options.forceAutoScrollFallback||Zr||Gr||Jr){rs(t,this.options,o,e);var a=ko(o,!0);!ts||Qa&&i===Xa&&r===Ga||(Qa&&is(),Qa=setInterval((function(){var o=ko(document.elementFromPoint(i,r),!0);o!==a&&(a=o,ns()),rs(t,n.options,o,e)}),10),Xa=i,Ga=r)}else{if(!this.options.bubbleScroll||ko(o,!0)===mo())return void ns();rs(t,this.options,ko(o,!1),!1)}}},jr(t,{pluginName:"scroll",initializeByDefault:!0})}function ns(){Ja.forEach((function(t){clearInterval(t.pid)})),Ja=[]}function is(){clearInterval(Qa)}var rs=Co((function(t,e,n,i){if(e.scroll){var r,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,c=mo(),u=!1;Ya!==n&&(Ya=n,ns(),qa=e.scroll,r=e.scrollFn,!0===qa&&(qa=ko(n,!0)));var d=0,h=qa;do{var p=h,f=go(p),m=f.top,g=f.bottom,v=f.left,b=f.right,_=f.width,y=f.height,w=void 0,x=void 0,k=p.scrollWidth,S=p.scrollHeight,D=ho(p),C=p.scrollLeft,E=p.scrollTop;p===c?(w=_<k&&("auto"===D.overflowX||"scroll"===D.overflowX||"visible"===D.overflowX),x=y<S&&("auto"===D.overflowY||"scroll"===D.overflowY||"visible"===D.overflowY)):(w=_<k&&("auto"===D.overflowX||"scroll"===D.overflowX),x=y<S&&("auto"===D.overflowY||"scroll"===D.overflowY));var A=w&&(Math.abs(b-o)<=s&&C+_<k)-(Math.abs(v-o)<=s&&!!C),T=x&&(Math.abs(g-a)<=s&&E+y<S)-(Math.abs(m-a)<=s&&!!E);if(!Ja[d])for(var B=0;B<=d;B++)Ja[B]||(Ja[B]={});Ja[d].vx==A&&Ja[d].vy==T&&Ja[d].el===p||(Ja[d].el=p,Ja[d].vx=A,Ja[d].vy=T,clearInterval(Ja[d].pid),0==A&&0==T||(u=!0,Ja[d].pid=setInterval(function(){i&&0===this.layer&&Ma.active._onTouchMove(Za);var e=Ja[this.layer].vy?Ja[this.layer].vy*l:0,n=Ja[this.layer].vx?Ja[this.layer].vx*l:0;"function"===typeof r&&"continue"!==r.call(Ma.dragged.parentNode[Fo],n,e,t,Za,Ja[this.layer].el)||Ao(Ja[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=ko(h,!1)));ts=u}}),30),os=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,r=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function as(){}function ss(){}as.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=bo(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:os},jr(as,{pluginName:"revertOnSpill"}),ss.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,i=n||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:os},jr(ss,{pluginName:"removeOnSpill"});Ma.mount(new es),Ma.mount(ss,as);var ls=Ma;function cs(t,e,n){let i;return this.columns.map((r,o)=>(e.index=n,this.span[o]&&this.span[o].row&&--this.span[o].row?(i=this.span[o].col,[]):(this.span[o]={row:"function"==typeof r.rowSpan?r.rowSpan(e,this.dataList):r.rowSpan},i&&--i?[]:(i="function"==typeof r.colSpan?r.colSpan(e,this.dataList):r.colSpan,this.span[o]&&(this.span[o].col=i),[t("td",{class:""+(r.ellipsis?"ellipsis":""),attrs:{fixed:"right"==r.fixed,last:r._last,rowspan:this.span[o]&&this.span[o].row||1,colspan:i||1},style:`${void 0!==r._position?`z-index: 10; position: sticky; ${r.fixed}: ${r._position}px;`:""} ${r.alignCenter?"text-align: center;":""}`},hs.call(this,t,e,r))]))))}function us(t,e){if(!e.expandData.children)return[];var n=[];return e.expandData.children.concat(e.expandData.add?[e.expandData.add]:[]).map((e,i)=>{n=n.concat([t("tr",{class:""+(this.currentRow==e?" z-hl":""),style:`display:${e.expandData.hidden?"none":"table-row"}; background:${"expandButton"==e.type?"#fafafa":""}`,on:{click:t=>this.clickHandle(e,t)}},["expandButton"==e.type?ds.call(this,t,e):cs.call(this,t,e,i)])].concat(us.call(this,t,e)))}),n}function ds(t,e){return[new Array(this.expandCol.index).fill(!0).map(e=>[t("td")]).concat([t("td",{attrs:{colspan:this.columns.length-this.expandCol.index}},[t("div",{style:`margin-left:${25*e.expandData.level+20}px;`},[t("button-group",[t("c-table-button",{on:{click:t=>this.store.expandAddHandle(this.expandCol,e,t)}},[this.$t(e.name)])])])])])]}function hs(t,e,n){switch(n.type){case"drag":return[t("a",{class:"c-table-drag",on:{click:t=>t.stopPropagation()}},[t("i",{class:"c-icon-sort-drag"})])];case"selector":return[t("div",{class:"flex-center-cross",on:{click:t=>t.stopPropagation()}},[t("c-checkbox",{attrs:{value:e.data[this.store.initSelected.name]},on:{change:t=>{this.store.selectHandle(e,t,n)}}})])];case"expand":var i=(!n.expandLimit||e.expandData.level<parseInt(n.expandLimit)-1)&&(n.expandButton(e)||e.expandData.children.length);return e.expand=()=>{(function t(e){e&&(this.store.expandHandle(n,e,!1,!0),t.call(this,e.expandData.parent))}).call(this,e.expandData.parent),i&&this.store.expandHandle(n,e,!1,!0)},e.fold=()=>{i&&this.store.expandHandle(n,e,!1,!1)},e.load=t=>{this.store.expandLoadHandle(n,e,void 0,t)},[t("div",{class:"flex-center-cross"},[i?[t("a",{class:"c-table-expand "+(e.expandData.state?"z-expand":""),style:`margin-left:${25*e.expandData.level}px;`,on:{click:t=>this.store.expandHandle(n,e,t)}},[e.expandData.loading?[t("i",{class:"c-icon-loading tf-spin"})]:[t("i",{class:"c-icon-angle-right"})]])]:[t("span",{style:`margin-left:${25*e.expandData.level+20}px;`})],t("div",{class:"flex-grow-auto"},[n.$scopedSlots.default?n.$scopedSlots.default(e):n.$slots.default||e.data[n.name]])])];case"sort":return["top","up","down","bottom"].map(i=>[t("a",{class:"c-table-sort c-icon-sort-"+i,on:{click:t=>this.store.sortHandle(n,e,i,t)}})]);case"button":return[t("button-group",{attrs:{limit:parseInt(n.buttonLimit),data:e.data}},[n.$scopedSlots.default(e)])];default:return n.$scopedSlots.default?n.$scopedSlots.default(e):n.$slots.default||e.data[n.name]}}var ps={render(t){return t("div",{class:"c-table-body-scroll flex-column flex-grow",style:`height: ${this.autoHeight?"auto":""};`},[this.$scopedSlots.head(),t("div",{class:"c-table-body flex-grow-auto",attrs:{empty:this.emptyState}},[this.emptyState?t("c-empty"):[this.$scopedSlots.custom?[this.dataList.map(({data:t},e)=>this.$scopedSlots.custom({data:t,index:e}))]:t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map(e=>t("col",{attrs:{width:e.resizeWidth}}))]),t("tbody",{attrs:{pointer:this.rowClick}},[this.dataList.map((e,n)=>[t("tr",{class:""+(this.currentRow==e?" z-hl":""),attrs:{drag:this.dragState},on:{click:t=>this.clickHandle(e,t)}},[cs.call(this,t,e,n)])].concat(us.call(this,t,e)))])])]]),this.$scopedSlots.summed?[this.$scopedSlots.summed()]:[]])},components:{buttonGroup:Or},props:{autoHeight:Boolean},data(){return{store:this.$parent.store,span:{},dragState:!1}},computed:{...Pn(["dataList","columns","fixedWidth","emptyState","rowClick","currentRow","dragHandle"]),expandCol(){return this.columns.find(t=>"expand"==t.type)}},watch:{dataList(t){this.initDragSort()}},mounted(){this.initDragSort()},methods:{initDragSort(){this.$nextTick(()=>{let t=this.$el.querySelector(".c-table-body"),e=this.$el.querySelector(".c-table-body tbody");e&&new ls(e,{handle:".c-table-drag",animation:150,direction:"vertical",scroll:this.$el,scrollSensitivity:100,onStart:()=>{this.dragState=!0},onEnd:e=>{this.dragState=!1,t.style.minHeight=t.offsetHeight+"px";var n=this.store.table.getData().slice(0);n.splice(e.newIndex,0,n.splice(e.oldIndex,1)[0]),this.store.table.setData([]),this.$nextTick(()=>{this.store.table.setData(n),this.dragHandle&&this.dragHandle(this.store.table.getRow(e.newIndex)),this.$nextTick(()=>{setTimeout(()=>{t.style.minHeight="auto"})})})}})})},clickHandle(t){this.rowClick&&(this.store.commit("currentRow",t),this.store.table.$emit("rowClick",t))}}},fs={render(t){return t("div",{class:"c-table-summed",style:`min-width: ${this.columnsWidth}px;`},[t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map((e,n)=>t("col",{attrs:{width:e.resizeWidth}}))]),t("tbody",[t("tr",[this.columns.map((e,n)=>{let i=this.totalData[n];return[t("td",{class:""+(e.ellipsis?"ellipsis":""),attrs:{fixed:"right"==e.fixed,last:e._last},style:`${void 0!==e._position?`z-index: 10; position: sticky; ${e.fixed}: ${e._position}px;`:""} ${e.alignCenter?"text-align: center;":""}`},e.$scopedSlots.summed?e.$scopedSlots.summed(i):i.total)]})])])])])},data(){return{store:this.$parent.store}},computed:{...Pn(["dataList","columns","fixedWidth","columnsWidth"]),totalData(){return this.columns.map(t=>{let e=!!t.summed&&("function"==typeof t.summed?t.summed:e=>parseFloat(hs(!1,e,t))||0);if(!e)return{total:""};let n=0;return this.dataList.forEach(t=>{n+=e(t)}),{total:n}})}}},ms=(n("3c65"),function(t){return $n.a.extend({data(){return{table:t,colVm:[],colIndex:0,colIndexList:[],buttonVm:[],header:[],columns:[],initSelected:null,dataList:[],emptyState:!1,widthResize:!1,widthResizePosition:null,rowClick:!1,currentRow:null,dragHandle:null}},computed:{fixedWidth(){return this.table.fixedWidth?`width: ${this.columnsWidth}px`:""},columnsWidth(){var t=0;return this.columns.forEach(e=>{t+=parseInt(e.resizeWidth)}),t},summedRow(){return!!this.colVm.find(t=>t.summed)},allSelected(){return!(!this.initSelected||!this.dataList.length||this.dataList.find(t=>!t.data[this.initSelected.name]))}},methods:{commit(t,e){this[t]=e},insertColumn(t){this.colVm.push(t),this.$nextTick(this.updateColumn)},removeColumn(t){this.colVm.splice(this.colVm.findIndex(e=>e==t),1),this.$nextTick(this.updateColumn)},updateColumn:Ef((function(){if(!this.colVm.find(t=>-1==t.index)){this.colVm.sort((t,e)=>t.index-e.index);let t=this.colVm.filter(t=>"left"==t.fixed),e=this.colVm.filter(t=>!t.fixed),n=this.colVm.filter(t=>"right"==t.fixed);this.colVm=t.concat(e).concat(n),this.header=[],this.colVm.forEach(t=>{delete t._position,delete t._last,this.insertHeader(t)}),this.header.forEach((t,e)=>{t.forEach((n,i)=>{"left"==t[i].fixed&&(t[i]._position=t[i-1]?t[i-1]._position+parseInt(t[i-1].resizeWidth):0),i=t.length-1-i,"right"==t[i].fixed&&(t[i]._position=t[i+1]?t[i+1]._position+parseInt(t[i+1].resizeWidth):0),("right"!=t[i].fixed&&t[i+1]&&"right"==t[i+1].fixed||e&&t[i].$parent._last&&!t[i+1])&&(t[i]._last=!0)})}),this.columns=this.colVm.filter(t=>!t.isParent)}}),0,!1),insertHeader(t){let e=t.headLevel;this.header[e]||this.$set(this.header,e,[]);var n=this.header[e];if("left"==t.fixed){let e=n.findIndex(t=>"left"!=t.fixed);-1==e?n.push(t):n.splice(e,0,t)}else if("right"==t.fixed)n.push(t);else{let e=n.findIndex(t=>"right"==t.fixed);e=-1==e?n.length:e,n.splice(e,0,t)}},setData(t){this.dataList=Array.from(t,t=>this.createRow({data:t}))},createRow(t={}){let e={_timestamp:(new Date).getTime(),[this.initSelected?this.initSelected.name:"_selected"]:!!this.initSelected&&!!this.initSelected.init(t)};for(let i in e)this.$set(t.data,i,e[i]);var n=Object.assign({data:t.data,index:0,expandData:{state:t.expandState||!1,loading:!1,hidden:t.expandHidden||!1,level:t.expandLevel||0,parent:t.expandParent,children:""},update:t=>{for(let e in t)this.$set(n.data,e,t[e]);this.$set(n.data,"_timestamp",(new Date).getTime())},remove:()=>{(n.expandData.parent?n.expandData.parent.expandData.children:this.dataList).splice(n.index,1)},moveTo:t=>{let e=n.expandData.parent?n.expandData.parent.expandData.children:this.dataList;if(("top"!=t&&"up"!=t||0!=n.index)&&("bottom"!=t&&"down"!=t||n.index!=e.length-1))switch(e.splice(n.index,1),t){case"top":e.unshift(n);break;case"up":e.splice(n.index-1,0,n);break;case"down":e.splice(n.index+1,0,n);break;case"bottom":e.push(n);break}},prev:()=>{let t=n.expandData.parent?n.expandData.parent.expandData.children:this.dataList;return t[n.index-1]},next:()=>{let t=n.expandData.parent?n.expandData.parent.expandData.children:this.dataList;return t[n.index+1]}},t.extend||{});return n},selectHandle(t,e,n){"all"==t?this.dataList.forEach(t=>{this.selectHandle(t,e,n)}):(!n.multiple&&e&&this.dataList.forEach(t=>{this.$set(t.data,n.name,!1)}),this.$set(t.data,n.name,e))},expandHandle(t,e,n,i=!e.expandData.state){n&&n.stopPropagation(),!i||e.expandData.children?(e.expandData.state=i,function t(e){e.expandData.add&&(e.expandData.add.expandData.hidden=!i),e.expandData.children&&e.expandData.children.forEach(e=>{e.expandData.hidden=!i,i||(e.expandData.state=i,t.call(this,e))})}.call(this,e)):this.expandLoadHandle(t,e,!0)},expandLoadHandle(t,e,n=e.expandData.state,i){e.expandData.loading||(e.expandData.loading=!0,new Promise(n=>{i?n(i):t.$emit("expand",e,n,()=>{e.expandData.loading=!1})}).then(i=>{e.expandData.state=n,e.expandData.loading=!1,function t(e,i){e.expandData.children=Array.from(i,i=>{let r=this.createRow({data:i,expandState:i.children&&i.children.length,expandLevel:e.expandData.level+1,expandParent:e,expandHidden:!n});return i.children&&i.children.length&&t.call(this,r,i.children),r})}.call(this,e,i);let r="function"==typeof t.addButton?t.addButton(e):t.addButton;e.expandData.add=r?this.createRow({expandLevel:e.expandData.level+1,expandParent:e,expandHidden:!n,extend:{type:"expandButton",name:"string"==typeof r?r:"_t.table.addChild"}}):""}))},expandAddHandle(t,e,n){n&&n.stopPropagation();var i=e.expandData.parent;t.$emit("add",i,t=>{let e=this.createRow({data:t,expandLevel:i.expandData.level+1,expandParent:i});i.expandData.children.push(e)})},sortHandle(t,e,n,i){i&&i.stopPropagation(),t._events.sort?t.$emit("sort",e,n,()=>{e.moveTo(n)}):e.moveTo(n)}}})}),gs={name:"cTable",components:{cThead:Mr,cTbody:ps,cSummed:fs},props:{data:Array,height:{type:[String,Number],default:"auto"},border:Boolean,fixedWidth:{type:Boolean,default(){return this.$compsConfig.config.table.fixedWidth}},widthResize:Boolean,paging:{type:Boolean,default:!0}},data(){return{store:Ln(ms(this)),pageBar:this.paging,pageIndex:1,total:0,pageSize:20}},computed:{...Pn(["dataList","summedRow","initSelected","emptyState","widthResizePosition"]),compHeight(){return parseInt(this.height)==this.height?parseInt(this.height)+"px":this.height},pageCount(){return Math.ceil(this.total/this.pageSize)||1}},watch:{dataList(t){this.store.commit("emptyState",!t.length)},data(){this.store.setData(this.data)}},mounted(){this.updateColIndexList(),this.data&&this.store.setData(this.data),this.store.commit("widthResize",this.widthResize),this.store.commit("rowClick",!!this._events.rowClick)},updated(){this.updateColIndexList()},methods:{updateColIndexList(){let t=[];this.$refs.hidden.querySelectorAll("[index]").forEach(e=>{t.push(e.attributes.index.value)}),this.store.commit("colIndexList",t)},load(t){this.opt=t,this.update(1)},update(t){this.opt&&this.opt.url&&(this.pageBar=this.paging,t=parseInt(t||this.pageIndex)||1,t=t<1?1:t>this.pageCount?this.pageCount:t,this.pageIndex=t,this._loading&&this._loading.close(),!1!==this.opt.loading?this._loading=this.$loading({dom:this.$el}):delete this._loading,this._requestObj&&this._requestObj.abort(),this._requestObj=this.request({url:this.opt.url,data:Object.assign({pageIndex:t,pageSize:this.pageSize},this.opt.data||{}),success:t=>{t=t||[],this.opt.dataFormatter&&(t=this.opt.dataFormatter(t)),this.store.setData(t);try{this.$refs.tbody.$el.scrollTop=0}catch(e){}this.$nextTick(()=>{this.opt.success&&this.opt.success(t)})},response:t=>{this.total=this.opt.totalFormatter?this.opt.totalFormatter(t):t.total,this._loading&&this._loading.close()}}))},setData(t=[]){this.pageBar=!1,this.store.setData(JSON.parse(JSON.stringify(t)))},getData(t="all"){return this.getRow(t).map(t=>t.data)},getRow(t="all"){if("all"==t)return this.dataList;if("selected"==t)return this.initSelected?this.getRow(t=>t.data[this.initSelected.name]):[];if("function"==typeof t){let e=[];return function n(i){i&&i.forEach((i,r)=>{t(i)&&e.push(i),n.call(this,i.expandData.children)})}.call(this,this.dataList),e}{let e=[];return("object"!=typeof t?[t]:t).forEach(t=>{e.push(this.dataList[t])}),"object"==typeof t?e:e[0]}},clear(){this.store.setData([]),this.total=0,this.$nextTick(()=>{this.store.commit("emptyState",!1)})},push(t){Array.isArray(t)||(t=[t]),t.forEach(t=>{this.store.dataList.push(this.store.createRow({data:JSON.parse(JSON.stringify(t))}))})},pageHandle(t){this.pageSize=t.pageSize,this.update(t.pageIndex)}}},vs=gs,bs=(n("15d0"),d(vs,Fr,$r,!1,null,null,null)),_s=bs.exports,ys=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"none"},attrs:{index:t.colIndex}},["button"==t.type||t.$slots.default?t._t("default",null,{data:{},expandData:{}}):t._e()],2)},ws=[],xs={name:"cTableColumn",props:{type:{type:String,default:"normal"},fixed:{type:[String,Boolean],default(){return{drag:"left",selector:"left",button:"right"}[this.type]||!1}},required:Boolean,label:String,name:{type:String,default(){return"selector"==this.type?"_selected":""}},width:{type:[String,Number],default(){return{drag:37,selector:37,sort:104}[this.type]||100}},widthResize:{type:Boolean,default(){return!["drag","selector"].includes(this.type)}},alignCenter:Boolean,ellipsis:{type:Boolean,default(){return this.$compsConfig.config.table.colEllipsis}},multiple:{type:Boolean,default:!0},buttonLimit:{type:[Number,String],default:4},expandButton:{type:Function,default:()=>!0},addButton:[Boolean,String,Function],expandLimit:[String,Number],selected:{type:Function,default({data:t},e){return!!e&&!(!t||!t[e])}},colSpan:{type:[Number,String,Function],default:1},rowSpan:{type:[Number,String,Function],default:1},summed:[Function,Boolean]},data(){return{store:this.$parent.store,colIndex:this.$parent.store.colIndex++,headLevel:0,isParent:!1,childrenCount:0,resizeWidth:parseInt(this.width)}},computed:{...Pn(["colIndexList"]),index(){return this.colIndexList.findIndex(t=>t==this.colIndex)}},watch:{"$i18n.locale"(t){"button"==this.type&&this.store.buttonVm.forEach(t=>t.update())},resizeWidth(t){this.store.updateColumn()}},created(){this.store.insertColumn(this),"cTableColumn"==this.$parent.$options.name&&(this.headLevel=this.$parent.headLevel+1,this.$parent.isParent=!0,this.$parent.childrenCount++),"selector"==this.type?this.store.commit("initSelected",{name:this.name,init:t=>this.selected(t,this.name)}):"drag"==this.type&&this._events.drag&&this.store.commit("dragHandle",t=>{this.$emit("drag",t)})},updated(){"button"==this.type&&this.store.buttonVm.forEach(t=>t.update())},beforeDestroy(){this.store.removeColumn(this)}},ks=xs,Ss=d(ks,ys,ws,!1,null,null,null),Ds=Ss.exports,Cs=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"none"}},[t._t("default")],2)},Es=[],As={name:"cTableButton"},Ts=As,Bs=d(Ts,Cs,Es,!1,null,null,null),Fs=Bs.exports,$s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-form flex-wrap",attrs:{vertical:t.vertical}},[t._t("default")],2)},Ls=[];const Ms={phone:/^T?1[0-9]{10}$/,tel:/^(0[0-9]{2,3}\-?)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/,email:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,realname:/[\u4E00-\u9FA5]{2,5}(?:·[\u4E00-\u9FA5]{2,5})*/,idcard:/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,username:/^([a-zA-Z0-9\u4e00-\u9fa5_-]){4,20}$/,password:/^[\@A-Za-z0-9\!\#\$\%\^\&\*\.\~]{6,20}$/};function Ps(t,e,n){return new Promise(async i=>{if(!["regexp"].includes(n.type)||""!==t&&void 0!==t)if(n.skip&&n.skip(t,e))i(!0);else{switch(n.type){case"empty":Array.isArray(t)&&!t.length?i(!1):""!==t&&void 0!==t&&null!==t||i(!1);break;case"regexp":let r=Object.assign(Ms,$n.a.prototype.$compsConfig.validate.regexp);i(!!n.regexp.find(e=>{let n="string"==typeof e?r[e]:e;return!n||n.test(t)}));break;case"function":i(await n.fun(t,e)||!1);break}i(!0)}else i(!0)})}async function Is(t,e,n){let i,r,o,a=n.rule[e],s=e.split(".");function l(t,i){n.breakWhenFail&&$n.a.prototype.$message({message:i}),r&&r(t,i),n.itemFail&&n.itemFail(e,i)}if(function t(e,n){e&&s[n]&&(o=e[s[n]],t(o,++n))}(t,0),"function"==typeof a){let e=await a(t);return!0===e||(l("complex",e||new $n.a({i18n:Df}).$t("_t.validate.fail")),!1)}return"object"!=typeof a||Array.isArray(a)||(i=a.skip,r=a.fail,a=a.check),!(!i||!i(o,t))||new Promise(async e=>{if("string"==typeof a&&(a=[{type:"empty",message:a}]),a&&a.length){for(let n in a)if(!await Ps(o,t,a[n]))return l(a[n].type,a[n].message||new $n.a({i18n:Df}).$t("_t.validate.fail")),void e(!1);e(!0)}else e(!0)})}async function Ns(t,e,n){if(!Object.keys(e.rule).length)return void n(!0);let i=!0;for(let r in e.rule)if(!await Is(t,r,e)&&(i=!1,e.breakWhenFail))break;n(i)}var Hs=function(t,e){return e=Object.assign({breakWhenFail:$n.a.prototype.$compsConfig.config.form.breakWhenFail,rule:{},success:function(){},fail:function(){}},e),new Promise(n=>{Ns(t,e,(function(i){i&&e.success(t),n(i)}))})},zs={name:"cForm",props:{name:String,column:{type:[Number,String],default:1},unitWidth:{type:[Number,String],default:300},vertical:Boolean,linkParent:Boolean},data(){let{cFormStore:t}=Mn(this,"cFormStore");return{pFormStore:t,cFormStore:Ln({updateLabelLength:(t,e)=>{if(t==e)return;let n=this.labelList?this.labelList.split(","):[];t&&n.push(t),e&&n.splice(n.findIndex(t=>t==e),1),this.labelList=n.join(",")},labelLength:0,columnWidth:this.columnWidth,columnCount:0,unitWidth:this.unitWidth,vertical:this.vertical}),labelList:""}},computed:{...Pn("pFormStore",{pLabelLength(t){return t.labelLength},pUpdateLabelLength(t){return t.updateLabelLength},pColumnWidth(t){return t.columnWidth},pUnitWidth(t){return t.unitWidth},pVertical(t){return t.vertical}}),...Pn("cFormStore",["columnCount","labelLength"]),columnWidth(){return this.linkParent?this.pColumnWidth:1/parseInt(this.columnCount||this.column)*100+"%"},compUnitWidth(){return this.linkParent?this.pUnitWidth:this.unitWidth},compVertical(){return this.linkParent?this.pVertical:this.vertical}},watch:{columnWidth(t){this.cFormStore.commit("columnWidth",t)},compUnitWidth(t){this.cFormStore.commit("unitWidth",t)},compVertical(t){this.cFormStore.commit("vertical",t)},labelList(t,e){t&&(this.linkParent?this.pUpdateLabelLength(Math.max(...t.split(",")),!!e&&Math.max(...e.split(","))):this.cFormStore.commit("labelLength",Math.max(...t.split(","))))},pLabelLength(t){this.cFormStore.commit("labelLength",t)}},created(){this.cFormStore.commit("columnWidth",this.columnWidth),this.linkParent&&(this.cFormStore.commit("unitWidth",this.pUnitWidth),this.cFormStore.commit("vertical",this.pVertical))},methods:{eachUnit(t){!function e(n,i){for(let r=0;r<n.length;r++){let o=n[r];if(["cForm","cFormItem"].includes(o.$options.name)&&o.name||["cInput","cRadioGroup","cCheckboxGroup","cSelect","cRegion","cDatetime","cColor","cUploadFile","cSwitch","cEditor","cTransfer"].includes(o.$options.name)){if(["cFormItem","cRadioGroup","cCheckboxGroup"].includes(o.$options.name)&&e(o.$children,i),!1===t(o,i))break}else["cTable"].includes(o.$options.name)||e(o.$children,"cFormItem"==o.$options.name?o:i)}}(this.$children)},set(t={}){this.eachUnit((e,n)=>{if(n&&n.warn(!1),"cRegion"==e.$options.name){let n={},i=["province","city","county","address"];for(let r in i){let o=i[r]+"Name";if(!e[o]||void 0===t[e[o]]||null===t[e[o]])break;n[i[r]]=t[e[o]]}e.set(n)}else"cDatetime"==e.$options.name&&e.range?t[e.startName]&&t[e.endName]&&e.set([t[e.startName],t[e.endName]]):"cFormItem"==e.$options.name?e.warn(!1):e.name&&void 0!==t[e.name]&&null!==t[e.name]&&e.set(t[e.name])})},get(){var t={};return this.eachUnit(e=>{if("cRegion"==e.$options.name){let n=e.get();e.provinceName&&(t[e.provinceName]=n.province),e.cityName&&(t[e.cityName]=n.city),e.countyName&&(t[e.countyName]=n.county),e.addressName&&(t[e.addressName]=n.address)}else if("cDatetime"==e.$options.name&&e.range){let n=e.get()||[];e.startName&&(t[e.startName]=n[0]),e.endName&&(t[e.endName]=n[1])}else e.name&&"cFormItem"!=e.$options.name&&(t[e.name]=e.get())}),t},clear(){this.eachUnit((t,e)=>{e&&e.warn(!1),"cForm"==t.$options.name?t.clear():"cFormItem"==t.$options.name?t.warn(!1):t.set()})},validate(t){t=Object.assign({breakWhenFail:this.$compsConfig.config.form.breakWhenFail},t),t.breakWhenFail||(t.itemFail=(t,e)=>{let n=t.split(".");!function t(i,r){if(n[r]){let o=n[r];i.eachUnit((n,i)=>{if("cForm"==n.$options.name)t(n,++r);else if("cFormItem"==n.$options.name){if(n.name==o)return n&&n.warn(e),!1}else if("cRegion"==n.$options.name){if([n.provinceName,n.cityName,n.countyName,n.addressName].includes(o))return i&&i.warn(e),!1}else if("cDatetime"==n.$options.name&&n.range){if([n.startName,n.endName].includes(o))return i&&i.warn(e),!1}else if(n.name==o)return i&&i.warn(e),!1})}}(this,0)}),Hs(t.beforeValid?t.beforeValid(this.get()):this.get(),t)},submit(t){const e=t.success,n=t.fail;t.success=i=>{t.url&&(t.dataFormatter&&(i=t.dataFormatter(i)),this.request({url:t.url,data:i,loading:!0,success:(t,n)=>{e&&e(i,t,n)},fail:(t,e,r)=>n?n(i,t,e,r):void 0}))},this.validate(t)}}},Os=zs,Rs=(n("a44f"),d(Os,$s,Ls,!1,null,null,null)),Us=Rs.exports,Ks=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-form-item",style:{width:t.compWidth},attrs:{vertical:t.vertical}},[e("div",{class:[t.vertical?"flex-column":"flex"]},[e("div",{class:{"flex-between-center":t.vertical},style:{width:t.vertical?t.compUnitWidth:"auto"}},[!1!==t.label?e("div",{staticClass:"c-form-item-label flex-grow",class:[t.vertical?"flex-start-center":"flex-end-center"],style:{"min-width":t.labelLength+"em"}},[t.required?e("b",[t._v("*")]):t._e(),e("span",[t._v(t._s(t.compLabel))])]):t._e(),t.vertical&&t.$slots.handle?e("div",{staticClass:"c-form-item-handle flex-center-cross"},[t._t("handle")],2):t._e()]),e("div",{staticClass:"flex-grow-auto",class:{"flex-column":t.vertical}},[e("div",{staticClass:"c-form-item-unit",style:{width:t.compUnitWidth,"padding-left":t.contentMarginLeft}},[e("div",{staticClass:"flex-center"},[e("div",{staticClass:"flex-grow"},[t._t("default")],2),!t.vertical&&t.$slots.handle?e("div",{staticClass:"c-form-item-handle flex-center-cross"},[t._t("handle")],2):t._e()])]),t.$slots.tip?e("div",{staticClass:"c-form-item-tip",style:{"margin-left":t.contentMarginLeft}},[t._t("tip")],2):t.tip?e("div",{staticClass:"c-form-item-tip",style:{"margin-left":t.contentMarginLeft}},[t._v(t._s(t.$t(t.tip)))]):t._e(),t.warnState?e("div",{staticClass:"c-form-item-warn",style:{"margin-left":t.contentMarginLeft}},[e("i",{staticClass:"c-icon-message-warn"}),t._v(t._s(t.warnMsg))]):t._e()])])])},Ws=[],js={name:"cFormItem",props:{colspan:{type:[Number,String],default:1},label:{type:[String,Boolean],default:""},name:String,width:[Number,String],required:Boolean,tip:[String,Number]},data(){return{...Mn(this,"cFormStore"),cFormItemStore:Ln({warnState:!1}),warnMsg:!1}},computed:{...Pn("cFormStore",["columnWidth","updateLabelLength","labelLength","unitWidth","vertical"]),...Pn("cFormItemStore",["warnState"]),compWidth(){return"cFormColumn"==this.$parent.$options.name?"100%":`calc(${parseFloat(this.columnWidth)*parseInt(this.colspan)+"%"} - 20px)`},compUnitWidth(){return this.parsePixel(this.width||this.unitWidth,!0)},compLabel(){return this.$t(this.label)},compLabelLength(){return this.compLabel.length*("zh"==this.$i18n.locale?1:.5)+(this.required?1:0)},contentMarginLeft(){return this.vertical||!1===this.label?0:"10px"}},watch:{compLabelLength(t,e){this.updateLabelLength(t,e)}},created(){this.updateLabelLength(this.compLabelLength)},beforeDestroy(){this.updateLabelLength(!1,this.compLabelLength)},methods:{warn(t){this.warnMsg=t,this.cFormItemStore.commit("warnState",!!t)}}},Vs=js,qs=d(Vs,Ks,Ws,!1,null,null,null),Ys=qs.exports,Xs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-form-column flex-column",style:{width:t.compWidth}},[t._t("default")],2)},Gs=[],Zs={name:"cFormColumn",data(){return{...Mn(this,"cFormStore")}},created(){this.cFormStore.commit("columnCount",this.columnCount+1)},beforeDestroy(){this.cFormStore.commit("columnCount",this.columnCount-1)},computed:{...Pn("cFormStore",["columnWidth","columnCount"]),compWidth(){return`calc(${this.columnWidth} - 20px)`}}},Qs=Zs,Js=d(Qs,Xs,Gs,!1,null,null,null),tl=Js.exports,el=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-detail"},[e("div",{staticClass:"c-detail-content flex-wrap"},[t._t("default")],2)])},nl=[],il={name:"cDetail",props:{column:{type:[Number,String],default:1}},data(){return{cDetailStore:Ln({columnWidth:this.columnWidth})}},computed:{columnWidth(){return 1/parseInt(this.column)*100+"%"}},watch:{columnWidth(t){this.cDetailStore.commit("columnWidth",t)}},created(){this.cDetailStore.commit("columnWidth",this.columnWidth)}},rl=il,ol=(n("6d4f"),d(rl,el,nl,!1,null,null,null)),al=ol.exports,sl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-detail-item flex flex-grow",style:{width:t.compWidth}},[e("label",{staticClass:"c-detail-item-label flex-end-main"},[t._v(t._s(t.$t(t.label)))]),e("div",{staticClass:"c-detail-item-content flex-grow"},[t._t("default")],2)])},ll=[],cl={name:"cDetailItem",props:{colspan:{type:[Number,String],default:1},label:String},data(){return{...Mn(this,"cDetailStore")}},computed:{...Pn("cDetailStore",["columnWidth"]),compWidth(){return parseFloat(this.columnWidth)*parseInt(this.colspan)+"%"}}},ul=cl,dl=d(ul,sl,ll,!1,null,null,null),hl=dl.exports,pl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-page flex-column",on:{click:function(e){return t.$emit("click")}}},[t._t("default")],2)},fl=[],ml={name:"page"},gl=ml,vl=(n("9573"),d(gl,pl,fl,!1,null,"57657f9d",null)),bl=vl.exports,_l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-module flex-column",class:{"flex-grow":t.complex,"flex-grow-auto":!t.height}},[t.tabList?e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabList,type:t.tabType,immediate:!1},on:{change:t.tabHandle}}):t.title||t.$slots.head?e("div",{staticClass:"c-module-head flex"},[t.title?e("div",{staticClass:"c-module-title flex-baseline"},[e("p",[t._v(t._s(t.$t(t.title)))]),t.subTitle?e("span",[t._v(t._s(t.$t(t.subTitle)))]):t._e()]):t._e(),t.$slots.head?e("div",{staticClass:"flex-grow"},[t._t("head")],2):t._e()]):t._e(),e("module-content",{attrs:{height:t.compHeight,enableFlex:t.enableFlex}},[t._t("default")],2),e("div",{staticClass:"c-module-foot"},[t.$slots.foot?e("div",[t._t("foot")],2):t._e(),t.$slots.button?e("div",{staticClass:"c-module-button flex-center"},[t._t("button")],2):t._e()])],1)},yl=[],wl={name:"module",props:{height:[Number,String],title:String,subTitle:String,tabs:Array,tabType:{type:String,default(){return this.$compsConfig.config.module.tabType}},immediate:{type:Boolean,default:!0},enableFlex:Boolean},data(){return{tabComps:[],complex:!1}},computed:{tabList(){return this.tabComps.length?this.tabComps:this.tabs},compHeight:function(){return parseInt(this.height)==this.height?parseInt(this.height)-(this.$slots.button?60:0)+"px":this.height}},watch:{tabs(t,e){!this.immediate||e&&e.length||this.tabHandle(this.tabs[0],0)}},mounted(){this.$refs.tabList&&this.immediate&&this.$refs.tabList.changeIndex()},methods:{insertTab(t){this.$set(this.tabComps,this.tabComps.length,{name:t.name,vm:t}),this.immediate&&1==this.tabComps.length&&this.$nextTick(()=>{this.$refs.tabList.changeIndex()})},tabHandle(t,e,n){this.tabComps.length?(this._lastTabComp&&this._lastTabComp.deactivated(),this._lastTabComp=t.vm,t.vm.activated()):this.$emit("tabChange",t,e,n)},changeIndex(t){this.$refs.tabList.changeIndex(t)},changeValue(t){this.$refs.tabList.changeValue(t)}}},xl=wl,kl=(n("00d4"),d(xl,_l,yl,!1,null,null,null)),Sl=kl.exports,Dl=function(){var t=this,e=t._self._c;return e("module-content",{directives:[{name:"show",rawName:"v-show",value:!t.miniState,expression:"!miniState"}],attrs:{enableFlex:t.enableFlex},on:{resize:function(e){return t.$emit("resize",e)}}},[t._t("default"),t._t("button",null,{slot:"button"})],2)},Cl=[],El={name:"moduleCol",props:{size:String,mini:Boolean,enableFlex:Boolean},data(){return{fixedSize:this.size&&!this.size.includes("%"),scaleSize:this.size&&this.size.includes("%"),currentSize:this.size,miniState:!1}},created:function(){this.$parent.direction="row"},methods:{updateSize(){this.fixedSize?this.currentSize=this.$children[0].size:this.scaleSize&&(this.currentSize=this.$children[0].size/this.$parent.totalSize()*100+"%")}}},Al=El,Tl=d(Al,Dl,Cl,!1,null,null,null),Bl=Tl.exports,Fl=function(){var t=this,e=t._self._c;return e("module-content",{directives:[{name:"show",rawName:"v-show",value:!t.miniState,expression:"!miniState"}],attrs:{enableFlex:t.enableFlex},on:{resize:function(e){return t.$emit("resize",e)}}},[t._t("default"),t._t("button",null,{slot:"button"})],2)},$l=[],Ll={name:"moduleRow",props:{size:String,mini:Boolean,enableFlex:Boolean},data(){return{fixedSize:this.size&&!this.size.includes("%"),scaleSize:this.size&&this.size.includes("%"),currentSize:this.size,miniState:!1}},created:function(){this.$parent.direction="col"},methods:{updateSize(){this.fixedSize?this.currentSize=this.$children[0].size:this.scaleSize&&(this.currentSize=this.$children[0].size/this.$parent.totalSize()*100+"%")}}},Ml=Ll,Pl=d(Ml,Fl,$l,!1,null,null,null),Il=Pl.exports,Nl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-module-content",class:{flex:t.flexRow,"flex-column":t.flexColumn||t.enableFlex,"flex-grow-auto":t.root},style:t.sizeStyle},[t._t("default"),t.$slots.button?e("div",{staticClass:"c-module-button-box"},[e("div",{staticClass:"c-module-button flex-center"},[t._t("button")],2)]):t._e()],2)},Hl=[],zl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-module-line",class:[t.direction,{"z-active":!!t.distance}],on:{mousedown:t.dragHandle}},[e("div",{staticClass:"fold-box flex"},[e("div",{staticClass:"fold flex"},[!1!==t.foldState.prev?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.foldState.next,expression:"!foldState.next"}],staticClass:"handle prev",class:{"z-fold":t.foldState.prev},on:{mousedown:function(t){t.stopPropagation()},click:function(e){return t.flodHandle("prev")}}}):t._e(),!1!==t.foldState.next?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.foldState.prev,expression:"!foldState.prev"}],staticClass:"handle next",class:{"z-fold":t.foldState.next},on:{mousedown:function(t){t.stopPropagation()},click:function(e){return t.flodHandle("next")}}}):t._e()])]),e("div",{staticClass:"drag",style:t.position})])},Ol=[],Rl={data(){return{direction:"",foldState:{prev:!1,next:!1},distance:0}},computed:{position(){return{["col"==this.direction?"top":"left"]:this.distance+"px"}}},watch:{distance(t){document.body.style.userSelect=t?"none":"initial"}},methods:{bindComp(t,e,n){this.$parent=t,this.$prev=e,this.$next=n,this.foldState.prev=!!e.mini&&0,this.foldState.next=!!n.mini&&0},dragHandle(t){var e="col"==this.direction?t.pageY:t.pageX,n=100-this.$prev.$children[0].size,i=this.$next.$children[0].size-100;let r=t=>{let r=parseInt(("col"==this.direction?t.pageY:t.pageX)-e);this.distance=r<n?n:r>i?i:r},o=t=>{this.$prev.$children[0].size+=this.distance,this.$prev.updateSize(),this.$next.$children[0].size-=this.distance,this.$next.updateSize(),this.distance=0,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)},flodHandle(t){let e="prev"==t?this.$prev:this.$next,n="prev"==t?this.$next:this.$prev;if(this.foldState[t])e.miniState=!1,n.currentSize=n._oldSize,this.$parent.resize();else{var i=e.$children[0].size;e.miniState=!0,n._oldSize=n.currentSize,n.$children[0].size+=i,n.updateSize()}this.foldState[t]=this.foldState[t]?0:1}}},Ul=Rl,Kl=d(Ul,zl,Ol,!1,null,null,null),Wl=Kl.exports,jl={name:"moduleContent",props:{height:[String,Number],enableFlex:Boolean},data(){return{root:"module"==this.$parent.$options.name,tabs:!1,direction:"",size:0}},computed:{flexRow(){return"row"==this.direction},flexColumn(){return"col"==this.direction||this.tabs},sizeStyle(){let t=this.$parent.$parent.flexRow?this.size+"px":"",e=this.$parent.$parent.flexColumn?this.size+"px":"";return{width:t,"min-width":t,height:this.height||e,"min-height":e,overflow:this.root||!this.direction?"":"hidden"}}},watch:{size(t,e){e&&this.resizeHandle()}},mounted(){this.direction&&this.$children.forEach((t,e)=>{if(e>0){let n=$n.a.extend(Wl),i=new n({store:this.$store,el:document.createElement("div"),data:()=>({direction:this.direction})});i.bindComp(this,this.$children[e-1],t),t.$el.parentNode.insertBefore(i.$el,t.$el)}}),this.root&&(this.resize(),this.direction&&(this.$parent.complex=!0,window.addEventListener("resize",this.resize)))},activated(){this.root&&this.direction&&this.$nextTick(()=>{window.addEventListener("resize",this.resize),this.resize()})},deactivated(){this.root&&window.removeEventListener("resize",this.resize)},beforeDestroy(){this.root&&window.removeEventListener("resize",this.resize)},methods:{totalSize(){return"col"==this.direction?this.$el.offsetHeight:this.$el.offsetWidth},resize(){if(!this.direction)return;let t=this.totalSize(),e=7*(this.$children.length-1),n=[],i=[];this.$children.forEach(t=>{if(!t.miniState)if(t.scaleSize)n.push(t);else if(t.fixedSize){let n=this.miniSize(parseInt(t.currentSize));t.$children[0].size=n,e+=n}else i.push(t)});let r=t-107*(this.$children.length-1);n.forEach((n,i)=>{let o=this.miniSize(Math.floor(t*parseInt(n.currentSize)/100),r);n.$children[0].size=o,e+=o}),t-=e,i.forEach((e,n)=>{if(n==i.length-1)e.$children[0].size=this.miniSize(t);else{let n=this.miniSize(Math.floor(t/i.length));e.$children[0].size=n,t-=n}}),this.$nextTick(()=>{this.$children.forEach(t=>{t.$children[0].resize()})})},miniSize(t,e){return e&&(t=t>e?e:t),t<100?100:t},resizeHandle(){this.$emit("resize",this.$el),this.direction&&this.$children.forEach(t=>t.$children[0].resizeHandle())}}},Vl=jl,ql=d(Vl,Nl,Hl,!1,null,null,null),Yl=ql.exports,Xl=function(){var t=this,e=t._self._c;return e("module-content",{directives:[{name:"show",rawName:"v-show",value:t.activatedState,expression:"activatedState"}],staticClass:"flex-grow",attrs:{enableFlex:t.enableFlex}},[t._t("default")],2)},Gl=[],Zl={name:"moduleTab",props:{name:String,enableFlex:Boolean},data(){return{mountedState:!1,activatedState:!1}},created(){let t=this.$parent;while(t){if("moduleContent"==t.$options.name)t.tabs=!0;else if("module"==t.$options.name){t.insertTab(this);break}t=t.$parent}},methods:{activated(){this.mountedState||(this.mountedState=!0,this.$emit("mounted")),this.activatedState=!0,this.$emit("activated")},deactivated(){this.activatedState=!1,this.$emit("deactivated")}}},Ql=Zl,Jl=d(Ql,Xl,Gl,!1,null,null,null),tc=Jl.exports,ec=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-grid-col",style:{width:t.compWidth}},[e("div",{style:{margin:`0 ${t.gap/2}px`}},[t._t("default")],2)])},nc=[],ic={name:"cGridCol",props:{colspan:{type:[String,Number],default:1}},data(){return{...Mn(this,"cGridStore")}},computed:{...Pn("cGridStore",["gap"]),compWidth(){return 100/this.$compsConfig.config.layout.col*this.colspan+"%"}}},rc=ic,oc=d(rc,ec,nc,!1,null,null,null),ac=oc.exports,sc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-grid"},[e("div",{style:{padding:`0 ${t.compMargin}px`,margin:`0 -${t.compGap/2}px`}},[t._t("default")],2)])},lc=[],cc={name:"cGridRow",props:{margin:{type:[Boolean,Number,String],default:0},gap:{type:[Boolean,Number,String],default:0}},data(){return{cGridStore:Ln({gap:"boolean"==typeof this.gap&&this.gap?this.$compsConfig.config.layout.gap:this.gap})}},computed:{...Pn("cGridStore",{compGap:t=>t.gap}),compMargin(){return"boolean"==typeof this.margin&&this.margin?this.$compsConfig.config.layout.margin:this.margin}}},uc=cc,dc=(n("a898"),d(uc,sc,lc,!1,null,"428825f2",null)),hc=dc.exports,pc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-flex-col",style:{"flex-grow":t.colspan,"margin-left":t.gap+"px"}},[t._t("default")],2)},fc=[],mc={name:"cFlexCol",props:{colspan:{type:[String,Number],default:1}},data(){return{...Mn(this,"cFlexStore")}},computed:{...Pn(["gap"])}},gc=mc,vc=d(gc,pc,fc,!1,null,null,null),bc=vc.exports,_c=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-flex flex-start",style:{padding:`0 ${t.compMargin}px`}},[t._t("default")],2)},yc=[],wc={name:"cFlexRow",props:{margin:{type:[Boolean,Number,String],default:0},gap:{type:[Boolean,Number,String],default:0}},data(){return{cFlexStore:Ln({gap:"boolean"==typeof this.gap&&this.gap?this.$compsConfig.config.layout.gap:this.gap})}},computed:{compMargin(){return"boolean"==typeof this.margin&&this.margin?this.$compsConfig.config.layout.margin:this.margin}}},xc=wc,kc=(n("5378"),d(xc,_c,yc,!1,null,"526151a6",null)),Sc=kc.exports,Dc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-title"},[e("p",{attrs:{border:!t.icon}},[t.icon?e("i",{staticClass:"icon",class:t.icon}):t._e(),t._t("default")],2)])},Cc=[],Ec={name:"cTitle",props:{icon:String}},Ac=Ec,Tc=(n("9a3c"),d(Ac,Dc,Cc,!1,null,"1cb4f1f7",null)),Bc=Tc.exports,Fc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-tab-list"},[e("ul",{staticClass:"flex",attrs:{type:t.type}},t._l(t.tabs,(function(n,i){return e("li",{key:i,staticClass:"flex-center",class:{"z-crt":t.currentIndex==i},on:{click:function(e){return t.clickHandle(n,i)}}},[t._t("prepend",null,{data:n}),e("span",[t._v(t._s(t.$t(n.name)))]),t._t("append",null,{data:n})],2)})),0)])},$c=[],Lc={name:"cTabList",props:{tabs:Array,type:{type:String,default:"tab"},immediate:{type:Boolean,default:!0}},data(){return{currentIndex:-1}},watch:{tabs(t,e){this.immediate&&!e.length&&this.clickHandle(this.tabs[0],0)}},mounted(){this.immediate&&this.tabs.length&&this.clickHandle(this.tabs[0],0)},methods:{changeIndex(t=0){t<this.tabs.length&&this.clickHandle(this.tabs[t],t,!0)},changeValue(t){let e=this.tabs.findIndex(e=>e.value==t);-1!=e&&this.clickHandle(this.tabs[e],e,!0)},clickHandle(t,e,n){if(this.currentIndex==e&&!n)return;let i=!1,r=()=>{this.currentIndex=e};this.$emit("change",t,()=>{i=!0},r),!i&&r()}}},Mc=Lc,Pc=(n("22e0"),d(Mc,Fc,$c,!1,null,null,null)),Ic=Pc.exports,Nc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-pagination flex-between-center"},[e("div",{staticClass:"page-size flex-center"},[e("span",{},[t._v(t._s(t.$t("_t.pagination.total",[t.total])))]),e("c-select",{attrs:{options:t.pageSizeOptions,clear:!1},model:{value:t.currentSize,callback:function(e){t.currentSize=e},expression:"currentSize"}})],1),t.paging?e("div",{staticClass:"page-paging flex-center"},[e("div",{staticClass:"item",class:{"z-dis":1==t.pageIndex},on:{click:function(e){return t.update(t.pageIndex-1)}}},[t._v(t._s(t.$t("_t.pagination.prev")))]),t._l(t.pagination,(function(n,i){return e("div",{key:i,staticClass:"flex-center"},["."==n?e("span",{staticClass:"item ellipsis"},[t._v("...")]):e("div",{staticClass:"item",class:{"z-crt":t.pageIndex==n},on:{click:function(e){return t.update(n)}}},[t._v(t._s(n))])])})),e("div",{staticClass:"item",class:{"z-dis":t.pageIndex==t.pageCount},on:{click:function(e){return t.update(t.pageIndex+1)}}},[t._v(t._s(t.$t("_t.pagination.next")))])],2):e("div",{staticClass:"page-skip flex-center"},[e("c-link",{staticClass:"c-icon-page-top",class:{"z-dis":t.pageIndex<=1},attrs:{color:"black"},on:{click:function(e){return t.update(1)}}}),e("c-link",{staticClass:"c-icon-tri-left",class:{"z-dis":t.pageIndex<=1},attrs:{color:"black"},on:{click:function(e){return t.update(t.pageIndex-1)}}}),e("span",[t._v(t._s(t.$t("_t.pagination.pageBefore")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.pageIndex,expression:"pageIndex"}],attrs:{type:"text"},domProps:{value:t.pageIndex},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update(t.pageIndex)},input:function(e){e.target.composing||(t.pageIndex=e.target.value)}}}),e("span",[t._v(t._s(t.$t("_t.pagination.pageAfter",[t.pageCount])))]),e("c-link",{staticClass:"c-icon-tri-right",class:{"z-dis":t.pageIndex>=t.pageCount},attrs:{color:"black"},on:{click:function(e){return t.update(t.pageIndex+1)}}}),e("c-link",{staticClass:"c-icon-page-bottom",class:{"z-dis":t.pageIndex>=t.pageCount},attrs:{color:"black"},on:{click:function(e){return t.update(t.pageCount)}}}),e("c-refresh",{attrs:{color:"black"},on:{click:function(e){return t.update(t.pageIndex)}}})],1)])},Hc=[],zc={name:"cPagination",props:{value:{type:[String,Number],default:1},total:{type:[String,Number],default:0},pageSize:[String,Number],paging:Boolean},data(){return{pageIndex:this.value,currentSize:this.pageSize||20,pageSizeOptions:[]}},computed:{pageCount(){return Math.ceil(parseInt(this.total)/this.currentSize)||1},pagination(){let t=parseInt(this.pageIndex)-1,e=[];t=t<3?3:t>this.pageCount-5?this.pageCount-5:t;for(let n=1;n<=this.pageCount&&e.length<9;n++)this.pageCount<9||1==n||n==this.pageCount||n>=t&&n<=t+3&&n<this.pageCount-1?e.push(n):2==n?e.push(t<=3?n:"."):n==this.pageCount-1&&e.push(t>=this.pageCount-5?n:".");return e}},watch:{"$i18n.locale"(t){this.updatePageSize()},value(t){this.pageIndex=t},currentSize(){this.update(1)}},mounted(){this.updatePageSize()},methods:{get(){return{pageIndex:this.pageIndex,pageSize:this.currentSize}},updatePageSize(){this.pageSizeOptions=[10,20,50,100].map(t=>({name:this.$t("_t.pagination.pageSize",[t]),value:t}))},update(t,e){"object"==typeof t&&(e=t,t=void 0),t=parseInt(t||this.pageIndex)||1,t=t<1?1:t>this.pageCount?this.pageCount:t,this.pageIndex=t,this.$emit("input",t),this.$emit("handle",Object.assign({pageIndex:this.pageIndex,pageSize:this.currentSize},e))}}},Oc=zc,Rc=(n("151e"),d(Oc,Nc,Hc,!1,null,"de66586e",null)),Uc=Rc.exports,Kc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-empty flex-column flex-center",style:{height:t.parsePixel(t.height,!0)}},[e("div",{staticClass:"c-empty-icon flex-center"},[e("img",{attrs:{src:t.config.icon}})]),e("div",{staticClass:"c-empty-message"},[t._v(t._s(t.$t(t.config.message)))])])},Wc=[],jc={name:"cEmpty",props:{type:{type:String,default:"normal"},height:{type:String,default:"100%"},icon:String,message:String},computed:{config(){let t=Object.assign({},this.$compsConfig.empty[this.type]);return this.icon&&(t.icon=this.icon),this.message&&(t.message=this.message),t}}},Vc=jc,qc=(n("bd2f"),d(Vc,Kc,Wc,!1,null,"55b334a4",null)),Yc=qc.exports,Xc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-dropdown",on:{click:t.clickHandle}},[t._t("default"),e("menu-list",{directives:[{name:"show",rawName:"v-show",value:t.showState,expression:"showState"}],ref:"menu",staticClass:"c-dropdown-menu",style:{left:t.position.x+"px",top:t.position.y+"px"},attrs:{menu:t.menu},on:{handle:t.menuHandle},scopedSlots:t._u([{key:"prepend",fn:function({menu:e}){return[e?t._t("prepend",null,{menu:e}):t._e()]}}],null,!0)})],2)},Gc=[],Zc=function(){var t=this,e=t._self._c;return e("menu-list",{ref:"menu",attrs:{menu:t.menu}},[t._t("prepend")],2)},Qc=[];const Jc={render(t){return t("div",{class:"c-menu-list",style:`height: ${this.parsePixel(this.menuHeight,!0)}; margin-left: ${this.left}px; margin-top: ${this.top}px;`,on:{click:t=>t.stopPropagation()}},[t("c-scroll",{attrs:{"keep-show":!0}},[this.menu.map(e=>Array.isArray(e)?[t("div",{class:"group"},[e.map(e=>[t("menu-item",{attrs:{data:e}})])])]:[t("menu-item",{attrs:{data:e}})])])])},name:"cMenuList",props:{menu:Array},data(){return{...Mn(this.$parent),top:0,left:0,menuHeight:"auto"}},mounted(){this.$el.addEventListener("wheel",t=>{t.stopPropagation(),t.preventDefault()})},methods:{position(t){let e=this.$el.getBoundingClientRect();this.leftSide=e.left+e.width>window.innerWidth-5,this.store.contextmenu?this.menuHeight=Math.min(e.height,window.innerHeight-10):this.menuHeight=Math.min(e.height,window.innerHeight-5-e.top),t&&e.left+e.width>window.innerWidth-5?this.left=-e.width-t:this.left=0,e.top+this.menuHeight-this.top>window.innerHeight-5?this.top=window.innerHeight-e.top-this.menuHeight+this.top-5:this.top=0}}},tu={render(t){return t("div",{class:"item",on:{mouseleave:()=>this.submenuHandle(!0)}},[t("div",{class:"menu flex-center",on:{click:()=>this.clickHandle(),mouseenter:()=>this.submenuHandle()}},[this.store.slot.prepend?[t("div",[this.store.slot.prepend({menu:this.data})])]:[],t("span",{class:"flex-grow-auto"},[this.$t(this.data.name)]),this.data.submenu?[t("i",{class:"menu-angle c-icon-tri-right"})]:[]]),this.data.submenu?[t("menu-list",{ref:"sub",attrs:{menu:this.data.submenu},style:`left: ${this.position.left}px; top: ${this.position.top}px;`})]:[]])},name:"cMenuItem",components:{menuList:Jc},props:{data:Object},data(){return{...Mn(this.$parent),position:{left:0,top:0}}},methods:{clickHandle(){this.data.submenu||this.store.handle(this.data)},submenuHandle(t){if(this.$refs.sub&&(this.$refs.sub.menuHeight="auto",this.$refs.sub.left=this.$refs.sub.top=0,!t)){let t=this.$el.getBoundingClientRect();this.position={left:t.left+t.width,top:t.top-13},this.$nextTick(()=>{this.$refs.sub.position(t.width)})}}}};Jc.components={menuItem:tu};var eu={components:{menuList:Jc},props:{menu:Array,contextmenu:Boolean},data(){return{store:Ln({slot:{},handle:null,contextmenu:this.contextmenu})}},mounted(){this.store.commit("slot",this.$scopedSlots),this.store.commit("handle",t=>{this.$emit("handle",t)})},methods:{position(){this.$refs.menu.menuHeight="auto",this.$nextTick(()=>{this.$refs.menu.position()})}}},nu=eu,iu=(n("38ac"),d(nu,Zc,Qc,!1,null,null,null)),ru=iu.exports,ou={name:"cDropdown",components:{menuList:ru},props:{menu:Array},data(){return{showState:!1,position:{x:0,y:0}}},watch:{showState(t){this.$emit(t?"show":"hide")}},mounted(){this._hide=()=>{this.showState=!1},window.addEventListener("click",this._hide,!0),window.addEventListener("contextmenu",this._hide,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this._hide)}),document.body.appendChild(this.$refs.menu.$el)},beforeDestroy(){window.removeEventListener("click",this._hide,!0),window.removeEventListener("contextmenu",this._hide,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this._hide)}),document.body.removeChild(this.$refs.menu.$el)},methods:{clickHandle(){this.showState=!0;let t=this.$el.getBoundingClientRect();this.position={x:t.left,y:t.top+this.$el.offsetHeight-1},this.$nextTick(()=>{this.$refs.menu.position()})},menuHandle(t){this.$emit("handle",t),this.showState=!1}}},au=ou,su=(n("1a7b"),d(au,Xc,Gc,!1,null,"7a48485e",null)),lu=su.exports,cu=function(){var t=this,e=t._self._c;return e("div",{on:{contextmenu:function(e){return e.stopPropagation(),e.preventDefault(),t.rightHandle.apply(null,arguments)}}},[t._t("default"),e("menu-list",{directives:[{name:"show",rawName:"v-show",value:t.showState,expression:"showState"}],ref:"menu",staticClass:"c-right-menu",style:{left:t.position.x+"px",top:t.position.y+"px"},attrs:{menu:t.menu,contextmenu:""},on:{handle:t.menuHandle},scopedSlots:t._u([{key:"prepend",fn:function({menu:e}){return[e?t._t("prepend",null,{menu:e}):t._e()]}}],null,!0)})],2)},uu=[],du={name:"cRightMenu",components:{menuList:ru},props:{disabled:Boolean,menu:Array},data(){return{showState:!1,position:{x:0,y:0}}},watch:{showState(t){this.$emit(t?"show":"hide")}},mounted(){this._hide=()=>{this.showState=!1},window.addEventListener("click",this._hide,!0),window.addEventListener("contextmenu",this._hide,!0),Bn(this.$refs.menu.$el,t=>{t.addEventListener("scroll",this._hide)}),document.body.appendChild(this.$refs.menu.$el)},beforeDestroy(){window.removeEventListener("click",this._hide,!0),window.removeEventListener("contextmenu",this._hide,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this._hide)}),document.body.removeChild(this.$refs.menu.$el)},methods:{rightHandle(t){this.disabled||(this.showState=!0,this.position={x:t.clientX,y:t.clientY},this.$nextTick(()=>{let t=this.$refs.menu.$el.getBoundingClientRect();t.width+this.position.x>window.innerWidth-5&&(this.position.x=window.innerWidth-5-t.width),this.$refs.menu.position()}))},menuHandle(t){this.$emit("handle",t),this.showState=!1}}},hu=du,pu=(n("92c7"),d(hu,cu,uu,!1,null,"81219ccc",null)),fu=pu.exports,mu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-steps"},[e("ul",{staticClass:"flex-center-start"},t._l(t.steps,(function(n,i){return e("li",{key:i,staticClass:"flex-column flex-start-center",class:{"z-now":i==t.active-1},style:{"margin-left":i>0?t.parsePixel(t.gap,!0):0}},[e("div",{staticClass:"c-steps-dot flex-center"},[i<t.active-1?e("i",{staticClass:"c-icon-check"}):e("span",[t._v(t._s(i+1))])]),e("div",{staticClass:"c-steps-text",style:{width:t.parsePixel(t.gap,!0)}},[e("p",[t._v(t._s(t.$t(n.name)))]),n.message?e("span",[t._v(t._s(t.$t(n.message)))]):t._e()]),i>0?e("div",{staticClass:"c-steps-line",style:{width:t.parsePixel(t.gap,!0)}}):t._e()])})),0)])},gu=[],vu={name:"cSteps",props:{steps:Array,active:{type:[Number,String],default:1},gap:{type:[Number,String],default:100}}},bu=vu,_u=(n("e731"),d(bu,mu,gu,!1,null,"05381849",null)),yu=_u.exports,wu=function(){var t=this,e=t._self._c;return e("c-link",{staticClass:"c-icon-refresh",class:{"c-icon-an-spin":t.active},attrs:{color:t.color},on:{click:t.clickHandle}})},xu=[],ku={name:"cRefresh",props:{color:{type:[String,Boolean],default:"black"}},data(){return{active:!1}},methods:{clickHandle(){this.active||(this.active=!0,this.$emit("click"),setTimeout(()=>{this.active=!1},1e3))}}},Su=ku,Du=d(Su,wu,xu,!1,null,null,null),Cu=Du.exports,Eu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-tooltip"},[e("div",{ref:"handle",staticClass:"c-tooltip-handle",on:{mouseenter:function(e){return t.show()},mouseleave:function(e){t.active=!1}}},[t.$slots.default?t._t("default"):e("i",{staticClass:"c-icon-tip"})],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],ref:"tip",staticClass:"c-tooltip-content",style:t.positionStyle,attrs:{position:t.position},on:{mouseenter:function(e){return t.show()},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-tooltip-tip",style:{width:t.parsePixel(this.width,!0)},attrs:{color:t.color}},[e("ins",{style:t.angleStyle,attrs:{position:t.position,align:t.align}}),t.$scopedSlots.tip?e("div",{style:{"max-width":t.parsePixel(this.width,!0)}},[t._t("tip")],2):e("p",{style:{"max-width":t.parsePixel(this.width,!0)}},[t._v(t._s(t.tip))])])])])},Au=[],Tu={name:"cTooltip",props:{tip:String,width:[Number,String],position:{type:String,default:"bottom"},align:{type:String,default:"start"},color:{type:String,default(){return this.$compsConfig.config.tooltip.color}}},data(){return{active:!1,positionStyle:{},angleStyle:{}}},mounted(){document.body.appendChild(this.$refs.tip)},beforeDestroy(){document.body.removeChild(this.$refs.tip)},methods:{show(t=this.position,e=this.align){this.active=!0;let n=this.$refs.handle;n=n.$options?n.$el:n,this._updatePosition=()=>{let i=n.getBoundingClientRect(),r=this.$refs.tip.getBoundingClientRect(),o=0;["top","bottom"].includes(t)?this.angleStyle={["start"==e?"left":"right"]:Math.min(Math.max((i.width-10)/2,0),10)+"px"}:i.height<30&&r.height<=30?(o=(30-i.height)/2*("start"==e?-1:1),this.angleStyle={top:"10px"}):r.height<i.height?(o=(r.height-i.height)/2*("start"==e?-1:1),this.angleStyle={top:(r.height-10)/2+"px"}):this.angleStyle={["start"==e?"top":"bottom"]:Math.min(Math.max((i.height-10)/2,0),10)+"px"},this.positionStyle={left:i.left+({left:-r.width,right:i.width}[t]||0)+(["top","bottom"].includes(t)&&"start"!=e?i.width-r.width:0)+"px",top:i.top+({top:-r.height,bottom:i.height}[t]||0)+(["left","right"].includes(t)&&"start"!=e?i.height-r.height:0)+o+"px"}},this._removeEvent=()=>{Bn(n,t=>{t.removeEventListener("scroll",this._updatePosition)})},Bn(n,t=>{t.addEventListener("scroll",this._updatePosition)}),this.$nextTick(this._updatePosition)}}},Bu=Tu,Fu=(n("d857"),d(Bu,Eu,Au,!1,null,"9ad5ebd8",null)),$u=Fu.exports,Lu=function(){var t=this,e=t._self._c;return e("vue-scroll",{ref:"scroll",staticClass:"c-scroll",attrs:{ops:t.opt}},[e("div",[t._t("default")],2)])},Mu=[];const Pu=function(t,e,n){const i=[t.scrollLeft,t.scrollTop],r=[e[0]-i[0],e[1]-i[1]],o=performance.now();function a(e){const s=e-o,l=Math.min(s/n,1),c=.5*(1-Math.cos(Math.PI*l));t.scrollTo(i[0]+r[0]*c,i[1]+r[1]*c),s<n&&requestAnimationFrame(a)}requestAnimationFrame(a)};var Iu={name:"cScroll",props:{barColor:{type:String,default:"rgba(0,0,0,.2)"},keepShow:Boolean},data(){return{opt:{bar:{keepShow:this.keepShow,onlyShowBarOnScroll:!1,background:this.barColor,opacity:1}}}},mounted(){this._scroller=this.$refs.scroll.$el.children[0],this._events.scroll&&this._scroller.addEventListener("scroll",()=>{this.$emit("scroll",{x:this._scroller.scrollLeft,y:this._scroller.scrollTop})})},methods:{scrollTo(t=0,e=0,n=500){Pu(this._scroller,[t,e],n)}}},Nu=Iu,Hu=(n("4eeb"),d(Nu,Lu,Mu,!1,null,"2d00f4fc",null)),zu=Hu.exports,Ou=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-progress",style:{width:"line"==t.type?t.parsePixel(t.size,!0):"auto"}},["line"==t.type?e("div",{staticClass:"flex-center"},[e("div",{staticClass:"c-progress-line flex-grow",style:{height:t.parsePixel(t.lineSize,!0),"border-radius":t.parsePixel(t.lineSize/2,!0),background:t.background}},[e("div",{style:{width:t.linePercent+"%","border-radius":t.parsePixel(t.lineSize/2,!0),background:t.compColor}})]),e("div",{staticClass:"c-progress-line-text",style:{"min-width":t.textWidth+"em","font-size":t.parsePixel(t.fontSize,!0)}},[t.$scopedSlots.text?t._t("text",null,{rate:t.percent}):e("span",[t._v(t._s(t.percent.toFixed(t.decimal))+"%")])],2)]):t._e(),"circle"==t.type?e("div",{staticClass:"c-progress-circle",style:{width:t.parsePixel(t.size,!0),height:t.parsePixel(t.size,!0)}},[e("svg",{attrs:{viewBox:"0 0 100 100"}},[e("path",{staticStyle:{"stroke-dasharray":"1, 0","stroke-dashoffset":"0px"},attrs:{d:`\n\t\t\t\t\tM 50 ${t.strokeWidth/2}\n\t\t\t\t\ta ${50-t.strokeWidth} ${50-t.strokeWidth} 0 1 1 0 ${100-t.strokeWidth}\n\t\t\t\t\ta ${50-t.strokeWidth} ${50-t.strokeWidth} 0 1 1 0 -${100-t.strokeWidth}\n\t\t\t\t`,stroke:t.background,"stroke-width":t.strokeWidth,fill:"none"}}),e("path",{staticStyle:{transition:"stroke-dasharray .6s ease, stroke .6s ease"},style:{"stroke-dasharray":`${t.girth*t.linePercent/100}px, ${t.girth*(100-t.linePercent)/100}px`},attrs:{d:`\n\t\t\t\t\tM 50 ${t.strokeWidth/2}\n\t\t\t\t\ta ${50-t.strokeWidth} ${50-t.strokeWidth} 0 1 1 0 ${100-t.strokeWidth}\n\t\t\t\t\ta ${50-t.strokeWidth} ${50-t.strokeWidth} 0 1 1 0 -${100-t.strokeWidth}\n\t\t\t\t`,stroke:t.compColor,"stroke-linecap":"round","stroke-width":t.strokeWidth,fill:"none"}})]),e("div",{staticClass:"c-progress-circle-text",style:{"font-size":t.parsePixel(t.fontSize,!0)}},[t.$scopedSlots.text?t._t("text",null,{rate:t.percent}):e("span",[t._v(t._s(t.percent.toFixed(t.decimal))+"%")])],2)]):t._e()])},Ru=[],Uu={name:"cProgress",props:{type:{type:String,default:"line"},color:{type:String,default:"main"},background:{type:String,default:"#E5E5E5"},size:{type:[String,Number],default(){return"line"==this.type?"100%":100}},lineSize:{type:[String,Number],default:6},fontSize:{type:[String,Number],default:14},rate:{type:[String,Number,Array],default:0},decimal:{type:[Number,String],default:0},limit:Boolean},computed:{percent(){let t="Object"==typeof this.rate?this.rate:this.rate.toString().split(",");return 1==t.length?Math.min(this.limit?100:1/0,Math.max(0,parseFloat(t[0]))):parseFloat(t[0])>=parseFloat(t[1])?this.limit||0==t[1]?100:parseFloat(t[0])/parseFloat(t[1])*100:Math.min(99+(Math.pow(10,this.decimal)-1)/Math.pow(10,this.decimal),Math.max(0,parseFloat(t[0])/parseFloat(t[1])*100))},linePercent(){return Math.min(100,this.percent)},girth(){return 3.1415926*(50-this.strokeWidth/2)*2},strokeWidth(){return 100/parseInt(this.size)*parseInt(this.lineSize)},compColor(){let t=this.$compsConfig.color[this.color],e=t?t[0]:this.$compsConfig.theme[this.color]||this.color;return e},textWidth(){let t=parseInt(this.decimal)||0;return((t?t+1:0)+5)/2}}},Ku=Uu,Wu=(n("8df1"),d(Ku,Ou,Ru,!1,null,"0d4cb6d6",null)),ju=Wu.exports,Vu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-qrcode",style:{width:t.size+"px",height:t.size+"px",padding:t.margin+"px"}},[e("img",{attrs:{src:t.code,alt:""}})])},qu=[],Yu={name:"cQrcode",props:{value:[String,Number],size:{type:[String,Number],default:300},margin:{type:[String,Number],default:0}},data(){return{code:""}},computed:{config(){return{value:this.value,size:this.size}}},watch:{config(){this.update()}},mounted(){this.update()},methods:{update(){this.value?Hh.a.toDataURL(this.value,{width:parseInt(this.size)-2*parseInt(this.margin),height:parseInt(this.size)-2*parseInt(this.margin),margin:0}).then(t=>{this.code=t}):this.code=""}}},Xu=Yu,Gu=(n("6864"),d(Xu,Vu,qu,!1,null,"49171b31",null)),Zu=Gu.exports,Qu=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{position:"relative"}},[t._t("prepend"),t._l(t.dataList,(function(e,n){return[t._t("default",null,{item:e.item,id:e.key,index:n})]})),t._t("append")],2)},Ju=[],td={name:"cDrawSort",props:{value:[Array],disabled:Boolean},data(){return{dataList:[],translate:{x:0,y:0}}},watch:{value(){this.update()},disabled(t){this.$children.forEach(e=>e.disabled=t)}},mounted(){this.update()},methods:{update(){this.dataList=Array.from(this.value,(t,e)=>({key:e,item:t}))},sortHandle(t,e){var n=this.dataList.splice(t,1)[0];this.dataList.splice(e,0,n)},sortEnd(){this.$emit("input",Array.from(this.dataList,t=>t.item))}}},ed=td,nd=d(ed,Qu,Ju,!1,null,null,null),id=nd.exports,rd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"draw-item",class:{"z-dis":t.disabled||t.handleState},on:{mousedown:e=>t.handleState?"":t.moveStart(e)}},[e("div",{ref:"content",staticClass:"content",class:{"z-move":t.moveState},style:{left:t.moveSeat.x+"px",top:t.moveSeat.y+"px"}},[t._t("default"),t.handleState?e("div",{ref:"handle",staticClass:"handle",style:t.handleStyle,on:{mousedown:function(e){return e.stopPropagation(),t.moveStart.apply(null,arguments)}}},[t._t("handle")],2):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.moveState,expression:"moveState"}],staticClass:"shade"})],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.moveState,expression:"moveState"}],staticClass:"place",style:t.placeStyle})])},od=[];function ad(t,e){return t.currentStyle?t.currentStyle[e]:getComputedStyle(t,!1)[e]}var sd={name:"cDrawItem",props:{index:Number,handleStyle:Object},data(){return{moveState:!1,boxSeat:{x:0,y:0},moveSeat:{x:0,y:0},clientSeat:{x:0,y:0},placeStyle:{},handleSize:{},disabled:this.$parent.disabled}},computed:{handleState(){return this.$slots.handle}},methods:{moveStart(t){this.disabled||(["margin-top","margin-bottom","margin-left","margin-right"].forEach(t=>{this.$set(this.placeStyle,t,ad(this.$refs.content.children[0],t))}),this.$set(this.placeStyle,"width",parseInt(ad(this.$refs.content,"width"))-parseInt(this.placeStyle["margin-left"])-parseInt(this.placeStyle["margin-right"])+"px"),this.$set(this.placeStyle,"height",ad(this.$refs.content,"height")),["width","height"].forEach(t=>{this.$set(this.handleSize,t,ad(this.handleState?this.$refs.handle:this.$refs.content.children[0],t))}),this.handleState&&(this.$set(this.handleSize,"offsetLeft",this.$refs.handle.offsetLeft),this.$set(this.handleSize,"offsetTop",this.$refs.handle.offsetTop)),this.moveState=!0,this.boxSeat={x:this.$parent.$el.getBoundingClientRect().x,y:this.$parent.$el.getBoundingClientRect().y},this.updateMoveSeat(t),document.addEventListener("mousemove",this.move),document.addEventListener("mouseup",this.moveEnd))},move(t){this.updateMoveSeat(t),this.updateSort()},moveEnd(){this.moveState=!1,this.moveSeat.x=0,this.moveSeat.y=0,document.removeEventListener("mousemove",this.move),document.removeEventListener("mouseup",this.moveEnd),this.$parent.sortEnd()},updateMoveSeat(t){this.clientSeat.x=t.clientX-this.boxSeat.x,this.clientSeat.y=t.clientY-this.boxSeat.y,this.moveSeat.x=this.clientSeat.x-parseInt(this.placeStyle["margin-left"])-parseInt(this.handleSize["width"])/2-(this.handleSize.offsetLeft||0),this.moveSeat.y=this.clientSeat.y-parseInt(this.placeStyle["margin-top"])-parseInt(this.handleSize["height"])/2-(this.handleSize.offsetTop||0)},updateSort:Af((function(){var t=this.$parent.$children;for(let e=0;e<t.length;e++){let n=t[e];if(this.index!=n.index){let t=n.$el.getBoundingClientRect(),e=t.left-this.boxSeat.x+this.$parent.translate.x,i=e+t.width,r=t.top-this.boxSeat.y+this.$parent.translate.y,o=r+t.height;if(this.clientSeat.x>=e&&this.clientSeat.x<=i&&this.clientSeat.y>=r&&this.clientSeat.y<=o){this.$parent.sortHandle(this.index,n.index);break}}}}),100,!1)}},ld=sd,cd=(n("6175"),d(ld,rd,od,!1,null,"24bd5f40",null)),ud=cd.exports,dd=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.data,expression:"data"}],staticClass:"c-tree"},[e("ul",t._l(t.nodeData,(function(n,i){return e("li",{key:n.id,class:{leaf:t.onlyLeaf}},[e("node-item",{attrs:{"node-data":n}})],1)})),0)])},hd=[];const pd={render(t){return t("div",{class:"node-box"},[t("div",{class:"node flex-center-cross"},[this.node.leaf?[]:[t("span",{class:"node-switch flex-center",on:{click:()=>this.expandHandle()}},[this.loadingState?[t("i",{class:"c-icon-loading"})]:this.expandState?[t("i",{class:"c-icon-fold"})]:[t("i",{class:"c-icon-expand"})]])],this.checkOpt?[t("c-checkbox",{class:"node-check",attrs:{value:!!this.node.checked,half:2==this.node.checked,size:"16"},on:{change:t=>this.checkHandle(t?1:0)}})]:[],t("a",{class:"flex-center "+(this.currentNodeId.includes(this.node.id)?"z-crt":""),attrs:{title:""+this.$t(this.node.name)},on:{click:()=>this.clickHandle()}},[this.store.slot.icon?[t("div",{class:"node-icon"},[this.store.slot.icon({node:this.node})])]:[t("div",{class:"node-icon"},[t("i",{class:"folder c-icon-folder"})])],t("span",{class:"ellipsis"},[this.$t(this.node.name)])])]),this.node.children&&this.node.children.length?[t("ul",{style:"display: "+(this.expandState?"":"none")},[this.node.children.map(e=>[t("li",[t("node-item",{attrs:{"node-data":e,"parent-node":this.node},on:{check:()=>this.childrenCheckHandle(e)}})])])])]:[]])},props:{nodeData:Object,parentNode:Object},data(){return{node:{},store:this.$parent.store,loadingState:!1,expandState:!1}},computed:{...Pn(["root","selectOpt","checkOpt","currentNodeId","currentNode"])},watch:{nodeData(){this.setNode()}},created(){this.setNode()},methods:{setNode(){this.node=Object.assign(this.nodeData,{parent:this.parentNode,expand:this.expandHandle,check:(t=1)=>{this.checkHandle(t)},select:()=>{this.selectOpt&&(this.store.commit("currentNodeId",[this.node.id]),this.store.commit("currentNode",[this.node]),this.root.$emit("select",this.node),this.selectOpt.expand&&this.node.expand())},unselect:()=>{if(!this.selectOpt.unselect)return;let t=this.currentNodeId.findIndex(t=>t==this.node.id);this.currentNodeId.splice(t,1),this.currentNode.splice(t,1)}})},expandHandle(t){this.expandState?this.expandState=!1:this.node.leaf||(this.node.children?(this.expandState=!0,t&&this.$nextTick(t)):(this.loadingState=!0,this.root.$emit("load",this.node,e=>{e&&e.length?(this.node.checked&&e.forEach(t=>{t.checked=1}),this.node.children=e):this.node.leaf=!0,this.loadingState=!1,this.expandState=!0,t&&this.$nextTick(t)})))},clickHandle(){this.currentNodeId.includes(this.node.id)?this.node.unselect():this.node.select(),this.checkOpt.clickCheck&&this.checkHandle(this.node.checked?0:1),this.root.$emit("click",this.node)},checkHandle(t,e){this.$set(this.node,"checked",t),e||this.root.$emit("check",this.node),this.checkOpt.linked&&("child"!=this.checkOpt.linked&&this.$emit("check",this.node),"parent"!=this.checkOpt.linked&&this.node.children&&!e&&this.node.children.forEach(e=>{e.check(t?1:0)}))},childrenCheckHandle(t){let e=this.node.children.filter(t=>t.checked),n=e.filter(t=>1==t.checked);this.checkHandle(e.length?n.length!=this.node.children.length?2:1:0,t)}}};pd.components={nodeItem:pd};var fd={name:"cTree",components:{nodeItem:pd},props:{data:Array,simple:Boolean,select:{type:[Boolean,Object],default:!0},check:[Boolean,Object]},data(){return{store:Ln({root:"",currentNodeId:[],currentNode:[],slot:{}}),nodeData:[]}},watch:{data(t){t&&this.initData(),this.store.commit("currentNodeId",[]),this.store.commit("currentNode",[])}},computed:{...Pn(["currentNode"]),onlyLeaf(){return!this.nodeData.find(t=>!t.leaf)}},mounted(){this.store.commit("root",this),this.store.commit("slot",this.$scopedSlots),this.store.commit("selectOpt",!!this.select&&Object.assign({unselect:!0},"object"==typeof this.select?this.select:{})),this.store.commit("checkOpt",!!this.check&&Object.assign({linked:"both",clickCheck:!1},"object"==typeof this.check?this.check:{})),this.data&&this.initData()},methods:{insertRoot(t){(Array.isArray(t)?t:[t]).forEach(t=>{this.nodeData.push(t)})},initData(){this.simple?this.initSimpleData():this.initComplexData()},initSimpleData(){let t=[],e={};this.data.forEach(n=>{e[n.id]=Object.assign({id:n.id,pId:n.pId,name:n.name,leaf:n.leaf,checked:n.checked,data:n.data},e[n.id]||{}),n.pId?(e[n.pId]||(e[n.pId]={}),e[n.pId].children||(e[n.pId].children=[]),e[n.pId].children.push(e[n.id])):t.push(e[n.id])}),this.nodeData=t},initComplexData(){let t=[];(function t(e,n=[]){return e&&e.forEach(e=>{n.push({id:e.id,pId:e.pId,name:e.name,leaf:e.leaf,checked:e.checked,children:t.call(this,e.children),data:e.data})}),n.length?n:void 0}).call(this,this.data,t),this.nodeData=t},getNode(t="root"){switch(t){case"root":return this.nodeData;case"selected":return this.currentNode;case"checked":return this.getNode(t=>t.checked);default:if("function"==typeof t){let e=[];return this.eachNode(n=>{t(n)&&e.push(n)}),e}}},eachNode(t){(function e(n){n&&n.forEach((n,i)=>{t(n),e.call(this,n.children)})}).call(this,this.nodeData)},expandAll(t=1/0){this.$nextTick(()=>{(function e(n){t>=0&&n&&n.forEach((n,i)=>{!i&&t--,n.expand(()=>{e.call(this,n.children)})})}).call(this,this.getNode())})},unselect(){this.getNode("selected").forEach(t=>{t.unselect()})}}},md=fd,gd=(n("399a"),d(md,dd,hd,!1,null,"7f9fb4d2",null)),vd=gd.exports,bd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-editor flex-column",style:{height:t.parsePixel(t.height,!0)}},[e("div",{staticClass:"c-editor-toolbar flex-center-cross flex-wrap"},[t._l(t.toolbar,(function(n,i){return[t._l(n,(function(n,r){return[t.toolExend[n]?t._l(t.toolExend[n],(function(n,o){return e("div",{key:`${i}-${r}-${o}`,staticClass:"flex-center"},[e("div",{staticClass:"c-editor-handle flex-center",on:{click:function(e){return t.handle(n)}}},[e("i",{staticClass:"c-icon"},[t._v(t._s(t.toolIcon[n]))])])])})):e("div",{key:`${i}-${r}`,staticClass:"flex-center"},[e("div",{staticClass:"c-editor-handle flex-center",on:{click:function(e){return t.handle(n)}}},[e("i",{staticClass:"c-icon"},[t._v(t._s(t.toolIcon[n]))])])])]})),e("div",{key:i+"-hr",staticClass:"c-editor-hr"})]}))],2),e("iframe",{ref:"iframe",staticClass:"flex-grow"})])},_d=[],yd={name:"cEditorDev",props:{value:String,name:String,height:{type:[String,Number],default:300}},data(){return{toolbar:[["undo","redo"],["text","fontSize","bold","italic","underline","throughline","fontColor","backColor"],["align","indent","lineHeight","ul","ol"],["link","quote","code","image","video","file","table","hr"]],toolExend:{align:["alignLeft","alignCenter","alignRight"],indent:["indentRight","indentLeft"]},toolIcon:{undo:"",redo:"",bold:"",italic:"",underline:"",throughline:"",fontColor:"",backColor:"",alignLeft:"",alignCenter:"",alignRight:"",indentLeft:"",indentRight:"",ul:"",ol:"",lineHeight:"",link:"",quote:"",code:"",image:"",video:"",file:"",table:"",hr:""}}},watch:{value(t){}},mounted(){this.$refs.iframe.contentDocument.write('\n\t\t\t\t<html>\n\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta charset="utf-8">\n\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t* {\n\t\t\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\thtml {\n\t\t\t\t\t\t\t\tmin-height: 100%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbody {\n\t\t\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t\t\t\tmin-height: 100%;\n\t\t\t\t\t\t\t\tpadding: 10px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</style>\n\t\t\t\t\t</head>\n\t\t\t\t\t<body contenteditable></body>\n\t\t\t\t</html>\n\t\t\t')},methods:{set(t=""){},get(){},handle(t){console.log("handle:",t);let e=this.$refs.iframe.contentWindow.getSelection(),n=e.getRangeAt(0),i=n.toString();switch(t){case"bold":i&&n.surroundContents(this.setFontStyle({"font-weight":"bold"},i));break;case"italic":i&&n.surroundContents(this.setFontStyle({"font-style":"italic"},i));break;case"underline":i&&n.surroundContents(this.setFontStyle({"text-decoration":"underline"},i));break;case"throughline":i&&n.surroundContents(this.setFontStyle({"text-decoration":"line-through"},i));break;case"backColor":this.$refs.iframe.contentDocument.execCommand("backColor",!1,"#f00");break}n.detach()},setFontStyle(t,e){let n=document.createElement("span");n.textContent=e;for(let i in t)n.style[i]=t[i];return n}}},wd=yd,xd=(n("429b"),d(wd,bd,_d,!1,null,"25b2a026",null)),kd=xd.exports,Sd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-datetime-picker"},[e("div",{staticClass:"flex"},[t.datePanel?e("div",{staticClass:"c-date-panel"},[e("div",{staticClass:"c-date-panel-head flex-between-center"},[e("a",{staticClass:"c-date-panel-head-angle flex-center",on:{click:function(e){return t.switchYear(-1)}}},[e("i",{staticClass:"c-icon-angle-dbleft"})]),e("a",{directives:[{name:"show",rawName:"v-show",value:"day"==t.viewType,expression:"viewType == 'day'"}],staticClass:"c-date-panel-head-angle flex-center",on:{click:function(e){return t.switchMonth(-1)}}},[e("i",{staticClass:"c-icon-angle-left"})]),e("p",{staticClass:"flex-grow flex-center",class:{"flex-reverse":"zh"!=t.$i18n.locale}},[e("span",{directives:[{name:"show",rawName:"v-show",value:"year"==t.viewType,expression:"viewType == 'year'"}]},[t._v(t._s(`${t.yearList[1]} - ${t.yearList[10]}`))]),e("a",{directives:[{name:"show",rawName:"v-show",value:"year"!=t.viewType,expression:"viewType != 'year'"}],on:{click:function(e){t.viewType="year"}}},[t._v(t._s(t.crtYear)+t._s("zh"==t.$i18n.locale?"年":""))]),e("a",{directives:[{name:"show",rawName:"v-show",value:"day"==t.viewType,expression:"viewType == 'day'"}],on:{click:function(e){t.viewType="month"}}},[t._v(t._s("zh"==t.$i18n.locale?parseInt(t.crtMonth)+"月":t.$t("_t.datetime.month."+(t.crtMonth-1))))])]),e("a",{directives:[{name:"show",rawName:"v-show",value:"day"==t.viewType,expression:"viewType == 'day'"}],staticClass:"c-date-panel-head-angle flex-center",on:{click:function(e){return t.switchMonth(1)}}},[e("i",{staticClass:"c-icon-angle-right"})]),e("a",{staticClass:"c-date-panel-head-angle flex-center",on:{click:function(e){return t.switchYear(1)}}},[e("i",{staticClass:"c-icon-angle-dbright"})])]),"day"==t.viewType?e("div",{staticClass:"c-day-view"},[e("table",[e("thead",[e("tr",t._l(t.dayList[0],(function(n,i){return e("th",{key:i},[t._v(t._s(t.$t("_t.datetime.weeks."+i)))])})),0)]),e("tbody",t._l(t.dayList,(function(n,i){return e("tr",{key:i},t._l(n,(function(n,i){return e("td",{key:i},[e("div",{staticClass:"c-datetime-cell",class:{"z-crt":t.crtDate==n.date},attrs:{today:n.today,other:!!n.otherMonth,disabled:t.compMin&&n.date<`${t.compMin[0]}-${t.compMin[1]}-${t.compMin[2]}`||t.compMax&&n.date>`${t.compMax[0]}-${t.compMax[1]}-${t.compMax[2]}`},on:{click:function(e){return t.setDay(n,e)}}},[t._v(t._s(parseInt(n.day)))])])})),0)})),0)])]):"month"==t.viewType?e("div",{staticClass:"c-month-view"},[e("ul",{staticClass:"flex-wrap"},t._l(t.monthList,(function(n,i){return e("li",{key:i},[e("div",{staticClass:"c-datetime-cell",class:{"z-crt":t.crtMonth==n},attrs:{disabled:t.compMin&&`${t.crtYear}-${n}`<`${t.compMin[0]}-${t.compMin[1]}`||t.compMax&&`${t.crtYear}-${n}`>`${t.compMax[0]}-${t.compMax[1]}`},on:{click:function(e){return t.setMonth(n,e)}}},[t._v(t._s(t.$t("_t.datetime.month."+i)))])])})),0)]):"year"==t.viewType?e("div",{staticClass:"c-year-view"},[e("ul",{staticClass:"flex-wrap"},t._l(t.yearList,(function(n,i){return e("li",{key:i},[e("div",{staticClass:"c-datetime-cell",class:{"z-crt":t.crtYear==n},attrs:{other:0==i||11==i,disabled:t.compMin&&n<t.compMin[0]||t.compMax&&n>t.compMax[0]},on:{click:function(e){return t.setYear(n,e)}}},[t._v(t._s(n))])])})),0)]):t._e()]):t._e(),t.timePanel?e("div",{staticClass:"c-time-panel flex-column"},[e("div",{staticClass:"c-time-panel-head flex-center"},[e("p",[e("span",[t._v(t._s(t.crtHour))]),"hour"!=t.timeAccuracy?e("span",[t._v(":"+t._s(t.crtMin))]):t._e(),"sec"==t.timeAccuracy?e("span",[t._v(":"+t._s(t.crtSec))]):t._e()])]),e("div",{staticClass:"c-time-view flex flex-grow"},[e("div",{staticClass:"c-time-list"},[e("c-scroll",[e("ul",t._l(t.hourList,(function(n,i){return e("li",{key:i,class:{"z-crt":t.crtHour==n},attrs:{disabled:t.minDay&&n<t.compMin[3]||t.maxDay&&n>t.compMax[3]},on:{click:function(e){return t.setTime("crtHour",n,e)}}},[t._v(t._s(n))])})),0)])],1),"hour"!=t.timeAccuracy?e("div",{staticClass:"c-time-list"},[e("c-scroll",[e("ul",t._l(t.timeList,(function(n,i){return e("li",{key:i,class:{"z-crt":t.crtMin==n},attrs:{disabled:t.minDay&&t.crtHour==t.compMin[3]&&n<t.compMin[4]||t.maxDay&&t.crtHour==t.compMax[3]&&n>t.compMax[4]},on:{click:function(e){return t.setTime("crtMin",n,e)}}},[t._v(t._s(n))])})),0)])],1):t._e(),"sec"==t.timeAccuracy?e("div",{staticClass:"c-time-list"},[e("c-scroll",[e("ul",t._l(t.timeList,(function(n,i){return e("li",{key:i,class:{"z-crt":t.crtSec==n},attrs:{disabled:t.minDay&&t.crtHour==t.compMin[3]&&t.crtMin==t.compMin[4]&&n<t.compMin[5]||t.maxDay&&t.crtHour==t.compMax[3]&&t.crtMin==t.compMax[4]&&n>t.compMax[5]},on:{click:function(e){return t.setTime("crtSec",n,e)}}},[t._v(t._s(n))])})),0)])],1):t._e()])]):t._e()]),"date"!=t.type?e("div",{staticClass:"c-datetime-picker-foot flex-between-center"},[e("div"),e("c-button",{attrs:{color:"main"},on:{click:t.resolve}},[t._v("确定")])],1):t._e()])},Dd=[],Cd={name:"cDatetimePicker",props:{value:String,type:{type:String,default:"datetime"},timeAccuracy:{type:String,default:"sec"},start:String,end:String,min:String,max:String,format:{type:String,default:"yyyy-MM-dd hh:mm:ss"}},data(){return{viewType:"day",crtYear:"2024",crtMonth:"07",crtDay:"",crtHour:"00",crtMin:"00",crtSec:"00",yearList:[],monthList:[],dayList:[],hourList:[],timeList:[]}},computed:{parseRegExp(){let t=[];return"time"!=this.type&&t.push("(\\d{4})-(\\d{1,2})-(\\d{1,2})"),"date"!=this.type&&t.push(new Array("hour"==this.timeAccuracy?1:"min"==this.timeAccuracy?2:3).fill("(\\d{0,2})").join(":")),new RegExp(t.join(" "))},datePanel(){return"time"!=this.type},timePanel(){return"time"==this.type||"datetime"==this.type},crtDate(){return`${this.crtYear}-${this.crtMonth}-${this.crtDay}`},compMin(){return this.parseDate(this.start||this.min)},compMax(){return this.parseDate(this.end||this.max)},minDay(){return!!this.compMin&&`${this.crtYear}-${this.crtMonth}-${this.crtDay}`==`${this.compMin[0]}-${this.compMin[1]}-${this.compMin[2]}`},maxDay(){return!!this.compMax&&`${this.crtYear}-${this.crtMonth}-${this.crtDay}`==`${this.compMax[0]}-${this.compMax[1]}-${this.compMax[2]}`}},watch:{value(t){this.set(t)},viewType(t){"year"==t&&this.updateYearView()},crtYear(){this.updateDayView()},crtMonth(){this.updateDayView()},crtDay(){this.minDay&&this.crtHour<this.compMin[3]&&(this.crtHour=this.compMin[3]),this.maxDay&&this.crtHour>this.compMax[3]&&(this.crtHour=this.compMax[3])},crtHour(t){this.minDay&&t==this.compMin[3]&&this.crtMin<this.compMin[4]&&(this.crtMin=this.compMin[4]),this.maxDay&&t==this.compMax[3]&&this.crtMin>this.compMax[4]&&(this.crtMin=this.compMax[4])},crtMin(t){this.minDay&&this.crtHour==this.compMin[3]&&t==this.compMin[4]&&this.crtSec<this.compMin[5]&&(this.crtSec=this.compMin[5]),this.maxDay&&this.crtHour==this.compMax[3]&&t==this.compMax[4]&&this.crtSec>this.compMax[5]&&(this.crtSec=this.compMax[5])}},mounted(){for(let t=1;t<=12;t++)this.monthList.push(this.db(t));for(let t=0;t<24;t++)this.hourList.push(this.db(t));for(let t=0;t<60;t++)this.timeList.push(this.db(t));this.set((new Date).format("yyyy-MM-dd 00:00:00"),!0),this.updateDayView()},methods:{set(t="",e){let n=this.parseDate(t);n?(this.crtYear=n[0],this.crtMonth=n[1],this.crtDay=e?"":n[2],this.crtHour=n[3],this.crtMin=n[4],this.crtSec=n[5]):(this.crtDay="",this.crtHour=this.crtMin=this.crtSec="00")},updateYearView(t=this.crtYear){let e=10*parseInt(t/10)-1,n=[];for(let i=0;i<12;i++)n.push((e+i).toString());this.yearList=n},updateDayView(){let t=new Date,e=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(this.crtYear,this.crtMonth-1,1),i=n.getDay(),r=[];for(let a=1;a<=42;a++){let t=new Date(this.crtYear,this.crtMonth-1,a-i);r.push({$day:t,date:t.format("yyyy-MM-dd"),year:t.format("yyyy"),month:t.format("MM"),day:t.format("dd"),otherMonth:t.getMonth()==this.crtMonth-1?0:t.getMonth()==this.crtMonth-2?-1:1,today:t.toString()==e.toString()})}let o=[];do{o.push(r.splice(0,7))}while(r.length);this.dayList=o},switchYear(t){"year"==this.viewType?this.updateYearView(this.yearList[1==t?11:0]):(this.crtYear=(parseInt(this.crtYear)+t).toString(),this.crtDay="")},switchMonth(t){let e=parseInt(this.crtMonth)+t;0==e?(this.switchYear(-1),this.crtMonth="12"):13==e?(this.switchYear(1),this.crtMonth="01"):this.crtMonth=this.db(e),this.crtDay=""},setYear(t,e){e&&e.target.getAttribute("disabled")||(this.crtYear=t,this.crtDay="",this.viewType="day")},setMonth(t,e){e&&e.target.getAttribute("disabled")||(this.crtMonth=t,this.crtDay="",this.viewType="day")},setDay(t,e){e&&e.target.getAttribute("disabled")||(this.crtYear=t.year,this.crtMonth=t.month,this.crtDay=t.day,"date"==this.type&&this.resolve())},setTime(t,e,n){n&&n.target.getAttribute("disabled")||(this[t]=e)},parseDate(t=""){let e=t.match(this.parseRegExp);return e&&"time"==this.type&&e.splice(1,"2000","01","01"),e?new Array(6).fill("").map((t,n)=>this.db(e[n+1])):null},db(t=0){return t=parseInt(t),t<10?"0"+t:t.toString()},resolve(){let t=`${this.crtYear}-${this.crtMonth}-${this.crtDay} ${this.crtHour}:${this.crtMin}:${this.crtSec}`;this.$emit("input",new Date(t).format(this.format))}}},Ed=Cd,Ad=(n("870b"),d(Ed,Sd,Dd,!1,null,"72b3ecf6",null)),Td=Ad.exports,Bd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-color-picker"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"c-color-picker-sv",style:{background:t.sv},on:{mousedown:function(e){return t.handle(e,"sv")}}},[e("div",{staticClass:"c-color-picker-sv-white"}),e("div",{staticClass:"c-color-picker-sv-black"}),e("div",{staticClass:"c-color-picker-sv-handle",style:{left:t.s+"%",bottom:t.v+"%"}})]),e("div",{staticClass:"c-color-picker-hue",on:{mousedown:function(e){return t.handle(e,"h")}}},[e("div",{staticClass:"c-color-picker-hue-handle",style:{top:t.h/360*100+"%"}})])])])},Fd=[];const $d=function(t,e){return t=Math.min(e,Math.max(0,parseFloat(t))),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)};var Ld={name:"cColorPicker",props:{value:String},data(){return{s:0,v:100,h:0}},computed:{sv(){return this.hsvToHex(this.h,100,100)},hex(){return this.hsvToHex(this.h,this.s,this.v)}},watch:{value(t){this.set(t)}},mounted(){this.value&&this.set(this.value)},methods:{set(t="#fff"){let e=this.hexToHsv(t);this.s=e.s,this.v=e.v,this.h=e.h,this.$emit("input",this.hex)},handle(t,e){let n=[t.layerX,t.layerY],i=[t.clientX,t.clientY];const r=Af(t=>{let r=[t.clientX-i[0],t.clientY-i[1]],o=[n[0]+r[0],n[1]+r[1]];"h"==e?this.h=parseInt((Math.max(0,Math.min(180,o[1]))/180*360).toFixed(0)):(this.s=parseInt((Math.max(0,Math.min(280,o[0]))/280*100).toFixed(0)),this.v=parseInt((100-Math.max(0,Math.min(180,o[1]))/180*100).toFixed(0))),this.$emit("input",this.hex)},20),o=t=>{r(t),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)},hsvToHex(t,e,n){e/=100,n/=100;let i=Math.floor(t/60),r=t/60-i,o=n*(1-e),a=n*(1-e*r),s=n*(1-e*(1-r)),l=[n,a,o,o,s,n][i%6],c=[s,n,n,a,o,o][i%6],u=[o,o,s,n,n,a][i%6];const d=t=>{const e=Math.round(255*t).toString(16);return 1===e.length?"0"+e:e};return`#${d(l)}${d(c)}${d(u)}`},hexToHsv(t){t=t.replace(/^#/,""),3===t.length&&(t=t.split("").map(t=>t+t).join(""));const e=parseInt(t,16)!=parseInt(t,16)?parseInt("ffffff",16):parseInt(t,16),n=$d(e>>16&255,255),i=$d(e>>8&255,255),r=$d(255&e,255),o=Math.max(n,i,r),a=Math.min(n,i,r);let s,l,c=o;const u=o-a;if(l=0===o?0:u/o,o===a)s=0;else{switch(o){case n:s=(i-r)/u+(i<r?6:0);break;case i:s=(r-n)/u+2;break;case r:s=(n-i)/u+4;break}s/=6}return{h:360*s,s:100*l,v:100*c}}}},Md=Ld,Pd=(n("ab1f"),d(Md,Bd,Fd,!1,null,"56a272f0",null)),Id=Pd.exports,Nd=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{position:"fixed",left:"1000%",top:"0"}},[e("input",{ref:"file",attrs:{type:"file",accept:t.accept,multiple:t.multiple},on:{change:t.uploadHandle}})])},Hd=[],zd={name:"upload",data(){return{type:"",multiple:!1}},computed:{accept(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[".jpg",".jpeg",".png"],video:[".mp4"],word:[".doc",".docx"],excel:[".xls",".xlsx"],ppt:[".ppt",".pptx"],zip:[".zip",".7z",".rar"]}[e]||["."+e])}),t.join(",")}return""},fileTypeTip(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[this.$t("_t.upload.type.image")],video:["mp4"],word:["doc(x)"],excel:["xls(x)"],zip:[this.$t("_t.upload.type.zip")]}[e]||[e])}),t.join("、")}return""}},methods:{main(t={}){this.type=t.type,this.multiple=!!t.multiple,this._opt=t,this.$nextTick(()=>{this.$refs.file.click()})},uploadHandle(t){let e=t.target.files;if(this._opt.type||this._opt.size)for(let s=0;s<e.length;s++){let t=e[s];if(this._opt.type){var n=this.accept.split(","),i=t.name.match(/\.[^\.]+$/)[0];if(!n.includes(i))return this.$message({message:this.$t("_t.upload.message.type",{type:this.fileTypeTip})}),void(this.$refs.file.value="")}if(this._opt.size&&t.size/1024/1024>this._opt.size)return this.$message({message:this.$t("_t.upload.message.size",{size:this._opt.size})}),void(this.$refs.file.value="")}let r=[],o=[],a=e.length;(function t(n){n>=e.length||(r.push({file:e[n],progress:t=>{o[n].rate=t},success:(t,e)=>{o[n].state=1,o[n].path=t,o[n].obj=e,0==--a&&this._opt.loading&&this.$loadOver()},fail:t=>{o[n].state=2,o[n].errorMessage=t,0==--a&&this._opt.loading&&this.$loadOver()}}),o.push({name:e[n].name,size:parseFloat((e[n].size/1024).toFixed(1)),state:0,rate:0,path:"",obj:"",errorMessage:""}),t.call(this,n+1))}).call(this,0),this._opt.loading&&this.$loading(),this._opt.listener&&this._opt.listener(o),this.$compsConfig.uploadFile(r,t=>{this.$refs.file.value="",this._opt.loading&&this.$loadOver(),this._opt.success&&this._opt.success(t)})}}},Od=zd,Rd=d(Od,Nd,Hd,!1,null,null,null),Ud=Rd.exports,Kd=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"none"}},[e("button",{ref:"clipboard",attrs:{id:"clipboard","data-clipboard-action":"copy","data-clipboard-text":t.clipboardText}})])},Wd=[],jd=n("3278"),Vd=n.n(jd),qd={name:"copy",data(){return{clipboardText:""}},mounted(){new Vd.a("#clipboard").on("success",t=>{this.$message({message:"复制成功"})}).on("error",t=>{this.$message({type:"fail",message:"该浏览器不支持复制"})})},methods:{main(t){this.clipboardText=t,this.$nextTick(()=>{this.$refs.clipboard.click()})}}},Yd=qd,Xd=d(Yd,Kd,Wd,!1,null,null,null),Gd=Xd.exports,Zd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-min-dialog"},t._l(t.list,(function(n,i){return e("div",{directives:[{name:"show",rawName:"v-show",value:n.show,expression:"item.show"}],key:i,staticClass:"item flex-between-center",on:{click:function(t){return n.opt.back()}}},[e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.opt.title)))]),n.opt.closeButton?e("div",{staticClass:"handle flex-center",on:{click:function(t){return t.stopPropagation(),n.vm.close()}}},[e("i",{staticClass:"c-icon-cross"})]):t._e()])})),0)},Qd=[],Jd={name:"minDialog",data(){return{list:[]}},methods:{main(t,e){let n={show:!0,vm:t,opt:e};return this.list.push(n),{show:()=>{n.show=!0},hide:()=>{n.show=!1},remove:()=>{this.list.splice(this.list.findIndex(t=>t==n),1)}}}}},th=Jd,eh=(n("8776"),d(th,Zd,Qd,!1,null,"575ee27a",null)),nh=eh.exports,ih=function(){var t=this,e=t._self._c;return e("div")},rh=[],oh={name:"loading",data(){return{dom:"",followDom:!0,message:"",timeout:1e4,count:0}},created(){this.dom._$loading=this,this._$message=this.$message({dom:this.dom,followDom:this.followDom,type:"loading",message:this.message,timeout:!1,mask:!0}),this._timer=[],this.start()},methods:{start(){this.count++,this.timeout&&this._timer.push(setTimeout(this.close,this.timeout))},close(){--this.count<=0&&(this._timer.forEach(t=>{clearTimeout(t)}),this.dom._$loading=void 0,this._$message.close(),this.$destroy(),this.$el.remove())},update(t){this._$message.message=t}}},ah=oh,sh=d(ah,ih,rh,!1,null,null,null),lh=sh.exports,ch=function(){var t=this,e=t._self._c;return e("div",[t.mask?e("div",{staticClass:"popup-mask",staticStyle:{"z-index":"9999"},style:{position:t.inBody?"fixed":"absolute"},attrs:{invisible:""}}):t._e(),e("div",{staticClass:"c-message flex flex-center an",class:{"an-fadein":t.active,"an-fadeout":!t.active},style:{position:!t.inBody&&t.followDom?"absolute":"fixed","min-width":"loading"==t.type?"auto":""}},[e("i",{staticClass:"icon c-icon-message",class:t.type?"c-icon-message-"+t.type:""}),t.message?e("p",{domProps:{innerHTML:t._s(t.message)}}):t._e()])])},uh=[],dh={name:"message",data(){return{dom:"",followDom:!0,type:"",message:"",timeout:2500,mask:!1,active:!0}},computed:{inBody(){return this.dom==document.body}},mounted(){"static"==getComputedStyle(this.dom).position&&(this._domPosition=getComputedStyle(this.dom).position,this.dom.style.position="relative"),"loading"!=this.type&&(this.dom._$message&&this.dom._$message.close(),this.dom._$message=this),this.timeout&&(this._timer=setTimeout(this.close,this.timeout))},methods:{close(){"loading"!=this.type&&delete this.dom._$message,this.active=!1,clearTimeout(this._timer),setTimeout(()=>{this.$destroy(),this.$el.remove(),this._domPosition&&(this.dom.style.position=this._domPosition)},250)}}},hh=dh,ph=(n("9131"),d(hh,ch,uh,!1,null,"60072a79",null)),fh=ph.exports,mh=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-notice an",class:{"an-slidein":t.active,"an-fadeout":!t.active},style:{"margin-top":t.active?"":-t.height+"px"}},[e("div",{staticClass:"flex"},[e("i",{staticClass:"icon c-icon-message",class:t.type?"c-icon-message-"+t.type:"",attrs:{color:""}}),e("div",{staticClass:"flex-grow"},[e("p",{staticClass:"title"},[t._v(t._s(t.title))]),e("div",{staticClass:"content",domProps:{innerHTML:t._s(t.message)}})])]),t.button?e("div",{staticClass:"button"},t._l(t.button,(function(n,i){return e("a",{key:i,on:{click:function(e){return t.buttonHandle(n)}}},[t._v(t._s(n.name))])})),0):t._e(),e("a",{staticClass:"close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})])])},gh=[],vh={name:"notice",data(){return{type:"",title:"",message:"",timeout:1e4,button:!1,active:!0,height:0}},mounted(){this.$nextTick(()=>{this.height=this.$el.clientHeight}),this.timeout&&(this._timer=setTimeout(this.close,this.timeout))},methods:{close(){this.active=!1,clearTimeout(this._timer),setTimeout(()=>{this.$destroy(),this.$el.remove()},450)},buttonHandle(t){t.callback(this.close)}}},bh=vh,_h=(n("1f2a"),d(bh,mh,gh,!1,null,"73f5d106",null)),yh=_h.exports,wh=function(){var t=this,e=t._self._c;return e("c-dialog",{ref:"dialog",attrs:{confirm:"",title:!1,width:"450","close-button":!1},scopedSlots:t._u([{key:"button",fn:function(){return[t.buttons.length?t._l(t.buttons,(function(n,i){return e("c-button",{key:i,attrs:{size:"confirm",color:n.color?"main":"normal"},on:{click:function(e){return t.buttonHandle(n.event||"resolve",n.value)}}},[t._v(t._s(t.$t(n.name)))])})):[e("c-button",{attrs:{size:"confirm",color:"main"},on:{click:function(e){return t.buttonHandle("resolve")}}},[t._v(t._s(t.$t(t.buttonName)))]),t.cancelButton?e("c-button",{attrs:{size:"confirm"},on:{click:function(e){return t.buttonHandle("cancel")}}},[t._v(t._s(t.$t(t.cancelButtonName)))]):t._e()]]},proxy:!0}])},[e("div",{staticClass:"c-confirm flex"},[e("i",{staticClass:"icon",class:t.type?"c-icon-message-"+t.type:"",attrs:{color:""}}),e("div",{staticClass:"flex-grow"},[e("p",{staticClass:"title"},[t._v(t._s(t.$t(t.title)))]),e("div",{staticClass:"content",domProps:{innerHTML:t._s(t.message)}})])])])},xh=[],kh={name:"confirm",data(){return{state:"",type:"enquire",title:"_t.popup.confirmTitle",message:"",buttonName:"_t.popup.button",cancelButton:!0,cancelButtonName:"_t.popup.cancelButton",buttons:[]}},mounted(){this.$refs.dialog.open({zIndex:1101})},methods:{buttonHandle(t,e){this.state=t,this[t]&&this[t](e),this.$refs.dialog.close(),setTimeout(()=>{this.$destroy(),this.$el.remove()},260)}}},Sh=kh,Dh=(n("6460"),d(Sh,wh,xh,!1,null,"1329f1c1",null)),Ch=Dh.exports,Eh=function(){var t=this,e=t._self._c;return e("c-dialog",{ref:"dialog",attrs:{title:!1,width:"auto",button:!1}},[e("div",{staticClass:"c-preview-close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})]),t.video?e("video",{ref:"video",staticClass:"c-preview-video",attrs:{src:t.src,controls:"",loop:"",autoplay:""}}):e("img",{ref:"img",staticClass:"c-preview-img",attrs:{src:t.src}})])},Ah=[],Th={name:"preview",data(){return{src:""}},computed:{video(){return"video"==Bf(this.src).media}},mounted(){this.src&&(this.$loading(),this.video?(this.$refs.video.addEventListener("play",()=>{this.$loadOver(),this.$refs.dialog.open()}),this.$refs.video.addEventListener("error",()=>{this.$loadOver(),this.$message({type:"fail",message:this.$t("_t.preview")})})):(this.$refs.img.onload=()=>{this.$loadOver(),this.$refs.dialog.open()},this.$refs.img.onerror=()=>{this.$loadOver(),this.$message({type:"fail",message:this.$t("_t.preview")})}))},methods:{close(){this.$refs.dialog.close(),setTimeout(()=>{this.$el.remove()},260)}}},Bh=Th,Fh=(n("2dc1"),d(Bh,Eh,Ah,!1,null,"5cf2a0cd",null)),$h=Fh.exports,Lh=n("77a0"),Mh=n.n(Lh),Ph=n("3452"),Ih=n.n(Ph),Nh=n("d055"),Hh=n.n(Nh),zh=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function Oh(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function Rh(t,e){"undefined"!==typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var Uh=Array.isArray;function Kh(t){return null!==t&&"object"===typeof t}function Wh(t){return"boolean"===typeof t}function jh(t){return"string"===typeof t}var Vh=Object.prototype.toString,qh="[object Object]";function Yh(t){return Vh.call(t)===qh}function Xh(t){return null===t||void 0===t}function Gh(t){return"function"===typeof t}function Zh(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var n=null,i=null;return 1===t.length?Kh(t[0])||Uh(t[0])?i=t[0]:"string"===typeof t[0]&&(n=t[0]):2===t.length&&("string"===typeof t[0]&&(n=t[0]),(Kh(t[1])||Uh(t[1]))&&(i=t[1])),{locale:n,params:i}}function Qh(t){return JSON.parse(JSON.stringify(t))}function Jh(t,e){if(t.delete(e))return t}function tp(t){var e=[];return t.forEach((function(t){return e.push(t)})),e}function ep(t,e){return!!~t.indexOf(e)}var np=Object.prototype.hasOwnProperty;function ip(t,e){return np.call(t,e)}function rp(t){for(var e=arguments,n=Object(t),i=1;i<arguments.length;i++){var r=e[i];if(void 0!==r&&null!==r){var o=void 0;for(o in r)ip(r,o)&&(Kh(r[o])?n[o]=rp(n[o],r[o]):n[o]=r[o])}}return n}function op(t,e){if(t===e)return!0;var n=Kh(t),i=Kh(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Uh(t),o=Uh(e);if(r&&o)return t.length===e.length&&t.every((function(t,n){return op(t,e[n])}));if(r||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return op(t[n],e[n])}))}catch(l){return!1}}function ap(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function sp(t){return null!=t&&Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e]=ap(t[e]))})),t}function lp(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[t,i.locale,i._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var n=[],i=arguments.length-2;while(i-- >0)n[i]=arguments[i+2];var r=this.$i18n;return r._tc.apply(r,[t,r.locale,r._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}function cp(t){function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===t&&(t=!1),t?{mounted:e}:{beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n)if(t.i18n instanceof lf){if(t.__i18nBridge||t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{},n=t.__i18nBridge||t.__i18n;n.forEach((function(t){e=rp(e,JSON.parse(t))})),Object.keys(e).forEach((function(n){t.i18n.mergeLocaleMessage(n,e[n])}))}catch(l){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(Yh(t.i18n)){var i=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lf?this.$root.$i18n:null;if(i&&(t.i18n.root=this.$root,t.i18n.formatter=i.formatter,t.i18n.fallbackLocale=i.fallbackLocale,t.i18n.formatFallbackMessages=i.formatFallbackMessages,t.i18n.silentTranslationWarn=i.silentTranslationWarn,t.i18n.silentFallbackWarn=i.silentFallbackWarn,t.i18n.pluralizationRules=i.pluralizationRules,t.i18n.preserveDirectiveContent=i.preserveDirectiveContent),t.__i18nBridge||t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{},o=t.__i18nBridge||t.__i18n;o.forEach((function(t){r=rp(r,JSON.parse(t))})),t.i18n.messages=r}catch(l){0}var a=t.i18n,s=a.sharedMessages;s&&Yh(s)&&(t.i18n.messages=rp(t.i18n.messages,s)),this._i18n=new lf(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),i&&i.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lf?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof lf&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?(t.i18n instanceof lf||Yh(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lf||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof lf)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick((function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}}var up={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,i=e.parent,r=e.props,o=e.slots,a=i.$i18n;if(a){var s=r.path,l=r.locale,c=r.places,u=o(),d=a.i(s,l,dp(u)||c?hp(u.default,c):u),h=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return h?t(h,n,d):d}}};function dp(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}function hp(t,e){var n=e?pp(e):{};if(!t)return n;t=t.filter((function(t){return t.tag||""!==t.text.trim()}));var i=t.every(gp);return t.reduce(i?fp:mp,n)}function pp(t){return Array.isArray(t)?t.reduce(mp,{}):Object.assign({},t)}function fp(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function mp(t,e,n){return t[n]=e,t}function gp(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var vp,bp={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,i=e.parent,r=e.data,o=i.$i18n;if(!o)return null;var a=null,s=null;jh(n.format)?a=n.format:Kh(n.format)&&(n.format.key&&(a=n.format.key),s=Object.keys(n.format).reduce((function(t,e){var i;return ep(zh,e)?Object.assign({},t,(i={},i[e]=n.format[e],i)):t}),null));var l=n.locale||o.locale,c=o._ntp(n.value,l,a,s),u=c.map((function(t,e){var n,i=r.scopedSlots&&r.scopedSlots[t.type];return i?i((n={},n[t.type]=t.value,n.index=e,n.parts=c,n)):t.value})),d=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return d?t(d,{attrs:r.attrs,class:r["class"],staticClass:r.staticClass},u):u}};function _p(t,e,n){xp(t,n)&&Sp(t,e,n)}function yp(t,e,n,i){if(xp(t,n)){var r=n.context.$i18n;kp(t,n)&&op(e.value,e.oldValue)&&op(t._localeMessage,r.getLocaleMessage(r.locale))||Sp(t,e,n)}}function wp(t,e,n,i){var r=n.context;if(r){var o=n.context.$i18n||{};e.modifiers.preserve||o.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t["_vt"],t._locale=void 0,delete t["_locale"],t._localeMessage=void 0,delete t["_localeMessage"]}else Oh("Vue instance does not exists in VNode context")}function xp(t,e){var n=e.context;return n?!!n.$i18n||(Oh("VueI18n instance does not exists in Vue instance"),!1):(Oh("Vue instance does not exists in VNode context"),!1)}function kp(t,e){var n=e.context;return t._locale===n.$i18n.locale}function Sp(t,e,n){var i,r,o=e.value,a=Dp(o),s=a.path,l=a.locale,c=a.args,u=a.choice;if(s||l||c)if(s){var d=n.context;t._vt=t.textContent=null!=u?(i=d.$i18n).tc.apply(i,[s,u].concat(Cp(l,c))):(r=d.$i18n).t.apply(r,[s].concat(Cp(l,c))),t._locale=d.$i18n.locale,t._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else Oh("`path` is required in v-t directive");else Oh("value type not supported")}function Dp(t){var e,n,i,r;return jh(t)?e=t:Yh(t)&&(e=t.path,n=t.locale,i=t.args,r=t.choice),{path:e,locale:n,args:i,choice:r}}function Cp(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||Yh(e))&&n.push(e),n}function Ep(t,e){void 0===e&&(e={bridge:!1}),Ep.installed=!0,vp=t;vp.version&&Number(vp.version.split(".")[0]);lp(vp),vp.mixin(cp(e.bridge)),vp.directive("t",{bind:_p,update:yp,unbind:wp}),vp.component(up.name,up),vp.component(bp.name,bp);var n=vp.config.optionMergeStrategies;n.i18n=function(t,e){return void 0===e?t:e}}var Ap=function(){this._caches=Object.create(null)};Ap.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=Fp(t),this._caches[t]=n),$p(n,e)};var Tp=/^(?:\d)+/,Bp=/^(?:\w)+/;function Fp(t){var e=[],n=0,i="";while(n<t.length){var r=t[n++];if("{"===r){i&&e.push({type:"text",value:i}),i="";var o="";r=t[n++];while(void 0!==r&&"}"!==r)o+=r,r=t[n++];var a="}"===r,s=Tp.test(o)?"list":a&&Bp.test(o)?"named":"unknown";e.push({value:o,type:s})}else"%"===r?"{"!==t[n]&&(i+=r):i+=r}return i&&e.push({type:"text",value:i}),e}function $p(t,e){var n=[],i=0,r=Array.isArray(e)?"list":Kh(e)?"named":"unknown";if("unknown"===r)return n;while(i<t.length){var o=t[i];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===r&&n.push(e[o.value]);break;case"unknown":0;break}i++}return n}var Lp=0,Mp=1,Pp=2,Ip=3,Np=0,Hp=1,zp=2,Op=3,Rp=4,Up=5,Kp=6,Wp=7,jp=8,Vp=[];Vp[Np]={ws:[Np],ident:[Op,Lp],"[":[Rp],eof:[Wp]},Vp[Hp]={ws:[Hp],".":[zp],"[":[Rp],eof:[Wp]},Vp[zp]={ws:[zp],ident:[Op,Lp],0:[Op,Lp],number:[Op,Lp]},Vp[Op]={ident:[Op,Lp],0:[Op,Lp],number:[Op,Lp],ws:[Hp,Mp],".":[zp,Mp],"[":[Rp,Mp],eof:[Wp,Mp]},Vp[Rp]={"'":[Up,Lp],'"':[Kp,Lp],"[":[Rp,Pp],"]":[Hp,Ip],eof:jp,else:[Rp,Lp]},Vp[Up]={"'":[Rp,Lp],eof:jp,else:[Up,Lp]},Vp[Kp]={'"':[Rp,Lp],eof:jp,else:[Kp,Lp]};var qp=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yp(t){return qp.test(t)}function Xp(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?t:t.slice(1,-1)}function Gp(t){if(void 0===t||null===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function Zp(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(Yp(e)?Xp(e):"*"+e)}function Qp(t){var e,n,i,r,o,a,s,l=[],c=-1,u=Np,d=0,h=[];function p(){var e=t[c+1];if(u===Up&&"'"===e||u===Kp&&'"'===e)return c++,i="\\"+e,h[Lp](),!0}h[Mp]=function(){void 0!==n&&(l.push(n),n=void 0)},h[Lp]=function(){void 0===n?n=i:n+=i},h[Pp]=function(){h[Lp](),d++},h[Ip]=function(){if(d>0)d--,u=Rp,h[Lp]();else{if(d=0,void 0===n)return!1;if(n=Zp(n),!1===n)return!1;h[Mp]()}};while(null!==u)if(c++,e=t[c],"\\"!==e||!p()){if(r=Gp(e),s=Vp[u],o=s[r]||s["else"]||jp,o===jp)return;if(u=o[0],a=h[o[1]],a&&(i=o[2],i=void 0===i?e:i,!1===a()))return;if(u===Wp)return l}}var Jp=function(){this._cache=Object.create(null)};Jp.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=Qp(t),e&&(this._cache[t]=e)),e||[]},Jp.prototype.getPathValue=function(t,e){if(!Kh(t))return null;var n=this.parsePath(e);if(0===n.length)return null;var i=n.length,r=t,o=0;while(o<i){var a=r[n[o]];if(void 0===a||null===a)return null;r=a,o++}return r};var tf,ef=/<\/?[\w\s="/.':;#-\/]+>/,nf=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|./]+|\([\w\-_|./]+\)))/g,rf=/^@(?:\.([a-z]+))?:/,of=/[()]/g,af={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},sf=new Ap,lf=function(t){var e=this;void 0===t&&(t={}),!vp&&"undefined"!==typeof window&&window.Vue&&Ep(window.Vue);var n=t.locale||"en-US",i=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),r=t.messages||{},o=t.dateTimeFormats||t.datetimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||sf,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void 0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Jp,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in t&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,n){var i=Object.getPrototypeOf(e);if(i&&i.getChoiceIndex){var r=i.getChoiceIndex;return r.call(e,t,n)}var o=function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):o(t,n)},this._exist=function(t,n){return!(!t||!n)&&(!Xh(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])})),this._initVM({locale:n,fallbackLocale:i,messages:r,dateTimeFormats:o,numberFormats:a})},cf={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};lf.prototype._checkLocaleMessage=function(t,e,n){var i=[],r=function(t,e,n,i){if(Yh(n))Object.keys(n).forEach((function(o){var a=n[o];Yh(a)?(i.push(o),i.push("."),r(t,e,a,i),i.pop(),i.pop()):(i.push(o),r(t,e,a,i),i.pop())}));else if(Uh(n))n.forEach((function(n,o){Yh(n)?(i.push("["+o+"]"),i.push("."),r(t,e,n,i),i.pop(),i.pop()):(i.push("["+o+"]"),r(t,e,n,i),i.pop())}));else if(jh(n)){var o=ef.test(n);if(o){var a="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?Oh(a):"error"===t&&Rh(a)}}};r(e,t,n,i)},lf.prototype._initVM=function(t){var e=vp.config.silent;vp.config.silent=!0,this._vm=new vp({data:t,__VUE18N__INSTANCE__:!0}),vp.config.silent=e},lf.prototype.destroyVM=function(){this._vm.$destroy()},lf.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},lf.prototype.unsubscribeDataChanging=function(t){Jh(this._dataListeners,t)},lf.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",(function(){var e=tp(t._dataListeners),n=e.length;while(n--)vp.nextTick((function(){e[n]&&e[n].$forceUpdate()}))}),{deep:!0})},lf.prototype.watchLocale=function(t){if(t){if(!this.__VUE_I18N_BRIDGE__)return null;var e=this,n=this._vm;return this.vm.$watch("locale",(function(i){n.$set(n,"locale",i),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=i),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var i=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){i.$set(i,"locale",t),i.$forceUpdate()}),{immediate:!0})},lf.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},cf.vm.get=function(){return this._vm},cf.messages.get=function(){return Qh(this._getMessages())},cf.dateTimeFormats.get=function(){return Qh(this._getDateTimeFormats())},cf.numberFormats.get=function(){return Qh(this._getNumberFormats())},cf.availableLocales.get=function(){return Object.keys(this.messages).sort()},cf.locale.get=function(){return this._vm.locale},cf.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},cf.fallbackLocale.get=function(){return this._vm.fallbackLocale},cf.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},cf.formatFallbackMessages.get=function(){return this._formatFallbackMessages},cf.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},cf.missing.get=function(){return this._missing},cf.missing.set=function(t){this._missing=t},cf.formatter.get=function(){return this._formatter},cf.formatter.set=function(t){this._formatter=t},cf.silentTranslationWarn.get=function(){return this._silentTranslationWarn},cf.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},cf.silentFallbackWarn.get=function(){return this._silentFallbackWarn},cf.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},cf.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},cf.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},cf.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},cf.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var i=this._getMessages();Object.keys(i).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])}))}},cf.postTranslation.get=function(){return this._postTranslation},cf.postTranslation.set=function(t){this._postTranslation=t},cf.sync.get=function(){return this._sync},cf.sync.set=function(t){this._sync=t},lf.prototype._getMessages=function(){return this._vm.messages},lf.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},lf.prototype._getNumberFormats=function(){return this._vm.numberFormats},lf.prototype._warnDefault=function(t,e,n,i,r,o){if(!Xh(n))return n;if(this._missing){var a=this._missing.apply(null,[t,e,i,r]);if(jh(a))return a}else 0;if(this._formatFallbackMessages){var s=Zh.apply(void 0,r);return this._render(e,o,s.params,e)}return e},lf.prototype._isFallbackRoot=function(t){return(this._fallbackRootWithEmptyString?!t:Xh(t))&&!Xh(this._root)&&this._fallbackRoot},lf.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},lf.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},lf.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},lf.prototype._interpolate=function(t,e,n,i,r,o,a){if(!e)return null;var s,l=this._path.getPathValue(e,n);if(Uh(l)||Yh(l))return l;if(Xh(l)){if(!Yh(e))return null;if(s=e[n],!jh(s)&&!Gh(s))return null}else{if(!jh(l)&&!Gh(l))return null;s=l}return jh(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(t,e,s,i,"raw",o,a)),this._render(s,r,o,n)},lf.prototype._link=function(t,e,n,i,r,o,a){var s=n,l=s.match(nf);for(var c in l)if(l.hasOwnProperty(c)){var u=l[c],d=u.match(rf),h=d[0],p=d[1],f=u.replace(h,"").replace(of,"");if(ep(a,f))return s;a.push(f);var m=this._interpolate(t,e,f,i,"raw"===r?"string":r,"raw"===r?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,f,i,r,o)}m=this._warnDefault(t,f,m,i,Uh(o)?o:[o],r),this._modifiers.hasOwnProperty(p)?m=this._modifiers[p](m):af.hasOwnProperty(p)&&(m=af[p](m)),a.pop(),s=m?s.replace(u,m):s}return s},lf.prototype._createMessageContext=function(t,e,n,i){var r=this,o=Uh(t)?t:[],a=Kh(t)?t:{},s=function(t){return o[t]},l=function(t){return a[t]},c=this._getMessages(),u=this.locale;return{list:s,named:l,values:t,formatter:e,path:n,messages:c,locale:u,linked:function(t){return r._interpolate(u,c[u]||{},t,null,i,void 0,[t])}}},lf.prototype._render=function(t,e,n,i){if(Gh(t))return t(this._createMessageContext(n,this._formatter||sf,i,e));var r=this._formatter.interpolate(t,n,i);return r||(r=sf.interpolate(t,n,i)),"string"!==e||jh(r)?r:r.join("")},lf.prototype._appendItemToChain=function(t,e,n){var i=!1;return ep(t,e)||(i=!0,e&&(i="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(i=n[e]))),i},lf.prototype._appendLocaleToChain=function(t,e,n){var i,r=e.split("-");do{var o=r.join("-");i=this._appendItemToChain(t,o,n),r.splice(-1,1)}while(r.length&&!0===i);return i},lf.prototype._appendBlockToChain=function(t,e,n){for(var i=!0,r=0;r<e.length&&Wh(i);r++){var o=e[r];jh(o)&&(i=this._appendLocaleToChain(t,o,n))}return i},lf.prototype._getLocaleChain=function(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[t];if(!n){e||(e=this.fallbackLocale),n=[];var i,r=[t];while(Uh(r))r=this._appendBlockToChain(n,r,e);i=Uh(e)?e:Kh(e)?e["default"]?e["default"]:null:e,r=jh(i)?[i]:i,r&&this._appendBlockToChain(n,r,null),this._localeChainCache[t]=n}return n},lf.prototype._translate=function(t,e,n,i,r,o,a){for(var s,l=this._getLocaleChain(e,n),c=0;c<l.length;c++){var u=l[c];if(s=this._interpolate(u,t[u],i,r,o,a,[i]),!Xh(s))return s}return null},lf.prototype._t=function(t,e,n,i){var r,o=[],a=arguments.length-4;while(a-- >0)o[a]=arguments[a+4];if(!t)return"";var s=Zh.apply(void 0,o);this._escapeParameterHtml&&(s.params=sp(s.params));var l=s.locale||e,c=this._translate(n,l,this.fallbackLocale,t,i,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[t].concat(o))}return c=this._warnDefault(l,t,c,i,o,"string"),this._postTranslation&&null!==c&&void 0!==c&&(c=this._postTranslation(c,t)),c},lf.prototype.t=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},lf.prototype._i=function(t,e,n,i,r){var o=this._translate(n,e,this.fallbackLocale,t,i,"raw",r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,r)}return this._warnDefault(e,t,o,i,[r],"raw")},lf.prototype.i=function(t,e,n){return t?(jh(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},lf.prototype._tc=function(t,e,n,i,r){var o,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!t)return"";void 0===r&&(r=1);var l={count:r,n:r},c=Zh.apply(void 0,a);return c.params=Object.assign(l,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((o=this)._t.apply(o,[t,e,n,i].concat(a)),r)},lf.prototype.fetchChoice=function(t,e){if(!t||!jh(t))return null;var n=t.split("|");return e=this.getChoiceIndex(e,n.length),n[e]?n[e].trim():t},lf.prototype.tc=function(t,e){var n,i=[],r=arguments.length-2;while(r-- >0)i[r]=arguments[r+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(i))},lf.prototype._te=function(t,e,n){var i=[],r=arguments.length-3;while(r-- >0)i[r]=arguments[r+3];var o=Zh.apply(void 0,i).locale||e;return this._exist(n[o],t)},lf.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},lf.prototype.getLocaleMessage=function(t){return Qh(this._vm.messages[t]||{})},lf.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},lf.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,rp("undefined"!==typeof this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},lf.prototype.getDateTimeFormat=function(t){return Qh(this._vm.dateTimeFormats[t]||{})},lf.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},lf.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,rp(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},lf.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}},lf.prototype._localizeDateTime=function(t,e,n,i,r){for(var o=e,a=i[o],s=this._getLocaleChain(e,n),l=0;l<s.length;l++){var c=s[l];if(a=i[c],o=c,!Xh(a)&&!Xh(a[r]))break}if(Xh(a)||Xh(a[r]))return null;var u=a[r],d=o+"__"+r,h=this._dateTimeFormatters[d];return h||(h=this._dateTimeFormatters[d]=new Intl.DateTimeFormat(o,u)),h.format(t)},lf.prototype._d=function(t,e,n){if(!n)return new Intl.DateTimeFormat(e).format(t);var i=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)}return i||""},lf.prototype.d=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.locale,r=null;return 1===e.length?jh(e[0])?r=e[0]:Kh(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(r=e[0].key)):2===e.length&&(jh(e[0])&&(r=e[0]),jh(e[1])&&(i=e[1])),this._d(t,i,r)},lf.prototype.getNumberFormat=function(t){return Qh(this._vm.numberFormats[t]||{})},lf.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},lf.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,rp(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},lf.prototype._clearNumberFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}},lf.prototype._getNumberFormatter=function(t,e,n,i,r,o){for(var a=e,s=i[a],l=this._getLocaleChain(e,n),c=0;c<l.length;c++){var u=l[c];if(s=i[u],a=u,!Xh(s)&&!Xh(s[r]))break}if(Xh(s)||Xh(s[r]))return null;var d,h=s[r];if(o)d=new Intl.NumberFormat(a,Object.assign({},h,o));else{var p=a+"__"+r;d=this._numberFormatters[p],d||(d=this._numberFormatters[p]=new Intl.NumberFormat(a,h))}return d},lf.prototype._n=function(t,e,n,i){if(!lf.availabilities.numberFormat)return"";if(!n){var r=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return r.format(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),a=o&&o.format(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},i))}return a||""},lf.prototype.n=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.locale,r=null,o=null;return 1===e.length?jh(e[0])?r=e[0]:Kh(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(r=e[0].key),o=Object.keys(e[0]).reduce((function(t,n){var i;return ep(zh,n)?Object.assign({},t,(i={},i[n]=e[0][n],i)):t}),null)):2===e.length&&(jh(e[0])&&(r=e[0]),jh(e[1])&&(i=e[1])),this._n(t,i,r,o)},lf.prototype._ntp=function(t,e,n,i){if(!lf.availabilities.numberFormat)return[];if(!n){var r=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return r.formatToParts(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),a=o&&o.formatToParts(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,i)}return a||[]},Object.defineProperties(lf.prototype,cf),Object.defineProperty(lf,"availabilities",{get:function(){if(!tf){var t="undefined"!==typeof Intl;tf={dateTimeFormat:t&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:t&&"undefined"!==typeof Intl.NumberFormat}}return tf}}),lf.install=Ep,lf.version="8.27.0";var uf=lf;$n.a.use(uf);const df={zh:{_t:{select:{placeholder:"请选择",upperLimit:"最多只能选择{count}项"},region:{province:"省",city:"市",county:"区县",address:"详细街道地址"},transfer:{title:"数据",titleLeft:"全部{name}",titleRight:"已选{name}",searchPlaceholder:"输入关键词搜索"},switch:{open:"开启",close:"关闭"},datetime:{placeholder:"请选择",placeholderStart:"开始",placeholderEnd:"结束",month:{0:"一月",1:"二月",2:"三月",3:"四月",4:"五月",5:"六月",6:"七月",7:"八月",8:"九月",9:"十月",10:"十一月",11:"十二月"},weeks:{0:"日",1:"一",2:"二",3:"三",4:"四",5:"五",6:"六"}},upload:{button:"上传文件",delete:"删除",tip:"支持格式:{type}",type:{image:"图片",zip:"压缩包"},message:{limit:"最多只能上传{limit}个文件",type:"请选择{type}格式的文件",size:"上传的文件大小不得超过{size}MB"}},preview:"文件加载失败",popup:{confirmTitle:"系统提醒",button:"确定",cancelButton:"取消"},table:{more:"更多",addChild:"添加子项"},pagination:{total:"共{0}条",pageSize:"{0}条/页",pageBefore:"第",pageAfter:"页 共{0}页",prev:"上一页",next:"下一页"},validate:{fail:"提交数据有误,请检查后重试"},empty:"暂无相关信息"}},en:{_t:{select:{placeholder:"please select",upperLimit:"Maximum {count} selection allowed"},region:{province:"province",city:"city",county:"county",address:"address"},transfer:{title:"data",titleLeft:"All {name}",titleRight:"Selected {name}",searchPlaceholder:"Enter keyword search"},switch:{open:"open",close:"close"},datetime:{placeholder:"please select",placeholderStart:"start",placeholderEnd:"end",month:{0:"Jan",1:"Feb",2:"Mar",3:"Apr",4:"May",5:"Jun",6:"Jul",7:"Aug",8:"Sep",9:"Oct",10:"Nov",11:"Dec"},weeks:{0:"Su",1:"Mo",2:"Tu",3:"We",4:"Th",5:"Fr",6:"Sa"}},upload:{button:"Upload File",delete:"Delete",tip:"Supported formats: {type}",type:{image:"image",zip:"zip package"},message:{limit:"You can only upload up to {limit} files",type:"Please select a file of type {type}",size:"Uploaded file size must not exceed {size}MB"}},preview:"File loading failed",popup:{confirmTitle:"System reminder",button:"OK",cancelButton:"Cancel"},table:{more:"More",addChild:"Add child"},pagination:{total:"Total {0} results",pageSize:"{0} / page",pageBefore:"Page",pageAfter:"of {0}",prev:"Previous",next:"Next"},validate:{fail:"Data is in error, please check and retry"},empty:"The data is empty"}}};var hf=function(t={locale:"zh",messages:{}}){if(t.messages)for(let e in df)t.messages[e]=Object.assign(t.messages[e]||{},df[e]);return new uf(t)},pf=(n("88a7"),n("271a"),n("5494"),n("5b81"),n("bc3a")),ff=n.n(pf);function mf(t,e){const n=new t;function i(t){var n=(new Date).getTime(),i=function(t){return Ih.a.AES.encrypt(t,Ih.a.enc.Utf8.parse(e.request.enKey),{iv:Ih.a.enc.Utf8.parse(),mode:Ih.a.mode.ECB,padding:Ih.a.pad.Pkcs7}).toString()}(JSON.stringify(t));return{ciphertext:i,timestamp:n,sign:Ih.a.MD5(i+n+e.request.md5Key).toString()}}function r(t){return JSON.parse(Ih.a.AES.decrypt(t,Ih.a.enc.Utf8.parse(e.request.deKey),{iv:Ih.a.enc.Utf8.parse(),mode:Ih.a.mode.ECB,padding:Ih.a.pad.Pkcs7}).toString(Ih.a.enc.Utf8))}t.prototype.$onBus=function(t,e){n.$on(t,e)},t.prototype.$offBus=function(t){n.$off(t)},t.prototype.$emitBus=function(t,e){n.$emit(t,e)},t.prototype.request=function(t){t=Object.assign({method:"post",data:{},success:()=>{},fail:()=>{},complete:()=>{},response:()=>{}},t);const n=t.data;t.data=e.request.dataFormatter(i(t.data)),"get"==t.method&&(t.params=t.data,delete t.data);let o=t.loading&&this.$loading(Object.assign({timeout:e.request.timeout},"object"==typeof t.loading?t.loading:void 0));const a=ff.a.CancelToken.source(),s=ff.a.create({baseURL:e.request.baseUrl,headers:e.request.headers,cancelToken:a.token})(t).then(i=>{if(clearTimeout(c),delete ff.a.requestQueue[l],o&&o.close(),"blob"!=t.responseType){try{const o=r(i.data.ciphertext);e.request.log&&console.group(`----- success ${t.url.split("?")[0]} -----`),e.request.log&&console.log("@param",n),e.request.log&&console.log("@return",o);try{!1!==e.request.response(o,ff.a.requestQueue)&&(o.code==e.request.successCode?t.success&&t.success(o.obj,o.message):t.fail&&!1===t.fail(o.code,o.obj,o.message)||this.$message({type:"fail",message:o.message||"接口出现未知异常"}))}catch(a){this.$message({type:"fail",message:"程序出现未知异常"}),console.error(a)}t.complete(o.code,o.obj,o.message),t.response(o)}catch(a){e.request.log&&console.group(`----- error ${t.url.split("?")[0]} -----`),e.request.log&&console.log("@param",n),e.request.log&&console.log("@return",i),t.fail&&!1===t.fail()||this.$message({type:"fail",message:"数据出现未知异常"})}e.request.log&&console.log(`----- end ${t.url.split("?")[0]} -----`),e.request.log&&console.groupEnd()}else t.success(i)}).catch(t=>{clearTimeout(c),delete ff.a.requestQueue[l],o&&o.close(),"cancel"!=t.message&&this.$message({type:"fail",message:"网络出现未知异常"})});ff.a.requestQueue||(ff.a.requestIndex=0,ff.a.requestQueue={});const l=ff.a.requestIndex++;s.abort=()=>{a.cancel("cancel")},ff.a.requestQueue[l]=s;const c=setTimeout(()=>{s.abort()},e.request.timeout);return s},t.prototype.download=function(t){this.request({method:"get",url:t.url,responseType:"blob",loading:t.loading||!0,success:e=>{const n=new Blob([e.data],{type:e.data.type}),i=document.createElement("a");i.href=window.URL.createObjectURL(n),i.download=t.fileName||"未命名文件",i.click(),window.URL.revokeObjectURL(i.href)}})},t.prototype.wsRequest=function(t){t=Object.assign({open:()=>{},error:()=>{},message:()=>{},close:()=>{}},t);const n=new WebSocket(`${e.wsRequest.baseUrl}${t.url}`);function r(n,i){e.wsRequest.log&&console.group(`----- ${n} ws:${t.url} -----`),e.wsRequest.log&&console.log("send"==n?"@param":"@return",i),e.wsRequest.log&&console.log(`----- end ws:${t.url} -----`),e.wsRequest.log&&console.groupEnd()}return n.onopen=e=>{r("open",e),t.open(e)},n.onerror=e=>{r("error",e),t.error(e)},n.onmessage=n=>{r("message",n),t.message(n);try{const r=JSON.parse(n.data||"{}");try{!1!==e.wsRequest.response(r,ff.a.requestQueue)&&(r.code==e.wsRequest.successCode?t.success&&t.success(r.obj,r.message):t.fail&&!1===t.fail(r.code,r.obj,r.message)||this.$message({type:"fail",message:r.message||"接口出现未知异常"}))}catch(i){this.$message({type:"fail",message:"程序出现未知异常"}),console.error(i)}}catch(i){t.fail&&!1===t.fail()||this.$message({type:"fail",message:"数据出现未知异常"})}},n.onclose=e=>{r("close",e),t.close(e)},{send:t=>{r("send",t),n.send(JSON.stringify(e.wsRequest.dataFormatter(i(t))))},close:(t,e)=>{n.close(t,e)}}},t.prototype.auth=function(t){let n=e.data.authority();return Array.isArray(t)||(t=[t]),!t.find(t=>!n.includes(t))},t.prototype.parsePixel=function(t,e){let n=0;return t&&/^[^\+]+([\+|-].+)+$/.test(t)?t.toString().replaceAll("-","+-").split("+").forEach(t=>{(""+t).includes("vw")?n+=document.body.clientWidth*parseInt(t)/100:(""+t).includes("vh")?n+=window.innerHeight*parseInt(t)/100:n+=parseInt(t)||0}):n=t,e&&/^\d+(.\d+)?$/.test(n)?n+"px":n}}Date.prototype.format=function(t="yyyy-MM-dd hh:mm:ss"){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr((""+e[n]).length)));return t};const gf={},vf={},bf={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=","{":"[","}":"]",":":";",'"':"'","<":",",">":".","?":"/"," ":"space",arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right"};document.addEventListener("keydown",(function(t){if(t.key)switch(t.key){case"Shift":_f.shift=!0;break;case"Control":_f.ctrl=!0;break;case"Alt":_f.alt=!0;break;default:_f.keymap(t.key.toLowerCase(),t)}})),document.addEventListener("keyup",(function(t){switch(t.key){case"Shift":_f.shift=!1;break;case"Control":_f.ctrl=!1;break;case"Alt":_f.alt=!1;break}}));const _f={config:function(t){for(var e in t)gf[e]=t[e];return _f},listener(t,e){return("object"!=typeof t?[t]:t).forEach((function(t){vf[t]=e})),_f},stop(t){return("object"!=typeof t?[t]:t).forEach((function(t){delete vf[t]})),_f},keymap:function(t,e){return t=(this.ctrl?"ctrl+":"")+(this.shift?"shift+":"")+(this.alt?"alt+":"")+(bf[t]||t),vf[t]&&(e&&e.preventDefault(),vf[t]({key:t})),_f}};var yf=_f,wf={request:{md5Key:"",enKey:"",deKey:"",log:!1,baseUrl:"",headers:"",successCode:200,timeout:1e4,dataFormatter(t){return t},response(){}},wsRequest:{log:!1,baseUrl:"",successCode:200,dataFormatter(t){return t},response(){}},uploadFile(){},i18n:{locale:"zh",messages:{zh:{},en:{}}},theme:{main:"#11B295",mainHover:"#40C0A9",lesser:"#C70000",lesserHover:"#D70000",adorn:""},color:{red:["#F56C6C","#F78989"],green:["#67C23A","#85CE61"],blue:["#409EFF","#66B1FF"],yellow:["#E6A23C","#EBB563"]},style:{unitBorder:"#ddd",unitHoverBorder:"#bbb",unitActiveBorder:"#999",unitDisabled:"#F5F5F5",unitWarn:"#FF5555",unitLine:"#ddd",buttonSize:{normal:{height:"34px","border-radius":"2px",padding:"0 1em","font-size":"13px"},upload:{height:"34px","border-radius":"2px",padding:"0 1em","font-size":"13px"},form:{"min-width":"110px",height:"36px",padding:"0 2em"},confirm:{height:"38px",padding:"0 24px"},dialog:{height:"38px",padding:"0 24px"}},tabList:{},table:{showColBorder:!0,border:"#ccc",headBorder:"#ddd",headBackground:"#F2F4F7",rowBorder:"#eee",rowBorderStyle:"dashed",rowBackground:"#fff",rowEvenBackground:"#FAFCFE",rowHoverBackground:"#f3f3f3",rowHlBackground:"#FFF883",summedBackground:"#FFFFCC"}},empty:{normal:{icon:n("3565"),message:"_t.empty"}},config:{select:{search:!1},layout:{col:12,margin:20,gap:20},tooltip:{color:"black"},form:{breakWhenFail:!0},table:{fixedWidth:!1,colEllipsis:!1},module:{tabType:"tab"}},validate:{regexp:{}},data:{authority(){return[]},options:{},region(){return[]}}};const xf=[yn,Cn,On,Vn,Qn,ri,ui,bi,Si,Bi,Ii,Ui,Yi,tr,ar,hr,br,Sr,Br,_s,Ds,Fs,Us,Ys,tl,al,hl,bl,Sl,Bl,Il,Yl,tc,hc,ac,Sc,bc,Bc,Ic,Uc,Yc,lu,fu,yu,Cu,$u,zu,ju,Zu,id,ud,vd,kd,Td,Id],kf=[Ud,Gd,nh],Sf=[lh,fh,yh,Ch,$h];let Df;function Cf(t,e){t.use(Mh.a),t.use(mf,e),Df=hf(e.i18n),function t(e,n){for(let i in e)void 0===n[i]?n[i]=e[i]:"object"==typeof n[i]&&t(e[i],n[i])}(wf,e),t.prototype.$compsConfig=e,document.documentElement.style.setProperty("--color-main",e.theme.main),document.documentElement.style.setProperty("--color-main-hover",e.theme.mainHover),document.documentElement.style.setProperty("--color-lesser",e.theme.lesser),document.documentElement.style.setProperty("--color-lesser-hover",e.theme.lesserHover),document.documentElement.style.setProperty("--color-adorn",e.theme.adorn);for(let r in e.color){let t=e.color[r];document.documentElement.style.setProperty("--color-"+r,t[0]),document.documentElement.style.setProperty(`--color-${r}-hover`,t[1])}document.documentElement.style.setProperty("--unit-border",e.style.unitBorder),document.documentElement.style.setProperty("--unit-hover-border",e.style.unitHoverBorder),document.documentElement.style.setProperty("--unit-active-border",e.style.unitActiveBorder),document.documentElement.style.setProperty("--unit-disabled",e.style.unitDisabled),document.documentElement.style.setProperty("--unit-warn",e.style.unitWarn),document.documentElement.style.setProperty("--unit-line",e.style.unitLine),document.documentElement.style.setProperty("--table-border",e.style.table.border),document.documentElement.style.setProperty("--table-head-border",e.style.table.headBorder||e.style.table.headBackground),document.documentElement.style.setProperty("--table-head-background",e.style.table.headBackground),document.documentElement.style.setProperty("--table-row-border",e.style.table.rowBorder),document.documentElement.style.setProperty("--table-row-border-style",e.style.table.rowBorderStyle),document.documentElement.style.setProperty("--table-row-background",e.style.table.rowBackground),document.documentElement.style.setProperty("--table-row-even-background",e.style.table.rowEvenBackground||e.style.table.rowBackground),document.documentElement.style.setProperty("--table-row-hover-background",e.style.table.rowHoverBackground),document.documentElement.style.setProperty("--table-row-hl-background",e.style.table.rowHlBackground),document.documentElement.style.setProperty("--table-col-border",e.style.table.showColBorder?"1px":"1px 0"),document.documentElement.style.setProperty("--table-summed-background",e.style.table.summedBackground),xf.forEach(e=>{t.component(e.name,{...e,i18n:Df})}),kf.forEach(e=>{let n=document.createElement("div");document.body.appendChild(n),new(t.extend(e))({i18n:Df,el:n,mounted(){t.prototype["$"+e.name]=this.main}})});var n=[],i=document.createElement("div");i.style.zIndex=9001,i.style.position="fixed",i.style.right=0,i.style.top=0,document.body.appendChild(i),Sf.forEach(e=>{let r=t.extend(e);t.prototype["$"+e.name]=function(t={}){let o;if(t.dom=t.dom||document.body,"loading"==e.name&&t.dom._$loading)return t.dom._$loading.start(),t.dom._$loading;let a=new Promise(a=>{switch(o=new r({i18n:Df,el:document.createElement("div"),data(){return t},mounted(){"notice"==this.$options.name&&this.$nextTick(()=>{i.clientHeight>window.innerHeight&&n[0].close()})},beforeDestroy(){"notice"==this.$options.name?this.$nextTick(()=>{n.splice(n.findIndex(t=>t==this),1),i.clientHeight>window.innerHeight&&n[0].close()}):"confirm"==this.$options.name&&a(this.state)}}),e.name){case"notice":n.push(o),i.appendChild(o.$el);break;default:t.dom.appendChild(o.$el)}});return"confirm"==e.name?a:o}}),t.prototype.$loadOver=function(){document.body._$loading&&document.body._$loading.close()}}function Ef(t,e=500,n=!0){var i,r,o,a,s,l=function(){var c=(new Date).getTime()-a;c<e&&c>=0?i=setTimeout(l,e-c):(i=null,n||(s=t.apply(o,r),i||(o=r=null)))};return function(){o=this,r=arguments,a=(new Date).getTime();var c=n&&!i;return i||(i=setTimeout(l,e)),c&&(s=t.apply(o,r),o=r=null),s}}function Af(t,e=100,n=!0,i=!0){var r,o,a,s=null,l=0,c=function(){l=n?(new Date).getTime():0,s=null,a=t.apply(r,o),s||(r=o=null)};return function(){var u=(new Date).getTime();l||n||(l=u);var d=e-(u-l);return r=this,o=arguments,d<=0||d>e?(s&&(clearTimeout(s),s=null),l=u,a=t.apply(r,o),s||(r=o=null)):s||i||(s=setTimeout(c,d)),a}}const Tf={set:function(t,e,n){var i=new Date;i.setTime(i.getTime()+1e3*n),document.cookie=t+"="+e+";expires="+i+";path=/"},get:function(t){for(var e=document.cookie.replace(/\s/g,"").split(";"),n=0;n<e.length;n++){var i=e[n].split("=");if(i[0]==t)return decodeURIComponent(i[1])}return""},remove:function(t){Vue.prototype.cookie.set(t,"",-1)}},Bf=function(t=""){let e="",n="";if(t)if(t=t.split("?")[0],/^data:.*;base64,/.test(t)){let i=t.match(/^data:([a-z]*)\/(.*);base64,/);e=t,n=i[2]}else n=t.match(/\.([^\/\.]*)$/),n=n?n[1]:"",e=t.match(n?/([^\/]*)\.[^\/\.]*$/:/([^\/]*)$/)[1];let i=!1;return/(png|jpg|jpe?g|gif)$/i.test(n)?i="image":/(mp4)$/i.test(n)&&(i="video"),{name:e,suffix:n,media:i}};var Ff=Cf;e["default"]=Ff},fc6a:function(t,e,n){"use strict";var i=n("44ad"),r=n("1d80");t.exports=function(t){return i(r(t))}},fdbf:function(t,e,n){"use strict";var i=n("04f8");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
|
|
25
|
+
function Or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ur(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Or(Object(n),!0).forEach((function(e){Wr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kr(t){return Kr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(t)}function Wr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jr(){return jr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jr.apply(this,arguments)}function Vr(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}function qr(t,e){if(null==t)return{};var n,i,r=Vr(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var Yr="1.15.2";function Xr(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var Gr=Xr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Zr=Xr(/Edge/i),Qr=Xr(/firefox/i),Jr=Xr(/safari/i)&&!Xr(/chrome/i)&&!Xr(/android/i),to=Xr(/iP(ad|od|hone)/i),eo=Xr(/chrome/i)&&Xr(/android/i),no={capture:!1,passive:!1};function io(t,e,n){t.addEventListener(e,n,!Gr&&no)}function ro(t,e,n){t.removeEventListener(e,n,!Gr&&no)}function oo(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function ao(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function so(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&oo(t,e):oo(t,e))||i&&t===n)return t;if(t===n)break}while(t=ao(t))}return null}var lo,co=/\s+/g;function uo(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(co," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(co," ")}}function ho(t,e,n){var i=t&&t.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"===typeof n?"":"px")}}function po(t,e){var n="";if("string"===typeof t)n=t;else do{var i=ho(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function fo(t,e,n){if(t){var i=t.getElementsByTagName(e),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function mo(){var t=document.scrollingElement;return t||document.documentElement}function go(t,e,n,i,r){if(t.getBoundingClientRect||t===window){var o,a,s,l,c,u,d;if(t!==window&&t.parentNode&&t!==mo()?(o=t.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,c=o.right,u=o.height,d=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!Gr))do{if(r&&r.getBoundingClientRect&&("none"!==ho(r,"transform")||n&&"static"!==ho(r,"position"))){var h=r.getBoundingClientRect();a-=h.top+parseInt(ho(r,"border-top-width")),s-=h.left+parseInt(ho(r,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(r=r.parentNode);if(i&&t!==window){var p=po(r||t),f=p&&p.a,m=p&&p.d;p&&(a/=m,s/=f,d/=f,u/=m,l=a+u,c=s+d)}return{top:a,left:s,bottom:l,right:c,width:d,height:u}}}function vo(t,e,n){var i=ko(t,!0),r=go(t)[e];while(i){var o=go(i)[n],a=void 0;if(a="top"===n||"left"===n?r>=o:r<=o,!a)return i;if(i===mo())break;i=ko(i,!1)}return!1}function bo(t,e,n,i){var r=0,o=0,a=t.children;while(o<a.length){if("none"!==a[o].style.display&&a[o]!==Ma.ghost&&(i||a[o]!==Ma.dragged)&&so(a[o],n.draggable,t,!1)){if(r===e)return a[o];r++}o++}return null}function _o(t,e){var n=t.lastElementChild;while(n&&(n===Ma.ghost||"none"===ho(n,"display")||e&&!oo(n,e)))n=n.previousElementSibling;return n||null}function yo(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ma.clone||e&&!oo(t,e)||n++;return n}function wo(t){var e=0,n=0,i=mo();if(t)do{var r=po(t),o=r.a,a=r.d;e+=t.scrollLeft*o,n+=t.scrollTop*a}while(t!==i&&(t=t.parentNode));return[e,n]}function xo(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}function ko(t,e){if(!t||!t.getBoundingClientRect)return mo();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=ho(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return mo();if(i||e)return n;i=!0}}}while(n=n.parentNode);return mo()}function So(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Do(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function Co(t,e){return function(){if(!lo){var n=arguments,i=this;1===n.length?t.call(i,n[0]):t.apply(i,n),lo=setTimeout((function(){lo=void 0}),e)}}}function Eo(){clearTimeout(lo),lo=void 0}function Ao(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function To(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Bo(t,e,n){var i={};return Array.from(t.children).forEach((function(r){var o,a,s,l;if(so(r,e.draggable,t,!1)&&!r.animated&&r!==n){var c=go(r);i.left=Math.min(null!==(o=i.left)&&void 0!==o?o:1/0,c.left),i.top=Math.min(null!==(a=i.top)&&void 0!==a?a:1/0,c.top),i.right=Math.max(null!==(s=i.right)&&void 0!==s?s:-1/0,c.right),i.bottom=Math.max(null!==(l=i.bottom)&&void 0!==l?l:-1/0,c.bottom)}})),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var Fo="Sortable"+(new Date).getTime();function $o(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==ho(t,"display")&&t!==Ma.ghost){e.push({target:t,rect:go(t)});var n=Ur({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=po(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(xo(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var r=!1,o=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,s=go(n),l=n.prevFromRect,c=n.prevToRect,u=t.rect,d=po(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Do(l,s)&&!Do(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(e=Mo(u,l,c,i.options)),Do(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=i.options.animation),i.animate(n,u,s,e)),e&&(r=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){ho(t,"transition",""),ho(t,"transform","");var r=po(this.el),o=r&&r.a,a=r&&r.d,s=(e.left-n.left)/(o||1),l=(e.top-n.top)/(a||1);t.animatingX=!!s,t.animatingY=!!l,ho(t,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=Lo(t),ho(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),ho(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){ho(t,"transition",""),ho(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),i)}}}}function Lo(t){return t.offsetWidth}function Mo(t,e,n,i){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*i.animation}var Po=[],Io={initializeByDefault:!0},No={mount:function(t){for(var e in Io)Io.hasOwnProperty(e)&&!(e in t)&&(t[e]=Io[e]);Po.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),Po.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=t+"Global";Po.forEach((function(i){e[i.pluginName]&&(e[i.pluginName][r]&&e[i.pluginName][r](Ur({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](Ur({sortable:e},n)))}))},initializePlugins:function(t,e,n,i){for(var r in Po.forEach((function(i){var r=i.pluginName;if(t.options[r]||i.initializeByDefault){var o=new i(t,e,t.options);o.sortable=t,o.options=t.options,t[r]=o,jr(n,o.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var o=this.modifyOption(t,r,t.options[r]);"undefined"!==typeof o&&(t.options[r]=o)}},getEventProperties:function(t,e){var n={};return Po.forEach((function(i){"function"===typeof i.eventProperties&&jr(n,i.eventProperties.call(e[i.pluginName],t))})),n},modifyOption:function(t,e,n){var i;return Po.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"===typeof r.optionListeners[e]&&(i=r.optionListeners[e].call(t[r.pluginName],n))})),i}};function Ho(t){var e=t.sortable,n=t.rootEl,i=t.name,r=t.targetEl,o=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,p=t.putSortable,f=t.extraEventProperties;if(e=e||n&&n[Fo],e){var m,g=e.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||Gr||Zr?(m=document.createEvent("Event"),m.initEvent(i,!0,!0)):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=s||n,m.item=r||n,m.clone=o,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=u,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=p?p.lastPutMode:void 0;var b=Ur(Ur({},f),No.getEventProperties(i,e));for(var _ in b)m[_]=b[_];n&&n.dispatchEvent(m),g[v]&&g[v].call(e,m)}}var zo=["evt"],Ro=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=qr(n,zo);No.pluginEvent.bind(Ma)(t,e,Ur({dragEl:Uo,parentEl:Ko,ghostEl:Wo,rootEl:jo,nextEl:Vo,lastDownEl:qo,cloneEl:Yo,cloneHidden:Xo,dragStarted:la,putSortable:ea,activeSortable:Ma.active,originalEvent:i,oldIndex:Go,oldDraggableIndex:Qo,newIndex:Zo,newDraggableIndex:Jo,hideGhostForTarget:Ba,unhideGhostForTarget:Fa,cloneNowHidden:function(){Xo=!0},cloneNowShown:function(){Xo=!1},dispatchSortableEvent:function(t){Oo({sortable:e,name:t,originalEvent:i})}},r))};function Oo(t){Ho(Ur({putSortable:ea,cloneEl:Yo,targetEl:Uo,rootEl:jo,oldIndex:Go,oldDraggableIndex:Qo,newIndex:Zo,newDraggableIndex:Jo},t))}var Uo,Ko,Wo,jo,Vo,qo,Yo,Xo,Go,Zo,Qo,Jo,ta,ea,na,ia,ra,oa,aa,sa,la,ca,ua,da,ha,pa=!1,fa=!1,ma=[],ga=!1,va=!1,ba=[],_a=!1,ya=[],wa="undefined"!==typeof document,xa=to,ka=Zr||Gr?"cssFloat":"float",Sa=wa&&!eo&&!to&&"draggable"in document.createElement("div"),Da=function(){if(wa){if(Gr)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ca=function(t,e){var n=ho(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=bo(t,0,e),o=bo(t,1,e),a=r&&ho(r),s=o&&ho(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+go(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+go(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[ka]||o&&"none"===n[ka]&&l+c>i)?"vertical":"horizontal"},Ea=function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return i===a||r===s||i+o/2===a+l/2},Aa=function(t,e){var n;return ma.some((function(i){var r=i[Fo].options.emptyInsertThreshold;if(r&&!_o(i)){var o=go(i),a=t>=o.left-r&&t<=o.right+r,s=e>=o.top-r&&e<=o.bottom+r;return a&&s?n=i:void 0}})),n},Ta=function(t){function e(t,n){return function(i,r,o,a){var s=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(i,r,o,a),n)(i,r,o,a);var l=(n?i:r).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==Kr(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Ba=function(){!Da&&Wo&&ho(Wo,"display","none")},Fa=function(){!Da&&Wo&&ho(Wo,"display","")};wa&&!eo&&document.addEventListener("click",(function(t){if(fa)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),fa=!1,!1}),!0);var $a=function(t){if(Uo){t=t.touches?t.touches[0]:t;var e=Aa(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[Fo]._onDragOver(n)}}},La=function(t){Uo&&Uo.parentNode[Fo]._isOutsideThisEl(t.target)};function Ma(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=jr({},e),t[Fo]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ca(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ma.supportPointer&&"PointerEvent"in window&&!Jr,emptyInsertThreshold:5};for(var i in No.initializePlugins(this,t,n),n)!(i in e)&&(e[i]=n[i]);for(var r in Ta(e),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Sa,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?io(t,"pointerdown",this._onTapStart):(io(t,"mousedown",this._onTapStart),io(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(io(t,"dragover",this),io(t,"dragenter",this)),ma.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),jr(this,$o())}function Pa(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Ia(t,e,n,i,r,o,a,s){var l,c,u=t[Fo],d=u.options.onMove;return!window.CustomEvent||Gr||Zr?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=i,l.related=r||e,l.relatedRect=o||go(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function Na(t){t.draggable=!1}function Ha(){_a=!1}function za(t,e,n){var i=go(bo(n.el,0,n.options,!0)),r=Bo(n.el,n.options,Wo),o=10;return e?t.clientX<r.left-o||t.clientY<i.top&&t.clientX<i.right:t.clientY<r.top-o||t.clientY<i.bottom&&t.clientX<i.left}function Ra(t,e,n){var i=go(_o(n.el,n.options.draggable)),r=Bo(n.el,n.options,Wo),o=10;return e?t.clientX>r.right+o||t.clientY>i.bottom&&t.clientX>i.left:t.clientY>r.bottom+o||t.clientX>i.right&&t.clientY>i.top}function Oa(t,e,n,i,r,o,a,s){var l=i?t.clientY:t.clientX,c=i?n.height:n.width,u=i?n.top:n.left,d=i?n.bottom:n.right,h=!1;if(!a)if(s&&da<c*r){if(!ga&&(1===ua?l>u+c*o/2:l<d-c*o/2)&&(ga=!0),ga)h=!0;else if(1===ua?l<u+da:l>d-da)return-ua}else if(l>u+c*(1-r)/2&&l<d-c*(1-r)/2)return Ua(e);return h=h||a,h&&(l<u+c*o/2||l>d-c*o/2)?l>u+c/2?1:-1:0}function Ua(t){return yo(Uo)<yo(t)?1:-1}function Ka(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;while(n--)i+=e.charCodeAt(n);return i.toString(36)}function Wa(t){ya.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var i=e[n];i.checked&&ya.push(i)}}function ja(t){return setTimeout(t,0)}function Va(t){return clearTimeout(t)}Ma.prototype={constructor:Ma,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ca=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,Uo):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=i.filter;if(Wa(n),!Uo&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!Jr||!s||"SELECT"!==s.tagName.toUpperCase())&&(s=so(s,i.draggable,n,!1),(!s||!s.animated)&&qo!==s)){if(Go=yo(s),Qo=yo(s,i.draggable),"function"===typeof c){if(c.call(this,t,s,this))return Oo({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Ro("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=so(l,i.trim(),n,!1),i)return Oo({sortable:e,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),Ro("filter",e,{evt:t}),!0})),c))return void(r&&t.cancelable&&t.preventDefault());i.handle&&!so(l,i.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(n&&!Uo&&n.parentNode===o){var l=go(n);if(jo=o,Uo=n,Ko=Uo.parentNode,Vo=Uo.nextSibling,qo=n,ta=a.group,Ma.dragged=Uo,na={target:Uo,clientX:(e||t).clientX,clientY:(e||t).clientY},aa=na.clientX-l.left,sa=na.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Uo.style["will-change"]="all",i=function(){Ro("delayEnded",r,{evt:t}),Ma.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Qr&&r.nativeDraggable&&(Uo.draggable=!0),r._triggerDragStart(t,e),Oo({sortable:r,name:"choose",originalEvent:t}),uo(Uo,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){fo(Uo,t.trim(),Na)})),io(s,"dragover",$a),io(s,"mousemove",$a),io(s,"touchmove",$a),io(s,"mouseup",r._onDrop),io(s,"touchend",r._onDrop),io(s,"touchcancel",r._onDrop),Qr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Uo.draggable=!0),Ro("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(Zr||Gr))i();else{if(Ma.eventCanceled)return void this._onDrop();io(s,"mouseup",r._disableDelayedDrag),io(s,"touchend",r._disableDelayedDrag),io(s,"touchcancel",r._disableDelayedDrag),io(s,"mousemove",r._delayedDragTouchMoveHandler),io(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&io(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Uo&&Na(Uo),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ro(t,"mouseup",this._disableDelayedDrag),ro(t,"touchend",this._disableDelayedDrag),ro(t,"touchcancel",this._disableDelayedDrag),ro(t,"mousemove",this._delayedDragTouchMoveHandler),ro(t,"touchmove",this._delayedDragTouchMoveHandler),ro(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?io(document,"pointermove",this._onTouchMove):io(document,e?"touchmove":"mousemove",this._onTouchMove):(io(Uo,"dragend",this),io(jo,"dragstart",this._onDragStart));try{document.selection?ja((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(pa=!1,jo&&Uo){Ro("dragStarted",this,{evt:e}),this.nativeDraggable&&io(document,"dragover",La);var n=this.options;!t&&uo(Uo,n.dragClass,!1),uo(Uo,n.ghostClass,!0),Ma.active=this,t&&this._appendGhost(),Oo({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ia){this._lastX=ia.clientX,this._lastY=ia.clientY,Ba();var t=document.elementFromPoint(ia.clientX,ia.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(ia.clientX,ia.clientY),t===e)break;e=t}if(Uo.parentNode[Fo]._isOutsideThisEl(t),e)do{if(e[Fo]){var n=void 0;if(n=e[Fo]._onDragOver({clientX:ia.clientX,clientY:ia.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Fa()}},_onTouchMove:function(t){if(na){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=Wo&&po(Wo,!0),a=Wo&&o&&o.a,s=Wo&&o&&o.d,l=xa&&ha&&wo(ha),c=(r.clientX-na.clientX+i.x)/(a||1)+(l?l[0]-ba[0]:0)/(a||1),u=(r.clientY-na.clientY+i.y)/(s||1)+(l?l[1]-ba[1]:0)/(s||1);if(!Ma.active&&!pa){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(Wo){o?(o.e+=c-(ra||0),o.f+=u-(oa||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");ho(Wo,"webkitTransform",d),ho(Wo,"mozTransform",d),ho(Wo,"msTransform",d),ho(Wo,"transform",d),ra=c,oa=u,ia=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Wo){var t=this.options.fallbackOnBody?document.body:jo,e=go(Uo,!0,xa,!0,t),n=this.options;if(xa){ha=t;while("static"===ho(ha,"position")&&"none"===ho(ha,"transform")&&ha!==document)ha=ha.parentNode;ha!==document.body&&ha!==document.documentElement?(ha===document&&(ha=mo()),e.top+=ha.scrollTop,e.left+=ha.scrollLeft):ha=mo(),ba=wo(ha)}Wo=Uo.cloneNode(!0),uo(Wo,n.ghostClass,!1),uo(Wo,n.fallbackClass,!0),uo(Wo,n.dragClass,!0),ho(Wo,"transition",""),ho(Wo,"transform",""),ho(Wo,"box-sizing","border-box"),ho(Wo,"margin",0),ho(Wo,"top",e.top),ho(Wo,"left",e.left),ho(Wo,"width",e.width),ho(Wo,"height",e.height),ho(Wo,"opacity","0.8"),ho(Wo,"position",xa?"absolute":"fixed"),ho(Wo,"zIndex","100000"),ho(Wo,"pointerEvents","none"),Ma.ghost=Wo,t.appendChild(Wo),ho(Wo,"transform-origin",aa/parseInt(Wo.style.width)*100+"% "+sa/parseInt(Wo.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,r=n.options;Ro("dragStart",this,{evt:t}),Ma.eventCanceled?this._onDrop():(Ro("setupClone",this),Ma.eventCanceled||(Yo=To(Uo),Yo.removeAttribute("id"),Yo.draggable=!1,Yo.style["will-change"]="",this._hideClone(),uo(Yo,this.options.chosenClass,!1),Ma.clone=Yo),n.cloneId=ja((function(){Ro("clone",n),Ma.eventCanceled||(n.options.removeCloneOnHide||jo.insertBefore(Yo,Uo),n._hideClone(),Oo({sortable:n,name:"clone"}))})),!e&&uo(Uo,r.dragClass,!0),e?(fa=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ro(document,"mouseup",n._onDrop),ro(document,"touchend",n._onDrop),ro(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,Uo)),io(document,"drop",n),ho(Uo,"transform","translateZ(0)")),pa=!0,n._dragStartId=ja(n._dragStarted.bind(n,e,t)),io(document,"selectstart",n),la=!0,Jr&&ho(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,i,r,o=this.el,a=t.target,s=this.options,l=s.group,c=Ma.active,u=ta===l,d=s.sort,h=ea||c,p=this,f=!1;if(!_a){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=so(a,s.draggable,o,!0),T("dragOver"),Ma.eventCanceled)return f;if(Uo.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return F(!1);if(fa=!1,c&&!s.disabled&&(u?d||(i=Ko!==jo):ea===this||(this.lastPutMode=ta.checkPull(this,c,Uo,t))&&l.checkPut(this,c,Uo,t))){if(r="vertical"===this._getDirection(t,a),e=go(Uo),T("dragOverValid"),Ma.eventCanceled)return f;if(i)return Ko=jo,B(),this._hideClone(),T("revert"),Ma.eventCanceled||(Vo?jo.insertBefore(Uo,Vo):jo.appendChild(Uo)),F(!0);var m=_o(o,s.draggable);if(!m||Ra(t,r,this)&&!m.animated){if(m===Uo)return F(!1);if(m&&o===t.target&&(a=m),a&&(n=go(a)),!1!==Ia(jo,o,Uo,e,a,n,t,!!a))return B(),m&&m.nextSibling?o.insertBefore(Uo,m.nextSibling):o.appendChild(Uo),Ko=o,$(),F(!0)}else if(m&&za(t,r,this)){var g=bo(o,0,s,!0);if(g===Uo)return F(!1);if(a=g,n=go(a),!1!==Ia(jo,o,Uo,e,a,n,t,!1))return B(),o.insertBefore(Uo,g),Ko=o,$(),F(!0)}else if(a.parentNode===o){n=go(a);var v,b,_=0,y=Uo.parentNode!==o,w=!Ea(Uo.animated&&Uo.toRect||e,a.animated&&a.toRect||n,r),x=r?"top":"left",k=vo(a,"top","top")||vo(Uo,"top","top"),S=k?k.scrollTop:void 0;if(ca!==a&&(v=n[x],ga=!1,va=!w&&s.invertSwap||y),_=Oa(t,a,n,r,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,va,ca===a),0!==_){var D=yo(Uo);do{D-=_,b=Ko.children[D]}while(b&&("none"===ho(b,"display")||b===Wo))}if(0===_||b===a)return F(!1);ca=a,ua=_;var C=a.nextElementSibling,E=!1;E=1===_;var A=Ia(jo,o,Uo,e,a,n,t,E);if(!1!==A)return 1!==A&&-1!==A||(E=1===A),_a=!0,setTimeout(Ha,30),B(),E&&!C?o.appendChild(Uo):a.parentNode.insertBefore(Uo,E?C:a),k&&Ao(k,0,S-k.scrollTop),Ko=Uo.parentNode,void 0===v||va||(da=Math.abs(v-go(a)[x])),$(),F(!0)}if(o.contains(Uo))return F(!1)}return!1}function T(s,l){Ro(s,p,Ur({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:i,dragRect:e,targetRect:n,canSort:d,fromSortable:h,target:a,completed:F,onMove:function(n,i){return Ia(jo,o,Uo,e,n,go(n),t,i)},changed:$},l))}function B(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function F(e){return T("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==h&&(uo(Uo,ea?ea.options.ghostClass:c.options.ghostClass,!1),uo(Uo,s.ghostClass,!0)),ea!==p&&p!==Ma.active?ea=p:p===Ma.active&&ea&&(ea=null),h===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===Uo&&!Uo.animated||a===o&&!a.animated)&&(ca=null),s.dragoverBubble||t.rootEl||a===document||(Uo.parentNode[Fo]._isOutsideThisEl(t.target),!e&&$a(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),f=!0}function $(){Zo=yo(Uo),Jo=yo(Uo,s.draggable),Oo({sortable:p,name:"change",toEl:o,newIndex:Zo,newDraggableIndex:Jo,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ro(document,"mousemove",this._onTouchMove),ro(document,"touchmove",this._onTouchMove),ro(document,"pointermove",this._onTouchMove),ro(document,"dragover",$a),ro(document,"mousemove",$a),ro(document,"touchmove",$a)},_offUpEvents:function(){var t=this.el.ownerDocument;ro(t,"mouseup",this._onDrop),ro(t,"touchend",this._onDrop),ro(t,"pointerup",this._onDrop),ro(t,"touchcancel",this._onDrop),ro(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;Zo=yo(Uo),Jo=yo(Uo,n.draggable),Ro("drop",this,{evt:t}),Ko=Uo&&Uo.parentNode,Zo=yo(Uo),Jo=yo(Uo,n.draggable),Ma.eventCanceled||(pa=!1,va=!1,ga=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Va(this.cloneId),Va(this._dragStartId),this.nativeDraggable&&(ro(document,"drop",this),ro(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Jr&&ho(document.body,"user-select",""),ho(Uo,"transform",""),t&&(la&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Wo&&Wo.parentNode&&Wo.parentNode.removeChild(Wo),(jo===Ko||ea&&"clone"!==ea.lastPutMode)&&Yo&&Yo.parentNode&&Yo.parentNode.removeChild(Yo),Uo&&(this.nativeDraggable&&ro(Uo,"dragend",this),Na(Uo),Uo.style["will-change"]="",la&&!pa&&uo(Uo,ea?ea.options.ghostClass:this.options.ghostClass,!1),uo(Uo,this.options.chosenClass,!1),Oo({sortable:this,name:"unchoose",toEl:Ko,newIndex:null,newDraggableIndex:null,originalEvent:t}),jo!==Ko?(Zo>=0&&(Oo({rootEl:Ko,name:"add",toEl:Ko,fromEl:jo,originalEvent:t}),Oo({sortable:this,name:"remove",toEl:Ko,originalEvent:t}),Oo({rootEl:Ko,name:"sort",toEl:Ko,fromEl:jo,originalEvent:t}),Oo({sortable:this,name:"sort",toEl:Ko,originalEvent:t})),ea&&ea.save()):Zo!==Go&&Zo>=0&&(Oo({sortable:this,name:"update",toEl:Ko,originalEvent:t}),Oo({sortable:this,name:"sort",toEl:Ko,originalEvent:t})),Ma.active&&(null!=Zo&&-1!==Zo||(Zo=Go,Jo=Qo),Oo({sortable:this,name:"end",toEl:Ko,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Ro("nulling",this),jo=Uo=Ko=Wo=Vo=Yo=qo=Xo=na=ia=la=Zo=Jo=Go=Qo=ca=ua=ea=ta=Ma.dragged=Ma.ghost=Ma.clone=Ma.active=null,ya.forEach((function(t){t.checked=!0})),ya.length=ra=oa=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Uo&&(this._onDragOver(t),Pa(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)t=n[i],so(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Ka(t));return e},sort:function(t,e){var n={},i=this.el;this.toArray().forEach((function(t,e){var r=i.children[e];so(r,this.options.draggable,i,!1)&&(n[t]=r)}),this),e&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(i.removeChild(n[t]),i.appendChild(n[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return so(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=No.modifyOption(this,t,e);n[t]="undefined"!==typeof i?i:e,"group"===t&&Ta(n)},destroy:function(){Ro("destroy",this);var t=this.el;t[Fo]=null,ro(t,"mousedown",this._onTapStart),ro(t,"touchstart",this._onTapStart),ro(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ro(t,"dragover",this),ro(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ma.splice(ma.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Xo){if(Ro("hideClone",this),Ma.eventCanceled)return;ho(Yo,"display","none"),this.options.removeCloneOnHide&&Yo.parentNode&&Yo.parentNode.removeChild(Yo),Xo=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(Xo){if(Ro("showClone",this),Ma.eventCanceled)return;Uo.parentNode!=jo||this.options.group.revertClone?Vo?jo.insertBefore(Yo,Vo):jo.appendChild(Yo):jo.insertBefore(Yo,Uo),this.options.group.revertClone&&this.animate(Uo,Yo),ho(Yo,"display",""),Xo=!1}}else this._hideClone()}},wa&&io(document,"touchmove",(function(t){(Ma.active||pa)&&t.cancelable&&t.preventDefault()})),Ma.utils={on:io,off:ro,css:ho,find:fo,is:function(t,e){return!!so(t,e,t,!1)},extend:So,throttle:Co,closest:so,toggleClass:uo,clone:To,index:yo,nextTick:ja,cancelNextTick:Va,detectDirection:Ca,getChild:bo},Ma.get=function(t){return t[Fo]},Ma.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ma.utils=Ur(Ur({},Ma.utils),t.utils)),No.mount(t)}))},Ma.create=function(t,e){return new Ma(t,e)},Ma.version=Yr;var qa,Ya,Xa,Ga,Za,Qa,Ja=[],ts=!1;function es(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?io(document,"dragover",this._handleAutoScroll):this.options.supportPointer?io(document,"pointermove",this._handleFallbackAutoScroll):e.touches?io(document,"touchmove",this._handleFallbackAutoScroll):io(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?ro(document,"dragover",this._handleAutoScroll):(ro(document,"pointermove",this._handleFallbackAutoScroll),ro(document,"touchmove",this._handleFallbackAutoScroll),ro(document,"mousemove",this._handleFallbackAutoScroll)),is(),ns(),Eo()},nulling:function(){Za=Ya=qa=ts=Qa=Xa=Ga=null,Ja.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(i,r);if(Za=t,e||this.options.forceAutoScrollFallback||Zr||Gr||Jr){rs(t,this.options,o,e);var a=ko(o,!0);!ts||Qa&&i===Xa&&r===Ga||(Qa&&is(),Qa=setInterval((function(){var o=ko(document.elementFromPoint(i,r),!0);o!==a&&(a=o,ns()),rs(t,n.options,o,e)}),10),Xa=i,Ga=r)}else{if(!this.options.bubbleScroll||ko(o,!0)===mo())return void ns();rs(t,this.options,ko(o,!1),!1)}}},jr(t,{pluginName:"scroll",initializeByDefault:!0})}function ns(){Ja.forEach((function(t){clearInterval(t.pid)})),Ja=[]}function is(){clearInterval(Qa)}var rs=Co((function(t,e,n,i){if(e.scroll){var r,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,c=mo(),u=!1;Ya!==n&&(Ya=n,ns(),qa=e.scroll,r=e.scrollFn,!0===qa&&(qa=ko(n,!0)));var d=0,h=qa;do{var p=h,f=go(p),m=f.top,g=f.bottom,v=f.left,b=f.right,_=f.width,y=f.height,w=void 0,x=void 0,k=p.scrollWidth,S=p.scrollHeight,D=ho(p),C=p.scrollLeft,E=p.scrollTop;p===c?(w=_<k&&("auto"===D.overflowX||"scroll"===D.overflowX||"visible"===D.overflowX),x=y<S&&("auto"===D.overflowY||"scroll"===D.overflowY||"visible"===D.overflowY)):(w=_<k&&("auto"===D.overflowX||"scroll"===D.overflowX),x=y<S&&("auto"===D.overflowY||"scroll"===D.overflowY));var A=w&&(Math.abs(b-o)<=s&&C+_<k)-(Math.abs(v-o)<=s&&!!C),T=x&&(Math.abs(g-a)<=s&&E+y<S)-(Math.abs(m-a)<=s&&!!E);if(!Ja[d])for(var B=0;B<=d;B++)Ja[B]||(Ja[B]={});Ja[d].vx==A&&Ja[d].vy==T&&Ja[d].el===p||(Ja[d].el=p,Ja[d].vx=A,Ja[d].vy=T,clearInterval(Ja[d].pid),0==A&&0==T||(u=!0,Ja[d].pid=setInterval(function(){i&&0===this.layer&&Ma.active._onTouchMove(Za);var e=Ja[this.layer].vy?Ja[this.layer].vy*l:0,n=Ja[this.layer].vx?Ja[this.layer].vx*l:0;"function"===typeof r&&"continue"!==r.call(Ma.dragged.parentNode[Fo],n,e,t,Za,Ja[this.layer].el)||Ao(Ja[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=ko(h,!1)));ts=u}}),30),os=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,r=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function as(){}function ss(){}as.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=bo(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:os},jr(as,{pluginName:"revertOnSpill"}),ss.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,i=n||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:os},jr(ss,{pluginName:"removeOnSpill"});Ma.mount(new es),Ma.mount(ss,as);var ls=Ma;function cs(t,e,n){let i;return this.columns.map((r,o)=>(e.index=n,this.span[o]&&this.span[o].row&&--this.span[o].row?(i=this.span[o].col,[]):(this.span[o]={row:"function"==typeof r.rowSpan?r.rowSpan(e,this.dataList):r.rowSpan},i&&--i?[]:(i="function"==typeof r.colSpan?r.colSpan(e,this.dataList):r.colSpan,this.span[o]&&(this.span[o].col=i),[t("td",{class:""+(r.ellipsis?"ellipsis":""),attrs:{fixed:"right"==r.fixed,last:r._last,rowspan:this.span[o]&&this.span[o].row||1,colspan:i||1},style:`${void 0!==r._position?`z-index: 10; position: sticky; ${r.fixed}: ${r._position}px;`:""} ${r.alignCenter?"text-align: center;":""}`},hs.call(this,t,e,r))]))))}function us(t,e){if(!e.expandData.children)return[];var n=[];return e.expandData.children.concat(e.expandData.add?[e.expandData.add]:[]).map((e,i)=>{n=n.concat([t("tr",{class:""+(this.currentRow==e?" z-hl":""),style:`display:${e.expandData.hidden?"none":"table-row"}; background:${"expandButton"==e.type?"#fafafa":""}`,on:{click:t=>this.clickHandle(e,t)}},["expandButton"==e.type?ds.call(this,t,e):cs.call(this,t,e,i)])].concat(us.call(this,t,e)))}),n}function ds(t,e){return[new Array(this.expandCol.index).fill(!0).map(e=>[t("td")]).concat([t("td",{attrs:{colspan:this.columns.length-this.expandCol.index}},[t("div",{style:`margin-left:${25*e.expandData.level+20}px;`},[t("button-group",[t("c-table-button",{on:{click:t=>this.store.expandAddHandle(this.expandCol,e,t)}},[this.$t(e.name)])])])])])]}function hs(t,e,n){switch(n.type){case"drag":return[t("a",{class:"c-table-drag",on:{click:t=>t.stopPropagation()}},[t("i",{class:"c-icon-sort-drag"})])];case"selector":return[t("div",{class:"flex-center-cross",on:{click:t=>t.stopPropagation()}},[t("c-checkbox",{attrs:{value:e.data[this.store.initSelected.name]},on:{change:t=>{this.store.selectHandle(e,t,n)}}})])];case"expand":var i=(!n.expandLimit||e.expandData.level<parseInt(n.expandLimit)-1)&&(n.expandButton(e)||e.expandData.children.length);return e.expand=()=>{(function t(e){e&&(this.store.expandHandle(n,e,!1,!0),t.call(this,e.expandData.parent))}).call(this,e.expandData.parent),i&&this.store.expandHandle(n,e,!1,!0)},e.fold=()=>{i&&this.store.expandHandle(n,e,!1,!1)},e.load=t=>{this.store.expandLoadHandle(n,e,void 0,t)},[t("div",{class:"flex-center-cross"},[i?[t("a",{class:"c-table-expand "+(e.expandData.state?"z-expand":""),style:`margin-left:${25*e.expandData.level}px;`,on:{click:t=>this.store.expandHandle(n,e,t)}},[e.expandData.loading?[t("i",{class:"c-icon-loading tf-spin"})]:[t("i",{class:"c-icon-angle-right"})]])]:[t("span",{style:`margin-left:${25*e.expandData.level+20}px;`})],t("div",{class:"flex-grow-auto"},[n.$scopedSlots.default?n.$scopedSlots.default(e):n.$slots.default||e.data[n.name]])])];case"sort":return["top","up","down","bottom"].map(i=>[t("a",{class:"c-table-sort c-icon-sort-"+i,on:{click:t=>this.store.sortHandle(n,e,i,t)}})]);case"button":return[t("button-group",{attrs:{limit:parseInt(n.buttonLimit),data:e.data}},[n.$scopedSlots.default(e)])];default:return n.$scopedSlots.default?n.$scopedSlots.default(e):n.$slots.default||e.data[n.name]}}var ps={render(t){return t("div",{class:"c-table-body-scroll flex-column flex-grow",style:`height: ${this.autoHeight?"auto":""};`},[this.$scopedSlots.head(),t("div",{class:"c-table-body flex-grow-auto",attrs:{empty:this.emptyState}},[this.emptyState?t("c-empty"):[this.$scopedSlots.custom?[this.dataList.map(({data:t},e)=>this.$scopedSlots.custom({data:t,index:e}))]:t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map(e=>t("col",{attrs:{width:e.resizeWidth}}))]),t("tbody",{attrs:{pointer:this.rowClick}},[this.dataList.map((e,n)=>[t("tr",{class:""+(this.currentRow==e?" z-hl":""),attrs:{drag:this.dragState},on:{click:t=>this.clickHandle(e,t)}},[cs.call(this,t,e,n)])].concat(us.call(this,t,e)))])])]]),this.$scopedSlots.summed?[this.$scopedSlots.summed()]:[]])},components:{buttonGroup:Rr},props:{autoHeight:Boolean},data(){return{store:this.$parent.store,span:{},dragState:!1}},computed:{...Pn(["dataList","columns","fixedWidth","emptyState","rowClick","currentRow","dragHandle"]),expandCol(){return this.columns.find(t=>"expand"==t.type)}},watch:{dataList(t){this.initDragSort()}},mounted(){this.initDragSort()},methods:{initDragSort(){this.$nextTick(()=>{let t=this.$el.querySelector(".c-table-body"),e=this.$el.querySelector(".c-table-body tbody");e&&new ls(e,{handle:".c-table-drag",animation:150,direction:"vertical",scroll:this.$el,scrollSensitivity:100,onStart:()=>{this.dragState=!0},onEnd:e=>{this.dragState=!1,t.style.minHeight=t.offsetHeight+"px";var n=this.store.table.getData().slice(0);n.splice(e.newIndex,0,n.splice(e.oldIndex,1)[0]),this.store.table.setData([]),this.$nextTick(()=>{this.store.table.setData(n),this.dragHandle&&this.dragHandle(this.store.table.getRow(e.newIndex)),this.$nextTick(()=>{setTimeout(()=>{t.style.minHeight="auto"})})})}})})},clickHandle(t){this.rowClick&&(this.store.commit("currentRow",t),this.store.table.$emit("rowClick",t))}}},fs={render(t){return t("div",{class:"c-table-summed",style:`min-width: ${this.columnsWidth}px;`},[t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map((e,n)=>t("col",{attrs:{width:e.resizeWidth}}))]),t("tbody",[t("tr",[this.columns.map((e,n)=>{let i=this.totalData[n];return[t("td",{class:""+(e.ellipsis?"ellipsis":""),attrs:{fixed:"right"==e.fixed,last:e._last},style:`${void 0!==e._position?`z-index: 10; position: sticky; ${e.fixed}: ${e._position}px;`:""} ${e.alignCenter?"text-align: center;":""}`},e.$scopedSlots.summed?e.$scopedSlots.summed(i):i.total)]})])])])])},data(){return{store:this.$parent.store}},computed:{...Pn(["dataList","columns","fixedWidth","columnsWidth"]),totalData(){return this.columns.map(t=>{let e=!!t.summed&&("function"==typeof t.summed?t.summed:e=>parseFloat(hs(!1,e,t))||0);if(!e)return{total:""};let n=0;return this.dataList.forEach(t=>{n+=e(t)}),{total:n}})}}},ms=function(t){return $n.a.extend({data(){return{table:t,colVm:[],colIndex:0,colIndexList:[],buttonVm:[],header:[],columns:[],initSelected:null,dataList:[],emptyState:!1,widthResize:!1,widthResizePosition:null,rowClick:!1,currentRow:null,dragHandle:null}},computed:{fixedWidth(){return this.table.fixedWidth?`width: ${this.columnsWidth}px`:""},columnsWidth(){var t=0;return this.columns.forEach(e=>{t+=parseInt(e.resizeWidth)}),t},summedRow(){return!!this.colVm.find(t=>t.summed)},allSelected(){return!(!this.initSelected||!this.dataList.length||this.dataList.find(t=>!t.data[this.initSelected.name]))}},methods:{commit(t,e){this[t]=e},insertColumn(t){this.colVm.push(t),this.updateColumn()},removeColumn(t){this.colVm.splice(this.colVm.findIndex(e=>e==t),1),this.updateColumn()},updateColumn:Af((function(){if(!this.colVm.find(t=>-1==t.index)){this.colVm.sort((t,e)=>t.index-e.index);let t=this.colVm.filter(t=>"left"==t.fixed),e=this.colVm.filter(t=>!t.fixed),n=this.colVm.filter(t=>"right"==t.fixed);this.colVm=t.concat(e).concat(n),this.header=[],this.colVm.forEach(t=>{delete t._position,delete t._last,this.insertHeader(t)}),this.header.forEach((t,e)=>{t.forEach((n,i)=>{"left"==t[i].fixed&&(t[i]._position=t[i-1]?t[i-1]._position+parseInt(t[i-1].resizeWidth):0),i=t.length-1-i,"right"==t[i].fixed&&(t[i]._position=t[i+1]?t[i+1]._position+parseInt(t[i+1].resizeWidth):0),("right"!=t[i].fixed&&t[i+1]&&"right"==t[i+1].fixed||e&&t[i].$parent._last&&!t[i+1])&&(t[i]._last=!0)})}),this.columns=this.colVm.filter(t=>!t.isParent)}}),0,!1),insertHeader(t){let e=t.headLevel;this.header[e]||this.$set(this.header,e,[]);var n=this.header[e];if("left"==t.fixed){let e=n.findIndex(t=>"left"!=t.fixed);-1==e?n.push(t):n.splice(e,0,t)}else if("right"==t.fixed)n.push(t);else{let e=n.findIndex(t=>"right"==t.fixed);e=-1==e?n.length:e,n.splice(e,0,t)}},setData(t){this.dataList=Array.from(t,t=>this.createRow({data:t}))},createRow(t={}){let e={_timestamp:(new Date).getTime(),[this.initSelected?this.initSelected.name:"_selected"]:!!this.initSelected&&!!this.initSelected.init(t)};for(let i in e)this.$set(t.data,i,e[i]);var n=Object.assign({data:t.data,index:0,expandData:{state:t.expandState||!1,loading:!1,hidden:t.expandHidden||!1,level:t.expandLevel||0,parent:t.expandParent,children:""},update:t=>{for(let e in t)this.$set(n.data,e,t[e]);this.$set(n.data,"_timestamp",(new Date).getTime())},remove:()=>{(n.expandData.parent?n.expandData.parent.expandData.children:this.dataList).splice(n.index,1)},moveTo:t=>{let e=n.expandData.parent?n.expandData.parent.expandData.children:this.dataList;if(("top"!=t&&"up"!=t||0!=n.index)&&("bottom"!=t&&"down"!=t||n.index!=e.length-1))switch(e.splice(n.index,1),t){case"top":e.unshift(n);break;case"up":e.splice(n.index-1,0,n);break;case"down":e.splice(n.index+1,0,n);break;case"bottom":e.push(n);break}},prev:()=>{let t=n.expandData.parent?n.expandData.parent.expandData.children:this.dataList;return t[n.index-1]},next:()=>{let t=n.expandData.parent?n.expandData.parent.expandData.children:this.dataList;return t[n.index+1]}},t.extend||{});return n},selectHandle(t,e,n){"all"==t?this.dataList.forEach(t=>{this.selectHandle(t,e,n)}):(!n.multiple&&e&&this.dataList.forEach(t=>{this.$set(t.data,n.name,!1)}),this.$set(t.data,n.name,e))},expandHandle(t,e,n,i=!e.expandData.state){n&&n.stopPropagation(),!i||e.expandData.children?(e.expandData.state=i,function t(e){e.expandData.add&&(e.expandData.add.expandData.hidden=!i),e.expandData.children&&e.expandData.children.forEach(e=>{e.expandData.hidden=!i,i||(e.expandData.state=i,t.call(this,e))})}.call(this,e)):this.expandLoadHandle(t,e,!0)},expandLoadHandle(t,e,n=e.expandData.state,i){e.expandData.loading||(e.expandData.loading=!0,new Promise(n=>{i?n(i):t.$emit("expand",e,n,()=>{e.expandData.loading=!1})}).then(i=>{e.expandData.state=n,e.expandData.loading=!1,function t(e,i){e.expandData.children=Array.from(i,i=>{let r=this.createRow({data:i,expandState:i.children&&i.children.length,expandLevel:e.expandData.level+1,expandParent:e,expandHidden:!n});return i.children&&i.children.length&&t.call(this,r,i.children),r})}.call(this,e,i);let r="function"==typeof t.addButton?t.addButton(e):t.addButton;e.expandData.add=r?this.createRow({expandLevel:e.expandData.level+1,expandParent:e,expandHidden:!n,extend:{type:"expandButton",name:"string"==typeof r?r:"_t.table.addChild"}}):""}))},expandAddHandle(t,e,n){n&&n.stopPropagation();var i=e.expandData.parent;t.$emit("add",i,t=>{let e=this.createRow({data:t,expandLevel:i.expandData.level+1,expandParent:i});i.expandData.children.push(e)})},sortHandle(t,e,n,i){i&&i.stopPropagation(),t._events.sort?t.$emit("sort",e,n,()=>{e.moveTo(n)}):e.moveTo(n)}}})},gs={name:"cTable",components:{cThead:Mr,cTbody:ps,cSummed:fs},props:{data:Array,height:{type:[String,Number],default:"auto"},border:Boolean,fixedWidth:{type:Boolean,default(){return this.$compsConfig.config.table.fixedWidth}},widthResize:Boolean,paging:{type:Boolean,default:!0}},data(){return{store:Ln(ms(this)),pageBar:this.paging,pageIndex:1,total:0,pageSize:20}},computed:{...Pn(["dataList","summedRow","initSelected","emptyState","widthResizePosition"]),compHeight(){return parseInt(this.height)==this.height?parseInt(this.height)+"px":this.height},pageCount(){return Math.ceil(this.total/this.pageSize)||1}},watch:{dataList(t){this.store.commit("emptyState",!t.length)},data(){this.store.setData(this.data)}},mounted(){this.updateColIndexList(),this.data&&this.store.setData(this.data),this.store.commit("widthResize",this.widthResize),this.store.commit("rowClick",!!this._events.rowClick)},updated(){this.updateColIndexList()},methods:{updateColIndexList(){let t=[];this.$refs.hidden.querySelectorAll("[index]").forEach(e=>{t.push(e.attributes.index.value)}),this.store.commit("colIndexList",t)},load(t){this.opt=t,this.update(1)},update(t){this.opt&&this.opt.url&&(this.pageBar=this.paging,t=parseInt(t||this.pageIndex)||1,t=t<1?1:t>this.pageCount?this.pageCount:t,this.pageIndex=t,this._loading&&this._loading.close(),!1!==this.opt.loading?this._loading=this.$loading({dom:this.$el}):delete this._loading,this._requestObj&&this._requestObj.abort(),this._requestObj=this.request({url:this.opt.url,data:Object.assign({pageIndex:t,pageSize:this.pageSize},this.opt.data||{}),success:t=>{t=t||[],this.opt.dataFormatter&&(t=this.opt.dataFormatter(t)),this.store.setData(t);try{this.$refs.tbody.$el.scrollTop=0}catch(e){}this.$nextTick(()=>{this.opt.success&&this.opt.success(t)})},response:t=>{this.total=this.opt.totalFormatter?this.opt.totalFormatter(t):t.total,this._loading&&this._loading.close()}}))},setData(t=[]){this.pageBar=!1,this.store.setData(JSON.parse(JSON.stringify(t)))},getData(t="all"){return this.getRow(t).map(t=>t.data)},getRow(t="all"){if("all"==t)return this.dataList;if("selected"==t)return this.initSelected?this.getRow(t=>t.data[this.initSelected.name]):[];if("function"==typeof t){let e=[];return function n(i){i&&i.forEach((i,r)=>{t(i)&&e.push(i),n.call(this,i.expandData.children)})}.call(this,this.dataList),e}{let e=[];return("object"!=typeof t?[t]:t).forEach(t=>{e.push(this.dataList[t])}),"object"==typeof t?e:e[0]}},clear(){this.store.setData([]),this.total=0,this.$nextTick(()=>{this.store.commit("emptyState",!1)})},push(t){Array.isArray(t)||(t=[t]),t.forEach(t=>{this.store.dataList.push(this.store.createRow({data:JSON.parse(JSON.stringify(t))}))})},pageHandle(t){this.pageSize=t.pageSize,this.update(t.pageIndex)}}},vs=gs,bs=(n("fab0"),d(vs,Fr,$r,!1,null,null,null)),_s=bs.exports,ys=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"none"},attrs:{index:t.colIndex}},["button"==t.type||t.$slots.default?t._t("default",null,{data:{},expandData:{}}):t._e()],2)},ws=[],xs={name:"cTableColumn",props:{type:{type:String,default:"normal"},fixed:{type:[String,Boolean],default(){return{drag:"left",selector:"left",button:"right"}[this.type]||!1}},required:Boolean,label:String,name:{type:String,default(){return"selector"==this.type?"_selected":""}},width:{type:[String,Number],default(){return{drag:37,selector:37,sort:104}[this.type]||100}},widthResize:{type:Boolean,default(){return!["drag","selector"].includes(this.type)}},alignCenter:Boolean,ellipsis:{type:Boolean,default(){return this.$compsConfig.config.table.colEllipsis}},multiple:{type:Boolean,default:!0},buttonLimit:{type:[Number,String],default:4},expandButton:{type:Function,default:()=>!0},addButton:[Boolean,String,Function],expandLimit:[String,Number],selected:{type:Function,default({data:t},e){return!!e&&!(!t||!t[e])}},colSpan:{type:[Number,String,Function],default:1},rowSpan:{type:[Number,String,Function],default:1},summed:[Function,Boolean]},data(){return{store:this.$parent.store,colIndex:this.$parent.store.colIndex++,headLevel:0,childrenCol:[],resizeWidth:parseInt(this.width)}},computed:{...Pn(["colIndexList"]),index(){return this.colIndexList.findIndex(t=>t==this.colIndex)},isParent(){return!!this.childrenCol.length},colspan(){let t=0;return this.childrenCol.forEach(e=>{e.isParent?t+=e.colspan:t+=1}),t}},watch:{"$i18n.locale"(){"button"==this.type&&this.store.buttonVm.forEach(t=>t.update())},resizeWidth(){this.store.updateColumn()},fixed(){this.store.updateColumn()}},created(){this.store.insertColumn(this),"cTableColumn"==this.$parent.$options.name&&(this.headLevel=this.$parent.headLevel+1,this.$parent.childrenCol.push(this)),"selector"==this.type?this.store.commit("initSelected",{name:this.name,init:t=>this.selected(t,this.name)}):"drag"==this.type&&this._events.drag&&this.store.commit("dragHandle",t=>{this.$emit("drag",t)})},updated(){"button"==this.type&&this.store.buttonVm.forEach(t=>t.update())},beforeDestroy(){this.store.removeColumn(this),"cTableColumn"==this.$parent.$options.name&&this.$parent.childrenCol.splice(this.$parent.childrenCol.findIndex(t=>t==this),1)}},ks=xs,Ss=d(ks,ys,ws,!1,null,null,null),Ds=Ss.exports,Cs=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"none"}},[t._t("default")],2)},Es=[],As={name:"cTableButton"},Ts=As,Bs=d(Ts,Cs,Es,!1,null,null,null),Fs=Bs.exports,$s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-form flex-wrap",attrs:{vertical:t.vertical}},[t._t("default")],2)},Ls=[];const Ms={phone:/^T?1[0-9]{10}$/,tel:/^(0[0-9]{2,3}\-?)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/,email:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,realname:/[\u4E00-\u9FA5]{2,5}(?:·[\u4E00-\u9FA5]{2,5})*/,idcard:/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,username:/^([a-zA-Z0-9\u4e00-\u9fa5_-]){4,20}$/,password:/^[\@A-Za-z0-9\!\#\$\%\^\&\*\.\~]{6,20}$/};function Ps(t,e,n){return new Promise(async i=>{if(!["regexp"].includes(n.type)||""!==t&&void 0!==t)if(n.skip&&n.skip(t,e))i(!0);else{switch(n.type){case"empty":Array.isArray(t)&&!t.length?i(!1):""!==t&&void 0!==t&&null!==t||i(!1);break;case"regexp":let r=Object.assign(Ms,$n.a.prototype.$compsConfig.validate.regexp);i(!!n.regexp.find(e=>{let n="string"==typeof e?r[e]:e;return!n||n.test(t)}));break;case"function":i(await n.fun(t,e)||!1);break}i(!0)}else i(!0)})}async function Is(t,e,n){let i,r,o,a=n.rule[e],s=e.split(".");function l(t,i){n.breakWhenFail&&$n.a.prototype.$message({message:i}),r&&r(t,i),n.itemFail&&n.itemFail(e,i)}if(function t(e,n){e&&s[n]&&(o=e[s[n]],t(o,++n))}(t,0),"function"==typeof a){let e=await a(t);return!0===e||(l("complex",e||new $n.a({i18n:Cf}).$t("_t.validate.fail")),!1)}return"object"!=typeof a||Array.isArray(a)||(i=a.skip,r=a.fail,a=a.check),!(!i||!i(o,t))||new Promise(async e=>{if("string"==typeof a&&(a=[{type:"empty",message:a}]),a&&a.length){for(let n in a)if(!await Ps(o,t,a[n]))return l(a[n].type,a[n].message||new $n.a({i18n:Cf}).$t("_t.validate.fail")),void e(!1);e(!0)}else e(!0)})}async function Ns(t,e,n){if(!Object.keys(e.rule).length)return void n(!0);let i=!0;for(let r in e.rule)if(!await Is(t,r,e)&&(i=!1,e.breakWhenFail))break;n(i)}var Hs=function(t,e){return e=Object.assign({breakWhenFail:$n.a.prototype.$compsConfig.config.form.breakWhenFail,rule:{},success:function(){},fail:function(){}},e),new Promise(n=>{Ns(t,e,(function(i){i&&e.success(t),n(i)}))})},zs={name:"cForm",props:{name:String,column:{type:[Number,String],default:1},unitWidth:{type:[Number,String],default:300},vertical:Boolean,linkParent:Boolean},data(){let{cFormStore:t}=Mn(this,"cFormStore");return{pFormStore:t,cFormStore:Ln({updateLabelLength:(t,e)=>{if(t==e)return;let n=this.labelList?this.labelList.split(","):[];t&&n.push(t),e&&n.splice(n.findIndex(t=>t==e),1),this.labelList=n.join(",")},labelLength:0,columnWidth:this.columnWidth,columnCount:0,unitWidth:this.unitWidth,vertical:this.vertical}),labelList:""}},computed:{...Pn("pFormStore",{pLabelLength(t){return t.labelLength},pUpdateLabelLength(t){return t.updateLabelLength},pColumnWidth(t){return t.columnWidth},pUnitWidth(t){return t.unitWidth},pVertical(t){return t.vertical}}),...Pn("cFormStore",["columnCount","labelLength"]),columnWidth(){return this.linkParent?this.pColumnWidth:1/parseInt(this.columnCount||this.column)*100+"%"},compUnitWidth(){return this.linkParent?this.pUnitWidth:this.unitWidth},compVertical(){return this.linkParent?this.pVertical:this.vertical}},watch:{columnWidth(t){this.cFormStore.commit("columnWidth",t)},compUnitWidth(t){this.cFormStore.commit("unitWidth",t)},compVertical(t){this.cFormStore.commit("vertical",t)},labelList(t,e){t&&(this.linkParent?this.pUpdateLabelLength(Math.max(...t.split(",")),!!e&&Math.max(...e.split(","))):this.cFormStore.commit("labelLength",Math.max(...t.split(","))))},pLabelLength(t){this.cFormStore.commit("labelLength",t)}},created(){this.cFormStore.commit("columnWidth",this.columnWidth),this.linkParent&&(this.cFormStore.commit("unitWidth",this.pUnitWidth),this.cFormStore.commit("vertical",this.pVertical))},methods:{eachUnit(t){!function e(n,i){for(let r=0;r<n.length;r++){let o=n[r];if(["cForm","cFormItem"].includes(o.$options.name)&&o.name||["cInput","cRadioGroup","cCheckboxGroup","cSelect","cRegion","cDatetime","cColor","cUploadFile","cSwitch","cEditor","cTransfer"].includes(o.$options.name)){if(["cFormItem","cRadioGroup","cCheckboxGroup"].includes(o.$options.name)&&e(o.$children,i),!1===t(o,i))break}else["cTable"].includes(o.$options.name)||e(o.$children,"cFormItem"==o.$options.name?o:i)}}(this.$children)},set(t={}){this.eachUnit((e,n)=>{if(n&&n.warn(!1),"cRegion"==e.$options.name){let n={},i=["province","city","county","address"];for(let r in i){let o=i[r]+"Name";if(!e[o]||void 0===t[e[o]]||null===t[e[o]])break;n[i[r]]=t[e[o]]}e.set(n)}else"cDatetime"==e.$options.name&&e.range?t[e.startName]&&t[e.endName]&&e.set([t[e.startName],t[e.endName]]):"cFormItem"==e.$options.name?e.warn(!1):e.name&&void 0!==t[e.name]&&null!==t[e.name]&&e.set(t[e.name])})},get(){var t={};return this.eachUnit(e=>{if("cRegion"==e.$options.name){let n=e.get();e.provinceName&&(t[e.provinceName]=n.province),e.cityName&&(t[e.cityName]=n.city),e.countyName&&(t[e.countyName]=n.county),e.addressName&&(t[e.addressName]=n.address)}else if("cDatetime"==e.$options.name&&e.range){let n=e.get()||[];e.startName&&(t[e.startName]=n[0]),e.endName&&(t[e.endName]=n[1])}else e.name&&"cFormItem"!=e.$options.name&&(t[e.name]=e.get())}),t},clear(){this.eachUnit((t,e)=>{e&&e.warn(!1),"cForm"==t.$options.name?t.clear():"cFormItem"==t.$options.name?t.warn(!1):t.set()})},validate(t){t=Object.assign({breakWhenFail:this.$compsConfig.config.form.breakWhenFail},t),t.breakWhenFail||(t.itemFail=(t,e)=>{let n=t.split(".");!function t(i,r){if(n[r]){let o=n[r];i.eachUnit((n,i)=>{if("cForm"==n.$options.name)t(n,++r);else if("cFormItem"==n.$options.name){if(n.name==o)return n&&n.warn(e),!1}else if("cRegion"==n.$options.name){if([n.provinceName,n.cityName,n.countyName,n.addressName].includes(o))return i&&i.warn(e),!1}else if("cDatetime"==n.$options.name&&n.range){if([n.startName,n.endName].includes(o))return i&&i.warn(e),!1}else if(n.name==o)return i&&i.warn(e),!1})}}(this,0)}),Hs(t.beforeValid?t.beforeValid(this.get()):this.get(),t)},submit(t){const e=t.success,n=t.fail;t.success=i=>{t.url&&(t.dataFormatter&&(i=t.dataFormatter(i)),this.request({url:t.url,data:i,loading:!0,success:(t,n)=>{e&&e(i,t,n)},fail:(t,e,r)=>n?n(i,t,e,r):void 0}))},this.validate(t)}}},Rs=zs,Os=(n("00f1"),d(Rs,$s,Ls,!1,null,null,null)),Us=Os.exports,Ks=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-form-item",style:{width:t.compWidth},attrs:{vertical:t.vertical}},[e("div",{class:[t.vertical?"flex-column":"flex"]},[e("div",{class:{"flex-between-center":t.vertical},style:{width:t.vertical?t.compUnitWidth:"auto"}},[!1!==t.label?e("div",{staticClass:"c-form-item-label flex-grow",class:[t.vertical?"flex-start-center":"flex-end-center"],style:{"min-width":t.labelLength+"em"}},[t.required?e("b",[t._v("*")]):t._e(),e("span",[t._v(t._s(t.compLabel))])]):t._e(),t.vertical&&t.$slots.handle?e("div",{staticClass:"c-form-item-handle flex-center-cross"},[t._t("handle")],2):t._e()]),e("div",{staticClass:"flex-grow-auto",class:{"flex-column":t.vertical}},[e("div",{staticClass:"c-form-item-unit",style:{width:t.compUnitWidth,"padding-left":t.contentMarginLeft}},[e("div",{staticClass:"flex-center"},[e("div",{staticClass:"flex-grow"},[t._t("default")],2),!t.vertical&&t.$slots.handle?e("div",{staticClass:"c-form-item-handle flex-center-cross"},[t._t("handle")],2):t._e()])]),t.$slots.tip?e("div",{staticClass:"c-form-item-tip",style:{"margin-left":t.contentMarginLeft}},[t._t("tip")],2):t.tip?e("div",{staticClass:"c-form-item-tip",style:{"margin-left":t.contentMarginLeft}},[t._v(t._s(t.$t(t.tip)))]):t._e(),t.warnState?e("div",{staticClass:"c-form-item-warn",style:{"margin-left":t.contentMarginLeft}},[e("i",{staticClass:"c-icon-message-warn"}),t._v(t._s(t.warnMsg))]):t._e()])])])},Ws=[],js={name:"cFormItem",props:{colspan:{type:[Number,String],default:1},label:{type:[String,Boolean],default:""},name:String,width:[Number,String],required:Boolean,tip:[String,Number]},data(){return{...Mn(this,"cFormStore"),cFormItemStore:Ln({warnState:!1}),warnMsg:!1}},computed:{...Pn("cFormStore",["columnWidth","updateLabelLength","labelLength","unitWidth","vertical"]),...Pn("cFormItemStore",["warnState"]),compWidth(){return"cFormColumn"==this.$parent.$options.name?"100%":`calc(${parseFloat(this.columnWidth)*parseInt(this.colspan)+"%"} - 20px)`},compUnitWidth(){return this.parsePixel(this.width||this.unitWidth,!0)},compLabel(){return this.$t(this.label)},compLabelLength(){return this.compLabel.length*("zh"==this.$i18n.locale?1:.5)+(this.required?1:0)},contentMarginLeft(){return this.vertical||!1===this.label?0:"10px"}},watch:{compLabelLength(t,e){this.updateLabelLength(t,e)}},created(){this.updateLabelLength(this.compLabelLength)},beforeDestroy(){this.updateLabelLength(!1,this.compLabelLength)},methods:{warn(t){this.warnMsg=t,this.cFormItemStore.commit("warnState",!!t)}}},Vs=js,qs=d(Vs,Ks,Ws,!1,null,null,null),Ys=qs.exports,Xs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-form-column flex-column",style:{width:t.compWidth}},[t._t("default")],2)},Gs=[],Zs={name:"cFormColumn",data(){return{...Mn(this,"cFormStore")}},created(){this.cFormStore.commit("columnCount",this.columnCount+1)},beforeDestroy(){this.cFormStore.commit("columnCount",this.columnCount-1)},computed:{...Pn("cFormStore",["columnWidth","columnCount"]),compWidth(){return`calc(${this.columnWidth} - 20px)`}}},Qs=Zs,Js=d(Qs,Xs,Gs,!1,null,null,null),tl=Js.exports,el=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-detail"},[e("div",{staticClass:"c-detail-content flex-wrap"},[t._t("default")],2)])},nl=[],il={name:"cDetail",props:{column:{type:[Number,String],default:1}},data(){return{cDetailStore:Ln({columnWidth:this.columnWidth})}},computed:{columnWidth(){return 1/parseInt(this.column)*100+"%"}},watch:{columnWidth(t){this.cDetailStore.commit("columnWidth",t)}},created(){this.cDetailStore.commit("columnWidth",this.columnWidth)}},rl=il,ol=(n("01d4"),d(rl,el,nl,!1,null,null,null)),al=ol.exports,sl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-detail-item flex flex-grow",style:{width:t.compWidth}},[e("label",{staticClass:"c-detail-item-label flex-end-main"},[t._v(t._s(t.$t(t.label)))]),e("div",{staticClass:"c-detail-item-content flex-grow"},[t._t("default")],2)])},ll=[],cl={name:"cDetailItem",props:{colspan:{type:[Number,String],default:1},label:String},data(){return{...Mn(this,"cDetailStore")}},computed:{...Pn("cDetailStore",["columnWidth"]),compWidth(){return parseFloat(this.columnWidth)*parseInt(this.colspan)+"%"}}},ul=cl,dl=d(ul,sl,ll,!1,null,null,null),hl=dl.exports,pl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-page flex-column",on:{click:function(e){return t.$emit("click")}}},[t._t("default")],2)},fl=[],ml={name:"page"},gl=ml,vl=(n("0fe0"),d(gl,pl,fl,!1,null,"57657f9d",null)),bl=vl.exports,_l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-module flex-column",class:{"flex-grow":t.complex,"flex-grow-auto":!t.height}},[t.tabList?e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabList,type:t.tabType,immediate:!1},on:{change:t.tabHandle}}):t.title||t.$slots.head?e("div",{staticClass:"c-module-head flex"},[t.title?e("div",{staticClass:"c-module-title flex-baseline"},[e("p",[t._v(t._s(t.$t(t.title)))]),t.subTitle?e("span",[t._v(t._s(t.$t(t.subTitle)))]):t._e()]):t._e(),t.$slots.head?e("div",{staticClass:"flex-grow"},[t._t("head")],2):t._e()]):t._e(),e("module-content",{attrs:{height:t.compHeight,enableFlex:t.enableFlex}},[t._t("default")],2),e("div",{staticClass:"c-module-foot"},[t.$slots.foot?e("div",[t._t("foot")],2):t._e(),t.$slots.button?e("div",{staticClass:"c-module-button flex-center"},[t._t("button")],2):t._e()])],1)},yl=[],wl={name:"module",props:{height:[Number,String],title:String,subTitle:String,tabs:Array,tabType:{type:String,default(){return this.$compsConfig.config.module.tabType}},immediate:{type:Boolean,default:!0},enableFlex:Boolean},data(){return{tabComps:[],complex:!1}},computed:{tabList(){return this.tabComps.length?this.tabComps:this.tabs},compHeight:function(){return parseInt(this.height)==this.height?parseInt(this.height)-(this.$slots.button?60:0)+"px":this.height}},watch:{tabs(t,e){!this.immediate||e&&e.length||this.tabHandle(this.tabs[0],0)}},mounted(){this.$refs.tabList&&this.immediate&&this.$refs.tabList.changeIndex()},methods:{insertTab(t){this.$set(this.tabComps,this.tabComps.length,{name:t.name,vm:t}),this.immediate&&1==this.tabComps.length&&this.$nextTick(()=>{this.$refs.tabList.changeIndex()})},tabHandle(t,e,n){this.tabComps.length?(this._lastTabComp&&this._lastTabComp.deactivated(),this._lastTabComp=t.vm,t.vm.activated()):this.$emit("tabChange",t,e,n)},changeIndex(t){this.$refs.tabList.changeIndex(t)},changeValue(t){this.$refs.tabList.changeValue(t)}}},xl=wl,kl=(n("90ca"),d(xl,_l,yl,!1,null,null,null)),Sl=kl.exports,Dl=function(){var t=this,e=t._self._c;return e("module-content",{directives:[{name:"show",rawName:"v-show",value:!t.miniState,expression:"!miniState"}],attrs:{enableFlex:t.enableFlex},on:{resize:function(e){return t.$emit("resize",e)}}},[t._t("default"),t._t("button",null,{slot:"button"})],2)},Cl=[],El={name:"moduleCol",props:{size:String,mini:Boolean,enableFlex:Boolean},data(){return{fixedSize:this.size&&!this.size.includes("%"),scaleSize:this.size&&this.size.includes("%"),currentSize:this.size,miniState:!1}},created:function(){this.$parent.direction="row"},methods:{updateSize(){this.fixedSize?this.currentSize=this.$children[0].size:this.scaleSize&&(this.currentSize=this.$children[0].size/this.$parent.totalSize()*100+"%")}}},Al=El,Tl=d(Al,Dl,Cl,!1,null,null,null),Bl=Tl.exports,Fl=function(){var t=this,e=t._self._c;return e("module-content",{directives:[{name:"show",rawName:"v-show",value:!t.miniState,expression:"!miniState"}],attrs:{enableFlex:t.enableFlex},on:{resize:function(e){return t.$emit("resize",e)}}},[t._t("default"),t._t("button",null,{slot:"button"})],2)},$l=[],Ll={name:"moduleRow",props:{size:String,mini:Boolean,enableFlex:Boolean},data(){return{fixedSize:this.size&&!this.size.includes("%"),scaleSize:this.size&&this.size.includes("%"),currentSize:this.size,miniState:!1}},created:function(){this.$parent.direction="col"},methods:{updateSize(){this.fixedSize?this.currentSize=this.$children[0].size:this.scaleSize&&(this.currentSize=this.$children[0].size/this.$parent.totalSize()*100+"%")}}},Ml=Ll,Pl=d(Ml,Fl,$l,!1,null,null,null),Il=Pl.exports,Nl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-module-content",class:{flex:t.flexRow,"flex-column":t.flexColumn||t.enableFlex,"flex-grow-auto":t.root},style:t.sizeStyle},[t._t("default"),t.$slots.button?e("div",{staticClass:"c-module-button-box"},[e("div",{staticClass:"c-module-button flex-center"},[t._t("button")],2)]):t._e()],2)},Hl=[],zl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-module-line",class:[t.direction,{"z-active":!!t.distance}],on:{mousedown:t.dragHandle}},[e("div",{staticClass:"fold-box flex"},[e("div",{staticClass:"fold flex"},[!1!==t.foldState.prev?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.foldState.next,expression:"!foldState.next"}],staticClass:"handle prev",class:{"z-fold":t.foldState.prev},on:{mousedown:function(t){t.stopPropagation()},click:function(e){return t.flodHandle("prev")}}}):t._e(),!1!==t.foldState.next?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.foldState.prev,expression:"!foldState.prev"}],staticClass:"handle next",class:{"z-fold":t.foldState.next},on:{mousedown:function(t){t.stopPropagation()},click:function(e){return t.flodHandle("next")}}}):t._e()])]),e("div",{staticClass:"drag",style:t.position})])},Rl=[],Ol={data(){return{direction:"",foldState:{prev:!1,next:!1},distance:0}},computed:{position(){return{["col"==this.direction?"top":"left"]:this.distance+"px"}}},watch:{distance(t){document.body.style.userSelect=t?"none":"initial"}},methods:{bindComp(t,e,n){this.$parent=t,this.$prev=e,this.$next=n,this.foldState.prev=!!e.mini&&0,this.foldState.next=!!n.mini&&0},dragHandle(t){var e="col"==this.direction?t.pageY:t.pageX,n=100-this.$prev.$children[0].size,i=this.$next.$children[0].size-100;let r=t=>{let r=parseInt(("col"==this.direction?t.pageY:t.pageX)-e);this.distance=r<n?n:r>i?i:r},o=t=>{this.$prev.$children[0].size+=this.distance,this.$prev.updateSize(),this.$next.$children[0].size-=this.distance,this.$next.updateSize(),this.distance=0,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)},flodHandle(t){let e="prev"==t?this.$prev:this.$next,n="prev"==t?this.$next:this.$prev;if(this.foldState[t])e.miniState=!1,n.currentSize=n._oldSize,this.$parent.resize();else{var i=e.$children[0].size;e.miniState=!0,n._oldSize=n.currentSize,n.$children[0].size+=i,n.updateSize()}this.foldState[t]=this.foldState[t]?0:1}}},Ul=Ol,Kl=d(Ul,zl,Rl,!1,null,null,null),Wl=Kl.exports,jl={name:"moduleContent",props:{height:[String,Number],enableFlex:Boolean},data(){return{root:"module"==this.$parent.$options.name,tabs:!1,direction:"",size:0}},computed:{flexRow(){return"row"==this.direction},flexColumn(){return"col"==this.direction||this.tabs},sizeStyle(){let t=this.$parent.$parent.flexRow?this.size+"px":"",e=this.$parent.$parent.flexColumn?this.size+"px":"";return{width:t,"min-width":t,height:this.height||e,"min-height":e,overflow:this.root||!this.direction?"":"hidden"}}},watch:{size(t,e){e&&this.resizeHandle()}},mounted(){this.direction&&this.$children.forEach((t,e)=>{if(e>0){let n=$n.a.extend(Wl),i=new n({store:this.$store,el:document.createElement("div"),data:()=>({direction:this.direction})});i.bindComp(this,this.$children[e-1],t),t.$el.parentNode.insertBefore(i.$el,t.$el)}}),this.root&&(this.resize(),this.direction&&(this.$parent.complex=!0,window.addEventListener("resize",this.resize)))},activated(){this.root&&this.direction&&this.$nextTick(()=>{window.addEventListener("resize",this.resize),this.resize()})},deactivated(){this.root&&window.removeEventListener("resize",this.resize)},beforeDestroy(){this.root&&window.removeEventListener("resize",this.resize)},methods:{totalSize(){return"col"==this.direction?this.$el.offsetHeight:this.$el.offsetWidth},resize(){if(!this.direction)return;let t=this.totalSize(),e=7*(this.$children.length-1),n=[],i=[];this.$children.forEach(t=>{if(!t.miniState)if(t.scaleSize)n.push(t);else if(t.fixedSize){let n=this.miniSize(parseInt(t.currentSize));t.$children[0].size=n,e+=n}else i.push(t)});let r=t-107*(this.$children.length-1);n.forEach((n,i)=>{let o=this.miniSize(Math.floor(t*parseInt(n.currentSize)/100),r);n.$children[0].size=o,e+=o}),t-=e,i.forEach((e,n)=>{if(n==i.length-1)e.$children[0].size=this.miniSize(t);else{let n=this.miniSize(Math.floor(t/i.length));e.$children[0].size=n,t-=n}}),this.$nextTick(()=>{this.$children.forEach(t=>{t.$children[0].resize()})})},miniSize(t,e){return e&&(t=t>e?e:t),t<100?100:t},resizeHandle(){this.$emit("resize",this.$el),this.direction&&this.$children.forEach(t=>t.$children[0].resizeHandle())}}},Vl=jl,ql=d(Vl,Nl,Hl,!1,null,null,null),Yl=ql.exports,Xl=function(){var t=this,e=t._self._c;return e("module-content",{directives:[{name:"show",rawName:"v-show",value:t.activatedState,expression:"activatedState"}],staticClass:"flex-grow",attrs:{enableFlex:t.enableFlex}},[t._t("default")],2)},Gl=[],Zl={name:"moduleTab",props:{name:String,enableFlex:Boolean},data(){return{mountedState:!1,activatedState:!1}},created(){let t=this.$parent;while(t){if("moduleContent"==t.$options.name)t.tabs=!0;else if("module"==t.$options.name){t.insertTab(this);break}t=t.$parent}},methods:{activated(){this.mountedState||(this.mountedState=!0,this.$emit("mounted")),this.activatedState=!0,this.$emit("activated")},deactivated(){this.activatedState=!1,this.$emit("deactivated")}}},Ql=Zl,Jl=d(Ql,Xl,Gl,!1,null,null,null),tc=Jl.exports,ec=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-grid-col",style:{width:t.compWidth}},[e("div",{style:{margin:`0 ${t.gap/2}px`}},[t._t("default")],2)])},nc=[],ic={name:"cGridCol",props:{colspan:{type:[String,Number],default:1}},data(){return{...Mn(this,"cGridStore")}},computed:{...Pn("cGridStore",["gap"]),compWidth(){return 100/this.$compsConfig.config.layout.col*this.colspan+"%"}}},rc=ic,oc=d(rc,ec,nc,!1,null,null,null),ac=oc.exports,sc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-grid"},[e("div",{style:{padding:`0 ${t.compMargin}px`,margin:`0 -${t.compGap/2}px`}},[t._t("default")],2)])},lc=[],cc={name:"cGridRow",props:{margin:{type:[Boolean,Number,String],default:0},gap:{type:[Boolean,Number,String],default:0}},data(){return{cGridStore:Ln({gap:"boolean"==typeof this.gap&&this.gap?this.$compsConfig.config.layout.gap:this.gap})}},computed:{...Pn("cGridStore",{compGap:t=>t.gap}),compMargin(){return"boolean"==typeof this.margin&&this.margin?this.$compsConfig.config.layout.margin:this.margin}}},uc=cc,dc=(n("7960"),d(uc,sc,lc,!1,null,"428825f2",null)),hc=dc.exports,pc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-flex-col",style:{"flex-grow":t.colspan,"margin-left":t.gap+"px"}},[t._t("default")],2)},fc=[],mc={name:"cFlexCol",props:{colspan:{type:[String,Number],default:1}},data(){return{...Mn(this,"cFlexStore")}},computed:{...Pn(["gap"])}},gc=mc,vc=d(gc,pc,fc,!1,null,null,null),bc=vc.exports,_c=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-flex flex-start",style:{padding:`0 ${t.compMargin}px`}},[t._t("default")],2)},yc=[],wc={name:"cFlexRow",props:{margin:{type:[Boolean,Number,String],default:0},gap:{type:[Boolean,Number,String],default:0}},data(){return{cFlexStore:Ln({gap:"boolean"==typeof this.gap&&this.gap?this.$compsConfig.config.layout.gap:this.gap})}},computed:{compMargin(){return"boolean"==typeof this.margin&&this.margin?this.$compsConfig.config.layout.margin:this.margin}}},xc=wc,kc=(n("d647"),d(xc,_c,yc,!1,null,"526151a6",null)),Sc=kc.exports,Dc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-title"},[e("p",{attrs:{border:!t.icon}},[t.icon?e("i",{staticClass:"icon",class:t.icon}):t._e(),t._t("default")],2)])},Cc=[],Ec={name:"cTitle",props:{icon:String}},Ac=Ec,Tc=(n("8709"),d(Ac,Dc,Cc,!1,null,"1cb4f1f7",null)),Bc=Tc.exports,Fc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-tab-list"},[e("ul",{staticClass:"flex",attrs:{type:t.type}},t._l(t.tabs,(function(n,i){return e("li",{key:i,staticClass:"flex-center",class:{"z-crt":t.currentIndex==i},on:{click:function(e){return t.clickHandle(n,i)}}},[t._t("prepend",null,{data:n}),e("span",[t._v(t._s(t.$t(n.name)))]),t._t("append",null,{data:n})],2)})),0)])},$c=[],Lc={name:"cTabList",props:{tabs:Array,type:{type:String,default:"tab"},immediate:{type:Boolean,default:!0}},data(){return{currentIndex:-1}},watch:{tabs(t,e){this.immediate&&!e.length&&this.clickHandle(this.tabs[0],0)}},mounted(){this.immediate&&this.tabs.length&&this.clickHandle(this.tabs[0],0)},methods:{changeIndex(t=0){t<this.tabs.length&&this.clickHandle(this.tabs[t],t,!0)},changeValue(t){let e=this.tabs.findIndex(e=>e.value==t);-1!=e&&this.clickHandle(this.tabs[e],e,!0)},clickHandle(t,e,n){if(this.currentIndex==e&&!n)return;let i=!1,r=()=>{this.currentIndex=e};this.$emit("change",t,()=>{i=!0},r),!i&&r()}}},Mc=Lc,Pc=(n("190d"),d(Mc,Fc,$c,!1,null,null,null)),Ic=Pc.exports,Nc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-pagination flex-between-center"},[e("div",{staticClass:"page-size flex-center"},[e("span",{},[t._v(t._s(t.$t("_t.pagination.total",[t.total])))]),e("c-select",{attrs:{options:t.pageSizeOptions,clear:!1},model:{value:t.currentSize,callback:function(e){t.currentSize=e},expression:"currentSize"}})],1),t.paging?e("div",{staticClass:"page-paging flex-center"},[e("div",{staticClass:"item",class:{"z-dis":1==t.pageIndex},on:{click:function(e){return t.update(t.pageIndex-1)}}},[t._v(t._s(t.$t("_t.pagination.prev")))]),t._l(t.pagination,(function(n,i){return e("div",{key:i,staticClass:"flex-center"},["."==n?e("span",{staticClass:"item ellipsis"},[t._v("...")]):e("div",{staticClass:"item",class:{"z-crt":t.pageIndex==n},on:{click:function(e){return t.update(n)}}},[t._v(t._s(n))])])})),e("div",{staticClass:"item",class:{"z-dis":t.pageIndex==t.pageCount},on:{click:function(e){return t.update(t.pageIndex+1)}}},[t._v(t._s(t.$t("_t.pagination.next")))])],2):e("div",{staticClass:"page-skip flex-center"},[e("c-link",{staticClass:"c-icon-page-top",class:{"z-dis":t.pageIndex<=1},attrs:{color:"black"},on:{click:function(e){return t.update(1)}}}),e("c-link",{staticClass:"c-icon-tri-left",class:{"z-dis":t.pageIndex<=1},attrs:{color:"black"},on:{click:function(e){return t.update(t.pageIndex-1)}}}),e("span",[t._v(t._s(t.$t("_t.pagination.pageBefore")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.pageIndex,expression:"pageIndex"}],attrs:{type:"text"},domProps:{value:t.pageIndex},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.update(t.pageIndex)},input:function(e){e.target.composing||(t.pageIndex=e.target.value)}}}),e("span",[t._v(t._s(t.$t("_t.pagination.pageAfter",[t.pageCount])))]),e("c-link",{staticClass:"c-icon-tri-right",class:{"z-dis":t.pageIndex>=t.pageCount},attrs:{color:"black"},on:{click:function(e){return t.update(t.pageIndex+1)}}}),e("c-link",{staticClass:"c-icon-page-bottom",class:{"z-dis":t.pageIndex>=t.pageCount},attrs:{color:"black"},on:{click:function(e){return t.update(t.pageCount)}}}),e("c-refresh",{attrs:{color:"black"},on:{click:function(e){return t.update(t.pageIndex)}}})],1)])},Hc=[],zc={name:"cPagination",props:{value:{type:[String,Number],default:1},total:{type:[String,Number],default:0},pageSize:[String,Number],paging:Boolean},data(){return{pageIndex:this.value,currentSize:this.pageSize||20,pageSizeOptions:[]}},computed:{pageCount(){return Math.ceil(parseInt(this.total)/this.currentSize)||1},pagination(){let t=parseInt(this.pageIndex)-1,e=[];t=t<3?3:t>this.pageCount-5?this.pageCount-5:t;for(let n=1;n<=this.pageCount&&e.length<9;n++)this.pageCount<9||1==n||n==this.pageCount||n>=t&&n<=t+3&&n<this.pageCount-1?e.push(n):2==n?e.push(t<=3?n:"."):n==this.pageCount-1&&e.push(t>=this.pageCount-5?n:".");return e}},watch:{"$i18n.locale"(t){this.updatePageSize()},value(t){this.pageIndex=t},currentSize(){this.update(1)}},mounted(){this.updatePageSize()},methods:{get(){return{pageIndex:this.pageIndex,pageSize:this.currentSize}},updatePageSize(){this.pageSizeOptions=[10,20,50,100].map(t=>({name:this.$t("_t.pagination.pageSize",[t]),value:t}))},update(t,e){"object"==typeof t&&(e=t,t=void 0),t=parseInt(t||this.pageIndex)||1,t=t<1?1:t>this.pageCount?this.pageCount:t,this.pageIndex=t,this.$emit("input",t),this.$emit("handle",Object.assign({pageIndex:this.pageIndex,pageSize:this.currentSize},e))}}},Rc=zc,Oc=(n("5f53"),d(Rc,Nc,Hc,!1,null,"de66586e",null)),Uc=Oc.exports,Kc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-empty flex-column flex-center",style:{height:t.parsePixel(t.height,!0)}},[e("div",{staticClass:"c-empty-icon flex-center"},[e("img",{attrs:{src:t.config.icon}})]),e("div",{staticClass:"c-empty-message"},[t._v(t._s(t.$t(t.config.message)))])])},Wc=[],jc={name:"cEmpty",props:{type:{type:String,default:"normal"},height:{type:String,default:"100%"},icon:String,message:String},computed:{config(){let t=Object.assign({},this.$compsConfig.empty[this.type]);return this.icon&&(t.icon=this.icon),this.message&&(t.message=this.message),t}}},Vc=jc,qc=(n("ac0c"),d(Vc,Kc,Wc,!1,null,"55b334a4",null)),Yc=qc.exports,Xc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-dropdown",on:{click:t.clickHandle}},[t._t("default"),e("menu-list",{directives:[{name:"show",rawName:"v-show",value:t.showState,expression:"showState"}],ref:"menu",staticClass:"c-dropdown-menu",style:{left:t.position.x+"px",top:t.position.y+"px"},attrs:{menu:t.menu},on:{handle:t.menuHandle},scopedSlots:t._u([{key:"prepend",fn:function({menu:e}){return[e?t._t("prepend",null,{menu:e}):t._e()]}}],null,!0)})],2)},Gc=[],Zc=function(){var t=this,e=t._self._c;return e("menu-list",{ref:"menu",attrs:{menu:t.menu}},[t._t("prepend")],2)},Qc=[];const Jc={render(t){return t("div",{class:"c-menu-list",style:`height: ${this.parsePixel(this.menuHeight,!0)}; margin-left: ${this.left}px; margin-top: ${this.top}px;`,on:{click:t=>t.stopPropagation()}},[t("c-scroll",{attrs:{"keep-show":!0}},[this.menu.map(e=>Array.isArray(e)?[t("div",{class:"group"},[e.map(e=>[t("menu-item",{attrs:{data:e}})])])]:[t("menu-item",{attrs:{data:e}})])])])},name:"cMenuList",props:{menu:Array},data(){return{...Mn(this.$parent),top:0,left:0,menuHeight:"auto"}},mounted(){this.$el.addEventListener("wheel",t=>{t.stopPropagation(),t.preventDefault()})},methods:{position(t){let e=this.$el.getBoundingClientRect();this.leftSide=e.left+e.width>window.innerWidth-5,this.store.contextmenu?this.menuHeight=Math.min(e.height,window.innerHeight-10):this.menuHeight=Math.min(e.height,window.innerHeight-5-e.top),t&&e.left+e.width>window.innerWidth-5?this.left=-e.width-t:this.left=0,e.top+this.menuHeight-this.top>window.innerHeight-5?this.top=window.innerHeight-e.top-this.menuHeight+this.top-5:this.top=0}}},tu={render(t){return t("div",{class:"item",on:{mouseleave:()=>this.submenuHandle(!0)}},[t("div",{class:"menu flex-center",on:{click:()=>this.clickHandle(),mouseenter:()=>this.submenuHandle()}},[this.store.slot.prepend?[t("div",[this.store.slot.prepend({menu:this.data})])]:[],t("span",{class:"flex-grow-auto"},[this.$t(this.data.name)]),this.data.submenu?[t("i",{class:"menu-angle c-icon-tri-right"})]:[]]),this.data.submenu?[t("menu-list",{ref:"sub",attrs:{menu:this.data.submenu},style:`left: ${this.position.left}px; top: ${this.position.top}px;`})]:[]])},name:"cMenuItem",components:{menuList:Jc},props:{data:Object},data(){return{...Mn(this.$parent),position:{left:0,top:0}}},methods:{clickHandle(){this.data.submenu||this.store.handle(this.data)},submenuHandle(t){if(this.$refs.sub&&(this.$refs.sub.menuHeight="auto",this.$refs.sub.left=this.$refs.sub.top=0,!t)){let t=this.$el.getBoundingClientRect();this.position={left:t.left+t.width,top:t.top-13},this.$nextTick(()=>{this.$refs.sub.position(t.width)})}}}};Jc.components={menuItem:tu};var eu={components:{menuList:Jc},props:{menu:Array,contextmenu:Boolean},data(){return{store:Ln({slot:{},handle:null,contextmenu:this.contextmenu})}},mounted(){this.store.commit("slot",this.$scopedSlots),this.store.commit("handle",t=>{this.$emit("handle",t)})},methods:{position(){this.$refs.menu.menuHeight="auto",this.$nextTick(()=>{this.$refs.menu.position()})}}},nu=eu,iu=(n("f490"),d(nu,Zc,Qc,!1,null,null,null)),ru=iu.exports,ou={name:"cDropdown",components:{menuList:ru},props:{menu:Array},data(){return{showState:!1,position:{x:0,y:0}}},watch:{showState(t){this.$emit(t?"show":"hide")}},mounted(){this._hide=()=>{this.showState=!1},window.addEventListener("click",this._hide,!0),window.addEventListener("contextmenu",this._hide,!0),Bn(this.$el,t=>{t.addEventListener("scroll",this._hide)}),document.body.appendChild(this.$refs.menu.$el)},beforeDestroy(){window.removeEventListener("click",this._hide,!0),window.removeEventListener("contextmenu",this._hide,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this._hide)}),document.body.removeChild(this.$refs.menu.$el)},methods:{clickHandle(){this.showState=!0;let t=this.$el.getBoundingClientRect();this.position={x:t.left,y:t.top+this.$el.offsetHeight-1},this.$nextTick(()=>{this.$refs.menu.position()})},menuHandle(t){this.$emit("handle",t),this.showState=!1}}},au=ou,su=(n("6be5"),d(au,Xc,Gc,!1,null,"7a48485e",null)),lu=su.exports,cu=function(){var t=this,e=t._self._c;return e("div",{on:{contextmenu:function(e){return e.stopPropagation(),e.preventDefault(),t.rightHandle.apply(null,arguments)}}},[t._t("default"),e("menu-list",{directives:[{name:"show",rawName:"v-show",value:t.showState,expression:"showState"}],ref:"menu",staticClass:"c-right-menu",style:{left:t.position.x+"px",top:t.position.y+"px"},attrs:{menu:t.menu,contextmenu:""},on:{handle:t.menuHandle},scopedSlots:t._u([{key:"prepend",fn:function({menu:e}){return[e?t._t("prepend",null,{menu:e}):t._e()]}}],null,!0)})],2)},uu=[],du={name:"cRightMenu",components:{menuList:ru},props:{disabled:Boolean,menu:Array},data(){return{showState:!1,position:{x:0,y:0}}},watch:{showState(t){this.$emit(t?"show":"hide")}},mounted(){this._hide=()=>{this.showState=!1},window.addEventListener("click",this._hide,!0),window.addEventListener("contextmenu",this._hide,!0),Bn(this.$refs.menu.$el,t=>{t.addEventListener("scroll",this._hide)}),document.body.appendChild(this.$refs.menu.$el)},beforeDestroy(){window.removeEventListener("click",this._hide,!0),window.removeEventListener("contextmenu",this._hide,!0),Bn(this.$el,t=>{t.removeEventListener("scroll",this._hide)}),document.body.removeChild(this.$refs.menu.$el)},methods:{rightHandle(t){this.disabled||(this.showState=!0,this.position={x:t.clientX,y:t.clientY},this.$nextTick(()=>{let t=this.$refs.menu.$el.getBoundingClientRect();t.width+this.position.x>window.innerWidth-5&&(this.position.x=window.innerWidth-5-t.width),this.$refs.menu.position()}))},menuHandle(t){this.$emit("handle",t),this.showState=!1}}},hu=du,pu=(n("9103"),d(hu,cu,uu,!1,null,"81219ccc",null)),fu=pu.exports,mu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-steps"},[e("ul",{staticClass:"flex-center-start"},t._l(t.steps,(function(n,i){return e("li",{key:i,staticClass:"flex-column flex-start-center",class:{"z-now":i==t.active-1},style:{"margin-left":i>0?t.parsePixel(t.gap,!0):0}},[e("div",{staticClass:"c-steps-dot flex-center"},[i<t.active-1?e("i",{staticClass:"c-icon-check"}):e("span",[t._v(t._s(i+1))])]),e("div",{staticClass:"c-steps-text",style:{width:t.parsePixel(t.gap,!0)}},[e("p",[t._v(t._s(t.$t(n.name)))]),n.message?e("span",[t._v(t._s(t.$t(n.message)))]):t._e()]),i>0?e("div",{staticClass:"c-steps-line",style:{width:t.parsePixel(t.gap,!0)}}):t._e()])})),0)])},gu=[],vu={name:"cSteps",props:{steps:Array,active:{type:[Number,String],default:1},gap:{type:[Number,String],default:100}}},bu=vu,_u=(n("e4746"),d(bu,mu,gu,!1,null,"05381849",null)),yu=_u.exports,wu=function(){var t=this,e=t._self._c;return e("c-link",{staticClass:"c-icon-refresh",class:{"c-icon-an-spin":t.active},attrs:{color:t.color},on:{click:t.clickHandle}})},xu=[],ku={name:"cRefresh",props:{color:{type:[String,Boolean],default:"black"}},data(){return{active:!1}},methods:{clickHandle(){this.active||(this.active=!0,this.$emit("click"),setTimeout(()=>{this.active=!1},1e3))}}},Su=ku,Du=d(Su,wu,xu,!1,null,null,null),Cu=Du.exports,Eu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-tooltip"},[e("div",{ref:"handle",staticClass:"c-tooltip-handle",on:{mouseenter:function(e){return t.show()},mouseleave:function(e){t.active=!1}}},[t.$slots.default?t._t("default"):e("i",{staticClass:"c-icon-tip"})],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],ref:"tip",staticClass:"c-tooltip-content",style:t.positionStyle,attrs:{position:t.position},on:{mouseenter:function(e){return t.show()},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-tooltip-tip",style:{width:t.parsePixel(this.width,!0)},attrs:{color:t.color}},[e("ins",{style:t.angleStyle,attrs:{position:t.position,align:t.align}}),t.$scopedSlots.tip?e("div",{style:{"max-width":t.parsePixel(this.width,!0)}},[t._t("tip")],2):e("p",{style:{"max-width":t.parsePixel(this.width,!0)}},[t._v(t._s(t.tip))])])])])},Au=[],Tu={name:"cTooltip",props:{tip:String,width:[Number,String],position:{type:String,default:"bottom"},align:{type:String,default:"start"},color:{type:String,default(){return this.$compsConfig.config.tooltip.color}}},data(){return{active:!1,positionStyle:{},angleStyle:{}}},mounted(){document.body.appendChild(this.$refs.tip)},beforeDestroy(){document.body.removeChild(this.$refs.tip)},methods:{show(t=this.position,e=this.align){this.active=!0;let n=this.$refs.handle;n=n.$options?n.$el:n,this._updatePosition=()=>{let i=n.getBoundingClientRect(),r=this.$refs.tip.getBoundingClientRect(),o=0;["top","bottom"].includes(t)?this.angleStyle={["start"==e?"left":"right"]:Math.min(Math.max((i.width-10)/2,0),10)+"px"}:i.height<30&&r.height<=30?(o=(30-i.height)/2*("start"==e?-1:1),this.angleStyle={top:"10px"}):r.height<i.height?(o=(r.height-i.height)/2*("start"==e?-1:1),this.angleStyle={top:(r.height-10)/2+"px"}):this.angleStyle={["start"==e?"top":"bottom"]:Math.min(Math.max((i.height-10)/2,0),10)+"px"},this.positionStyle={left:i.left+({left:-r.width,right:i.width}[t]||0)+(["top","bottom"].includes(t)&&"start"!=e?i.width-r.width:0)+"px",top:i.top+({top:-r.height,bottom:i.height}[t]||0)+(["left","right"].includes(t)&&"start"!=e?i.height-r.height:0)+o+"px"}},this._removeEvent=()=>{Bn(n,t=>{t.removeEventListener("scroll",this._updatePosition)})},Bn(n,t=>{t.addEventListener("scroll",this._updatePosition)}),this.$nextTick(this._updatePosition)}}},Bu=Tu,Fu=(n("1bd7"),d(Bu,Eu,Au,!1,null,"9ad5ebd8",null)),$u=Fu.exports,Lu=function(){var t=this,e=t._self._c;return e("vue-scroll",{ref:"scroll",staticClass:"c-scroll",attrs:{ops:t.opt}},[e("div",[t._t("default")],2)])},Mu=[];const Pu=function(t,e,n){const i=[t.scrollLeft,t.scrollTop],r=[e[0]-i[0],e[1]-i[1]],o=performance.now();function a(e){const s=e-o,l=Math.min(s/n,1),c=.5*(1-Math.cos(Math.PI*l));t.scrollTo(i[0]+r[0]*c,i[1]+r[1]*c),s<n&&requestAnimationFrame(a)}requestAnimationFrame(a)};var Iu={name:"cScroll",props:{barColor:{type:String,default:"rgba(0,0,0,.2)"},keepShow:Boolean},data(){return{opt:{bar:{keepShow:this.keepShow,onlyShowBarOnScroll:!1,background:this.barColor,opacity:1}}}},mounted(){this._scroller=this.$refs.scroll.$el.children[0],this._events.scroll&&this._scroller.addEventListener("scroll",()=>{this.$emit("scroll",{x:this._scroller.scrollLeft,y:this._scroller.scrollTop})})},methods:{scrollTo(t=0,e=0,n=500){Pu(this._scroller,[t,e],n)}}},Nu=Iu,Hu=(n("9200"),d(Nu,Lu,Mu,!1,null,"2d00f4fc",null)),zu=Hu.exports,Ru=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-progress",style:{width:"line"==t.type?t.parsePixel(t.size,!0):"auto"}},["line"==t.type?e("div",{staticClass:"flex-center"},[e("div",{staticClass:"c-progress-line flex-grow",style:{height:t.parsePixel(t.lineSize,!0),"border-radius":t.parsePixel(t.lineSize/2,!0),background:t.background}},[e("div",{style:{width:t.linePercent+"%","border-radius":t.parsePixel(t.lineSize/2,!0),background:t.compColor}})]),e("div",{staticClass:"c-progress-line-text",style:{"min-width":t.textWidth+"em","font-size":t.parsePixel(t.fontSize,!0)}},[t.$scopedSlots.text?t._t("text",null,{rate:t.percent}):e("span",[t._v(t._s(t.percent.toFixed(t.decimal))+"%")])],2)]):t._e(),"circle"==t.type?e("div",{staticClass:"c-progress-circle",style:{width:t.parsePixel(t.size,!0),height:t.parsePixel(t.size,!0)}},[e("svg",{attrs:{viewBox:"0 0 100 100"}},[e("path",{staticStyle:{"stroke-dasharray":"1, 0","stroke-dashoffset":"0px"},attrs:{d:`\n\t\t\t\t\tM 50 ${t.strokeWidth/2}\n\t\t\t\t\ta ${50-t.strokeWidth} ${50-t.strokeWidth} 0 1 1 0 ${100-t.strokeWidth}\n\t\t\t\t\ta ${50-t.strokeWidth} ${50-t.strokeWidth} 0 1 1 0 -${100-t.strokeWidth}\n\t\t\t\t`,stroke:t.background,"stroke-width":t.strokeWidth,fill:"none"}}),e("path",{staticStyle:{transition:"stroke-dasharray .6s ease, stroke .6s ease"},style:{"stroke-dasharray":`${t.girth*t.linePercent/100}px, ${t.girth*(100-t.linePercent)/100}px`},attrs:{d:`\n\t\t\t\t\tM 50 ${t.strokeWidth/2}\n\t\t\t\t\ta ${50-t.strokeWidth} ${50-t.strokeWidth} 0 1 1 0 ${100-t.strokeWidth}\n\t\t\t\t\ta ${50-t.strokeWidth} ${50-t.strokeWidth} 0 1 1 0 -${100-t.strokeWidth}\n\t\t\t\t`,stroke:t.compColor,"stroke-linecap":"round","stroke-width":t.strokeWidth,fill:"none"}})]),e("div",{staticClass:"c-progress-circle-text",style:{"font-size":t.parsePixel(t.fontSize,!0)}},[t.$scopedSlots.text?t._t("text",null,{rate:t.percent}):e("span",[t._v(t._s(t.percent.toFixed(t.decimal))+"%")])],2)]):t._e()])},Ou=[],Uu={name:"cProgress",props:{type:{type:String,default:"line"},color:{type:String,default:"main"},background:{type:String,default:"#E5E5E5"},size:{type:[String,Number],default(){return"line"==this.type?"100%":100}},lineSize:{type:[String,Number],default:6},fontSize:{type:[String,Number],default:14},rate:{type:[String,Number,Array],default:0},decimal:{type:[Number,String],default:0},limit:Boolean},computed:{percent(){let t="Object"==typeof this.rate?this.rate:this.rate.toString().split(",");return 1==t.length?Math.min(this.limit?100:1/0,Math.max(0,parseFloat(t[0]))):parseFloat(t[0])>=parseFloat(t[1])?this.limit||0==t[1]?100:parseFloat(t[0])/parseFloat(t[1])*100:Math.min(99+(Math.pow(10,this.decimal)-1)/Math.pow(10,this.decimal),Math.max(0,parseFloat(t[0])/parseFloat(t[1])*100))},linePercent(){return Math.min(100,this.percent)},girth(){return 3.1415926*(50-this.strokeWidth/2)*2},strokeWidth(){return 100/parseInt(this.size)*parseInt(this.lineSize)},compColor(){let t=this.$compsConfig.color[this.color],e=t?t[0]:this.$compsConfig.theme[this.color]||this.color;return e},textWidth(){let t=parseInt(this.decimal)||0;return((t?t+1:0)+5)/2}}},Ku=Uu,Wu=(n("49bf"),d(Ku,Ru,Ou,!1,null,"0d4cb6d6",null)),ju=Wu.exports,Vu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-qrcode",style:{width:t.size+"px",height:t.size+"px",padding:t.margin+"px"}},[e("img",{attrs:{src:t.code,alt:""}})])},qu=[],Yu={name:"cQrcode",props:{value:[String,Number],size:{type:[String,Number],default:300},margin:{type:[String,Number],default:0}},data(){return{code:""}},computed:{config(){return{value:this.value,size:this.size}}},watch:{config(){this.update()}},mounted(){this.update()},methods:{update(){this.value?Hh.a.toDataURL(this.value,{width:parseInt(this.size)-2*parseInt(this.margin),height:parseInt(this.size)-2*parseInt(this.margin),margin:0}).then(t=>{this.code=t}):this.code=""}}},Xu=Yu,Gu=(n("10f8"),d(Xu,Vu,qu,!1,null,"49171b31",null)),Zu=Gu.exports,Qu=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{position:"relative"}},[t._t("prepend"),t._l(t.dataList,(function(e,n){return[t._t("default",null,{item:e.item,id:e.key,index:n})]})),t._t("append")],2)},Ju=[],td={name:"cDrawSort",props:{value:[Array],disabled:Boolean},data(){return{dataList:[],translate:{x:0,y:0}}},watch:{value(){this.update()},disabled(t){this.$children.forEach(e=>e.disabled=t)}},mounted(){this.update()},methods:{update(){this.dataList=Array.from(this.value,(t,e)=>({key:e,item:t}))},sortHandle(t,e){var n=this.dataList.splice(t,1)[0];this.dataList.splice(e,0,n)},sortEnd(){this.$emit("input",Array.from(this.dataList,t=>t.item))}}},ed=td,nd=d(ed,Qu,Ju,!1,null,null,null),id=nd.exports,rd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"draw-item",class:{"z-dis":t.disabled||t.handleState},on:{mousedown:e=>t.handleState?"":t.moveStart(e)}},[e("div",{ref:"content",staticClass:"content",class:{"z-move":t.moveState},style:{left:t.moveSeat.x+"px",top:t.moveSeat.y+"px"}},[t._t("default"),t.handleState?e("div",{ref:"handle",staticClass:"handle",style:t.handleStyle,on:{mousedown:function(e){return e.stopPropagation(),t.moveStart.apply(null,arguments)}}},[t._t("handle")],2):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.moveState,expression:"moveState"}],staticClass:"shade"})],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.moveState,expression:"moveState"}],staticClass:"place",style:t.placeStyle})])},od=[];function ad(t,e){return t.currentStyle?t.currentStyle[e]:getComputedStyle(t,!1)[e]}var sd={name:"cDrawItem",props:{index:Number,handleStyle:Object},data(){return{moveState:!1,boxSeat:{x:0,y:0},moveSeat:{x:0,y:0},clientSeat:{x:0,y:0},placeStyle:{},handleSize:{},disabled:this.$parent.disabled}},computed:{handleState(){return this.$slots.handle}},methods:{moveStart(t){this.disabled||(["margin-top","margin-bottom","margin-left","margin-right"].forEach(t=>{this.$set(this.placeStyle,t,ad(this.$refs.content.children[0],t))}),this.$set(this.placeStyle,"width",parseInt(ad(this.$refs.content,"width"))-parseInt(this.placeStyle["margin-left"])-parseInt(this.placeStyle["margin-right"])+"px"),this.$set(this.placeStyle,"height",ad(this.$refs.content,"height")),["width","height"].forEach(t=>{this.$set(this.handleSize,t,ad(this.handleState?this.$refs.handle:this.$refs.content.children[0],t))}),this.handleState&&(this.$set(this.handleSize,"offsetLeft",this.$refs.handle.offsetLeft),this.$set(this.handleSize,"offsetTop",this.$refs.handle.offsetTop)),this.moveState=!0,this.boxSeat={x:this.$parent.$el.getBoundingClientRect().x,y:this.$parent.$el.getBoundingClientRect().y},this.updateMoveSeat(t),document.addEventListener("mousemove",this.move),document.addEventListener("mouseup",this.moveEnd))},move(t){this.updateMoveSeat(t),this.updateSort()},moveEnd(){this.moveState=!1,this.moveSeat.x=0,this.moveSeat.y=0,document.removeEventListener("mousemove",this.move),document.removeEventListener("mouseup",this.moveEnd),this.$parent.sortEnd()},updateMoveSeat(t){this.clientSeat.x=t.clientX-this.boxSeat.x,this.clientSeat.y=t.clientY-this.boxSeat.y,this.moveSeat.x=this.clientSeat.x-parseInt(this.placeStyle["margin-left"])-parseInt(this.handleSize["width"])/2-(this.handleSize.offsetLeft||0),this.moveSeat.y=this.clientSeat.y-parseInt(this.placeStyle["margin-top"])-parseInt(this.handleSize["height"])/2-(this.handleSize.offsetTop||0)},updateSort:Tf((function(){var t=this.$parent.$children;for(let e=0;e<t.length;e++){let n=t[e];if(this.index!=n.index){let t=n.$el.getBoundingClientRect(),e=t.left-this.boxSeat.x+this.$parent.translate.x,i=e+t.width,r=t.top-this.boxSeat.y+this.$parent.translate.y,o=r+t.height;if(this.clientSeat.x>=e&&this.clientSeat.x<=i&&this.clientSeat.y>=r&&this.clientSeat.y<=o){this.$parent.sortHandle(this.index,n.index);break}}}}),100,!1)}},ld=sd,cd=(n("427b"),d(ld,rd,od,!1,null,"24bd5f40",null)),ud=cd.exports,dd=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.data,expression:"data"}],staticClass:"c-tree"},[e("ul",t._l(t.nodeData,(function(n,i){return e("li",{key:n.id,class:{leaf:t.onlyLeaf}},[e("node-item",{attrs:{"node-data":n}})],1)})),0)])},hd=[];const pd={render(t){return t("div",{class:"node-box"},[t("div",{class:"node flex-center-cross"},[this.node.leaf?[]:[t("span",{class:"node-switch flex-center",on:{click:()=>this.expandHandle()}},[this.loadingState?[t("i",{class:"c-icon-loading"})]:this.expandState?[t("i",{class:"c-icon-fold"})]:[t("i",{class:"c-icon-expand"})]])],this.checkOpt?[t("c-checkbox",{class:"node-check",attrs:{value:!!this.node.checked,half:2==this.node.checked,size:"16"},on:{change:t=>this.checkHandle(t?1:0)}})]:[],t("a",{class:"flex-center "+(this.currentNodeId.includes(this.node.id)?"z-crt":""),attrs:{title:""+this.$t(this.node.name)},on:{click:()=>this.clickHandle()}},[this.store.slot.icon?[t("div",{class:"node-icon"},[this.store.slot.icon({node:this.node})])]:[t("div",{class:"node-icon"},[t("i",{class:"folder c-icon-folder"})])],t("span",{class:"ellipsis"},[this.$t(this.node.name)])])]),this.node.children&&this.node.children.length?[t("ul",{style:"display: "+(this.expandState?"":"none")},[this.node.children.map(e=>[t("li",[t("node-item",{attrs:{"node-data":e,"parent-node":this.node},on:{check:()=>this.childrenCheckHandle(e)}})])])])]:[]])},props:{nodeData:Object,parentNode:Object},data(){return{node:{},store:this.$parent.store,loadingState:!1,expandState:!1}},computed:{...Pn(["root","selectOpt","checkOpt","currentNodeId","currentNode"])},watch:{nodeData(){this.setNode()}},created(){this.setNode()},methods:{setNode(){this.node=Object.assign(this.nodeData,{parent:this.parentNode,expand:this.expandHandle,check:(t=1)=>{this.checkHandle(t)},select:()=>{this.selectOpt&&(this.store.commit("currentNodeId",[this.node.id]),this.store.commit("currentNode",[this.node]),this.root.$emit("select",this.node),this.selectOpt.expand&&this.node.expand())},unselect:()=>{if(!this.selectOpt.unselect)return;let t=this.currentNodeId.findIndex(t=>t==this.node.id);this.currentNodeId.splice(t,1),this.currentNode.splice(t,1)}})},expandHandle(t){this.expandState?this.expandState=!1:this.node.leaf||(this.node.children?(this.expandState=!0,t&&this.$nextTick(t)):(this.loadingState=!0,this.root.$emit("load",this.node,e=>{e&&e.length?(this.node.checked&&e.forEach(t=>{t.checked=1}),this.node.children=e):this.node.leaf=!0,this.loadingState=!1,this.expandState=!0,t&&this.$nextTick(t)})))},clickHandle(){this.currentNodeId.includes(this.node.id)?this.node.unselect():this.node.select(),this.checkOpt.clickCheck&&this.checkHandle(this.node.checked?0:1),this.root.$emit("click",this.node)},checkHandle(t,e){this.$set(this.node,"checked",t),e||this.root.$emit("check",this.node),this.checkOpt.linked&&("child"!=this.checkOpt.linked&&this.$emit("check",this.node),"parent"!=this.checkOpt.linked&&this.node.children&&!e&&this.node.children.forEach(e=>{e.check(t?1:0)}))},childrenCheckHandle(t){let e=this.node.children.filter(t=>t.checked),n=e.filter(t=>1==t.checked);this.checkHandle(e.length?n.length!=this.node.children.length?2:1:0,t)}}};pd.components={nodeItem:pd};var fd={name:"cTree",components:{nodeItem:pd},props:{data:Array,simple:Boolean,select:{type:[Boolean,Object],default:!0},check:[Boolean,Object]},data(){return{store:Ln({root:"",currentNodeId:[],currentNode:[],slot:{}}),nodeData:[]}},watch:{data(t){t&&this.initData(),this.store.commit("currentNodeId",[]),this.store.commit("currentNode",[])}},computed:{...Pn(["currentNode"]),onlyLeaf(){return!this.nodeData.find(t=>!t.leaf)}},mounted(){this.store.commit("root",this),this.store.commit("slot",this.$scopedSlots),this.store.commit("selectOpt",!!this.select&&Object.assign({unselect:!0},"object"==typeof this.select?this.select:{})),this.store.commit("checkOpt",!!this.check&&Object.assign({linked:"both",clickCheck:!1},"object"==typeof this.check?this.check:{})),this.data&&this.initData()},methods:{insertRoot(t){(Array.isArray(t)?t:[t]).forEach(t=>{this.nodeData.push(t)})},initData(){this.simple?this.initSimpleData():this.initComplexData()},initSimpleData(){let t=[],e={};this.data.forEach(n=>{e[n.id]=Object.assign({id:n.id,pId:n.pId,name:n.name,leaf:n.leaf,checked:n.checked,data:n.data},e[n.id]||{}),n.pId?(e[n.pId]||(e[n.pId]={}),e[n.pId].children||(e[n.pId].children=[]),e[n.pId].children.push(e[n.id])):t.push(e[n.id])}),this.nodeData=t},initComplexData(){let t=[];(function t(e,n=[]){return e&&e.forEach(e=>{n.push({id:e.id,pId:e.pId,name:e.name,leaf:e.leaf,checked:e.checked,children:t.call(this,e.children),data:e.data})}),n.length?n:void 0}).call(this,this.data,t),this.nodeData=t},getNode(t="root"){switch(t){case"root":return this.nodeData;case"selected":return this.currentNode;case"checked":return this.getNode(t=>t.checked);default:if("function"==typeof t){let e=[];return this.eachNode(n=>{t(n)&&e.push(n)}),e}}},eachNode(t){(function e(n){n&&n.forEach((n,i)=>{t(n),e.call(this,n.children)})}).call(this,this.nodeData)},expandAll(t=1/0){this.$nextTick(()=>{(function e(n){t>=0&&n&&n.forEach((n,i)=>{!i&&t--,n.expand(()=>{e.call(this,n.children)})})}).call(this,this.getNode())})},unselect(){this.getNode("selected").forEach(t=>{t.unselect()})}}},md=fd,gd=(n("b29c"),d(md,dd,hd,!1,null,"7f9fb4d2",null)),vd=gd.exports,bd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-editor flex-column",style:{height:t.parsePixel(t.height,!0)}},[e("div",{staticClass:"c-editor-toolbar flex-center-cross flex-wrap"},[t._l(t.toolbar,(function(n,i){return[t._l(n,(function(n,r){return[t.toolExend[n]?t._l(t.toolExend[n],(function(n,o){return e("div",{key:`${i}-${r}-${o}`,staticClass:"flex-center"},[e("div",{staticClass:"c-editor-handle flex-center",on:{click:function(e){return t.handle(n)}}},[e("i",{staticClass:"c-icon"},[t._v(t._s(t.toolIcon[n]))])])])})):e("div",{key:`${i}-${r}`,staticClass:"flex-center"},[e("div",{staticClass:"c-editor-handle flex-center",on:{click:function(e){return t.handle(n)}}},[e("i",{staticClass:"c-icon"},[t._v(t._s(t.toolIcon[n]))])])])]})),e("div",{key:i+"-hr",staticClass:"c-editor-hr"})]}))],2),e("iframe",{ref:"iframe",staticClass:"flex-grow"})])},_d=[],yd={name:"cEditorDev",props:{value:String,name:String,height:{type:[String,Number],default:300}},data(){return{toolbar:[["undo","redo"],["text","fontSize","bold","italic","underline","throughline","fontColor","backColor"],["align","indent","lineHeight","ul","ol"],["link","quote","code","image","video","file","table","hr"]],toolExend:{align:["alignLeft","alignCenter","alignRight"],indent:["indentRight","indentLeft"]},toolIcon:{undo:"",redo:"",bold:"",italic:"",underline:"",throughline:"",fontColor:"",backColor:"",alignLeft:"",alignCenter:"",alignRight:"",indentLeft:"",indentRight:"",ul:"",ol:"",lineHeight:"",link:"",quote:"",code:"",image:"",video:"",file:"",table:"",hr:""}}},watch:{value(t){}},mounted(){this.$refs.iframe.contentDocument.write('\n\t\t\t\t<html>\n\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta charset="utf-8">\n\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t* {\n\t\t\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\thtml {\n\t\t\t\t\t\t\t\tmin-height: 100%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbody {\n\t\t\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t\t\t\tmin-height: 100%;\n\t\t\t\t\t\t\t\tpadding: 10px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</style>\n\t\t\t\t\t</head>\n\t\t\t\t\t<body contenteditable></body>\n\t\t\t\t</html>\n\t\t\t')},methods:{set(t=""){},get(){},handle(t){console.log("handle:",t);let e=this.$refs.iframe.contentWindow.getSelection(),n=e.getRangeAt(0),i=n.toString();switch(t){case"bold":i&&n.surroundContents(this.setFontStyle({"font-weight":"bold"},i));break;case"italic":i&&n.surroundContents(this.setFontStyle({"font-style":"italic"},i));break;case"underline":i&&n.surroundContents(this.setFontStyle({"text-decoration":"underline"},i));break;case"throughline":i&&n.surroundContents(this.setFontStyle({"text-decoration":"line-through"},i));break;case"backColor":this.$refs.iframe.contentDocument.execCommand("backColor",!1,"#f00");break}n.detach()},setFontStyle(t,e){let n=document.createElement("span");n.textContent=e;for(let i in t)n.style[i]=t[i];return n}}},wd=yd,xd=(n("3da0"),d(wd,bd,_d,!1,null,"25b2a026",null)),kd=xd.exports,Sd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-datetime-picker"},[e("div",{staticClass:"flex"},[t.datePanel?e("div",{staticClass:"c-date-panel"},[e("div",{staticClass:"c-date-panel-head flex-between-center"},[e("a",{staticClass:"c-date-panel-head-angle flex-center",on:{click:function(e){return t.switchYear(-1)}}},[e("i",{staticClass:"c-icon-angle-dbleft"})]),e("a",{directives:[{name:"show",rawName:"v-show",value:"day"==t.viewType,expression:"viewType == 'day'"}],staticClass:"c-date-panel-head-angle flex-center",on:{click:function(e){return t.switchMonth(-1)}}},[e("i",{staticClass:"c-icon-angle-left"})]),e("p",{staticClass:"flex-grow flex-center",class:{"flex-reverse":"zh"!=t.$i18n.locale}},[e("span",{directives:[{name:"show",rawName:"v-show",value:"year"==t.viewType,expression:"viewType == 'year'"}]},[t._v(t._s(`${t.yearList[1]} - ${t.yearList[10]}`))]),e("a",{directives:[{name:"show",rawName:"v-show",value:"year"!=t.viewType,expression:"viewType != 'year'"}],on:{click:function(e){t.viewType="year"}}},[t._v(t._s(t.crtYear)+t._s("zh"==t.$i18n.locale?"年":""))]),e("a",{directives:[{name:"show",rawName:"v-show",value:"day"==t.viewType,expression:"viewType == 'day'"}],on:{click:function(e){t.viewType="month"}}},[t._v(t._s("zh"==t.$i18n.locale?parseInt(t.crtMonth)+"月":t.$t("_t.datetime.month."+(t.crtMonth-1))))])]),e("a",{directives:[{name:"show",rawName:"v-show",value:"day"==t.viewType,expression:"viewType == 'day'"}],staticClass:"c-date-panel-head-angle flex-center",on:{click:function(e){return t.switchMonth(1)}}},[e("i",{staticClass:"c-icon-angle-right"})]),e("a",{staticClass:"c-date-panel-head-angle flex-center",on:{click:function(e){return t.switchYear(1)}}},[e("i",{staticClass:"c-icon-angle-dbright"})])]),"day"==t.viewType?e("div",{staticClass:"c-day-view"},[e("table",[e("thead",[e("tr",t._l(t.dayList[0],(function(n,i){return e("th",{key:i},[t._v(t._s(t.$t("_t.datetime.weeks."+i)))])})),0)]),e("tbody",t._l(t.dayList,(function(n,i){return e("tr",{key:i},t._l(n,(function(n,i){return e("td",{key:i},[e("div",{staticClass:"c-datetime-cell",class:{"z-crt":t.crtDate==n.date},attrs:{today:n.today,other:!!n.otherMonth,disabled:t.compMin&&n.date<`${t.compMin[0]}-${t.compMin[1]}-${t.compMin[2]}`||t.compMax&&n.date>`${t.compMax[0]}-${t.compMax[1]}-${t.compMax[2]}`},on:{click:function(e){return t.setDay(n,e)}}},[t._v(t._s(parseInt(n.day)))])])})),0)})),0)])]):"month"==t.viewType?e("div",{staticClass:"c-month-view"},[e("ul",{staticClass:"flex-wrap"},t._l(t.monthList,(function(n,i){return e("li",{key:i},[e("div",{staticClass:"c-datetime-cell",class:{"z-crt":t.crtMonth==n},attrs:{disabled:t.compMin&&`${t.crtYear}-${n}`<`${t.compMin[0]}-${t.compMin[1]}`||t.compMax&&`${t.crtYear}-${n}`>`${t.compMax[0]}-${t.compMax[1]}`},on:{click:function(e){return t.setMonth(n,e)}}},[t._v(t._s(t.$t("_t.datetime.month."+i)))])])})),0)]):"year"==t.viewType?e("div",{staticClass:"c-year-view"},[e("ul",{staticClass:"flex-wrap"},t._l(t.yearList,(function(n,i){return e("li",{key:i},[e("div",{staticClass:"c-datetime-cell",class:{"z-crt":t.crtYear==n},attrs:{other:0==i||11==i,disabled:t.compMin&&n<t.compMin[0]||t.compMax&&n>t.compMax[0]},on:{click:function(e){return t.setYear(n,e)}}},[t._v(t._s(n))])])})),0)]):t._e()]):t._e(),t.timePanel?e("div",{staticClass:"c-time-panel flex-column"},[e("div",{staticClass:"c-time-panel-head flex-center"},[e("p",[e("span",[t._v(t._s(t.crtHour))]),"hour"!=t.timeAccuracy?e("span",[t._v(":"+t._s(t.crtMin))]):t._e(),"sec"==t.timeAccuracy?e("span",[t._v(":"+t._s(t.crtSec))]):t._e()])]),e("div",{staticClass:"c-time-view flex flex-grow"},[e("div",{staticClass:"c-time-list"},[e("c-scroll",[e("ul",t._l(t.hourList,(function(n,i){return e("li",{key:i,class:{"z-crt":t.crtHour==n},attrs:{disabled:t.minDay&&n<t.compMin[3]||t.maxDay&&n>t.compMax[3]},on:{click:function(e){return t.setTime("crtHour",n,e)}}},[t._v(t._s(n))])})),0)])],1),"hour"!=t.timeAccuracy?e("div",{staticClass:"c-time-list"},[e("c-scroll",[e("ul",t._l(t.timeList,(function(n,i){return e("li",{key:i,class:{"z-crt":t.crtMin==n},attrs:{disabled:t.minDay&&t.crtHour==t.compMin[3]&&n<t.compMin[4]||t.maxDay&&t.crtHour==t.compMax[3]&&n>t.compMax[4]},on:{click:function(e){return t.setTime("crtMin",n,e)}}},[t._v(t._s(n))])})),0)])],1):t._e(),"sec"==t.timeAccuracy?e("div",{staticClass:"c-time-list"},[e("c-scroll",[e("ul",t._l(t.timeList,(function(n,i){return e("li",{key:i,class:{"z-crt":t.crtSec==n},attrs:{disabled:t.minDay&&t.crtHour==t.compMin[3]&&t.crtMin==t.compMin[4]&&n<t.compMin[5]||t.maxDay&&t.crtHour==t.compMax[3]&&t.crtMin==t.compMax[4]&&n>t.compMax[5]},on:{click:function(e){return t.setTime("crtSec",n,e)}}},[t._v(t._s(n))])})),0)])],1):t._e()])]):t._e()]),"date"!=t.type?e("div",{staticClass:"c-datetime-picker-foot flex-between-center"},[e("div"),e("c-button",{attrs:{color:"main"},on:{click:t.resolve}},[t._v("确定")])],1):t._e()])},Dd=[],Cd={name:"cDatetimePicker",props:{value:String,type:{type:String,default:"datetime"},timeAccuracy:{type:String,default:"sec"},start:String,end:String,min:String,max:String,format:{type:String,default:"yyyy-MM-dd hh:mm:ss"}},data(){return{viewType:"day",crtYear:"2024",crtMonth:"07",crtDay:"",crtHour:"00",crtMin:"00",crtSec:"00",yearList:[],monthList:[],dayList:[],hourList:[],timeList:[]}},computed:{parseRegExp(){let t=[];return"time"!=this.type&&t.push("(\\d{4})-(\\d{1,2})-(\\d{1,2})"),"date"!=this.type&&t.push(new Array("hour"==this.timeAccuracy?1:"min"==this.timeAccuracy?2:3).fill("(\\d{0,2})").join(":")),new RegExp(t.join(" "))},datePanel(){return"time"!=this.type},timePanel(){return"time"==this.type||"datetime"==this.type},crtDate(){return`${this.crtYear}-${this.crtMonth}-${this.crtDay}`},compMin(){return this.parseDate(this.start||this.min)},compMax(){return this.parseDate(this.end||this.max)},minDay(){return!!this.compMin&&`${this.crtYear}-${this.crtMonth}-${this.crtDay}`==`${this.compMin[0]}-${this.compMin[1]}-${this.compMin[2]}`},maxDay(){return!!this.compMax&&`${this.crtYear}-${this.crtMonth}-${this.crtDay}`==`${this.compMax[0]}-${this.compMax[1]}-${this.compMax[2]}`}},watch:{value(t){this.set(t)},viewType(t){"year"==t&&this.updateYearView()},crtYear(){this.updateDayView()},crtMonth(){this.updateDayView()},crtDay(){this.minDay&&this.crtHour<this.compMin[3]&&(this.crtHour=this.compMin[3]),this.maxDay&&this.crtHour>this.compMax[3]&&(this.crtHour=this.compMax[3])},crtHour(t){this.minDay&&t==this.compMin[3]&&this.crtMin<this.compMin[4]&&(this.crtMin=this.compMin[4]),this.maxDay&&t==this.compMax[3]&&this.crtMin>this.compMax[4]&&(this.crtMin=this.compMax[4])},crtMin(t){this.minDay&&this.crtHour==this.compMin[3]&&t==this.compMin[4]&&this.crtSec<this.compMin[5]&&(this.crtSec=this.compMin[5]),this.maxDay&&this.crtHour==this.compMax[3]&&t==this.compMax[4]&&this.crtSec>this.compMax[5]&&(this.crtSec=this.compMax[5])}},mounted(){for(let t=1;t<=12;t++)this.monthList.push(this.db(t));for(let t=0;t<24;t++)this.hourList.push(this.db(t));for(let t=0;t<60;t++)this.timeList.push(this.db(t));this.set((new Date).format("yyyy-MM-dd 00:00:00"),!0),this.updateDayView()},methods:{set(t="",e){let n=this.parseDate(t);n?(this.crtYear=n[0],this.crtMonth=n[1],this.crtDay=e?"":n[2],this.crtHour=n[3],this.crtMin=n[4],this.crtSec=n[5]):(this.crtDay="",this.crtHour=this.crtMin=this.crtSec="00")},updateYearView(t=this.crtYear){let e=10*parseInt(t/10)-1,n=[];for(let i=0;i<12;i++)n.push((e+i).toString());this.yearList=n},updateDayView(){let t=new Date,e=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(this.crtYear,this.crtMonth-1,1),i=n.getDay(),r=[];for(let a=1;a<=42;a++){let t=new Date(this.crtYear,this.crtMonth-1,a-i);r.push({$day:t,date:t.format("yyyy-MM-dd"),year:t.format("yyyy"),month:t.format("MM"),day:t.format("dd"),otherMonth:t.getMonth()==this.crtMonth-1?0:t.getMonth()==this.crtMonth-2?-1:1,today:t.toString()==e.toString()})}let o=[];do{o.push(r.splice(0,7))}while(r.length);this.dayList=o},switchYear(t){"year"==this.viewType?this.updateYearView(this.yearList[1==t?11:0]):(this.crtYear=(parseInt(this.crtYear)+t).toString(),this.crtDay="")},switchMonth(t){let e=parseInt(this.crtMonth)+t;0==e?(this.switchYear(-1),this.crtMonth="12"):13==e?(this.switchYear(1),this.crtMonth="01"):this.crtMonth=this.db(e),this.crtDay=""},setYear(t,e){e&&e.target.getAttribute("disabled")||(this.crtYear=t,this.crtDay="",this.viewType="day")},setMonth(t,e){e&&e.target.getAttribute("disabled")||(this.crtMonth=t,this.crtDay="",this.viewType="day")},setDay(t,e){e&&e.target.getAttribute("disabled")||(this.crtYear=t.year,this.crtMonth=t.month,this.crtDay=t.day,"date"==this.type&&this.resolve())},setTime(t,e,n){n&&n.target.getAttribute("disabled")||(this[t]=e)},parseDate(t=""){let e=t.match(this.parseRegExp);return e&&"time"==this.type&&e.splice(1,"2000","01","01"),e?new Array(6).fill("").map((t,n)=>this.db(e[n+1])):null},db(t=0){return t=parseInt(t),t<10?"0"+t:t.toString()},resolve(){let t=`${this.crtYear}-${this.crtMonth}-${this.crtDay} ${this.crtHour}:${this.crtMin}:${this.crtSec}`;this.$emit("input",new Date(t).format(this.format))}}},Ed=Cd,Ad=(n("1fad"),d(Ed,Sd,Dd,!1,null,"72b3ecf6",null)),Td=Ad.exports,Bd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-color-picker"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"c-color-picker-sv",style:{background:t.sv},on:{mousedown:function(e){return t.handle(e,"sv")}}},[e("div",{staticClass:"c-color-picker-sv-white"}),e("div",{staticClass:"c-color-picker-sv-black"}),e("div",{staticClass:"c-color-picker-sv-handle",style:{left:t.s+"%",bottom:t.v+"%"}})]),e("div",{staticClass:"c-color-picker-hue",on:{mousedown:function(e){return t.handle(e,"h")}}},[e("div",{staticClass:"c-color-picker-hue-handle",style:{top:t.h/360*100+"%"}})])])])},Fd=[];const $d=function(t,e){return t=Math.min(e,Math.max(0,parseFloat(t))),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)};var Ld={name:"cColorPicker",props:{value:String},data(){return{s:0,v:100,h:0}},computed:{sv(){return this.hsvToHex(this.h,100,100)},hex(){return this.hsvToHex(this.h,this.s,this.v)}},watch:{value(t){this.set(t)}},mounted(){this.value&&this.set(this.value)},methods:{set(t="#fff"){let e=this.hexToHsv(t);this.s=e.s,this.v=e.v,this.h=e.h,this.$emit("input",this.hex)},handle(t,e){let n=[t.layerX,t.layerY],i=[t.clientX,t.clientY];const r=Tf(t=>{let r=[t.clientX-i[0],t.clientY-i[1]],o=[n[0]+r[0],n[1]+r[1]];"h"==e?this.h=parseInt((Math.max(0,Math.min(180,o[1]))/180*360).toFixed(0)):(this.s=parseInt((Math.max(0,Math.min(280,o[0]))/280*100).toFixed(0)),this.v=parseInt((100-Math.max(0,Math.min(180,o[1]))/180*100).toFixed(0))),this.$emit("input",this.hex)},20),o=t=>{r(t),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)},hsvToHex(t,e,n){e/=100,n/=100;let i=Math.floor(t/60),r=t/60-i,o=n*(1-e),a=n*(1-e*r),s=n*(1-e*(1-r)),l=[n,a,o,o,s,n][i%6],c=[s,n,n,a,o,o][i%6],u=[o,o,s,n,n,a][i%6];const d=t=>{const e=Math.round(255*t).toString(16);return 1===e.length?"0"+e:e};return`#${d(l)}${d(c)}${d(u)}`},hexToHsv(t){t=t.replace(/^#/,""),3===t.length&&(t=t.split("").map(t=>t+t).join(""));const e=parseInt(t,16)!=parseInt(t,16)?parseInt("ffffff",16):parseInt(t,16),n=$d(e>>16&255,255),i=$d(e>>8&255,255),r=$d(255&e,255),o=Math.max(n,i,r),a=Math.min(n,i,r);let s,l,c=o;const u=o-a;if(l=0===o?0:u/o,o===a)s=0;else{switch(o){case n:s=(i-r)/u+(i<r?6:0);break;case i:s=(r-n)/u+2;break;case r:s=(n-i)/u+4;break}s/=6}return{h:360*s,s:100*l,v:100*c}}}},Md=Ld,Pd=(n("b8e3"),d(Md,Bd,Fd,!1,null,"56a272f0",null)),Id=Pd.exports,Nd=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{position:"fixed",left:"1000%",top:"0"}},[e("input",{ref:"file",attrs:{type:"file",accept:t.accept,multiple:t.multiple},on:{change:t.uploadHandle}})])},Hd=[],zd={name:"upload",data(){return{type:"",multiple:!1}},computed:{accept(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[".jpg",".jpeg",".png"],video:[".mp4"],word:[".doc",".docx"],excel:[".xls",".xlsx"],ppt:[".ppt",".pptx"],zip:[".zip",".7z",".rar"]}[e]||["."+e])}),t.join(",")}return""},fileTypeTip(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[this.$t("_t.upload.type.image")],video:["mp4"],word:["doc(x)"],excel:["xls(x)"],zip:[this.$t("_t.upload.type.zip")]}[e]||[e])}),t.join("、")}return""}},methods:{main(t={}){this.type=t.type,this.multiple=!!t.multiple,this._opt=t,this.$nextTick(()=>{this.$refs.file.click()})},uploadHandle(t){let e=t.target.files;if(this._opt.type||this._opt.size)for(let s=0;s<e.length;s++){let t=e[s];if(this._opt.type){var n=this.accept.split(","),i=t.name.match(/\.[^\.]+$/)[0];if(!n.includes(i))return this.$message({message:this.$t("_t.upload.message.type",{type:this.fileTypeTip})}),void(this.$refs.file.value="")}if(this._opt.size&&t.size/1024/1024>this._opt.size)return this.$message({message:this.$t("_t.upload.message.size",{size:this._opt.size})}),void(this.$refs.file.value="")}let r=[],o=[],a=e.length;(function t(n){n>=e.length||(r.push({file:e[n],progress:t=>{o[n].rate=t},success:(t,e)=>{o[n].state=1,o[n].path=t,o[n].obj=e,0==--a&&this._opt.loading&&this.$loadOver()},fail:t=>{o[n].state=2,o[n].errorMessage=t,0==--a&&this._opt.loading&&this.$loadOver()}}),o.push({name:e[n].name,size:parseFloat((e[n].size/1024).toFixed(1)),state:0,rate:0,path:"",obj:"",errorMessage:""}),t.call(this,n+1))}).call(this,0),this._opt.loading&&this.$loading(),this._opt.listener&&this._opt.listener(o),this.$compsConfig.uploadFile(r,t=>{this.$refs.file.value="",this._opt.loading&&this.$loadOver(),this._opt.success&&this._opt.success(t)})}}},Rd=zd,Od=d(Rd,Nd,Hd,!1,null,null,null),Ud=Od.exports,Kd=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"none"}},[e("button",{ref:"clipboard",attrs:{id:"clipboard","data-clipboard-action":"copy","data-clipboard-text":t.clipboardText}})])},Wd=[],jd=n("3278"),Vd=n.n(jd),qd={name:"copy",data(){return{clipboardText:""}},mounted(){new Vd.a("#clipboard").on("success",t=>{this.$message({message:"复制成功"})}).on("error",t=>{this.$message({type:"fail",message:"该浏览器不支持复制"})})},methods:{main(t){this.clipboardText=t,this.$nextTick(()=>{this.$refs.clipboard.click()})}}},Yd=qd,Xd=d(Yd,Kd,Wd,!1,null,null,null),Gd=Xd.exports,Zd=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-min-dialog"},t._l(t.list,(function(n,i){return e("div",{directives:[{name:"show",rawName:"v-show",value:n.show,expression:"item.show"}],key:i,staticClass:"item flex-between-center",on:{click:function(t){return n.opt.back()}}},[e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.opt.title)))]),n.opt.closeButton?e("div",{staticClass:"handle flex-center",on:{click:function(t){return t.stopPropagation(),n.vm.close()}}},[e("i",{staticClass:"c-icon-cross"})]):t._e()])})),0)},Qd=[],Jd={name:"minDialog",data(){return{list:[]}},methods:{main(t,e){let n={show:!0,vm:t,opt:e};return this.list.push(n),{show:()=>{n.show=!0},hide:()=>{n.show=!1},remove:()=>{this.list.splice(this.list.findIndex(t=>t==n),1)}}}}},th=Jd,eh=(n("4c39"),d(th,Zd,Qd,!1,null,"575ee27a",null)),nh=eh.exports,ih=function(){var t=this,e=t._self._c;return e("div")},rh=[],oh={name:"loading",data(){return{dom:"",followDom:!0,message:"",timeout:1e4,count:0}},created(){this.dom._$loading=this,this._$message=this.$message({dom:this.dom,followDom:this.followDom,type:"loading",message:this.message,timeout:!1,mask:!0}),this._timer=[],this.start()},methods:{start(){this.count++,this.timeout&&this._timer.push(setTimeout(this.close,this.timeout))},close(){--this.count<=0&&(this._timer.forEach(t=>{clearTimeout(t)}),this.dom._$loading=void 0,this._$message.close(),this.$destroy(),this.$el.remove())},update(t){this._$message.message=t}}},ah=oh,sh=d(ah,ih,rh,!1,null,null,null),lh=sh.exports,ch=function(){var t=this,e=t._self._c;return e("div",[t.mask?e("div",{staticClass:"popup-mask",staticStyle:{"z-index":"9999"},style:{position:t.inBody?"fixed":"absolute"},attrs:{invisible:""}}):t._e(),e("div",{staticClass:"c-message flex flex-center an",class:{"an-fadein":t.active,"an-fadeout":!t.active},style:{position:!t.inBody&&t.followDom?"absolute":"fixed","min-width":"loading"==t.type?"auto":""}},[e("i",{staticClass:"icon c-icon-message",class:t.type?"c-icon-message-"+t.type:""}),t.message?e("p",{domProps:{innerHTML:t._s(t.message)}}):t._e()])])},uh=[],dh={name:"message",data(){return{dom:"",followDom:!0,type:"",message:"",timeout:2500,mask:!1,active:!0}},computed:{inBody(){return this.dom==document.body}},mounted(){"static"==getComputedStyle(this.dom).position&&(this._domPosition=getComputedStyle(this.dom).position,this.dom.style.position="relative"),"loading"!=this.type&&(this.dom._$message&&this.dom._$message.close(),this.dom._$message=this),this.timeout&&(this._timer=setTimeout(this.close,this.timeout))},methods:{close(){"loading"!=this.type&&delete this.dom._$message,this.active=!1,clearTimeout(this._timer),setTimeout(()=>{this.$destroy(),this.$el.remove(),this._domPosition&&(this.dom.style.position=this._domPosition)},250)}}},hh=dh,ph=(n("9dac"),d(hh,ch,uh,!1,null,"60072a79",null)),fh=ph.exports,mh=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-notice an",class:{"an-slidein":t.active,"an-fadeout":!t.active},style:{"margin-top":t.active?"":-t.height+"px"}},[e("div",{staticClass:"flex"},[e("i",{staticClass:"icon c-icon-message",class:t.type?"c-icon-message-"+t.type:"",attrs:{color:""}}),e("div",{staticClass:"flex-grow"},[e("p",{staticClass:"title"},[t._v(t._s(t.title))]),e("div",{staticClass:"content",domProps:{innerHTML:t._s(t.message)}})])]),t.button?e("div",{staticClass:"button"},t._l(t.button,(function(n,i){return e("a",{key:i,on:{click:function(e){return t.buttonHandle(n)}}},[t._v(t._s(n.name))])})),0):t._e(),e("a",{staticClass:"close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})])])},gh=[],vh={name:"notice",data(){return{type:"",title:"",message:"",timeout:1e4,button:!1,active:!0,height:0}},mounted(){this.$nextTick(()=>{this.height=this.$el.clientHeight}),this.timeout&&(this._timer=setTimeout(this.close,this.timeout))},methods:{close(){this.active=!1,clearTimeout(this._timer),setTimeout(()=>{this.$destroy(),this.$el.remove()},450)},buttonHandle(t){t.callback(this.close)}}},bh=vh,_h=(n("3bb9"),d(bh,mh,gh,!1,null,"73f5d106",null)),yh=_h.exports,wh=function(){var t=this,e=t._self._c;return e("c-dialog",{ref:"dialog",attrs:{confirm:"",title:!1,width:"450","close-button":!1},scopedSlots:t._u([{key:"button",fn:function(){return[t.buttons.length?t._l(t.buttons,(function(n,i){return e("c-button",{key:i,attrs:{size:"confirm",color:n.color?"main":"normal"},on:{click:function(e){return t.buttonHandle(n.event||"resolve",n.value)}}},[t._v(t._s(t.$t(n.name)))])})):[e("c-button",{attrs:{size:"confirm",color:"main"},on:{click:function(e){return t.buttonHandle("resolve")}}},[t._v(t._s(t.$t(t.buttonName)))]),t.cancelButton?e("c-button",{attrs:{size:"confirm"},on:{click:function(e){return t.buttonHandle("cancel")}}},[t._v(t._s(t.$t(t.cancelButtonName)))]):t._e()]]},proxy:!0}])},[e("div",{staticClass:"c-confirm flex"},[e("i",{staticClass:"icon",class:t.type?"c-icon-message-"+t.type:"",attrs:{color:""}}),e("div",{staticClass:"flex-grow"},[e("p",{staticClass:"title"},[t._v(t._s(t.$t(t.title)))]),e("div",{staticClass:"content",domProps:{innerHTML:t._s(t.message)}})])])])},xh=[],kh={name:"confirm",data(){return{state:"",type:"enquire",title:"_t.popup.confirmTitle",message:"",buttonName:"_t.popup.button",cancelButton:!0,cancelButtonName:"_t.popup.cancelButton",buttons:[]}},mounted(){this.$refs.dialog.open({zIndex:1101})},methods:{buttonHandle(t,e){this.state=t,this[t]&&this[t](e),this.$refs.dialog.close(),setTimeout(()=>{this.$destroy(),this.$el.remove()},260)}}},Sh=kh,Dh=(n("c792"),d(Sh,wh,xh,!1,null,"1329f1c1",null)),Ch=Dh.exports,Eh=function(){var t=this,e=t._self._c;return e("c-dialog",{ref:"dialog",attrs:{title:!1,width:"auto",button:!1}},[e("div",{staticClass:"c-preview-close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})]),t.video?e("video",{ref:"video",staticClass:"c-preview-video",attrs:{src:t.src,controls:"",loop:"",autoplay:""}}):e("img",{ref:"img",staticClass:"c-preview-img",attrs:{src:t.src}})])},Ah=[],Th={name:"preview",data(){return{src:""}},computed:{video(){return"video"==Ff(this.src).media}},mounted(){this.src&&(this.$loading(),this.video?(this.$refs.video.addEventListener("play",()=>{this.$loadOver(),this.$refs.dialog.open()}),this.$refs.video.addEventListener("error",()=>{this.$loadOver(),this.$message({type:"fail",message:this.$t("_t.preview")})})):(this.$refs.img.onload=()=>{this.$loadOver(),this.$refs.dialog.open()},this.$refs.img.onerror=()=>{this.$loadOver(),this.$message({type:"fail",message:this.$t("_t.preview")})}))},methods:{close(){this.$refs.dialog.close(),setTimeout(()=>{this.$el.remove()},260)}}},Bh=Th,Fh=(n("14dd"),d(Bh,Eh,Ah,!1,null,"5cf2a0cd",null)),$h=Fh.exports,Lh=n("77a0"),Mh=n.n(Lh),Ph=n("3452"),Ih=n.n(Ph),Nh=n("d055"),Hh=n.n(Nh),zh=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],Rh=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Oh(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function Uh(t,e){"undefined"!==typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var Kh=Array.isArray;function Wh(t){return null!==t&&"object"===typeof t}function jh(t){return"boolean"===typeof t}function Vh(t){return"string"===typeof t}var qh=Object.prototype.toString,Yh="[object Object]";function Xh(t){return qh.call(t)===Yh}function Gh(t){return null===t||void 0===t}function Zh(t){return"function"===typeof t}function Qh(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var n=null,i=null;return 1===t.length?Wh(t[0])||Kh(t[0])?i=t[0]:"string"===typeof t[0]&&(n=t[0]):2===t.length&&("string"===typeof t[0]&&(n=t[0]),(Wh(t[1])||Kh(t[1]))&&(i=t[1])),{locale:n,params:i}}function Jh(t){return JSON.parse(JSON.stringify(t))}function tp(t,e){if(t.delete(e))return t}function ep(t){var e=[];return t.forEach((function(t){return e.push(t)})),e}function np(t,e){return!!~t.indexOf(e)}var ip=Object.prototype.hasOwnProperty;function rp(t,e){return ip.call(t,e)}function op(t){for(var e=arguments,n=Object(t),i=1;i<arguments.length;i++){var r=e[i];if(void 0!==r&&null!==r){var o=void 0;for(o in r)rp(r,o)&&(Wh(r[o])?n[o]=op(n[o],r[o]):n[o]=r[o])}}return n}function ap(t,e){if(t===e)return!0;var n=Wh(t),i=Wh(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Kh(t),o=Kh(e);if(r&&o)return t.length===e.length&&t.every((function(t,n){return ap(t,e[n])}));if(r||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return ap(t[n],e[n])}))}catch(l){return!1}}function sp(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function lp(t){return null!=t&&Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e]=sp(t[e]))})),t}function cp(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[t,i.locale,i._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var n=[],i=arguments.length-2;while(i-- >0)n[i]=arguments[i+2];var r=this.$i18n;return r._tc.apply(r,[t,r.locale,r._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}function up(t){function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===t&&(t=!1),t?{mounted:e}:{beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n)if(t.i18n instanceof cf){if(t.__i18nBridge||t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{},n=t.__i18nBridge||t.__i18n;n.forEach((function(t){e=op(e,JSON.parse(t))})),Object.keys(e).forEach((function(n){t.i18n.mergeLocaleMessage(n,e[n])}))}catch(l){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(Xh(t.i18n)){var i=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof cf?this.$root.$i18n:null;if(i&&(t.i18n.root=this.$root,t.i18n.formatter=i.formatter,t.i18n.fallbackLocale=i.fallbackLocale,t.i18n.formatFallbackMessages=i.formatFallbackMessages,t.i18n.silentTranslationWarn=i.silentTranslationWarn,t.i18n.silentFallbackWarn=i.silentFallbackWarn,t.i18n.pluralizationRules=i.pluralizationRules,t.i18n.preserveDirectiveContent=i.preserveDirectiveContent),t.__i18nBridge||t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{},o=t.__i18nBridge||t.__i18n;o.forEach((function(t){r=op(r,JSON.parse(t))})),t.i18n.messages=r}catch(l){0}var a=t.i18n,s=a.sharedMessages;s&&Xh(s)&&(t.i18n.messages=op(t.i18n.messages,s)),this._i18n=new cf(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),i&&i.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof cf?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof cf&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?(t.i18n instanceof cf||Xh(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof cf||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof cf)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick((function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}}var dp={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,i=e.parent,r=e.props,o=e.slots,a=i.$i18n;if(a){var s=r.path,l=r.locale,c=r.places,u=o(),d=a.i(s,l,hp(u)||c?pp(u.default,c):u),h=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return h?t(h,n,d):d}}};function hp(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}function pp(t,e){var n=e?fp(e):{};if(!t)return n;t=t.filter((function(t){return t.tag||""!==t.text.trim()}));var i=t.every(vp);return t.reduce(i?mp:gp,n)}function fp(t){return Array.isArray(t)?t.reduce(gp,{}):Object.assign({},t)}function mp(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function gp(t,e,n){return t[n]=e,t}function vp(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var bp,_p={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,i=e.parent,r=e.data,o=i.$i18n;if(!o)return null;var a=null,s=null;Vh(n.format)?a=n.format:Wh(n.format)&&(n.format.key&&(a=n.format.key),s=Object.keys(n.format).reduce((function(t,e){var i;return np(zh,e)?Object.assign({},t,(i={},i[e]=n.format[e],i)):t}),null));var l=n.locale||o.locale,c=o._ntp(n.value,l,a,s),u=c.map((function(t,e){var n,i=r.scopedSlots&&r.scopedSlots[t.type];return i?i((n={},n[t.type]=t.value,n.index=e,n.parts=c,n)):t.value})),d=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return d?t(d,{attrs:r.attrs,class:r["class"],staticClass:r.staticClass},u):u}};function yp(t,e,n){kp(t,n)&&Dp(t,e,n)}function wp(t,e,n,i){if(kp(t,n)){var r=n.context.$i18n;Sp(t,n)&&ap(e.value,e.oldValue)&&ap(t._localeMessage,r.getLocaleMessage(r.locale))||Dp(t,e,n)}}function xp(t,e,n,i){var r=n.context;if(r){var o=n.context.$i18n||{};e.modifiers.preserve||o.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t["_vt"],t._locale=void 0,delete t["_locale"],t._localeMessage=void 0,delete t["_localeMessage"]}else Oh("Vue instance does not exists in VNode context")}function kp(t,e){var n=e.context;return n?!!n.$i18n||(Oh("VueI18n instance does not exists in Vue instance"),!1):(Oh("Vue instance does not exists in VNode context"),!1)}function Sp(t,e){var n=e.context;return t._locale===n.$i18n.locale}function Dp(t,e,n){var i,r,o=e.value,a=Cp(o),s=a.path,l=a.locale,c=a.args,u=a.choice;if(s||l||c)if(s){var d=n.context;t._vt=t.textContent=null!=u?(i=d.$i18n).tc.apply(i,[s,u].concat(Ep(l,c))):(r=d.$i18n).t.apply(r,[s].concat(Ep(l,c))),t._locale=d.$i18n.locale,t._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else Oh("`path` is required in v-t directive");else Oh("value type not supported")}function Cp(t){var e,n,i,r;return Vh(t)?e=t:Xh(t)&&(e=t.path,n=t.locale,i=t.args,r=t.choice),{path:e,locale:n,args:i,choice:r}}function Ep(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||Xh(e))&&n.push(e),n}function Ap(t,e){void 0===e&&(e={bridge:!1}),Ap.installed=!0,bp=t;bp.version&&Number(bp.version.split(".")[0]);cp(bp),bp.mixin(up(e.bridge)),bp.directive("t",{bind:yp,update:wp,unbind:xp}),bp.component(dp.name,dp),bp.component(_p.name,_p);var n=bp.config.optionMergeStrategies;n.i18n=function(t,e){return void 0===e?t:e}}var Tp=function(){this._caches=Object.create(null)};Tp.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=$p(t),this._caches[t]=n),Lp(n,e)};var Bp=/^(?:\d)+/,Fp=/^(?:\w)+/;function $p(t){var e=[],n=0,i="";while(n<t.length){var r=t[n++];if("{"===r){i&&e.push({type:"text",value:i}),i="";var o="";r=t[n++];while(void 0!==r&&"}"!==r)o+=r,r=t[n++];var a="}"===r,s=Bp.test(o)?"list":a&&Fp.test(o)?"named":"unknown";e.push({value:o,type:s})}else"%"===r?"{"!==t[n]&&(i+=r):i+=r}return i&&e.push({type:"text",value:i}),e}function Lp(t,e){var n=[],i=0,r=Array.isArray(e)?"list":Wh(e)?"named":"unknown";if("unknown"===r)return n;while(i<t.length){var o=t[i];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===r&&n.push(e[o.value]);break;case"unknown":0;break}i++}return n}var Mp=0,Pp=1,Ip=2,Np=3,Hp=0,zp=1,Rp=2,Op=3,Up=4,Kp=5,Wp=6,jp=7,Vp=8,qp=[];qp[Hp]={ws:[Hp],ident:[Op,Mp],"[":[Up],eof:[jp]},qp[zp]={ws:[zp],".":[Rp],"[":[Up],eof:[jp]},qp[Rp]={ws:[Rp],ident:[Op,Mp],0:[Op,Mp],number:[Op,Mp]},qp[Op]={ident:[Op,Mp],0:[Op,Mp],number:[Op,Mp],ws:[zp,Pp],".":[Rp,Pp],"[":[Up,Pp],eof:[jp,Pp]},qp[Up]={"'":[Kp,Mp],'"':[Wp,Mp],"[":[Up,Ip],"]":[zp,Np],eof:Vp,else:[Up,Mp]},qp[Kp]={"'":[Up,Mp],eof:Vp,else:[Kp,Mp]},qp[Wp]={'"':[Up,Mp],eof:Vp,else:[Wp,Mp]};var Yp=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Xp(t){return Yp.test(t)}function Gp(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?t:t.slice(1,-1)}function Zp(t){if(void 0===t||null===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function Qp(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(Xp(e)?Gp(e):"*"+e)}function Jp(t){var e,n,i,r,o,a,s,l=[],c=-1,u=Hp,d=0,h=[];function p(){var e=t[c+1];if(u===Kp&&"'"===e||u===Wp&&'"'===e)return c++,i="\\"+e,h[Mp](),!0}h[Pp]=function(){void 0!==n&&(l.push(n),n=void 0)},h[Mp]=function(){void 0===n?n=i:n+=i},h[Ip]=function(){h[Mp](),d++},h[Np]=function(){if(d>0)d--,u=Up,h[Mp]();else{if(d=0,void 0===n)return!1;if(n=Qp(n),!1===n)return!1;h[Pp]()}};while(null!==u)if(c++,e=t[c],"\\"!==e||!p()){if(r=Zp(e),s=qp[u],o=s[r]||s["else"]||Vp,o===Vp)return;if(u=o[0],a=h[o[1]],a&&(i=o[2],i=void 0===i?e:i,!1===a()))return;if(u===jp)return l}}var tf=function(){this._cache=Object.create(null)};tf.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=Jp(t),e&&(this._cache[t]=e)),e||[]},tf.prototype.getPathValue=function(t,e){if(!Wh(t))return null;var n=this.parsePath(e);if(0===n.length)return null;var i=n.length,r=t,o=0;while(o<i){var a=r[n[o]];if(void 0===a||null===a)return null;r=a,o++}return r};var ef,nf=/<\/?[\w\s="/.':;#-\/]+>/,rf=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,of=/^@(?:\.([a-zA-Z]+))?:/,af=/[()]/g,sf={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},lf=new Tp,cf=function(t){var e=this;void 0===t&&(t={}),!bp&&"undefined"!==typeof window&&window.Vue&&Ap(window.Vue);var n=t.locale||"en-US",i=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),r=t.messages||{},o=t.dateTimeFormats||t.datetimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||lf,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void 0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new tf,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in t&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,n){var i=Object.getPrototypeOf(e);if(i&&i.getChoiceIndex){var r=i.getChoiceIndex;return r.call(e,t,n)}var o=function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):o(t,n)},this._exist=function(t,n){return!(!t||!n)&&(!Gh(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])})),this._initVM({locale:n,fallbackLocale:i,messages:r,dateTimeFormats:o,numberFormats:a})},uf={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};cf.prototype._checkLocaleMessage=function(t,e,n){var i=[],r=function(t,e,n,i){if(Xh(n))Object.keys(n).forEach((function(o){var a=n[o];Xh(a)?(i.push(o),i.push("."),r(t,e,a,i),i.pop(),i.pop()):(i.push(o),r(t,e,a,i),i.pop())}));else if(Kh(n))n.forEach((function(n,o){Xh(n)?(i.push("["+o+"]"),i.push("."),r(t,e,n,i),i.pop(),i.pop()):(i.push("["+o+"]"),r(t,e,n,i),i.pop())}));else if(Vh(n)){var o=nf.test(n);if(o){var a="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?Oh(a):"error"===t&&Uh(a)}}};r(e,t,n,i)},cf.prototype._initVM=function(t){var e=bp.config.silent;bp.config.silent=!0,this._vm=new bp({data:t,__VUE18N__INSTANCE__:!0}),bp.config.silent=e},cf.prototype.destroyVM=function(){this._vm.$destroy()},cf.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},cf.prototype.unsubscribeDataChanging=function(t){tp(this._dataListeners,t)},cf.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",(function(){var e=ep(t._dataListeners),n=e.length;while(n--)bp.nextTick((function(){e[n]&&e[n].$forceUpdate()}))}),{deep:!0})},cf.prototype.watchLocale=function(t){if(t){if(!this.__VUE_I18N_BRIDGE__)return null;var e=this,n=this._vm;return this.vm.$watch("locale",(function(i){n.$set(n,"locale",i),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=i),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var i=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){i.$set(i,"locale",t),i.$forceUpdate()}),{immediate:!0})},cf.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},uf.vm.get=function(){return this._vm},uf.messages.get=function(){return Jh(this._getMessages())},uf.dateTimeFormats.get=function(){return Jh(this._getDateTimeFormats())},uf.numberFormats.get=function(){return Jh(this._getNumberFormats())},uf.availableLocales.get=function(){return Object.keys(this.messages).sort()},uf.locale.get=function(){return this._vm.locale},uf.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},uf.fallbackLocale.get=function(){return this._vm.fallbackLocale},uf.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},uf.formatFallbackMessages.get=function(){return this._formatFallbackMessages},uf.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},uf.missing.get=function(){return this._missing},uf.missing.set=function(t){this._missing=t},uf.formatter.get=function(){return this._formatter},uf.formatter.set=function(t){this._formatter=t},uf.silentTranslationWarn.get=function(){return this._silentTranslationWarn},uf.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},uf.silentFallbackWarn.get=function(){return this._silentFallbackWarn},uf.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},uf.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},uf.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},uf.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},uf.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var i=this._getMessages();Object.keys(i).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])}))}},uf.postTranslation.get=function(){return this._postTranslation},uf.postTranslation.set=function(t){this._postTranslation=t},uf.sync.get=function(){return this._sync},uf.sync.set=function(t){this._sync=t},cf.prototype._getMessages=function(){return this._vm.messages},cf.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},cf.prototype._getNumberFormats=function(){return this._vm.numberFormats},cf.prototype._warnDefault=function(t,e,n,i,r,o){if(!Gh(n))return n;if(this._missing){var a=this._missing.apply(null,[t,e,i,r]);if(Vh(a))return a}else 0;if(this._formatFallbackMessages){var s=Qh.apply(void 0,r);return this._render(e,o,s.params,e)}return e},cf.prototype._isFallbackRoot=function(t){return(this._fallbackRootWithEmptyString?!t:Gh(t))&&!Gh(this._root)&&this._fallbackRoot},cf.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},cf.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},cf.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},cf.prototype._interpolate=function(t,e,n,i,r,o,a){if(!e)return null;var s,l=this._path.getPathValue(e,n);if(Kh(l)||Xh(l))return l;if(Gh(l)){if(!Xh(e))return null;if(s=e[n],!Vh(s)&&!Zh(s))return null}else{if(!Vh(l)&&!Zh(l))return null;s=l}return Vh(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(t,e,s,i,"raw",o,a)),this._render(s,r,o,n)},cf.prototype._link=function(t,e,n,i,r,o,a){var s=n,l=s.match(rf);for(var c in l)if(l.hasOwnProperty(c)){var u=l[c],d=u.match(of),h=d[0],p=d[1],f=u.replace(h,"").replace(af,"");if(np(a,f))return s;a.push(f);var m=this._interpolate(t,e,f,i,"raw"===r?"string":r,"raw"===r?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,f,i,r,o)}m=this._warnDefault(t,f,m,i,Kh(o)?o:[o],r),this._modifiers.hasOwnProperty(p)?m=this._modifiers[p](m):sf.hasOwnProperty(p)&&(m=sf[p](m)),a.pop(),s=m?s.replace(u,m):s}return s},cf.prototype._createMessageContext=function(t,e,n,i){var r=this,o=Kh(t)?t:[],a=Wh(t)?t:{},s=function(t){return o[t]},l=function(t){return a[t]},c=this._getMessages(),u=this.locale;return{list:s,named:l,values:t,formatter:e,path:n,messages:c,locale:u,linked:function(t){return r._interpolate(u,c[u]||{},t,null,i,void 0,[t])}}},cf.prototype._render=function(t,e,n,i){if(Zh(t))return t(this._createMessageContext(n,this._formatter||lf,i,e));var r=this._formatter.interpolate(t,n,i);return r||(r=lf.interpolate(t,n,i)),"string"!==e||Vh(r)?r:r.join("")},cf.prototype._appendItemToChain=function(t,e,n){var i=!1;return np(t,e)||(i=!0,e&&(i="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(i=n[e]))),i},cf.prototype._appendLocaleToChain=function(t,e,n){var i,r=e.split("-");do{var o=r.join("-");i=this._appendItemToChain(t,o,n),r.splice(-1,1)}while(r.length&&!0===i);return i},cf.prototype._appendBlockToChain=function(t,e,n){for(var i=!0,r=0;r<e.length&&jh(i);r++){var o=e[r];Vh(o)&&(i=this._appendLocaleToChain(t,o,n))}return i},cf.prototype._getLocaleChain=function(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[t];if(!n){e||(e=this.fallbackLocale),n=[];var i,r=[t];while(Kh(r))r=this._appendBlockToChain(n,r,e);i=Kh(e)?e:Wh(e)?e["default"]?e["default"]:null:e,r=Vh(i)?[i]:i,r&&this._appendBlockToChain(n,r,null),this._localeChainCache[t]=n}return n},cf.prototype._translate=function(t,e,n,i,r,o,a){for(var s,l=this._getLocaleChain(e,n),c=0;c<l.length;c++){var u=l[c];if(s=this._interpolate(u,t[u],i,r,o,a,[i]),!Gh(s))return s}return null},cf.prototype._t=function(t,e,n,i){var r,o=[],a=arguments.length-4;while(a-- >0)o[a]=arguments[a+4];if(!t)return"";var s=Qh.apply(void 0,o);this._escapeParameterHtml&&(s.params=lp(s.params));var l=s.locale||e,c=this._translate(n,l,this.fallbackLocale,t,i,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[t].concat(o))}return c=this._warnDefault(l,t,c,i,o,"string"),this._postTranslation&&null!==c&&void 0!==c&&(c=this._postTranslation(c,t)),c},cf.prototype.t=function(t){var e,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},cf.prototype._i=function(t,e,n,i,r){var o=this._translate(n,e,this.fallbackLocale,t,i,"raw",r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,r)}return this._warnDefault(e,t,o,i,[r],"raw")},cf.prototype.i=function(t,e,n){return t?(Vh(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},cf.prototype._tc=function(t,e,n,i,r){var o,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!t)return"";void 0===r&&(r=1);var l={count:r,n:r},c=Qh.apply(void 0,a);return c.params=Object.assign(l,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((o=this)._t.apply(o,[t,e,n,i].concat(a)),r)},cf.prototype.fetchChoice=function(t,e){if(!t||!Vh(t))return null;var n=t.split("|");return e=this.getChoiceIndex(e,n.length),n[e]?n[e].trim():t},cf.prototype.tc=function(t,e){var n,i=[],r=arguments.length-2;while(r-- >0)i[r]=arguments[r+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(i))},cf.prototype._te=function(t,e,n){var i=[],r=arguments.length-3;while(r-- >0)i[r]=arguments[r+3];var o=Qh.apply(void 0,i).locale||e;return this._exist(n[o],t)},cf.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},cf.prototype.getLocaleMessage=function(t){return Jh(this._vm.messages[t]||{})},cf.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},cf.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,op("undefined"!==typeof this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},cf.prototype.getDateTimeFormat=function(t){return Jh(this._vm.dateTimeFormats[t]||{})},cf.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},cf.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,op(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},cf.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}},cf.prototype._localizeDateTime=function(t,e,n,i,r,o){for(var a=e,s=i[a],l=this._getLocaleChain(e,n),c=0;c<l.length;c++){var u=l[c];if(s=i[u],a=u,!Gh(s)&&!Gh(s[r]))break}if(Gh(s)||Gh(s[r]))return null;var d,h=s[r];if(o)d=new Intl.DateTimeFormat(a,Object.assign({},h,o));else{var p=a+"__"+r;d=this._dateTimeFormatters[p],d||(d=this._dateTimeFormatters[p]=new Intl.DateTimeFormat(a,h))}return d.format(t)},cf.prototype._d=function(t,e,n,i){if(!n){var r=i?new Intl.DateTimeFormat(e,i):new Intl.DateTimeFormat(e);return r.format(t)}var o=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n,i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)}return o||""},cf.prototype.d=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.locale,r=null,o=null;return 1===e.length?(Vh(e[0])?r=e[0]:Wh(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(r=e[0].key)),o=Object.keys(e[0]).reduce((function(t,n){var i;return np(Rh,n)?Object.assign({},t,(i={},i[n]=e[0][n],i)):t}),null)):2===e.length&&(Vh(e[0])&&(r=e[0]),Vh(e[1])&&(i=e[1])),this._d(t,i,r,o)},cf.prototype.getNumberFormat=function(t){return Jh(this._vm.numberFormats[t]||{})},cf.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},cf.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,op(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},cf.prototype._clearNumberFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}},cf.prototype._getNumberFormatter=function(t,e,n,i,r,o){for(var a=e,s=i[a],l=this._getLocaleChain(e,n),c=0;c<l.length;c++){var u=l[c];if(s=i[u],a=u,!Gh(s)&&!Gh(s[r]))break}if(Gh(s)||Gh(s[r]))return null;var d,h=s[r];if(o)d=new Intl.NumberFormat(a,Object.assign({},h,o));else{var p=a+"__"+r;d=this._numberFormatters[p],d||(d=this._numberFormatters[p]=new Intl.NumberFormat(a,h))}return d},cf.prototype._n=function(t,e,n,i){if(!cf.availabilities.numberFormat)return"";if(!n){var r=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return r.format(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),a=o&&o.format(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},i))}return a||""},cf.prototype.n=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var i=this.locale,r=null,o=null;return 1===e.length?Vh(e[0])?r=e[0]:Wh(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(r=e[0].key),o=Object.keys(e[0]).reduce((function(t,n){var i;return np(zh,n)?Object.assign({},t,(i={},i[n]=e[0][n],i)):t}),null)):2===e.length&&(Vh(e[0])&&(r=e[0]),Vh(e[1])&&(i=e[1])),this._n(t,i,r,o)},cf.prototype._ntp=function(t,e,n,i){if(!cf.availabilities.numberFormat)return[];if(!n){var r=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return r.formatToParts(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),a=o&&o.formatToParts(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,i)}return a||[]},Object.defineProperties(cf.prototype,uf),Object.defineProperty(cf,"availabilities",{get:function(){if(!ef){var t="undefined"!==typeof Intl;ef={dateTimeFormat:t&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:t&&"undefined"!==typeof Intl.NumberFormat}}return ef}}),cf.install=Ap,cf.version="8.28.2";var df=cf;$n.a.use(df);const hf={zh:{_t:{select:{placeholder:"请选择",upperLimit:"最多只能选择{count}项"},region:{province:"省",city:"市",county:"区县",address:"详细街道地址"},transfer:{title:"数据",titleLeft:"全部{name}",titleRight:"已选{name}",searchPlaceholder:"输入关键词搜索"},switch:{open:"开启",close:"关闭"},datetime:{placeholder:"请选择",placeholderStart:"开始",placeholderEnd:"结束",month:{0:"一月",1:"二月",2:"三月",3:"四月",4:"五月",5:"六月",6:"七月",7:"八月",8:"九月",9:"十月",10:"十一月",11:"十二月"},weeks:{0:"日",1:"一",2:"二",3:"三",4:"四",5:"五",6:"六"}},upload:{button:"上传文件",delete:"删除",tip:"支持格式:{type}",type:{image:"图片",zip:"压缩包"},message:{limit:"最多只能上传{limit}个文件",type:"请选择{type}格式的文件",size:"上传的文件大小不得超过{size}MB"}},preview:"文件加载失败",popup:{confirmTitle:"系统提醒",button:"确定",cancelButton:"取消"},table:{more:"更多",addChild:"添加子项"},pagination:{total:"共{0}条",pageSize:"{0}条/页",pageBefore:"第",pageAfter:"页 共{0}页",prev:"上一页",next:"下一页"},validate:{fail:"提交数据有误,请检查后重试"},empty:"暂无相关信息"}},en:{_t:{select:{placeholder:"please select",upperLimit:"Maximum {count} selection allowed"},region:{province:"province",city:"city",county:"county",address:"address"},transfer:{title:"data",titleLeft:"All {name}",titleRight:"Selected {name}",searchPlaceholder:"Enter keyword search"},switch:{open:"open",close:"close"},datetime:{placeholder:"please select",placeholderStart:"start",placeholderEnd:"end",month:{0:"Jan",1:"Feb",2:"Mar",3:"Apr",4:"May",5:"Jun",6:"Jul",7:"Aug",8:"Sep",9:"Oct",10:"Nov",11:"Dec"},weeks:{0:"Su",1:"Mo",2:"Tu",3:"We",4:"Th",5:"Fr",6:"Sa"}},upload:{button:"Upload File",delete:"Delete",tip:"Supported formats: {type}",type:{image:"image",zip:"zip package"},message:{limit:"You can only upload up to {limit} files",type:"Please select a file of type {type}",size:"Uploaded file size must not exceed {size}MB"}},preview:"File loading failed",popup:{confirmTitle:"System reminder",button:"OK",cancelButton:"Cancel"},table:{more:"More",addChild:"Add child"},pagination:{total:"Total {0} results",pageSize:"{0} / page",pageBefore:"Page",pageAfter:"of {0}",prev:"Previous",next:"Next"},validate:{fail:"Data is in error, please check and retry"},empty:"The data is empty"}}};var pf=function(t={locale:"zh",messages:{}}){if(t.messages)for(let e in hf)t.messages[e]=Object.assign(t.messages[e]||{},hf[e]);return new df(t)},ff=(n("88a7"),n("271a"),n("5494"),n("5b81"),n("bc3a")),mf=n.n(ff);function gf(t,e){const n=new t;function i(t){var n=(new Date).getTime(),i=function(t){return Ih.a.AES.encrypt(t,Ih.a.enc.Utf8.parse(e.request.enKey),{iv:Ih.a.enc.Utf8.parse(),mode:Ih.a.mode.ECB,padding:Ih.a.pad.Pkcs7}).toString()}(JSON.stringify(t));return{ciphertext:i,timestamp:n,sign:Ih.a.MD5(i+n+e.request.md5Key).toString()}}function r(t){return JSON.parse(Ih.a.AES.decrypt(t,Ih.a.enc.Utf8.parse(e.request.deKey),{iv:Ih.a.enc.Utf8.parse(),mode:Ih.a.mode.ECB,padding:Ih.a.pad.Pkcs7}).toString(Ih.a.enc.Utf8))}t.prototype.$onBus=function(t,e){n.$on(t,e)},t.prototype.$offBus=function(t){n.$off(t)},t.prototype.$emitBus=function(t,e){n.$emit(t,e)},t.prototype.request=function(t){t=Object.assign({method:"post",data:{},success:()=>{},fail:()=>{},complete:()=>{},response:()=>{}},t);const n=t.data;t.data=e.request.dataFormatter(i(t.data)),"get"==t.method&&(t.params=t.data,delete t.data);let o=t.loading&&this.$loading(Object.assign({timeout:e.request.timeout},"object"==typeof t.loading?t.loading:void 0));const a=mf.a.CancelToken.source(),s=mf.a.create({baseURL:e.request.baseUrl,headers:e.request.headers,cancelToken:a.token})(t).then(i=>{if(clearTimeout(c),delete mf.a.requestQueue[l],o&&o.close(),"blob"!=t.responseType){try{const o=r(i.data.ciphertext);e.request.log&&console.group(`----- success ${t.url.split("?")[0]} -----`),e.request.log&&console.log("@param",n),e.request.log&&console.log("@return",o);try{!1!==e.request.response(o,mf.a.requestQueue)&&(o.code==e.request.successCode?t.success&&t.success(o.obj,o.message):t.fail&&!1===t.fail(o.code,o.obj,o.message)||this.$message({type:"fail",message:o.message||"接口出现未知异常"}))}catch(a){this.$message({type:"fail",message:"程序出现未知异常"}),console.error(a)}t.complete(o.code,o.obj,o.message),t.response(o)}catch(a){e.request.log&&console.group(`----- error ${t.url.split("?")[0]} -----`),e.request.log&&console.log("@param",n),e.request.log&&console.log("@return",i),t.fail&&!1===t.fail()||this.$message({type:"fail",message:"数据出现未知异常"})}e.request.log&&console.log(`----- end ${t.url.split("?")[0]} -----`),e.request.log&&console.groupEnd()}else t.success(i)}).catch(t=>{clearTimeout(c),delete mf.a.requestQueue[l],o&&o.close(),"cancel"!=t.message&&this.$message({type:"fail",message:"网络出现未知异常"})});mf.a.requestQueue||(mf.a.requestIndex=0,mf.a.requestQueue={});const l=mf.a.requestIndex++;s.abort=()=>{a.cancel("cancel")},mf.a.requestQueue[l]=s;const c=setTimeout(()=>{s.abort()},e.request.timeout);return s},t.prototype.download=function(t){this.request({method:"get",url:t.url,responseType:"blob",loading:t.loading||!0,success:e=>{const n=new Blob([e.data],{type:e.data.type}),i=document.createElement("a");i.href=window.URL.createObjectURL(n),i.download=t.fileName||"未命名文件",i.click(),window.URL.revokeObjectURL(i.href)}})},t.prototype.wsRequest=function(t){t=Object.assign({open:()=>{},error:()=>{},message:()=>{},close:()=>{}},t);const n=new WebSocket(`${e.wsRequest.baseUrl}${t.url}`);function r(n,i){e.wsRequest.log&&console.group(`----- ${n} ws:${t.url} -----`),e.wsRequest.log&&console.log("send"==n?"@param":"@return",i),e.wsRequest.log&&console.log(`----- end ws:${t.url} -----`),e.wsRequest.log&&console.groupEnd()}return n.onopen=e=>{r("open",e),t.open(e)},n.onerror=e=>{r("error",e),t.error(e)},n.onmessage=n=>{r("message",n),t.message(n);try{const r=JSON.parse(n.data||"{}");try{!1!==e.wsRequest.response(r,mf.a.requestQueue)&&(r.code==e.wsRequest.successCode?t.success&&t.success(r.obj,r.message):t.fail&&!1===t.fail(r.code,r.obj,r.message)||this.$message({type:"fail",message:r.message||"接口出现未知异常"}))}catch(i){this.$message({type:"fail",message:"程序出现未知异常"}),console.error(i)}}catch(i){t.fail&&!1===t.fail()||this.$message({type:"fail",message:"数据出现未知异常"})}},n.onclose=e=>{r("close",e),t.close(e)},{send:t=>{r("send",t),n.send(JSON.stringify(e.wsRequest.dataFormatter(i(t))))},close:(t,e)=>{n.close(t,e)}}},t.prototype.auth=function(t){let n=e.data.authority();return Array.isArray(t)||(t=[t]),!t.find(t=>!n.includes(t))},t.prototype.parsePixel=function(t,e){let n=0;return t&&/^[^\+]+([\+|-].+)+$/.test(t)?t.toString().replaceAll("-","+-").split("+").forEach(t=>{(""+t).includes("vw")?n+=document.body.clientWidth*parseInt(t)/100:(""+t).includes("vh")?n+=window.innerHeight*parseInt(t)/100:n+=parseInt(t)||0}):n=t,e&&/^\d+(.\d+)?$/.test(n)?n+"px":n}}Date.prototype.format=function(t="yyyy-MM-dd hh:mm:ss"){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr((""+e[n]).length)));return t};const vf={},bf={},_f={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=","{":"[","}":"]",":":";",'"':"'","<":",",">":".","?":"/"," ":"space",arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right"};document.addEventListener("keydown",(function(t){if(t.key)switch(t.key){case"Shift":yf.shift=!0;break;case"Control":yf.ctrl=!0;break;case"Alt":yf.alt=!0;break;default:yf.keymap(t.key.toLowerCase(),t)}})),document.addEventListener("keyup",(function(t){switch(t.key){case"Shift":yf.shift=!1;break;case"Control":yf.ctrl=!1;break;case"Alt":yf.alt=!1;break}}));const yf={config:function(t){for(var e in t)vf[e]=t[e];return yf},listener(t,e){return("object"!=typeof t?[t]:t).forEach((function(t){bf[t]=e})),yf},stop(t){return("object"!=typeof t?[t]:t).forEach((function(t){delete bf[t]})),yf},keymap:function(t,e){return t=(this.ctrl?"ctrl+":"")+(this.shift?"shift+":"")+(this.alt?"alt+":"")+(_f[t]||t),bf[t]&&(e&&e.preventDefault(),bf[t]({key:t})),yf}};var wf=yf,xf={request:{md5Key:"",enKey:"",deKey:"",log:!1,baseUrl:"",headers:"",successCode:200,timeout:1e4,dataFormatter(t){return t},response(){}},wsRequest:{log:!1,baseUrl:"",successCode:200,dataFormatter(t){return t},response(){}},uploadFile(){},i18n:{locale:"zh",messages:{zh:{},en:{}}},theme:{main:"#11B295",mainHover:"#40C0A9",lesser:"#C70000",lesserHover:"#D70000",adorn:""},color:{red:["#F56C6C","#F78989"],green:["#67C23A","#85CE61"],blue:["#409EFF","#66B1FF"],yellow:["#E6A23C","#EBB563"]},style:{unitBorder:"#ddd",unitHoverBorder:"#bbb",unitActiveBorder:"#999",unitDisabled:"#F5F5F5",unitWarn:"#FF5555",unitLine:"#ddd",buttonSize:{normal:{height:"34px","border-radius":"2px",padding:"0 1em","font-size":"13px"},upload:{height:"34px","border-radius":"2px",padding:"0 1em","font-size":"13px"},form:{"min-width":"110px",height:"36px",padding:"0 2em"},confirm:{height:"38px",padding:"0 24px"},dialog:{height:"38px",padding:"0 24px"}},tabList:{},table:{showColBorder:!0,border:"#ccc",headBorder:"#ddd",headBackground:"#F2F4F7",rowBorder:"#eee",rowBorderStyle:"dashed",rowBackground:"#fff",rowEvenBackground:"#FAFCFE",rowHoverBackground:"#f3f3f3",rowHlBackground:"#FFF883",summedBackground:"#FFFFCC"}},empty:{normal:{icon:n("3565"),message:"_t.empty"}},config:{select:{search:!1},layout:{col:12,margin:20,gap:20},tooltip:{color:"black"},form:{breakWhenFail:!0},table:{fixedWidth:!1,colEllipsis:!1},module:{tabType:"tab"}},validate:{regexp:{}},data:{authority(){return[]},options:{},region(){return[]}}};const kf=[yn,Cn,Rn,Vn,Qn,ri,ui,bi,Si,Bi,Ii,Ui,Yi,tr,ar,hr,br,Sr,Br,_s,Ds,Fs,Us,Ys,tl,al,hl,bl,Sl,Bl,Il,Yl,tc,hc,ac,Sc,bc,Bc,Ic,Uc,Yc,lu,fu,yu,Cu,$u,zu,ju,Zu,id,ud,vd,kd,Td,Id],Sf=[Ud,Gd,nh],Df=[lh,fh,yh,Ch,$h];let Cf;function Ef(t,e){t.use(Mh.a),t.use(gf,e),Cf=pf(e.i18n),function t(e,n){for(let i in e)void 0===n[i]?n[i]=e[i]:"object"==typeof n[i]&&t(e[i],n[i])}(xf,e),t.prototype.$compsConfig=e,document.documentElement.style.setProperty("--color-main",e.theme.main),document.documentElement.style.setProperty("--color-main-hover",e.theme.mainHover),document.documentElement.style.setProperty("--color-lesser",e.theme.lesser),document.documentElement.style.setProperty("--color-lesser-hover",e.theme.lesserHover),document.documentElement.style.setProperty("--color-adorn",e.theme.adorn);for(let r in e.color){let t=e.color[r];document.documentElement.style.setProperty("--color-"+r,t[0]),document.documentElement.style.setProperty(`--color-${r}-hover`,t[1])}document.documentElement.style.setProperty("--unit-border",e.style.unitBorder),document.documentElement.style.setProperty("--unit-hover-border",e.style.unitHoverBorder),document.documentElement.style.setProperty("--unit-active-border",e.style.unitActiveBorder),document.documentElement.style.setProperty("--unit-disabled",e.style.unitDisabled),document.documentElement.style.setProperty("--unit-warn",e.style.unitWarn),document.documentElement.style.setProperty("--unit-line",e.style.unitLine),document.documentElement.style.setProperty("--table-border",e.style.table.border),document.documentElement.style.setProperty("--table-head-border",e.style.table.headBorder||e.style.table.headBackground),document.documentElement.style.setProperty("--table-head-background",e.style.table.headBackground),document.documentElement.style.setProperty("--table-row-border",e.style.table.rowBorder),document.documentElement.style.setProperty("--table-row-border-style",e.style.table.rowBorderStyle),document.documentElement.style.setProperty("--table-row-background",e.style.table.rowBackground),document.documentElement.style.setProperty("--table-row-even-background",e.style.table.rowEvenBackground||e.style.table.rowBackground),document.documentElement.style.setProperty("--table-row-hover-background",e.style.table.rowHoverBackground),document.documentElement.style.setProperty("--table-row-hl-background",e.style.table.rowHlBackground),document.documentElement.style.setProperty("--table-col-border",e.style.table.showColBorder?"1px":"1px 0"),document.documentElement.style.setProperty("--table-summed-background",e.style.table.summedBackground),kf.forEach(e=>{t.component(e.name,{...e,i18n:Cf})}),Sf.forEach(e=>{let n=document.createElement("div");document.body.appendChild(n),new(t.extend(e))({i18n:Cf,el:n,mounted(){t.prototype["$"+e.name]=this.main}})});var n=[],i=document.createElement("div");i.style.zIndex=9001,i.style.position="fixed",i.style.right=0,i.style.top=0,document.body.appendChild(i),Df.forEach(e=>{let r=t.extend(e);t.prototype["$"+e.name]=function(t={}){let o;if(t.dom=t.dom||document.body,"loading"==e.name&&t.dom._$loading)return t.dom._$loading.start(),t.dom._$loading;let a=new Promise(a=>{switch(o=new r({i18n:Cf,el:document.createElement("div"),data(){return t},mounted(){"notice"==this.$options.name&&this.$nextTick(()=>{i.clientHeight>window.innerHeight&&n[0].close()})},beforeDestroy(){"notice"==this.$options.name?this.$nextTick(()=>{n.splice(n.findIndex(t=>t==this),1),i.clientHeight>window.innerHeight&&n[0].close()}):"confirm"==this.$options.name&&a(this.state)}}),e.name){case"notice":n.push(o),i.appendChild(o.$el);break;default:t.dom.appendChild(o.$el)}});return"confirm"==e.name?a:o}}),t.prototype.$loadOver=function(){document.body._$loading&&document.body._$loading.close()}}function Af(t,e=500,n=!0){var i,r,o,a,s,l=function(){var c=(new Date).getTime()-a;c<e&&c>=0?i=setTimeout(l,e-c):(i=null,n||(s=t.apply(o,r),i||(o=r=null)))};return function(){o=this,r=arguments,a=(new Date).getTime();var c=n&&!i;return i||(i=setTimeout(l,e)),c&&(s=t.apply(o,r),o=r=null),s}}function Tf(t,e=100,n=!0,i=!0){var r,o,a,s=null,l=0,c=function(){l=n?(new Date).getTime():0,s=null,a=t.apply(r,o),s||(r=o=null)};return function(){var u=(new Date).getTime();l||n||(l=u);var d=e-(u-l);return r=this,o=arguments,d<=0||d>e?(s&&(clearTimeout(s),s=null),l=u,a=t.apply(r,o),s||(r=o=null)):s||i||(s=setTimeout(c,d)),a}}const Bf={set:function(t,e,n){var i=new Date;i.setTime(i.getTime()+1e3*n),document.cookie=t+"="+e+";expires="+i+";path=/"},get:function(t){for(var e=document.cookie.replace(/\s/g,"").split(";"),n=0;n<e.length;n++){var i=e[n].split("=");if(i[0]==t)return decodeURIComponent(i[1])}return""},remove:function(t){Vue.prototype.cookie.set(t,"",-1)}},Ff=function(t=""){let e="",n="";if(t)if(t=t.split("?")[0],/^data:.*;base64,/.test(t)){let i=t.match(/^data:([a-z]*)\/(.*);base64,/);e=t,n=i[2]}else n=t.match(/\.([^\/\.]*)$/),n=n?n[1]:"",e=t.match(n?/([^\/]*)\.[^\/\.]*$/:/([^\/]*)$/)[1];let i=!1;return/(png|jpg|jpe?g|gif)$/i.test(n)?i="image":/(mp4)$/i.test(n)&&(i="video"),{name:e,suffix:n,media:i}};var $f=Ef;e["default"]=$f},fc6a:function(t,e,n){"use strict";var i=n("44ad"),r=n("1d80");t.exports=function(t){return i(r(t))}},fc9c:function(t,e,n){},fdbf:function(t,e,n){"use strict";var i=n("04f8");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ff69:function(t,e,n){"use strict";n("720e")}})}));
|
|
26
26
|
//# sourceMappingURL=vue-component-library.umd.min.js.map
|