KindergartenAppletUI/unpackage/dist/dev/mp-weixin/common/vendor.js

16 lines
405 KiB
JavaScript
Raw Normal View History

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],[,function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.createApp=In,e.createComponent=Hn,e.createPage=Vn,e.createPlugin=zn,e.createSubpackageApp=Qn,e.default=void 0;var r,i=n(3),o=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e){return h(t)||f(t,e)||g(t,e)||l()}function l(){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 f(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function h(t){if(Array.isArray(t))return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){return m(t)||y(t)||g(t)||v()}function v(){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 g(t,e){if(t){if("string"===typeof t)return b(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)?b(t,e):void 0}}function y(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function m(t){if(Array.isArray(t))return b(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function A(t){return decodeURIComponent(r(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function E(){var t,e=wx.getStorageSync("uni_id_token")||"",n=e.split(".");if(!e||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(A(n[1]))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}function S(t){t.prototype.uniIDHasRole=function(t){var e=E(),n=e.role;return n.indexOf(t)>-1},t.prototype.uniIDHasPermission=function(t){var e=E(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=E(),e=t.tokenExpired;return e>Date.now()}}r="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!_.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o<t.length;)e=w.indexOf(t.charAt(o++))<<18|w.indexOf(t.charAt(o++))<<12|(n=w.indexOf(t.charAt(o++)))<<6|(r=w.indexOf(t.charAt(o++))),i+=64===n?String.fromCharCode(e>>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var O=Object.prototype.toString,x=Object.prototype.hasOwnProperty;function k(t){return"function"===typeof t}function P(t){return"string"===typeof t}function B(t){return"[object Object]"===O.call(t)}function I(t,e){return x.call(t,e)}function T(){}function M(t){va
2022-08-24 15:01:04 +08:00
/*!
* Vue.js v2.6.11
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function l(t){return c.call(t).slice(8,-1)}function f(t){return"[object Object]"===c.call(t)}function h(t){return"[object RegExp]"===c.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||f(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var m=y("slot,component",!0),b=y("key,ref,slot,slot-scope,is");function w(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function A(t,e){return _.call(t,e)}function E(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var S=/-(\w)/g,O=E((function(t){return t.replace(S,(function(t,e){return e?e.toUpperCase():""}))})),x=E((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,P=E((function(t){return t.replace(k,"-$1").toLowerCase()}));function B(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function I(t,e){return t.bind(e)}var T=Function.prototype.bind?I:B;function M(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function D(t,e){for(var n in e)t[n]=e[n];return t}function C(t){for(var e={},n=0;n<t.length;n++)t[n]&&D(e,t[n]);return e}function j(t,e,n){}var R=function(t,e,n){return!1},N=function(t){return t};function L(t,e){if(t===e)return!0;var n=u(t),r=u(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return L(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return L(t[n],e[n])}))}catch(c){return!1}}function U(t,e){for(var n=0;n<t.length;n++)if(L(t[n],e))return n;return-1}function F(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var V=["component","directive","filter"],H=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],Q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:j,parsePlatformTagName:N,mustUseProp:R,async:!0,_lifecycleHooks:H},z=/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 q(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function K(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var Y=new RegExp("[^"+z.source+".$_\\d]");function W(t){if(!Y.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var J,G="__proto__"in{},X="undefined"!==typeof window,$="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Z=$&&WXEnvironment.platform.toLowerCase(),tt=X&&window.navigator.userAgent.toLowerCase(),et=tt&&/msie|trident/.test(tt),nt=(tt&&tt.indexOf("msie 9.0"),tt&&tt.indexOf("edge/")>0),rt=(tt&&tt.indexOf("android"),tt&&/iphone|ipad|ipod|ios/.test(tt)||"ios"===Z),it=(tt&&/chrome\/\d+/.test(tt),tt&&/phantomjs/.test(tt),tt&&tt.match(/firefox\/(\d+)/),{}.watch)
/*! For license information please see gtpush-min.js.LICENSE.txt */}var v=p((function(n,i){(function(t,e){n.exports=e()})(self,(function(){return function(){var n={4736:function(t,e,n){var r;t=n.nmd(t);var i=function(t){var e=1e7,n=7,r=9007199254740992,o=d(r),a="0123456789abcdefghijklmnopqrstuvwxyz",s="function"===typeof BigInt;function u(t,e,n,r){return"undefined"===typeof t?u[0]:"undefined"!==typeof e&&(10!==+e||n)?$(t,e,n,r):ot(t)}function c(t,e){this.value=t,this.sign=e,this.isSmall=!1}function l(t){this.value=t,this.sign=t<0,this.isSmall=!0}function f(t){this.value=t}function h(t){return-r<t&&t<r}function d(t){return t<1e7?[t]:t<1e14?[t%1e7,Math.floor(t/1e7)]:[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function p(t){v(t);var n=t.length;if(n<4&&j(t,o)<0)switch(n){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*e;default:return t[0]+(t[1]+t[2]*e)*e}return t}function v(t){var e=t.length;while(0===t[--e]);t.length=e+1}function g(t){var e=new Array(t),n=-1;while(++n<t)e[n]=0;return e}function y(t){return t>0?Math.floor(t):Math.ceil(t)}function m(t,n){var r,i,o=t.length,a=n.length,s=new Array(o),u=0,c=e;for(i=0;i<a;i++)r=t[i]+n[i]+u,u=r>=c?1:0,s[i]=r-u*c;while(i<o)r=t[i]+u,u=r===c?1:0,s[i++]=r-u*c;return u>0&&s.push(u),s}function b(t,e){return t.length>=e.length?m(t,e):m(e,t)}function w(t,n){var r,i,o=t.length,a=new Array(o),s=e;for(i=0;i<o;i++)r=t[i]-s+n,n=Math.floor(r/s),a[i]=r-n*s,n+=1;while(n>0)a[i++]=n%s,n=Math.floor(n/s);return a}function _(t,n){var r,i,o=t.length,a=n.length,s=new Array(o),u=0,c=e;for(r=0;r<a;r++)i=t[r]-u-n[r],i<0?(i+=c,u=1):u=0,s[r]=i;for(r=a;r<o;r++){if(i=t[r]-u,!(i<0)){s[r++]=i;break}i+=c,s[r]=i}for(;r<o;r++)s[r]=t[r];return v(s),s}function A(t,e,n){var r;return j(t,e)>=0?r=_(t,e):(r=_(e,t),n=!n),r=p(r),"number"===typeof r?(n&&(r=-r),new l(r)):new c(r,n)}function E(t,n,r){var i,o,a=t.length,s=new Array(a),u=-n,f=e;for(i=0;i<a;i++)o=t[i]+u,u=Math.floor(o/f),o%=f,s[i]=o<0?o+f:o;return s=p(s),"number"===typeof s?(r&&(s=-s),new l(s)):new c(s,r)}function S(t,n){var r,i,o,a,s,u=t.length,c=n.length,l=u+c,f=g(l),h=e;for(o=0;o<u;++o){a=t[o];for(var d=0;d<c;++d)s=n[d],r=a*s+f[o+d],i=Math.floor(r/h),f[o+d]=r-i*h,f[o+d+1]+=i}return v(f),f}function O(t,n){var r,i,o=t.length,a=new Array(o),s=e,u=0;for(i=0;i<o;i++)r=t[i]*n+u,u=Math.floor(r/s),a[i]=r-u*s;while(u>0)a[i++]=u%s,u=Math.floor(u/s);return a}function x(t,e){var n=[];while(e-- >0)n.push(0);return n.concat(t)}function k(t,e){var n=Math.max(t.length,e.length);if(n<=30)return S(t,e);n=Math.ceil(n/2);var r=t.slice(n),i=t.slice(0,n),o=e.slice(n),a=e.slice(0,n),s=k(i,a),u=k(r,o),c=k(b(i,r),b(a,o)),l=b(b(s,x(_(_(c,s),u),n)),x(u,2*n));return v(l),l}function P(t,e){return-.012*t-.012*e+15e-6*t*e>0}function B(t,n,r){return new c(t<e?O(n,t):S(n,d(t)),r)}function I(t){var n,r,i,o,a,s=t.length,u=g(s+s),c=e;for(i=0;i<s;i++){o=t[i],r=0-o*o;for(var l=i;l<s;l++)a=t[l],n=o*a*2+u[i+l]+r,r=Math.floor(n/c),u[i+l]=n-r*c;u[i+s]=r}return v(u),u}function T(t,n){var r,i,o,a,s,u,c,l=t.length,f=n.length,h=e,d=g(n.length),v=n[f-1],y=Math.ceil(h/(2*v)),m=O(t,y),b=O(n,y);for(m.length<=l&&m.push(0),b.push(0),v=b[f-1],i=l-f;i>=0;i--){for(r=h-1,m[i+f]!==v&&(r=Math.floor((m[i+f]*h+m[i+f-1])/v)),o=0,a=0,u=b.length,s=0;s<u;s++)o+=r*b[s],c=Math.floor(o/h),a+=m[i+s]-(o-c*h),o=c,a<0?(m[i+s]=a+h,a=-1):(m[i+s]=a,a=0);while(0!==a){for(r-=1,o=0,s=0;s<u;s++)o+=m[i+s]-h+b[s],o<0?(m[i+s]=o+h,o=0):(m[i+s]=o,o=1);a+=o}d[i]=r}return m=D(m,y)[0],[p(d),p(m)]}function M(t,n){var r,i,o,a,s,u=t.length,c=n.length,l=[],f=[],h=e;while(u)if(f.unshift(t[--u]),v(f),j(f,n)<0)l.push(0);else{i=f.length,o=f[i-1]*h+f[i-2],a=n[c-1]*h+n[c-2],i>c&&(o=(o+1)*h),r=Math.ceil(o/a);do{if(s=O(n,r),j(s,f)<=0)break;r--}while(r);l.push(r),f=_(f,s)}return l.reverse(),[p(l),p(f)]}function D(t,n){var r,i,o,a,s=t.length,u=g(s),c=e;for(o=0,r=s-1;r>=0;--r)a=o*c+t[r],i=y(a/n),o=a-i*n,u[r]=0|i;return[u,0|o]}function C(t,n){var r,i=ot(n);if(s)return[new f(t.value/i.value),new f(t.value%i.value)];var o,a=t.value,h=i.value;if(0===h)throw new Error("Cannot divide by zero");if(t.isSmall)return i.isSmall?[new l(y(a/h)),new l(a%
2022-08-24 15:01:04 +08:00
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n(31),i=n(32),o=n(33);function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=c.prototype):(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?g(t,e,n,r):"string"===typeof e?p(t,e,n):y(t,e)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e,n,r){return f(e),e<=0?u(t,e):void 0!==n?"string"===typeof r?u(t,e).fill(n,r):u(t,e).fill(n):u(t,e)}function d(t,e){if(f(e),t=u(t,e<0?0:0|m(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(e,n);t=u(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function v(t,e){var n=e.length<0?0:0|m(e.length);t=u(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function g(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=c.prototype):t=v(t,e),t}function y(t,e){if(c.isBuffer(e)){var n=0|m(e.length);return t=u(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?u(t,0):v(t,e);if("Buffer"===e.type&&o(e.data))return v(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),c.alloc(+t)}function w(t,e){if(c.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(t).length;default:if(r)return G(t).length;e=(""+e).toLowerCase(),r=!0}}function _(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return M(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function A(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function E(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.len
2022-08-24 15:01:04 +08:00
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map