1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-28 11:15:58 +00:00
seahub/media/js/GStarSDK.js

1 line
1.3 MiB
JavaScript
Raw Normal View History

2021-11-22 10:13:10 +00:00
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GStarSDK=e():t.GStarSDK=e()}(window,(function(){return n={},t.m=e=[function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(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)}}t.exports=function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var i=n(4),r=n(33),a=n(19),o=n(17),s=n(24),x="prototype",c=function(t,e,n){var u,h,l,f,d=t&c.F,p=t&c.G,A=t&c.S,m=t&c.P,v=t&c.B,g=p?i:A?i[e]||(i[e]={}):(i[e]||{})[x],b=p?r:r[e]||(r[e]={}),y=b[x]||(b[x]={});for(u in p&&(n=e),n)l=((h=!d&&g&&void 0!==g[u])?g:n)[u],f=v&&h?s(l,i):m&&"function"==typeof l?s(Function.call,l):l,g&&o(g,u,l,t&c.U),b[u]!=l&&a(b,u,f),m&&y[u]!=l&&(y[u]=l)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){(function(t){!function(n){"use strict";var i={};n.PubSub=i;var r=n.define;!function(t){var e={},n=-1;function i(t,e,n){try{t(e,n)}catch(t){setTimeout(function(t){return function(){throw t}}(t),0)}}function r(t,e,n){t(e,n)}function a(t,n,a,o){var s,x=e[n],c=o?r:i;if(e.hasOwnProperty(n))for(s in x)x.hasOwnProperty(s)&&c(x[s],t,a)}function o(t){var n=String(t);return Boolean(e.hasOwnProperty(n)&&function(t){var e;for(e in t)if(t.hasOwnProperty(e))return!0;return!1}(e[n]))}function s(t,e,n,i){var r=function(t,e,n){return function(){var i=String(t),r=i.lastIndexOf(".");for(a(t,t,e,n);-1!==r;)r=(i=i.substr(0,r)).lastIndexOf("."),a(t,i,e,n);a(t,"*",e,n)}}(t="symbol"==typeof t?t.toString():t,e,i);return!!function(t){for(var e=String(t),n=o(e)||o("*"),i=e.lastIndexOf(".");!n&&-1!==i;)i=(e=e.substr(0,i)).lastIndexOf("."),n=o(e);return n}(t)&&(!0===n?r():setTimeout(r,0),!0)}t.publish=function(e,n){return s(e,n,!1,t.immediateExceptions)},t.publishSync=function(e,n){return s(e,n,!0,t.immediateExceptions)},t.subscribe=function(t,i){if("function"!=typeof i)return!1;t="symbol"==typeof t?t.toString():t,e.hasOwnProperty(t)||(e[t]={});var r="uid_"+String(++n);return e[t][r]=i,r},t.subscribeAll=function(e){return t.subscribe("*",e)},t.subscribeOnce=function(e,n){var i=t.subscribe(e,(function(){t.unsubscribe(i),n.apply(this,arguments)}));return t},t.clearAllSubscriptions=function(){e={}},t.clearSubscriptions=function(t){var n;for(n in e)e.hasOwnProperty(n)&&0===n.indexOf(t)&&delete e[n]},t.countSubscriptions=function(t){var n,i=0;for(n in e)e.hasOwnProperty(n)&&0===n.indexOf(t)&&i++;return i},t.getSubscriptions=function(t){var n,i=[];for(n in e)e.hasOwnProperty(n)&&0===n.indexOf(t)&&i.push(n);return i},t.unsubscribe=function(n){var i,r,a,o="string"==typeof n&&(e.hasOwnProperty(n)||function(t){var n;for(n in e)if(e.hasOwnProperty(n)&&0===n.indexOf(t))return!0;return!1}(n)),s=!o&&"string"==typeof n,x="function"==typeof n,c=!1;if(!o){for(i in e)if(e.hasOwnProperty(i)){if(r=e[i],s&&r[n]){delete r[n],c=n;break}if(x)for(a in r)r.hasOwnProperty(a)&&r[a]===n&&(delete r[a],c=!0)}return c}t.clearSubscriptions(n)}}(i),"function"==typeof r&&r.amd?r((function(){return i})):(void 0!==t&&t.exports&&(e=t.exports=i),e.PubSub=i,t.exports=e=i)}("object"==typeof window&&window||this)}).call(this,n(223)(t))},function(t,e,n){var i=n(62)("wks"),r=n(32),a=n(4).Symbol,o="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=o&&a[t]||(o?a:r)("Symbol."+t))}).store=i},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(7);t.exports=func