xiaokuaisong-xiaochengxu/uniapp04/node_modules/@vue/composition-api/dist/vue-composition-api.prod.js

2 lines
21 KiB
JavaScript
Raw Normal View History

2025-04-11 06:42:29 +00:00
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).VueCompositionAPI={})}(this,(function(n){"use strict";var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])},t(n,e)};var e,r=function(){return r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},r.apply(this,arguments)};function o(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,o,i=e.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(n){o={error:n}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function u(n,t,e){if(e||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return n.concat(r||Array.prototype.slice.call(t))}var f=[],a=function(){function n(n){this.active=!0,this.effects=[],this.cleanups=[],this.vm=n}return n.prototype.run=function(n){if(this.active)try{return this.on(),n()}finally{this.off()}},n.prototype.on=function(){this.active&&(f.push(this),e=this)},n.prototype.off=function(){this.active&&(f.pop(),e=f[f.length-1])},n.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(n){return n.stop()})),this.cleanups.forEach((function(n){return n()})),this.active=!1)},n}(),c=function(n){function r(t){void 0===t&&(t=!1);var r,o=void 0;return function(n){var t=_;_=!1;try{n()}finally{_=t}}((function(){o=z(g())})),r=n.call(this,o)||this,t||function(n,t){var r;if((t=t||e)&&t.active)return void t.effects.push(n);var o=null===(r=$())||void 0===r?void 0:r.proxy;o&&o.$on("hook:destroyed",(function(){return n.stop()}))}(r),r}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(r,n),r}(a);function l(){return e}function s(){var n,t;return(null===(n=l())||void 0===n?void 0:n.vm)||(null===(t=$())||void 0===t?void 0:t.proxy)}var v=void 0;try{var d=require("vue");d&&b(d)?v=d:d&&"default"in d&&b(d.default)&&(v=d.default)}catch(n){}var p=null,y=null,_=!0,h="__composition_api_installed__";function b(n){return n&&V(n)&&"Vue"===n.name}function g(){return p}function m(){return p||v}function w(n){if(_){var t=y;null==t||t.scope.off(),null==(y=n)||y.scope.on()}}function $(){return y}var j=new WeakMap;function x(n){if(j.has(n))return j.get(n);var t={proxy:n,update:n.$forceUpdate,type:n.$options,uid:n._uid,emit:n.$emit.bind(n),parent:null,root:null};!function(n){if(!n.scope){var t=new a(n.proxy);n.scope=t,n.proxy.$on("hook:destroyed",(function(){return t.stop()}))}n.scope}(t);return["data","props","attrs","refs","vnode","slots"].forEach((function(e){E(t,e,{get:function(){return n["$".concat(e)]}})})),E(t,"isMounted",{get:function(){return n._isMounted}}),E(t,"isUnmounted",{get:function(){return n._isDestroyed}}),E(t,"isDeactivated",{get:function(){return n._inactive}}),E(t,"emitted",{get:function(){return n._events}}),j.set(n,t),n.$parent&&(t.parent=x(n.$parent)),n.$root&&(t.root=x(n.$root)),t}function O(n){return"function"==typeof n&&/native code/.test(n.toString())}var S="undefined"!=typeof Symbol&&O(Symbol)&&"undefined"!=typeof Reflect&&O(Reflect.ownKeys),k=function(n){return n};function E(n,t,e){var r=e.get,o=e.set;Object.defineProperty(n,t,{enumerable:!0,configurable:!0,get:r||k,set:o||k})}function R(n,t,e,