14 lines
32 KiB
JavaScript
14 lines
32 KiB
JavaScript
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=13)}([function(t,e,r){"use strict";function n(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(2),o=r(0);function u(t){return function e(r,u){switch(arguments.length){case 0:return e;case 1:return Object(o.a)(r)?e:Object(n.a)((function(e){return t(r,e)}));default:return Object(o.a)(r)&&Object(o.a)(u)?e:Object(o.a)(r)?Object(n.a)((function(e){return t(e,u)})):Object(o.a)(u)?Object(n.a)((function(e){return t(r,e)})):t(r,u)}}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(0);function o(t){return function e(r){return 0===arguments.length||Object(n.a)(r)?e:t.apply(this,arguments)}}},function(t,e,r){"use strict";t.exports=r(16)},function(t,e,r){t.exports=r(14)},function(t,e){function r(t,e,r,n,o,u,c){try{var i=t[u](c),a=i.value}catch(t){return void r(t)}i.done?e(a):Promise.resolve(a).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,u){var c=t.apply(e,n);function i(t){r(c,o,u,i,a,"next",t)}function a(t){r(c,o,u,i,a,"throw",t)}i(void 0)}))}}},function(t,e,r){"use strict";function n(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,o){return e.apply(this,arguments)};case 5:return function(t,r,n,o,u){return e.apply(this,arguments)};case 6:return function(t,r,n,o,u,c){return e.apply(this,arguments)};case 7:return function(t,r,n,o,u,c,i){return e.apply(this,arguments)};case 8:return function(t,r,n,o,u,c,i,a){return e.apply(this,arguments)};case 9:return function(t,r,n,o,u,c,i,a,f){return e.apply(this,arguments)};case 10:return function(t,r,n,o,u,c,i,a,f,s){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var o=r(2),u=r(1),c=r(0);var i=Object(u.a)((function(t,e){return 1===t?Object(o.a)(e):n(t,function t(e,r,o){return function(){for(var u=[],i=0,a=e,f=0;f<r.length||i<arguments.length;){var s;f<r.length&&(!Object(c.a)(r[f])||i>=arguments.length)?s=r[f]:(s=arguments[i],i+=1),u[f]=s,Object(c.a)(s)||(a-=1),f+=1}return a<=0?o.apply(this,u):n(a,t(e,u,o))}}(t,[],e))}));e.a=i},function(t,e,r){"use strict";
|
||
/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;function c(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,i,a=c(t),f=1;f<arguments.length;f++){for(var s in r=Object(arguments[f]))o.call(r,s)&&(a[s]=r[s]);if(n){i=n(r);for(var l=0;l<i.length;l++)u.call(r,i[l])&&(a[i[l]]=r[i[l]])}}return a}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return v}));var n=r(4),o=r.n(n),u=r(9),c=r.n(u),i=r(5),a=r.n(i),f=(r(11),r(6)),s=r(20),l=r(10),p=r.n(l);function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){c()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}t.WPML_core=t.WPML_core||{},WPML_core.ajaxInProgress=0;var d=function(t){return function(){var e=a()(o.a.mark((function e(r){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.ok){e.next=5;break}return e.next=3,r.json();case 3:return n=e.sent,e.abrupt("return",h(h({},r),{},{success:!0,data:h({success:!0},n)}));case 5:return e.abrupt("return",h(h({},r),{},{success:!1,data:{success:!1,data:{type:t,message:r.statusText}}}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},v=Object(f.a)(2,(function(t,e){var r=t.nonce,n=t.endpoint;return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.method,n=void 0===r?"POST":r,o=e.contentType,u=void 0===o?"application/x-www-form-urlencoded; charset=utf-8":o;return WPML_core.ajaxInProgress++,fetch(ajaxurl,{method:n,headers:{"Content-Type":u},credentials:"same-origin",body:g(t)}).then(d("ajaxError")).finally((function(){WPML_core.ajaxInProgress--}))}(b(r,n,e))})),b=function(t,e,r){return{action:"wpml_action",nonce:t,endpoint:e,data:JSON.stringify(r)}},g=Object(s.a)(p.a.stringify)({arrayFormat:"bracket"});Object(f.a)(3,(function(t,e,r){return{body:g({action:"wpml_action",nonce:t,endpoint:e,data:JSON.stringify(r)})}}))}).call(this,r(15))},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";var n=r(17),o=r(7),u=r(18);function c(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function i(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function a(t,e){var r=function(t){var e;switch(t.arrayFormat){case"index":return function(t,r,n){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return function(t,r,n){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e=o({arrayFormat:"none"},e)),n=Object.create(null);return"string"!=typeof t?n:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),o=e.shift(),c=e.length>0?e.join("="):void 0;c=void 0===c?null:u(c),r(u(o),c,n)})),Object.keys(n).sort().reduce((function(t,e){var r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((function(t,e){return Number(t)-Number(e)})).map((function(t){return e[t]})):e}(r):t[e]=r,t}),Object.create(null))):n}e.extract=i,e.parse=a,e.stringify=function(t,e){!1===(e=o({encode:!0,strict:!0,arrayFormat:"none"},e)).sort&&(e.sort=function(){});var r=function(t){switch(t.arrayFormat){case"index":return function(e,r,n){return null===r?[c(e,t),"[",n,"]"].join(""):[c(e,t),"[",c(n,t),"]=",c(r,t)].join("")};case"bracket":return function(e,r){return null===r?c(e,t):[c(e,t),"[]=",c(r,t)].join("")};default:return function(e,r){return null===r?c(e,t):[c(e,t),"=",c(r,t)].join("")}}}(e);return t?Object.keys(t).sort(e.sort).map((function(n){var o=t[n];if(void 0===o)return"";if(null===o)return c(n,e);if(Array.isArray(o)){var u=[];return o.slice().forEach((function(t){void 0!==t&&u.push(r(n,t,u.length))})),u.join("&")}return c(n,e)+"="+c(o,e)})).filter((function(t){return t.length>0})).join("&"):""},e.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:a(i(t),e)}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return O}));var n=r(3),o=r.n(n),u={};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,r=void 0===e?"":e,n=t.method,o=void 0===n?"":n,u=t.responseType,c=void 0===u?"":u,i=t.body,a=void 0===i?"":i;return[r,o.toUpperCase(),c,a].join("||")}function i(t){var e=t.requestKey,r=t.res,n=t.err;(u[e]||[]).forEach((function(t){r?t.resolve(r):t.reject(n)})),u[e]=null}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],n=void 0,o=void 0;r?(n=r,o=e):e.responseType?(n=e,o={}):(n={},o=e);var a=n,f=a.requestKey,s=a.responseType,l=void 0===s?"":s,p=a.dedupe,y=void 0===p||p,h=f||c({url:t.url||t,method:o.method||t.method||"",body:o.body||t.body||""}),d=void 0;if(y){u[h]||(u[h]=[]);var v=u[h],b=Boolean(v.length),g={};if(d=new Promise((function(t,e){g.resolve=t,g.reject=e})),v.push(g),b)return d}var m=fetch(t,o).then((function(t){var e=void 0;return e=l instanceof Function?l(t):l||(204===t.status?"text":"json"),t[e]().then((function(e){if(t.data=e,!y)return t;i({requestKey:h,res:t})}),(function(){if(t.data=null,!y)return t;i({requestKey:h,res:t})}))}),(function(t){if(!y)return Promise.reject(t);i({requestKey:h,err:t})}));return y?d:m}var f=o.a.createContext(null);var s=function(t){var e=function(t,e){if(!t)return null;if(t instanceof Headers)return t.get(e);var r=e.toLowerCase(),n=Object.keys(t).find((function(t){return t.toLowerCase()===r}));return n?t[n]:null}(t.headers,"Content-Type");return e&&-1!==e.indexOf("application/json")?JSON.stringify(t.body):t.body},l=function(t){return"GET"===(t=t.toUpperCase())||"HEAD"===t||"OPTIONS"===t},p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},y="network-only",h="cache-and-network",d="exact-cache-and-network",v="cache-first",b=function(t){return console.error(t)},g=function(){return null};function m(t,e){switch(e.type){case"in-flight":return!0===t.fetching?t:p({},t,{fetching:!0});case"response":return p({},t,{error:null,fetching:e.payload.fetching,response:e.payload.response});case"error":return p({},t,{fetching:!1,error:e.payload.error});default:return t}}var j=function(t){return t};function O(t){var e=t.url,r=t.method,o=void 0===r?"GET":r,u=t.lazy,i=void 0===u?null:u,O=t.requestKey,w=void 0===O?null:O,x=t.init,E=void 0===x?{}:x,S=t.dedupeOptions,k=void 0===S?{}:S,_=t.cachePolicy,P=void 0===_?null:_,C=t.cacheResponse,L=void 0===C?null:C,A=t.onError,R=void 0===A?b:A,I=t.onSuccess,F=void 0===I?g:I,q=t.refreshDoFetch,$=void 0===q?j:q,T=Object(n.useContext)(f),U=Object(n.useRef)(),N=null==i?!l(o):i,M=null===P?function(t){return"GET"===(t=t.toUpperCase())||"HEAD"===t||"OPTIONS"===t?v:y}(o):P,D=Object(n.useReducer)(m,{response:null,fetching:!N,error:null}),G=D[0],B=D[1],z=w||c(p({url:e,method:o.toUpperCase()},E));function K(){B({type:"in-flight"})}function W(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];B({type:"response",payload:{response:t,fetching:e}})}function H(t){B({type:"error",payload:{error:t}})}function V(){U.current&&U.current.abort()}function J(){return null!==L?L:l(o)}var Y=Object(n.useCallback)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};V(),U.current=new AbortController,K();var n=p({},E,t),u=p({},k,r);return a(n.url||e,p({},n,{method:o,signal:U.current.signal,body:n.body?s(n):void 0}),u).then((function(t){return t.ok?(J()&&T.set(z,t),W(t),F(t)):(H(t),R(t)),t})).catch((function(t){return U.current.signal.aborted||H(t),R(t),t})).finally((function(){U.current=null}))}),[$(z)]);return Object(n.useEffect)((function(){if(!0!==N){var t=T.get(z);if(M===v&&t)return F(t),W(t);M===h&&t&&(F(t),W(t,!0)),M===d&&(t?(F(t),W(t,!0)):W(null)),M===y&&W(null),Y(E)}}),[z,N]),Object(n.useEffect)((function(){return function(){V()}}),[]),{response:G.response,data:G.response?G.response.data:null,fetching:G.fetching,error:G.error,requestKey:z,doFetch:Y}}},,function(t,e,r){t.exports=r(19)},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",u=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function a(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,u=Object.create(o.prototype),c=new x(n||[]);return u._invoke=function(t,e,r){var n="suspendedStart";return function(o,u){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw u;return S()}for(r.method=o,r.arg=u;;){var c=r.delegate;if(c){var i=j(c,r);if(i){if(i===s)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var a=f(t,e,r);if("normal"===a.type){if(n=r.done?"completed":"suspendedYield",a.arg===s)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(n="completed",r.method="throw",r.arg=a.arg)}}}(t,r,c),u}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var s={};function l(){}function p(){}function y(){}var h={};h[o]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(E([])));v&&v!==e&&r.call(v,o)&&(h=v);var b=y.prototype=l.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){i(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){var n;this._invoke=function(o,u){function c(){return new e((function(n,c){!function n(o,u,c,i){var a=f(t[o],t,u);if("throw"!==a.type){var s=a.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,c,i)}),(function(t){n("throw",t,c,i)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,i)}))}i(a.arg)}(o,u,n,c)}))}return n=n?n.then(c,c):c()}}function j(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,u=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return u.next=u}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=b.constructor=y,y.constructor=p,p.displayName=i(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,i(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},g(m.prototype),m.prototype[u]=function(){return this},t.AsyncIterator=m,t.async=function(e,r,n,o,u){void 0===u&&(u=Promise);var c=new m(a(e,r,n,o),u);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},g(b),i(b,c,"Generator"),b[o]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return c.type="throw",c.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],c=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var i=r.call(u,"catchLoc"),a=r.call(u,"finallyLoc");if(i&&a){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(i){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var u=o;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=e&&e<=u.finallyLoc&&(u=null);var c=u?u.completion:{};return c.type=t,c.arg=e,u?(this.method="next",this.next=u.finallyLoc,s):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";
|
||
/** @license React v16.14.0
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var n=r(7),o="function"==typeof Symbol&&Symbol.for,u=o?Symbol.for("react.element"):60103,c=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,a=o?Symbol.for("react.strict_mode"):60108,f=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,d=o?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function b(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function j(t,e,r){this.props=t,this.context=e,this.refs=m,this.updater=r||g}function O(){}function w(t,e,r){this.props=t,this.context=e,this.refs=m,this.updater=r||g}j.prototype.isReactComponent={},j.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(b(85));this.updater.enqueueSetState(this,t,e,"setState")},j.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},O.prototype=j.prototype;var x=w.prototype=new O;x.constructor=w,n(x,j.prototype),x.isPureReactComponent=!0;var E={current:null},S=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function _(t,e,r){var n,o={},c=null,i=null;if(null!=e)for(n in void 0!==e.ref&&(i=e.ref),void 0!==e.key&&(c=""+e.key),e)S.call(e,n)&&!k.hasOwnProperty(n)&&(o[n]=e[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var f=Array(a),s=0;s<a;s++)f[s]=arguments[s+2];o.children=f}if(t&&t.defaultProps)for(n in a=t.defaultProps)void 0===o[n]&&(o[n]=a[n]);return{$$typeof:u,type:t,key:c,ref:i,props:o,_owner:E.current}}function P(t){return"object"==typeof t&&null!==t&&t.$$typeof===u}var C=/\/+/g,L=[];function A(t,e,r,n){if(L.length){var o=L.pop();return o.result=t,o.keyPrefix=e,o.func=r,o.context=n,o.count=0,o}return{result:t,keyPrefix:e,func:r,context:n,count:0}}function R(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>L.length&&L.push(t)}function I(t,e,r){return null==t?0:function t(e,r,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case u:case c:a=!0}}if(a)return n(o,e,""===r?"."+F(e,0):r),1;if(a=0,r=""===r?".":r+":",Array.isArray(e))for(var f=0;f<e.length;f++){var s=r+F(i=e[f],f);a+=t(i,s,n,o)}else if(null===e||"object"!=typeof e?s=null:s="function"==typeof(s=v&&e[v]||e["@@iterator"])?s:null,"function"==typeof s)for(e=s.call(e),f=0;!(i=e.next()).done;)a+=t(i=i.value,s=r+F(i,f++),n,o);else if("object"===i)throw n=""+e,Error(b(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}(t,"",e,r)}function F(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function q(t,e){t.func.call(t.context,e,t.count++)}function $(t,e,r){var n=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?T(t,n,r,(function(t){return t})):null!=t&&(P(t)&&(t=function(t,e){return{$$typeof:u,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(C,"$&/")+"/")+r)),n.push(t))}function T(t,e,r,n,o){var u="";null!=r&&(u=(""+r).replace(C,"$&/")+"/"),I(t,$,e=A(e,u,n,o)),R(e)}var U={current:null};function N(){var t=U.current;if(null===t)throw Error(b(321));return t}var M={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:n};e.Children={map:function(t,e,r){if(null==t)return t;var n=[];return T(t,n,null,e,r),n},forEach:function(t,e,r){if(null==t)return t;I(t,q,e=A(null,null,e,r)),R(e)},count:function(t){return I(t,(function(){return null}),null)},toArray:function(t){var e=[];return T(t,e,null,(function(t){return t})),e},only:function(t){if(!P(t))throw Error(b(143));return t}},e.Component=j,e.Fragment=i,e.Profiler=f,e.PureComponent=w,e.StrictMode=a,e.Suspense=y,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,e.cloneElement=function(t,e,r){if(null==t)throw Error(b(267,t));var o=n({},t.props),c=t.key,i=t.ref,a=t._owner;if(null!=e){if(void 0!==e.ref&&(i=e.ref,a=E.current),void 0!==e.key&&(c=""+e.key),t.type&&t.type.defaultProps)var f=t.type.defaultProps;for(s in e)S.call(e,s)&&!k.hasOwnProperty(s)&&(o[s]=void 0===e[s]&&void 0!==f?f[s]:e[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){f=Array(s);for(var l=0;l<s;l++)f[l]=arguments[l+2];o.children=f}return{$$typeof:u,type:t.type,key:c,ref:i,props:o,_owner:a}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:l,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},e.createElement=_,e.createFactory=function(t){var e=_.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:p,render:t}},e.isValidElement=P,e.lazy=function(t){return{$$typeof:d,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return N().useCallback(t,e)},e.useContext=function(t,e){return N().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return N().useEffect(t,e)},e.useImperativeHandle=function(t,e,r){return N().useImperativeHandle(t,e,r)},e.useLayoutEffect=function(t,e){return N().useLayoutEffect(t,e)},e.useMemo=function(t,e){return N().useMemo(t,e)},e.useReducer=function(t,e,r){return N().useReducer(t,e,r)},e.useRef=function(t){return N().useRef(t)},e.useState=function(t){return N().useState(t)},e.version="16.14.0"},function(t,e,r){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t,e,r){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function u(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],u(r),u(n))}function c(t){try{return decodeURIComponent(t)}catch(o){for(var e=t.match(n),r=1;r<e.length;r++)e=(t=u(e,r).join("")).match(n);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"<22><>","%FF%FE":"<22><>"},r=o.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch(t){var n=c(r[0]);n!==r[0]&&(e[r[0]]=n)}r=o.exec(t)}e["%C2"]="<22>";for(var u=Object.keys(e),i=0;i<u.length;i++){var a=u[i];t=t.replace(new RegExp(a,"g"),e[a])}return t}(t)}}},function(t,e,r){"use strict";r.r(e);var n=r(4),o=r.n(n),u=r(5),c=r.n(u),i=r(8),a=r(2),f=r(1),s=r(0);function l(t){return function e(r,n,o){switch(arguments.length){case 0:return e;case 1:return Object(s.a)(r)?e:Object(f.a)((function(e,n){return t(r,e,n)}));case 2:return Object(s.a)(r)&&Object(s.a)(n)?e:Object(s.a)(r)?Object(f.a)((function(e,r){return t(e,n,r)})):Object(s.a)(n)?Object(f.a)((function(e,n){return t(r,e,n)})):Object(a.a)((function(e){return t(r,n,e)}));default:return Object(s.a)(r)&&Object(s.a)(n)&&Object(s.a)(o)?e:Object(s.a)(r)&&Object(s.a)(n)?Object(f.a)((function(e,r){return t(e,r,o)})):Object(s.a)(r)&&Object(s.a)(o)?Object(f.a)((function(e,r){return t(e,n,r)})):Object(s.a)(n)&&Object(s.a)(o)?Object(f.a)((function(e,n){return t(r,e,n)})):Object(s.a)(r)?Object(a.a)((function(e){return t(e,n,o)})):Object(s.a)(n)?Object(a.a)((function(e){return t(r,e,o)})):Object(s.a)(o)?Object(a.a)((function(e){return t(r,n,e)})):t(r,n,o)}}}function p(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function y(t,e,r){for(var n=0,o=r.length;n<o;){if(t(e,r[n]))return!0;n+=1}return!1}function h(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var d="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},v=Object.prototype.toString,b=function(){return"[object Arguments]"===v.call(arguments)?function(t){return"[object Arguments]"===v.call(t)}:function(t){return h("callee",t)}}(),g=!{toString:null}.propertyIsEnumerable("toString"),m=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=function(){return arguments.propertyIsEnumerable("length")}(),O=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},w="function"!=typeof Object.keys||j?Object(a.a)((function(t){if(Object(t)!==t)return[];var e,r,n=[],o=j&&b(t);for(e in t)!h(e,t)||o&&"length"===e||(n[n.length]=e);if(g)for(r=m.length-1;r>=0;)h(e=m[r],t)&&!O(n,e)&&(n[n.length]=e),r-=1;return n})):Object(a.a)((function(t){return Object(t)!==t?[]:Object.keys(t)})),x=Object(a.a)((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function E(t,e,r,n){var o=p(t);function u(t,e){return S(t,e,r.slice(),n.slice())}return!y((function(t,e){return!y(u,e,t)}),p(e),o)}function S(t,e,r,n){if(d(t,e))return!0;var o,u,c=x(t);if(c!==x(e))return!1;if(null==t||null==e)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(c){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(u=String(o).match(/^function (\w*)/))?"":u[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!d(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!d(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var i=r.length-1;i>=0;){if(r[i]===t)return n[i]===e;i-=1}switch(c){case"Map":return t.size===e.size&&E(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&E(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=w(t);if(a.length!==w(e).length)return!1;var f=r.concat([t]),s=n.concat([e]);for(i=a.length-1;i>=0;){var l=a[i];if(!h(l,e)||!S(e[l],t[l],f,s))return!1;i-=1}return!0}var k=Object(f.a)((function(t,e){return S(t,e,[],[])})),_=l((function(t,e,r){return k(e,r[t])})),P=Object(f.a)((function(t,e){return null==e||e!=e?t:e})),C=Number.isInteger||function(t){return t<<0===t};var L=Object(f.a)((function(t,e){var r,n=t<0?e.length+t:t;return r=e,"[object String]"===Object.prototype.toString.call(r)?e.charAt(n):e[n]})),A=Object(f.a)((function(t,e){return t.map((function(t){for(var r,n=e,o=0;o<t.length;){if(null==n)return;r=t[o],n=C(r)?L(r,n):n[r],o+=1}return n}))})),R=Object(f.a)((function(t,e){return A([t],e)[0]})),I=l((function(t,e,r){return P(t,R(e,r))})),F=l((function(t,e,r){return I(t,[e],r)})),q=function(){var t=c()(o.a.mark((function t(e,r){var n,u,c,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(i.a)(e,r);case 2:n=t.sent,u=n.data,c=u.success,a=u.data,c&&a&&_("status","continue",a)&&q(e,F({},"data",a));case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();document.addEventListener("DOMContentLoaded",(function(){wpml_background_task.endpoints.forEach((function(t){var e=wpml_background_task.endpointsData[t.endpoint];q(t,e||{})}))}))},function(t,e,r){"use strict";var n=r(2),o=r(6),u=Object(n.a)((function(t){return Object(o.a)(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}));e.a=u}]); |