tocco-admin 1.0.134 → 1.0.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +0,0 @@
1
- (self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[176],{44020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp(t,"gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var o=a(r[0]);o!==r[0]&&(t[r[0]]=o)}r=n.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),s=0;s<i.length;s++){var c=i[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;a<n.length;a++){var i=n[a],s=e[i];(o?-1!==t.indexOf(i):t(i,s,e))&&(r[i]=s)}return r}},36392:(e,t,r)=>{"use strict";r.d(t,{lX:()=>R});var n=r(30670),o=r.n(n),a=r(41143),i=r.n(a),s=r(14149),c=(r(54545),function(e){return"/"===e.charAt(0)?e:"/"+e}),l=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},u=function(e,t){return l(e,t)?e.substr(t.length):e},d=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},f=function(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&"?"!==r&&(o+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o},p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h=function(e,t,r,n){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(r=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e),o.state=t):(void 0===(o=p({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return r&&(o.key=r),n?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,s.default)(o.pathname,n.pathname)):o.pathname=n.pathname:o.pathname||(o.pathname="/"),o};const m=function(){var e=null,t=[];return{setPrompt:function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,a){if(null!=e){var i="function"==typeof e?e(t,r):e;"string"==typeof i?"function"==typeof n?n(i,a):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},appendListener:function(e){var r=!0,n=function(){r&&e.apply(void 0,arguments)};return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];t.forEach((function(e){return e.apply(void 0,r)}))}}};var g=!("undefined"==typeof window||!window.document||!window.document.createElement),y=function(e,t,r){return e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},v=function(e,t,r){return e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},b=function(e,t){return t(window.confirm(e))},w=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},E=function(){return-1===window.navigator.userAgent.indexOf("Trident")},C=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x="popstate",N="hashchange",I=function(){try{return window.history.state||{}}catch(e){return{}}};const R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(g,"Browser history needs a DOM");var t=window.history,r=w(),n=!E(),a=e.forceRefresh,s=void 0!==a&&a,p=e.getUserConfirmation,R=void 0===p?b:p,S=e.keyLength,k=void 0===S?6:S,M=e.basename?d(c(e.basename)):"",P=function(e){var t=e||{},r=t.key,n=t.state,a=window.location,i=a.pathname+a.search+a.hash;return o()(!M||l(i,M),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+M+'".'),M&&(i=u(i,M)),h(i,n,r)},A=function(){return Math.random().toString(36).substr(2,k)},T=m(),L=function(e){_(ee,e),ee.length=t.length,T.notifyListeners(ee.location,ee.action)},j=function(e){C(e)||U(P(e.state))},F=function(){U(P(I()))},B=!1,U=function(e){if(B)B=!1,L();else{T.confirmTransitionTo(e,"POP",R,(function(t){t?L({action:"POP",location:e}):z(e)}))}},z=function(e){var t=ee.location,r=H.indexOf(t.key);-1===r&&(r=0);var n=H.indexOf(e.key);-1===n&&(n=0);var o=r-n;o&&(B=!0,Q(o))},D=P(I()),H=[D.key],$=function(e){return M+f(e)},W=function(e,n){o()(!("object"===(void 0===e?"undefined":O(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a="PUSH",i=h(e,n,A(),ee.location);T.confirmTransitionTo(i,a,R,(function(e){if(e){var n=$(i),c=i.key,l=i.state;if(r)if(t.pushState({key:c,state:l},null,n),s)window.location.href=n;else{var u=H.indexOf(ee.location.key),d=H.slice(0,-1===u?0:u+1);d.push(i.key),H=d,L({action:a,location:i})}else o()(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=n}}))},Y=function(e,n){o()(!("object"===(void 0===e?"undefined":O(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a="REPLACE",i=h(e,n,A(),ee.location);T.confirmTransitionTo(i,a,R,(function(e){if(e){var n=$(i),c=i.key,l=i.state;if(r)if(t.replaceState({key:c,state:l},null,n),s)window.location.replace(n);else{var u=H.indexOf(ee.location.key);-1!==u&&(H[u]=i.key),L({action:a,location:i})}else o()(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(n)}}))},Q=function(e){t.go(e)},q=function(){return Q(-1)},V=function(){return Q(1)},G=0,K=function(e){1===(G+=e)?(y(window,x,j),n&&y(window,N,F)):0===G&&(v(window,x,j),n&&v(window,N,F))},X=!1,Z=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=T.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}},J=function(e){var t=T.appendListener(e);return K(1),function(){K(-1),t()}},ee={length:t.length,action:"POP",location:D,createHref:$,push:W,replace:Y,go:Q,goBack:q,goForward:V,block:Z,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign},96425:(e,t,r)=>{var n=r(3118),o=r(9435);function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=n(o.prototype),a.prototype.constructor=a,e.exports=a},7548:(e,t,r)=>{var n=r(3118),o=r(9435);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=n(o.prototype),a.prototype.constructor=a,e.exports=a},9435:e=>{e.exports=function(){}},28045:e=>{e.exports=function(e){return e}},52157:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var a=-1,i=e.length,s=n.length,c=-1,l=r.length,u=t(i-s,0),d=Array(l+u),f=!o;++c<l;)d[c]=r[c];for(;++a<s;)(f||a<i)&&(d[n[a]]=e[a]);for(;u--;)d[c++]=e[a++];return d}},14054:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var a=-1,i=e.length,s=-1,c=n.length,l=-1,u=r.length,d=t(i-c,0),f=Array(d+u),p=!o;++a<d;)f[a]=e[a];for(var h=a;++l<u;)f[h+l]=r[l];for(;++s<c;)(p||a<i)&&(f[h+n[s]]=e[a++]);return f}},97991:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},22402:(e,t,r)=>{var n=r(71774),o=r(55639);e.exports=function(e,t,r){var a=1&t,i=n(e);return function t(){var n=this&&this!==o&&this instanceof t?i:e;return n.apply(a?r:this,arguments)}}},71774:(e,t,r)=>{var n=r(3118),o=r(13218);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),a=e.apply(r,t);return o(a)?a:r}}},46347:(e,t,r)=>{var n=r(96874),o=r(71774),a=r(86935),i=r(94487),s=r(20893),c=r(46460),l=r(55639);e.exports=function(e,t,r){var u=o(e);return function o(){for(var d=arguments.length,f=Array(d),p=d,h=s(o);p--;)f[p]=arguments[p];var m=d<3&&f[0]!==h&&f[d-1]!==h?[]:c(f,h);if((d-=m.length)<r)return i(e,t,a,o.placeholder,void 0,f,m,void 0,void 0,r-d);var g=this&&this!==l&&this instanceof o?u:e;return n(g,this,f)}}},23468:(e,t,r)=>{var n=r(7548),o=r(99021),a=r(66833),i=r(97658),s=r(1469),c=r(86528);e.exports=function(e){return o((function(t){var r=t.length,o=r,l=n.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if("function"!=typeof u)throw new TypeError("Expected a function");if(l&&!d&&"wrapper"==i(u))var d=new n([],!0)}for(o=d?o:r;++o<r;){u=t[o];var f=i(u),p="wrapper"==f?a(u):void 0;d=p&&c(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[i(p[0])].apply(d,p[3]):1==u.length&&c(u)?d[f]():d.thru(u)}return function(){var e=arguments,n=e[0];if(d&&1==e.length&&s(n))return d.plant(n).value();for(var o=0,a=r?t[o].apply(this,e):n;++o<r;)a=t[o].call(this,a);return a}}))}},86935:(e,t,r)=>{var n=r(52157),o=r(14054),a=r(97991),i=r(71774),s=r(94487),c=r(20893),l=r(90451),u=r(46460),d=r(55639);e.exports=function e(t,r,f,p,h,m,g,y,v,b){var w=128&r,E=1&r,C=2&r,O=24&r,_=512&r,x=C?void 0:i(t);return function N(){for(var I=arguments.length,R=Array(I),S=I;S--;)R[S]=arguments[S];if(O)var k=c(N),M=a(R,k);if(p&&(R=n(R,p,h,O)),m&&(R=o(R,m,g,O)),I-=M,O&&I<b){var P=u(R,k);return s(t,r,e,N.placeholder,f,R,P,y,v,b-I)}var A=E?f:this,T=C?A[t]:t;return I=R.length,y?R=l(R,y):_&&I>1&&R.reverse(),w&&v<I&&(R.length=v),this&&this!==d&&this instanceof N&&(T=x||i(T)),T.apply(A,R)}}},84375:(e,t,r)=>{var n=r(96874),o=r(71774),a=r(55639);e.exports=function(e,t,r,i){var s=1&t,c=o(e);return function t(){for(var o=-1,l=arguments.length,u=-1,d=i.length,f=Array(d+l),p=this&&this!==a&&this instanceof t?c:e;++u<d;)f[u]=i[u];for(;l--;)f[u++]=arguments[++o];return n(p,s?r:this,f)}}},94487:(e,t,r)=>{var n=r(86528),o=r(258),a=r(69255);e.exports=function(e,t,r,i,s,c,l,u,d,f){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?c:void 0,p?l:void 0,p?void 0:c,p?void 0:l,u,d,f],m=r.apply(void 0,h);return n(e)&&o(m,h),m.placeholder=i,a(m,e,t)}},97727:(e,t,r)=>{var n=r(28045),o=r(22402),a=r(46347),i=r(86935),s=r(84375),c=r(66833),l=r(63833),u=r(258),d=r(69255),f=r(40554),p=Math.max;e.exports=function(e,t,r,h,m,g,y,v){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=m=void 0),y=void 0===y?y:p(f(y),0),v=void 0===v?v:f(v),w-=m?m.length:0,64&t){var E=h,C=m;h=m=void 0}var O=b?void 0:c(e),_=[e,t,r,h,m,E,C,g,y,v];if(O&&l(_,O),e=_[0],t=_[1],r=_[2],h=_[3],m=_[4],!(v=_[9]=void 0===_[9]?b?0:e.length:p(_[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?a(e,t,v):32!=t&&33!=t||m.length?i.apply(void 0,_):s(e,t,r,h);else var x=o(e,t,r);return d((O?n:u)(x,_),e,t)}},66833:e=>{e.exports=function(){}},97658:(e,t,r)=>{var n=r(52060),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],a=o.call(n,t)?r.length:0;a--;){var i=r[a],s=i.func;if(null==s||s==e)return i.name}return t}},20893:e=>{e.exports=function(){}},86528:(e,t,r)=>{var n=r(96425),o=r(66833),a=r(97658),i=r(8111);e.exports=function(e){var t=a(e),r=i[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=o(r);return!!s&&e===s[0]}},63833:e=>{e.exports=function(e){return e}},52060:e=>{e.exports={}},90451:(e,t,r)=>{var n=r(278),o=r(65776),a=Math.min;e.exports=function(e,t){for(var r=e.length,i=a(t.length,r),s=n(e);i--;){var c=t[i];e[i]=o(c,r)?s[c]:void 0}return e}},46460:e=>{e.exports=function(){return[]}},258:e=>{e.exports=function(e){return e}},69255:e=>{e.exports=function(e){return e}},60169:(e,t,r)=>{var n=r(96425),o=r(7548),a=r(278);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},40087:(e,t,r)=>{var n=r(97727);function o(e,t,r){var a=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return a.placeholder=o.placeholder,a}o.placeholder={},e.exports=o},59242:(e,t,r)=>{var n=r(23468)();e.exports=n},8111:(e,t,r)=>{var n=r(96425),o=r(7548),a=r(9435),i=r(1469),s=r(37005),c=r(60169),l=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!i(e)&&!(e instanceof n)){if(e instanceof o)return e;if(l.call(e,"__wrapped__"))return c(e)}return new o(e)}u.prototype=a.prototype,u.prototype.constructor=u,e.exports=u},84059:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>N});var n,o=r(1024),a=r.n(o),i=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&u(e,r,t[r]);if(s)for(var r of s(t))l.call(t,r)&&u(e,r,t[r]);return e},f=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))t.indexOf(n)<0&&l.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class{constructor(e,r,n,o){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(n);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(o=t,e=r),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(r,n){const o=e.QrSegment.makeSegments(r);return t.encodeSegments(o,n)}static encodeBinary(r,n){const o=e.QrSegment.makeBytes(r);return t.encodeSegments([o],n)}static encodeSegments(e,r,o=1,i=40,c=-1,l=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=o;;u++){const n=8*t.getNumDataCodewords(u,r),o=s.getTotalBits(e,u);if(o<=n){d=o;break}if(u>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}a(f.length==d);const p=8*t.getNumDataCodewords(u,r);a(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,r,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let e=0;e<10;e++)r=r<<1^1335*(r>>>9);const n=21522^(t<<10|r);a(n>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(n,e));this.setFunctionModule(8,7,o(n,6)),this.setFunctionModule(8,8,o(n,7)),this.setFunctionModule(7,8,o(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const r=o(t,e),n=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(n,a,r),this.setFunctionModule(a,n,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),a=e+n,i=t+r;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],i=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],s=Math.floor(t.getNumRawDataModules(r)/8),c=o-s%o,l=Math.floor(s/o);let u=[];const d=t.reedSolomonComputeDivisor(i);for(let r=0,n=0;r<o;r++){let o=e.slice(n,n+l-i+(r<c?0:1));n+=o.length;const a=t.reedSolomonComputeRemainder(o,d);r<c&&o.push(0),u.push(o.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,r)=>{(e!=l-i||r>=c)&&f.push(t[e])}));return a(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n<this.size;n++)for(let a=0;a<2;a++){const i=t-a,s=0==(t+1&2)?this.size-1-n:n;!this.isFunction[s][i]&&r<8*e.length&&(this.modules[s][i]=o(e[r>>>3],7-(7&r)),r++)}}a(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[r][i]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),n||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),n=this.modules[r][i],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,a)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][r]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),n||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),n=this.modules[i][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,a)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){const o=this.modules[r][n];o==this.modules[r][n+1]&&o==this.modules[r+1][n]&&o==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(const e of this.modules)r=e.reduce(((e,t)=>e+(t?1:0)),r);const n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return a(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let o=0;o<e;o++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map((e=>0));for(const o of e){const e=o^n.shift();n.push(0),r.forEach(((r,o)=>n[o]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return a(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let r=t;function n(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;const i=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r<e.length;){const o=Math.min(e.length-r,3);n(parseInt(e.substr(r,o),10),3*o+1,t),r+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,r=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),n(o,11,r)}return t<e.length&&n(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,r),new i(i.Mode.ALPHANUMERIC,e.length,r)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)n(e,8,t);else if(e<16384)n(2,2,t),n(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,t),n(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substr(r+1,2),16)),r+=2);return t}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let r=t;r.LOW=new t(0,1),r.MEDIUM=new t(1,0),r.QUARTILE=new t(2,3),r.HIGH=new t(3,2),e.Ecc=r})(t=e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let r=t;r.NUMERIC=new t(1,[10,12,14]),r.ALPHANUMERIC=new t(2,[9,11,13]),r.BYTE=new t(4,[8,16,16]),r.KANJI=new t(8,[8,10,12]),r.ECI=new t(7,[0,0,0]),e.Mode=r})(t=e.QrSegment||(e.QrSegment={}))})(n||(n={}));var p=n,h={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},m=128,g="L",y="#FFFFFF",v="#000000",b=!1;
2
- /**
3
- * @license qrcode.react
4
- * Copyright (c) Paul O'Shannessy
5
- * SPDX-License-Identifier: ISC
6
- */function w(e,t=0){const r=[];return e.forEach((function(e,n){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return r.push(`M${o+t} ${n+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?r.push(`M${i+t},${n+t} h1v1H${i+t}z`):r.push(`M${o+t},${n+t} h${i+1-o}v1H${o+t}z`)}}))})),r.join("")}function E(e,t){return e.slice().map(((e,r)=>r<t.y||r>=t.y+t.h?e:e.map(((e,r)=>(r<t.x||r>=t.x+t.w)&&e))))}function C(e,t,r,n){if(null==n)return null;const o=r?4:0,a=e.length+2*o,i=Math.floor(.1*t),s=a/t,c=(n.width||i)*s,l=(n.height||i)*s,u=null==n.x?e.length/2-c/2:n.x*s,d=null==n.y?e.length/2-l/2:n.y*s;let f=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:f}}var O=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function _(e){const t=e,{value:r,size:n=m,level:i=g,bgColor:s=y,fgColor:c=v,includeMargin:l=b,style:u,imageSettings:_}=t,x=f(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),N=null==_?void 0:_.src,I=(0,o.useRef)(null),R=(0,o.useRef)(null),[S,k]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(null!=I.current){const e=I.current,t=e.getContext("2d");if(!t)return;let o=p.QrCode.encodeText(r,h[i]).getModules();const a=l?4:0,u=o.length+2*a,d=C(o,n,l,_),f=R.current,m=null!=d&&null!==f&&f.complete&&0!==f.naturalHeight&&0!==f.naturalWidth;m&&null!=d.excavation&&(o=E(o,d.excavation));const g=window.devicePixelRatio||1;e.height=e.width=n*g;const y=n/u*g;t.scale(y,y),t.fillStyle=s,t.fillRect(0,0,u,u),t.fillStyle=c,O?t.fill(new Path2D(w(o,a))):o.forEach((function(e,r){e.forEach((function(e,n){e&&t.fillRect(n+a,r+a,1,1)}))})),m&&t.drawImage(f,d.x+a,d.y+a,d.w,d.h)}})),(0,o.useEffect)((()=>{k(!1)}),[N]);const M=d({height:n,width:n},u);let P=null;return null!=N&&(P=a().createElement("img",{src:N,key:N,style:{display:"none"},onLoad:()=>{k(!0)},ref:R})),a().createElement(a().Fragment,null,a().createElement("canvas",d({style:M,height:n,width:n,ref:I},x)),P)}function x(e){const t=e,{value:r,size:n=m,level:o=g,bgColor:i=y,fgColor:s=v,includeMargin:c=b,imageSettings:l}=t,u=f(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let O=p.QrCode.encodeText(r,h[o]).getModules();const _=c?4:0,x=O.length+2*_,N=C(O,n,c,l);let I=null;null!=l&&null!=N&&(null!=N.excavation&&(O=E(O,N.excavation)),I=a().createElement("image",{xlinkHref:l.src,height:N.h,width:N.w,x:N.x+_,y:N.y+_,preserveAspectRatio:"none"}));const R=w(O,_);return a().createElement("svg",d({height:n,width:n,viewBox:`0 0 ${x} ${x}`},u),a().createElement("path",{fill:i,d:`M0,0 h${x}v${x}H0z`,shapeRendering:"crispEdges"}),a().createElement("path",{fill:s,d:R,shapeRendering:"crispEdges"}),I)}var N=e=>{const t=e,{renderAs:r}=t,n=f(t,["renderAs"]);return"svg"===r?a().createElement(x,d({},n)):a().createElement(_,d({},n))}},17563:(e,t,r)=>{"use strict";const n=r(70610),o=r(44020),a=r(80500),i=r(92806),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!o&&u(r,e).includes(e.arrayFormatSeparator);r=a?u(r,e):r;const i=o||a?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?u(r,e):r);const a=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],a):n[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,i]=a(t.decode?o.replace(/\+/g," "):o,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:u(i,t),r(u(e,t),i,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=h(r[e],t);else n[e]=h(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=p,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",o,"]"].join("")]:[...r,[l(t,e),"[",l(o,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[l(r,e),t,l(o,e)].join("")]:[[n,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const o=e[r];return void 0===o?"":null===o?l(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":o.reduce(n(r),[]).join("&"):l(r,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=a(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[s]:!0},r);const n=f(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query);let c=t.stringify(i,r);c&&(c=`?${c}`);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u=`#${r[s]?l(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${c}${u}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:o,query:a,fragmentIdentifier:c}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:i(a,r),fragmentIdentifier:c},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},36104:(e,t,r)=>{"use strict";var n=r(82637);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},9657:(e,t,r)=>{e.exports=r(36104)()},82637:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},14510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function a(e){return e&&e.__esModule?e:{default:e}}var i=r(1024),s=a(i),c=a(r(59479)),l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){for(var n=!0;n;){var o=e,a=t,i=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(i)}var l=Object.getPrototypeOf(o);if(null===l)return;e=l,t=a,r=i,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={hover:!1}}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getLineStyle",value:function(e){return n({position:"absolute",height:"20%",left:0,right:0,top:2*e*20+"%",opacity:this.state.hover?.6:1},this.state.hover&&this.props.styles.bmBurgerBarsHover)}},{key:"render",value:function(){var e=this,t=void 0;if(this.props.customIcon){var r={className:("bm-icon "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmIcon)};t=s.default.cloneElement(this.props.customIcon,r)}else t=s.default.createElement("span",null,[0,1,2].map((function(t){return s.default.createElement("span",{key:t,className:("bm-burger-bars "+e.props.barClassName+" "+(e.state.hover?"bm-burger-bars-hover":"")).trim(),style:n({},e.getLineStyle(t),e.props.styles.bmBurgerBars)})})));return s.default.createElement("div",{className:("bm-burger-button "+this.props.className).trim(),style:n({zIndex:1e3},this.props.styles.bmBurgerButton)},s.default.createElement("button",{type:"button",id:"react-burger-menu-btn",onClick:this.props.onClick,onMouseOver:function(){e.setState({hover:!0}),e.props.onIconHoverChange&&e.props.onIconHoverChange({isMouseIn:!0})},onMouseOut:function(){e.setState({hover:!1}),e.props.onIconHoverChange&&e.props.onIconHoverChange({isMouseIn:!1})},style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"}},"Open Menu"),t)}}]),t}(i.Component);t.default=l,l.propTypes={barClassName:c.default.string,customIcon:c.default.element,styles:c.default.object},l.defaultProps={barClassName:"",className:"",styles:{}},e.exports=t.default},75430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(e,t,r){for(var n=!0;n;){var o=e,a=t,i=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(i)}var l=Object.getPrototypeOf(o);if(null===l)return;e=l,t=a,r=i,n=!0,s=l=void 0}};function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=r(1024),l=i(c),u=i(r(59479)),d=function(e){function t(){s(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getCrossStyle",value:function(e){return{position:"absolute",width:3,height:14,transform:"before"===e?"rotate(45deg)":"rotate(-45deg)"}}},{key:"render",value:function(){var e,t=this;if(this.props.customIcon){var r={className:("bm-cross "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmCross)};e=l.default.cloneElement(this.props.customIcon,r)}else e=l.default.createElement("span",{style:{position:"absolute",top:"6px",right:"14px"}},["before","after"].map((function(e,r){return l.default.createElement("span",{key:r,className:("bm-cross "+t.props.crossClassName).trim(),style:n({},t.getCrossStyle(e),t.props.styles.bmCross)})})));return l.default.createElement("div",{className:("bm-cross-button "+this.props.className).trim(),style:n({},{position:"absolute",width:24,height:24,right:8,top:8},this.props.styles.bmCrossButton)},l.default.createElement("button",{type:"button",id:"react-burger-cross-btn",onClick:this.props.onClick,style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"},tabIndex:this.props.isOpen?0:-1},"Close Menu"),e)}}]),t}(c.Component);t.default=d,d.propTypes={crossClassName:u.default.string,customIcon:u.default.element,isOpen:u.default.bool,styles:u.default.object},d.defaultProps={crossClassName:"",className:"",styles:{},isOpen:!1},e.exports=t.default},86661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={overlay:function(e){return{position:"fixed",zIndex:1e3,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",opacity:e?1:0,MozTransform:e?"":"translate3d(100%, 0, 0)",MsTransform:e?"":"translate3d(100%, 0, 0)",OTransform:e?"":"translate3d(100%, 0, 0)",WebkitTransform:e?"":"translate3d(100%, 0, 0)",transform:e?"":"translate3d(100%, 0, 0)",transition:e?"opacity 0.3s":"opacity 0.3s, transform 0s 0.3s"}},menuWrap:function(e,t,r){return{position:"fixed",right:r?0:"inherit",zIndex:1100,width:t,height:"100%",MozTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.5s"}},menu:function(){return{height:"100%",boxSizing:"border-box",overflow:"auto"}},itemList:function(){return{height:"100%"}},item:function(){return{display:"block"}}},e.exports=t.default},74660:(e,t)=>{"use strict";function r(){var e=Array.from(document.getElementsByClassName("bm-item")).shift();e&&e.focus()}function n(){var e=Array.from(document.getElementsByClassName("bm-item")).pop();e&&e.focus()}function o(){var e=document.getElementById("react-burger-cross-btn");e&&e.focus()}function a(e){if(document.activeElement.className.includes("bm-item")){var t=document.activeElement[e];t?t.focus():o()}else"previousElementSibling"===e?n():r()}Object.defineProperty(t,"__esModule",{value:!0}),t.focusOnFirstMenuItem=r,t.focusOnLastMenuItem=n,t.focusOnCrossButton=o,t.focusOnMenuButton=function(){var e=document.getElementById("react-burger-menu-btn");e&&e.focus()},t.focusOnMenuItem=a,t.focusOnNextMenuItem=function(){a("nextElementSibling")},t.focusOnPreviousMenuItem=function(){a("previousElementSibling")}},14126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var i=a(r(1024)),s=(a(r(30314)),a(r(59479))),c=a(r(86661)),l=r(74660),u=a(r(14510)),d=a(r(75430));t.default=function(e){if(!e)throw new Error("No styles supplied");var t="ArrowDown",r="ArrowUp";var a=function(a){var s,f,p=i.default.useState(!1),h=n(p,2),m=h[0],g=h[1],y=i.default.useRef(),v=i.default.useRef({}),b=(s=a.isOpen,f=i.default.useRef(s),i.default.useEffect((function(){f.current=s})),f.current);function w(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];v.current=e,x(),setTimeout((function(){g((function(t){return void 0!==e.isOpen?e.isOpen:!t}))}))}function E(){"function"==typeof a.onClose?a.onClose():w()}function C(e,t){var r=a.width,n=a.right;return e(m,"string"!=typeof r?r+"px":r,n,t)}function O(t,r,n){var i="bm"+t.replace(t.charAt(0),t.charAt(0).toUpperCase()),s=c.default[t]?C(c.default[t]):{};return e[t]&&(s=o({},s,C(e[t],r+1))),a.styles[i]&&(s=o({},s,a.styles[i])),n&&(s=o({},s,n)),a.noTransition&&delete s.transition,s}function _(e,t,r){var n=document.getElementById(e);if(n){var o=C(t);for(var i in o)o.hasOwnProperty(i)&&(n.style[i]=r?o[i]:"");var s=function(e){return e.style["overflow-x"]=r?"hidden":""};a.htmlClassName||s(document.querySelector("html")),a.bodyClassName||s(document.querySelector("body"))}else console.error("Element with ID '"+e+"' not found")}function x(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0],r=function(e,r){return e.classList[t?"add":"remove"](r)};a.htmlClassName&&r(document.querySelector("html"),a.htmlClassName),a.bodyClassName&&r(document.querySelector("body"),a.bodyClassName),e.pageWrap&&a.pageWrapId&&_(a.pageWrapId,e.pageWrap,t),e.outerContainer&&a.outerContainerId&&_(a.outerContainerId,e.outerContainer,t);var n=document.querySelector(".bm-menu-wrap");n&&(t?n.removeAttribute("hidden"):n.setAttribute("hidden",!0))}function N(){y.current&&clearTimeout(y.current)}function I(e){switch((e=e||window.event).key){case"Escape":a.disableCloseOnEsc||(E(),(0,l.focusOnMenuButton)());break;case t:(0,l.focusOnNextMenuItem)();break;case r:(0,l.focusOnPreviousMenuItem)();break;case"Home":(0,l.focusOnFirstMenuItem)();break;case"End":(0,l.focusOnLastMenuItem)()}}function R(e){if((e=e||window.event).target===document.getElementById("react-burger-menu-btn"))switch(e.key){case t:case" ":w();break;case r:w({focusOnLastItem:!0})}}return i.default.useEffect((function(){return a.isOpen&&w({isOpen:!0,noStateChange:!0}),function(){x(!1),N()}}),[]),i.default.useEffect((function(){var t,r;void 0!==a.isOpen&&a.isOpen!==m&&a.isOpen!==b?w():e.svg&&(t=document.getElementById("bm-morph-shape"),r=e.svg.lib(t).select("path"),m?e.svg.animate(r):setTimeout((function(){r.attr("d",e.svg.pathInitial)}),300))})),i.default.useEffect((function(){var e=v.current,t=e.noStateChange,r=e.focusOnLastItem;t||a.onStateChange({isOpen:m}),a.disableAutoFocus||(m?r?(0,l.focusOnLastMenuItem)():(0,l.focusOnFirstMenuItem)():document.activeElement?document.activeElement.blur():document.body.blur()),N(),y.current=setTimeout((function(){y.current=null,m||x(!1)}),500);var n=m?I:R,o=a.customOnKeyDown||n;return window.addEventListener("keydown",o),function(){window.removeEventListener("keydown",o)}}),[m]),i.default.createElement("div",null,!a.noOverlay&&i.default.createElement("div",{className:("bm-overlay "+a.overlayClassName).trim(),onClick:function(){!0===a.disableOverlayClick||"function"==typeof a.disableOverlayClick&&a.disableOverlayClick()||E()},style:O("overlay")}),!1!==a.customBurgerIcon&&i.default.createElement("div",{style:O("burgerIcon")},i.default.createElement(u.default,{onClick:function(){"function"==typeof a.onOpen?a.onOpen():w()},styles:a.styles,customIcon:a.customBurgerIcon,className:a.burgerButtonClassName,barClassName:a.burgerBarClassName,onIconStateChange:a.onIconStateChange})),i.default.createElement("div",{id:a.id,className:("bm-menu-wrap "+a.className).trim(),style:O("menuWrap"),"aria-hidden":!m},e.svg&&i.default.createElement("div",{id:"bm-morph-shape",className:("bm-morph-shape "+a.morphShapeClassName).trim(),style:O("morphShape")},i.default.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 100 800",preserveAspectRatio:"none"},i.default.createElement("path",{d:e.svg.pathInitial}))),i.default.createElement("div",{className:("bm-menu "+a.menuClassName).trim(),style:O("menu")},i.default.createElement(a.itemListElement,{className:("bm-item-list "+a.itemListClassName).trim(),style:O("itemList")},i.default.Children.map(a.children,(function(e,t){if(e){var r={key:t,className:["bm-item",a.itemClassName,e.props.className].filter((function(e){return!!e})).join(" "),style:O("item",t,e.props.style),tabIndex:m?0:-1};return i.default.cloneElement(e,r)}})))),!1!==a.customCrossIcon&&i.default.createElement("div",{style:O("closeButton")},i.default.createElement(d.default,{onClick:E,styles:a.styles,customIcon:a.customCrossIcon,className:a.crossButtonClassName,crossClassName:a.crossClassName,isOpen:m}))))};return a.propTypes={bodyClassName:s.default.string,burgerBarClassName:s.default.string,burgerButtonClassName:s.default.string,className:s.default.string,crossButtonClassName:s.default.string,crossClassName:s.default.string,customBurgerIcon:s.default.oneOfType([s.default.element,s.default.oneOf([!1])]),customCrossIcon:s.default.oneOfType([s.default.element,s.default.oneOf([!1])]),customOnKeyDown:s.default.func,disableAutoFocus:s.default.bool,disableCloseOnEsc:s.default.bool,disableOverlayClick:s.default.oneOfType([s.default.bool,s.default.func]),htmlClassName:s.default.string,id:s.default.string,isOpen:s.default.bool,itemClassName:s.default.string,itemListClassName:s.default.string,itemListElement:s.default.oneOf(["div","nav"]),menuClassName:s.default.string,morphShapeClassName:s.default.string,noOverlay:s.default.bool,noTransition:s.default.bool,onClose:s.default.func,onIconHoverChange:s.default.func,onOpen:s.default.func,onStateChange:s.default.func,outerContainerId:e&&e.outerContainer?s.default.string.isRequired:s.default.string,overlayClassName:s.default.string,pageWrapId:e&&e.pageWrap?s.default.string.isRequired:s.default.string,right:s.default.bool,styles:s.default.object,width:s.default.oneOfType([s.default.number,s.default.string])},a.defaultProps={bodyClassName:"",burgerBarClassName:"",burgerButtonClassName:"",className:"",crossButtonClassName:"",crossClassName:"",disableAutoFocus:!1,disableCloseOnEsc:!1,htmlClassName:"",id:"",itemClassName:"",itemListClassName:"",menuClassName:"",morphShapeClassName:"",noOverlay:!1,noTransition:!1,onStateChange:function(){},outerContainerId:"",overlayClassName:"",pageWrapId:"",styles:{},width:300,onIconHoverChange:function(){},itemListElement:"nav"},a},e.exports=t.default},66432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(14126),a=(n=o)&&n.__esModule?n:{default:n};t.default=(0,a.default)({}),e.exports=t.default},6830:(e,t,r)=>{"use strict";var n=r(41838);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},59479:(e,t,r)=>{e.exports=r(6830)()},41838:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},77678:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(1024),o=r.n(n),a=r(99860),i=r.n(a);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){var t,r;function n(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},a.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},a.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o().createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},n}(o().Component);l.displayName="ReCAPTCHA",l.propTypes={sitekey:i().string.isRequired,onChange:i().func,grecaptcha:i().object,theme:i().oneOf(["dark","light"]),type:i().oneOf(["image","audio"]),tabindex:i().number,onExpired:i().func,onErrored:i().func,size:i().oneOf(["compact","normal","invisible"]),stoken:i().string,hl:i().string,badge:i().oneOf(["bottomright","bottomleft","inline"])},l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var u=r(9657),d=r.n(u),f=r(8679),p=r.n(f);function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}var m={},g=0;var y="onloadcallback";const v=(b=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+y+"&render=explicit"},w=(w={callbackName:y,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){var r,o;function a(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}o=t,(r=a).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var i=a.prototype;return i.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+g++),this.__scriptLoaderID},i.setupScriptURL=function(){return this.__scriptURL="function"==typeof b?b():b,this.__scriptURL},i.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},i.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=m[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[w.callbackName]},i.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=w,o=n.globalName,a=n.callbackName,i=n.scriptId;if(o&&void 0!==window[o]&&(m[t]={loaded:!0,observers:{}}),m[t]){var s=m[t];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},m[t]={loaded:!1,observers:c};var l=document.createElement("script");for(var u in l.src=t,l.async=!0,w.attributes)l.setAttribute(u,w.attributes[u]);i&&(l.id=i);var d=function(e){if(m[t]){var r=m[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=m[t];e&&(e.loaded=!0,d((function(t){return!a&&(t(e),!0)})))},l.onerror=function(){var e=m[t];e&&(e.errored=!0,d((function(t){return t(e),!0})))},document.body.appendChild(l)},i.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===w.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=m[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===w.removeOnUnmount&&delete m[e])},i.render=function(){var t=w.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=o,(0,n.createElement)(e,a)},a}(n.Component),o=(0,n.forwardRef)((function(e,t){return(0,n.createElement)(r,h({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:d().func},p()(o,e)})(l);var b,w;const E=v},93485:(e,t,r)=>{"use strict";var n=r(34072);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},99860:(e,t,r)=>{e.exports=r(93485)()},34072:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[183],{73183:(e,t,n)=>{n.r(t),n.d(t,{app:()=>Wn,chooseDocument:()=>ot.Z,default:()=>Hn});var r=n(59713),o=n.n(r),a=n(52540),i=n(45697),c=n.n(i),s=n(50600),u=n(87533),l=n(44448),d=n(22731),f=n(19743),p=n(45430),h=n(27023),m=n(81749),y=n(13025),v=n(36498),g=n(65378),b=n(23369),w=n(1024),O=n.n(w),x=n(79311),P=n(1317),j=n(74806),S=n(50558),E="docs/create/OPEN_DIALOG",A="docs/create/FILES_SELECTED",C="docs/path/LOAD_BREADCRUMBS",k="docs/path/SET_BREADCRUMBS",Z="docs/path/SET_SEARCH_MODE",D=function(e){return{type:k,payload:{breadcrumbs:e}}},F=n(20247),N=n(63038),L=n.n(N),T=n(29441),R=/^\/docs\/?$/;const _=function(e){return R.test(e)};var M=n(38205),I=n(2977),U=n(88601),B=n(85893);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const W=(0,M.Zz)((function(e){var t=e.embedded,n=e.resetSearchMode,r=e.theme,o=e.pathPrefix,a=e.breadcrumbsInfo;return(0,B.jsx)(I.Z,H(H({},t?{backgroundColor:U.Z.color("paper")({theme:r})}:{}),{},{onClick:function(e){""===e.path&&n()},pathPrefix:o,breadcrumbsInfo:a}))}));function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V=function(e){return(0,B.jsx)("span",q({},e))};const Y=(0,M.Zz)((function(e){var t=e.embedded,n=e.navigate,r=e.resetSearchMode,o=e.theme,a=e.pathPrefix,i=e.breadcrumbsInfo;return(0,B.jsx)(I.Z,q(q({},t?{backgroundColor:U.Z.color("paper")({theme:o})}:{}),{},{onClick:function(e){""===e.path&&r(),n("/docs/".concat(e.path))},linkComp:V,pathPrefix:a,breadcrumbsInfo:i}))}));var G={},K=function(e){return{pathPrefix:"/docs",breadcrumbsInfo:e.docs.path.breadcrumbs,embedded:e.input.embedded}},X=(0,S.connect)(K,G)((0,j.ZP)(W)),J=(0,S.connect)(K,G)((0,j.ZP)(Y));const Q=(0,F.U)({routerless:J,router:X});var ee="docs/list/CHANGE_LIST_PARENT",te="docs/list/CHANGE_SELECTION",ne="docs/list/CHANGE_SEARCH_FORM_COLLAPSED",re=n(50258),oe=n(88162),ae={"dms-create-folder":(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,36340))})),"dms-create-domain":(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,67210))})),"dms-edit":(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,90100))})),"dms-move":(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,4505))})),delete:(0,w.lazy)((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,96954))}))};const ie=l.Z.actionFactory(ae);var ce=n(35997);function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const ue=function(e){var t=e.instanceCount,n=e.directory,r=e.onChange,a=e.path,i=(0,w.useRef)(),c=ce.Z.usePrevious(t);(0,w.useEffect)((function(){i.current&&t>c&&i.current.click()}));return(0,B.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"file",ref:i,style:{display:"none"},onChange:function(e){var t=e.target.files;t&&t.length>0&&r&&r(a,t,n),e.target.value=null},multiple:!0},n?{webkitdirectory:"true",directory:"true"}:{}))};var le={onChange:function(e,t,n){return{type:A,payload:{location:e,files:t,isDirectory:n}}}};const de=(0,F.U)((0,S.connect)((function(e){return{instanceCount:e.docs.create.dialog.instanceCount,directory:e.docs.create.dialog.directory}}),le)(ue));var fe,pe,he,me,ye=n(28655),ve=n.n(ye),ge=n(7281),be=M.ZP.div.withConfig({displayName:"StyledContentWrapper"})(fe||(fe=ve()(["\n display: flex;\n align-items: center;\n"]))),we=M.ZP.span.withConfig({displayName:"StyledIconWrapper"})(pe||(pe=ve()(["\n font-size: ",";\n display: inline-block;\n margin-right: ",";\n"])),ge.Z.font(1),ge.Z.space(-2)),Oe=O().lazy((function(){return Promise.all([n.e(343),n.e(614),n.e(85)]).then(n.bind(n,77840))}));const xe=function(e){var t=e.domainTypes,n=e.rootNodes,r=e.navigationStrategy,o=e.changeListParent,a=e.onSearchChange,i=e.emitAction,c=e.openFileDialog,s=e.limit,u=e.searchFormType,l=e.selectionStyle,d=e.selection,f=e.selectionFilterFn,p=e.getCustomLocation,h=e.disableViewPersistor,m=e.getListFormName,y=e.domainDetailFormName,v=e.folderDetailFormName,g=e.showActions,b=e.scrollBehaviour,O=e.sortable,x=e.searchMode,P=e.openResource,j=e.searchFormCollapsed,S=e.locale,E=e.changeSelection,A=e.changeSearchFormCollapsed,C=e.params,k=e.navigate,Z=e.path,D=(0,w.useReducer)((function(e){return e+1}),0),F=L()(D,2),N=F[0],R=F[1],M="entity-list-".concat(N),I=(0,w.useState)([]),U=L()(I,2),z=U[0],H=U[1],W=d||z,$=(0,w.useMemo)((function(){return function(e){if(e&&e.model){var t=e.model.charAt(0).toUpperCase()+e.model.slice(1),n=e.key;return{model:"Docs_list_item",key:"".concat(t,"/").concat(n)}}return null}(C)}),[C]),q=!$&&n?n.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})):null,V=(0,w.useMemo)((function(){return m?m($,q):function(e,t){return e?"Docs_list_item":t?"Root_docs_list_item_specific":"Root_docs_list_item"}($,q)}),[$,q,m]),Y=(0,w.useRef)(!1),G=(0,w.useRef)(x),K=(0,w.useRef)(Z);G.current=x,K.current=Z,(0,w.useEffect)((function(){return Y.current=!0,function(){return Y.current=!1}})),(0,w.useEffect)((function(){o($),H([])}),[$,o]);var X=function(e){H(e),E(e)},J=function(){if(!T.Z.viewInfoSelector("search").store){var e=T.Z.viewInfoSelector(M).store;T.Z.persistViewInfo("search",{store:e})}R()},Q=$||q?null:function(e){return Array.isArray(e)&&e.length>0?"exists(relDomain_type where IN(unique_id, ".concat(e.map((function(e){return'"'.concat(e,'"')})).join(","),"))"):null}(t),ee=function(){if(!h)return _(Z)?T.Z.viewInfoSelector("search").store:null}();return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(w.Suspense,{fallback:he||(he=(0,B.jsx)(re.Z,{})),children:(0,B.jsx)(Oe,{id:"documents",entityName:"Docs_list_item",formName:V,searchListFormName:"Search_docs_list_item",limit:s||25,onRowClick:function(e){var t=e.id;x&&_(Z)&&J();var n=t.split("/"),r=L()(n,2),o=r[0],a=r[1],i=p?p(o,a):function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return"/docs/doc/".concat(t,"/detail");default:throw new Error("Unexpected model: ".concat(e))}}(o,a);i?P&&"Resource"===o?P(i):k(i):X([t])},searchFormPosition:"left",searchFormType:u||"admin",parent:$,onSearchChange:function(e){Y.current&&(e.query&&e.query.hasUserChanges&&J(),a(e))},store:ee,onStoreCreate:function(e){h||T.Z.persistViewInfo(M,{store:e})},cellRenderers:{"dms-label-with-icon":function(e,t,n){return(0,B.jsxs)(be,{children:[(0,B.jsx)(we,{children:(0,B.jsx)(oe.Z,{icon:e.icon})}),(0,B.jsx)("span",{children:n(t.children[0])})]})},"dms-actions":function(e,t,n){return(0,B.jsx)(be,{children:t.children.filter((function(t){return!t.dmsEntityModel||t.dmsEntityModel===e.type})).map((function(e){return n(e)}))})}},emitAction:i,actionAppComponent:ie,contextParams:{detailFormNames:{Domain:y,Folder:v}},customActions:{"upload-document":function(e,t,n,r,o,a,i){c(!1,a,i)},"upload-directory":function(e,t,n,r,o,a,i){c(!0,a,i)}},navigationStrategy:r,tql:Q,keys:q,selectionStyle:l||"multi_explicit",onSelectChange:X,selection:W,selectionFilterFn:f,showActions:g,sortable:O,searchFormCollapsed:j,scrollBehaviour:b,onSearchFormCollapsedChange:A,locale:S},M)}),me||(me=(0,B.jsx)(de,{}))]})};var Pe={changeListParent:function(e){return{type:ee,payload:{parent:e}}},changeSelection:function(e){return{type:te,payload:{selection:e}}},changeSearchFormCollapsed:function(e){return{type:ne,payload:{collapsed:e}}}};const je=(0,F.U)((0,S.connect)((function(e){return{domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,limit:e.input.listLimit,searchFormType:e.input.searchFormType,selectionStyle:e.input.selectionStyle,selectionFilterFn:e.input.selectionFilterFn,getCustomLocation:e.input.getCustomLocation,disableViewPersistor:e.input.disableViewPersistor,getListFormName:e.input.getListFormName,domainDetailFormName:e.input.domainDetailFormName,folderDetailFormName:e.input.folderDetailFormName,showActions:e.input.showActions,sortable:e.input.sortable,openResource:e.input.openResource,searchFormCollapsed:e.input.searchFormCollapsed,scrollBehaviour:e.input.scrollBehaviour,selection:e.input.selection,locale:e.intl.locale}}),Pe)((0,j.ZP)(xe)));var Se,Ee,Ae=M.ZP.div.withConfig({displayName:"StyledDocumentViewWrapper"})(Se||(Se=ve()(["\n height: 100%;\n background-color: ",";\n padding-left: ",";\n overflow-y: hidden;\n"])),U.Z.color("paper"),ge.Z.space(.5)),Ce=O().lazy((function(){return Promise.all([n.e(343),n.e(614),n.e(847),n.e(85)]).then(n.bind(n,82445))}));const ke=function(e){var t=e.breadcrumbs,n=e.formName,r=e.navigationStrategy,o=e.locale,a=e.emitAction,i=e.navigate,c=e.params;return(0,B.jsx)(Ae,{children:(0,B.jsx)(w.Suspense,{fallback:Ee||(Ee=(0,B.jsx)(re.Z,{})),children:(0,B.jsx)(Ce,{entityName:"Resource",entityId:c.key,formName:n||"DmsResource",mode:"update",actionAppComponent:ie,navigationStrategy:r,emitAction:a,onEntityDeleted:function(){var e=t.slice().reverse().find((function(e){return"list"===e.type})),n="/docs/".concat(e.path);i(n)},locale:o})})})};var Ze={emitAction:function(e){return s.Z.dispatchEmittedAction(e)}};const De=(0,F.U)((0,S.connect)((function(e){return{breadcrumbs:e.docs.path.breadcrumbs,formName:e.input.documentDetailFormName,locale:e.intl.locale}}),Ze)((0,j.ZP)(ke)));const Fe=function(e){var t=e.params,n=e.navigationStrategy,r=e.handleSearchChange,o=e.emitAction,a=e.openFileDialog,i=e.searchMode,c=e.docsKey,s=t.model,u=t.view;return"doc"===s&&"detail"===u?(0,B.jsx)(De,{navigationStrategy:n}):(0,B.jsx)(je,{navigationStrategy:n,onSearchChange:r,emitAction:o,openFileDialog:a,searchMode:i},c)};var Ne=n(99752);const Le=function(e){var t,n,r=e.navigationStrategy,o=e.handleSearchChange,a=e.emitAction,i=e.openFileDialog,c=e.searchMode,s=e.docsKey;return(0,B.jsxs)(Ne.rs,{children:[(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs/doc/:key/detail",render:function(){return t||(t=(0,B.jsx)(De,{navigationStrategy:r}))}}),(0,B.jsx)(Ne.AW,{exact:!0,path:["/docs/:model/:key/list","/docs"],render:function(){return n||(n=(0,B.jsx)(je,{navigationStrategy:r,onSearchChange:o,emitAction:a,openFileDialog:i,searchMode:c},s))}})]})},Te=(0,F.U)({routerless:Fe,router:Le});var Re,_e,Me,Ie=n(11347),Ue=M.ZP.div.withConfig({displayName:"StyledWrapper"})(Re||(Re=ve()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n ","\n width: 100%;\n"])),(function(e){return"inline"===e.scrollBehaviour&&"height: 100%;"})),Be=M.ZP.div.withConfig({displayName:"StyledContent"})(_e||(_e=ve()(["\n grid-area: content;\n ","\n ","\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-x: hidden;"}),Ie.C),ze=M.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(Me||(Me=ve()(["\n grid-area: breadcrumbs;\n ","\n"])),(function(e){return e.noLeftPadding&&"\n > div {\n padding-left: 0;\n }\n "}));const He=function(e){var t=e.navigate,n=e.path,r=e.searchMode,o=e.navigationStrategy,a=e.setSearchMode,i=e.loadBreadcrumbs,c=e.emitAction,s=e.openFileDialog,u=e.noLeftPadding,l=e.scrollBehaviour,d=e.listenHistory,p=(0,w.useReducer)((function(e){return e+1}),0),h=L()(p,2),m=h[0],y=h[1],v=(0,w.useRef)(r);v.current=r,(0,w.useEffect)((function(){i(n)})),(0,w.useEffect)((function(){return d((function(e,t){_(n)&&r&&"POP"===t&&g()}))}));var g=function(){v.current&&(T.Z.clearPersistedViews(),a(!1),i(n),y())},b="docs-view-".concat(m);return(0,B.jsxs)(Ue,{scrollBehaviour:l,children:[(0,B.jsx)(f.Z.ErrorBoundary,{children:(0,B.jsx)(ze,{noLeftPadding:u,children:(0,B.jsx)(Q,{resetSearchMode:g})})}),(0,B.jsx)(Be,{scrollBehaviour:l,children:(0,B.jsx)(Te,{navigationStrategy:o,handleSearchChange:function(e){e.query&&e.query.hasUserChanges?(a(!0),t("/docs/"),i(n)):_(n)&&g()},emitAction:c,openFileDialog:s,searchMode:r,docsKey:b})})]})};var We={loadBreadcrumbs:function(e){return{type:C,payload:{location:e}}},setSearchMode:function(e){return{type:Z,payload:{searchMode:e}}},emitAction:function(e){return s.Z.dispatchEmittedAction(e)},openFileDialog:function(e,t,n){return{type:E,payload:{directory:e,onSuccess:t,onError:n}}}};const $e=(0,F.U)((0,S.connect)((function(e){return{searchMode:e.docs.path.searchMode,navigationStrategy:e.input.navigationStrategy,noLeftPadding:e.input.noLeftPadding,scrollBehaviour:e.input.scrollBehaviour}}),We)((0,j.ZP)(He)));var qe,Ve,Ye;const Ge=(0,P.w)((function(e){var t=e.handleNotifications,n=e.rootPath,r=e.navigate,o=e.path;return(0,w.useEffect)((function(){(!o||"/"===o||"/docs"===o)&&n!==o&&r(n)}),[n,o,r]),(0,B.jsxs)(B.Fragment,{children:[t&&(qe||(qe=(0,B.jsx)(h.Z.Notifications,{}))),Ve||(Ve=(0,B.jsx)(x.Z,{})),Ye||(Ye=(0,B.jsx)($e,{}))]})}));var Ke,Xe,Je;const Qe=function(e){var t=e.rootPath,n=e.handleNotifications;return(0,B.jsxs)(B.Fragment,{children:[n&&(Ke||(Ke=(0,B.jsx)(h.Z.Notifications,{}))),Xe||(Xe=(0,B.jsx)(x.Z,{})),Je||(Je=(0,B.jsx)($e,{})),(0,B.jsx)(Ne.AW,{exact:!0,path:"/",children:(0,B.jsx)(Ne.l_,{to:t})}),"/docs"!==t&&(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs",children:(0,B.jsx)(Ne.l_,{to:t})})]})};var et,tt,nt;const rt=function(e){var t=e.rootPath,n=e.handleNotifications,r=e.history;return(0,B.jsxs)(Ne.F0,{history:r,children:[n&&(et||(et=(0,B.jsx)(h.Z.Notifications,{}))),tt||(tt=(0,B.jsx)(x.Z,{})),nt||(nt=(0,B.jsx)($e,{})),(0,B.jsx)(Ne.AW,{exact:!0,path:"/",children:(0,B.jsx)(Ne.l_,{to:t})}),"/docs"!==t&&(0,B.jsx)(Ne.AW,{exact:!0,path:"/docs",children:(0,B.jsx)(Ne.l_,{to:t})})]})};var ot=n(91073),at=n(15857),it=n(87757),ct=n.n(it),st=n(34857);function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dt=o()({},E,(function(e,t){var n=t.payload,r=n.directory,o=n.onSuccess,a=n.onError;return lt(lt({},e),{},{dialog:{instanceCount:e.dialog.instanceCount+1,directory:r,onSuccess:o,onError:a}})})),ft={dialog:{instanceCount:0,directory:!1,onSuccess:null,onError:null}};var pt=n(81719),ht=n(44759),mt=n(28721),yt=n(80722);function vt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bt=ct().mark(jt),wt=ct().mark(St),Ot=ct().mark(Et),xt=function(e){return e.docs.create.dialog},Pt=function(e,t){return e.intl.messages[t]};function jt(e){var t,n,r,o,a,i,c,s,u,l,d,f;return ct().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.payload,n=t.location,r=t.files,o=t.isDirectory,p.next=3,(0,st.RE)(mt.Z);case 3:return a=p.sent,i="client.docs-browser.uploadInProgress",o?i="client.docs-browser.uploadInProgressDirectory":r.length>1&&(i="client.docs-browser.uploadInProgressMultiple"),p.next=8,(0,st.gz)(h.Z.blockingInfo(a,i,null));case 8:return p.next=10,(0,st.Ys)(xt);case 10:return c=p.sent,s=c.onSuccess,u=c.onError,p.prev=13,p.next=16,(0,st.RE)(St,n,r);case 16:if(403!==(l=p.sent).status){p.next=31;break}return p.next=20,(0,st.gz)(h.Z.removeBlockingInfo(a));case 20:return p.t0=u,p.next=23,(0,st.Ys)(Pt,"client.entity-detail.saveAbortedTitle");case 23:return p.t1=p.sent,p.next=26,(0,st.Ys)(Pt,"client.docs-browser.failedNoPermission");case 26:p.t2=p.sent,p.t3={title:p.t1,message:p.t2},(0,p.t0)(p.t3),p.next=42;break;case 31:return d=[{type:"entity-create-event",payload:{entities:l.body.items.filter((function(e){return 201===e.status})).map((function(e){return{entityName:e.bean.model,key:e.bean.key}}))}}],p.next=34,(0,st.gz)(h.Z.removeBlockingInfo(a));case 34:return f=o?"client.docs-browser.uploadSuccessfulDirectory":"client.docs-browser.uploadSuccessful",p.t4=s,p.next=38,(0,st.Ys)(Pt,f);case 38:p.t5=p.sent,p.t6=d,p.t7={title:p.t5,remoteEvents:p.t6},(0,p.t4)(p.t7);case 42:p.next=55;break;case 44:return p.prev=44,p.t8=p.catch(13),ht.Z.logError("Failed to upload files",p.t8),p.next=49,(0,st.gz)(h.Z.removeBlockingInfo(a));case 49:return p.t9=u,p.next=52,(0,st.Ys)(Pt,"client.docs-browser.uploadFailed");case 52:p.t10=p.sent,p.t11={title:p.t10},(0,p.t9)(p.t11);case 55:case"end":return p.stop()}}),bt,null,[[13,44]])}function St(e,t){var n,r,o,a,i,c,s;return ct().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(n=(0,yt.Z)(e)){u.next=3;break}return u.abrupt("return");case 3:r=new FormData,o=vt(t);try{for(o.s();!(a=o.n()).done;)i=a.value,r.append("files[]",i)}catch(e){o.e(e)}finally{o.f()}return c="documents/".concat(n.model,"/").concat(n.key),s={method:"POST",body:r,acceptedStatusCodes:[403]},u.next=10,(0,st.RE)(pt.Z.requestSaga,c,s);case 10:return u.abrupt("return",u.sent);case 11:case"end":return u.stop()}}),wt)}function Et(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.ib)(A,jt)]);case 2:case"end":return e.stop()}}),Ot)}var At=ct().mark(Ct);function Ct(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(Et)]);case 2:case"end":return e.stop()}}),At)}const kt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft,t=arguments.length>1?arguments[1]:void 0,n=dt[t.type];return n?n(e,t):e};var Zt=ct().mark(Lt),Dt=ct().mark(Tt),Ft=ct().mark(Rt),Nt=ct().mark(_t);function Lt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onListParentChange",t.parent));case 3:case"end":return n.stop()}}),Zt)}function Tt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onSelectChange",t.selection));case 3:case"end":return n.stop()}}),Dt)}function Rt(e){var t;return ct().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,st.gz)(p.Z.fireExternalEvent("onSearchFormCollapsedChange",t.collapsed));case 3:case"end":return n.stop()}}),Ft)}function _t(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(ee,Lt),(0,st.Fm)(te,Tt),(0,st.Fm)(ne,Rt)]);case 2:case"end":return e.stop()}}),Nt)}var Mt,It=n(81770),Ut=n(30081);function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ht=(Mt={},o()(Mt,Ut.qh,(function(e,t){var n=t.payload,r=n.selection,o=n.onSuccess,a=n.onError;return zt(zt({},e),{},{input:{selection:r,onSuccess:o,onError:a}})})),o()(Mt,Ut.FV,It.Z.singleTransferReducer("isWaiting")),o()(Mt,Ut.F$,(function(){return zt({},Wt)})),Mt),Wt={isWaiting:!1,input:{selection:null,onSuccess:null,onError:null}};var $t=n(6756),qt=ct().mark(Xt),Vt=ct().mark(Jt),Yt=ct().mark(Qt),Gt=function(e){return e.docs.move.input},Kt=function(e,t){return e.intl.messages[t]};function Xt(e){var t,n,r,o,a,i;return ct().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n="documents/move",r={method:"POST",acceptedStatusCodes:[400,403],body:{targetEntityKey:t.target,selectedEntityKeys:t.selected}},c.next=5,(0,st.gz)(Ut.p0(!0));case 5:return c.next=7,(0,st.RE)(pt.Z.requestSaga,n,r);case 7:if(204!==(o=c.sent).status){c.next=13;break}return c.next=11,(0,st.RE)(Jt);case 11:c.next=20;break;case 13:return c.next=15,(0,st.gz)(Ut.p0(!1));case 15:return i="client.actions.dms-move.failed.message","VALIDATION_FAILED"===(null===(a=o.body)||void 0===a?void 0:a.errorCode)&&(i=$t.Z.getErrorCompact(o.body.errors)),403===o.status&&(i="client.docs-browser.failedNoPermission"),c.next=20,(0,st.gz)(h.Z.toaster({type:"error",title:"client.actions.dms-move.failed.title",body:i}));case 20:case"end":return c.stop()}}),qt)}function Jt(){var e,t,n,r;return ct().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,st.Ys)(Gt);case 2:return e=o.sent,t=e.selection,n=e.onSuccess,r=[{type:"entity-update-event",payload:{entities:t.ids.map((function(e){return{entityName:"Docs_list_item",key:e}}))}}],o.t0=n,o.next=9,(0,st.Ys)(Kt,"client.docs-browser.moveSuccessful");case 9:return o.t1=o.sent,o.t2=r,o.t3={title:o.t1,remoteEvents:o.t2},(0,o.t0)(o.t3),o.next=15,(0,st.gz)(Ut.xv());case 15:case"end":return o.stop()}}),Vt)}function Qt(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(Ut.uI,Xt)]);case 2:case"end":return e.stop()}}),Yt)}var en=ct().mark(tn);function tn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(Qt)]);case 2:case"end":return e.stop()}}),en)}const nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,t=arguments.length>1?arguments[1]:void 0,n=Ht[t.type];return n?n(e,t):e};var rn,on=(rn={},o()(rn,k,It.Z.singleTransferReducer("breadcrumbs")),o()(rn,Z,It.Z.singleTransferReducer("searchMode")),rn),an={breadcrumbs:[],searchMode:!1};var cn=ct().mark(hn),sn=ct().mark(mn),un=ct().mark(yn),ln=ct().mark(vn),dn=function(e,t){return e.intl.messages[t]||t},fn=function(e){return e.docs.path},pn=function(e){return e.input.rootNodes};function hn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.Ys)(dn,"client.docs-browser.breadcrumbs.start");case 2:return e.t0=e.sent,e.t1={display:e.t0,path:"",type:"list"},e.next=6,(0,st.Ys)(dn,"client.docs-browser.breadcrumbs.searchResults");case 6:return e.t2=e.sent,e.t3={display:e.t2,path:"",type:"list"},e.abrupt("return",[e.t1,e.t3]);case 9:case"end":return e.stop()}}),cn)}function mn(e){var t,n,r,o,a,i;return ct().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload.location,n=(0,yt.Z)(t),c.next=4,(0,st.Ys)(fn);case 4:if(!c.sent.searchMode||n){c.next=11;break}return c.next=8,(0,st.RE)(hn);case 8:r=c.sent,c.next=21;break;case 11:return o=n?"documents/".concat(n.model,"/").concat(n.key,"/breadcrumbs"):"documents/breadcrumbs",c.next=14,(0,st.RE)(yn);case 14:return c.t0=c.sent,c.t1={rootnodes:c.t0},a={queryParams:c.t1},c.next=19,(0,st.RE)(pt.Z.requestSaga,o,a);case 19:i=c.sent,r=i.body.breadcrumbs;case 21:return c.next=23,(0,st.gz)(D(r));case 23:case"end":return c.stop()}}),sn)}function yn(){var e;return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,st.Ys)(pn);case 2:return e=t.sent,t.abrupt("return",Array.isArray(e)&&e.length>0?e.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})).join(","):null);case 4:case"end":return t.stop()}}),un)}function vn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(C,mn)]);case 2:case"end":return e.stop()}}),ln)}var gn=ct().mark(bn);function bn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(vn)]);case 2:case"end":return e.stop()}}),gn)}const wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:an,t=arguments.length>1?arguments[1]:void 0,n=on[t.type];return n?n(e,t):e};var On,xn=n(40602),Pn=(On={},o()(On,xn.RK,It.Z.singleTransferReducer("path")),o()(On,xn.Sb,It.Z.singleTransferReducer("params")),On),jn={path:"",params:{}};var Sn=n(96801),En=ct().mark(Cn),An=ct().mark(kn);function Cn(e){var t,n;return ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.payload.path,n=Sn.Z.extractParamsFromPath("/docs/:model/:key/:view(list|detail)",t)||{},r.next=4,(0,st.gz)(xn.PX(n));case 4:case"end":return r.stop()}}),En)}function kn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.Fm)(xn.RK,Cn)]);case 2:case"end":return e.stop()}}),An)}var Zn=ct().mark(Dn);function Dn(){return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,st.$6)([(0,st.rM)(kn)]);case 2:case"end":return e.stop()}}),Zn)}const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jn,t=arguments.length>1?arguments[1]:void 0,n=Pn[t.type];return n?n(e,t):e},Nn={docs:(0,at.UY)({path:wn,create:kt,move:nn,routing:Fn})};var Ln=[bn,Ct,_t,tn,Dn];function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _n="docs-browser",Mn=["onListParentChange","openResource","onSelectChange","onSearchFormCollapsedChange"],In=function(e,t){return e.intl.messages[t]||t},Un=function(e){var t=e.routerType,n=e.store,r=e.rootPath,o=e.handleNotifications;if("routerless"===t)return(0,B.jsx)(Ge,{rootPath:r,handleNotifications:o});if("inherit"===t)return(0,B.jsx)(Qe,{rootPath:r,handleNotifications:o});var i=function(e){return(0,a.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=In(r,"client.common.ok"),a=In(r,"client.common.cancel"),i=h.Z.confirm("",t,o,a,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(i)}})}(n);return(0,B.jsx)(rt,{history:i,rootPath:r,handleNotifications:o})},Bn=function(e,t,n,r){var o=u.Z.createStore(Nn,Ln,Rn(Rn({},{scrollBehaviour:"inline"}),t),_n);b.Z.setInputEnvs(t),p.Z.addToStore(o,(function(e){return u.Z.getEvents(Mn,e.input)})),s.Z.addToStore(o),l.Z.dynamicActionsAddToStore(o),f.Z.addToStore(o,!0,["console","remote","notification"]);var a=!n.emitAction;h.Z.addToStore(o,a),d.Z.addToStore(o);var i=Array.isArray(t.rootNodes)&&1===t.rootNodes.length&&"Resource"!==t.rootNodes[0].entityName?t.rootNodes[0]:null,c=i?"/docs/".concat(i.entityName.toLowerCase(),"/").concat(i.key,"/list"):"/docs",m=Un({routerType:t.routerType,store:o,rootPath:c,handleNotifications:a});return u.Z.createApp(_n,m,o,{input:t,events:n,actions:[(0,xn.c4)(t.initialLocation)],publicPath:r,textResourceModules:["component","common","actions","entity-list","entity-detail",_n]})},zn=function(e){return u.Z.useApp({initApp:Bn,props:e,packageName:_n,externalEvents:Mn}).component};zn.propTypes=Rn({routerType:c().oneOf(["standalone","inherit","routerless"]),navigationStrategy:c().object,domainTypes:c().arrayOf(c().string),rootNodes:c().arrayOf(c().shape({entityName:c().string,key:c().string})),initialLocation:c().string,listLimit:c().number,documentDetailFormName:c().string,searchFormType:m.b,selectionStyle:y.l,selectionFilterFn:c().func,selection:c().arrayOf(c().string),scrollBehaviour:v.az,getListFormName:c().func,disableViewPersistor:c().bool,getCustomLocation:c().func,businessUnit:c().string,searchFormCollapsed:c().bool,backendUrl:c().string,appContext:g.Z.propTypes},Mn.reduce((function(e,t){return e[t]=c().func,e}),{}));const Hn=zn;var Wn=u.Z.createBundleableApp(_n,Bn,zn)},30081:(e,t,n)=>{n.d(t,{F$:()=>i,FV:()=>a,j2:()=>c,p0:()=>u,qh:()=>r,uI:()=>o,w6:()=>s,xv:()=>l});var r="docs/move/INITIALIZE",o="docs/move/MOVE_ELEMENTS",a="docs/move/SET_WAITING",i="docs/move/CLOSE",c=function(e,t,n){return{type:r,payload:{selection:e,onSuccess:t,onError:n}}},s=function(e,t){return{type:o,payload:{target:e,selected:t}}},u=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:a,payload:{isWaiting:e}}},l=function(){return{type:i}}},40602:(e,t,n)=>{n.d(t,{PX:()=>i,RK:()=>r,Sb:()=>o,c4:()=>a});var r="docs/routing/NAVIGATE",o="docs/routing/SET_PARAMS",a=function(e){return{type:r,payload:{path:e||""}}},i=function(e){return{type:o,payload:{params:e}}}},80722:(e,t,n)=>{n.d(t,{Z:()=>a});var r=/^\/docs\/doc\/(\d+)\/detail$/,o=/^\/docs\/(domain|folder)\/(\d+)\/list$/;const a=function(e){return function(e){var t=r.exec(e);return t&&t.length>=2?{model:"Resource",key:t[1]}:null}(e)||function(e){var t=o.exec(e);return t&&t.length>=3?{model:t[1].charAt(0).toUpperCase()+t[1].slice(1),key:t[2]}:null}(e)}},1317:(e,t,n)=>{n.d(t,{C:()=>p,w:()=>f});var r=n(59713),o=n.n(r),a=n(50558),i=n(99752),c=n(40602),s=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={navigate:c.c4,listenHistory:function(){return function(){}}},f=(0,a.connect)((function(e){return{path:e.docs.routing.path,params:e.docs.routing.params}}),d),p=function(e){return function(t){var n=(0,i.TH)(),r=(0,i.k6)(),o=(0,i.UO)();return(0,s.jsx)(e,l(l({},t),{},{path:n.pathname,navigate:r.push,params:o,listenHistory:r.listen}))}}},20247:(e,t,n)=>{n.d(t,{U:()=>h});var r=n(59713),o=n.n(r),a=n(6479),i=n.n(a),c=n(50558),s=n(1317),u=n(85893),l=["compProviderRouterType"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e){return{compProviderRouterType:e.input.routerType}},h=function(e){var t=e.routerless,n=e.router,r=t?(0,s.w)(t):(0,s.w)(e),o=n?(0,s.C)(n):(0,s.C)(e);return(0,c.connect)(p)((function(e){var t=e.compProviderRouterType,n=i()(e,l);return"routerless"===t?(0,u.jsx)(r,f({},n)):(0,u.jsx)(o,f({},n))}))}},67092:(e,t)=>{t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},88536:(e,t,n)=>{t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(14149)),a=c(n(54545)),i=n(3074);function c(e){return e&&e.__esModule?e:{default:e}}t.createLocation=function(e,t,n,a){var c=void 0;"string"==typeof e?(c=(0,i.parsePath)(e)).state=t:(void 0===(c=r({},e)).pathname&&(c.pathname=""),c.search?"?"!==c.search.charAt(0)&&(c.search="?"+c.search):c.search="",c.hash?"#"!==c.hash.charAt(0)&&(c.hash="#"+c.hash):c.hash="",void 0!==t&&void 0===c.state&&(c.state=t));try{c.pathname=decodeURI(c.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+c.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(c.key=n),a?c.pathname?"/"!==c.pathname.charAt(0)&&(c.pathname=(0,o.default)(c.pathname,a.pathname)):c.pathname=a.pathname:c.pathname||(c.pathname="/"),c},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,a.default)(e.state,t.state)}},3074:(e,t)=>{t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e};var n=t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};t.stripBasename=function(e,t){return n(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},52540:(e,t,n)=>{var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(30670)),a=l(n(41143)),i=n(88536),c=n(3074),s=l(n(3405)),u=n(67092);function l(e){return e&&e.__esModule?e:{default:e}}var d="hashchange",f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,c.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c.stripLeadingSlash,decodePath:c.addLeadingSlash},slash:{encodePath:c.addLeadingSlash,decodePath:c.addLeadingSlash}},p=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},h=function(e){return window.location.hash=e},m=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)};t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(u.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,u.supportsGoWithoutReloadUsingHash)(),l=e.getUserConfirmation,y=void 0===l?u.getConfirmation:l,v=e.hashType,g=void 0===v?"slash":v,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",w=f[g],O=w.encodePath,x=w.decodePath,P=function(){var e=x(p());return(0,o.default)(!b||(0,c.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,c.stripBasename)(e,b)),(0,i.createLocation)(e)},j=(0,s.default)(),S=function(e){r(q,e),q.length=t.length,j.notifyListeners(q.location,q.action)},E=!1,A=null,C=function(){var e=p(),t=O(e);if(e!==t)m(t);else{var n=P(),r=q.location;if(!E&&(0,i.locationsAreEqual)(r,n))return;if(A===(0,c.createPath)(n))return;A=null,k(n)}},k=function(e){if(E)E=!1,S();else{j.confirmTransitionTo(e,"POP",y,(function(t){t?S({action:"POP",location:e}):Z(e)}))}},Z=function(e){var t=q.location,n=L.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var r=L.lastIndexOf((0,c.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(E=!0,M(o))},D=p(),F=O(D);D!==F&&m(F);var N=P(),L=[(0,c.createPath)(N)],T=function(e){return"#"+O(b+(0,c.createPath)(e))},R=function(e,t){(0,o.default)(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",r=(0,i.createLocation)(e,void 0,void 0,q.location);j.confirmTransitionTo(r,n,y,(function(e){if(e){var t=(0,c.createPath)(r),a=O(b+t);if(p()!==a){A=t,h(a);var i=L.lastIndexOf((0,c.createPath)(q.location)),s=L.slice(0,-1===i?0:i+1);s.push(t),L=s,S({action:n,location:r})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}}))},_=function(e,t){(0,o.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=(0,i.createLocation)(e,void 0,void 0,q.location);j.confirmTransitionTo(r,n,y,(function(e){if(e){var t=(0,c.createPath)(r),o=O(b+t);p()!==o&&(A=t,m(o));var a=L.indexOf((0,c.createPath)(q.location));-1!==a&&(L[a]=t),S({action:n,location:r})}}))},M=function(e){(0,o.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},I=function(){return M(-1)},U=function(){return M(1)},B=0,z=function(e){1===(B+=e)?(0,u.addEventListener)(window,d,C):0===B&&(0,u.removeEventListener)(window,d,C)},H=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=j.setPrompt(e);return H||(z(1),H=!0),function(){return H&&(H=!1,z(-1)),t()}},$=function(e){var t=j.appendListener(e);return z(1),function(){z(-1),t()}},q={length:t.length,action:"POP",location:N,createHref:T,push:R,replace:_,go:M,goBack:I,goForward:U,block:W,listen:$};return q}},3405:(e,t,n)=>{t.__esModule=!0;var r,o=n(30670),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(){var e=null,t=[];return{setPrompt:function(t){return(0,a.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):((0,a.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}}}]);