文档管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
136 KiB

3 years ago
/*!
* Avue.js v2.8.3
* (c) 2017-2021 Smallwei
* Released under the MIT License.
*
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AVUE",[],t):"object"==typeof exports?exports.AVUE=t():e.AVUE=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=41)}([function(e,t){e.exports=function(e,t,n,r,i,a){var o,u=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,u=e.default);var s="function"==typeof u?u.options:u;t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),n&&(s.functional=!0),i&&(s._scopeId=i);var c;if(a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},s._ssrRegister=c):r&&(c=r),c){var d=s.functional,f=d?s.render:s.beforeCreate;d?(s._injectStyles=c,s.render=function(e,t){return c.call(t),f(e,t)}):s.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:u,options:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.name=a.KEY_COMPONENT_NAME+(e.name||""),e.mixins=e.mixins||[],e.mixins.push(i.default),e};var r=n(45),i=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(7)},function(e,t,n){"use strict";(function(e){function n(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],a=t.length;if("function"==typeof i)return i.apply(null,t.slice(1));if("string"==typeof i){for(var o=String(i).replace(m,function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}}),u=t[r];r<a;u=t[++r])o+=" "+u;return o}return i}function i(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function a(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!i(t)||"string"!=typeof e||e))}function o(e){return 0===Object.keys(e).length}function u(e,t,n){function r(e){i.push.apply(i,e),++a===o&&n(i)}var i=[],a=0,o=e.length;e.forEach(function(e){t(e,r)})}function l(e,t,n){function r(o){if(o&&o.length)return void n(o);var u=i;i+=1,u<a?t(e[u],r):n([])}var i=0,a=e.length;r([])}function s(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}function c(e,t,r,i){if(t.first){return l(s(e),r,i)}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var o=Object.keys(e),c=o.length,d=0,f=[],p=new Promise(function(t,s){var p=function(e){if(f.push.apply(f,e),++d===c)return i(f),f.length?s({errors:f,fields:n(f)}):t()};o.forEach(function(t){var n=e[t];-1!==a.indexOf(t)?l(n,r,p):u(n,r,p)})});return p.catch(function(e){return e}),p}function d(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function f(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(void 0===r?"undefined":h(r))&&"object"===h(e[n])?e[n]=p({},e[n],r):e[n]=r}return e}Object.defineProperty(t,"__esModule",{value:!0});var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof
!function(e){if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(e){}var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},i=n.prototype,a=r.prototype,o=e.FileReaderSync,u=function(e){this.code=this[this.name=e]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),s=l.length,c=e.URL||e.webkitURL||e,d=c.createObjectURL,f=c.revokeObjectURL,p=c,h=e.btoa,m=e.atob,v=e.ArrayBuffer,y=e.Uint8Array;for(r.fake=a.fake=!0;s--;)u.prototype[l[s]]=s+1;return c.createObjectURL||(p=e.URL={}),p.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof r?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):h?t+";base64,"+h(e.data):t+","+encodeURIComponent(e.data)):d?d.call(c,e):void 0},p.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&f&&f.call(c,e)},i.append=function(e){var n=this.data;if(y&&(e instanceof v||e instanceof y)){for(var i="",a=new y(e),l=0,s=a.length;l<s;l++)i+=String.fromCharCode(a[l]);n.push(i)}else if("Blob"===t(e)||"File"===t(e)){if(!o)throw new u("NOT_READABLE_ERR");var c=new o;n.push(c.readAsBinaryString(e))}else e instanceof r?"base64"===e.encoding&&m?n.push(m(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},i.getBlob=function(e){return arguments.length||(e=null),new r(this.data.join(""),e,"raw")},i.toString=function(){return"[object BlobBuilder]"},a.slice=function(e,t,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(e,i>1?t:this.data.length),n,this.encoding)},a.toString=function(){return"[object Blob]"},a.close=function(){this.size=this.data.length=0},n}(e);e.Blob=function(e,n){var r=n?n.type||"":"",i=new t;if(e)for(var a=0,o=e.length;a<o;a++)i.append(e[a]);return i.getBlob(r)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content||void 0)},function(e,t,n){"use strict";Array.prototype.includes||(Array.prototype.includes=function(e,t){if(null===this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0,i=arguments,a=0|t,o=0;if(0===r)return!1;for(o=Math.max(a>=0?a:r-Math.abs(a),0);o<r;){if(String(n[o])===String(i[0]))return!0;o++}return!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return window.html2canvas?window.html2canvas(e,t):void i.default.logs("Screenshot")};var r=n(9),i=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){"use strict";function r(e){var t=void 0;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.text;return new Promise(function(e,n){var i=document.body,a="rtl"==document.documentElement.getAttribute("dir"),o=document.createElement("textarea");o.style.fontSize="12pt",o.style.border="0",o.style.padding="0",o.style.margin="0",o.style.position="absolute",o.style[a?"right":"left"]="-9999px";var u=window.pageYOffset||document.documentElement.scrollTop;o.style.top=u+"px",o.setAttribute("readonly",""),o.value=t,i.appendChild(o),r(o);try{document.execCommand("copy"),e()}catch(e){!1,n()}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=functi