{"size": 17088, "ext": "js", "max_stars_repo_path": "public/js/gutenberg/media-license.js", "max_stars_repo_name": "palasthotel/wp-media-license", "max_stars_repo_stars_event_min_datetime": "2021-10-06T13:42:37.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-06T13:42:37.000Z", "max_issues_repo_path": "public/js/gutenberg/media-license.js", "max_issues_repo_name": "palasthotel/wp-media-license", "max_issues_repo_issues_event_min_datetime": "2018-03-07T12:09:46.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-19T16:14:48.000Z", "max_forks_repo_path": "public/js/gutenberg/media-license.js", "max_forks_repo_name": "palasthotel/wp-media-license", "max_forks_repo_forks_event_min_datetime": "2019-08-01T08:27:42.000Z", "max_forks_repo_forks_event_max_datetime": "2019-08-01T08:27:42.000Z"}
{"max_stars_count": 1, "max_issues_count": 16, "max_forks_count": 1, "avg_line_length": 8544.0, "max_line_length": 17046, "alphanum_fraction": 0.6601123596}
!function(){var t={8552:function(t,e,r){var n=r(852)(r(5639),"DataView");t.exports=n},1989:function(t,e,r){var n=r(1789),o=r(401),i=r(7667),c=r(1327),u=r(1866);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},8407:function(t,e,r){var n=r(7040),o=r(4125),i=r(2117),c=r(7518),u=r(4705);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},7071:function(t,e,r){var n=r(852)(r(5639),"Map");t.exports=n},3369:function(t,e,r){var n=r(4785),o=r(1285),i=r(6e3),c=r(9916),u=r(5265);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},3818:function(t,e,r){var n=r(852)(r(5639),"Promise");t.exports=n},8525:function(t,e,r){var n=r(852)(r(5639),"Set");t.exports=n},8668:function(t,e,r){var n=r(3369),o=r(619),i=r(2385);function c(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}c.prototype.add=c.prototype.push=o,c.prototype.has=i,t.exports=c},6384:function(t,e,r){var n=r(8407),o=r(7465),i=r(3779),c=r(7599),u=r(4758),a=r(4309);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=c,s.prototype.has=u,s.prototype.set=a,t.exports=s},2705:function(t,e,r){var n=r(5639).Symbol;t.exports=n},1149:function(t,e,r){var n=r(5639).Uint8Array;t.exports=n},577:function(t,e,r){var n=r(852)(r(5639),"WeakMap");t.exports=n},4963:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var c=t[r];e(c,r,t)&&(i[o++]=c)}return i}},4636:function(t,e,r){var n=r(2545),o=r(5694),i=r(1469),c=r(4144),u=r(5776),a=r(6719),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&c(t),l=!r&&!f&&!p&&a(t),v=r||f||p||l,h=v?n(t.length,String):[],b=h.length;for(var y in t)!e&&!s.call(t,y)||v&&("length"==y||p&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,b))||h.push(y);return h}},2488:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2908:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},8470:function(t,e,r){var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},1078:function(t,e,r){var n=r(2488),o=r(7285);t.exports=function t(e,r,i,c,u){var a=-1,s=e.length;for(i||(i=o),u||(u=[]);++a<s;){var f=e[a];r>0&&i(f)?r>1?t(f,r-1,i,c,u):n(u,f):c||(u[u.length]=f)}return u}},8866:function(t,e,r){var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:function(t,e,r){var n=r(2705),o=r(9607),i=r(2333),c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):i(t)}},9454:function(t,e,r){var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:function(t,e,r){var n=r(2492),o=r(7005);t.exports=function t(e,r,i,c,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,c,t,u))}},2492:function(t,e,r){var n=r(6384),o=r(7114),i=r(8351),c=r(6096),u=r(4160),a=r(1469),s=r(4144),f=r(6719),p="[object Arguments]",l="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,b,y,_){var d=a(t),x=a(e),j=d?l:u(t),g=x?l:u(e),w=(j=j==p?v:j)==v,m=(g=g==p?v:g)==v,O=j==g;if(O&&s(t)){if(!s(e))return!1;d=!0,w=!1}if(O&&!w)return _||(_=new n),d||f(t)?o(t,e,r,b,y,_):i(t,e,j,r,b,y,_);if(!(1&r)){var A=w&&h.call(t,"__wrapped__"),S=m&&h.call(e,"__wrapped__");if(A||S){var z=A?t.value():t,k=S?e.value():e;return _||(_=new n),y(z,k,r,b,_)}}return!!O&&(_||(_=new n),c(t,e,r,b,y,_))}},8458:function(t,e,r){var n=r(3560),o=r(5346),i=r(3218),c=r(346),u=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,f=a.toString,p=s.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:u).test(c(t))}},8749:function(t,e,r){var n=r(4239),o=r(1780),i=r(7005),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!c[n(t)]}},280:function(t,e,r){var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},2545:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4757:function(t){t.exports=function(t,e){return t.has(e)}},4429:function(t,e,r){var n=r(5639)["__core-js_shared__"];t.exports=n},7114:function(t,e,r){var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,c,u,a){var s=1&r,f=t.length,p=e.length;if(f!=p&&!(s&&p>f))return!1;var l=a.get(t),v=a.get(e);if(l&&v)return l==e&&v==t;var h=-1,b=!0,y=2&r?new n:void 0;for(a.set(t,e),a.set(e,t);++h<f;){var _=t[h],d=e[h];if(c)var x=s?c(d,_,h,e,t,a):c(_,d,h,t,e,a);if(void 0!==x){if(x)continue;b=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(_===t||u(_,t,r,c,a)))return y.push(e)}))){b=!1;break}}else if(_!==d&&!u(_,d,r,c,a)){b=!1;break}}return a.delete(t),a.delete(e),b}},8351:function(t,e,r){var n=r(2705),o=r(1149),i=r(7813),c=r(7114),u=r(8776),a=r(1814),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var v=u;case"[object Set]":var h=1&n;if(v||(v=a),t.size!=e.size&&!h)return!1;var b=l.get(t);if(b)return b==e;n|=2,l.set(t,e);var y=c(v(t),v(e),n,s,p,l);return l.delete(t),y;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},6096:function(t,e,r){var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,c,u){var a=1&r,s=n(t),f=s.length;if(f!=n(e).length&&!a)return!1;for(var p=f;p--;){var l=s[p];if(!(a?l in e:o.call(e,l)))return!1}var v=u.get(t),h=u.get(e);if(v&&h)return v==e&&h==t;var b=!0;u.set(t,e),u.set(e,t);for(var y=a;++p<f;){var _=t[l=s[p]],d=e[l];if(i)var x=a?i(d,_,l,e,t,u):i(_,d,l,t,e,u);if(!(void 0===x?_===d||c(_,d,r,i,u):x)){b=!1;break}y||(y="constructor"==l)}if(b&&!y){var j=t.constructor,g=e.constructor;j==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof j&&j instanceof j&&"function"==typeof g&&g instanceof g||(b=!1)}return u.delete(t),u.delete(e),b}},1957:function(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:function(t,e,r){var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},5050:function(t,e,r){var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},852:function(t,e,r){var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},9607:function(t,e,r){var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(e?t[u]=r:delete t[u]),o}},9551:function(t,e,r){var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,u=c?function(t){return null==t?[]:(t=Object(t),n(c(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},4160:function(t,e,r){var n=r(8552),o=r(7071),i=r(3818),c=r(8525),u=r(577),a=r(4239),s=r(346),f="[object Map]",p="[object Promise]",l="[object Set]",v="[object WeakMap]",h="[object DataView]",b=s(n),y=s(o),_=s(i),d=s(c),x=s(u),j=a;(n&&j(new n(new ArrayBuffer(1)))!=h||o&&j(new o)!=f||i&&j(i.resolve())!=p||c&&j(new c)!=l||u&&j(new u)!=v)&&(j=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case b:return h;case y:return f;case _:return p;case d:return l;case x:return v}return e}),t.exports=j},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,r){var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,r){var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:function(t,e,r){var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:function(t,e,r){var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},7285:function(t,e,r){var n=r(2705),o=r(5694),i=r(1469),c=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(c&&t&&t[c])}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,r){var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,r){var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},2117:function(t,e,r){var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:function(t,e,r){var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:function(t,e,r){var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:function(t,e,r){var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:function(t,e,r){var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,r){var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:function(t,e,r){var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:function(t,e,r){var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},8776:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},4536:function(t,e,r){var n=r(852)(Object,"create");t.exports=n},6916:function(t,e,r){var n=r(5569)(Object.keys,Object);t.exports=n},1167:function(t,e,r){t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=u},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},5639:function(t,e,r){var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:function(t){t.exports=function(t){return this.__data__.has(t)}},1814:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},7465:function(t,e,r){var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,r){var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<199)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},5564:function(t,e,r){var n=r(1078);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},5694:function(t,e,r){var n=r(9454),o=r(7005),i=Object.prototype,c=i.hasOwnProperty,u=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(t){return o(t)&&c.call(t,"callee")&&!u.call(t,"callee")};t.exports=a},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,r){var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4144:function(t,e,r){t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,c=i&&t&&!t.nodeType&&t,u=c&&c.exports===i?n.Buffer:void 0,a=(u?u.isBuffer:void 0)||o;t.exports=a},8446:function(t,e,r){var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:function(t,e,r){var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},6719:function(t,e,r){var n=r(8749),o=r(1717),i=r(1167),c=i&&i.isTypedArray,u=c?o(c):n;t.exports=u},3674:function(t,e,r){var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";var t=window.wp.element,e=window.wp.data,n=r(8446),o=r.n(n),i=r(5564),c=r.n(i);let u=[];var a=r=>{let{block:n}=r;const i=window.BlockXComponents.useBlock(),a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,e.useSelect)((t=>{const e=t("core/block-editor");return e?e.getBlocks():[]}),t)}(),s=a.filter((t=>"core/image"===t.name&&typeof t.attributes==typeof[]&&void 0!==t.attributes.id)),f=a.filter((t=>"core/gallery"===t.name&&typeof t.attributes==typeof[]&&typeof t.attributes.ids==typeof[]));return u=[...new Set([...s.map((t=>t.attributes.id)),...c()(f.map((t=>t.attributes.ids)))])],(0,t.useEffect)((()=>{o()(u,i.dirtyState.imageIds)||i.changeLocalState("imageIds",u)}),[u]),(0,t.useEffect)((()=>{const t=setTimeout((()=>{o()(i.dirtyState.imageIds,i.content.imageIds)||i.setContent({imageIds:i.dirtyState.imageIds})}),300);return()=>clearTimeout(t)}),[u]),(0,t.createElement)("div",null,(0,t.createElement)(window.BlockXComponents.ServerSideRenderQueue,{block:i.blockId,attributes:i.attributes}))};window.BlockXComponents={...window.BlockXComponents||{},"media-license/list-of-licenses":e=>(0,t.createElement)(a,e)}}()}();
//# sourceMappingURL=media-license.js.map