公司小程序
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.

21 lines
428 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],[function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Jt,t.createComponent=un,t.createPage=sn,t.createPlugin=fn,t.createSubpackageApp=ln,t.default=void 0;var o,a=i(n(2)),r=n(49);function i(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){return f(e)||l(e,t)||v(e,t)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,a=!1,r=void 0;try{for(var i,c=e[Symbol.iterator]();!(o=(i=c.next()).done);o=!0)if(n.push(i.value),t&&n.length===t)break}catch(d){a=!0,r=d}finally{try{o||null==c["return"]||c["return"]()}finally{if(a)throw r}}return n}}function f(e){if(Array.isArray(e))return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return g(e)||y(e)||v(e)||h()}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){if(e){if("string"===typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function y(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function g(e){if(Array.isArray(e))return b(e)}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",A=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function _(e){return decodeURIComponent(o(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function O(){var e,t=wx.getStorageSync("uni_id_token")||"",n=t.split(".");if(!t||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(_(n[1]))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}function x(e){e.prototype.uniIDHasRole=function(e){var t=O(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=O(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=O(),t=e.tokenExpired;return t>Date.now()}}o="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!A.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,a="",r=0;r<e.length;)t=w.indexOf(e.charAt(r++))<<18|w.indexOf(e.charAt(r++))<<12|(n=w.indexOf(e.charAt(r++)))<<6|(o=w.indexOf(e.charAt(r++))),a+=64===n?String.fromCharCode(t>>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob;var S=Object.prototype.toString,j=Object.prototype.hasOwnProperty;function P(e){return"function"===typeof e}function E(e){return"string"===typeof e}function k(e){return"[object Object]"===S.call(e)}function B(e,t){return j.call(e,t)}function C(){}function T(e){va
/*!
3 years ago
* Vue.js v2.6.11
* (c) 2014-2021 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function o(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function r(e){return!0===e}function i(e){return!1===e}function c(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function d(e){return null!==e&&"object"===typeof e}var s=Object.prototype.toString;function u(e){return s.call(e).slice(8,-1)}function l(e){return"[object Object]"===s.call(e)}function f(e){return"[object RegExp]"===s.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),o=e.split(","),a=0;a<o.length;a++)n[o[a]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var g=y("slot,component",!0),b=y("key,ref,slot,slot-scope,is");function w(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var A=Object.prototype.hasOwnProperty;function _(e,t){return A.call(e,t)}function O(e){var t=Object.create(null);return function(n){var o=t[n];return o||(t[n]=e(n))}}var x=/-(\w)/g,S=O((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),j=O((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),P=/\B([A-Z])/g,E=O((function(e){return e.replace(P,"-$1").toLowerCase()}));function k(e,t){function n(n){var o=arguments.length;return o?o>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function B(e,t){return e.bind(t)}var C=Function.prototype.bind?B:k;function T(e,t){t=t||0;var n=e.length-t,o=new Array(n);while(n--)o[n]=e[n+t];return o}function I(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n<e.length;n++)e[n]&&I(t,e[n]);return t}function $(e,t,n){}var N=function(e,t,n){return!1},L=function(e){return e};function F(e,t){if(e===t)return!0;var n=d(e),o=d(t);if(!n||!o)return!n&&!o&&String(e)===String(t);try{var a=Array.isArray(e),r=Array.isArray(t);if(a&&r)return e.length===t.length&&e.every((function(e,n){return F(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(a||r)return!1;var i=Object.keys(e),c=Object.keys(t);return i.length===c.length&&i.every((function(n){return F(e[n],t[n])}))}catch(s){return!1}}function Q(e,t){for(var n=0;n<e.length;n++)if(F(e[n],t))return n;return-1}function D(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var U=["component","directive","filter"],R=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],z={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:N,isReservedAttr:N,isUnknownElement:N,getTagNamespace:$,parsePlatformTagName:L,mustUseProp:N,async:!0,_lifecycleHooks:R},q=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,n,o){Object.defineProperty(e,t,{value:n,enumerable:!!o,writable:!0,configurable:!0})}var Y=new RegExp("[^"+q.source+".$_\\d]");function W(e){if(!Y.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var X,G="__proto__"in{},J="undefined"!==typeof window,K="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Z=K&&WXEnvironment.platform.toLowerCase(),ee=J&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ne=(ee&&ee.indexOf("msie 9.0"),ee&&ee.indexOf("edge/")>0),oe=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Z),ae=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch)
/*!
3 years ago
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:o});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[o].concat(e.init):o,n.call(this,e)}}function o(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var o="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},a=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e){a&&(e._devtoolHook=a,a.emit("vuex:init",e),a.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){a.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){a.emit("vuex:action",e,t)}),{prepend:!0}))}function i(e,t){return e.filter(t)[0]}function c(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=i(t,(function(t){return t.original===e}));if(n)return n.copy;var o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach((function(n){o[n]=c(e[n],t)})),o}function d(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(e){return null!==e&&"object"===typeof e}function u(e){return e&&"function"===typeof e.then}function l(e,t){if(!e)throw new Error("[vuex] "+t)}function f(e,t){return function(){return e(t)}}var m=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},m.prototype.addChild=function(e,t){this._children[e]=t},m.prototype.removeChild=function(e){delete this._children[e]},m.prototype.getChild=function(e){return this._children[e]},m.prototype.hasChild=function(e){return e in this._children},m.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},m.prototype.forEachChild=function(e){d(this._children,e)},m.prototype.forEachGetter=function(e){this._rawModule.getters&&d(this._rawModule.getters,e)},m.prototype.forEachAction=function(e){this._rawModule.actions&&d(this._rawModule.actions,e)},m.prototype.forEachMutation=function(e){this._rawModule.mutations&&d(this._rawModule.mutations,e)},Object.defineProperties(m.prototype,p);var h=function(e){this.register([],e,!1)};function v(e,t,n){if(A(e,n),t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return void console.warn("[vuex] trying to add a new module '"+o+"' on hot reloading, manual reload is needed");v(e.concat(o),t.getChild(o),n.modules[o])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},h.prototype.update=function(e){v([],this.root,e)},h.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0),A(e,t);var a=new m(t,n);if(0===e.length)this.root=a;else{var r=this.get(e.slice(0,-1));r.addChild(e[e.length-1],a)}t.modules&&d(t.modules,(function(t,a){o.register(e.concat(a),t,n)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o?o.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var y,g={assert:function(e){return"function"===typeof e},expected:"function"},b={assert:function(e){return"function"===typeof e||"object"===typeof e&&"function"===typeof e.handler},expected:'function or object with "handler" function'},w={getters:g,mutations:g,actions:b};function A(e,t){Object.keys(w).forEach((function(n){if(t[n]){var o=w[n];d(t[n],(function(t,a){l(o.assert(t),_(e,n,a,t,o.expected))}))}}))}function _(e,t,n,o,a){var r=t+" should be "+a+' but "'+t+"."+n+'"';return e.length>0&&(r+=' in module "'+e.join(".")+'"'),r+=" is "+JSON.stri
/*!
3 years ago
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var o=n(75),a=n(76),r=n(77);function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function c(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(e,t){if(c()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=s.prototype):(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!s.TYPED_ARRAY_SUPPORT&&!(this instanceof s))return new s(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return m(this,e)}return u(this,e,t,n)}function u(e,t,n,o){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?v(e,t,n,o):"string"===typeof t?p(e,t,n):y(e,t)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t,n,o){return l(t),t<=0?d(e,t):void 0!==n?"string"===typeof o?d(e,t).fill(n,o):d(e,t).fill(n):d(e,t)}function m(e,t){if(l(t),e=d(e,t<0?0:0|g(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|w(t,n);e=d(e,o);var a=e.write(t,n);return a!==o&&(e=e.slice(0,a)),e}function h(e,t){var n=t.length<0?0:0|g(t.length);e=d(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function v(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o),s.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=s.prototype):e=h(e,t),e}function y(e,t){if(s.isBuffer(t)){var n=0|g(t.length);return e=d(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?d(e,0):h(e,t);if("Buffer"===t.type&&r(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),s.alloc(+e)}function w(e,t){if(s.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(o)return G(e).length;t=(""+t).toLowerCase(),o=!0}}function A(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return $(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function _(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function O(e,t,n,o,a){if(0===e.length)return-1;if("string"===typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=s.from(t,o)),s.isBuffer(t))return 0===t.len
3 years ago
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map