Changeset 2750706
- Timestamp:
- 07/01/2022 10:10:01 AM (3 years ago)
- Location:
- trunkrs-for-woocommerce/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunkrs-for-woocommerce/trunk/build/admin.asset.php ¶
r2637309 r2750706 1 <?php return array('dependencies' => array('wp-element'), 'version' => ' 013bcd16ca6ba14c16815ccc00796676');1 <?php return array('dependencies' => array('wp-element'), 'version' => 'f8467e38665a05814d643a18be9f4e4f'); -
TabularUnified trunkrs-for-woocommerce/trunk/build/admin.css ¶
r2591935 r2750706 1 1 .trwc-error{padding:0 !important}.trwc-error.indigo{border-left-color:#201047}.trwc-error .trwc-header{display:flex;align-items:center;padding:0 12px;border-bottom:1px solid #c3c4c7}.trwc-error .trwc-header>img{width:24px;height:32px;margin-right:6px}.trwc-error .trwc-header>h2{margin:0;font-size:14px}.trwc-error .trwc-content{display:block;padding:6px 12px}#wc_tr_shipment_side_box .postbox-header h2{justify-content:flex-start}#wc_tr_shipment_side_box .postbox-header h2 .tr-wc-admin-small-logo{margin-right:8px;width:24px;height:24px}#wc_tr_shipment_side_box .inside{padding:0;margin:0}#wc_tr_shipment_side_box .inside .wc-tr-shipment-details{margin:0;padding:12px}#wc_tr_shipment_side_box .inside .wc-tr-shipment-details.failed .tr-value{text-decoration:line-through}#wc_tr_shipment_side_box .inside .wc-tr-shipment-details p{margin:0}#wc_tr_shipment_side_box .inside .wc-tr-shipment-details .tr-canceled{color:#b32d2e}#wc_tr_shipment_side_box .inside .wc-tr-shipment-actions{display:flex;justify-content:space-between;margin:0;padding:12px;border-top:1px solid #ddd}#wc_tr_shipment_side_box .inside .wc-tr-shipment-actions.failed{justify-content:flex-end}#wc_tr_shipment_side_box .inside .wc-tr-shipment-actions .action-item{display:inline-flex;margin:0}#wc_tr_shipment_side_box .inside .wc-tr-shipment-actions .action-item .cancel-shipment{color:#b32d2e;line-height:2.15384615}#wc_tr_shipment_side_box .inside .wc-tr-shipment-actions .action-item .button{display:flex;align-items:center}#wc_tr_shipment_side_box .inside .wc-tr-shipment-actions .action-item .button span{display:block;height:16px;width:16px;padding-right:6px;font-size:16px} 2 2 .tr-wc-centeredContainer{display:flex;flex-direction:column;align-items:center} 3 .tr-wc-button{display:flex;align-items:center;height:50px;padding:14px 16px;font-size:16px;box-shadow:0 0 1px rgba(34,12,74,.12),0 1px 1px rgba(34,12,74,.12),0 2px 4px rgba(34,12,74,.08);border:none;border-radius:4px;-webkit-appearance:none;appearance:none;cursor:pointer;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:#220c4a;box-sizing:border-box;text-decoration:none !important;outline:none !important}.tr-wc-button:hover{color:#220c4a;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0px 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.tr-wc-button:disabled{box-shadow:none;cursor:default;pointer-events:none}.tr-wc-button.tr-wc-white{background-color:#fff}.tr-wc-button.tr-wc-white:disabled{background-color:#e0e0e0}.tr-wc-button.tr-wc-white:hover{background-color:#f5f5f5}.tr-wc-button.tr-wc-blue{background-color:#13d2fc}.tr-wc-button.tr-wc-blue:disabled{background-color:#c4f4fe}.tr-wc-button.tr-wc-blue:hover{background-color:#03b3d9}.tr-wc-button.tr-wc-green{background-color:#2ce27e}.tr-wc-button.tr-wc-green:disabled{background-color:#caf8df}.tr-wc-button.tr-wc-green:hover{background-color:#1ac165} 3 .tr-wc-button{display:flex;align-items:center;height:50px;padding:14px 16px;font-size:16px;box-shadow:0 0 1px rgba(34,12,74,.12),0 1px 1px rgba(34,12,74,.12),0 2px 4px rgba(34,12,74,.08);border:none;border-radius:4px;-webkit-appearance:none;appearance:none;cursor:pointer;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:#220c4a;box-sizing:border-box;text-decoration:none !important;outline:none !important}.tr-wc-button:hover{color:#220c4a;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0px 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.tr-wc-button:disabled{box-shadow:none;cursor:default;pointer-events:none}.tr-wc-button.tr-wc-white{background-color:#fff}.tr-wc-button.tr-wc-white:disabled{background-color:#e0e0e0}.tr-wc-button.tr-wc-white:hover{background-color:#f5f5f5}.tr-wc-button.tr-wc-blue{background-color:#13d2fc}.tr-wc-button.tr-wc-blue:disabled{background-color:#c4f4fe}.tr-wc-button.tr-wc-blue:hover{background-color:#03b3d9}.tr-wc-button.tr-wc-green{background-color:#2ce27e}.tr-wc-button.tr-wc-green:disabled{background-color:#caf8df}.tr-wc-button.tr-wc-green:hover{background-color:#1ac165}.tr-wc-button.tr-wc-button-small{height:40px;font-size:16px} 4 4 .tr-wc-logo{width:24px;padding:4px}.tr-wc-buttonText{font-size:16px;margin:0;padding-left:8px} 5 5 .tr-wc-progress-circular{-webkit-appearance:none;appearance:none;box-sizing:border-box;border:none;border-radius:50%;padding:.25em;color:currentColor;background-color:transparent;font-size:16px;overflow:hidden}.tr-wc-progress-circular::-webkit-progress-bar{background-color:transparent}.tr-wc-progress-circular:indeterminate{-webkit-mask-image:linear-gradient(transparent 50%, black 50%),linear-gradient(to right, transparent 50%, black 50%);mask-image:linear-gradient(transparent 50%, black 50%),linear-gradient(to right, transparent 50%, black 50%);-webkit-animation:tr-wc-progress-circular 6s infinite cubic-bezier(0.3, 0.6, 1, 1);animation:tr-wc-progress-circular 6s infinite cubic-bezier(0.3, 0.6, 1, 1)}:-ms-lang(x),.tr-wc-progress-circular:indeterminate{animation:none}.tr-wc-progress-circular:indeterminate::before,.tr-wc-progress-circular:indeterminate::-webkit-progress-value{content:"";display:block;box-sizing:border-box;margin-bottom:.25em;border-style:solid;border-color:transparent;border-top-color:currentColor;border-radius:50%;width:100% !important;height:100%;background-color:transparent;-webkit-animation:tr-wc-progress-circular-pseudo .75s infinite linear alternate;animation:tr-wc-progress-circular-pseudo .75s infinite linear alternate}.tr-wc-progress-circular:indeterminate::-moz-progress-bar{box-sizing:border-box;border:solid .25em transparent;border-top-color:currentColor;border-radius:50%;width:100%;height:100%;background-color:transparent;animation:tr-wc-progress-circular-pseudo .75s infinite linear alternate}.tr-wc-progress-circular:indeterminate::-ms-fill{animation-name:-ms-ring}@-webkit-keyframes tr-wc-progress-circular{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}12.5%{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-animation-timing-function:linear;animation-timing-function:linear}25%{-webkit-transform:rotate(630deg);transform:rotate(630deg)}37.5%{-webkit-transform:rotate(810deg);transform:rotate(810deg);-webkit-animation-timing-function:linear;animation-timing-function:linear}50%{-webkit-transform:rotate(1260deg);transform:rotate(1260deg)}62.5%{-webkit-transform:rotate(1440deg);transform:rotate(1440deg);-webkit-animation-timing-function:linear;animation-timing-function:linear}75%{-webkit-transform:rotate(1890deg);transform:rotate(1890deg)}87.5%{-webkit-transform:rotate(2070deg);transform:rotate(2070deg);-webkit-animation-timing-function:linear;animation-timing-function:linear}100%{-webkit-transform:rotate(2520deg);transform:rotate(2520deg)}}@keyframes tr-wc-progress-circular{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}12.5%{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-animation-timing-function:linear;animation-timing-function:linear}25%{-webkit-transform:rotate(630deg);transform:rotate(630deg)}37.5%{-webkit-transform:rotate(810deg);transform:rotate(810deg);-webkit-animation-timing-function:linear;animation-timing-function:linear}50%{-webkit-transform:rotate(1260deg);transform:rotate(1260deg)}62.5%{-webkit-transform:rotate(1440deg);transform:rotate(1440deg);-webkit-animation-timing-function:linear;animation-timing-function:linear}75%{-webkit-transform:rotate(1890deg);transform:rotate(1890deg)}87.5%{-webkit-transform:rotate(2070deg);transform:rotate(2070deg);-webkit-animation-timing-function:linear;animation-timing-function:linear}100%{-webkit-transform:rotate(2520deg);transform:rotate(2520deg)}}@-webkit-keyframes tr-wc-progress-circular-pseudo{0%{-webkit-transform:rotate(-30deg);transform:rotate(-30deg)}29.4%{border-left-color:transparent}29.41%{border-left-color:currentColor}64.7%{border-bottom-color:transparent}64.71%{border-bottom-color:currentColor}100%{border-left-color:currentColor;border-bottom-color:currentColor;-webkit-transform:rotate(225deg);transform:rotate(225deg)}}@keyframes tr-wc-progress-circular-pseudo{0%{-webkit-transform:rotate(-30deg);transform:rotate(-30deg)}29.4%{border-left-color:transparent}29.41%{border-left-color:currentColor}64.7%{border-bottom-color:transparent}64.71%{border-bottom-color:currentColor}100%{border-left-color:currentColor;border-bottom-color:currentColor;-webkit-transform:rotate(225deg);transform:rotate(225deg)}} 6 .tr-wc-connectionPanel{display:flex;flex-direction:column;width:700px;border:1px solid #e2e4e7;border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,.04);background-color:#fff}.tr-wc-connectionPanel .tr-wc-panelHeader{display:flex;align-items:center;flex:1;padding:16px 24px;border-bottom:1px solid #e2e4e7}.tr-wc-connectionPanel .tr-wc-panelHeader>p{margin:0;font-size:14px}.tr-wc-connectionPanel .tr-wc-panelContent{display:flex;justify-content:space-between;flex:1;padding:16px 24px}.tr-wc-connectionPanel .tr-wc-panelContent .tr-wc-connectionStatus>h3,.tr-wc-connectionPanel .tr-wc-panelContent .tr-wc-connectionStatus>p{margin:0}.tr-wc-connectionPanel .tr-wc-panelContent .tr-wc-connectionStatus>p{margin-top:8px} 7 .tr-wc-detailsPanel{display:flex;flex-direction:column;width:700px;border:1px solid #e2e4e7;border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,.04);background-color:#fff;margin-bottom:32px}.tr-wc-detailsPanel .tr-wc-panelHeader{display:flex;align-items:center;flex:1;padding:16px 24px;border-bottom:1px solid #e2e4e7}.tr-wc-detailsPanel .tr-wc-panelHeader>p{margin:0;font-size:14px}.tr-wc-detailsPanel .tr-wc-panelContent,.tr-wc-detailsPanel .tr-wc-panelFooter{padding:16px 24px}.tr-wc-detailsPanel .tr-wc-panelContent{display:flex;flex-direction:column;justify-content:space-between;flex:1}.tr-wc-detailsPanel .tr-wc-panelContent.tr-wc-extraPanel{border-top:1px solid #e2e4e7}.tr-wc-detailsPanel .tr-wc-panelContent .tr-wc-detailsPanel-connected{display:flex;align-items:center;margin-bottom:8px}.tr-wc-detailsPanel .tr-wc-panelContent .tr-wc-detailsPanel-connected span{display:flex;flex-direction:column}.tr-wc-detailsPanel .tr-wc-panelContent .tr-wc-detailsPanel-connected .tr-wc-checkVector{width:32px;margin-right:16px}.tr-wc-detailsPanel .tr-wc-panelContent .tr-wc-detailsPanel-connected h3{margin:0}.tr-wc-detailsPanel .tr-wc-panelContent h4{margin-bottom:4px}.tr-wc-detailsPanel .tr-wc-panelContent h4.tr-wc-switchLabel{margin:0}.tr-wc-detailsPanel .tr-wc-panelContent p{margin:0}.tr-wc-detailsPanel .tr-wc-panelContent p:last-child{margin-bottom:0}.tr-wc-detailsPanel .tr-wc-panelFooter{display:flex;justify-content:flex-end;border-top:1px solid #e2e4e7}.tr-wc-detailsPanel .tr-wc-panelFooter .tr-wc-buttonVector{width:16px;margin-right:8px;margin-top:1px} 6 .tr-wc-panelContainer{display:flex;flex-direction:column;width:700px;border:1px solid #e2e4e7;border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,.04);background-color:#fff;margin-bottom:32px}.tr-wc-panelHeader{display:flex;align-items:center;flex:1;padding:16px 24px;border-bottom:1px solid #e2e4e7}.tr-wc-panelHeader>p{margin:0;font-size:14px}.tr-wc-panelContent,.tr-wc-panelFooter{padding:16px 24px}.tr-wc-panelContent{display:flex;flex-direction:column;justify-content:space-between;flex:1}.tr-wc-panelFooter{display:flex;justify-content:flex-end;border-top:1px solid #e2e4e7}.tr-wc-panelFooter .tr-wc-buttonVector{width:16px;margin-right:8px;margin-top:1px} 7 .tr-wc-connectionPanelContent{flex-direction:row}.tr-wc-connectionStatus>h3,.tr-wc-connectionStatus>p{margin:0}.tr-wc-connectionStatus>p{margin-top:8px} 8 .tr-wc-buttonVector{width:16px;margin-right:8px;margin-top:1px}.tr-wc-detailsPanel-connected{display:flex;align-items:center;margin-bottom:8px}.tr-wc-detailsPanel-connected span{display:flex;flex-direction:column}.tr-wc-detailsPanel-connected .tr-wc-checkVector{width:32px;margin-right:16px}.tr-wc-detailsPanel-connected h3{margin:0}h4{margin-bottom:4px}h4.tr-wc-switchLabel{margin:0}p{margin:0}p:last-child{margin-bottom:0} 9 .tr-wc-switchContainer{display:flex;align-items:center}.tr-wc-switchContainer .tr-wc-switch{position:relative;width:48px;height:24px;background-color:#e0e0e0;border-radius:16px;cursor:pointer}.tr-wc-switchContainer .tr-wc-switch.tr-wc-switch-checked{background-color:#8000ff}.tr-wc-switchContainer .tr-wc-switch.tr-wc-switch-checked .tr-wc-switchKnob{left:24px;border-color:#8000ff}.tr-wc-switchContainer .tr-wc-switch.tr-wc-switch-disabled{cursor:default;pointer-events:none;background-color:#ccc}.tr-wc-switchContainer .tr-wc-switch.tr-wc-switch-disabled .tr-wc-switchKnob{border-color:#ccc;background-color:#f5f5f5}.tr-wc-switchContainer .tr-wc-switch .tr-wc-switchKnob{position:absolute;display:block;left:0;width:24px;height:24px;border:2px solid #ccc;border-radius:50%;background-color:#fff;box-sizing:border-box}.tr-wc-switchContainer .tr-wc-switch,.tr-wc-switchContainer .tr-wc-switchKnob{transition:background-color 250ms ease-out,border-color 250ms ease-out,left 175ms ease-out}.tr-wc-switchContainer .tr-wc-switchContent{margin-left:8px} 10 .tr-wc-settingsList{margin:0}.tr-wc-settingsList li:not(:first-child){margin-top:16px} 11 .tr-wc-iconButton-root{display:flex;justify-content:center;align-items:center;border:none;-webkit-appearance:none;appearance:none;cursor:pointer;background:none;color:#220c4a;box-sizing:border-box;text-decoration:none !important;outline:none !important;padding:0}.tr-wc-iconButton-icon{width:20px} 12 @-webkit-keyframes backdrop-trans{from{opacity:0}to{opacity:.5}}@keyframes backdrop-trans{from{opacity:0}to{opacity:.5}}.tr-wc-backdrop-root{position:fixed;display:flex;justify-content:center;align-items:center;top:0;left:0;bottom:0;right:0;opacity:.5;z-index:9999998;background:#000;-webkit-animation-name:backdrop-trans;animation-name:backdrop-trans;-webkit-animation-duration:250ms;animation-duration:250ms} 13 .tr-wc-modal-root{position:fixed;z-index:9999999}.tr-wc-modal-rootContainer{display:flex;flex-direction:column;width:100%;min-width:600px;background-color:#fff;border-radius:5px}.tr-wc-modal-header,.tr-wc-modal-content,.tr-wc-modal-footer{box-sizing:border-box}.tr-wc-modal-contentContainer,.tr-wc-modal-footer{width:100%}.tr-wc-modal-contentContainer{display:flex;flex-direction:column}.tr-wc-modal-header{display:flex;justify-content:space-between;padding:16px 16px 0}.tr-wc-modal-header>h3{margin:0}.tr-wc-modal-content{flex:1;padding:0 16px 16px;overflow-x:hidden;overflow-y:auto}.tr-wc-modal-footer{padding:16px} 14 .tr-wc-rulesModal-container{width:60vw;max-width:1000px;min-width:800px}.tr-wc-rulesModal-contentPanel{height:500px}.tr-wc-rulesModal-content{position:relative;margin-top:16px}.tr-wc-rulesModal-footerContainer{display:flex;justify-content:space-between} 15 .tr-wc-Rule-container{display:flex;align-items:center;margin-top:8px;box-sizing:border-box}.tr-wc-Rule-container:not(:last-child){padding-bottom:8px;border-bottom:1px solid #e2e4e7}.tr-wc-Rule-ruleContainer{display:flex;flex:1 auto;justify-content:space-evenly;align-items:center;margin-right:16px}.tr-wc-Rule-ruleContainer>*{flex:1}.tr-wc-Rule-ruleContainer>*:not(:last-child){margin-right:8px}.tr-wc-Rule-select,.tr-wc-Rule-input{border-radius:5px;border:1px solid #ccc;color:#220c4a;height:32px}.tr-wc-Rule-select:disabled,.tr-wc-Rule-input:disabled{color:#b8b8b8;background-color:#f5f5f5;outline:none}.tr-wc-Rule-select:hover:not(:disabled),.tr-wc-Rule-input:hover:not(:disabled){border-color:transparent !important;outline:2px #ae97ff solid}.tr-wc-Rule-select:active:not(:disabled),.tr-wc-Rule-select:focus:not(:disabled),.tr-wc-Rule-input:active:not(:disabled),.tr-wc-Rule-input:focus:not(:disabled){border-color:transparent !important;outline:2px #8000ff solid}.tr-wc-Rule-input{padding:0 8px} 16 .tr-wc-fieldInput-container{display:flex;flex-direction:column}.tr-wc-fieldInput-input{margin-top:8px} 17 .tr-wc-rulesModal-emptyView-panel{position:absolute;bottom:8px;left:88px}.tr-wc-rulesModal-emptyView-line{width:230px;color:#ccc}.tr-wc-rulesModal-emptyView-text{display:flex;align-items:center;position:absolute;top:-11px;right:-180px;width:170px;font-size:16px} 18 .tr-wc-ruleBtn-group{display:flex;border-top:#e2e4e7 1px solid;padding-top:16px;margin-top:8px}.tr-wc-ruleBtn-group .tr-wc-ruleBtn{margin-right:16px} 19 .tr-wc-logEntry-table{padding:8px;width:100%;border-collapse:collapse;margin-top:16px}.tr-wc-logEntry-table:first-child{margin-top:0}.tr-wc-logEntry-table td{border:1px solid #ccc}.tr-wc-auditLogModal-dataCell{box-sizing:border-box;padding:0 4px} 20 .tr-wc-auditLogModal-container{width:50vw;max-width:800px;min-width:700px}.tr-wc-auditLogModal-contentPanel{height:400px}.tr-wc-auditLogModal-loading{display:flex;align-items:center;justify-content:center;height:100%}.tr-wc-auditLogModal-panel{padding-top:16px} 8 21 .tr-wc-trunkrsFull{width:380px;margin:100px 0 80px 0}.tr-wc-adminAppButton{margin-top:40px} 9 .tr-wc-switchContainer{display:flex;align-items:center}.tr-wc-switchContainer .tr-wc-switch{position:relative;width:48px;height:24px;background-color:#e0e0e0;border-radius:16px;cursor:pointer}.tr-wc-switchContainer .tr-wc-switch.tr-wc-switch-checked{background-color:#8000ff}.tr-wc-switchContainer .tr-wc-switch.tr-wc-switch-checked .tr-wc-switchKnob{left:24px;border-color:#8000ff}.tr-wc-switchContainer .tr-wc-switch .tr-wc-switchKnob{position:absolute;display:block;left:0;width:24px;height:24px;border:2px solid #ccc;border-radius:50%;background-color:#fff;box-sizing:border-box}.tr-wc-switchContainer .tr-wc-switch,.tr-wc-switchContainer .tr-wc-switchKnob{transition:background-color 250ms ease-out,border-color 250ms ease-out,left 175ms ease-out}.tr-wc-switchContainer .tr-wc-switchContent{margin-left:8px}10 .tr-wc-settingsList{margin:0}.tr-wc-settingsList li:not(:first-child){margin-top:16px} -
TabularUnified trunkrs-for-woocommerce/trunk/build/admin.js ¶
r2637309 r2750706 1 !function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=19)}([function(t,e,n){"use strict";t.exports=n(4)},function(t,e,n){"use strict";var r=n(8),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:u,isUndefined:s,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return a(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e){t.exports=React},function(t,e){t.exports=window.wp.element},function(t,e,n){"use strict";var r=n(2),i=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),e.Fragment=o("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,o={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)a.call(e,r)&&!u.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:c,ref:l,props:o,_owner:s.current}}e.jsx=c,e.jsxs=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={portalBaseUrl:"https://portal.trunkrs.app",apiBaseUrl:"https://shipping.trunkrs.app",auth0:{domain:"trunkrs.eu.auth0.com",clientId:"hvK6Wu7K57yfp2mYsgMIRNNsOKkSYmDi",audience:"api.portal.trunkrs.app",redirectUrl:"https://portal.trunkrs.app/register/integration"}}},function(t,e,n){"use strict";function r(t){var e,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(i&&(i+=" "),i+=n);else for(e in t)t[e]&&(i&&(i+=" "),i+=e);return i}n.r(e),e.default=function(){for(var t,e,n=0,i="";n<arguments.length;)(t=arguments[n++])&&(e=r(t))&&(i&&(i+=" "),i+=e);return i}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(2)).default.createContext({isWorking:!1,config:null,prepareConfig:function(){throw new Error("Not implemented!")},updateUseBigText:function(){throw new Error("Not implemented")},updateIsDarkLogo:function(){throw new Error("Not implemented!")},updateTntLinks:function(){throw new Error("Not implemented!")},updateTntActions:function(){throw new Error("Not implemented!")},updateAllOrdersAreTrunkrs:function(){throw new Error("Not implemented!")}});e.default=i},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(1);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(1),i=n(30),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(a=n(13)),a),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u}).call(this,n(12))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,p=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&d())}function d(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++p<e;)u&&u[p].run();p=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||l||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(1),i=n(31),o=n(33),s=n(9),a=n(34),u=n(37),c=n(38),l=n(14);t.exports=function(t){return new Promise((function(e,n){var p=t.data,h=t.headers;r.isFormData(p)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(f+":"+m)}var y=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),s(y,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};i(e,n,o),d=null}},d.onabort=function(){d&&(n(l("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(l("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=(t.withCredentials||c(y))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;g&&(h[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(h,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),n(t),d=null)})),p||(p=null),d.send(p)}))}},function(t,e,n){"use strict";var r=n(32);t.exports=function(t,e,n,i,o){var s=new Error(t);return r(s,e,n,i,o)}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,c),r.forEach(s,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(a,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var l=i.concat(o).concat(s).concat(a),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return r.forEach(p,c),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=r(n(2)),s=r(n(6));n(52),e.default=function(t){var e=t.color,n=t.href,r=t.disabled,a=t.className,u=t.children,c=t.onClick,l=s.default("tr-wc-button",{"tr-wc-blue":"blue"===e,"tr-wc-green":"green"===e,"tr-wc-white":"white"===e},a),p=n?i.jsx("a",{href:n,target:"_blank",rel:"noreferrer noopener nofollow"},void 0):i.jsx("button",{type:"button",onClick:c},void 0);return o.default.cloneElement(p,{className:l,disabled:r},u)}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=i(n(6));n(63),e.default=function(t){var e=t.checked,n=t.tabIndex,i=void 0===n?1:n,a=t.children,u=t.onChange;return o.jsxs("span",r({className:"tr-wc-switchContainer"},{children:[o.jsx("div",r({tabIndex:i,role:"button",className:s.default("tr-wc-switch",{"tr-wc-switch-checked":e}),onClick:u},{children:o.jsx("span",{className:"tr-wc-switchKnob"},void 0)}),void 0),o.jsx("span",r({className:"tr-wc-switchContent"},{children:a}),void 0)]}),void 0)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(3);n(20);var o=r(n(21)),s=document.getElementById("tr-wc-settings");s&&i.render(i.createElement(o.default),s)},function(t,e,n){},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=r(n(22)),s=r(n(42));e.default=function(){return i.jsx(o.default,{children:i.jsx(s.default,{},void 0)},void 0)}},function(t,e,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=n(0),c=a(n(2)),l=a(n(7)),p=n(23),h=null===(r=document.getElementById("__tr-wc-settings__"))||void 0===r?void 0:r.innerText,d=h?JSON.parse(h):{};e.default=function(t){var e=t.children,n=c.default.useState(!1),r=n[0],a=n[1],h=c.default.useState(d),f=h[0],m=h[1],y=c.default.useCallback((function(t,e){return o(void 0,void 0,void 0,(function(){var n,r,o;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,4,5]),a(!0),[4,p.doShippingReqisterRequest(t,e,f.metaBag)];case 1:return n=s.sent(),[4,p.doConfigureRequest(n.accessToken,e,n.organizationName,n.integrationId)];case 2:return s.sent(),m(i(i({},f),{isConfigured:!0,details:{integrationId:n.integrationId,organizationId:e,organizationName:n.organizationName}})),[3,5];case 3:return r=s.sent(),o=r,console.error(o),[3,5];case 4:return a(!1),[7];case 5:return[2]}}))}))}),[f]),g=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return m(i(i({},f),{isDarkLogo:!f.isDarkLogo})),p.doUpdateUseDarkRequest(!f.isDarkLogo).catch((function(){m(i(i({},f),{isDarkLogo:!f.isDarkLogo}))})),[2]}))}))}),[f]),v=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return m(i(i({},f),{isEmailLinksEnabled:!f.isEmailLinksEnabled})),p.doUpdateUseTntLinksRequest(!f.isEmailLinksEnabled).catch((function(){m(i(i({},f),{isEmailLinksEnabled:!f.isEmailLinksEnabled}))})),[2]}))}))}),[f]),b=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return m(i(i({},f),{isAccountTrackTraceEnabled:!f.isAccountTrackTraceEnabled})),p.doUpdateUseTntAccountsRequest(!f.isAccountTrackTraceEnabled).catch((function(){m(i(i({},f),{isAccountTrackTraceEnabled:!f.isAccountTrackTraceEnabled}))})),[2]}))}))}),[f]),w=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return m(i(i({},f),{isAllOrdersAreTrunkrsEnabled:!f.isAllOrdersAreTrunkrsEnabled})),p.doUpdateUseAllOrdersAreTrunkrsRequest(!f.isAllOrdersAreTrunkrsEnabled).catch((function(){m(i(i({},f),{isAllOrdersAreTrunkrsEnabled:!f.isAllOrdersAreTrunkrsEnabled}))})),[2]}))}))}),[f]),_=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return m(i(i({},f),{isBigTextEnabled:!f.isBigTextEnabled})),p.doUpdateUseBigTextRequest(!f.isBigTextEnabled).catch((function(){m(i(i({},f),{isBigTextEnabled:!f.isBigTextEnabled}))})),[2]}))}))}),[f]),T=c.default.useMemo((function(){return{isWorking:r,config:f,prepareConfig:y,updateIsDarkLogo:g,updateTntLinks:v,updateTntActions:b,updateAllOrdersAreTrunkrs:w,updateUseBigText:_}}),[f,r,y,g,b,v,w,_]);return u.jsx(l.default.Provider,i({value:T},{children:e}),void 0)}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.doUpdateUseBigTextRequest=e.doUpdateUseAllOrdersAreTrunkrsRequest=e.doUpdateUseTntAccountsRequest=e.doUpdateUseTntLinksRequest=e.doUpdateUseDarkRequest=e.doConfigureRequest=e.doShippingReqisterRequest=e.decodeHtmlString=void 0;var s=o(n(24)),a=o(n(5));e.decodeHtmlString=function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.value},e.doShippingReqisterRequest=function(t,e,n){return r(void 0,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,s.default.request({method:"POST",baseURL:a.default.apiBaseUrl,url:"integrations",headers:{Authorization:"Bearer "+t,"X-Organization-Id":e},data:{type:"WooCommerce",name:window.location.hostname,version:1,meta:n}})];case 1:return[2,r.sent().data]}}))}))},e.doConfigureRequest=function(t,e,n,o){return r(void 0,void 0,void 0,(function(){var r;return i(this,(function(i){switch(i.label){case 0:return(r=new FormData).append("action","tr-wc_register-plugin"),r.append("accessToken",t),r.append("organizationId",e),r.append("organizationName",n),r.append("integrationId",o),[4,s.default.request({method:"POST",url:ajaxurl,data:r})];case 1:return i.sent(),[2]}}))}))},e.doUpdateUseDarkRequest=function(t){return r(void 0,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-dark"),e.append("isDarkLogo",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return n.sent(),[2]}}))}))},e.doUpdateUseTntLinksRequest=function(t){return r(void 0,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-tnt-links"),e.append("isEmailLinksEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return n.sent(),[2]}}))}))},e.doUpdateUseTntAccountsRequest=function(t){return r(void 0,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-tnt-account"),e.append("isAccountTrackTraceEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return n.sent(),[2]}}))}))},e.doUpdateUseAllOrdersAreTrunkrsRequest=function(t){return r(void 0,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-all-orders-are-trunkrs"),e.append("isAllOrdersAreTrunkrsEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return n.sent(),[2]}}))}))},e.doUpdateUseBigTextRequest=function(t){return r(void 0,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-big-checkout-text"),e.append("isUseBigTextEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return n.sent(),[2]}}))}))}},function(t,e,n){t.exports=n(25)},function(t,e,n){"use strict";var r=n(1),i=n(8),o=n(26),s=n(15);function a(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=a(n(11));u.Axios=o,u.create=function(t){return a(s(u.defaults,t))},u.Cancel=n(16),u.CancelToken=n(39),u.isCancel=n(10),u.all=function(t){return Promise.all(t)},u.spread=n(40),u.isAxiosError=n(41),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(1),i=n(9),o=n(27),s=n(28),a=n(15);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=a(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(a(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(a(r||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(1);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(1),i=n(29),o=n(10),s=n(11);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(14);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(1);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(35),i=n(36);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(1),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},function(t,e,n){"use strict";var r=n(1);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(16);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(0),a=o(n(2)),u=o(n(43)),c=o(n(44)),l=o(n(45)),p=o(n(47)),h=o(n(57));n(61);var d=o(n(62)),f=o(n(65));e.default=function(){var t=u.default(),e=t.isWorking,n=t.config,o=t.prepareConfig,m=t.updateUseBigText,y=t.updateIsDarkLogo,g=t.updateTntLinks,v=t.updateTntActions,b=t.updateAllOrdersAreTrunkrs,w=a.default.useCallback((function(t){return r(void 0,void 0,void 0,(function(){return i(this,(function(e){return[2,o(t.accessToken,t.organizationId)]}))}))}),[o]);return s.jsxs(l.default,{children:[s.jsx(c.default,{className:"tr-wc-trunkrsFull"},void 0),(null==n?void 0:n.isConfigured)?s.jsxs(s.Fragment,{children:[s.jsx(h.default,{integrationId:n.details.integrationId,organizationId:n.details.organizationId,organizationName:n.details.organizationName},void 0),s.jsx(f.default,{allOrdersAreTrunkrs:n.isAllOrdersAreTrunkrsEnabled,onAllOrdersAreTrunkrs:b},void 0),s.jsx(d.default,{useBigText:n.isBigTextEnabled,darkLogo:n.isDarkLogo,tntEmailLinks:n.isEmailLinksEnabled,tntAccountActions:n.isAccountTrackTraceEnabled,onUseBigTextChanged:m,onDarkLogoChanged:y,onTntEmailLinksChanged:g,onTntAccountActionsChanged:v},void 0)]},void 0):s.jsx(p.default,{loading:e,onLoginDone:w},void 0)]},void 0)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(2)),o=r(n(7));e.default=function(){return i.default.useContext(o.default)}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default=function(t){var e=t.className;return i.jsx("svg",r({className:e,viewBox:"0 0 320 38.19"},{children:i.jsxs("g",r({transform:"translate(-238.467 -453.779)"},{children:[i.jsxs("g",r({transform:"translate(238.467 453.779)"},{children:[i.jsxs("g",r({transform:"translate(67.154)"},{children:[i.jsx("path",{d:"M567.979 467.551v30.663h-7.144v-30.663h-16.181l.183-4.991h39.2l.122 4.991z",fill:"#201047",transform:"translate(-544.654 -460.633)"},void 0),i.jsx("path",{d:"M717.507 522.354v-27.661l5.129-.282.305 2.583.306 3.8h.122c2.625-4.227 7.2-6.763 13.066-6.763a21.582 21.582 0 0 1 4.213.423l-.366 4.837a18.181 18.181 0 0 0-4.274-.47c-6.777 0-12.029 3.992-12.029 10.1v13.431z",fill:"#201047",transform:"translate(-678.979 -484.774)"},void 0),i.jsx("path",{d:"M880.84 513.949c0 6.481-5.373 10.473-16.608 10.473-11.174 0-16.547-4.039-16.547-10.473v-17.987h6.472v17.8c0 3.9 3.3 6.246 10.075 6.246s10.136-2.3 10.136-6.246v-17.8h6.472z",fill:"#201047",transform:"translate(-780.09 -486.279)"},void 0),i.jsx("path",{d:"M1064.4 522.02v-17.283c0-4.6-3.48-6.669-10.013-6.669-3.6 0-8.06 1.221-10.2 3.428v20.524h-6.472v-27.755l4.518-.282 1.221 3.24a22.331 22.331 0 0 1 12.639-3.616c9.22 0 14.776 3.8 14.776 11.13v17.283z",fill:"#201047",transform:"translate(-927.733 -484.44)"},void 0),i.jsx("path",{d:"M1234.834 474.161h6.777l12.7-11.022h7.876l-15.143 12.923 15.754 15.3h-7.877l-13.372-13.065h-6.717v13.065h-6.472v-37.298l6.472-.285z",fill:"#201047",transform:"translate(-1075.837 -453.779)"},void 0),i.jsx("path",{d:"M1409.318 522.354v-27.661l5.129-.282.305 2.583.305 3.8h.122c2.625-4.227 7.2-6.763 13.066-6.763a21.581 21.581 0 0 1 4.213.423l-.366 4.837a18.181 18.181 0 0 0-4.274-.47c-6.777 0-12.029 3.992-12.029 10.1v13.431z",fill:"#201047",transform:"translate(-1216.059 -484.774)"},void 0),i.jsx("path",{d:"M1548.524 522.8c-5.19 0-10.014-.939-13.372-2.677l.916-4.133c3.3 1.831 8.365 2.771 12.517 2.771 6.167 0 8.67-2.067 8.67-4.415 0-6.105-22.042-2.865-22.042-12.539 0-4.79 4.946-7.984 14.715-7.984a37.911 37.911 0 0 1 11.723 1.738l-.611 4.039a40.578 40.578 0 0 0-11.357-1.691c-5.068 0-8.243 1.456-8.243 3.663 0 5.683 21.859 2.4 21.859 12.257.001 5.071-4.334 8.971-14.775 8.971z",fill:"#201047",transform:"translate(-1314.294 -484.607)"},void 0)]}),void 0),i.jsx("g",r({transform:"translate(0 1.926)"},{children:i.jsxs("g",{children:[i.jsx("g",r({transform:"translate(.243)"},{children:i.jsx("path",{fill:"#00d163",d:"M239.9 473.289a.981.981 0 0 0 .663 1.708l17.7-.048a1.56 1.56 0 0 0 1.046-.406l13.191-11.984-19.5.054a3.507 3.507 0 0 0-2.351.912z",transform:"translate(-239.576 -462.559)"},void 0)}),void 0),i.jsx("path",{d:"M296.542 462.586l-21.3.051a1.786 1.786 0 0 0-1.2.47l-12.629 11.57a1.523 1.523 0 0 0-.489 1.121v8.934a.94.94 0 0 1-.932.946l-8.148.02a3.363 3.363 0 0 0-2.27.892l-10.779 9.917a1 1 0 0 0 .662 1.729l20.974-.05a1.275 1.275 0 0 0 .858-.336l12.775-11.7a1.522 1.522 0 0 0 .49-1.12v-8.934a.94.94 0 0 1 .932-.946l8.739-.021a1.841 1.841 0 0 0 1.242-.488l11.606-10.678a.789.789 0 0 0-.531-1.377z",fill:"#201047",transform:"translate(-238.467 -462.58)"},void 0)]},void 0)}),void 0)]}),void 0),i.jsx("g",r({transform:"translate(554.613 460.161)"},{children:i.jsx("path",{fill:"#1d1047",d:"M1667.281 484.388a1.928 1.928 0 1 1-1.921-1.876 1.885 1.885 0 0 1 1.921 1.876zm-3.374 0a1.453 1.453 0 0 0 1.464 1.5 1.436 1.436 0 0 0 1.43-1.487 1.448 1.448 0 1 0-2.893-.011zm1.155.983h-.435V483.5a3.792 3.792 0 0 1 .72-.057 1.169 1.169 0 0 1 .652.137.52.52 0 0 1 .183.412.48.48 0 0 1-.389.434v.023a.553.553 0 0 1 .343.457 1.43 1.43 0 0 0 .137.469h-.469a1.613 1.613 0 0 1-.148-.458c-.034-.206-.149-.3-.389-.3h-.206zm.011-1.063h.206c.24 0 .434-.08.434-.275 0-.171-.126-.286-.4-.286a1.049 1.049 0 0 0-.24.023z",transform:"translate(-1663.427 -482.512)"},void 0)}),void 0)]}),void 0)}),void 0)}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);n(46),e.default=function(t){var e=t.children;return i.jsx("div",r({className:"tr-wc-centeredContainer"},{children:e}),void 0)}},function(t,e,n){},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=i(n(48));n(56),e.default=function(t){var e=t.loading,n=t.onLoginDone;return o.jsxs("div",r({className:"tr-wc-connectionPanel"},{children:[o.jsx("span",r({className:"tr-wc-panelHeader"},{children:o.jsx("p",{children:"Platform connectie"},void 0)}),void 0),o.jsxs("span",r({className:"tr-wc-panelContent"},{children:[o.jsxs("span",r({className:"tr-wc-connectionStatus"},{children:[o.jsx("h3",{children:"Niet verbonden met Trunkrs"},void 0),o.jsx("p",{children:"Verbind uw winkel met het Trunkrs platform om te beginnen met verzenden."},void 0)]}),void 0),o.jsx("span",{children:o.jsx(s.default,{loading:e,onLoginDone:n},void 0)},void 0)]}),void 0)]}),void 0)}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=i(n(2)),a=n(49),u=i(n(6)),c=i(n(51)),l=i(n(17));n(53);var p=i(n(54)),h=i(n(5));e.default=function(t){var e=t.className,n=t.loading,i=t.onLoginDone,d=s.default.useRef(),f=s.default.useCallback((function(t){var e=t.data,n=e.type,r=e.organizationId;"ORG_ID_RECEIVED"===n&&(d.current=r)}),[]),m=s.default.useCallback((function(t,e){window.removeEventListener("message",f),t?console.error(t):null==i||i.call(null,{organizationId:d.current,accessToken:e.accessToken})}),[f,i]),y=s.default.useCallback((function(){var t=btoa(JSON.stringify({origin:window.location.origin}));new a.WebAuth({domain:h.default.auth0.domain,clientID:h.default.auth0.clientId,audience:h.default.auth0.audience,state:t,redirectUri:h.default.auth0.redirectUrl}).popup.authorize({domain:h.default.auth0.domain,clientId:h.default.auth0.clientId,audience:h.default.auth0.audience,redirectUri:h.default.auth0.redirectUrl,responseType:"token"},m),window.removeEventListener("message",f),window.addEventListener("message",f)}),[m,f]);return o.jsxs(l.default,r({color:"green",disabled:n,className:u.default("tr-wc-connectButton",e),onClick:y},{children:[n?o.jsx(p.default,{size:32,thickness:2},void 0):o.jsx(c.default,{className:"tr-wc-logo",variant:"indigo"},void 0),o.jsx("p",r({className:"tr-wc-buttonText"},{children:n?"Verbinden":"Verbind"}),void 0)]}),void 0)}},function(t,e,n){"use strict";n.r(e),function(t,r){n.d(e,"Authentication",(function(){return qe})),n.d(e,"Management",(function(){return Ue})),n.d(e,"WebAuth",(function(){return Ee})),n.d(e,"version",(function(){return ot}));var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}var s=o((function(t){var e,n;e=i,n=function(){function t(t){var e=[];if(0===t.length)return"";if("string"!=typeof t[0])throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var n=t.shift();t[0]=n+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<t.length;r++){var i=t[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<t.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),e.push(i))}var o=e.join("/"),s=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return s.shift()+(s.length>0?"?":"")+s.join("&")}return function(){return t("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=n():e.urljoin=n()})),a=Object.prototype.hasOwnProperty,u=Array.isArray,c=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),l=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n},p={arrayToObject:l,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],o=i.obj[i.prop],s=Object.keys(o),a=0;a<s.length;++a){var c=s[a],l=o[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:o,prop:c}),n.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(u(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r=t;if("symbol"==typeof t?r=Symbol.prototype.toString.call(t):"string"!=typeof t&&(r=String(t)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",o=0;o<r.length;++o){var s=r.charCodeAt(o);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=r.charAt(o):s<128?i+=c[s]:s<2048?i+=c[192|s>>6]+c[128|63&s]:s<55296||s>=57344?i+=c[224|s>>12]+c[128|s>>6&63]+c[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(o)),i+=c[240|s>>18]+c[128|s>>12&63]+c[128|s>>6&63]+c[128|63&s])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(u(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(u(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var i=e;return u(e)&&!u(n)&&(i=l(e,r)),u(e)&&u(n)?(n.forEach((function(n,i){if(a.call(e,i)){var o=e[i];o&&"object"==typeof o&&n&&"object"==typeof n?e[i]=t(o,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var o=n[i];return a.call(e,i)?e[i]=t(e[i],o,r):e[i]=o,e}),i)}},h=String.prototype.replace,d=/%20/g,f={RFC1738:"RFC1738",RFC3986:"RFC3986"},m=p.assign({default:f.RFC3986,formatters:{RFC1738:function(t){return h.call(t,d,"+")},RFC3986:function(t){return String(t)}}},f),y=Object.prototype.hasOwnProperty,g={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},v=Array.isArray,b=Array.prototype.push,w=function(t,e){b.apply(t,v(e)?e:[e])},_=Date.prototype.toISOString,T=m.default,O={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:p.encode,encodeValuesOnly:!1,format:T,formatter:m.formatters[T],indices:!1,serializeDate:function(t){return _.call(t)},skipNulls:!1,strictNullHandling:!1},k=function t(e,n,r,i,o,s,a,u,c,l,h,d,f){var m=e;if("function"==typeof a?m=a(n,m):m instanceof Date?m=l(m):"comma"===r&&v(m)&&(m=p.maybeMap(m,(function(t){return t instanceof Date?l(t):t})).join(",")),null===m){if(i)return s&&!d?s(n,O.encoder,f,"key"):n;m=""}if(function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t}(m)||p.isBuffer(m))return s?[h(d?n:s(n,O.encoder,f,"key"))+"="+h(s(m,O.encoder,f,"value"))]:[h(n)+"="+h(String(m))];var y,g=[];if(void 0===m)return g;if(v(a))y=a;else{var b=Object.keys(m);y=u?b.sort(u):b}for(var _=0;_<y.length;++_){var T=y[_],k=m[T];if(!o||null!==k){var x=v(m)?"function"==typeof r?r(n,T):n:n+(c?"."+T:"["+T+"]");w(g,t(k,x,r,i,o,s,a,u,c,l,h,d,f))}}return g},x=Object.prototype.hasOwnProperty,j=Array.isArray,C={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:p.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},A=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},S=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},E=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),a=s?i.slice(0,s.index):i,u=[];if(a){if(!n.plainObjects&&x.call(Object.prototype,a)&&!n.allowPrototypes)return;u.push(a)}for(var c=0;n.depth>0&&null!==(s=o.exec(i))&&c<n.depth;){if(c+=1,!n.plainObjects&&x.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(t,e,n,r){for(var i=r?e:S(e,n),o=t.length-1;o>=0;--o){var s,a=t[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[])[c]=i:s[u]=i:s={0:i}}i=s}return i}(u,e,n,r)}},D=function(t,e){var n,r=t,i=function(t){if(!t)return O;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||O.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=m.default;if(void 0!==t.format){if(!y.call(m.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=m.formatters[n],i=O.filter;return("function"==typeof t.filter||v(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:O.addQueryPrefix,allowDots:void 0===t.allowDots?O.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:O.charsetSentinel,delimiter:void 0===t.delimiter?O.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:O.encode,encoder:"function"==typeof t.encoder?t.encoder:O.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:O.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:O.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:O.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:O.strictNullHandling}}(e);"function"==typeof i.filter?r=(0,i.filter)("",r):v(i.filter)&&(n=i.filter);var o,s=[];if("object"!=typeof r||null===r)return"";o=e&&e.arrayFormat in g?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var a=g[o];n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var u=0;u<n.length;++u){var c=n[u];i.skipNulls&&null===r[c]||w(s,k(r[c],c,a,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var l=s.join(i.delimiter),p=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),l.length>0?p+l:""},R=o((function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}})),q=P;P.default=P,P.stable=L,P.stableStringify=L;var U=[],I=[];function P(t,e,n){var r;for(function t(e,n,r,i){var o;if("object"==typeof e&&null!==e){for(o=0;o<r.length;o++)if(r[o]===e){var s=Object.getOwnPropertyDescriptor(i,n);return void(void 0!==s.get?s.configurable?(Object.defineProperty(i,n,{value:"[Circular]"}),U.push([i,n,e,s])):I.push([e,n]):(i[n]="[Circular]",U.push([i,n,e])))}if(r.push(e),Array.isArray(e))for(o=0;o<e.length;o++)t(e[o],o,r,e);else{var a=Object.keys(e);for(o=0;o<a.length;o++){var u=a[o];t(e[u],u,r,e)}}r.pop()}}(t,"",[],void 0),r=0===I.length?JSON.stringify(t,e,n):JSON.stringify(t,N(e),n);0!==U.length;){var i=U.pop();4===i.length?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}return r}function M(t,e){return t<e?-1:t>e?1:0}function L(t,e,n){var r,i=function t(e,n,r,i){var o;if("object"==typeof e&&null!==e){for(o=0;o<r.length;o++)if(r[o]===e){var s=Object.getOwnPropertyDescriptor(i,n);return void(void 0!==s.get?s.configurable?(Object.defineProperty(i,n,{value:"[Circular]"}),U.push([i,n,e,s])):I.push([e,n]):(i[n]="[Circular]",U.push([i,n,e])))}if("function"==typeof e.toJSON)return;if(r.push(e),Array.isArray(e))for(o=0;o<e.length;o++)t(e[o],o,r,e);else{var a={},u=Object.keys(e).sort(M);for(o=0;o<u.length;o++){var c=u[o];t(e[c],c,r,e),a[c]=e[c]}if(void 0===i)return a;U.push([i,n,e]),i[n]=a}r.pop()}}(t,"",[],void 0)||t;for(r=0===I.length?JSON.stringify(i,e,n):JSON.stringify(i,N(e),n);0!==U.length;){var o=U.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}return r}function N(t){return t=void 0!==t?t:function(t,e){return e},function(e,n){if(I.length>0)for(var r=0;r<I.length;r++){var i=I[r];if(i[1]===e&&i[0]===n){n="[Circular]",I.splice(r,1);break}}return t.call(this,e,n)}}function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var z=function(t){return null!==t&&"object"===B(t)};function H(t){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var F=V;function V(t){if(t)return function(t){for(var e in V.prototype)Object.prototype.hasOwnProperty.call(V.prototype,e)&&(t[e]=V.prototype[e]);return t}(t)}V.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},V.prototype.parse=function(t){return this._parser=t,this},V.prototype.responseType=function(t){return this._responseType=t,this},V.prototype.serialize=function(t){return this._serializer=t,this},V.prototype.timeout=function(t){if(!t||"object"!==H(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},V.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var W=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];V.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!==e.status)return!0;if(t){if(t.code&&W.includes(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},V.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},V.prototype.then=function(t,e){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)e(n.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=n.status,t.method=n.method,t.url=n.url,e(t)}})),r.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},V.prototype.catch=function(t){return this.then(void 0,t)},V.prototype.use=function(t){return t(this),this},V.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},V.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},V.prototype.get=function(t){return this._header[t.toLowerCase()]},V.prototype.getHeader=V.prototype.get,V.prototype.set=function(t,e){if(z(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},V.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},V.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(z(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(n,t[n]);return this}if(Array.isArray(e)){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.field(t,e[r]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},V.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},V.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},V.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},V.prototype.redirects=function(t){return this._maxRedirects=t,this},V.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},V.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},V.prototype.send=function(t){var e=z(t),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&z(this._data))for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._data[r]=t[r]);else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},V.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},V.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.slice(e+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,e)+"?"+n.join("&")}}},V.prototype._appendQueryString=function(){console.warn("Unsupported")},V.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error("".concat(t+e,"ms exceeded"));r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},V.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var J=$;function $(t){if(t)return function(t){for(var e in $.prototype)Object.prototype.hasOwnProperty.call($.prototype,e)&&(t[e]=$.prototype[e]);return t}(t)}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Z(){this._defaults=[]}$.prototype.get=function(t){return this.header[t.toLowerCase()]},$.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=e.split(/ *; */).shift();var n=function(t){return t.split(/ *; */).reduce((function(t,e){var n=e.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(t[r]=i),t}),{})}(e);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(this[r]=n[r]);this.links={};try{t.link&&(this.links=function(t){return t.split(/ *, */).reduce((function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=r,t}),{})}(t.link))}catch(t){}},$.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(t){Z.prototype[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this._defaults.push({fn:t,args:n}),this}})),Z.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,function(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return X(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(t,void 0):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.args))}))};for(var K=Z,Q=o((function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;function i(){}"undefined"!=typeof window?r=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),r=void 0):r=self,t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1===arguments.length?new e.Request("GET",t):new e.Request(t,n)};var o=e=t.exports;e.Request=h,o.getXHR=function(){if(r.XMLHttpRequest&&(!r.location||"file:"!==r.location.protocol||!r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var s="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function a(t){if(!z(t))return t;var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&u(e,n,t[n]);return e.join("&")}function u(t,e,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){u(t,e,n)}));else if(z(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&u(t,"".concat(e,"[").concat(r,"]"),n[r]);else t.push(encodeURI(e)+"="+encodeURIComponent(n));else t.push(encodeURI(e))}function c(t){for(var e,n,r={},i=t.split("&"),o=0,s=i.length;o<s;++o)-1===(n=(e=i[o]).indexOf("="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(e.slice(0,n))]=decodeURIComponent(e.slice(n+1));return r}function l(t){return/[/+]json($|[^-\w])/.test(t)}function p(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,n,r,i,o=t.split(/\r?\n/),a={},u=0,c=o.length;u<c;++u)-1!==(e=(n=o[u]).indexOf(":"))&&(r=n.slice(0,e).toLowerCase(),i=s(n.slice(e+1)),a[r]=i);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function h(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new p(n)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,n.xhr?(e.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=r,t.status=r.status,n.callback(t,r)):n.callback(null,r)}))}function d(t,e,n){var r=o("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}o.serializeObject=a,o.parseString=c,o.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},o.serialize={"application/x-www-form-urlencoded":a,"application/json":q},o.parse={"application/x-www-form-urlencoded":c,"application/json":JSON.parse},J(p.prototype),p.prototype._parseBody=function(t){var e=o.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&l(this.type)&&(e=o.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},p.prototype.toError=function(){var t=this.req,e=t.method,n=t.url,r="cannot ".concat(e," ").concat(n," (").concat(this.status,")"),i=new Error(r);return i.status=this.status,i.method=e,i.url=n,i},o.Response=p,R(h.prototype),F(h.prototype),h.prototype.type=function(t){return this.set("Content-Type",o.types[t]||t),this},h.prototype.accept=function(t){return this.set("Accept",o.types[t]||t),this},h.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"===n(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var i=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,i)},h.prototype.query=function(t){return"string"!=typeof t&&(t=a(t)),t&&this._query.push(t),this},h.prototype.attach=function(t,e,n){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},h.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},h.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},h.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},h.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},h.prototype.ca=h.prototype.agent,h.prototype.buffer=h.prototype.ca,h.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},h.prototype.pipe=h.prototype.write,h.prototype._isHost=function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},h.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||i,this._finalizeQueryString(),this._end()},h.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},h.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=o.getXHR();var e=this.xhr,n=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(t._uploadTimeoutTimer)),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.addEventListener("progress",r.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",r.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],s=this._serializer||o.serialize[i?i.split(";")[0]:""];!s&&l(i)&&(s=o.serialize["application/json"]),s&&(n=s(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===n?null:n)},o.agent=function(){return new K},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){K.prototype[t.toLowerCase()]=function(e,n){var r=new o.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}})),K.prototype.del=K.prototype.delete,o.get=function(t,e,n){var r=o("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},o.head=function(t,e,n){var r=o("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},o.options=function(t,e,n){var r=o("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},o.del=d,o.delete=d,o.patch=function(t,e,n){var r=o("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},o.post=function(t,e,n){var r=o("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},o.put=function(t,e,n){var r=o("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}})),G=(Q.Request,[]),Y=[],tt=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),et=0,nt=tt.length;et<nt;++et)G[et]=tt[et],Y[tt.charCodeAt(et)]=et;function rt(t,e,n){for(var r,i,o=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(G[(i=r)>>18&63]+G[i>>12&63]+G[i>>6&63]+G[63&i]);return o.join("")}Y["-".charCodeAt(0)]=62,Y["_".charCodeAt(0)]=63;var it=function(t){return function(t){for(var e,n=t.length,r=n%3,i=[],o=0,s=n-r;o<s;o+=16383)i.push(rt(t,o,o+16383>s?s:o+16383));return 1===r?(e=t[n-1],i.push(G[e>>2]+G[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(G[e>>10]+G[e>>4&63]+G[e<<2&63]+"=")),i.join("")}(function(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(t)).replace(/\+/g,"-").replace(/\//g,"_")},ot={raw:"9.16.2"},st=Object.prototype.toString;function at(t,e,n,r){if(n="array"===n?"object":n,t&&typeof t[e]!==n)throw new Error(r)}function ut(t,e,n){if(typeof t!==e)throw new Error(n)}function ct(t,e,n){if(-1===e.indexOf(t))throw new Error(n)}var lt={check:function(t,e,n){if(e.optional&&!t||ut(t,e.type,e.message),"object"===e.type&&n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];n[o].optional&&!t[o]||n[o].condition&&!n[o].condition(t)||(at(t,o,n[o].type,n[o].message),n[o].values&&ct(t[o],n[o].values,n[o].value_message))}},attribute:at,variable:ut,value:ct,isArray:function(t){return this.supportsIsArray()?Array.isArray(t):"[object Array]"===st.call(t)},supportsIsArray:function(){return null!=Array.isArray}};function pt(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i=Object.keys(Object(r)),o=0,s=i.length;o<s;o++){var a=i[o],u=Object.getOwnPropertyDescriptor(r,a);void 0!==u&&u.enumerable&&(e[a]=r[a])}}return e}var ht=function(){return Object.assign?Object.assign:pt};function dt(t,e){return e.reduce((function(e,n){return t[n]&&(e[n]=t[n]),e}),{})}function ft(t){var e=[];for(var n in t)e.push(t[n]);return e}function mt(){var t=ft(arguments);return t.unshift({}),ht().apply(void 0,t)}function yt(t){var e=t.match(/^(https?:|file:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return e&&{href:t,protocol:e[1],host:e[2],hostname:e[3],port:e[4],pathname:e[5],search:e[6],hash:e[7]}}function gt(t,e){var n=mt(t);return t[e]&&(n[e]=t[e].trim()),n}var vt={toSnakeCase:function t(e,n){return"object"!=typeof e||lt.isArray(e)||null===e?e:(n=n||[],Object.keys(e).reduce((function(r,i){return r[-1===n.indexOf(i)?function(t){for(var e,n="",r=0,i=!0,o=!0;r<t.length;)e=t.charCodeAt(r),!o&&e>=65&&e<=90||!i&&e>=48&&e<=57?(n+="_",n+=t[r].toLowerCase()):n+=t[r].toLowerCase(),i=e>=48&&e<=57,o=e>=65&&e<=90,r++;return n}(i):i]=t(e[i]),r}),{}))},toCamelCase:function t(e,n,r){return"object"!=typeof e||lt.isArray(e)||null===e?e:(n=n||[],r=r||{},Object.keys(e).reduce((function(i,o){var s,a=-1===n.indexOf(o)?(s=o.split("_")).reduce((function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1)}),s.shift()):o;return i[a]=t(e[a]||e[o],[],r),r.keepOriginal&&(i[o]=t(e[o],[],r)),i}),{}))},blacklist:function(t,e){return Object.keys(t).reduce((function(n,r){return-1===e.indexOf(r)&&(n[r]=t[r]),n}),{})},merge:function(t,e){return{base:e?dt(t,e):t,with:function(t,e){return t=e?dt(t,e):t,mt(this.base,t)}}},pick:dt,getKeysNotIn:function(t,e){var n=[];for(var r in t)-1===e.indexOf(r)&&n.push(r);return n},extend:mt,getOriginFromUrl:function(t){if(t){var e=yt(t);if(!e)return null;var n=e.protocol+"//"+e.hostname;return e.port&&(n+=":"+e.port),n}},getLocationFromUrl:yt,trimUserDetails:function(t){return function(t,e){return["username","email","phoneNumber"].reduce(gt,t)}(t)},updatePropertyOn:function t(e,n,r){"string"==typeof n&&(n=n.split("."));var i=n[0];e.hasOwnProperty(i)&&(1===n.length?e[i]=r:t(e[i],n.slice(1),r))}};function bt(t){this.request=t,this.method=t.method,this.url=t.url,this.body=t._data,this.headers=t._header}function wt(t){this.request=t}function _t(t){this._sendTelemetry=!1!==t._sendTelemetry||t._sendTelemetry,this._telemetryInfo=t._telemetryInfo||null,this._timesToRetryFailedRequests=t._timesToRetryFailedRequests,this.headers=t.headers||{},this._universalLoginPage=t.universalLoginPage}function Tt(){return window}bt.prototype.abort=function(){this.request.abort()},bt.prototype.getMethod=function(){return this.method},bt.prototype.getBody=function(){return this.body},bt.prototype.getUrl=function(){return this.url},bt.prototype.getHeaders=function(){return this.headers},wt.prototype.set=function(t,e){return this.request=this.request.set(t,e),this},wt.prototype.send=function(t){return this.request=this.request.send(vt.trimUserDetails(t)),this},wt.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},wt.prototype.end=function(t){return this.request.end(t),new bt(this.request)},_t.prototype.setCommonConfiguration=function(t,e){if(e=e||{},this._timesToRetryFailedRequests>0&&(t=t.retry(this._timesToRetryFailedRequests)),e.noHeaders)return t;var n=this.headers;t=t.set("Content-Type","application/json");for(var r=Object.keys(this.headers),i=0;i<r.length;i++)t=t.set(r[i],n[r[i]]);return this._sendTelemetry&&(t=t.set("Auth0-Client",this.getTelemetryData())),t},_t.prototype.getTelemetryData=function(){var t=this._universalLoginPage?"auth0.js-ulp":"auth0.js",e={name:t,version:ot.raw};this._telemetryInfo&&((e=vt.extend({},this._telemetryInfo)).env=vt.extend({},this._telemetryInfo.env),e.env[t]=ot.raw);var n=JSON.stringify(e);return it(n)},_t.prototype.get=function(t,e){return new wt(this.setCommonConfiguration(Q.get(t),e))},_t.prototype.post=function(t,e){return new wt(this.setCommonConfiguration(Q.post(t),e))},_t.prototype.patch=function(t,e){return new wt(this.setCommonConfiguration(Q.patch(t),e))};var Ot={redirect:function(t){Tt().location=t},getDocument:function(){return Tt().document},getWindow:Tt,getOrigin:function(){var t=Tt().location,e=t.origin;return e||(e=vt.getOriginFromUrl(t.href)),e}};function kt(){}kt.prototype.getItem=function(){return null},kt.prototype.removeItem=function(){},kt.prototype.setItem=function(){};var xt=o((function(t,e){var n;n=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function o(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,!0!==o[u]&&(a+="="+o[u].split(";")[0]));return document.cookie=e+"="+n+a}}function s(t,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],s=0;s<o.length;s++){var a=o[s].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=e(a[0]);if(u=(r.read||r)(u,c)||e(u),n)try{u=JSON.parse(u)}catch(t){}if(i[c]=u,t===c)break}catch(t){}}return t?i[t]:i}}return i.set=o,i.get=function(t){return s(t,!1)},i.getJSON=function(t){return s(t,!0)},i.remove=function(e,n){o(e,"",t(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))},t.exports=n()}));function jt(){}function Ct(t){this.disableWarnings=t.disableWarnings}function At(t){if(this.warn=new Ct({}),this.storage=new jt,!0===t.__tryLocalStorageFirst)try{var e=Ot.getWindow().localStorage;e&&(this.storage=e)}catch(t){this.warn.warning(t),this.warn.warning("Can't use localStorage. Using CookieStorage instead.")}}function St(t){this.handler=new At(t)}function Et(t){this.storage=new St(t)}function Dt(t,e){return{error:t,errorDescription:e}}jt.prototype.getItem=function(t){return xt.get(t)},jt.prototype.removeItem=function(t){xt.remove(t)},jt.prototype.setItem=function(t,e,n){var r=vt.extend({expires:1},n);"https:"===Ot.getWindow().location.protocol&&(r.secure=!0),xt.set(t,e,r)},Ct.prototype.warning=function(t){this.disableWarnings||console.warn(t)},At.prototype.failover=function(){this.storage instanceof kt?this.warn.warning("DummyStorage: ignore failover"):this.storage instanceof jt?(this.warn.warning("CookieStorage: failing over DummyStorage"),this.storage=new kt):(this.warn.warning("LocalStorage: failing over CookieStorage"),this.storage=new jt)},At.prototype.getItem=function(t){try{return this.storage.getItem(t)}catch(e){return this.warn.warning(e),this.failover(),this.getItem(t)}},At.prototype.removeItem=function(t){try{return this.storage.removeItem(t)}catch(e){return this.warn.warning(e),this.failover(),this.removeItem(t)}},At.prototype.setItem=function(t,e,n){try{return this.storage.setItem(t,e,n)}catch(r){return this.warn.warning(r),this.failover(),this.setItem(t,e,n)}},St.prototype.getItem=function(t){var e=this.handler.getItem(t);try{return JSON.parse(e)}catch(t){return e}},St.prototype.removeItem=function(t){return this.handler.removeItem(t)},St.prototype.setItem=function(t,e,n){var r=JSON.stringify(e);return this.handler.setItem(t,r,n)},Et.prototype.set=function(t,e){var n={lastUsedConnection:t,lastUsedSub:e};this.storage.setItem("auth0.ssodata",JSON.stringify(n))},Et.prototype.get=function(){var t=this.storage.getItem("auth0.ssodata");if(t)return JSON.parse(t)};var Rt={buildResponse:Dt,invalidToken:function(t){return Dt("invalid_token",t)}};function qt(t,e){return(e=e||{}).ignoreCasing=!!e.ignoreCasing&&e.ignoreCasing,function(n,r){var i;return n||r?(!n&&r.err&&(n=r.err,r=null),!n&&r.error&&(n=r,r=null),n?(i={original:n},vt.updatePropertyOn(i,"original.response.req._data.password","*****"),n.response&&n.response.statusCode&&(i.statusCode=n.response.statusCode),n.response&&n.response.statusText&&(i.statusText=n.response.statusText),n.response&&n.response.body&&(n=n.response.body),n.err&&(n=n.err),i.code=n.code||n.error||n.error_code||n.status||null,i.description=n.errorDescription||n.error_description||n.description||n.error||n.details||n.err||null,e.forceLegacyError&&(i.error=i.code,i.error_description=i.description),n.error_codes&&n.error_details&&(i.errorDetails={codes:n.error_codes,details:n.error_details}),n.name&&(i.name=n.name),n.policy&&(i.policy=n.policy),t(i)):!r.type||"text/html"!==r.type&&"text/plain"!==r.type?e.ignoreCasing?t(null,r.body||r):t(null,vt.toCamelCase(r.body||r,[],{keepOriginal:e.keepOriginalCasing})):t(null,r.text)):t(Rt.buildResponse("generic_error","Something went wrong"))}}var Ut=["realm","audience","otp","client_id","client_secret","redirect_uri","scope","code","grant_type","username","password","refresh_token","assertion","client_assertion","client_assertion_type","code_verifier"],It=["connection","connection_scope","auth0Client","owp","device","realm","organization","invitation","protocol","_csrf","_intstate","login_ticket","client_id","response_type","response_mode","redirect_uri","audience","scope","state","nonce","display","prompt","screen_hint","max_age","ui_locales","claims_locales","id_token_hint","login_hint","acr_values","claims","registration","request","request_uri","code_challenge","code_challenge_method","access_type","display"],Pt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function Mt(t){var e={exports:{}};return t(e,e.exports),e.exports}var Lt=Mt((function(t,e){t.exports=function(){function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,i=void 0,o=void 0,s=function(t,e){d[n]=t,d[n+1]=e,2===(n+=2)&&(o?o(f):b())},a="undefined"!=typeof window?window:void 0,u=a||{},c=u.MutationObserver||u.WebKitMutationObserver,l="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var t=setTimeout;return function(){return t(f,1)}}var d=new Array(1e3);function f(){for(var t=0;t<n;t+=2)(0,d[t])(d[t+1]),d[t]=void 0,d[t+1]=void 0;n=0}var m,y,g,v,b=void 0;function w(t,e){var n=this,r=new this.constructor(O);void 0===r[T]&&U(r);var i=n._state;if(i){var o=arguments[i-1];s((function(){return R(i,r,o,n._result)}))}else E(n,r,t,e);return r}function _(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(O);return j(e,t),e}b=l?function(){return r.nextTick(f)}:c?(y=0,g=new c(f),v=document.createTextNode(""),g.observe(v,{characterData:!0}),function(){v.data=y=++y%2}):p?((m=new MessageChannel).port1.onmessage=f,function(){return m.port2.postMessage(0)}):void 0===a?function(){try{var t=Function("return this")().require("vertx");return void 0!==(i=t.runOnLoop||t.runOnContext)?function(){i(f)}:h()}catch(t){return h()}}():h();var T=Math.random().toString(36).substring(2);function O(){}var k=void 0;function x(e,n,r){n.constructor===e.constructor&&r===w&&n.constructor.resolve===_?function(t,e){1===e._state?A(t,e._result):2===e._state?S(t,e._result):E(e,void 0,(function(e){return j(t,e)}),(function(e){return S(t,e)}))}(e,n):void 0===r?A(e,n):t(r)?function(t,e,n){s((function(t){var r=!1,i=function(n,i,o,s){try{n.call(i,(function(n){r||(r=!0,e!==n?j(t,n):A(t,n))}),(function(e){r||(r=!0,S(t,e))}))}catch(t){return t}}(n,e);!r&&i&&(r=!0,S(t,i))}),t)}(e,n,r):A(e,n)}function j(t,e){if(t===e)S(t,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=e),null===r||"object"!==i&&"function"!==i)A(t,e);else{var n=void 0;try{n=e.then}catch(e){return void S(t,e)}x(t,e,n)}var r,i}function C(t){t._onerror&&t._onerror(t._result),D(t)}function A(t,e){t._state===k&&(t._result=e,t._state=1,0!==t._subscribers.length&&s(D,t))}function S(t,e){t._state===k&&(t._state=2,t._result=e,s(C,t))}function E(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+1]=n,i[o+2]=r,0===o&&t._state&&s(D,t)}function D(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,o=t._result,s=0;s<e.length;s+=3)i=e[s+n],(r=e[s])?R(n,r,i,o):i(o);t._subscribers.length=0}}function R(e,n,r,i){var o=t(r),s=void 0,a=void 0,u=!0;if(o){try{s=r(i)}catch(e){u=!1,a=e}if(n===s)return void S(n,new TypeError("A promises callback cannot return that same promise."))}else s=i;n._state!==k||(o&&u?j(n,s):!1===u?S(n,a):1===e?A(n,s):2===e&&S(n,s))}var q=0;function U(t){t[T]=q++,t._state=void 0,t._result=void 0,t._subscribers=[]}var I=function(){function t(t,n){this._instanceConstructor=t,this.promise=new t(O),this.promise[T]||U(this.promise),e(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&A(this.promise,this._result))):S(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===k&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===_){var i=void 0,o=void 0,s=!1;try{i=t.then}catch(t){s=!0,o=t}if(i===w&&t._state!==k)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===P){var a=new n(O);s?S(a,o):x(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===k&&(this._remaining--,2===t?S(r,n):this._result[e]=n),0===this._remaining&&A(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;E(t,void 0,(function(t){return n._settledAt(1,e,t)}),(function(t){return n._settledAt(2,e,t)}))},t}(),P=function(){function e(t){this[T]=q++,this._result=this._state=void 0,this._subscribers=[],O!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e((function(e){j(t,e)}),(function(e){S(t,e)}))}catch(e){S(t,e)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var n=this,r=n.constructor;return t(e)?n.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}();return P.prototype.then=w,P.all=function(t){return new I(this,t).promise},P.race=function(t){var n=this;return e(t)?new n((function(e,r){for(var i=t.length,o=0;o<i;o++)n.resolve(t[o]).then(e,r)})):new n((function(t,e){return e(new TypeError("You must pass an array to race."))}))},P.resolve=_,P.reject=function(t){var e=new this(O);return S(e,t),e},P._setScheduler=function(t){o=t},P._setAsap=function(t){s=t},P._asap=s,P.polyfill=function(){var t=void 0;if(void 0!==Pt)t=Pt;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=P},P.Promise=P,P}()})),Nt=Mt((function(t,e){var n;t.exports=n=n||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++)e[r+o>>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(r+o)%4*8;else for(o=0;o<i;o+=4)e[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],i=function(e){e=e;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o<e;o+=4){var a=i(4294967296*(n||t.random()));n=987654071*a(),r.push(4294967296*a()|0)}return new s.init(r,e)}}),a=r.enc={},u=a.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(n,e/2)}},c=a.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++)r.push(String.fromCharCode(e[i>>>2]>>>24-i%4*8&255));return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(n,e)}},l=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},p=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,a=i/(4*o),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*o,c=t.min(4*u,i);if(u){for(var l=0;l<u;l+=o)this._doProcessBlock(r,l);var p=r.splice(0,u);n.sigBytes-=c}return new s.init(p,c)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});i.Hasher=p.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new h.HMAC.init(t,n).finalize(e)}}});var h=r.algo={};return r}(Math)})),Bt=Mt((function(t,e){var n;t.exports=(n=Nt,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,s=e.algo,a=[],u=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(a[i]=n(t.pow(r,.5))),u[i]=n(t.pow(r,1/3)),i++),r++}();var c=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],p=n[6],h=n[7],d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else{var f=c[d-15],m=c[d-2];c[d]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+c[d-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+c[d-16]}var y=r&i^r&o^i&o,g=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&p)+u[d]+c[d];h=p,p=l,l=a,a=s+g|0,s=o,o=i,i=r,r=g+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+p|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(l),e.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)})),zt=Mt((function(t,e){var n,r;t.exports=(r=(n=Nt).lib.WordArray,n.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)i.push(r.charAt(s>>>6*(3-a)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var s=n.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return function(t,e,n){for(var i=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2,u=n[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=(a|u)<<24-o%4*8,o++}return r.create(i,o)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),Ht=Mt((function(t,e){t.exports=Nt.enc.Hex})),Ft=Mt((function(t,e){(function(){var e;function n(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):this.fromString(t,null==e&&"string"!=typeof t?256:e))}function r(){return new n(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(t,e,n,r,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,l=a*u+c*s;i=((u=s*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+a*c+(i>>>30),n[r++]=1073741823&u}return i},e=30):i&&"Netscape"!=navigator.appName?(n.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},e=26):(n.prototype.am=function(t,e,n,r,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,l=a*u+c*s;i=((u=s*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+a*c,n[r++]=268435455&u}return i},e=28),n.prototype.DB=e,n.prototype.DM=(1<<e)-1,n.prototype.DV=1<<e,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-e,n.prototype.F2=2*e-52;var o,s,a=new Array;for(o="0".charCodeAt(0),s=0;s<=9;++s)a[o++]=s;for(o="a".charCodeAt(0),s=10;s<36;++s)a[o++]=s;for(o="A".charCodeAt(0),s=10;s<36;++s)a[o++]=s;function u(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function c(t,e){var n=a[t.charCodeAt(e)];return null==n?-1:n}function l(t){var e=r();return e.fromInt(t),e}function p(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function h(t){this.m=t}function d(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function f(t,e){return t&e}function m(t,e){return t|e}function y(t,e){return t^e}function g(t,e){return t&~e}function v(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function b(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function w(){}function _(t){return t}function T(t){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}h.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},h.prototype.revert=function(t){return t},h.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},h.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},h.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},d.prototype.convert=function(t){var e=r();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(n.ZERO)>0&&this.m.subTo(e,e),e},d.prototype.revert=function(t){var e=r();return t.copyTo(e),this.reduce(e),e},d.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},d.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},n.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var a=8==r?255&t[i]:c(t,i);a<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&0!=(128&t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},n.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},n.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},n.prototype.lShiftTo=function(t,e){var n,r=t%this.DB,i=this.DB-r,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)e[n+s+1]=this[n]>>i|a,a=(this[n]&o)<<r;for(n=s-1;n>=0;--n)e[n]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},n.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&o)<<i,e[s-n]=this[s]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},n.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},n.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),o=r.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+r.t]=r.am(0,i[o],e,o,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},n.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},n.prototype.divRemTo=function(t,e,i){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=e&&e.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=r());var a=r(),u=this.s,c=t.s,l=this.DB-p(o[o.t-1]);l>0?(o.lShiftTo(l,a),s.lShiftTo(l,i)):(o.copyTo(a),s.copyTo(i));var h=a.t,d=a[h-1];if(0!=d){var f=d*(1<<this.F1)+(h>1?a[h-2]>>this.F2:0),m=this.FV/f,y=(1<<this.F1)/f,g=1<<this.F2,v=i.t,b=v-h,w=null==e?r():e;for(a.dlShiftTo(b,w),i.compareTo(w)>=0&&(i[i.t++]=1,i.subTo(w,i)),n.ONE.dlShiftTo(h,w),w.subTo(a,a);a.t<h;)a[a.t++]=0;for(;--b>=0;){var _=i[--v]==d?this.DM:Math.floor(i[v]*m+(i[v-1]+g)*y);if((i[v]+=a.am(0,_,i,b,0,h))<_)for(a.dlShiftTo(b,w),i.subTo(w,i);i[v]<--_;)i.subTo(w,i)}null!=e&&(i.drShiftTo(h,e),u!=c&&n.ZERO.subTo(e,e)),i.t=h,i.clamp(),l>0&&i.rShiftTo(l,i),u<0&&n.ZERO.subTo(i,i)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var i=r(),o=r(),s=e.convert(this),a=p(t)-1;for(s.copyTo(i);--a>=0;)if(e.sqrTo(i,o),(t&1<<a)>0)e.mulTo(o,s,i);else{var u=i;i=o,o=u}return e.revert(i)},n.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(n=this[s]>>a)>0&&(i=!0,o=u(n));s>=0;)a<e?(n=(this[s]&(1<<a)-1)<<e-a,n|=this[--s]>>(a+=this.DB-e)):(n=this[s]>>(a-=e)&r,a<=0&&(a+=this.DB,--s)),n>0&&(i=!0),i&&(o+=u(n));return i?o:"0"},n.prototype.negate=function(){var t=r();return n.ZERO.subTo(this,t),t},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+p(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(t){var e=r();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},n.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new h(e):new d(e),this.exp(t,n)},n.ZERO=l(0),n.ONE=l(1),w.prototype.convert=_,w.prototype.revert=_,w.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},w.prototype.sqrTo=function(t,e){t.squareTo(e)},T.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=r();return t.copyTo(e),this.reduce(e),e},T.prototype.revert=function(t){return t},T.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},T.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},T.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var O,k,x,j=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],C=(1<<26)/j[j.length-1];function A(){var t;t=(new Date).getTime(),k[x++]^=255&t,k[x++]^=t>>8&255,k[x++]^=t>>16&255,k[x++]^=t>>24&255,x>=I&&(x-=I)}if(n.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=l(n),o=r(),s=r(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(n+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a},n.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),o=!1,s=0,a=0,u=0;u<t.length;++u){var l=c(t,u);l<0?"-"==t.charAt(u)&&0==this.signum()&&(o=!0):(a=e*a+l,++s>=r&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),m,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},n.prototype.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},n.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},n.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.prototype.multiplyLowerTo=function(t,e,n){var r,i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(r=Math.min(t.t,e);i<r;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()},n.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},n.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},n.prototype.millerRabin=function(t){var e=this.subtract(n.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var o=e.shiftRight(i);(t=t+1>>1)>j.length&&(t=j.length);for(var s=r(),a=0;a<t;++a){s.fromInt(j[Math.floor(Math.random()*j.length)]);var u=s.modPow(o,this);if(0!=u.compareTo(n.ONE)&&0!=u.compareTo(e)){for(var c=1;c++<i&&0!=u.compareTo(e);)if(0==(u=u.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=u.compareTo(e))return!1}}return!0},n.prototype.clone=function(){var t=r();return this.copyTo(t),t},n.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},n.prototype.equals=function(t){return 0==this.compareTo(t)},n.prototype.min=function(t){return this.compareTo(t)<0?this:t},n.prototype.max=function(t){return this.compareTo(t)>0?this:t},n.prototype.and=function(t){var e=r();return this.bitwiseTo(t,f,e),e},n.prototype.or=function(t){var e=r();return this.bitwiseTo(t,m,e),e},n.prototype.xor=function(t){var e=r();return this.bitwiseTo(t,y,e),e},n.prototype.andNot=function(t){var e=r();return this.bitwiseTo(t,g,e),e},n.prototype.not=function(){for(var t=r(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},n.prototype.shiftLeft=function(t){var e=r();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},n.prototype.shiftRight=function(t){var e=r();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},n.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+v(this[t]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=b(this[n]^e);return t},n.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},n.prototype.setBit=function(t){return this.changeBit(t,m)},n.prototype.clearBit=function(t){return this.changeBit(t,g)},n.prototype.flipBit=function(t){return this.changeBit(t,y)},n.prototype.add=function(t){var e=r();return this.addTo(t,e),e},n.prototype.subtract=function(t){var e=r();return this.subTo(t,e),e},n.prototype.multiply=function(t){var e=r();return this.multiplyTo(t,e),e},n.prototype.divide=function(t){var e=r();return this.divRemTo(t,e,null),e},n.prototype.remainder=function(t){var e=r();return this.divRemTo(t,null,e),e},n.prototype.divideAndRemainder=function(t){var e=r(),n=r();return this.divRemTo(t,e,n),new Array(e,n)},n.prototype.modPow=function(t,e){var n,i,o=t.bitLength(),s=l(1);if(o<=0)return s;n=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new h(e):e.isEven()?new T(e):new d(e);var a=new Array,u=3,c=n-1,f=(1<<n)-1;if(a[1]=i.convert(this),n>1){var m=r();for(i.sqrTo(a[1],m);u<=f;)a[u]=r(),i.mulTo(m,a[u-2],a[u]),u+=2}var y,g,v=t.t-1,b=!0,w=r();for(o=p(t[v])-1;v>=0;){for(o>=c?y=t[v]>>o-c&f:(y=(t[v]&(1<<o+1)-1)<<c-o,v>0&&(y|=t[v-1]>>this.DB+o-c)),u=n;0==(1&y);)y>>=1,--u;if((o-=u)<0&&(o+=this.DB,--v),b)a[y].copyTo(s),b=!1;else{for(;u>1;)i.sqrTo(s,w),i.sqrTo(w,s),u-=2;u>0?i.sqrTo(s,w):(g=s,s=w,w=g),i.mulTo(w,a[y],s)}for(;v>=0&&0==(t[v]&1<<o);)i.sqrTo(s,w),g=s,s=w,w=g,--o<0&&(o=this.DB-1,--v)}return i.revert(s)},n.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return n.ZERO;for(var r=t.clone(),i=this.clone(),o=l(1),s=l(0),a=l(0),u=l(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),e?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),e&&o.subTo(a,o),s.subTo(u,s)):(i.subTo(r,i),e&&a.subTo(o,a),u.subTo(s,u))}return 0!=i.compareTo(n.ONE)?n.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u},n.prototype.pow=function(t){return this.exp(t,new w)},n.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},n.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=j[j.length-1]){for(e=0;e<j.length;++e)if(n[0]==j[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<j.length;){for(var r=j[e],i=e+1;i<j.length&&r<C;)r*=j[i++];for(r=n.modInt(r);e<i;)if(r%j[e++]==0)return!1}return n.millerRabin(t)},n.prototype.square=function(){var t=r();return this.squareTo(t),t},n.prototype.Barrett=T,null==k){var S;if(k=new Array,x=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var E=new Uint8Array(32);for(window.crypto.getRandomValues(E),S=0;S<32;++S)k[x++]=E[S]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var D=window.crypto.random(32);for(S=0;S<D.length;++S)k[x++]=255&D.charCodeAt(S)}for(;x<I;)S=Math.floor(65536*Math.random()),k[x++]=S>>>8,k[x++]=255&S;x=0,A()}function R(){if(null==O){for(A(),(O=new U).init(k),x=0;x<k.length;++x)k[x]=0;x=0}return O.next()}function q(){}function U(){this.i=0,this.j=0,this.S=new Array}q.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=R()},U.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)r=this.S[e],this.S[e]=this.S[n=n+this.S[e]+t[e%t.length]&255],this.S[n]=r;this.i=0,this.j=0},U.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]};var I=256;t.exports={default:n,BigInteger:n,SecureRandom:q}}).call(Pt)})),Vt={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},Wt={sha256:Bt};function Jt(t,e){if(this.n=null,this.e=0,!(null!=t&&null!=e&&t.length>0&&e.length>0))throw new Error("Invalid key data");this.n=new Ft.BigInteger(t,16),this.e=parseInt(e,16)}Jt.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new Ft.BigInteger(e,16);if(n.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var r=function(t){for(var e in Vt){var n=Vt[e],r=n.length;if(t.substring(0,r)===n)return{alg:e,hash:t.substring(r)}}return[]}(n.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===r.length)return!1;if(!Wt.hasOwnProperty(r.alg))throw new Error("Hashing algorithm is not supported.");var i=Wt[r.alg](t).toString();return r.hash===i};for(var $t=[],Xt=[],Zt="undefined"!=typeof Uint8Array?Uint8Array:Array,Kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qt=0,Gt=Kt.length;Qt<Gt;++Qt)$t[Qt]=Kt[Qt],Xt[Kt.charCodeAt(Qt)]=Qt;Xt["-".charCodeAt(0)]=62,Xt["_".charCodeAt(0)]=63;var Yt=function(t){var e,n,r=function(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}(t),i=r[0],o=r[1],s=new Zt(function(t,e,n){return 3*(e+n)/4-n}(0,i,o)),a=0,u=o>0?i-4:i;for(n=0;n<u;n+=4)e=Xt[t.charCodeAt(n)]<<18|Xt[t.charCodeAt(n+1)]<<12|Xt[t.charCodeAt(n+2)]<<6|Xt[t.charCodeAt(n+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=255&e;return 2===o&&(e=Xt[t.charCodeAt(n)]<<2|Xt[t.charCodeAt(n+1)]>>4,s[a++]=255&e),1===o&&(e=Xt[t.charCodeAt(n)]<<10|Xt[t.charCodeAt(n+1)]<<4|Xt[t.charCodeAt(n+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e),s};function te(t){var e=t.length%4;return 0===e?t:t+new Array(4-e+1).join("=")}function ee(t){return t=te(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent(function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}(Yt(t)).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function ne(t){return function(t){for(var e="",n=0;n<t.length;n++){var r=t[n].toString(16);e+=2===r.length?r:"0"+r}return e}(Yt(te(t)))}var re=Mt((function(t){var e,n;e=Pt,n=function(){function t(t){var e=[];if(0===t.length)return"";if("string"!=typeof t[0])throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var n=t.shift();t[0]=n+t[0]}t[0]=t[0].match(/^file:\/\/\//)?t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<t.length;r++){var i=t[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=i.replace(/[\/]+$/,r<t.length-1?"":"/"),e.push(i))}var o=e.join("/"),s=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return s.shift()+(s.length>0?"?":"")+s.join("&")}return function(){return t("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=n():e.urljoin=n()}));function ie(t,e){return e=e||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],s=[],a={},u=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return s},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var c in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),s.push([e,n]),a[e]=a[e]?a[e]+","+n:n})),n(u())},i.onerror=r,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(c,e.headers[c]);i.send(e.body||null)}))}function oe(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function se(t){this.name="ConfigurationError",this.message=t||""}function ae(t){this.name="TokenValidationError",this.message=t||""}se.prototype=Error.prototype,ae.prototype=Error.prototype;var ue=function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t}();Lt.polyfill();var ce=function(t){return"number"==typeof t},le=function(){return new Date};function pe(t){var e=t||{};if(this.jwksCache=e.jwksCache||new ue,this.expectedAlg=e.expectedAlg||"RS256",this.issuer=e.issuer,this.audience=e.audience,this.leeway=0===e.leeway?0:e.leeway||60,this.jwksURI=e.jwksURI,this.maxAge=e.maxAge,this.__clock="function"==typeof e.__clock?e.__clock:le,this.leeway<0||this.leeway>300)throw new se("The leeway should be positive and lower than five minutes.");if("RS256"!==this.expectedAlg)throw new se('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "RS256".')}function he(t,e){this.plugins=e;for(var n=0;n<this.plugins.length;n++){if(this.plugins[n].version!==ot.raw){var r="";throw this.plugins[n].constructor&&this.plugins[n].constructor.name&&(r=this.plugins[n].constructor.name),new Error("Plugin "+r+" version ("+this.plugins[n].version+") is not compatible with the SDK version ("+ot.raw+")")}this.plugins[n].setWebAuth(t)}}pe.prototype.verify=function(t,e,n){if(!n&&e&&"function"==typeof e&&(n=e,e=void 0),!t)return n(new ae("ID token is required but missing"),null);var r=this.decode(t);if(r instanceof Error)return n(new ae("ID token could not be decoded"),null);var i=r.encoded.header+"."+r.encoded.payload,o=ne(r.encoded.signature),s=r.header.alg,a=r.header.kid,u=r.payload.aud,c=r.payload.sub,l=r.payload.iss,p=r.payload.exp,h=r.payload.nbf,d=r.payload.iat,f=r.payload.azp,m=r.payload.auth_time,y=r.payload.nonce,g=this.__clock(),v=this;if(v.expectedAlg!==s)return n(new ae('Signature algorithm of "'+s+'" is not supported. Expected the ID token to be signed with "RS256".'),null);this.getRsaVerifier(l,a,(function(t,s){if(t)return n(t,null);if(!s.verify(i,o))return n(new ae("Invalid ID token signature."),null);if(!l||"string"!=typeof l)return n(new ae("Issuer (iss) claim must be a string present in the ID token"),null);if(v.issuer!==l)return n(new ae('Issuer (iss) claim mismatch in the ID token, expected "'+v.issuer+'", found "'+l+'"'),null);if(!c||"string"!=typeof c)return n(new ae("Subject (sub) claim must be a string present in the ID token"),null);if(!u||"string"!=typeof u&&!Array.isArray(u))return n(new ae("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(u)&&!u.includes(v.audience))return n(new ae('Audience (aud) claim mismatch in the ID token; expected "'+v.audience+'" but was not one of "'+u.join(", ")+'"'),null);if("string"==typeof u&&v.audience!==u)return n(new ae('Audience (aud) claim mismatch in the ID token; expected "'+v.audience+'" but found "'+u+'"'),null);if(e){if(!y||"string"!=typeof y)return n(new ae("Nonce (nonce) claim must be a string present in the ID token"),null);if(y!==e)return n(new ae('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+y+'"'),null)}if(Array.isArray(u)&&u.length>1){if(!f||"string"!=typeof f)return n(new ae("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(f!==v.audience)return n(new ae('Authorized Party (azp) claim mismatch in the ID token; expected "'+v.audience+'", found "'+f+'"'),null)}if(!p||!ce(p))return n(new ae("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!d||!ce(d))return n(new ae("Issued At (iat) claim must be a number present in the ID token"),null);var a=p+v.leeway,b=new Date(0);if(b.setUTCSeconds(a),g>b)return n(new ae('Expiration Time (exp) claim error in the ID token; current time "'+g+'" is after expiration time "'+b+'"'),null);if(h&&ce(h)){var w=h-v.leeway,_=new Date(0);if(_.setUTCSeconds(w),g<_)return n(new ae('Not Before Time (nbf) claim error in the ID token; current time "'+g+'" is before the not before time "'+_+'"'),null)}if(v.maxAge){if(!m||!ce(m))return n(new ae("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var T=m+v.maxAge+v.leeway,O=new Date(0);if(O.setUTCSeconds(T),g>O)return n(new ae('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+g+'" is after last auth time at "'+O+'"'),null)}return n(null,r.payload)}))},pe.prototype.getRsaVerifier=function(t,e,n){var r=this,i=t+e;Promise.resolve(this.jwksCache.has(i)).then((function(n){return n?r.jwksCache.get(i):(o={jwksURI:r.jwksURI,iss:t,kid:e},("undefined"==typeof fetch?ie:fetch)(o.jwksURI||re(o.iss,".well-known","jwks.json")).then(oe).then((function(t){var e,n,r,i=null;for(e=0;e<t.keys.length&&null===i;e++)(n=t.keys[e]).kid===o.kid&&(i=n);if(!i)throw new Error('Could not find a public key for Key ID (kid) "'+o.kid+'"');return{modulus:ne((r=i).n),exp:ne(r.e)}})).catch((function(t){throw t})));var o})).then((function(t){if(!t||!t.modulus||!t.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(r.jwksCache.set(i,t)).then((function(){n&&n(null,new Jt(t.modulus,t.exp))}))})).catch((function(t){n&&n(t)}))},pe.prototype.decode=function(t){var e,n,r=t.split(".");if(3!==r.length)return new ae("Cannot decode a malformed JWT");try{e=JSON.parse(ee(r[0])),n=JSON.parse(ee(r[1]))}catch(t){return new ae("Token header or payload is not valid JSON")}return{header:e,payload:n,encoded:{header:r[0],payload:r[1],signature:r[2]}}},pe.prototype.validateAccessToken=function(t,e,n,r){if(this.expectedAlg!==e)return r(new ae('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var i,o=Bt(t),s=Ht.stringify(o),a=s.substring(0,s.length/2),u=Ht.parse(a),c=zt.stringify(u);return r((i={"+":"-","/":"_","=":""},c.replace(/[+/=]/g,(function(t){return i[t]}))!==n?new ae("Invalid access_token"):null))},he.prototype.get=function(t){for(var e=0;e<this.plugins.length;e++)if(this.plugins[e].supports(t))return this.plugins[e].init();return null};var de=function(t){var e=new Uint8Array(t),n=[],r="0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~",i=Ot.getWindow().crypto||Ot.getWindow().msCrypto;if(!i)return null;for(var o=i.getRandomValues(e),s=0;s<o.length;s++)n.push(r[o[s]%r.length]);return n.join("")};function fe(t){var e=t.transaction||{};this.namespace=e.namespace||"com.auth0.auth.",this.keyLength=e.keyLength||32,this.storage=new St(t),this.options=t}function me(t){if(this.url=t.url,this.callback=t.callback,this.timeout=t.timeout||6e4,this.timeoutCallback=t.timeoutCallback||null,this.eventListenerType=t.eventListenerType||"message",this.iframe=null,this.timeoutHandle=null,this._destroyTimeout=null,this.transientMessageEventListener=null,this.proxyEventListener=null,this.eventValidator=t.eventValidator||{isValid:function(){return!0}},"function"!=typeof this.callback)throw new Error("options.callback must be a function")}function ye(t){this.webAuth=t,this.warn=new Ct(t.baseOptions)}function ge(t,e){this.webAuth=t,this.baseOptions=e,this.request=new _t(e),this.webMessageHandler=new ye(t),this.storage=new St(e)}function ve(t,e){return["co/verifier",encodeURIComponent(t),encodeURIComponent(e)].join("/")}function be(t,e){this.webAuth=t,this.baseOptions=e,this.crossOriginAuthentication=new ge(t,this.baseOptions),this.warn=new Ct({disableWarnings:!!e._disableDeprecationWarnings})}fe.prototype.process=function(t){if(!t.responseType)throw new Error("responseType is required");var e=t.realm||t.connection,n=-1!==t.responseType.indexOf("id_token"),r=this.generateTransaction(t.appState,t.state,t.nonce,e,n,t.organization);return t.state||(t.state=r.state),n&&!t.nonce&&(t.nonce=r.nonce),t},fe.prototype.generateTransaction=function(t,e,n,r,i,o){if(e=e||de(this.keyLength),n=n||(i?de(this.keyLength):null),Ot.getWindow().location.host!==this.options.domain){var s={nonce:n,appState:t,state:e,lastUsedConnection:r};o&&(s.organization=o),this.storage.setItem(this.namespace+e,s,{expires:1/48})}return{state:e,nonce:n}},fe.prototype.getStoredTransaction=function(t){var e;return e=this.storage.getItem(this.namespace+t),this.clearTransaction(t),e},fe.prototype.clearTransaction=function(t){this.storage.removeItem(this.namespace+t)},me.prototype.init=function(){var t=this,e=Ot.getWindow();switch(this.iframe=e.document.createElement("iframe"),this.iframe.style.display="none",this.proxyEventListener=function(e){t.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=e;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error("Unsupported event listener type: "+this.eventListenerType)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),e.document.body.appendChild(this.iframe),this.iframe.src=this.url,this.timeoutHandle=setTimeout((function(){t.timeoutHandler()}),this.timeout)},me.prototype.eventListener=function(t){var e={event:t,sourceObject:this.eventSourceObject};this.eventValidator.isValid(e)&&(this.destroy(),this.callback(e))},me.prototype.timeoutHandler=function(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()},me.prototype.destroy=function(){var t=this;clearTimeout(this.timeoutHandle),this._destroyTimeout=setTimeout((function(){t.eventSourceObject.removeEventListener(t.eventListenerType,t.proxyEventListener,!1),t.iframe.parentNode&&t.iframe.parentNode.removeChild(t.iframe)}),0)},ye.prototype.run=function(t,e){var n=this;t.responseMode="web_message",t.prompt="none";var r=Ot.getOrigin(),i=vt.getOriginFromUrl(t.redirectUri);if(i&&r!==i)return e({error:"origin_mismatch",error_description:"The redirectUri's origin ("+i+") should match the window's origin ("+r+")."});!function(t,e,n){new me({url:t,eventListenerType:"message",callback:function(t){n(null,t)},timeout:e.timeout,eventValidator:{isValid:function(t){return"authorization_response"===t.event.data.type&&e.state===t.event.data.response.state}},timeoutCallback:function(){n({error:"timeout",error_description:"Timeout during executing web_message communication",state:e.state})}}).init()}(this.webAuth.client.buildAuthorizeUrl(t),t,(function(r,i){var o=r;if(!r&&i.event.data.response.error&&(o=i.event.data.response),!o){var s=i.event.data.response;return n.webAuth.validateAuthenticationResponse(t,s,e)}return"consent_required"===o.error&&"localhost"===Ot.getWindow().location.hostname&&n.warn.warning("Consent Required. Consent can't be skipped on localhost. Read more here: https://auth0.com/docs/api-auth/user-consent#skipping-consent-for-first-party-clients"),n.webAuth.transactionManager.clearTransaction(o.state),e(vt.pick(o,["error","error_description"]))}))},ge.prototype.login=function(t,e){var n=this,r=s(this.baseOptions.rootUrl,"/co/authenticate");t.username=t.username||t.email,delete t.email;var i={client_id:t.clientID||this.baseOptions.clientID,username:t.username};t.password&&(i.password=t.password),t.otp&&(i.otp=t.otp);var o=t.realm||this.baseOptions.realm;if(o){var a=t.credentialType||this.baseOptions.credentialType||"http://auth0.com/oauth/grant-type/password-realm";i.realm=o,i.credential_type=a}else i.credential_type="password";this.request.post(r).withCredentials().send(i).end((function(r,i){if(r){var o=r.response&&r.response.body||{error:"request_error",error_description:JSON.stringify(r)};return qt(e,{forceLegacyError:!0})(o)}function s(){var r=!0===t.popup;t=vt.blacklist(t,["password","credentialType","otp","popup","onRedirecting"]);var o=vt.merge(t).with({loginTicket:i.body.login_ticket}),s=ve(n.baseOptions.rootUrl,i.body.co_id);n.storage.setItem(s,i.body.co_verifier,{expires:1/96}),r?n.webMessageHandler.run(o,qt(e,{forceLegacyError:!0})):n.webAuth.authorize(o)}"function"==typeof t.onRedirecting?t.onRedirecting(s):s()}))},ge.prototype.callback=function(){var t=decodeURIComponent(function(t){var e=("&"+Ot.getWindow().location.hash.substring(1)).split("&origin=");if(2===e.length)return e.pop().split("&").shift()}()),e=Ot.getWindow(),n=this;e.addEventListener("message",(function(t){if("co_verifier_request"===t.data.type){var e=ve(t.origin,t.data.request.id),r=function(t,e){try{var n=t.getItem(e);return t.removeItem(e),n||""}catch(t){return""}}(n.storage,e);t.source.postMessage({type:"co_verifier_response",response:{verifier:r}},t.origin)}})),e.parent.postMessage({type:"ready"},t)},be.prototype.loginWithCredentials=function(t,e){t.realm=t.realm||t.connection,delete t.connection,this.crossOriginAuthentication.login(t,e)},be.prototype.signupAndLogin=function(t,e){var n=this;return this.webAuth.client.dbConnection.signup(t,(function(r){return r?e(r):(t.realm=t.realm||t.connection,delete t.connection,n.webAuth.login(t,e))}))};var we=o((function(t){var e=function(){function t(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener&&t.addEventListener(e,n,!1)}function e(t,e,n){t.detachEvent?t.detachEvent("on"+e,n):t.removeEventListener&&t.removeEventListener(e,n,!1)}function n(t){/^https?:\/\//.test(t)||(t=window.location.href);var e=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(t);return e?e[1]:t}var r=function(){if("undefined"==typeof navigator)return!1;var t=-1,e=navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1)):e.indexOf("Trident")>-1&&null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1)),t>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(i,o){if(!o)throw"missing required callback argument";var s,a;i.url||(s="missing required 'url' parameter"),i.relay_url||(s="missing required 'relay_url' parameter"),s&&setTimeout((function(){o(s)}),0),i.window_name||(i.window_name=null),i.window_features&&!function(){try{var t=navigator.userAgent;return-1!=t.indexOf("Fennec/")||-1!=t.indexOf("Firefox/")&&-1!=t.indexOf("Android")}catch(t){}return!1}()||(i.window_features=void 0);var u,c=i.origin||n(i.url);if(c!==n(i.relay_url))return setTimeout((function(){o("invalid arguments: origin of url and relay_url must match")}),0);r&&((a=document.createElement("iframe")).setAttribute("src",i.relay_url),a.style.display="none",a.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(a),u=a.contentWindow);var l=i.popup||window.open(i.url,i.window_name,i.window_features);i.popup&&(l.location.href=i.url),u||(u=l);var p=setInterval((function(){l&&l.closed&&(d(),o&&(o("User closed the popup window"),o=null))}),500),h=JSON.stringify({a:"request",d:i.params});function d(){if(a&&document.body.removeChild(a),a=void 0,p&&(p=clearInterval(p)),e(window,"message",f),e(window,"unload",d),l)try{l.close()}catch(t){u.postMessage("die",c)}l=u=void 0}function f(t){if(t.origin===c){try{var e=JSON.parse(t.data)}catch(t){if(o)return o(t);throw t}"ready"===e.a?u.postMessage(h,c):"error"===e.a?(d(),o&&(o(e.d),o=null)):"response"===e.a&&(d(),o&&(o(null,e.d),o=null))}}return t(window,"unload",d),t(window,"message",f),{originalPopup:l,close:d,focus:function(){if(l)try{l.focus()}catch(t){}}}},onOpen:function(n){var i="*",o=r?function(){for(var t=window.opener.frames,e=t.length-1;e>=0;e--)try{if(t[e].location.protocol===window.location.protocol&&t[e].location.host===window.location.host&&"__winchan_relay_frame"===t[e].name)return t[e]}catch(t){}}():window.opener;if(!o)throw"can't find relay frame";function s(t){t=JSON.stringify(t),r?o.doPost(t,i):o.postMessage(t,i)}function a(t){if("die"===t.data)try{window.close()}catch(t){}}t(r?o:window,"message",(function t(r){var o;try{o=JSON.parse(r.data)}catch(t){}o&&"request"===o.a&&(e(window,"message",t),i=r.origin,n&&setTimeout((function(){n(i,o.d,(function(t){n=void 0,s({a:"response",d:t})}))}),0))})),t(r?o:window,"message",a);try{s({a:"ready"})}catch(e){t(o,"load",(function(t){s({a:"ready"})}))}var u=function(){try{e(r?o:window,"message",a)}catch(t){}n&&s({a:"error",d:"client closed window"}),n=void 0;try{window.close()}catch(t){}};return t(window,"unload",u),{detach:function(){e(window,"unload",u)}}}}:{open:function(t,e,n,r){setTimeout((function(){r("unsupported browser")}),0)},onOpen:function(t){setTimeout((function(){t("unsupported browser")}),0)}}}();t.exports&&(t.exports=e)}));function _e(){this._current_popup=null}function Te(t,e){this.baseOptions=e,this.baseOptions.popupOrigin=e.popupOrigin,this.client=t.client,this.webAuth=t,this.transactionManager=new fe(this.baseOptions),this.crossOriginAuthentication=new ge(t,this.baseOptions),this.warn=new Ct({disableWarnings:!!e._disableDeprecationWarnings})}function Oe(t){this.authenticationUrl=t.authenticationUrl,this.timeout=t.timeout||6e4,this.handler=null,this.postMessageDataType=t.postMessageDataType||!1,this.postMessageOrigin=t.postMessageOrigin||Ot.getWindow().location.origin||Ot.getWindow().location.protocol+"//"+Ot.getWindow().location.hostname+(Ot.getWindow().location.port?":"+Ot.getWindow().location.port:"")}function ke(t){this.baseOptions=t,this.request=new _t(t),this.transactionManager=new fe(this.baseOptions)}function xe(t,e){this.baseOptions=e,this.client=t,this.baseOptions.universalLoginPage=!0,this.request=new _t(this.baseOptions),this.warn=new Ct({disableWarnings:!!e._disableDeprecationWarnings})}_e.prototype.calculatePosition=function(t){var e=t.width||500,n=t.height||600,r=Ot.getWindow(),i=void 0!==r.screenX?r.screenX:r.screenLeft,o=void 0!==r.screenY?r.screenY:r.screenTop,s=void 0!==r.outerWidth?r.outerWidth:r.document.body.clientWidth,a=void 0!==r.outerHeight?r.outerHeight:r.document.body.clientHeight;return{width:e,height:n,left:t.left||i+(s-e)/2,top:t.top||o+(a-n)/2}},_e.prototype.preload=function(t){var e=this,n=Ot.getWindow(),r=this.calculatePosition(t.popupOptions||{}),i=vt.merge(r).with(t.popupOptions),o=t.url||"about:blank",s=D(i,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed||(this._current_popup=n.open(o,"auth0_signup_popup",s),this._current_popup.kill=function(){this.close(),e._current_popup=null}),this._current_popup},_e.prototype.load=function(t,e,n,r){var i=this,o=this.calculatePosition(n.popupOptions||{}),s=vt.merge(o).with(n.popupOptions),a=vt.merge({url:t,relay_url:e,window_features:D(s,{delimiter:",",encode:!1}),popup:this._current_popup}).with(n),u=we.open(a,(function(t,e){if(!t||"SyntaxError"!==t.name)return i._current_popup=null,r(t,e)}));return u.focus(),u},Te.prototype.buildPopupHandler=function(){var t=this.baseOptions.plugins.get("popup.getPopupHandler");return t?t.getPopupHandler():new _e},Te.prototype.preload=function(t){t=t||{};var e=this.buildPopupHandler();return e.preload(t),e},Te.prototype.getPopupHandler=function(t,e){return t.popupHandler?t.popupHandler:e?this.preload(t):this.buildPopupHandler()},Te.prototype.callback=function(t){var e=this,n=Ot.getWindow(),r=(t=t||{}).popupOrigin||this.baseOptions.popupOrigin||Ot.getOrigin();n.opener?we.onOpen((function(n,i,o){if(n!==r)return o({error:"origin_mismatch",error_description:"The popup's origin ("+n+") should match the `popupOrigin` parameter ("+r+")."});e.webAuth.parseHash(t||{},(function(t,e){return o(t||e)}))})):n.doPost=function(t){n.parent&&n.parent.postMessage(t,r)}},Te.prototype.authorize=function(t,e){var n,r,i={},o=this.baseOptions.plugins.get("popup.authorize"),a=vt.merge(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce","organization","invitation"]).with(vt.blacklist(t,["popupHandler"]));return lt.check(a,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=s(this.baseOptions.rootUrl,"relay.html"),t.owp?a.owp=!0:(i.origin=function(t){/^https?:\/\//.test(t)||(t=window.location.href);var e=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(t);return e?e[1]:t}(a.redirectUri),r=a.redirectUri),t.popupOptions&&(i.popupOptions=vt.pick(t.popupOptions,["width","height","top","left"])),o&&(a=o.processParams(a)),(a=this.transactionManager.process(a)).scope=a.scope||"openid profile email",delete a.domain,n=this.client.buildAuthorizeUrl(a),this.getPopupHandler(t).load(n,r,i,qt(e,{keepOriginalCasing:!0}))},Te.prototype.loginWithCredentials=function(t,e){t.realm=t.realm||t.connection,t.popup=!0,t=vt.merge(this.baseOptions,["redirectUri","responseType","state","nonce"]).with(vt.blacklist(t,["popupHandler","connection"])),t=this.transactionManager.process(t),this.crossOriginAuthentication.login(t,e)},Te.prototype.passwordlessVerify=function(t,e){var n=this;return this.client.passwordless.verify(vt.blacklist(t,["popupHandler"]),(function(r){if(r)return e(r);t.username=t.phoneNumber||t.email,t.password=t.verificationCode,delete t.email,delete t.phoneNumber,delete t.verificationCode,delete t.type,n.client.loginWithResourceOwner(t,e)}))},Te.prototype.signupAndLogin=function(t,e){var n=this;return this.client.dbConnection.signup(t,(function(r){if(r)return e(r);n.loginWithCredentials(t,e)}))},Oe.create=function(t){return new Oe(t)},Oe.prototype.login=function(t,e){this.handler=new me({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:t?"message":"load",callback:this.getCallbackHandler(e,t),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){e(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")},usePostMessage:t||!1}),this.handler.init()},Oe.prototype.getEventValidator=function(){var t=this;return{isValid:function(e){switch(e.event.type){case"message":return e.event.origin===t.postMessageOrigin&&e.event.source===t.handler.iframe.contentWindow&&(!1===t.postMessageDataType||e.event.data.type&&e.event.data.type===t.postMessageDataType);case"load":if("about:"===e.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},Oe.prototype.getCallbackHandler=function(t,e){return function(n){var r;r=e?"object"==typeof n.event.data&&n.event.data.hash?n.event.data.hash:n.event.data:n.sourceObject.contentWindow.location.hash,t(null,r)}},ke.prototype.login=function(t,e){var n,r;return n=s(this.baseOptions.rootUrl,"usernamepassword","login"),t.username=t.username||t.email,t=vt.blacklist(t,["email","onRedirecting"]),r=vt.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(t),r=this.transactionManager.process(r),r=vt.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(qt(e))},ke.prototype.callback=function(t){var e,n=Ot.getDocument();(e=n.createElement("div")).innerHTML=t,n.body.appendChild(e).children[0].submit()},xe.prototype.login=function(t,e){if(Ot.getWindow().location.host!==this.baseOptions.domain)throw new Error("This method is meant to be used only inside the Universal Login Page.");var n,r=vt.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(t);return lt.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(n=new ke(this.baseOptions)).login(r,(function(r,i){if(r)return e(r);function o(){n.callback(i)}if("function"==typeof t.onRedirecting)return t.onRedirecting((function(){o()}));o()}))},xe.prototype.signupAndLogin=function(t,e){var n=this;return n.client.client.dbConnection.signup(t,(function(r){return r?e(r):n.login(t,e)}))},xe.prototype.getSSOData=function(t,e){var n,r="";return"function"==typeof t&&(e=t,t=!1),lt.check(t,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),t&&(r="?"+D({ldaps:1,client_id:this.baseOptions.clientID})),n=s(this.baseOptions.rootUrl,"user","ssodata",r),this.request.get(n,{noHeaders:!0}).withCredentials().end(qt(e))};var je=function(){},Ce={lang:"en",templates:{auth0:function(t){var e="code"===t.type?"Enter the code shown above":"Solve the formula shown above";return'<div class="captcha-challenge">\n <img src="'+t.image+'" />\n <button type="button" class="captcha-reload">↺</button>\n</div>\n<input type="text" name="captcha"\n class="form-control captcha-control"\n placeholder="'+e+'" />'},recaptcha_v2:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},recaptcha_enterprise:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},error:function(){return'<div class="error" style="color: red;">Error getting the bot detection challenge. Please contact the system administrator.</div>'}}};function Ae(t){switch(t){case"recaptcha_v2":return window.grecaptcha;case"recaptcha_enterprise":return window.grecaptcha.enterprise;default:throw new Error("Unknown captcha provider")}}function Se(){return new Date}function Ee(t){lt.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),t.overrides&<.check(t.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=t,this.baseOptions.plugins=new he(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=t._timesToRetryFailedRequests?parseInt(t._timesToRetryFailedRequests,0):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,this.transactionManager=new fe(this.baseOptions),this.client=new qe(this.baseOptions),this.redirect=new be(this,this.baseOptions),this.popup=new Te(this,this.baseOptions),this.crossOriginAuthentication=new ge(this,this.baseOptions),this.webMessageHandler=new ye(this),this._universalLogin=new xe(this,this.baseOptions),this.ssodataStorage=new Et(this.baseOptions)}function De(t,e){this.baseOptions=e,this.request=t}function Re(t,e){this.baseOptions=e,this.request=t}function qe(t,e){2===arguments.length?this.auth0=t:e=t,lt.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new _t(this.baseOptions),this.passwordless=new De(this.request,this.baseOptions),this.dbConnection=new Re(this.request,this.baseOptions),this.warn=new Ct({disableWarnings:!!e._disableDeprecationWarnings}),this.ssodataStorage=new Et(this.baseOptions)}function Ue(t){lt.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new _t(this.baseOptions),this.baseOptions.rootUrl=s("https://"+this.baseOptions.domain,"api","v2")}Ee.prototype.parseHash=function(t,e){var n,r;e||"function"!=typeof t?t=t||{}:(e=t,t={});var i=Ot.getWindow(),o=void 0===t.hash?i.location.hash:t.hash;if((n=function(t,e){var n=C;if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof t?function(t,e){var n,r={},i=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=e.parameterLimit===1/0?void 0:e.parameterLimit,s=i.split(e.delimiter,o),a=-1,u=e.charset;if(e.charsetSentinel)for(n=0;n<s.length;++n)0===s[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[n]?u="utf-8":"utf8=%26%2310003%3B"===s[n]&&(u="iso-8859-1"),a=n,n=s.length);for(n=0;n<s.length;++n)if(n!==a){var c,l,h=s[n],d=h.indexOf("]="),f=-1===d?h.indexOf("="):d+1;-1===f?(c=e.decoder(h,C.decoder,u,"key"),l=e.strictNullHandling?null:""):(c=e.decoder(h.slice(0,f),C.decoder,u,"key"),l=p.maybeMap(S(h.slice(f+1),e),(function(t){return e.decoder(t,C.decoder,u,"value")}))),l&&e.interpretNumericEntities&&"iso-8859-1"===u&&(l=A(l)),h.indexOf("[]=")>-1&&(l=j(l)?[l]:l),x.call(r,c)?r[c]=p.combine(r[c],l):r[c]=l}return r}(t,n):t,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s<o.length;++s){var a=o[s],u=E(a,r[a],n,"string"==typeof t);i=p.merge(i,u,n)}return p.compact(i)}(o=o.replace(/^#?\/?/,""))).hasOwnProperty("error"))return r=Rt.buildResponse(n.error,n.error_description),n.state&&(r.state=n.state),e(r);if(!n.hasOwnProperty("access_token")&&!n.hasOwnProperty("id_token")&&!n.hasOwnProperty("refresh_token"))return e(null,null);var s=(this.baseOptions.responseType||t.responseType||"").split(" ");return s.length>0&&-1!==s.indexOf("token")&&!n.hasOwnProperty("access_token")?e(Rt.buildResponse("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):s.length>0&&-1!==s.indexOf("id_token")&&!n.hasOwnProperty("id_token")?e(Rt.buildResponse("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(t,n,e)},Ee.prototype.validateAuthenticationResponse=function(t,e,n){var r=this;t.__enableIdPInitiatedLogin=t.__enableIdPInitiatedLogin||t.__enableImpersonation;var i=e.state,o=this.transactionManager.getStoredTransaction(i),s=t.state||o&&o.state||null,a=s===i;if((i||s||!t.__enableIdPInitiatedLogin)&&!a)return n({error:"invalid_token",errorDescription:"`state` does not match."});var u=t.nonce||o&&o.nonce||null,c=o&&o.organization,l=t.state||o&&o.appState||null,p=function(t,i){return t?n(t):(o&&o.lastUsedConnection&&(i&&(s=i.sub),r.ssodataStorage.set(o.lastUsedConnection,s)),n(null,function(t,e,n){return{accessToken:t.access_token||null,idToken:t.id_token||null,idTokenPayload:n||null,appState:e||null,refreshToken:t.refresh_token||null,state:t.state||null,expiresIn:t.expires_in?parseInt(t.expires_in,10):null,tokenType:t.token_type||null,scope:t.scope||null}}(e,l,i)));var s};return e.id_token?this.validateToken(e.id_token,u,(function(t,n){if(!t){if(c){if(!n.org_id)return p(Rt.invalidToken("Organization Id (org_id) claim must be a string present in the ID token"));if(n.org_id!==c)return p(Rt.invalidToken('Organization Id (org_id) claim value mismatch in the ID token; expected "'+c+'", found "'+n.org_id+'"'))}return e.access_token&&n.at_hash?(new pe).validateAccessToken(e.access_token,"RS256",n.at_hash,(function(t){return t?p(Rt.invalidToken(t.message)):p(null,n)})):p(null,n)}if("invalid_token"!==t.error||t.errorDescription&&t.errorDescription.indexOf("Nonce (nonce) claim value mismatch in the ID token")>-1)return p(t);var i=(new pe).decode(e.id_token);return"HS256"!==i.header.alg?p(t):(i.payload.nonce||null)!==u?p({error:"invalid_token",errorDescription:'Nonce (nonce) claim value mismatch in the ID token; expected "'+u+'", found "'+i.payload.nonce+'"'}):e.access_token?r.client.userInfo(e.access_token,(function(t,e){return t?p(t):p(null,e)})):p({error:"invalid_token",description:"The id_token cannot be validated because it was signed with the HS256 algorithm and public clients (like a browser) can’t store secrets. Please read the associated doc for possible ways to fix this. Read more: https://auth0.com/docs/errors/libraries/auth0-js/invalid-token#parsing-an-hs256-signed-id-token-without-an-access-token"})})):p(null,null)},Ee.prototype.validateToken=function(t,e,n){new pe({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||60,maxAge:this.baseOptions.maxAge,__clock:this.baseOptions.__clock||Se}).verify(t,e,(function(t,e){if(t)return n(Rt.invalidToken(t.message));n(null,e)}))},Ee.prototype.renewAuth=function(t,e){var n=!!t.usePostMessage,r=t.postMessageDataType||!1,i=t.postMessageOrigin||Ot.getWindow().origin,o=t.timeout,s=this,a=vt.merge(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(t);a.responseType=a.responseType||"token",a.responseMode=a.responseMode||"fragment",a=this.transactionManager.process(a),lt.check(a,{type:"object",message:"options parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),a.prompt="none",a=vt.blacklist(a,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),Oe.create({authenticationUrl:this.client.buildAuthorizeUrl(a),postMessageDataType:r,postMessageOrigin:i,timeout:o}).login(n,(function(t,n){if("object"==typeof n)return e(t,n);s.parseHash({hash:n},e)}))},Ee.prototype.checkSession=function(t,e){var n=vt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t);return"code"===n.responseType?e({error:"error",error_description:"responseType can't be `code`"}):(t.nonce||(n=this.transactionManager.process(n)),n.redirectUri?(lt.check(n,{type:"object",message:"options parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=vt.blacklist(n,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(n,qt(e,{forceLegacyError:!0,ignoreCasing:!0}))):e({error:"error",error_description:"redirectUri can't be empty"}))},Ee.prototype.changePassword=function(t,e){return this.client.dbConnection.changePassword(t,e)},Ee.prototype.passwordlessStart=function(t,e){var n=vt.merge(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t.authParams);return t.authParams=this.transactionManager.process(n),this.client.passwordless.start(t,e)},Ee.prototype.signup=function(t,e){return this.client.dbConnection.signup(t,e)},Ee.prototype.authorize=function(t){var e=vt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","organization","invitation"]).with(t);lt.check(e,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(e=this.transactionManager.process(e)).scope=e.scope||"openid profile email",Ot.redirect(this.client.buildAuthorizeUrl(e))},Ee.prototype.signupAndAuthorize=function(t,e){var n=this;return this.client.dbConnection.signup(vt.blacklist(t,["popupHandler"]),(function(r){if(r)return e(r);t.realm=t.connection,t.username||(t.username=t.email),n.client.login(t,e)}))},Ee.prototype.login=function(t,e){var n=vt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting","organization","invitation"]).with(t);n=this.transactionManager.process(n),Ot.getWindow().location.host===this.baseOptions.domain?(n.connection=n.realm,delete n.realm,this._universalLogin.login(n,e)):this.crossOriginAuthentication.login(n,e)},Ee.prototype.passwordlessLogin=function(t,e){var n=vt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(t);if(n=this.transactionManager.process(n),Ot.getWindow().location.host===this.baseOptions.domain)this.passwordlessVerify(n,e);else{var r=vt.extend({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:n.connection,username:n.email||n.phoneNumber,otp:n.verificationCode},vt.blacklist(n,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(r,e)}},Ee.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},Ee.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},Ee.prototype.logout=function(t){Ot.redirect(this.client.buildLogoutUrl(t))},Ee.prototype.passwordlessVerify=function(t,e){var n=this,r=vt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(t);return lt.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=this.transactionManager.process(r),this.client.passwordless.verify(r,(function(i){if(i)return e(i);function o(){Ot.redirect(n.client.passwordless.buildVerifyUrl(r))}if("function"==typeof t.onRedirecting)return t.onRedirecting((function(){o()}));o()}))},Ee.prototype.renderCaptcha=function(t,e,n){return function(t,e,n,r){function i(r){r=r||je,t.getChallenge((function(t,o){return t?(e.innerHTML=n.templates.error(t),r(t)):o.required?(e.style.display="","auth0"===o.provider?function(t,e,n,r){t.innerHTML=e.templates[n.provider](n),t.querySelector(".captcha-reload").addEventListener("click",(function(t){t.preventDefault(),r()}))}(e,n,o,i):"recaptcha_v2"!==o.provider&&"recaptcha_enterprise"!==o.provider||function(t,e,n){var r=t.hasAttribute("data-wid")&&t.getAttribute("data-wid");function i(e){t.querySelector('input[name="captcha"]').value=e||""}if(r)return i(),void Ae(n.provider).reset(r);t.innerHTML=e.templates[n.provider](n);var o=t.querySelector(".recaptcha");!function(t,e,n){var r="recaptchaCallback_"+Math.floor(1000001*Math.random());window[r]=function(){delete window[r],n()};var i=window.document.createElement("script");i.src=function(t,e,n){switch(t){case"recaptcha_v2":return"https://www.recaptcha.net/recaptcha/api.js?hl="+e+"&onload="+n;case"recaptcha_enterprise":return"https://www.recaptcha.net/recaptcha/enterprise.js?render=explicit&hl="+e+"&onload="+n;default:throw new Error("Unknown captcha provider")}}(e.provider,e.lang,r),i.async=!0,window.document.body.appendChild(i)}(0,{lang:e.lang,provider:n.provider},(function(){var e=Ae(n.provider);r=e.render(o,{callback:i,"expired-callback":function(){i()},"error-callback":function(){i()},sitekey:n.siteKey}),t.setAttribute("data-wid",r)}))}(e,n,o),void r()):(e.style.display="none",void(e.innerHTML=""))}))}return n=vt.merge(Ce).with(n||{}),i(r),{reload:i,getValue:function(){var t=e.querySelector('input[name="captcha"]');if(t)return t.value}}}(this.client,t,e,n)},De.prototype.buildVerifyUrl=function(t){var e,n;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(t){return!t.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(t){return!t.phoneNumber}}}),e=vt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(t),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e=vt.toSnakeCase(e,["auth0Client"]),n=D(e),s(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},De.prototype.start=function(t,e){var n,r;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(t){return"code"===t.send||!t.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(t){return"link"===t.send||!t.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"passwordless","start"),(r=vt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(t)).scope&&(r.authParams=r.authParams||{},r.authParams.scope=r.authParams.scope||r.scope),r.redirectUri&&(r.authParams=r.authParams||{},r.authParams.redirect_uri=r.authParams.redirectUri||r.redirectUri),r.responseType&&(r.authParams=r.authParams||{},r.authParams.response_type=r.authParams.responseType||r.responseType),delete r.redirectUri,delete r.responseType,delete r.scope,r=vt.toSnakeCase(r,["auth0Client","authParams"]),this.request.post(n).send(r).end(qt(e))},De.prototype.verify=function(t,e){var n,r;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(t){return!t.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(t){return!t.phoneNumber}}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=vt.pick(t,["connection","verificationCode","phoneNumber","email","auth0Client"]),r=vt.toSnakeCase(r,["auth0Client"]),n=s(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(r).end(qt(e))},Re.prototype.signup=function(t,e){var n,r,i;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"dbconnections","signup"),i=(r=vt.merge(this.baseOptions,["clientID","state"]).with(t)).user_metadata||r.userMetadata,r=vt.blacklist(r,["scope","userMetadata","user_metadata"]),r=vt.toSnakeCase(r,["auth0Client"]),i&&(r.user_metadata=i),this.request.post(n).send(r).end(qt(e))},Re.prototype.changePassword=function(t,e){var n,r;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"dbconnections","change_password"),r=vt.merge(this.baseOptions,["clientID"]).with(t,["email","connection"]),r=vt.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(qt(e))},qe.prototype.buildAuthorizeUrl=function(t){var e,n;return lt.check(t,{type:"object",message:"options parameter is not valid"}),e=vt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(t),lt.check(e,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(t){return-1===t.responseType.indexOf("code")&&-1!==t.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e.connection_scope&<.isArray(e.connection_scope)&&(e.connection_scope=e.connection_scope.join(",")),e=vt.blacklist(e,["username","popupOptions","domain","tenant","timeout","appState"]),e=vt.toSnakeCase(e,["auth0Client"]),e=function(t,e){var n=vt.getKeysNotIn(e,It);return n.length>0&&t.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+n.join(",")+"]"),e}(this.warn,e),n=D(e),s(this.baseOptions.rootUrl,"authorize","?"+n)},qe.prototype.buildLogoutUrl=function(t){var e,n;return lt.check(t,{optional:!0,type:"object",message:"options parameter is not valid"}),e=vt.merge(this.baseOptions,["clientID"]).with(t||{}),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e=vt.toSnakeCase(e,["auth0Client","returnTo"]),n=D(vt.blacklist(e,["federated"])),t&&void 0!==t.federated&&!1!==t.federated&&"false"!==t.federated&&(n+="&federated"),s(this.baseOptions.rootUrl,"v2","logout","?"+n)},qe.prototype.loginWithDefaultDirectory=function(t,e){return lt.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),t.grantType="password",this.oauthToken(t,e)},qe.prototype.login=function(t,e){return lt.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),t.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(t,e)},qe.prototype.oauthToken=function(t,e){var n,r,i;return lt.check(t,{type:"object",message:"options parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"oauth","token"),r=vt.merge(this.baseOptions,["clientID","scope","audience"]).with(t),lt.check(r,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),r=vt.toSnakeCase(r,["auth0Client"]),this.warn,i=r,r=vt.pick(i,Ut),this.request.post(n).send(r).end(qt(e))},qe.prototype.loginWithResourceOwner=function(t,e){var n,r;return lt.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"oauth","ro"),r=vt.merge(this.baseOptions,["clientID","scope"]).with(t,["username","password","scope","connection","device"]),(r=vt.toSnakeCase(r,["auth0Client"])).grant_type=r.grant_type||"password",this.request.post(n).send(r).end(qt(e))},qe.prototype.getSSOData=function(t,e){if(this.auth0||(this.auth0=new Ee(this.baseOptions)),Ot.getWindow().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(t,e);"function"==typeof t&&(e=t),lt.check(e,{type:"function",message:"cb parameter is not valid"});var n=this.baseOptions.clientID,r=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:r.lastUsedConnection,timeout:5e3},(function(t,i){return t?"login_required"===t.error?e(null,{sso:!1}):("consent_required"===t.error&&(t.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),e(t,{sso:!1})):r.lastUsedSub&&r.lastUsedSub!==i.idTokenPayload.sub?e(t,{sso:!1}):e(null,{lastUsedConnection:{name:r.lastUsedConnection},lastUsedUserID:i.idTokenPayload.sub,lastUsedUsername:i.idTokenPayload.email||i.idTokenPayload.name,lastUsedClientID:n,sessionClients:[n],sso:!0})}))},qe.prototype.userInfo=function(t,e){var n;return lt.check(t,{type:"string",message:"accessToken parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+t).end(qt(e,{ignoreCasing:!0}))},qe.prototype.getChallenge=function(t){if(lt.check(t,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return t();var e=s(this.baseOptions.rootUrl,"usernamepassword","challenge");return this.request.post(e).send({state:this.baseOptions.state}).end(qt(t,{ignoreCasing:!0}))},qe.prototype.delegation=function(t,e){var n,r;return lt.check(t,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"delegation"),r=vt.merge(this.baseOptions,["clientID"]).with(t),r=vt.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(qt(e))},qe.prototype.getUserCountry=function(t){var e;return lt.check(t,{type:"function",message:"cb parameter is not valid"}),e=s(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(e).end(qt(t))},Ue.prototype.getUser=function(t,e){var n;return lt.check(t,{type:"string",message:"userId parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"users",t),this.request.get(n).end(qt(e,{ignoreCasing:!0}))},Ue.prototype.patchUserMetadata=function(t,e,n){var r;return lt.check(t,{type:"string",message:"userId parameter is not valid"}),lt.check(e,{type:"object",message:"userMetadata parameter is not valid"}),lt.check(n,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"users",t),this.request.patch(r).send({user_metadata:e}).end(qt(n,{ignoreCasing:!0}))},Ue.prototype.patchUserAttributes=function(t,e,n){var r;return lt.check(t,{type:"string",message:"userId parameter is not valid"}),lt.check(e,{type:"object",message:"user parameter is not valid"}),lt.check(n,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"users",t),this.request.patch(r).send(e).end(qt(n,{ignoreCasing:!0}))},Ue.prototype.linkUser=function(t,e,n){var r;return lt.check(t,{type:"string",message:"userId parameter is not valid"}),lt.check(e,{type:"string",message:"secondaryUserToken parameter is not valid"}),lt.check(n,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"users",t,"identities"),this.request.post(r).send({link_with:e}).end(qt(n,{ignoreCasing:!0}))};var Ie={Authentication:qe,Management:Ue,WebAuth:Ee,version:ot};e.default=Ie}.call(this,n(50),n(12))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default=function(t){var e=t.variant,n=void 0===e?"default":e,o=t.className;return i.jsx("svg",r({className:o,viewBox:"0 0 60 38.19"},{children:i.jsxs("g",r({transform:"translate(-238.467 -453.779)"},{children:[i.jsx("g",r({transform:"translate(238.467 453.779)"},{children:i.jsx("g",r({transform:"translate(0 1.926)"},{children:i.jsxs("g",{children:[i.jsx("g",r({transform:"translate(.243)"},{children:i.jsx("path",{fill:"default"===n?"#00d163":"#220C4A",d:"M239.9 473.289a.981.981 0 0 0 .663 1.708l17.7-.048a1.56 1.56 0 0 0 1.046-.406l13.191-11.984-19.5.054a3.507 3.507 0 0 0-2.351.912z",transform:"translate(-239.576 -462.559)"},void 0)}),void 0),i.jsx("path",{d:"M296.542 462.586l-21.3.051a1.786 1.786 0 0 0-1.2.47l-12.629 11.57a1.523 1.523 0 0 0-.489 1.121v8.934a.94.94 0 0 1-.932.946l-8.148.02a3.363 3.363 0 0 0-2.27.892l-10.779 9.917a1 1 0 0 0 .662 1.729l20.974-.05a1.275 1.275 0 0 0 .858-.336l12.775-11.7a1.522 1.522 0 0 0 .49-1.12v-8.934a.94.94 0 0 1 .932-.946l8.739-.021a1.841 1.841 0 0 0 1.242-.488l11.606-10.678a.789.789 0 0 0-.531-1.377z",fill:"default"===n?"#201047":"#220C4A",transform:"translate(-238.467 -462.58)"},void 0)]},void 0)}),void 0)}),void 0),i.jsx("g",r({transform:"translate(554.613 460.161)"},{children:i.jsx("path",{fill:"default"===n?"#1d1047":"#220C4A",d:"M1667.281 484.388a1.928 1.928 0 1 1-1.921-1.876 1.885 1.885 0 0 1 1.921 1.876zm-3.374 0a1.453 1.453 0 0 0 1.464 1.5 1.436 1.436 0 0 0 1.43-1.487 1.448 1.448 0 1 0-2.893-.011zm1.155.983h-.435V483.5a3.792 3.792 0 0 1 .72-.057 1.169 1.169 0 0 1 .652.137.52.52 0 0 1 .183.412.48.48 0 0 1-.389.434v.023a.553.553 0 0 1 .343.457 1.43 1.43 0 0 0 .137.469h-.469a1.613 1.613 0 0 1-.148-.458c-.034-.206-.149-.3-.389-.3h-.206zm.011-1.063h.206c.24 0 .434-.08.434-.275 0-.171-.126-.286-.4-.286a1.049 1.049 0 0 0-.24.023z",transform:"translate(-1663.427 -482.512)"},void 0)}),void 0)]}),void 0)}),void 0)}},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=r(n(2));n(55),e.default=function(t){var e=t.size,n=void 0===e?20:e,r=t.thickness,s=void 0===r?2:r;return i.jsxs("span",{children:[o.default.createElement("style",{},"\n .tr-wc-progress-circular {\n height: "+n+"px;\n width: "+n+"px;\n }\n\n .tr-wc-progress-circular:indeterminate::before,\n .tr-wc-progress-circular:indeterminate::-webkit-progress-value {\n border-width: "+s+"px;\n }\n "),i.jsx("progress",{className:"tr-wc-progress-circular"},void 0)]},void 0)}},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=i(n(5)),a=i(n(58)),u=i(n(17));n(59);var c=i(n(60));e.default=function(t){var e=t.integrationId,n=t.organizationId,i=t.organizationName,l=s.default.portalBaseUrl+"/"+n+"/settings/integrations/"+e;return o.jsxs("div",r({className:"tr-wc-detailsPanel"},{children:[o.jsx("span",r({className:"tr-wc-panelHeader"},{children:o.jsx("p",{children:"Platform connectie"},void 0)}),void 0),o.jsxs("span",r({className:"tr-wc-panelContent"},{children:[o.jsxs("span",r({className:"tr-wc-detailsPanel-connected"},{children:[o.jsx(a.default,{className:"tr-wc-checkVector"},void 0),o.jsxs("span",{children:[o.jsx("h3",{children:"Deze winkel is verbonden"},void 0),o.jsx("p",{children:"U bent klaar om uw bestellingen met Trunkrs te verzenden."},void 0)]},void 0)]}),void 0),o.jsxs("span",{children:[o.jsx("h4",{children:"Integratie nummer:"},void 0),o.jsx("p",{children:e},void 0),o.jsx("h4",{children:"Organisatie nummer:"},void 0),o.jsx("p",{children:n},void 0),o.jsx("h4",{children:"Organisatie naam:"},void 0),o.jsx("p",{children:i},void 0)]},void 0)]}),void 0),o.jsx("span",r({className:"tr-wc-panelFooter"},{children:o.jsx("span",{children:o.jsxs(u.default,r({href:l,color:"white"},{children:[o.jsx(c.default,{className:"tr-wc-buttonVector"},void 0),"Beheer"]}),void 0)},void 0)}),void 0)]}),void 0)}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default=function(t){var e=t.className;return i.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 14 14",fill:"none"},{children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3334 7.00016C12.3334 9.94568 9.94556 12.3335 7.00004 12.3335C4.05452 12.3335 1.66671 9.94568 1.66671 7.00016C1.66671 4.05464 4.05452 1.66683 7.00004 1.66683C9.94556 1.66683 12.3334 4.05464 12.3334 7.00016ZM13.6667 7.00016C13.6667 10.6821 10.6819 13.6668 7.00004 13.6668C3.31814 13.6668 0.333374 10.6821 0.333374 7.00016C0.333374 3.31826 3.31814 0.333496 7.00004 0.333496C10.6819 0.333496 13.6667 3.31826 13.6667 7.00016ZM6.596 9.27795L10.6112 5.2628L9.66834 4.31999L6.1246 7.86373L4.80477 6.5439L3.86196 7.48671L5.65319 9.27795L6.1246 9.74935L6.596 9.27795Z",fill:"#1ED771"},void 0)}),void 0)}},function(t,e,n){},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default=function(t){var e=t.className;return i.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none"},{children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 2H8V4H4V20H20V16H22V22H2V2ZM18.4372 4.16L12.5199 4.16V2.16L21.8399 2.16L21.8399 11.48H19.8399L19.8399 5.5857L9.20706 16.2186L7.79285 14.8044L18.4372 4.16Z",fill:"currentColor"},void 0)}),void 0)}},function(t,e,n){},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=i(n(18));n(64),e.default=function(t){var e=t.useBigText,n=t.darkLogo,i=t.tntEmailLinks,a=t.tntAccountActions,u=t.onUseBigTextChanged,c=t.onDarkLogoChanged,l=t.onTntEmailLinksChanged,p=t.onTntAccountActionsChanged;return o.jsxs("div",r({className:"tr-wc-detailsPanel"},{children:[o.jsx("span",r({className:"tr-wc-panelHeader"},{children:o.jsx("p",{children:"Visuele instellingen"},void 0)}),void 0),o.jsx("span",r({className:"tr-wc-panelContent"},{children:o.jsxs("ul",r({className:"tr-wc-settingsList"},{children:[o.jsx("li",{children:o.jsx(s.default,r({checked:n,onChange:c},{children:o.jsx("h4",r({className:"tr-wc-switchLabel"},{children:"Gebruik aangepast logo voor donker thema in de winkelwagen."}),void 0)}),void 0)},void 0),o.jsx("li",{children:o.jsx(s.default,r({checked:e,onChange:u},{children:o.jsx("h4",r({className:"tr-wc-switchLabel"},{children:"Laat het verwachte levermoment zien in winkelwagen."}),void 0)}),void 0)},void 0),o.jsx("li",{children:o.jsx(s.default,r({checked:i,onChange:l},{children:o.jsx("h4",r({className:"tr-wc-switchLabel"},{children:"Plaats Trunkrs Track & Trace links in orderbevestiging e-mail."}),void 0)}),void 0)},void 0),o.jsx("li",{children:o.jsx(s.default,r({checked:a,onChange:p},{children:o.jsx("h4",r({className:"tr-wc-switchLabel"},{children:"Maak Trunkrs Track & Trace links zichtbaar in gebruikers account pagina."}),void 0)}),void 0)},void 0)]}),void 0)}),void 0)]}),void 0)}},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=i(n(18));e.default=function(t){var e=t.allOrdersAreTrunkrs,n=t.onAllOrdersAreTrunkrs;return o.jsxs("div",r({className:"tr-wc-detailsPanel"},{children:[o.jsx("span",r({className:"tr-wc-panelHeader"},{children:o.jsx("p",{children:"Verzendings instellingen"},void 0)}),void 0),o.jsx("span",r({className:"tr-wc-panelContent"},{children:o.jsx("ul",r({className:"tr-wc-settingsList"},{children:o.jsx("li",{children:o.jsx(s.default,r({checked:e,onChange:n},{children:o.jsx("h4",r({className:"tr-wc-switchLabel"},{children:"Alle orders zijn voor Trunkrs"}),void 0)}),void 0)},void 0)}),void 0)}),void 0)]}),void 0)}}]);1 !function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=105)}([function(t,e){t.exports=React},function(t,e,r){"use strict";t.exports=r(29)},function(t,e,r){"use strict";var n=r(55),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:u,isUndefined:s,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return a(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):o(r)?e[n]=r.slice():e[n]=r}for(var n=0,i=arguments.length;n<i;n++)l(arguments[n],r);return e},extend:function(t,e,r){return l(e,(function(e,i){t[i]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,r){var n=r(66),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){"use strict";var n=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty,s="undefined"!=typeof Element;t.exports=function(t,e){try{return function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){var a,u,c,l=n(e),p=n(r);if(l&&p){if((u=e.length)!=r.length)return!1;for(a=u;0!=a--;)if(!t(e[a],r[a]))return!1;return!0}if(l!=p)return!1;var f=e instanceof Date,d=r instanceof Date;if(f!=d)return!1;if(f&&d)return e.getTime()==r.getTime();var h=e instanceof RegExp,v=r instanceof RegExp;if(h!=v)return!1;if(h&&v)return e.toString()==r.toString();var m=i(e);if((u=m.length)!==i(r).length)return!1;for(a=u;0!=a--;)if(!o.call(r,m[a]))return!1;if(s&&e instanceof Element&&r instanceof Element)return e===r;for(a=u;0!=a--;)if(!("_owner"===(c=m[a])&&e.$$typeof||t(e[c],r[c])))return!1;return!0}return e!=e&&r!=r}(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){"use strict";function n(t){this._maxSize=t,this.clear()}n.prototype.clear=function(){this._size=0,this._values=Object.create(null)},n.prototype.get=function(t){return this._values[t]},n.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var i=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,s=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,u=/^\s*(['"]?)(.*?)(\1)\s*$/,c=new n(512),l=new n(512),p=new n(512);function f(t){return c.get(t)||c.set(t,d(t).map((function(t){return t.replace(u,"$2")})))}function d(t){return t.match(i)||[""]}function h(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function v(t){return!h(t)&&(function(t){return t.match(s)&&!t.match(o)}(t)||function(t){return a.test(t)}(t))}t.exports={Cache:n,split:d,normalizePath:f,setter:function(t){var e=f(t);return l.get(t)||l.set(t,(function(t,r){for(var n=0,i=e.length,o=t;n<i-1;){var s=e[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return t;o=o[e[n++]]}o[e[n]]=r}))},getter:function(t,e){var r=f(t);return p.get(t)||p.set(t,(function(t){for(var n=0,i=r.length;n<i;){if(null==t&&e)return;t=t[r[n++]]}return t}))},join:function(t){return t.reduce((function(t,e){return t+(h(e)||o.test(e)?"["+e+"]":(t?".":"")+e)}),"")},forEach:function(t,e,r){!function(t,e,r){var n,i,o,s,a=t.length;for(i=0;i<a;i++)(n=t[i])&&(v(n)&&(n='"'+n+'"'),o=!(s=h(n))&&/^\d+$/.test(n),e.call(r,n,s,o,i,t))}(Array.isArray(t)?t:d(t),e,r)}}},function(t,e,r){"use strict";function n(t){var e,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=n(t[e]))&&(i&&(i+=" "),i+=r);else for(e in t)t[e]&&(i&&(i+=" "),i+=e);return i}r.r(e),e.default=function(){for(var t,e,r=0,i="";r<arguments.length;)(t=arguments[r++])&&(e=n(t))&&(i&&(i+=" "),i+=e);return i}},function(t,e,r){var n=r(164),i=r(167);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(251),i=r(90);t.exports=function(t,e){return null!=t&&i(t,e,n)}},function(t,e,r){var n=r(14),i=r(152),o=r(153),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(215);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(3).Symbol;t.exports=n},function(t,e,r){var n=r(72),i=r(187),o=r(76);t.exports=function(t){return o(t)?n(t):i(t)}},function(t,e,r){var n=r(26);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(r(0)),s=n(r(8));r(136),e.default=function(t){var e=t.type,r=void 0===e?"button":e,n=t.color,a=t.size,u=t.href,c=t.disabled,l=t.className,p=t.children,f=t.onClick,d=s.default("tr-wc-button",{"tr-wc-blue":"blue"===n,"tr-wc-green":"green"===n,"tr-wc-white":"white"===n,"tr-wc-button-small":"small"===a},l),h=u?i.jsx("a",{href:u,target:"_blank",rel:"noreferrer noopener nofollow"},void 0):i.jsx("button",{type:r,onClick:f},void 0);return o.default.cloneElement(h,{className:d,disabled:c},p)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(8));r(139),e.default=function(t){var e=t.title,r=t.footerContent,i=t.classes,a=t.children;return o.jsxs("div",n({className:s.default("tr-wc-panelContainer",null==i?void 0:i.root)},{children:[o.jsx("span",n({className:s.default("tr-wc-panelHeader",null==i?void 0:i.header)},{children:o.jsx("p",{children:e},void 0)}),void 0),o.jsx("span",n({className:s.default("tr-wc-panelContent",null==i?void 0:i.content)},{children:a}),void 0),r&&o.jsx("span",n({className:s.default("tr-wc-panelFooter",null==i?void 0:i.footer)},{children:o.jsx("span",{children:r},void 0)}),void 0)]}),void 0)}},function(t,e,r){var n=r(154),i=r(155),o=r(156),s=r(157),a=r(158);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},function(t,e,r){var n=r(34);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(9)(Object,"create");t.exports=n},function(t,e,r){var n=r(176);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(181);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(71),i=r(23);t.exports=function(t,e,r,o){var s=!r;r||(r={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=o?o(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),s?i(r,c,l):n(r,c,l)}return r}},function(t,e,r){var n=r(197),i=r(35),o=r(198),s=r(199),a=r(200),u=r(11),c=r(70),l=c(n),p=c(i),f=c(o),d=c(s),h=c(a),v=u;(n&&"[object DataView]"!=v(new n(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||s&&"[object Set]"!=v(new s)||a&&"[object WeakMap]"!=v(new a))&&(v=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case l:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,r){var n=r(11),i=r(6);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},function(t,e,r){var n=r(23),i=r(92),o=r(93);t.exports=function(t,e){var r={};return e=o(e,3),i(t,(function(t,i,o){n(r,i,e(t,i,o))})),r}},function(t,e){t.exports=window.wp.element},function(t,e,r){"use strict";var n=r(0),i=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),e.Fragment=o("react.fragment")}var s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var n,o={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)a.call(e,n)&&!u.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===o[n]&&(o[n]=e[n]);return{$$typeof:i,type:t,key:c,ref:l,props:o,_owner:s.current}}e.jsx=c,e.jsxs=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={portalBaseUrl:"https://portal.trunkrs.app",apiBaseUrl:"https://shipping.trunkrs.app",auth0:{domain:"trunkrs.eu.auth0.com",clientId:"hvK6Wu7K57yfp2mYsgMIRNNsOKkSYmDi",audience:"api.portal.trunkrs.app",redirectUrl:"https://portal.trunkrs.app/register/integration"}}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(r(0));r(138),e.default=function(t){var e=t.size,r=void 0===e?20:e,n=t.thickness,s=void 0===n?2:n;return i.jsxs("span",{children:[o.default.createElement("style",{},"\n .tr-wc-progress-circular {\n height: "+r+"px;\n width: "+r+"px;\n }\n\n .tr-wc-progress-circular:indeterminate::before,\n .tr-wc-progress-circular:indeterminate::-webkit-progress-value {\n border-width: "+s+"px;\n }\n "),i.jsx("progress",{className:"tr-wc-progress-circular"},void 0)]},void 0)}},function(t,e,r){var n=r(67)(Object.getPrototypeOf,Object);t.exports=n},function(t,e,r){var n=r(19),i=r(159),o=r(160),s=r(161),a=r(162),u=r(163);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(9)(r(3),"Map");t.exports=n},function(t,e,r){var n=r(168),i=r(175),o=r(177),s=r(178),a=r(179);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},function(t,e,r){(function(t){var n=r(3),i=r(185),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u}).call(this,r(38)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(66),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,r(38)(t))},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(72),i=r(190),o=r(76);t.exports=function(t){return o(t)?n(t,!0):i(t)}},function(t,e,r){var n=r(194),i=r(78),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},function(t,e,r){var n=r(83);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},function(t,e,r){var n=r(4),i=r(26),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,r){"use strict";r.r(e),r.d(e,"ErrorMessage",(function(){return ft})),r.d(e,"FastField",(function(){return dt})),r.d(e,"Field",(function(){return et})),r.d(e,"FieldArray",(function(){return pt})),r.d(e,"Form",(function(){return rt})),r.d(e,"Formik",(function(){return Z})),r.d(e,"FormikConsumer",(function(){return B})),r.d(e,"FormikContext",(function(){return N})),r.d(e,"FormikProvider",(function(){return q})),r.d(e,"connect",(function(){return it})),r.d(e,"getActiveElement",(function(){return M})),r.d(e,"getIn",(function(){return I})),r.d(e,"insert",(function(){return at})),r.d(e,"isEmptyArray",(function(){return k})),r.d(e,"isEmptyChildren",(function(){return F})),r.d(e,"isFunction",(function(){return E})),r.d(e,"isInputEvent",(function(){return P})),r.d(e,"isInteger",(function(){return C})),r.d(e,"isNaN",(function(){return D})),r.d(e,"isObject",(function(){return S})),r.d(e,"isPromise",(function(){return R})),r.d(e,"isString",(function(){return A})),r.d(e,"move",(function(){return ot})),r.d(e,"prepareDataForValidation",(function(){return K})),r.d(e,"replace",(function(){return ut})),r.d(e,"setIn",(function(){return U})),r.d(e,"setNestedObjectValues",(function(){return L})),r.d(e,"swap",(function(){return st})),r.d(e,"useField",(function(){return tt})),r.d(e,"useFormik",(function(){return W})),r.d(e,"useFormikContext",(function(){return V})),r.d(e,"validateYupSchema",(function(){return G})),r.d(e,"withFormik",(function(){return nt})),r.d(e,"yupToFormErrors",(function(){return J}));var n=r(0),i=r(5),o=r.n(i),s=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===a}(t)}(t)},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function u(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function c(t,e,r){return t.concat(e).map((function(t){return u(t,r)}))}function l(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||c,r.isMergeableObject=r.isMergeableObject||s;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):function(t,e,r){var n={};return r.isMergeableObject(t)&&Object.keys(t).forEach((function(e){n[e]=u(t[e],r)})),Object.keys(e).forEach((function(i){r.isMergeableObject(e[i])&&t[i]?n[i]=l(t[i],e[i],r):n[i]=u(e[i],r)})),n}(t,e,r):u(e,r)}l.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return l(t,r,e)}),{})};var p=l,f=r(48),d=r.n(f),h=r(49),v=r.n(h),m=r(50),y=r.n(m),g=r(51),b=r.n(g),w=r(101),_=r.n(w);function x(){return(x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function O(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function j(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var k=function(t){return Array.isArray(t)&&0===t.length},E=function(t){return"function"==typeof t},S=function(t){return null!==t&&"object"==typeof t},C=function(t){return String(Math.floor(Number(t)))===t},A=function(t){return"[object String]"===Object.prototype.toString.call(t)},D=function(t){return t!=t},F=function(t){return 0===n.Children.count(t)},R=function(t){return S(t)&&E(t.then)},P=function(t){return t&&S(t)&&S(t.target)};function M(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function I(t,e,r,n){void 0===n&&(n=0);for(var i=y()(e);t&&n<i.length;)t=t[i[n++]];return void 0===t?r:t}function U(t,e,r){for(var n=v()(t),i=n,o=0,s=y()(e);o<s.length-1;o++){var a=s[o],u=I(t,s.slice(0,o+1));if(u&&(S(u)||Array.isArray(u)))i=i[a]=v()(u);else{var c=s[o+1];i=i[a]=C(c)&&Number(c)>=0?[]:{}}}return(0===o?t:i)[s[o]]===r?t:(void 0===r?delete i[s[o]]:i[s[o]]=r,0===o&&void 0===r&&delete n[s[o]],n)}function L(t,e,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var i=0,o=Object.keys(t);i<o.length;i++){var s=o[i],a=t[s];S(a)?r.get(a)||(r.set(a,!0),n[s]=Array.isArray(a)?[]:{},L(a,e,r,n[s])):n[s]=e}return n}var N=Object(n.createContext)(void 0);N.displayName="FormikContext";var q=N.Provider,B=N.Consumer;function V(){var t=Object(n.useContext)(N);return t}function z(t,e){switch(e.type){case"SET_VALUES":return x({},t,{values:e.payload});case"SET_TOUCHED":return x({},t,{touched:e.payload});case"SET_ERRORS":return o()(t.errors,e.payload)?t:x({},t,{errors:e.payload});case"SET_STATUS":return x({},t,{status:e.payload});case"SET_ISSUBMITTING":return x({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return x({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return x({},t,{values:U(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return x({},t,{touched:U(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return x({},t,{errors:U(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return x({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return x({},t,{touched:L(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return x({},t,{isSubmitting:!1});default:return t}}var $={},H={};function W(t){var e=t.validateOnChange,r=void 0===e||e,i=t.validateOnBlur,s=void 0===i||i,a=t.validateOnMount,u=void 0!==a&&a,c=t.isInitialValid,l=t.enableReinitialize,f=void 0!==l&&l,d=t.onSubmit,h=j(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=x({validateOnChange:r,validateOnBlur:s,validateOnMount:u,onSubmit:d},h),m=Object(n.useRef)(v.initialValues),y=Object(n.useRef)(v.initialErrors||$),g=Object(n.useRef)(v.initialTouched||H),b=Object(n.useRef)(v.initialStatus),w=Object(n.useRef)(!1),_=Object(n.useRef)({});Object(n.useEffect)((function(){return w.current=!0,function(){w.current=!1}}),[]);var O=Object(n.useReducer)(z,{values:v.initialValues,errors:v.initialErrors||$,touched:v.initialTouched||H,status:v.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),T=O[0],k=O[1],C=Object(n.useCallback)((function(t,e){return new Promise((function(r,n){var i=v.validate(t,e);null==i?r($):R(i)?i.then((function(t){r(t||$)}),(function(t){n(t)})):r(i)}))}),[v.validate]),D=Object(n.useCallback)((function(t,e){var r=v.validationSchema,n=E(r)?r(e):r,i=e&&n.validateAt?n.validateAt(e,t):G(t,n);return new Promise((function(t,e){i.then((function(){t($)}),(function(r){"ValidationError"===r.name?t(J(r)):e(r)}))}))}),[v.validationSchema]),F=Object(n.useCallback)((function(t,e){return new Promise((function(r){return r(_.current[t].validate(e))}))}),[]),P=Object(n.useCallback)((function(t){var e=Object.keys(_.current).filter((function(t){return E(_.current[t].validate)})),r=e.length>0?e.map((function(e){return F(e,I(t,e))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(t){return t.reduce((function(t,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(t=U(t,e[n],r)),t}),{})}))}),[F]),M=Object(n.useCallback)((function(t){return Promise.all([P(t),v.validationSchema?D(t):{},v.validate?C(t):{}]).then((function(t){var e=t[0],r=t[1],n=t[2];return p.all([e,r,n],{arrayMerge:X})}))}),[v.validate,v.validationSchema,P,C,D]),L=Q((function(t){return void 0===t&&(t=T.values),k({type:"SET_ISVALIDATING",payload:!0}),M(t).then((function(t){return w.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:t})),t}))}));Object(n.useEffect)((function(){u&&!0===w.current&&o()(m.current,v.initialValues)&&L(m.current)}),[u,L]);var N=Object(n.useCallback)((function(t){var e=t&&t.values?t.values:m.current,r=t&&t.errors?t.errors:y.current?y.current:v.initialErrors||{},n=t&&t.touched?t.touched:g.current?g.current:v.initialTouched||{},i=t&&t.status?t.status:b.current?b.current:v.initialStatus;m.current=e,y.current=r,g.current=n,b.current=i;var o=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:r,touched:n,status:i,values:e,isValidating:!!t&&!!t.isValidating,submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(v.onReset){var s=v.onReset(T.values,pt);R(s)?s.then(o):o()}else o()}),[v.initialErrors,v.initialStatus,v.initialTouched]);Object(n.useEffect)((function(){!0!==w.current||o()(m.current,v.initialValues)||(f&&(m.current=v.initialValues,N()),u&&L(m.current))}),[f,v.initialValues,N,u,L]),Object(n.useEffect)((function(){f&&!0===w.current&&!o()(y.current,v.initialErrors)&&(y.current=v.initialErrors||$,k({type:"SET_ERRORS",payload:v.initialErrors||$}))}),[f,v.initialErrors]),Object(n.useEffect)((function(){f&&!0===w.current&&!o()(g.current,v.initialTouched)&&(g.current=v.initialTouched||H,k({type:"SET_TOUCHED",payload:v.initialTouched||H}))}),[f,v.initialTouched]),Object(n.useEffect)((function(){f&&!0===w.current&&!o()(b.current,v.initialStatus)&&(b.current=v.initialStatus,k({type:"SET_STATUS",payload:v.initialStatus}))}),[f,v.initialStatus,v.initialTouched]);var q=Q((function(t){if(_.current[t]&&E(_.current[t].validate)){var e=I(T.values,t),r=_.current[t].validate(e);return R(r)?(k({type:"SET_ISVALIDATING",payload:!0}),r.then((function(t){return t})).then((function(e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),k({type:"SET_ISVALIDATING",payload:!1})}))):(k({type:"SET_FIELD_ERROR",payload:{field:t,value:r}}),Promise.resolve(r))}return v.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),D(T.values,t).then((function(t){return t})).then((function(e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e[t]}}),k({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),B=Object(n.useCallback)((function(t,e){var r=e.validate;_.current[t]={validate:r}}),[]),V=Object(n.useCallback)((function(t){delete _.current[t]}),[]),W=Q((function(t,e){return k({type:"SET_TOUCHED",payload:t}),(void 0===e?s:e)?L(T.values):Promise.resolve()})),Z=Object(n.useCallback)((function(t){k({type:"SET_ERRORS",payload:t})}),[]),K=Q((function(t,e){var n=E(t)?t(T.values):t;return k({type:"SET_VALUES",payload:n}),(void 0===e?r:e)?L(n):Promise.resolve()})),Y=Object(n.useCallback)((function(t,e){k({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),tt=Q((function(t,e,n){return k({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===n?r:n)?L(U(T.values,t,e)):Promise.resolve()})),et=Object(n.useCallback)((function(t,e){var r,n=e,i=t;if(!A(t)){t.persist&&t.persist();var o=t.target?t.target:t.currentTarget,s=o.type,a=o.name,u=o.id,c=o.value,l=o.checked,p=(o.outerHTML,o.options),f=o.multiple;n=e||a||u,i=/number|range/.test(s)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(s)?function(t,e,r){if("boolean"==typeof t)return Boolean(e);var n=[],i=!1,o=-1;if(Array.isArray(t))n=t,i=(o=t.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(e);return e&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}(I(T.values,n),l,c):p&&f?function(t){return Array.from(t).filter((function(t){return t.selected})).map((function(t){return t.value}))}(p):c}n&&tt(n,i)}),[tt,T.values]),rt=Q((function(t){if(A(t))return function(e){return et(e,t)};et(t)})),nt=Q((function(t,e,r){return void 0===e&&(e=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===r?s:r)?L(T.values):Promise.resolve()})),it=Object(n.useCallback)((function(t,e){t.persist&&t.persist();var r=t.target,n=r.name,i=r.id,o=(r.outerHTML,e||n||i);nt(o,!0)}),[nt]),ot=Q((function(t){if(A(t))return function(e){return it(e,t)};it(t)})),st=Object(n.useCallback)((function(t){E(t)?k({type:"SET_FORMIK_STATE",payload:t}):k({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),at=Object(n.useCallback)((function(t){k({type:"SET_STATUS",payload:t})}),[]),ut=Object(n.useCallback)((function(t){k({type:"SET_ISSUBMITTING",payload:t})}),[]),ct=Q((function(){return k({type:"SUBMIT_ATTEMPT"}),L().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var r;try{if(void 0===(r=ft()))return}catch(t){throw t}return Promise.resolve(r).then((function(t){return w.current&&k({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(w.current)throw k({type:"SUBMIT_FAILURE"}),t}))}if(w.current&&(k({type:"SUBMIT_FAILURE"}),e))throw t}))})),lt=Q((function(t){t&&t.preventDefault&&E(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&E(t.stopPropagation)&&t.stopPropagation(),ct().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),pt={resetForm:N,validateForm:L,validateField:q,setErrors:Z,setFieldError:Y,setFieldTouched:nt,setFieldValue:tt,setStatus:at,setSubmitting:ut,setTouched:W,setValues:K,setFormikState:st,submitForm:ct},ft=Q((function(){return d(T.values,pt)})),dt=Q((function(t){t&&t.preventDefault&&E(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&E(t.stopPropagation)&&t.stopPropagation(),N()})),ht=Object(n.useCallback)((function(t){return{value:I(T.values,t),error:I(T.errors,t),touched:!!I(T.touched,t),initialValue:I(m.current,t),initialTouched:!!I(g.current,t),initialError:I(y.current,t)}}),[T.errors,T.touched,T.values]),vt=Object(n.useCallback)((function(t){return{setValue:function(e,r){return tt(t,e,r)},setTouched:function(e,r){return nt(t,e,r)},setError:function(e){return Y(t,e)}}}),[tt,nt,Y]),mt=Object(n.useCallback)((function(t){var e=S(t),r=e?t.name:t,n=I(T.values,r),i={name:r,value:n,onChange:rt,onBlur:ot};if(e){var o=t.type,s=t.value,a=t.as,u=t.multiple;"checkbox"===o?void 0===s?i.checked=!!n:(i.checked=!(!Array.isArray(n)||!~n.indexOf(s)),i.value=s):"radio"===o?(i.checked=n===s,i.value=s):"select"===a&&u&&(i.value=i.value||[],i.multiple=!0)}return i}),[ot,rt,T.values]),yt=Object(n.useMemo)((function(){return!o()(m.current,T.values)}),[m.current,T.values]),gt=Object(n.useMemo)((function(){return void 0!==c?yt?T.errors&&0===Object.keys(T.errors).length:!1!==c&&E(c)?c(v):c:T.errors&&0===Object.keys(T.errors).length}),[c,yt,T.errors,v]);return x({},T,{initialValues:m.current,initialErrors:y.current,initialTouched:g.current,initialStatus:b.current,handleBlur:ot,handleChange:rt,handleReset:dt,handleSubmit:lt,resetForm:N,setErrors:Z,setFormikState:st,setFieldTouched:nt,setFieldValue:tt,setFieldError:Y,setStatus:at,setSubmitting:ut,setTouched:W,setValues:K,submitForm:ct,validateForm:L,validateField:q,isValid:gt,dirty:yt,unregisterField:V,registerField:B,getFieldProps:mt,getFieldMeta:ht,getFieldHelpers:vt,validateOnBlur:s,validateOnChange:r,validateOnMount:u})}function Z(t){var e=W(t),r=t.component,i=t.children,o=t.render,s=t.innerRef;return Object(n.useImperativeHandle)(s,(function(){return e})),Object(n.createElement)(q,{value:e},r?Object(n.createElement)(r,e):o?o(e):i?E(i)?i(e):F(i)?null:n.Children.only(i):null)}function J(t){var e={};if(t.inner){if(0===t.inner.length)return U(e,t.path,t.message);var r=t.inner,n=Array.isArray(r),i=0;for(r=n?r:r[Symbol.iterator]();;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var s=o;I(e,s.path)||(e=U(e,s.path,s.message))}}return e}function G(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var i=K(t);return e[r?"validateSync":"validate"](i,{abortEarly:!1,context:n})}function K(t){var e=Array.isArray(t)?[]:{};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=String(r);!0===Array.isArray(t[n])?e[n]=t[n].map((function(t){return!0===Array.isArray(t)||d()(t)?K(t):""!==t?t:void 0})):d()(t[n])?e[n]=K(t[n]):e[n]=""!==t[n]?t[n]:void 0}return e}function X(t,e,r){var n=t.slice();return e.forEach((function(e,i){if(void 0===n[i]){var o=!1!==r.clone&&r.isMergeableObject(e);n[i]=o?p(Array.isArray(e)?[]:{},e,r):e}else r.isMergeableObject(e)?n[i]=p(t[i],e,r):-1===t.indexOf(e)&&n.push(e)})),n}var Y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function Q(t){var e=Object(n.useRef)(t);return Y((function(){e.current=t})),Object(n.useCallback)((function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.current.apply(void 0,r)}),[])}function tt(t){var e=V(),r=e.getFieldProps,i=e.getFieldMeta,o=e.getFieldHelpers,s=e.registerField,a=e.unregisterField,u=S(t)?t:{name:t},c=u.name,l=u.validate;return Object(n.useEffect)((function(){return c&&s(c,{validate:l}),function(){c&&a(c)}}),[s,a,c,l]),[r(u),i(c),o(c)]}function et(t){var e=t.validate,r=t.name,i=t.render,o=t.children,s=t.as,a=t.component,u=j(t,["validate","name","render","children","as","component"]),c=j(V(),["validate","validationSchema"]),l=c.registerField,p=c.unregisterField;Object(n.useEffect)((function(){return l(r,{validate:e}),function(){p(r)}}),[l,p,r,e]);var f=c.getFieldProps(x({name:r},u)),d=c.getFieldMeta(r),h={field:f,form:c};if(i)return i(x({},h,{meta:d}));if(E(o))return o(x({},h,{meta:d}));if(a){if("string"==typeof a){var v=u.innerRef,m=j(u,["innerRef"]);return Object(n.createElement)(a,x({ref:v},f,m),o)}return Object(n.createElement)(a,x({field:f,form:c},u),o)}var y=s||"input";if("string"==typeof y){var g=u.innerRef,b=j(u,["innerRef"]);return Object(n.createElement)(y,x({ref:g},f,b),o)}return Object(n.createElement)(y,x({},f,u),o)}var rt=Object(n.forwardRef)((function(t,e){var r=t.action,i=j(t,["action"]),o=null!=r?r:"#",s=V(),a=s.handleReset,u=s.handleSubmit;return Object(n.createElement)("form",Object.assign({onSubmit:u,ref:e,onReset:a,action:o},i))}));function nt(t){var e=t.mapPropsToValues,r=void 0===e?function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&"function"!=typeof t[r]&&(e[r]=t[r]);return e}:e,i=j(t,["mapPropsToValues"]);return function(t){var e=t.displayName||t.name||t.constructor&&t.constructor.name||"Component",o=function(e){function o(){var r;return(r=e.apply(this,arguments)||this).validate=function(t){return i.validate(t,r.props)},r.validationSchema=function(){return E(i.validationSchema)?i.validationSchema(r.props):i.validationSchema},r.handleSubmit=function(t,e){return i.handleSubmit(t,x({},e,{props:r.props}))},r.renderFormComponent=function(e){return Object(n.createElement)(t,Object.assign({},r.props,e))},r}return O(o,e),o.prototype.render=function(){var t=j(this.props,["children"]);return Object(n.createElement)(Z,Object.assign({},t,i,{validate:i.validate&&this.validate,validationSchema:i.validationSchema&&this.validationSchema,initialValues:r(this.props),initialStatus:i.mapPropsToStatus&&i.mapPropsToStatus(this.props),initialErrors:i.mapPropsToErrors&&i.mapPropsToErrors(this.props),initialTouched:i.mapPropsToTouched&&i.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,children:this.renderFormComponent}))},o}(n.Component);return o.displayName="WithFormik("+e+")",b()(o,t)}}function it(t){var e=function(e){return Object(n.createElement)(B,null,(function(r){return Object(n.createElement)(t,Object.assign({},e,{formik:r}))}))},r=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return e.WrappedComponent=t,e.displayName="FormikConnect("+r+")",b()(e,t)}rt.displayName="Form";var ot=function(t,e,r){var n=ct(t),i=n[e];return n.splice(e,1),n.splice(r,0,i),n},st=function(t,e,r){var n=ct(t),i=n[e];return n[e]=n[r],n[r]=i,n},at=function(t,e,r){var n=ct(t);return n.splice(e,0,r),n},ut=function(t,e,r){var n=ct(t);return n[e]=r,n},ct=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(x({},t,{length:e+1}))}return[]},lt=function(t){function e(e){var r;return(r=t.call(this,e)||this).updateArrayField=function(t,e,n){var i=r.props,o=i.name;(0,i.formik.setFormikState)((function(r){var i="function"==typeof n?n:t,s="function"==typeof e?e:t,a=U(r.values,o,t(I(r.values,o))),u=n?i(I(r.errors,o)):void 0,c=e?s(I(r.touched,o)):void 0;return k(u)&&(u=void 0),k(c)&&(c=void 0),x({},r,{values:a,errors:n?U(r.errors,o,u):r.errors,touched:e?U(r.touched,o,c):r.touched})}))},r.push=function(t){return r.updateArrayField((function(e){return[].concat(ct(e),[_()(t)])}),!1,!1)},r.handlePush=function(t){return function(){return r.push(t)}},r.swap=function(t,e){return r.updateArrayField((function(r){return st(r,t,e)}),!0,!0)},r.handleSwap=function(t,e){return function(){return r.swap(t,e)}},r.move=function(t,e){return r.updateArrayField((function(r){return ot(r,t,e)}),!0,!0)},r.handleMove=function(t,e){return function(){return r.move(t,e)}},r.insert=function(t,e){return r.updateArrayField((function(r){return at(r,t,e)}),(function(e){return at(e,t,null)}),(function(e){return at(e,t,null)}))},r.handleInsert=function(t,e){return function(){return r.insert(t,e)}},r.replace=function(t,e){return r.updateArrayField((function(r){return ut(r,t,e)}),!1,!1)},r.handleReplace=function(t,e){return function(){return r.replace(t,e)}},r.unshift=function(t){var e=-1;return r.updateArrayField((function(r){var n=r?[t].concat(r):[t];return e<0&&(e=n.length),n}),(function(t){var r=t?[null].concat(t):[null];return e<0&&(e=r.length),r}),(function(t){var r=t?[null].concat(t):[null];return e<0&&(e=r.length),r})),e},r.handleUnshift=function(t){return function(){return r.unshift(t)}},r.handleRemove=function(t){return function(){return r.remove(t)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(T(r)),r.pop=r.pop.bind(T(r)),r}O(e,t);var r=e.prototype;return r.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(I(t.formik.values,t.name),I(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(t){var e;return this.updateArrayField((function(r){var n=r?ct(r):[];return e||(e=n[t]),E(n.splice)&&n.splice(t,1),n}),!0,!0),e},r.pop=function(){var t;return this.updateArrayField((function(e){var r=e;return t||(t=r&&r.pop&&r.pop()),r}),!0,!0),t},r.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,r=e.component,i=e.render,o=e.children,s=e.name,a=x({},t,{form:j(e.formik,["validate","validationSchema"]),name:s});return r?Object(n.createElement)(r,a):i?i(a):o?"function"==typeof o?o(a):F(o)?null:n.Children.only(o):null},e}(n.Component);lt.defaultProps={validateOnChange:!0};var pt=it(lt),ft=it(function(t){function e(){return t.apply(this,arguments)||this}O(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t){return I(this.props.formik.errors,this.props.name)!==I(t.formik.errors,this.props.name)||I(this.props.formik.touched,this.props.name)!==I(t.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(t).length},r.render=function(){var t=this.props,e=t.component,r=t.formik,i=t.render,o=t.children,s=t.name,a=j(t,["component","formik","render","children","name"]),u=I(r.touched,s),c=I(r.errors,s);return u&&c?i?E(i)?i(c):null:o?E(o)?o(c):null:e?Object(n.createElement)(e,a,c):c:null},e}(n.Component)),dt=it(function(t){function e(e){var r;r=t.call(this,e)||this;var n=e.render,i=e.children,o=e.component,s=e.as;return e.name,s&&i&&E(i),o&&i&&E(i),n&&i&&F(i),r}O(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t){return this.props.shouldUpdate?this.props.shouldUpdate(t,this.props):t.name!==this.props.name||I(t.formik.values,this.props.name)!==I(this.props.formik.values,this.props.name)||I(t.formik.errors,this.props.name)!==I(this.props.formik.errors,this.props.name)||I(t.formik.touched,this.props.name)!==I(this.props.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(t).length||t.formik.isSubmitting!==this.props.formik.isSubmitting},r.componentDidMount=function(){this.props.formik.registerField(this.props.name,{validate:this.props.validate})},r.componentDidUpdate=function(t){this.props.name!==t.name&&(this.props.formik.unregisterField(t.name),this.props.formik.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==t.validate&&this.props.formik.registerField(this.props.name,{validate:this.props.validate})},r.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},r.render=function(){var t=this.props,e=t.name,r=t.render,i=t.as,o=t.children,s=t.component,a=t.formik,u=j(t,["validate","name","render","as","children","component","shouldUpdate","formik"]),c=j(a,["validate","validationSchema"]),l=a.getFieldProps(x({name:e},u)),p={field:l,meta:{value:I(a.values,e),error:I(a.errors,e),touched:!!I(a.touched,e),initialValue:I(a.initialValues,e),initialTouched:!!I(a.initialTouched,e),initialError:I(a.initialErrors,e)},form:c};if(r)return r(p);if(E(o))return o(p);if(s){if("string"==typeof s){var f=u.innerRef,d=j(u,["innerRef"]);return Object(n.createElement)(s,x({ref:f},l,d),o)}return Object(n.createElement)(s,x({field:l,form:a},u),o)}var h=i||"input";if("string"==typeof h){var v=u.innerRef,m=j(u,["innerRef"]);return Object(n.createElement)(h,x({ref:v},l,m),o)}return Object(n.createElement)(h,x({},l,u),o)},e}(n.Component))},function(t,e,r){var n=r(11),i=r(32),o=r(6),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},function(t,e,r){var n=r(68);t.exports=function(t){return n(t,4)}},function(t,e,r){var n=r(84),i=r(77),o=r(4),s=r(26),a=r(85),u=r(16),c=r(13);t.exports=function(t){return o(t)?n(t,u):s(t)?[t]:i(a(c(t)))}},function(t,e,r){"use strict";var n=r(216),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(t){return n.isMemo(t)?s:a[t.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(h){var i=d(r);i&&i!==h&&t(e,i,n)}var s=l(r);p&&(s=s.concat(p(r)));for(var a=u(e),v=u(r),m=0;m<s.length;++m){var y=s[m];if(!(o[y]||n&&n[y]||v&&v[y]||a&&a[y])){var g=f(r,y);try{c(e,y,g)}catch(t){}}}}return e}},function(t,e,r){var n=r(99)((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}));t.exports=n},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(0)).default.createContext({isWorking:!1,config:null,prepareConfig:function(){throw new Error("Not implemented!")},updateUseBigText:function(){throw new Error("Not implemented")},updateIsDarkLogo:function(){throw new Error("Not implemented!")},updateTntLinks:function(){throw new Error("Not implemented!")},updateTntActions:function(){throw new Error("Not implemented!")},updateAllOrdersAreTrunkrs:function(){throw new Error("Not implemented!")},updateUseOrderRules:function(){throw new Error("Not implemented!")},updateOrderRules:function(){throw new Error("Not implemented!")},updateIsSubRenewalsEnabled:function(){throw new Error("Not implemented!")}});e.default=i},function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.findAuditLogs=e.doUpdateOrderRules=e.doUpdateOrderRulesEnabled=e.doUpdateSubRenewalsEnabled=e.doUpdateUseBigTextRequest=e.doUpdateUseAllOrdersAreTrunkrsRequest=e.doUpdateUseTntAccountsRequest=e.doUpdateUseTntLinksRequest=e.doUpdateUseDarkRequest=e.doConfigureRequest=e.doShippingReqisterRequest=e.decodeHtmlString=void 0;var s=o(r(109)),a=o(r(30));e.decodeHtmlString=function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.value},e.doShippingReqisterRequest=function(t,e,r){return n(void 0,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,s.default.request({method:"POST",baseURL:a.default.apiBaseUrl,url:"integrations",headers:{Authorization:"Bearer "+t,"X-Organization-Id":e},data:{type:"WooCommerce",name:window.location.hostname,version:1,meta:r}})];case 1:return[2,n.sent().data]}}))}))},e.doConfigureRequest=function(t,e,r,o){return n(void 0,void 0,void 0,(function(){var n;return i(this,(function(i){switch(i.label){case 0:return(n=new FormData).append("action","tr-wc_register-plugin"),n.append("accessToken",t),n.append("organizationId",e),n.append("organizationName",r),n.append("integrationId",o),[4,s.default.request({method:"POST",url:ajaxurl,data:n})];case 1:return i.sent(),[2]}}))}))},e.doUpdateUseDarkRequest=function(t){return n(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-dark"),e.append("isDarkLogo",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return r.sent(),[2]}}))}))},e.doUpdateUseTntLinksRequest=function(t){return n(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-tnt-links"),e.append("isEmailLinksEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return r.sent(),[2]}}))}))},e.doUpdateUseTntAccountsRequest=function(t){return n(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-tnt-account"),e.append("isAccountTrackTraceEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return r.sent(),[2]}}))}))},e.doUpdateUseAllOrdersAreTrunkrsRequest=function(t){return n(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-all-orders-are-trunkrs"),e.append("isAllOrdersAreTrunkrsEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return r.sent(),[2]}}))}))},e.doUpdateUseBigTextRequest=function(t){return n(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-big-checkout-text"),e.append("isUseBigTextEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return r.sent(),[2]}}))}))},e.doUpdateSubRenewalsEnabled=function(t){return n(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-sub-renewals"),e.append("isSubRenewalsEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return r.sent(),[2]}}))}))},e.doUpdateOrderRulesEnabled=function(t){return n(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return(e=new FormData).append("action","tr-wc_update-use-order-rules"),e.append("isOrderRulesEnabled",t.toString()),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return r.sent(),[2]}}))}))},e.doUpdateOrderRules=function(t){return n(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return(e=new FormData).append("action","tr-wc_update-order-rules"),e.append("orderRules",t),[4,s.default.request({method:"POST",url:ajaxurl,data:e})];case 1:return r.sent(),[2]}}))}))},e.findAuditLogs=function(){return n(void 0,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,s.default.get(""+ajaxurl,{params:{action:"tr-wc_get-order-logs"}})];case 1:return[2,t.sent().data]}}))}))}},function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},function(t,e,r){"use strict";var n=r(2);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(n.isURLSearchParams(e))o=e.toString();else{var s=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){"use strict";(function(e){var n=r(2),i=r(115),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(a=r(60)),a),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(o)})),t.exports=u}).call(this,r(59))},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,c=[],l=!1,p=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&d())}function d(){if(!l){var t=a(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++p<e;)u&&u[p].run();p=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new h(t,e)),1!==c.length||l||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";var n=r(2),i=r(116),o=r(118),s=r(56),a=r(119),u=r(122),c=r(123),l=r(61);t.exports=function(t){return new Promise((function(e,r){var p=t.data,f=t.headers;n.isFormData(p)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";f.Authorization="Basic "+btoa(h+":"+v)}var m=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),s(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};i(e,r,o),d=null}},d.onabort=function(){d&&(r(l("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){r(l("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var y=(t.withCredentials||c(m))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;y&&(f[t.xsrfHeaderName]=y)}if("setRequestHeader"in d&&n.forEach(f,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),r(t),d=null)})),p||(p=null),d.send(p)}))}},function(t,e,r){"use strict";var n=r(117);t.exports=function(t,e,r,i,o){var s=new Error(t);return n(s,e,r,i,o)}},function(t,e,r){"use strict";var n=r(2);t.exports=function(t,e){e=e||{};var r={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function c(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=u(void 0,t[i])):r[i]=u(t[i],e[i])}n.forEach(i,(function(t){n.isUndefined(e[t])||(r[t]=u(void 0,e[t]))})),n.forEach(o,c),n.forEach(s,(function(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=u(void 0,t[i])):r[i]=u(void 0,e[i])})),n.forEach(a,(function(n){n in e?r[n]=u(t[n],e[n]):n in t&&(r[n]=u(void 0,t[n]))}));var l=i.concat(o).concat(s).concat(a),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return n.forEach(p,c),r}},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(8));r(146),e.default=function(t){var e=t.disabled,r=t.checked,i=t.tabIndex,a=void 0===i?1:i,u=t.children,c=t.onChange;return o.jsxs("span",n({className:"tr-wc-switchContainer"},{children:[o.jsx("div",n({tabIndex:a,role:"button",className:s.default("tr-wc-switch",{"tr-wc-switch-checked":r,"tr-wc-switch-disabled":e}),onClick:e?void 0:c},{children:o.jsx("span",{className:"tr-wc-switchKnob"},void 0)}),void 0),o.jsx("span",n({className:"tr-wc-switchContent"},{children:u}),void 0)]}),void 0)}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(64))},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(33),i=r(180),o=r(71),s=r(182),a=r(189),u=r(192),c=r(77),l=r(193),p=r(195),f=r(81),d=r(196),h=r(25),v=r(201),m=r(202),y=r(207),g=r(4),b=r(37),w=r(209),_=r(12),x=r(211),O=r(15),j=r(43),T={};T["[object Arguments]"]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T["[object Object]"]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T["[object Function]"]=T["[object WeakMap]"]=!1,t.exports=function t(e,r,k,E,S,C){var A,D=1&r,F=2&r,R=4&r;if(k&&(A=S?k(e,E,S,C):k(e)),void 0!==A)return A;if(!_(e))return e;var P=g(e);if(P){if(A=v(e),!D)return c(e,A)}else{var M=h(e),I="[object Function]"==M||"[object GeneratorFunction]"==M;if(b(e))return u(e,D);if("[object Object]"==M||"[object Arguments]"==M||I&&!S){if(A=F||I?{}:y(e),!D)return F?p(e,a(A,e)):l(e,s(A,e))}else{if(!T[M])return S?e:{};A=m(e,M,D)}}C||(C=new n);var U=C.get(e);if(U)return U;C.set(e,A),x(e)?e.forEach((function(n){A.add(t(n,r,k,n,e,C))})):w(e)&&e.forEach((function(n,i){A.set(i,t(n,r,k,i,e,C))}));var L=P?void 0:(R?F?d:f:F?j:O)(e);return i(L||e,(function(n,i){L&&(n=e[i=n]),o(A,i,t(n,r,k,i,e,C))})),A}},function(t,e,r){var n=r(11),i=r(12);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(23),i=r(34),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var s=t[e];o.call(t,e)&&i(s,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(183),i=r(73),o=r(4),s=r(37),a=r(74),u=r(75),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),l=!r&&i(t),p=!r&&!l&&s(t),f=!r&&!l&&!p&&u(t),d=r||l||p||f,h=d?n(t.length,String):[],v=h.length;for(var m in t)!e&&!c.call(t,m)||d&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,v))||h.push(m);return h}},function(t,e,r){var n=r(184),i=r(6),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(186),i=r(40),o=r(41),s=o&&o.isTypedArray,a=s?i(s):n;t.exports=a},function(t,e,r){var n=r(69),i=r(39);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(80),i=r(32),o=r(44),s=r(78),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,o(t)),t=i(t);return e}:s;t.exports=a},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},function(t,e,r){var n=r(82),i=r(44),o=r(15);t.exports=function(t){return n(t,o,i)}},function(t,e,r){var n=r(80),i=r(4);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},function(t,e,r){var n=r(3).Uint8Array;t.exports=n},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},function(t,e,r){var n=r(213),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=s},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"currentColor"},{children:i.jsx("path",{fill:"currentColor",d:"M12 12V19.88C12.04 20.18 11.94 20.5 11.71 20.71C11.32 21.1 10.69 21.1 10.3 20.71L8.29 18.7C8.06 18.47 7.96 18.16 8 17.87V12H7.97L2.21 4.62C1.87 4.19 1.95 3.56 2.38 3.22C2.57 3.08 2.78 3 3 3H17C17.22 3 17.43 3.08 17.62 3.22C18.05 3.56 18.13 4.19 17.79 4.62L12.03 12H12M15 17H18V14H20V17H23V19H20V22H18V19H15V17Z"},void 0)}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(0)),a=i(r(8)),u=i(r(219)),c=i(r(234)),l=i(r(89)),p=i(r(237)),f=i(r(238));r(240),e.default=function(t){var e=t.open,r=t.classes,i=t.title,d=t.footerContent,h=t.children,v=t.onClose,m=s.default.useRef(null),y=s.default.useRef(null),g=s.default.useCallback((function(){var t=m.current,e=y.current;if(e&&t){var r=e.clientHeight,n=e.clientWidth;t.setAttribute("style","top: calc(50vh - "+Math.round(r/2)+"px);left: calc(50vw - "+Math.round(n/2)+"px); width: "+n+"px;height: "+r+"px;")}}),[]);return s.default.useEffect(g,[g,e]),e?o.jsxs(o.Fragment,{children:[o.jsx(f.default,{open:!0,className:null==r?void 0:r.backdrop,onClick:v},void 0),o.jsx(u.default,{target:"window",onResize:g},void 0),o.jsx(c.default,{children:o.jsx("div",n({className:a.default("tr-wc-modal-root",null==r?void 0:r.root),ref:m},{children:o.jsxs("div",n({role:"dialog",className:a.default("tr-wc-modal-rootContainer",null==r?void 0:r.container),ref:y},{children:[o.jsxs("div",n({className:a.default("tr-wc-modal-contentContainer",null==r?void 0:r.contentPanel)},{children:[o.jsxs("span",n({role:"toolbar",className:a.default("tr-wc-modal-header",null==r?void 0:r.header)},{children:[i?o.jsx("h3",{children:i},void 0):o.jsx("span",{},void 0),o.jsx(l.default,{icon:o.jsx(p.default,{},void 0),onClick:v},void 0)]}),void 0),o.jsx("span",n({className:a.default("tr-wc-modal-content",null==r?void 0:r.content)},{children:h}),void 0)]}),void 0),d&&o.jsx("span",n({role:"toolbar",className:a.default("tr-wc-modal-footer",null==r?void 0:r.footer)},{children:d}),void 0)]}),void 0)}),void 0)},void 0)]},void 0):null}},function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(8));r(236),e.default=function(t){var e=t.icon,r=t.className,i=t.onClick;return o.jsx("button",n({type:"button",className:s.default("tr-wc-iconButton-root",r),onClick:i},{children:o.jsx(e.type,n({},e.props,{className:s.default("tr-wc-iconButton-icon",e.props.className)}),void 0)}),void 0)}},function(t,e,r){var n=r(91),i=r(73),o=r(4),s=r(74),a=r(39),u=r(16);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,p=!1;++c<l;){var f=u(e[c]);if(!(p=null!=t&&r(t,f)))break;t=t[f]}return p||++c!=l?p:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(o(t)||i(t))}},function(t,e,r){var n=r(4),i=r(46),o=r(85),s=r(13);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(s(t))}},function(t,e,r){var n=r(252),i=r(15);t.exports=function(t,e){return t&&n(t,e,i)}},function(t,e,r){var n=r(254),i=r(267),o=r(271),s=r(4),a=r(272);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):n(t):a(t)}},function(t,e,r){var n=r(256),i=r(6);t.exports=function t(e,r,o,s,a){return e===r||(null==e||null==r||!i(e)&&!i(r)?e!=e&&r!=r:n(e,r,o,s,t,a))}},function(t,e,r){var n=r(257),i=r(260),o=r(261);t.exports=function(t,e,r,s,a,u){var c=1&r,l=t.length,p=e.length;if(l!=p&&!(c&&p>l))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var h=-1,v=!0,m=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++h<l;){var y=t[h],g=e[h];if(s)var b=c?s(g,y,h,e,t,u):s(y,g,h,t,e,u);if(void 0!==b){if(b)continue;v=!1;break}if(m){if(!i(e,(function(t,e){if(!o(m,e)&&(y===t||a(y,t,r,s,u)))return m.push(e)}))){v=!1;break}}else if(y!==g&&!a(y,g,r,s,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},function(t,e,r){var n=r(12);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},function(t,e,r){var n=r(91),i=r(16);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},function(t,e,r){var n=r(275),i=r(276),o=r(279),s=RegExp("['’]","g");t.exports=function(t){return function(e){return n(o(i(e).replace(s,"")),t,"")}}},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e,r){var n=r(68);t.exports=function(t){return n(t,5)}},function(t,e,r){var n=r(283),i=r(99)((function(t,e,r){return e=e.toLowerCase(),t+(r?n(e):e)}));t.exports=i},function(t,e,r){var n=r(23),i=r(92),o=r(93);t.exports=function(t,e){var r={};return e=o(e,3),i(t,(function(t,i,o){n(r,e(t,i,o),t)})),r}},function(t,e){function r(t,e){var r=t.length,n=new Array(r),i={},o=r,s=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++){var i=t[r];e.has(i[0])||e.set(i[0],new Set),e.has(i[1])||e.set(i[1],new Set),e.get(i[0]).add(i[1])}return e}(e),a=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++)e.set(t[r],r);return e}(t);for(e.forEach((function(t){if(!a.has(t[0])||!a.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||u(t[o],o,new Set);return n;function u(t,e,o){if(o.has(t)){var c;try{c=", node was:"+JSON.stringify(t)}catch(t){c=""}throw new Error("Cyclic dependency"+c)}if(!a.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!i[e]){i[e]=!0;var l=s.get(t)||new Set;if(e=(l=Array.from(l)).length){o.add(t);do{var p=l[--e];u(p,a.get(p),o)}while(e);o.delete(t)}n[--r]=t}}}t.exports=function(t){return r(function(t){for(var e=new Set,r=0,n=t.length;r<n;r++){var i=t[r];e.add(i[0]),e.add(i[1])}return Array.from(e)}(t),t)},t.exports.array=r},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.appElement=void 0;var i=r(28);r(106);var o=n(r(107));e.appElement=document.getElementById("tr-wc-settings"),e.appElement&&i.render(i.createElement(o.default),e.appElement)},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(r(108)),s=n(r(127));e.default=function(){return i.jsx(o.default,{children:i.jsx(s.default,{},void 0)},void 0)}},function(t,e,r){"use strict";var n,i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=r(1),c=a(r(0)),l=a(r(53)),p=r(54),f=null===(n=document.getElementById("__tr-wc-settings__"))||void 0===n?void 0:n.innerText,d=f?JSON.parse(f):{};e.default=function(t){var e=t.children,r=c.default.useState(!1),n=r[0],a=r[1],f=c.default.useState(d),h=f[0],v=f[1],m=c.default.useCallback((function(t,e){return o(void 0,void 0,void 0,(function(){var r,n,o;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,4,5]),a(!0),[4,p.doShippingReqisterRequest(t,e,h.metaBag)];case 1:return r=s.sent(),[4,p.doConfigureRequest(r.accessToken,e,r.organizationName,r.integrationId)];case 2:return s.sent(),v(i(i({},h),{isConfigured:!0,details:{integrationId:r.integrationId,organizationId:e,organizationName:r.organizationName}})),[3,5];case 3:return n=s.sent(),o=n,console.error(o),[3,5];case 4:return a(!1),[7];case 5:return[2]}}))}))}),[h]),y=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return v(i(i({},h),{isDarkLogo:!h.isDarkLogo})),p.doUpdateUseDarkRequest(!h.isDarkLogo).catch((function(){v(i(i({},h),{isDarkLogo:h.isDarkLogo}))})),[2]}))}))}),[h]),g=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return v(i(i({},h),{isEmailLinksEnabled:!h.isEmailLinksEnabled})),p.doUpdateUseTntLinksRequest(!h.isEmailLinksEnabled).catch((function(){v(i(i({},h),{isEmailLinksEnabled:h.isEmailLinksEnabled}))})),[2]}))}))}),[h]),b=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return v(i(i({},h),{isAccountTrackTraceEnabled:!h.isAccountTrackTraceEnabled})),p.doUpdateUseTntAccountsRequest(!h.isAccountTrackTraceEnabled).catch((function(){v(i(i({},h),{isAccountTrackTraceEnabled:h.isAccountTrackTraceEnabled}))})),[2]}))}))}),[h]),w=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return v(i(i({},h),{isAllOrdersAreTrunkrsEnabled:!h.isAllOrdersAreTrunkrsEnabled})),p.doUpdateUseAllOrdersAreTrunkrsRequest(!h.isAllOrdersAreTrunkrsEnabled).catch((function(){v(i(i({},h),{isAllOrdersAreTrunkrsEnabled:h.isAllOrdersAreTrunkrsEnabled}))})),[2]}))}))}),[h]),_=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return v(i(i({},h),{isSubRenewalsEnabled:!h.isSubRenewalsEnabled})),p.doUpdateSubRenewalsEnabled(!h.isSubRenewalsEnabled).catch((function(){v(i(i({},h),{isSubRenewalsEnabled:h.isSubRenewalsEnabled}))})),[2]}))}))}),[h]),x=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return v(i(i({},h),{isBigTextEnabled:!h.isBigTextEnabled})),p.doUpdateUseBigTextRequest(!h.isBigTextEnabled).catch((function(){v(i(i({},h),{isBigTextEnabled:h.isBigTextEnabled}))})),[2]}))}))}),[h]),O=c.default.useCallback((function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return v(i(i({},h),{isOrderRulesEnabled:!h.isOrderRulesEnabled})),p.doUpdateOrderRulesEnabled(!h.isOrderRulesEnabled).catch((function(){v(i(i({},h),{isOrderRulesEnabled:h.isOrderRulesEnabled}))})),[2]}))}))}),[h]),j=c.default.useCallback((function(t){return o(void 0,void 0,void 0,(function(){return s(this,(function(e){return v(i(i({},h),{orderRules:t})),p.doUpdateOrderRules(t).catch((function(){v(i(i({},h),{orderRules:t}))})),[2]}))}))}),[h]),T=c.default.useMemo((function(){return{isWorking:n,config:h,prepareConfig:m,updateIsDarkLogo:y,updateTntLinks:g,updateTntActions:b,updateAllOrdersAreTrunkrs:w,updateUseBigText:x,updateUseOrderRules:O,updateOrderRules:j,updateIsSubRenewalsEnabled:_}}),[h,n,m,y,b,g,w,x,O,j,_]);return u.jsx(l.default.Provider,i({value:T},{children:e}),void 0)}},function(t,e,r){t.exports=r(110)},function(t,e,r){"use strict";var n=r(2),i=r(55),o=r(111),s=r(62);function a(t){var e=new o(t),r=i(o.prototype.request,e);return n.extend(r,o.prototype,e),n.extend(r,e),r}var u=a(r(58));u.Axios=o,u.create=function(t){return a(s(u.defaults,t))},u.Cancel=r(63),u.CancelToken=r(124),u.isCancel=r(57),u.all=function(t){return Promise.all(t)},u.spread=r(125),u.isAxiosError=r(126),t.exports=u,t.exports.default=u},function(t,e,r){"use strict";var n=r(2),i=r(56),o=r(112),s=r(113),a=r(62);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},u.prototype.getUri=function(t){return t=a(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,r){return this.request(a(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,r,n){return this.request(a(n||{},{method:t,url:e,data:r}))}})),t.exports=u},function(t,e,r){"use strict";var n=r(2);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,r){"use strict";var n=r(2),i=r(114),o=r(57),s=r(58);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,r){"use strict";var n=r(2);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},function(t,e,r){"use strict";var n=r(2);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},function(t,e,r){"use strict";var n=r(61);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,r){"use strict";var n=r(2);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,r){"use strict";var n=r(120),i=r(121);t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var n=r(2),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,o,s={};return t?(n.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([r]):s[e]?s[e]+", "+r:r}})),s):s}},function(t,e,r){"use strict";var n=r(2);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var n=r(63);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=o(r(0)),u=o(r(128)),c=o(r(129)),l=o(r(130)),p=o(r(132)),f=o(r(141)),d=o(r(145)),h=o(r(148)),v=r(296);r(297),e.default=function(){var t=u.default(),e=t.isWorking,r=t.config,o=t.prepareConfig,m=t.updateUseBigText,y=t.updateIsDarkLogo,g=t.updateTntLinks,b=t.updateTntActions,w=t.updateAllOrdersAreTrunkrs,_=t.updateUseOrderRules,x=t.updateOrderRules,O=t.updateIsSubRenewalsEnabled,j=a.default.useState(!1),T=j[0],k=j[1],E=a.default.useCallback((function(t){return n(void 0,void 0,void 0,(function(){return i(this,(function(e){return[2,o(t.accessToken,t.organizationId)]}))}))}),[o]),S=a.default.useCallback((function(t){return n(void 0,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,,2,3]),k(!0),[4,x(v.toOrderRuleString(t))];case 1:return e.sent(),[3,3];case 2:return k(!1),[7];case 3:return[2]}}))}))}),[x]),C=a.default.useMemo((function(){return v.fromOrderRuleString(null==r?void 0:r.orderRules)}),[null==r?void 0:r.orderRules]);return s.jsxs(l.default,{children:[s.jsx(c.default,{className:"tr-wc-trunkrsFull"},void 0),(null==r?void 0:r.isConfigured)?s.jsxs(s.Fragment,{children:[s.jsx(f.default,{integrationId:r.details.integrationId,organizationId:r.details.organizationId,organizationName:r.details.organizationName},void 0),s.jsx(h.default,{isLoading:T,isSubRenewalsEnabled:r.isSubRenewalsEnabled,rules:C,isOrderFiltersEnabled:r.isOrderRulesEnabled,allOrdersAreTrunkrs:r.isAllOrdersAreTrunkrsEnabled,onAllOrdersAreTrunkrs:w,onEnableOrderRules:_,onSaveRules:S,onIsSubRenewalsEnabled:O},void 0),s.jsx(d.default,{useBigText:r.isBigTextEnabled,darkLogo:r.isDarkLogo,tntEmailLinks:r.isEmailLinksEnabled,tntAccountActions:r.isAccountTrackTraceEnabled,onUseBigTextChanged:m,onDarkLogoChanged:y,onTntEmailLinksChanged:g,onTntAccountActionsChanged:b},void 0)]},void 0):s.jsx(p.default,{loading:e,onLoginDone:E},void 0)]},void 0)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(0)),o=n(r(53));e.default=function(){return i.default.useContext(o.default)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({className:e,viewBox:"0 0 320 38.19"},{children:i.jsxs("g",n({transform:"translate(-238.467 -453.779)"},{children:[i.jsxs("g",n({transform:"translate(238.467 453.779)"},{children:[i.jsxs("g",n({transform:"translate(67.154)"},{children:[i.jsx("path",{d:"M567.979 467.551v30.663h-7.144v-30.663h-16.181l.183-4.991h39.2l.122 4.991z",fill:"#201047",transform:"translate(-544.654 -460.633)"},void 0),i.jsx("path",{d:"M717.507 522.354v-27.661l5.129-.282.305 2.583.306 3.8h.122c2.625-4.227 7.2-6.763 13.066-6.763a21.582 21.582 0 0 1 4.213.423l-.366 4.837a18.181 18.181 0 0 0-4.274-.47c-6.777 0-12.029 3.992-12.029 10.1v13.431z",fill:"#201047",transform:"translate(-678.979 -484.774)"},void 0),i.jsx("path",{d:"M880.84 513.949c0 6.481-5.373 10.473-16.608 10.473-11.174 0-16.547-4.039-16.547-10.473v-17.987h6.472v17.8c0 3.9 3.3 6.246 10.075 6.246s10.136-2.3 10.136-6.246v-17.8h6.472z",fill:"#201047",transform:"translate(-780.09 -486.279)"},void 0),i.jsx("path",{d:"M1064.4 522.02v-17.283c0-4.6-3.48-6.669-10.013-6.669-3.6 0-8.06 1.221-10.2 3.428v20.524h-6.472v-27.755l4.518-.282 1.221 3.24a22.331 22.331 0 0 1 12.639-3.616c9.22 0 14.776 3.8 14.776 11.13v17.283z",fill:"#201047",transform:"translate(-927.733 -484.44)"},void 0),i.jsx("path",{d:"M1234.834 474.161h6.777l12.7-11.022h7.876l-15.143 12.923 15.754 15.3h-7.877l-13.372-13.065h-6.717v13.065h-6.472v-37.298l6.472-.285z",fill:"#201047",transform:"translate(-1075.837 -453.779)"},void 0),i.jsx("path",{d:"M1409.318 522.354v-27.661l5.129-.282.305 2.583.305 3.8h.122c2.625-4.227 7.2-6.763 13.066-6.763a21.581 21.581 0 0 1 4.213.423l-.366 4.837a18.181 18.181 0 0 0-4.274-.47c-6.777 0-12.029 3.992-12.029 10.1v13.431z",fill:"#201047",transform:"translate(-1216.059 -484.774)"},void 0),i.jsx("path",{d:"M1548.524 522.8c-5.19 0-10.014-.939-13.372-2.677l.916-4.133c3.3 1.831 8.365 2.771 12.517 2.771 6.167 0 8.67-2.067 8.67-4.415 0-6.105-22.042-2.865-22.042-12.539 0-4.79 4.946-7.984 14.715-7.984a37.911 37.911 0 0 1 11.723 1.738l-.611 4.039a40.578 40.578 0 0 0-11.357-1.691c-5.068 0-8.243 1.456-8.243 3.663 0 5.683 21.859 2.4 21.859 12.257.001 5.071-4.334 8.971-14.775 8.971z",fill:"#201047",transform:"translate(-1314.294 -484.607)"},void 0)]}),void 0),i.jsx("g",n({transform:"translate(0 1.926)"},{children:i.jsxs("g",{children:[i.jsx("g",n({transform:"translate(.243)"},{children:i.jsx("path",{fill:"#00d163",d:"M239.9 473.289a.981.981 0 0 0 .663 1.708l17.7-.048a1.56 1.56 0 0 0 1.046-.406l13.191-11.984-19.5.054a3.507 3.507 0 0 0-2.351.912z",transform:"translate(-239.576 -462.559)"},void 0)}),void 0),i.jsx("path",{d:"M296.542 462.586l-21.3.051a1.786 1.786 0 0 0-1.2.47l-12.629 11.57a1.523 1.523 0 0 0-.489 1.121v8.934a.94.94 0 0 1-.932.946l-8.148.02a3.363 3.363 0 0 0-2.27.892l-10.779 9.917a1 1 0 0 0 .662 1.729l20.974-.05a1.275 1.275 0 0 0 .858-.336l12.775-11.7a1.522 1.522 0 0 0 .49-1.12v-8.934a.94.94 0 0 1 .932-.946l8.739-.021a1.841 1.841 0 0 0 1.242-.488l11.606-10.678a.789.789 0 0 0-.531-1.377z",fill:"#201047",transform:"translate(-238.467 -462.58)"},void 0)]},void 0)}),void 0)]}),void 0),i.jsx("g",n({transform:"translate(554.613 460.161)"},{children:i.jsx("path",{fill:"#1d1047",d:"M1667.281 484.388a1.928 1.928 0 1 1-1.921-1.876 1.885 1.885 0 0 1 1.921 1.876zm-3.374 0a1.453 1.453 0 0 0 1.464 1.5 1.436 1.436 0 0 0 1.43-1.487 1.448 1.448 0 1 0-2.893-.011zm1.155.983h-.435V483.5a3.792 3.792 0 0 1 .72-.057 1.169 1.169 0 0 1 .652.137.52.52 0 0 1 .183.412.48.48 0 0 1-.389.434v.023a.553.553 0 0 1 .343.457 1.43 1.43 0 0 0 .137.469h-.469a1.613 1.613 0 0 1-.148-.458c-.034-.206-.149-.3-.389-.3h-.206zm.011-1.063h.206c.24 0 .434-.08.434-.275 0-.171-.126-.286-.4-.286a1.049 1.049 0 0 0-.24.023z",transform:"translate(-1663.427 -482.512)"},void 0)}),void 0)]}),void 0)}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);r(131),e.default=function(t){var e=t.children;return i.jsx("div",n({className:"tr-wc-centeredContainer"},{children:e}),void 0)}},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(133)),a=i(r(18));r(140),e.default=function(t){var e=t.loading,r=t.onLoginDone;return o.jsxs(a.default,n({title:"Platform connectie",classes:{content:"tr-wc-connectionPanelContent"}},{children:[o.jsxs("span",n({className:"tr-wc-connectionStatus"},{children:[o.jsx("h3",{children:"Niet verbonden met Trunkrs"},void 0),o.jsx("p",{children:"Verbind uw winkel met het Trunkrs platform om te beginnen met verzenden."},void 0)]}),void 0),o.jsx("span",{children:o.jsx(s.default,{loading:e,onLoginDone:r},void 0)},void 0)]}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(0)),a=r(134),u=i(r(8)),c=i(r(135)),l=i(r(17));r(137);var p=i(r(31)),f=i(r(30));e.default=function(t){var e=t.className,r=t.loading,i=t.onLoginDone,d=s.default.useRef(),h=s.default.useCallback((function(t){var e=t.data,r=e.type,n=e.organizationId;"ORG_ID_RECEIVED"===r&&(d.current=n)}),[]),v=s.default.useCallback((function(t,e){window.removeEventListener("message",h),t?console.error(t):null==i||i.call(null,{organizationId:d.current,accessToken:e.accessToken})}),[h,i]),m=s.default.useCallback((function(){var t=btoa(JSON.stringify({origin:window.location.origin}));new a.WebAuth({domain:f.default.auth0.domain,clientID:f.default.auth0.clientId,audience:f.default.auth0.audience,state:t,redirectUri:f.default.auth0.redirectUrl}).popup.authorize({domain:f.default.auth0.domain,clientId:f.default.auth0.clientId,audience:f.default.auth0.audience,redirectUri:f.default.auth0.redirectUrl,responseType:"token"},v),window.removeEventListener("message",h),window.addEventListener("message",h)}),[v,h]);return o.jsxs(l.default,n({color:"green",disabled:r,className:u.default("tr-wc-connectButton",e),onClick:m},{children:[r?o.jsx(p.default,{size:32,thickness:2},void 0):o.jsx(c.default,{className:"tr-wc-logo",variant:"indigo"},void 0),o.jsx("p",n({className:"tr-wc-buttonText"},{children:r?"Verbinden":"Verbind"}),void 0)]}),void 0)}},function(t,e,r){"use strict";r.r(e),function(t,n){r.d(e,"Authentication",(function(){return Re})),r.d(e,"Management",(function(){return Pe})),r.d(e,"WebAuth",(function(){return Ae})),r.d(e,"version",(function(){return ot}));var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}var s=o((function(t){var e,r;e=i,r=function(){function t(t){var e=[];if(0===t.length)return"";if("string"!=typeof t[0])throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var r=t.shift();t[0]=r+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<t.length;n++){var i=t[n];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(n>0&&(i=i.replace(/^[\/]+/,"")),i=n<t.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),e.push(i))}var o=e.join("/"),s=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return s.shift()+(s.length>0?"?":"")+s.join("&")}return function(){return t("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()})),a=Object.prototype.hasOwnProperty,u=Array.isArray,c=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),l=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},p={arrayToObject:l,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],o=i.obj[i.prop],s=Object.keys(o),a=0;a<s.length;++a){var c=s[a],l=o[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:o,prop:c}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(u(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r){if(0===t.length)return t;var n=t;if("symbol"==typeof t?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",o=0;o<n.length;++o){var s=n.charCodeAt(o);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(o):s<128?i+=c[s]:s<2048?i+=c[192|s>>6]+c[128|63&s]:s<55296||s>=57344?i+=c[224|s>>12]+c[128|s>>6&63]+c[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(o)),i+=c[240|s>>18]+c[128|s>>12&63]+c[128|s>>6&63]+c[128|63&s])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(u(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(u(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var i=e;return u(e)&&!u(r)&&(i=l(e,n)),u(e)&&u(r)?(r.forEach((function(r,i){if(a.call(e,i)){var o=e[i];o&&"object"==typeof o&&r&&"object"==typeof r?e[i]=t(o,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var o=r[i];return a.call(e,i)?e[i]=t(e[i],o,n):e[i]=o,e}),i)}},f=String.prototype.replace,d=/%20/g,h={RFC1738:"RFC1738",RFC3986:"RFC3986"},v=p.assign({default:h.RFC3986,formatters:{RFC1738:function(t){return f.call(t,d,"+")},RFC3986:function(t){return String(t)}}},h),m=Object.prototype.hasOwnProperty,y={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},g=Array.isArray,b=Array.prototype.push,w=function(t,e){b.apply(t,g(e)?e:[e])},_=Date.prototype.toISOString,x=v.default,O={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:p.encode,encodeValuesOnly:!1,format:x,formatter:v.formatters[x],indices:!1,serializeDate:function(t){return _.call(t)},skipNulls:!1,strictNullHandling:!1},j=function t(e,r,n,i,o,s,a,u,c,l,f,d,h){var v=e;if("function"==typeof a?v=a(r,v):v instanceof Date?v=l(v):"comma"===n&&g(v)&&(v=p.maybeMap(v,(function(t){return t instanceof Date?l(t):t})).join(",")),null===v){if(i)return s&&!d?s(r,O.encoder,h,"key"):r;v=""}if(function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t}(v)||p.isBuffer(v))return s?[f(d?r:s(r,O.encoder,h,"key"))+"="+f(s(v,O.encoder,h,"value"))]:[f(r)+"="+f(String(v))];var m,y=[];if(void 0===v)return y;if(g(a))m=a;else{var b=Object.keys(v);m=u?b.sort(u):b}for(var _=0;_<m.length;++_){var x=m[_],j=v[x];if(!o||null!==j){var T=g(v)?"function"==typeof n?n(r,x):r:r+(c?"."+x:"["+x+"]");w(y,t(j,T,n,i,o,s,a,u,c,l,f,d,h))}}return y},T=Object.prototype.hasOwnProperty,k=Array.isArray,E={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:p.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},S=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},C=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},A=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),a=s?i.slice(0,s.index):i,u=[];if(a){if(!r.plainObjects&&T.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var c=0;r.depth>0&&null!==(s=o.exec(i))&&c<r.depth;){if(c+=1,!r.plainObjects&&T.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(t,e,r,n){for(var i=n?e:C(e,r),o=t.length-1;o>=0;--o){var s,a=t[o];if("[]"===a&&r.parseArrays)s=[].concat(i);else{s=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);r.parseArrays||""!==u?!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[])[c]=i:s[u]=i:s={0:i}}i=s}return i}(u,e,r,n)}},D=function(t,e){var r,n=t,i=function(t){if(!t)return O;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||O.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=v.default;if(void 0!==t.format){if(!m.call(v.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=v.formatters[r],i=O.filter;return("function"==typeof t.filter||g(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:O.addQueryPrefix,allowDots:void 0===t.allowDots?O.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:O.charsetSentinel,delimiter:void 0===t.delimiter?O.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:O.encode,encoder:"function"==typeof t.encoder?t.encoder:O.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:O.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:O.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:O.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:O.strictNullHandling}}(e);"function"==typeof i.filter?n=(0,i.filter)("",n):g(i.filter)&&(r=i.filter);var o,s=[];if("object"!=typeof n||null===n)return"";o=e&&e.arrayFormat in y?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var a=y[o];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var u=0;u<r.length;++u){var c=r[u];i.skipNulls&&null===n[c]||w(s,j(n[c],c,a,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var l=s.join(i.delimiter),p=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),l.length>0?p+l:""},F=o((function(t){function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var i=(r=r.slice(0)).length;n<i;++n)r[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}})),R=I;I.default=I,I.stable=L,I.stableStringify=L;var P=[],M=[];function I(t,e,r){var n;for(function t(e,r,n,i){var o;if("object"==typeof e&&null!==e){for(o=0;o<n.length;o++)if(n[o]===e){var s=Object.getOwnPropertyDescriptor(i,r);return void(void 0!==s.get?s.configurable?(Object.defineProperty(i,r,{value:"[Circular]"}),P.push([i,r,e,s])):M.push([e,r]):(i[r]="[Circular]",P.push([i,r,e])))}if(n.push(e),Array.isArray(e))for(o=0;o<e.length;o++)t(e[o],o,n,e);else{var a=Object.keys(e);for(o=0;o<a.length;o++){var u=a[o];t(e[u],u,n,e)}}n.pop()}}(t,"",[],void 0),n=0===M.length?JSON.stringify(t,e,r):JSON.stringify(t,N(e),r);0!==P.length;){var i=P.pop();4===i.length?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}return n}function U(t,e){return t<e?-1:t>e?1:0}function L(t,e,r){var n,i=function t(e,r,n,i){var o;if("object"==typeof e&&null!==e){for(o=0;o<n.length;o++)if(n[o]===e){var s=Object.getOwnPropertyDescriptor(i,r);return void(void 0!==s.get?s.configurable?(Object.defineProperty(i,r,{value:"[Circular]"}),P.push([i,r,e,s])):M.push([e,r]):(i[r]="[Circular]",P.push([i,r,e])))}if("function"==typeof e.toJSON)return;if(n.push(e),Array.isArray(e))for(o=0;o<e.length;o++)t(e[o],o,n,e);else{var a={},u=Object.keys(e).sort(U);for(o=0;o<u.length;o++){var c=u[o];t(e[c],c,n,e),a[c]=e[c]}if(void 0===i)return a;P.push([i,r,e]),i[r]=a}n.pop()}}(t,"",[],void 0)||t;for(n=0===M.length?JSON.stringify(i,e,r):JSON.stringify(i,N(e),r);0!==P.length;){var o=P.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}return n}function N(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(M.length>0)for(var n=0;n<M.length;n++){var i=M[n];if(i[1]===e&&i[0]===r){r="[Circular]",M.splice(n,1);break}}return t.call(this,e,r)}}function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var B=function(t){return null!==t&&"object"===q(t)};function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var z=$;function $(t){if(t)return function(t){for(var e in $.prototype)Object.prototype.hasOwnProperty.call($.prototype,e)&&(t[e]=$.prototype[e]);return t}(t)}$.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},$.prototype.parse=function(t){return this._parser=t,this},$.prototype.responseType=function(t){return this._responseType=t,this},$.prototype.serialize=function(t){return this._serializer=t,this},$.prototype.timeout=function(t){if(!t||"object"!==V(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},$.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var H=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];$.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!==e.status)return!0;if(t){if(t.code&&H.includes(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},$.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},$.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){n.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}})),n.end((function(r,n){r?e(r):t(n)}))}))}return this._fullfilledPromise.then(t,e)},$.prototype.catch=function(t){return this.then(void 0,t)},$.prototype.use=function(t){return t(this),this},$.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},$.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},$.prototype.get=function(t){return this._header[t.toLowerCase()]},$.prototype.getHeader=$.prototype.get,$.prototype.set=function(t,e){if(B(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},$.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},$.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(B(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(t,e[n]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},$.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},$.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},$.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},$.prototype.redirects=function(t){return this._maxRedirects=t,this},$.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},$.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},$.prototype.send=function(t){var e=B(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&B(this._data))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this._data[n]=t[n]);else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},$.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},$.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},$.prototype._appendQueryString=function(){console.warn("Unsupported")},$.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error("".concat(t+e,"ms exceeded"));n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},$.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var W=Z;function Z(t){if(t)return function(t){for(var e in Z.prototype)Object.prototype.hasOwnProperty.call(Z.prototype,e)&&(t[e]=Z.prototype[e]);return t}(t)}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function G(){this._defaults=[]}Z.prototype.get=function(t){return this.header[t.toLowerCase()]},Z.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=e.split(/ *; */).shift();var r=function(t){return t.split(/ *; */).reduce((function(t,e){var r=e.split(/ *= */),n=r.shift(),i=r.shift();return n&&i&&(t[n]=i),t}),{})}(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=function(t){return t.split(/ *, */).reduce((function(t,e){var r=e.split(/ *; */),n=r[0].slice(1,-1);return t[r[1].split(/ *= */)[1].slice(1,-1)]=n,t}),{})}(t.link))}catch(t){}},Z.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(t){G.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this._defaults.push({fn:t,args:r}),this}})),G.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,function(t){return function(t){if(Array.isArray(t))return J(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return J(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J(t,void 0):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.args))}))};for(var K=G,X=o((function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;function i(){}"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self,t.exports=function(t,r){return"function"==typeof r?new e.Request("GET",t).end(r):1===arguments.length?new e.Request("GET",t):new e.Request(t,r)};var o=e=t.exports;e.Request=f,o.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var s="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function a(t){if(!B(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&u(e,r,t[r]);return e.join("&")}function u(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach((function(r){u(t,e,r)}));else if(B(r))for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&u(t,"".concat(e,"[").concat(n,"]"),r[n]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function c(t){for(var e,r,n={},i=t.split("&"),o=0,s=i.length;o<s;++o)-1===(r=(e=i[o]).indexOf("="))?n[decodeURIComponent(e)]="":n[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return n}function l(t){return/[/+]json($|[^-\w])/.test(t)}function p(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,n,i,o=t.split(/\r?\n/),a={},u=0,c=o.length;u<c;++u)-1!==(e=(r=o[u]).indexOf(":"))&&(n=r.slice(0,e).toLowerCase(),i=s(r.slice(e+1)),a[n]=i);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function f(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,n=null;try{n=new p(r)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",n);try{r._isResponseOK(n)||(t=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=n,t.status=n.status,r.callback(t,n)):r.callback(null,n)}))}function d(t,e,r){var n=o("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}o.serializeObject=a,o.parseString=c,o.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},o.serialize={"application/x-www-form-urlencoded":a,"application/json":R},o.parse={"application/x-www-form-urlencoded":c,"application/json":JSON.parse},W(p.prototype),p.prototype._parseBody=function(t){var e=o.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&l(this.type)&&(e=o.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},p.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,n="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),i=new Error(n);return i.status=this.status,i.method=e,i.url=r,i},o.Response=p,F(f.prototype),z(f.prototype),f.prototype.type=function(t){return this.set("Content-Type",o.types[t]||t),this},f.prototype.accept=function(t){return this.set("Accept",o.types[t]||t),this},f.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"===r(e)&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var i=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,n,i)},f.prototype.query=function(t){return"string"!=typeof t&&(t=a(t)),t&&this._query.push(t),this},f.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},f.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},f.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},f.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},f.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},f.prototype.ca=f.prototype.agent,f.prototype.buffer=f.prototype.ca,f.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},f.prototype.pipe=f.prototype.write,f.prototype._isHost=function(t){return t&&"object"===r(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},f.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||i,this._finalizeQueryString(),this._end()},f.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},f.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=o.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var n;try{n=e.status}catch(t){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",n.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",n.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var i=this._header["content-type"],s=this._serializer||o.serialize[i?i.split(";")[0]:""];!s&&l(i)&&(s=o.serialize["application/json"]),s&&(r=s(r))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},o.agent=function(){return new K},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){K.prototype[t.toLowerCase()]=function(e,r){var n=new o.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}})),K.prototype.del=K.prototype.delete,o.get=function(t,e,r){var n=o("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},o.head=function(t,e,r){var n=o("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},o.options=function(t,e,r){var n=o("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},o.del=d,o.delete=d,o.patch=function(t,e,r){var n=o("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},o.post=function(t,e,r){var n=o("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},o.put=function(t,e,r){var n=o("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}})),Y=(X.Request,[]),Q=[],tt=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),et=0,rt=tt.length;et<rt;++et)Y[et]=tt[et],Q[tt.charCodeAt(et)]=et;function nt(t,e,r){for(var n,i,o=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(Y[(i=n)>>18&63]+Y[i>>12&63]+Y[i>>6&63]+Y[63&i]);return o.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63;var it=function(t){return function(t){for(var e,r=t.length,n=r%3,i=[],o=0,s=r-n;o<s;o+=16383)i.push(nt(t,o,o+16383>s?s:o+16383));return 1===n?(e=t[r-1],i.push(Y[e>>2]+Y[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(Y[e>>10]+Y[e>>4&63]+Y[e<<2&63]+"=")),i.join("")}(function(t){for(var e=new Array(t.length),r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}(t)).replace(/\+/g,"-").replace(/\//g,"_")},ot={raw:"9.16.2"},st=Object.prototype.toString;function at(t,e,r,n){if(r="array"===r?"object":r,t&&typeof t[e]!==r)throw new Error(n)}function ut(t,e,r){if(typeof t!==e)throw new Error(r)}function ct(t,e,r){if(-1===e.indexOf(t))throw new Error(r)}var lt={check:function(t,e,r){if(e.optional&&!t||ut(t,e.type,e.message),"object"===e.type&&r)for(var n=Object.keys(r),i=0;i<n.length;i++){var o=n[i];r[o].optional&&!t[o]||r[o].condition&&!r[o].condition(t)||(at(t,o,r[o].type,r[o].message),r[o].values&&ct(t[o],r[o].values,r[o].value_message))}},attribute:at,variable:ut,value:ct,isArray:function(t){return this.supportsIsArray()?Array.isArray(t):"[object Array]"===st.call(t)},supportsIsArray:function(){return null!=Array.isArray}};function pt(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i=Object.keys(Object(n)),o=0,s=i.length;o<s;o++){var a=i[o],u=Object.getOwnPropertyDescriptor(n,a);void 0!==u&&u.enumerable&&(e[a]=n[a])}}return e}var ft=function(){return Object.assign?Object.assign:pt};function dt(t,e){return e.reduce((function(e,r){return t[r]&&(e[r]=t[r]),e}),{})}function ht(t){var e=[];for(var r in t)e.push(t[r]);return e}function vt(){var t=ht(arguments);return t.unshift({}),ft().apply(void 0,t)}function mt(t){var e=t.match(/^(https?:|file:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return e&&{href:t,protocol:e[1],host:e[2],hostname:e[3],port:e[4],pathname:e[5],search:e[6],hash:e[7]}}function yt(t,e){var r=vt(t);return t[e]&&(r[e]=t[e].trim()),r}var gt={toSnakeCase:function t(e,r){return"object"!=typeof e||lt.isArray(e)||null===e?e:(r=r||[],Object.keys(e).reduce((function(n,i){return n[-1===r.indexOf(i)?function(t){for(var e,r="",n=0,i=!0,o=!0;n<t.length;)e=t.charCodeAt(n),!o&&e>=65&&e<=90||!i&&e>=48&&e<=57?(r+="_",r+=t[n].toLowerCase()):r+=t[n].toLowerCase(),i=e>=48&&e<=57,o=e>=65&&e<=90,n++;return r}(i):i]=t(e[i]),n}),{}))},toCamelCase:function t(e,r,n){return"object"!=typeof e||lt.isArray(e)||null===e?e:(r=r||[],n=n||{},Object.keys(e).reduce((function(i,o){var s,a=-1===r.indexOf(o)?(s=o.split("_")).reduce((function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1)}),s.shift()):o;return i[a]=t(e[a]||e[o],[],n),n.keepOriginal&&(i[o]=t(e[o],[],n)),i}),{}))},blacklist:function(t,e){return Object.keys(t).reduce((function(r,n){return-1===e.indexOf(n)&&(r[n]=t[n]),r}),{})},merge:function(t,e){return{base:e?dt(t,e):t,with:function(t,e){return t=e?dt(t,e):t,vt(this.base,t)}}},pick:dt,getKeysNotIn:function(t,e){var r=[];for(var n in t)-1===e.indexOf(n)&&r.push(n);return r},extend:vt,getOriginFromUrl:function(t){if(t){var e=mt(t);if(!e)return null;var r=e.protocol+"//"+e.hostname;return e.port&&(r+=":"+e.port),r}},getLocationFromUrl:mt,trimUserDetails:function(t){return function(t,e){return["username","email","phoneNumber"].reduce(yt,t)}(t)},updatePropertyOn:function t(e,r,n){"string"==typeof r&&(r=r.split("."));var i=r[0];e.hasOwnProperty(i)&&(1===r.length?e[i]=n:t(e[i],r.slice(1),n))}};function bt(t){this.request=t,this.method=t.method,this.url=t.url,this.body=t._data,this.headers=t._header}function wt(t){this.request=t}function _t(t){this._sendTelemetry=!1!==t._sendTelemetry||t._sendTelemetry,this._telemetryInfo=t._telemetryInfo||null,this._timesToRetryFailedRequests=t._timesToRetryFailedRequests,this.headers=t.headers||{},this._universalLoginPage=t.universalLoginPage}function xt(){return window}bt.prototype.abort=function(){this.request.abort()},bt.prototype.getMethod=function(){return this.method},bt.prototype.getBody=function(){return this.body},bt.prototype.getUrl=function(){return this.url},bt.prototype.getHeaders=function(){return this.headers},wt.prototype.set=function(t,e){return this.request=this.request.set(t,e),this},wt.prototype.send=function(t){return this.request=this.request.send(gt.trimUserDetails(t)),this},wt.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},wt.prototype.end=function(t){return this.request.end(t),new bt(this.request)},_t.prototype.setCommonConfiguration=function(t,e){if(e=e||{},this._timesToRetryFailedRequests>0&&(t=t.retry(this._timesToRetryFailedRequests)),e.noHeaders)return t;var r=this.headers;t=t.set("Content-Type","application/json");for(var n=Object.keys(this.headers),i=0;i<n.length;i++)t=t.set(n[i],r[n[i]]);return this._sendTelemetry&&(t=t.set("Auth0-Client",this.getTelemetryData())),t},_t.prototype.getTelemetryData=function(){var t=this._universalLoginPage?"auth0.js-ulp":"auth0.js",e={name:t,version:ot.raw};this._telemetryInfo&&((e=gt.extend({},this._telemetryInfo)).env=gt.extend({},this._telemetryInfo.env),e.env[t]=ot.raw);var r=JSON.stringify(e);return it(r)},_t.prototype.get=function(t,e){return new wt(this.setCommonConfiguration(X.get(t),e))},_t.prototype.post=function(t,e){return new wt(this.setCommonConfiguration(X.post(t),e))},_t.prototype.patch=function(t,e){return new wt(this.setCommonConfiguration(X.patch(t),e))};var Ot={redirect:function(t){xt().location=t},getDocument:function(){return xt().document},getWindow:xt,getOrigin:function(){var t=xt().location,e=t.origin;return e||(e=gt.getOriginFromUrl(t.href)),e}};function jt(){}jt.prototype.getItem=function(){return null},jt.prototype.removeItem=function(){},jt.prototype.setItem=function(){};var Tt=o((function(t,e){var r;r=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function i(){}function o(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var s=JSON.stringify(r);/^[\{\[]/.test(s)&&(r=s)}catch(t){}r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,!0!==o[u]&&(a+="="+o[u].split(";")[0]));return document.cookie=e+"="+r+a}}function s(t,r){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],s=0;s<o.length;s++){var a=o[s].split("="),u=a.slice(1).join("=");r||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=e(a[0]);if(u=(n.read||n)(u,c)||e(u),r)try{u=JSON.parse(u)}catch(t){}if(i[c]=u,t===c)break}catch(t){}}return t?i[t]:i}}return i.set=o,i.get=function(t){return s(t,!1)},i.getJSON=function(t){return s(t,!0)},i.remove=function(e,r){o(e,"",t(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}((function(){}))},t.exports=r()}));function kt(){}function Et(t){this.disableWarnings=t.disableWarnings}function St(t){if(this.warn=new Et({}),this.storage=new kt,!0===t.__tryLocalStorageFirst)try{var e=Ot.getWindow().localStorage;e&&(this.storage=e)}catch(t){this.warn.warning(t),this.warn.warning("Can't use localStorage. Using CookieStorage instead.")}}function Ct(t){this.handler=new St(t)}function At(t){this.storage=new Ct(t)}function Dt(t,e){return{error:t,errorDescription:e}}kt.prototype.getItem=function(t){return Tt.get(t)},kt.prototype.removeItem=function(t){Tt.remove(t)},kt.prototype.setItem=function(t,e,r){var n=gt.extend({expires:1},r);"https:"===Ot.getWindow().location.protocol&&(n.secure=!0),Tt.set(t,e,n)},Et.prototype.warning=function(t){this.disableWarnings||console.warn(t)},St.prototype.failover=function(){this.storage instanceof jt?this.warn.warning("DummyStorage: ignore failover"):this.storage instanceof kt?(this.warn.warning("CookieStorage: failing over DummyStorage"),this.storage=new jt):(this.warn.warning("LocalStorage: failing over CookieStorage"),this.storage=new kt)},St.prototype.getItem=function(t){try{return this.storage.getItem(t)}catch(e){return this.warn.warning(e),this.failover(),this.getItem(t)}},St.prototype.removeItem=function(t){try{return this.storage.removeItem(t)}catch(e){return this.warn.warning(e),this.failover(),this.removeItem(t)}},St.prototype.setItem=function(t,e,r){try{return this.storage.setItem(t,e,r)}catch(n){return this.warn.warning(n),this.failover(),this.setItem(t,e,r)}},Ct.prototype.getItem=function(t){var e=this.handler.getItem(t);try{return JSON.parse(e)}catch(t){return e}},Ct.prototype.removeItem=function(t){return this.handler.removeItem(t)},Ct.prototype.setItem=function(t,e,r){var n=JSON.stringify(e);return this.handler.setItem(t,n,r)},At.prototype.set=function(t,e){var r={lastUsedConnection:t,lastUsedSub:e};this.storage.setItem("auth0.ssodata",JSON.stringify(r))},At.prototype.get=function(){var t=this.storage.getItem("auth0.ssodata");if(t)return JSON.parse(t)};var Ft={buildResponse:Dt,invalidToken:function(t){return Dt("invalid_token",t)}};function Rt(t,e){return(e=e||{}).ignoreCasing=!!e.ignoreCasing&&e.ignoreCasing,function(r,n){var i;return r||n?(!r&&n.err&&(r=n.err,n=null),!r&&n.error&&(r=n,n=null),r?(i={original:r},gt.updatePropertyOn(i,"original.response.req._data.password","*****"),r.response&&r.response.statusCode&&(i.statusCode=r.response.statusCode),r.response&&r.response.statusText&&(i.statusText=r.response.statusText),r.response&&r.response.body&&(r=r.response.body),r.err&&(r=r.err),i.code=r.code||r.error||r.error_code||r.status||null,i.description=r.errorDescription||r.error_description||r.description||r.error||r.details||r.err||null,e.forceLegacyError&&(i.error=i.code,i.error_description=i.description),r.error_codes&&r.error_details&&(i.errorDetails={codes:r.error_codes,details:r.error_details}),r.name&&(i.name=r.name),r.policy&&(i.policy=r.policy),t(i)):!n.type||"text/html"!==n.type&&"text/plain"!==n.type?e.ignoreCasing?t(null,n.body||n):t(null,gt.toCamelCase(n.body||n,[],{keepOriginal:e.keepOriginalCasing})):t(null,n.text)):t(Ft.buildResponse("generic_error","Something went wrong"))}}var Pt=["realm","audience","otp","client_id","client_secret","redirect_uri","scope","code","grant_type","username","password","refresh_token","assertion","client_assertion","client_assertion_type","code_verifier"],Mt=["connection","connection_scope","auth0Client","owp","device","realm","organization","invitation","protocol","_csrf","_intstate","login_ticket","client_id","response_type","response_mode","redirect_uri","audience","scope","state","nonce","display","prompt","screen_hint","max_age","ui_locales","claims_locales","id_token_hint","login_hint","acr_values","claims","registration","request","request_uri","code_challenge","code_challenge_method","access_type","display"],It="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function Ut(t){var e={exports:{}};return t(e,e.exports),e.exports}var Lt=Ut((function(t,e){t.exports=function(){function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,i=void 0,o=void 0,s=function(t,e){d[r]=t,d[r+1]=e,2===(r+=2)&&(o?o(h):b())},a="undefined"!=typeof window?window:void 0,u=a||{},c=u.MutationObserver||u.WebKitMutationObserver,l="undefined"==typeof self&&void 0!==n&&"[object process]"==={}.toString.call(n),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var t=setTimeout;return function(){return t(h,1)}}var d=new Array(1e3);function h(){for(var t=0;t<r;t+=2)(0,d[t])(d[t+1]),d[t]=void 0,d[t+1]=void 0;r=0}var v,m,y,g,b=void 0;function w(t,e){var r=this,n=new this.constructor(O);void 0===n[x]&&P(n);var i=r._state;if(i){var o=arguments[i-1];s((function(){return F(i,n,o,r._result)}))}else A(r,n,t,e);return n}function _(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(O);return k(e,t),e}b=l?function(){return n.nextTick(h)}:c?(m=0,y=new c(h),g=document.createTextNode(""),y.observe(g,{characterData:!0}),function(){g.data=m=++m%2}):p?((v=new MessageChannel).port1.onmessage=h,function(){return v.port2.postMessage(0)}):void 0===a?function(){try{var t=Function("return this")().require("vertx");return void 0!==(i=t.runOnLoop||t.runOnContext)?function(){i(h)}:f()}catch(t){return f()}}():f();var x=Math.random().toString(36).substring(2);function O(){}var j=void 0;function T(e,r,n){r.constructor===e.constructor&&n===w&&r.constructor.resolve===_?function(t,e){1===e._state?S(t,e._result):2===e._state?C(t,e._result):A(e,void 0,(function(e){return k(t,e)}),(function(e){return C(t,e)}))}(e,r):void 0===n?S(e,r):t(n)?function(t,e,r){s((function(t){var n=!1,i=function(r,i,o,s){try{r.call(i,(function(r){n||(n=!0,e!==r?k(t,r):S(t,r))}),(function(e){n||(n=!0,C(t,e))}))}catch(t){return t}}(r,e);!n&&i&&(n=!0,C(t,i))}),t)}(e,r,n):S(e,r)}function k(t,e){if(t===e)C(t,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(n=e),null===n||"object"!==i&&"function"!==i)S(t,e);else{var r=void 0;try{r=e.then}catch(e){return void C(t,e)}T(t,e,r)}var n,i}function E(t){t._onerror&&t._onerror(t._result),D(t)}function S(t,e){t._state===j&&(t._result=e,t._state=1,0!==t._subscribers.length&&s(D,t))}function C(t,e){t._state===j&&(t._state=2,t._result=e,s(E,t))}function A(t,e,r,n){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+1]=r,i[o+2]=n,0===o&&t._state&&s(D,t)}function D(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,o=t._result,s=0;s<e.length;s+=3)i=e[s+r],(n=e[s])?F(r,n,i,o):i(o);t._subscribers.length=0}}function F(e,r,n,i){var o=t(n),s=void 0,a=void 0,u=!0;if(o){try{s=n(i)}catch(e){u=!1,a=e}if(r===s)return void C(r,new TypeError("A promises callback cannot return that same promise."))}else s=i;r._state!==j||(o&&u?k(r,s):!1===u?C(r,a):1===e?S(r,s):2===e&&C(r,s))}var R=0;function P(t){t[x]=R++,t._state=void 0,t._result=void 0,t._subscribers=[]}var M=function(){function t(t,r){this._instanceConstructor=t,this.promise=new t(O),this.promise[x]||P(this.promise),e(r)?(this.length=r.length,this._remaining=r.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(r),0===this._remaining&&S(this.promise,this._result))):C(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===j&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===_){var i=void 0,o=void 0,s=!1;try{i=t.then}catch(t){s=!0,o=t}if(i===w&&t._state!==j)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(r===I){var a=new r(O);s?C(a,o):T(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new r((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,r){var n=this.promise;n._state===j&&(this._remaining--,2===t?C(n,r):this._result[e]=r),0===this._remaining&&S(n,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;A(t,void 0,(function(t){return r._settledAt(1,e,t)}),(function(t){return r._settledAt(2,e,t)}))},t}(),I=function(){function e(t){this[x]=R++,this._result=this._state=void 0,this._subscribers=[],O!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e((function(e){k(t,e)}),(function(e){C(t,e)}))}catch(e){C(t,e)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var r=this,n=r.constructor;return t(e)?r.then((function(t){return n.resolve(e()).then((function(){return t}))}),(function(t){return n.resolve(e()).then((function(){throw t}))})):r.then(e,e)},e}();return I.prototype.then=w,I.all=function(t){return new M(this,t).promise},I.race=function(t){var r=this;return e(t)?new r((function(e,n){for(var i=t.length,o=0;o<i;o++)r.resolve(t[o]).then(e,n)})):new r((function(t,e){return e(new TypeError("You must pass an array to race."))}))},I.resolve=_,I.reject=function(t){var e=new this(O);return C(e,t),e},I._setScheduler=function(t){o=t},I._setAsap=function(t){s=t},I._asap=s,I.polyfill=function(){var t=void 0;if(void 0!==It)t=It;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=I},I.Promise=I,I}()})),Nt=Ut((function(t,e){var r;t.exports=r=r||function(t,e){var r=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++)e[n+o>>>2]|=(r[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o<i;o+=4)e[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r,n=[],i=function(e){e=e;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o<e;o+=4){var a=i(4294967296*(r||t.random()));r=987654071*a(),n.push(4294967296*a()|0)}return new s.init(n,e)}}),a=n.enc={},u=a.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new s.init(r,e/2)}},c=a.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++)n.push(String.fromCharCode(e[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new s.init(r,e)}},l=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},p=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,a=i/(4*o),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*o,c=t.min(4*u,i);if(u){for(var l=0;l<u;l+=o)this._doProcessBlock(n,l);var p=n.splice(0,u);r.sigBytes-=c}return new s.init(p,c)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});i.Hasher=p.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new f.HMAC.init(t,r).finalize(e)}}});var f=n.algo={};return n}(Math)})),qt=Ut((function(t,e){var r;t.exports=(r=Nt,function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,s=e.algo,a=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(a[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var c=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],p=r[6],f=r[7],d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else{var h=c[d-15],v=c[d-2];c[d]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+c[d-7]+((v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10)+c[d-16]}var m=n&i^n&o^i&o,y=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&p)+u[d]+c[d];f=p,p=l,l=a,a=s+y|0,s=o,o=i,i=n,n=y+(((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+p|0,r[7]=r[7]+f|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(l),e.HmacSHA256=o._createHmacHelper(l)}(Math),r.SHA256)})),Bt=Ut((function(t,e){var r,n;t.exports=(n=(r=Nt).lib.WordArray,r.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<r;a++)i.push(n.charAt(s>>>6*(3-a)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return function(t,e,r){for(var i=[],o=0,s=0;s<e;s++)if(s%4){var a=r[t.charCodeAt(s-1)]<<s%4*2,u=r[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=(a|u)<<24-o%4*8,o++}return n.create(i,o)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)})),Vt=Ut((function(t,e){t.exports=Nt.enc.Hex})),zt=Ut((function(t,e){(function(){var e;function r(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):this.fromString(t,null==e&&"string"!=typeof t?256:e))}function n(){return new r(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function(t,e,r,n,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,l=a*u+c*s;i=((u=s*u+((32767&l)<<15)+r[n]+(1073741823&i))>>>30)+(l>>>15)+a*c+(i>>>30),r[n++]=1073741823&u}return i},e=30):i&&"Netscape"!=navigator.appName?(r.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},e=26):(r.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,l=a*u+c*s;i=((u=s*u+((16383&l)<<14)+r[n]+i)>>28)+(l>>14)+a*c,r[n++]=268435455&u}return i},e=28),r.prototype.DB=e,r.prototype.DM=(1<<e)-1,r.prototype.DV=1<<e,r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-e,r.prototype.F2=2*e-52;var o,s,a=new Array;for(o="0".charCodeAt(0),s=0;s<=9;++s)a[o++]=s;for(o="a".charCodeAt(0),s=10;s<36;++s)a[o++]=s;for(o="A".charCodeAt(0),s=10;s<36;++s)a[o++]=s;function u(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function c(t,e){var r=a[t.charCodeAt(e)];return null==r?-1:r}function l(t){var e=n();return e.fromInt(t),e}function p(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function f(t){this.m=t}function d(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function h(t,e){return t&e}function v(t,e){return t|e}function m(t,e){return t^e}function y(t,e){return t&~e}function g(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function b(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function w(){}function _(t){return t}function x(t){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}f.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},f.prototype.revert=function(t){return t},f.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},f.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},f.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},d.prototype.convert=function(t){var e=n();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(r.ZERO)>0&&this.m.subTo(e,e),e},d.prototype.revert=function(t){var e=n();return t.copyTo(e),this.reduce(e),e},d.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},d.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var a=8==n?255&t[i]:c(t,i);a<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=n)>=this.DB&&(s-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)e[r]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},r.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),o=n.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+n.t]=n.am(0,i[o],e,o,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,i){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=e&&e.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var a=n(),u=this.s,c=t.s,l=this.DB-p(o[o.t-1]);l>0?(o.lShiftTo(l,a),s.lShiftTo(l,i)):(o.copyTo(a),s.copyTo(i));var f=a.t,d=a[f-1];if(0!=d){var h=d*(1<<this.F1)+(f>1?a[f-2]>>this.F2:0),v=this.FV/h,m=(1<<this.F1)/h,y=1<<this.F2,g=i.t,b=g-f,w=null==e?n():e;for(a.dlShiftTo(b,w),i.compareTo(w)>=0&&(i[i.t++]=1,i.subTo(w,i)),r.ONE.dlShiftTo(f,w),w.subTo(a,a);a.t<f;)a[a.t++]=0;for(;--b>=0;){var _=i[--g]==d?this.DM:Math.floor(i[g]*v+(i[g-1]+y)*m);if((i[g]+=a.am(0,_,i,b,0,f))<_)for(a.dlShiftTo(b,w),i.subTo(w,i);i[g]<--_;)i.subTo(w,i)}null!=e&&(i.drShiftTo(f,e),u!=c&&r.ZERO.subTo(e,e)),i.t=f,i.clamp(),l>0&&i.rShiftTo(l,i),u<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var i=n(),o=n(),s=e.convert(this),a=p(t)-1;for(s.copyTo(i);--a>=0;)if(e.sqrTo(i,o),(t&1<<a)>0)e.mulTo(o,s,i);else{var u=i;i=o,o=u}return e.revert(i)},r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,o=u(r));s>=0;)a<e?(r=(this[s]&(1<<a)-1)<<e-a,r|=this[--s]>>(a+=this.DB-e)):(r=this[s]>>(a-=e)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=u(r));return i?o:"0"},r.prototype.negate=function(){var t=n();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+p(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=n();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new f(e):new d(e),this.exp(t,r)},r.ZERO=l(0),r.ONE=l(1),w.prototype.convert=_,w.prototype.revert=_,w.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},w.prototype.sqrTo=function(t,e){t.squareTo(e)},x.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=n();return t.copyTo(e),this.reduce(e),e},x.prototype.revert=function(t){return t},x.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},x.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},x.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var O,j,T,k=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],E=(1<<26)/k[k.length-1];function S(){var t;t=(new Date).getTime(),j[T++]^=255&t,j[T++]^=t>>8&255,j[T++]^=t>>16&255,j[T++]^=t>>24&255,T>=M&&(T-=M)}if(r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=l(r),o=n(),s=n(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(r+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a},r.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),o=!1,s=0,a=0,u=0;u<t.length;++u){var l=c(t,u);l<0?"-"==t.charAt(u)&&0==this.signum()&&(o=!0):(a=e*a+l,++s>=n&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),o&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},r.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var o=e.shiftRight(i);(t=t+1>>1)>k.length&&(t=k.length);for(var s=n(),a=0;a<t;++a){s.fromInt(k[Math.floor(Math.random()*k.length)]);var u=s.modPow(o,this);if(0!=u.compareTo(r.ONE)&&0!=u.compareTo(e)){for(var c=1;c++<i&&0!=u.compareTo(e);)if(0==(u=u.modPowInt(2,this)).compareTo(r.ONE))return!1;if(0!=u.compareTo(e))return!1}}return!0},r.prototype.clone=function(){var t=n();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},r.prototype.equals=function(t){return 0==this.compareTo(t)},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=n();return this.bitwiseTo(t,h,e),e},r.prototype.or=function(t){var e=n();return this.bitwiseTo(t,v,e),e},r.prototype.xor=function(t){var e=n();return this.bitwiseTo(t,m,e),e},r.prototype.andNot=function(t){var e=n();return this.bitwiseTo(t,y,e),e},r.prototype.not=function(){for(var t=n(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=n();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=n();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+g(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=b(this[r]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},r.prototype.setBit=function(t){return this.changeBit(t,v)},r.prototype.clearBit=function(t){return this.changeBit(t,y)},r.prototype.flipBit=function(t){return this.changeBit(t,m)},r.prototype.add=function(t){var e=n();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=n();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=n();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=n();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=n();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=n(),r=n();return this.divRemTo(t,e,r),new Array(e,r)},r.prototype.modPow=function(t,e){var r,i,o=t.bitLength(),s=l(1);if(o<=0)return s;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new f(e):e.isEven()?new x(e):new d(e);var a=new Array,u=3,c=r-1,h=(1<<r)-1;if(a[1]=i.convert(this),r>1){var v=n();for(i.sqrTo(a[1],v);u<=h;)a[u]=n(),i.mulTo(v,a[u-2],a[u]),u+=2}var m,y,g=t.t-1,b=!0,w=n();for(o=p(t[g])-1;g>=0;){for(o>=c?m=t[g]>>o-c&h:(m=(t[g]&(1<<o+1)-1)<<c-o,g>0&&(m|=t[g-1]>>this.DB+o-c)),u=r;0==(1&m);)m>>=1,--u;if((o-=u)<0&&(o+=this.DB,--g),b)a[m].copyTo(s),b=!1;else{for(;u>1;)i.sqrTo(s,w),i.sqrTo(w,s),u-=2;u>0?i.sqrTo(s,w):(y=s,s=w,w=y),i.mulTo(w,a[m],s)}for(;g>=0&&0==(t[g]&1<<o);)i.sqrTo(s,w),y=s,s=w,w=y,--o<0&&(o=this.DB-1,--g)}return i.revert(s)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return r.ZERO;for(var n=t.clone(),i=this.clone(),o=l(1),s=l(0),a=l(0),u=l(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),e?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),e&&o.subTo(a,o),s.subTo(u,s)):(i.subTo(n,i),e&&a.subTo(o,a),u.subTo(s,u))}return 0!=i.compareTo(r.ONE)?r.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u},r.prototype.pow=function(t){return this.exp(t,new w)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},r.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=k[k.length-1]){for(e=0;e<k.length;++e)if(r[0]==k[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<k.length;){for(var n=k[e],i=e+1;i<k.length&&n<E;)n*=k[i++];for(n=r.modInt(n);e<i;)if(n%k[e++]==0)return!1}return r.millerRabin(t)},r.prototype.square=function(){var t=n();return this.squareTo(t),t},r.prototype.Barrett=x,null==j){var C;if(j=new Array,T=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var A=new Uint8Array(32);for(window.crypto.getRandomValues(A),C=0;C<32;++C)j[T++]=A[C]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var D=window.crypto.random(32);for(C=0;C<D.length;++C)j[T++]=255&D.charCodeAt(C)}for(;T<M;)C=Math.floor(65536*Math.random()),j[T++]=C>>>8,j[T++]=255&C;T=0,S()}function F(){if(null==O){for(S(),(O=new P).init(j),T=0;T<j.length;++T)j[T]=0;T=0}return O.next()}function R(){}function P(){this.i=0,this.j=0,this.S=new Array}R.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=F()},P.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)n=this.S[e],this.S[e]=this.S[r=r+this.S[e]+t[e%t.length]&255],this.S[r]=n;this.i=0,this.j=0},P.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]};var M=256;t.exports={default:r,BigInteger:r,SecureRandom:R}}).call(It)})),$t={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},Ht={sha256:qt};function Wt(t,e){if(this.n=null,this.e=0,!(null!=t&&null!=e&&t.length>0&&e.length>0))throw new Error("Invalid key data");this.n=new zt.BigInteger(t,16),this.e=parseInt(e,16)}Wt.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new zt.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=function(t){for(var e in $t){var r=$t[e],n=r.length;if(t.substring(0,n)===r)return{alg:e,hash:t.substring(n)}}return[]}(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===n.length)return!1;if(!Ht.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var i=Ht[n.alg](t).toString();return n.hash===i};for(var Zt=[],Jt=[],Gt="undefined"!=typeof Uint8Array?Uint8Array:Array,Kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xt=0,Yt=Kt.length;Xt<Yt;++Xt)Zt[Xt]=Kt[Xt],Jt[Kt.charCodeAt(Xt)]=Xt;Jt["-".charCodeAt(0)]=62,Jt["_".charCodeAt(0)]=63;var Qt=function(t){var e,r,n=function(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}(t),i=n[0],o=n[1],s=new Gt(function(t,e,r){return 3*(e+r)/4-r}(0,i,o)),a=0,u=o>0?i-4:i;for(r=0;r<u;r+=4)e=Jt[t.charCodeAt(r)]<<18|Jt[t.charCodeAt(r+1)]<<12|Jt[t.charCodeAt(r+2)]<<6|Jt[t.charCodeAt(r+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=255&e;return 2===o&&(e=Jt[t.charCodeAt(r)]<<2|Jt[t.charCodeAt(r+1)]>>4,s[a++]=255&e),1===o&&(e=Jt[t.charCodeAt(r)]<<10|Jt[t.charCodeAt(r+1)]<<4|Jt[t.charCodeAt(r+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e),s};function te(t){var e=t.length%4;return 0===e?t:t+new Array(4-e+1).join("=")}function ee(t){return t=te(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent(function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}(Qt(t)).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function re(t){return function(t){for(var e="",r=0;r<t.length;r++){var n=t[r].toString(16);e+=2===n.length?n:"0"+n}return e}(Qt(te(t)))}var ne=Ut((function(t){var e,r;e=It,r=function(){function t(t){var e=[];if(0===t.length)return"";if("string"!=typeof t[0])throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var r=t.shift();t[0]=r+t[0]}t[0]=t[0].match(/^file:\/\/\//)?t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<t.length;n++){var i=t[n];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(n>0&&(i=i.replace(/^[\/]+/,"")),i=i.replace(/[\/]+$/,n<t.length-1?"":"/"),e.push(i))}var o=e.join("/"),s=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return s.shift()+(s.length>0?"?":"")+s.join("&")}return function(){return t("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()}));function ie(t,e){return e=e||{},new Promise((function(r,n){var i=new XMLHttpRequest,o=[],s=[],a={},u=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return s},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var c in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){o.push(e=e.toLowerCase()),s.push([e,r]),a[e]=a[e]?a[e]+","+r:r})),r(u())},i.onerror=n,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(c,e.headers[c]);i.send(e.body||null)}))}function oe(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function se(t){this.name="ConfigurationError",this.message=t||""}function ae(t){this.name="TokenValidationError",this.message=t||""}se.prototype=Error.prototype,ae.prototype=Error.prototype;var ue=function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t}();Lt.polyfill();var ce=function(t){return"number"==typeof t},le=function(){return new Date};function pe(t){var e=t||{};if(this.jwksCache=e.jwksCache||new ue,this.expectedAlg=e.expectedAlg||"RS256",this.issuer=e.issuer,this.audience=e.audience,this.leeway=0===e.leeway?0:e.leeway||60,this.jwksURI=e.jwksURI,this.maxAge=e.maxAge,this.__clock="function"==typeof e.__clock?e.__clock:le,this.leeway<0||this.leeway>300)throw new se("The leeway should be positive and lower than five minutes.");if("RS256"!==this.expectedAlg)throw new se('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "RS256".')}function fe(t,e){this.plugins=e;for(var r=0;r<this.plugins.length;r++){if(this.plugins[r].version!==ot.raw){var n="";throw this.plugins[r].constructor&&this.plugins[r].constructor.name&&(n=this.plugins[r].constructor.name),new Error("Plugin "+n+" version ("+this.plugins[r].version+") is not compatible with the SDK version ("+ot.raw+")")}this.plugins[r].setWebAuth(t)}}pe.prototype.verify=function(t,e,r){if(!r&&e&&"function"==typeof e&&(r=e,e=void 0),!t)return r(new ae("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new ae("ID token could not be decoded"),null);var i=n.encoded.header+"."+n.encoded.payload,o=re(n.encoded.signature),s=n.header.alg,a=n.header.kid,u=n.payload.aud,c=n.payload.sub,l=n.payload.iss,p=n.payload.exp,f=n.payload.nbf,d=n.payload.iat,h=n.payload.azp,v=n.payload.auth_time,m=n.payload.nonce,y=this.__clock(),g=this;if(g.expectedAlg!==s)return r(new ae('Signature algorithm of "'+s+'" is not supported. Expected the ID token to be signed with "RS256".'),null);this.getRsaVerifier(l,a,(function(t,s){if(t)return r(t,null);if(!s.verify(i,o))return r(new ae("Invalid ID token signature."),null);if(!l||"string"!=typeof l)return r(new ae("Issuer (iss) claim must be a string present in the ID token"),null);if(g.issuer!==l)return r(new ae('Issuer (iss) claim mismatch in the ID token, expected "'+g.issuer+'", found "'+l+'"'),null);if(!c||"string"!=typeof c)return r(new ae("Subject (sub) claim must be a string present in the ID token"),null);if(!u||"string"!=typeof u&&!Array.isArray(u))return r(new ae("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(u)&&!u.includes(g.audience))return r(new ae('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but was not one of "'+u.join(", ")+'"'),null);if("string"==typeof u&&g.audience!==u)return r(new ae('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but found "'+u+'"'),null);if(e){if(!m||"string"!=typeof m)return r(new ae("Nonce (nonce) claim must be a string present in the ID token"),null);if(m!==e)return r(new ae('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+m+'"'),null)}if(Array.isArray(u)&&u.length>1){if(!h||"string"!=typeof h)return r(new ae("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(h!==g.audience)return r(new ae('Authorized Party (azp) claim mismatch in the ID token; expected "'+g.audience+'", found "'+h+'"'),null)}if(!p||!ce(p))return r(new ae("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!d||!ce(d))return r(new ae("Issued At (iat) claim must be a number present in the ID token"),null);var a=p+g.leeway,b=new Date(0);if(b.setUTCSeconds(a),y>b)return r(new ae('Expiration Time (exp) claim error in the ID token; current time "'+y+'" is after expiration time "'+b+'"'),null);if(f&&ce(f)){var w=f-g.leeway,_=new Date(0);if(_.setUTCSeconds(w),y<_)return r(new ae('Not Before Time (nbf) claim error in the ID token; current time "'+y+'" is before the not before time "'+_+'"'),null)}if(g.maxAge){if(!v||!ce(v))return r(new ae("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var x=v+g.maxAge+g.leeway,O=new Date(0);if(O.setUTCSeconds(x),y>O)return r(new ae('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+y+'" is after last auth time at "'+O+'"'),null)}return r(null,n.payload)}))},pe.prototype.getRsaVerifier=function(t,e,r){var n=this,i=t+e;Promise.resolve(this.jwksCache.has(i)).then((function(r){return r?n.jwksCache.get(i):(o={jwksURI:n.jwksURI,iss:t,kid:e},("undefined"==typeof fetch?ie:fetch)(o.jwksURI||ne(o.iss,".well-known","jwks.json")).then(oe).then((function(t){var e,r,n,i=null;for(e=0;e<t.keys.length&&null===i;e++)(r=t.keys[e]).kid===o.kid&&(i=r);if(!i)throw new Error('Could not find a public key for Key ID (kid) "'+o.kid+'"');return{modulus:re((n=i).n),exp:re(n.e)}})).catch((function(t){throw t})));var o})).then((function(t){if(!t||!t.modulus||!t.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(i,t)).then((function(){r&&r(null,new Wt(t.modulus,t.exp))}))})).catch((function(t){r&&r(t)}))},pe.prototype.decode=function(t){var e,r,n=t.split(".");if(3!==n.length)return new ae("Cannot decode a malformed JWT");try{e=JSON.parse(ee(n[0])),r=JSON.parse(ee(n[1]))}catch(t){return new ae("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},pe.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new ae('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var i,o=qt(t),s=Vt.stringify(o),a=s.substring(0,s.length/2),u=Vt.parse(a),c=Bt.stringify(u);return n((i={"+":"-","/":"_","=":""},c.replace(/[+/=]/g,(function(t){return i[t]}))!==r?new ae("Invalid access_token"):null))},fe.prototype.get=function(t){for(var e=0;e<this.plugins.length;e++)if(this.plugins[e].supports(t))return this.plugins[e].init();return null};var de=function(t){var e=new Uint8Array(t),r=[],n="0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~",i=Ot.getWindow().crypto||Ot.getWindow().msCrypto;if(!i)return null;for(var o=i.getRandomValues(e),s=0;s<o.length;s++)r.push(n[o[s]%n.length]);return r.join("")};function he(t){var e=t.transaction||{};this.namespace=e.namespace||"com.auth0.auth.",this.keyLength=e.keyLength||32,this.storage=new Ct(t),this.options=t}function ve(t){if(this.url=t.url,this.callback=t.callback,this.timeout=t.timeout||6e4,this.timeoutCallback=t.timeoutCallback||null,this.eventListenerType=t.eventListenerType||"message",this.iframe=null,this.timeoutHandle=null,this._destroyTimeout=null,this.transientMessageEventListener=null,this.proxyEventListener=null,this.eventValidator=t.eventValidator||{isValid:function(){return!0}},"function"!=typeof this.callback)throw new Error("options.callback must be a function")}function me(t){this.webAuth=t,this.warn=new Et(t.baseOptions)}function ye(t,e){this.webAuth=t,this.baseOptions=e,this.request=new _t(e),this.webMessageHandler=new me(t),this.storage=new Ct(e)}function ge(t,e){return["co/verifier",encodeURIComponent(t),encodeURIComponent(e)].join("/")}function be(t,e){this.webAuth=t,this.baseOptions=e,this.crossOriginAuthentication=new ye(t,this.baseOptions),this.warn=new Et({disableWarnings:!!e._disableDeprecationWarnings})}he.prototype.process=function(t){if(!t.responseType)throw new Error("responseType is required");var e=t.realm||t.connection,r=-1!==t.responseType.indexOf("id_token"),n=this.generateTransaction(t.appState,t.state,t.nonce,e,r,t.organization);return t.state||(t.state=n.state),r&&!t.nonce&&(t.nonce=n.nonce),t},he.prototype.generateTransaction=function(t,e,r,n,i,o){if(e=e||de(this.keyLength),r=r||(i?de(this.keyLength):null),Ot.getWindow().location.host!==this.options.domain){var s={nonce:r,appState:t,state:e,lastUsedConnection:n};o&&(s.organization=o),this.storage.setItem(this.namespace+e,s,{expires:1/48})}return{state:e,nonce:r}},he.prototype.getStoredTransaction=function(t){var e;return e=this.storage.getItem(this.namespace+t),this.clearTransaction(t),e},he.prototype.clearTransaction=function(t){this.storage.removeItem(this.namespace+t)},ve.prototype.init=function(){var t=this,e=Ot.getWindow();switch(this.iframe=e.document.createElement("iframe"),this.iframe.style.display="none",this.proxyEventListener=function(e){t.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=e;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error("Unsupported event listener type: "+this.eventListenerType)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),e.document.body.appendChild(this.iframe),this.iframe.src=this.url,this.timeoutHandle=setTimeout((function(){t.timeoutHandler()}),this.timeout)},ve.prototype.eventListener=function(t){var e={event:t,sourceObject:this.eventSourceObject};this.eventValidator.isValid(e)&&(this.destroy(),this.callback(e))},ve.prototype.timeoutHandler=function(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()},ve.prototype.destroy=function(){var t=this;clearTimeout(this.timeoutHandle),this._destroyTimeout=setTimeout((function(){t.eventSourceObject.removeEventListener(t.eventListenerType,t.proxyEventListener,!1),t.iframe.parentNode&&t.iframe.parentNode.removeChild(t.iframe)}),0)},me.prototype.run=function(t,e){var r=this;t.responseMode="web_message",t.prompt="none";var n=Ot.getOrigin(),i=gt.getOriginFromUrl(t.redirectUri);if(i&&n!==i)return e({error:"origin_mismatch",error_description:"The redirectUri's origin ("+i+") should match the window's origin ("+n+")."});!function(t,e,r){new ve({url:t,eventListenerType:"message",callback:function(t){r(null,t)},timeout:e.timeout,eventValidator:{isValid:function(t){return"authorization_response"===t.event.data.type&&e.state===t.event.data.response.state}},timeoutCallback:function(){r({error:"timeout",error_description:"Timeout during executing web_message communication",state:e.state})}}).init()}(this.webAuth.client.buildAuthorizeUrl(t),t,(function(n,i){var o=n;if(!n&&i.event.data.response.error&&(o=i.event.data.response),!o){var s=i.event.data.response;return r.webAuth.validateAuthenticationResponse(t,s,e)}return"consent_required"===o.error&&"localhost"===Ot.getWindow().location.hostname&&r.warn.warning("Consent Required. Consent can't be skipped on localhost. Read more here: https://auth0.com/docs/api-auth/user-consent#skipping-consent-for-first-party-clients"),r.webAuth.transactionManager.clearTransaction(o.state),e(gt.pick(o,["error","error_description"]))}))},ye.prototype.login=function(t,e){var r=this,n=s(this.baseOptions.rootUrl,"/co/authenticate");t.username=t.username||t.email,delete t.email;var i={client_id:t.clientID||this.baseOptions.clientID,username:t.username};t.password&&(i.password=t.password),t.otp&&(i.otp=t.otp);var o=t.realm||this.baseOptions.realm;if(o){var a=t.credentialType||this.baseOptions.credentialType||"http://auth0.com/oauth/grant-type/password-realm";i.realm=o,i.credential_type=a}else i.credential_type="password";this.request.post(n).withCredentials().send(i).end((function(n,i){if(n){var o=n.response&&n.response.body||{error:"request_error",error_description:JSON.stringify(n)};return Rt(e,{forceLegacyError:!0})(o)}function s(){var n=!0===t.popup;t=gt.blacklist(t,["password","credentialType","otp","popup","onRedirecting"]);var o=gt.merge(t).with({loginTicket:i.body.login_ticket}),s=ge(r.baseOptions.rootUrl,i.body.co_id);r.storage.setItem(s,i.body.co_verifier,{expires:1/96}),n?r.webMessageHandler.run(o,Rt(e,{forceLegacyError:!0})):r.webAuth.authorize(o)}"function"==typeof t.onRedirecting?t.onRedirecting(s):s()}))},ye.prototype.callback=function(){var t=decodeURIComponent(function(t){var e=("&"+Ot.getWindow().location.hash.substring(1)).split("&origin=");if(2===e.length)return e.pop().split("&").shift()}()),e=Ot.getWindow(),r=this;e.addEventListener("message",(function(t){if("co_verifier_request"===t.data.type){var e=ge(t.origin,t.data.request.id),n=function(t,e){try{var r=t.getItem(e);return t.removeItem(e),r||""}catch(t){return""}}(r.storage,e);t.source.postMessage({type:"co_verifier_response",response:{verifier:n}},t.origin)}})),e.parent.postMessage({type:"ready"},t)},be.prototype.loginWithCredentials=function(t,e){t.realm=t.realm||t.connection,delete t.connection,this.crossOriginAuthentication.login(t,e)},be.prototype.signupAndLogin=function(t,e){var r=this;return this.webAuth.client.dbConnection.signup(t,(function(n){return n?e(n):(t.realm=t.realm||t.connection,delete t.connection,r.webAuth.login(t,e))}))};var we=o((function(t){var e=function(){function t(t,e,r){t.attachEvent?t.attachEvent("on"+e,r):t.addEventListener&&t.addEventListener(e,r,!1)}function e(t,e,r){t.detachEvent?t.detachEvent("on"+e,r):t.removeEventListener&&t.removeEventListener(e,r,!1)}function r(t){/^https?:\/\//.test(t)||(t=window.location.href);var e=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(t);return e?e[1]:t}var n=function(){if("undefined"==typeof navigator)return!1;var t=-1,e=navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1)):e.indexOf("Trident")>-1&&null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1)),t>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(i,o){if(!o)throw"missing required callback argument";var s,a;i.url||(s="missing required 'url' parameter"),i.relay_url||(s="missing required 'relay_url' parameter"),s&&setTimeout((function(){o(s)}),0),i.window_name||(i.window_name=null),i.window_features&&!function(){try{var t=navigator.userAgent;return-1!=t.indexOf("Fennec/")||-1!=t.indexOf("Firefox/")&&-1!=t.indexOf("Android")}catch(t){}return!1}()||(i.window_features=void 0);var u,c=i.origin||r(i.url);if(c!==r(i.relay_url))return setTimeout((function(){o("invalid arguments: origin of url and relay_url must match")}),0);n&&((a=document.createElement("iframe")).setAttribute("src",i.relay_url),a.style.display="none",a.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(a),u=a.contentWindow);var l=i.popup||window.open(i.url,i.window_name,i.window_features);i.popup&&(l.location.href=i.url),u||(u=l);var p=setInterval((function(){l&&l.closed&&(d(),o&&(o("User closed the popup window"),o=null))}),500),f=JSON.stringify({a:"request",d:i.params});function d(){if(a&&document.body.removeChild(a),a=void 0,p&&(p=clearInterval(p)),e(window,"message",h),e(window,"unload",d),l)try{l.close()}catch(t){u.postMessage("die",c)}l=u=void 0}function h(t){if(t.origin===c){try{var e=JSON.parse(t.data)}catch(t){if(o)return o(t);throw t}"ready"===e.a?u.postMessage(f,c):"error"===e.a?(d(),o&&(o(e.d),o=null)):"response"===e.a&&(d(),o&&(o(null,e.d),o=null))}}return t(window,"unload",d),t(window,"message",h),{originalPopup:l,close:d,focus:function(){if(l)try{l.focus()}catch(t){}}}},onOpen:function(r){var i="*",o=n?function(){for(var t=window.opener.frames,e=t.length-1;e>=0;e--)try{if(t[e].location.protocol===window.location.protocol&&t[e].location.host===window.location.host&&"__winchan_relay_frame"===t[e].name)return t[e]}catch(t){}}():window.opener;if(!o)throw"can't find relay frame";function s(t){t=JSON.stringify(t),n?o.doPost(t,i):o.postMessage(t,i)}function a(t){if("die"===t.data)try{window.close()}catch(t){}}t(n?o:window,"message",(function t(n){var o;try{o=JSON.parse(n.data)}catch(t){}o&&"request"===o.a&&(e(window,"message",t),i=n.origin,r&&setTimeout((function(){r(i,o.d,(function(t){r=void 0,s({a:"response",d:t})}))}),0))})),t(n?o:window,"message",a);try{s({a:"ready"})}catch(e){t(o,"load",(function(t){s({a:"ready"})}))}var u=function(){try{e(n?o:window,"message",a)}catch(t){}r&&s({a:"error",d:"client closed window"}),r=void 0;try{window.close()}catch(t){}};return t(window,"unload",u),{detach:function(){e(window,"unload",u)}}}}:{open:function(t,e,r,n){setTimeout((function(){n("unsupported browser")}),0)},onOpen:function(t){setTimeout((function(){t("unsupported browser")}),0)}}}();t.exports&&(t.exports=e)}));function _e(){this._current_popup=null}function xe(t,e){this.baseOptions=e,this.baseOptions.popupOrigin=e.popupOrigin,this.client=t.client,this.webAuth=t,this.transactionManager=new he(this.baseOptions),this.crossOriginAuthentication=new ye(t,this.baseOptions),this.warn=new Et({disableWarnings:!!e._disableDeprecationWarnings})}function Oe(t){this.authenticationUrl=t.authenticationUrl,this.timeout=t.timeout||6e4,this.handler=null,this.postMessageDataType=t.postMessageDataType||!1,this.postMessageOrigin=t.postMessageOrigin||Ot.getWindow().location.origin||Ot.getWindow().location.protocol+"//"+Ot.getWindow().location.hostname+(Ot.getWindow().location.port?":"+Ot.getWindow().location.port:"")}function je(t){this.baseOptions=t,this.request=new _t(t),this.transactionManager=new he(this.baseOptions)}function Te(t,e){this.baseOptions=e,this.client=t,this.baseOptions.universalLoginPage=!0,this.request=new _t(this.baseOptions),this.warn=new Et({disableWarnings:!!e._disableDeprecationWarnings})}_e.prototype.calculatePosition=function(t){var e=t.width||500,r=t.height||600,n=Ot.getWindow(),i=void 0!==n.screenX?n.screenX:n.screenLeft,o=void 0!==n.screenY?n.screenY:n.screenTop,s=void 0!==n.outerWidth?n.outerWidth:n.document.body.clientWidth,a=void 0!==n.outerHeight?n.outerHeight:n.document.body.clientHeight;return{width:e,height:r,left:t.left||i+(s-e)/2,top:t.top||o+(a-r)/2}},_e.prototype.preload=function(t){var e=this,r=Ot.getWindow(),n=this.calculatePosition(t.popupOptions||{}),i=gt.merge(n).with(t.popupOptions),o=t.url||"about:blank",s=D(i,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed||(this._current_popup=r.open(o,"auth0_signup_popup",s),this._current_popup.kill=function(){this.close(),e._current_popup=null}),this._current_popup},_e.prototype.load=function(t,e,r,n){var i=this,o=this.calculatePosition(r.popupOptions||{}),s=gt.merge(o).with(r.popupOptions),a=gt.merge({url:t,relay_url:e,window_features:D(s,{delimiter:",",encode:!1}),popup:this._current_popup}).with(r),u=we.open(a,(function(t,e){if(!t||"SyntaxError"!==t.name)return i._current_popup=null,n(t,e)}));return u.focus(),u},xe.prototype.buildPopupHandler=function(){var t=this.baseOptions.plugins.get("popup.getPopupHandler");return t?t.getPopupHandler():new _e},xe.prototype.preload=function(t){t=t||{};var e=this.buildPopupHandler();return e.preload(t),e},xe.prototype.getPopupHandler=function(t,e){return t.popupHandler?t.popupHandler:e?this.preload(t):this.buildPopupHandler()},xe.prototype.callback=function(t){var e=this,r=Ot.getWindow(),n=(t=t||{}).popupOrigin||this.baseOptions.popupOrigin||Ot.getOrigin();r.opener?we.onOpen((function(r,i,o){if(r!==n)return o({error:"origin_mismatch",error_description:"The popup's origin ("+r+") should match the `popupOrigin` parameter ("+n+")."});e.webAuth.parseHash(t||{},(function(t,e){return o(t||e)}))})):r.doPost=function(t){r.parent&&r.parent.postMessage(t,n)}},xe.prototype.authorize=function(t,e){var r,n,i={},o=this.baseOptions.plugins.get("popup.authorize"),a=gt.merge(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce","organization","invitation"]).with(gt.blacklist(t,["popupHandler"]));return lt.check(a,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),n=s(this.baseOptions.rootUrl,"relay.html"),t.owp?a.owp=!0:(i.origin=function(t){/^https?:\/\//.test(t)||(t=window.location.href);var e=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(t);return e?e[1]:t}(a.redirectUri),n=a.redirectUri),t.popupOptions&&(i.popupOptions=gt.pick(t.popupOptions,["width","height","top","left"])),o&&(a=o.processParams(a)),(a=this.transactionManager.process(a)).scope=a.scope||"openid profile email",delete a.domain,r=this.client.buildAuthorizeUrl(a),this.getPopupHandler(t).load(r,n,i,Rt(e,{keepOriginalCasing:!0}))},xe.prototype.loginWithCredentials=function(t,e){t.realm=t.realm||t.connection,t.popup=!0,t=gt.merge(this.baseOptions,["redirectUri","responseType","state","nonce"]).with(gt.blacklist(t,["popupHandler","connection"])),t=this.transactionManager.process(t),this.crossOriginAuthentication.login(t,e)},xe.prototype.passwordlessVerify=function(t,e){var r=this;return this.client.passwordless.verify(gt.blacklist(t,["popupHandler"]),(function(n){if(n)return e(n);t.username=t.phoneNumber||t.email,t.password=t.verificationCode,delete t.email,delete t.phoneNumber,delete t.verificationCode,delete t.type,r.client.loginWithResourceOwner(t,e)}))},xe.prototype.signupAndLogin=function(t,e){var r=this;return this.client.dbConnection.signup(t,(function(n){if(n)return e(n);r.loginWithCredentials(t,e)}))},Oe.create=function(t){return new Oe(t)},Oe.prototype.login=function(t,e){this.handler=new ve({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:t?"message":"load",callback:this.getCallbackHandler(e,t),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){e(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")},usePostMessage:t||!1}),this.handler.init()},Oe.prototype.getEventValidator=function(){var t=this;return{isValid:function(e){switch(e.event.type){case"message":return e.event.origin===t.postMessageOrigin&&e.event.source===t.handler.iframe.contentWindow&&(!1===t.postMessageDataType||e.event.data.type&&e.event.data.type===t.postMessageDataType);case"load":if("about:"===e.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},Oe.prototype.getCallbackHandler=function(t,e){return function(r){var n;n=e?"object"==typeof r.event.data&&r.event.data.hash?r.event.data.hash:r.event.data:r.sourceObject.contentWindow.location.hash,t(null,n)}},je.prototype.login=function(t,e){var r,n;return r=s(this.baseOptions.rootUrl,"usernamepassword","login"),t.username=t.username||t.email,t=gt.blacklist(t,["email","onRedirecting"]),n=gt.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(t),n=this.transactionManager.process(n),n=gt.toSnakeCase(n,["auth0Client"]),this.request.post(r).send(n).end(Rt(e))},je.prototype.callback=function(t){var e,r=Ot.getDocument();(e=r.createElement("div")).innerHTML=t,r.body.appendChild(e).children[0].submit()},Te.prototype.login=function(t,e){if(Ot.getWindow().location.host!==this.baseOptions.domain)throw new Error("This method is meant to be used only inside the Universal Login Page.");var r,n=gt.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(t);return lt.check(n,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(r=new je(this.baseOptions)).login(n,(function(n,i){if(n)return e(n);function o(){r.callback(i)}if("function"==typeof t.onRedirecting)return t.onRedirecting((function(){o()}));o()}))},Te.prototype.signupAndLogin=function(t,e){var r=this;return r.client.client.dbConnection.signup(t,(function(n){return n?e(n):r.login(t,e)}))},Te.prototype.getSSOData=function(t,e){var r,n="";return"function"==typeof t&&(e=t,t=!1),lt.check(t,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),t&&(n="?"+D({ldaps:1,client_id:this.baseOptions.clientID})),r=s(this.baseOptions.rootUrl,"user","ssodata",n),this.request.get(r,{noHeaders:!0}).withCredentials().end(Rt(e))};var ke=function(){},Ee={lang:"en",templates:{auth0:function(t){var e="code"===t.type?"Enter the code shown above":"Solve the formula shown above";return'<div class="captcha-challenge">\n <img src="'+t.image+'" />\n <button type="button" class="captcha-reload">↺</button>\n</div>\n<input type="text" name="captcha"\n class="form-control captcha-control"\n placeholder="'+e+'" />'},recaptcha_v2:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},recaptcha_enterprise:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},error:function(){return'<div class="error" style="color: red;">Error getting the bot detection challenge. Please contact the system administrator.</div>'}}};function Se(t){switch(t){case"recaptcha_v2":return window.grecaptcha;case"recaptcha_enterprise":return window.grecaptcha.enterprise;default:throw new Error("Unknown captcha provider")}}function Ce(){return new Date}function Ae(t){lt.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),t.overrides&<.check(t.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=t,this.baseOptions.plugins=new fe(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=t._timesToRetryFailedRequests?parseInt(t._timesToRetryFailedRequests,0):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,this.transactionManager=new he(this.baseOptions),this.client=new Re(this.baseOptions),this.redirect=new be(this,this.baseOptions),this.popup=new xe(this,this.baseOptions),this.crossOriginAuthentication=new ye(this,this.baseOptions),this.webMessageHandler=new me(this),this._universalLogin=new Te(this,this.baseOptions),this.ssodataStorage=new At(this.baseOptions)}function De(t,e){this.baseOptions=e,this.request=t}function Fe(t,e){this.baseOptions=e,this.request=t}function Re(t,e){2===arguments.length?this.auth0=t:e=t,lt.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new _t(this.baseOptions),this.passwordless=new De(this.request,this.baseOptions),this.dbConnection=new Fe(this.request,this.baseOptions),this.warn=new Et({disableWarnings:!!e._disableDeprecationWarnings}),this.ssodataStorage=new At(this.baseOptions)}function Pe(t){lt.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new _t(this.baseOptions),this.baseOptions.rootUrl=s("https://"+this.baseOptions.domain,"api","v2")}Ae.prototype.parseHash=function(t,e){var r,n;e||"function"!=typeof t?t=t||{}:(e=t,t={});var i=Ot.getWindow(),o=void 0===t.hash?i.location.hash:t.hash;if((r=function(t,e){var r=E;if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={},i=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=e.parameterLimit===1/0?void 0:e.parameterLimit,s=i.split(e.delimiter,o),a=-1,u=e.charset;if(e.charsetSentinel)for(r=0;r<s.length;++r)0===s[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[r]?u="utf-8":"utf8=%26%2310003%3B"===s[r]&&(u="iso-8859-1"),a=r,r=s.length);for(r=0;r<s.length;++r)if(r!==a){var c,l,f=s[r],d=f.indexOf("]="),h=-1===d?f.indexOf("="):d+1;-1===h?(c=e.decoder(f,E.decoder,u,"key"),l=e.strictNullHandling?null:""):(c=e.decoder(f.slice(0,h),E.decoder,u,"key"),l=p.maybeMap(C(f.slice(h+1),e),(function(t){return e.decoder(t,E.decoder,u,"value")}))),l&&e.interpretNumericEntities&&"iso-8859-1"===u&&(l=S(l)),f.indexOf("[]=")>-1&&(l=k(l)?[l]:l),T.call(n,c)?n[c]=p.combine(n[c],l):n[c]=l}return n}(t,r):t,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],u=A(a,n[a],r,"string"==typeof t);i=p.merge(i,u,r)}return p.compact(i)}(o=o.replace(/^#?\/?/,""))).hasOwnProperty("error"))return n=Ft.buildResponse(r.error,r.error_description),r.state&&(n.state=r.state),e(n);if(!r.hasOwnProperty("access_token")&&!r.hasOwnProperty("id_token")&&!r.hasOwnProperty("refresh_token"))return e(null,null);var s=(this.baseOptions.responseType||t.responseType||"").split(" ");return s.length>0&&-1!==s.indexOf("token")&&!r.hasOwnProperty("access_token")?e(Ft.buildResponse("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):s.length>0&&-1!==s.indexOf("id_token")&&!r.hasOwnProperty("id_token")?e(Ft.buildResponse("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(t,r,e)},Ae.prototype.validateAuthenticationResponse=function(t,e,r){var n=this;t.__enableIdPInitiatedLogin=t.__enableIdPInitiatedLogin||t.__enableImpersonation;var i=e.state,o=this.transactionManager.getStoredTransaction(i),s=t.state||o&&o.state||null,a=s===i;if((i||s||!t.__enableIdPInitiatedLogin)&&!a)return r({error:"invalid_token",errorDescription:"`state` does not match."});var u=t.nonce||o&&o.nonce||null,c=o&&o.organization,l=t.state||o&&o.appState||null,p=function(t,i){return t?r(t):(o&&o.lastUsedConnection&&(i&&(s=i.sub),n.ssodataStorage.set(o.lastUsedConnection,s)),r(null,function(t,e,r){return{accessToken:t.access_token||null,idToken:t.id_token||null,idTokenPayload:r||null,appState:e||null,refreshToken:t.refresh_token||null,state:t.state||null,expiresIn:t.expires_in?parseInt(t.expires_in,10):null,tokenType:t.token_type||null,scope:t.scope||null}}(e,l,i)));var s};return e.id_token?this.validateToken(e.id_token,u,(function(t,r){if(!t){if(c){if(!r.org_id)return p(Ft.invalidToken("Organization Id (org_id) claim must be a string present in the ID token"));if(r.org_id!==c)return p(Ft.invalidToken('Organization Id (org_id) claim value mismatch in the ID token; expected "'+c+'", found "'+r.org_id+'"'))}return e.access_token&&r.at_hash?(new pe).validateAccessToken(e.access_token,"RS256",r.at_hash,(function(t){return t?p(Ft.invalidToken(t.message)):p(null,r)})):p(null,r)}if("invalid_token"!==t.error||t.errorDescription&&t.errorDescription.indexOf("Nonce (nonce) claim value mismatch in the ID token")>-1)return p(t);var i=(new pe).decode(e.id_token);return"HS256"!==i.header.alg?p(t):(i.payload.nonce||null)!==u?p({error:"invalid_token",errorDescription:'Nonce (nonce) claim value mismatch in the ID token; expected "'+u+'", found "'+i.payload.nonce+'"'}):e.access_token?n.client.userInfo(e.access_token,(function(t,e){return t?p(t):p(null,e)})):p({error:"invalid_token",description:"The id_token cannot be validated because it was signed with the HS256 algorithm and public clients (like a browser) can’t store secrets. Please read the associated doc for possible ways to fix this. Read more: https://auth0.com/docs/errors/libraries/auth0-js/invalid-token#parsing-an-hs256-signed-id-token-without-an-access-token"})})):p(null,null)},Ae.prototype.validateToken=function(t,e,r){new pe({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||60,maxAge:this.baseOptions.maxAge,__clock:this.baseOptions.__clock||Ce}).verify(t,e,(function(t,e){if(t)return r(Ft.invalidToken(t.message));r(null,e)}))},Ae.prototype.renewAuth=function(t,e){var r=!!t.usePostMessage,n=t.postMessageDataType||!1,i=t.postMessageOrigin||Ot.getWindow().origin,o=t.timeout,s=this,a=gt.merge(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(t);a.responseType=a.responseType||"token",a.responseMode=a.responseMode||"fragment",a=this.transactionManager.process(a),lt.check(a,{type:"object",message:"options parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),a.prompt="none",a=gt.blacklist(a,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),Oe.create({authenticationUrl:this.client.buildAuthorizeUrl(a),postMessageDataType:n,postMessageOrigin:i,timeout:o}).login(r,(function(t,r){if("object"==typeof r)return e(t,r);s.parseHash({hash:r},e)}))},Ae.prototype.checkSession=function(t,e){var r=gt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t);return"code"===r.responseType?e({error:"error",error_description:"responseType can't be `code`"}):(t.nonce||(r=this.transactionManager.process(r)),r.redirectUri?(lt.check(r,{type:"object",message:"options parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=gt.blacklist(r,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(r,Rt(e,{forceLegacyError:!0,ignoreCasing:!0}))):e({error:"error",error_description:"redirectUri can't be empty"}))},Ae.prototype.changePassword=function(t,e){return this.client.dbConnection.changePassword(t,e)},Ae.prototype.passwordlessStart=function(t,e){var r=gt.merge(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t.authParams);return t.authParams=this.transactionManager.process(r),this.client.passwordless.start(t,e)},Ae.prototype.signup=function(t,e){return this.client.dbConnection.signup(t,e)},Ae.prototype.authorize=function(t){var e=gt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","organization","invitation"]).with(t);lt.check(e,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(e=this.transactionManager.process(e)).scope=e.scope||"openid profile email",Ot.redirect(this.client.buildAuthorizeUrl(e))},Ae.prototype.signupAndAuthorize=function(t,e){var r=this;return this.client.dbConnection.signup(gt.blacklist(t,["popupHandler"]),(function(n){if(n)return e(n);t.realm=t.connection,t.username||(t.username=t.email),r.client.login(t,e)}))},Ae.prototype.login=function(t,e){var r=gt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting","organization","invitation"]).with(t);r=this.transactionManager.process(r),Ot.getWindow().location.host===this.baseOptions.domain?(r.connection=r.realm,delete r.realm,this._universalLogin.login(r,e)):this.crossOriginAuthentication.login(r,e)},Ae.prototype.passwordlessLogin=function(t,e){var r=gt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(t);if(r=this.transactionManager.process(r),Ot.getWindow().location.host===this.baseOptions.domain)this.passwordlessVerify(r,e);else{var n=gt.extend({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:r.connection,username:r.email||r.phoneNumber,otp:r.verificationCode},gt.blacklist(r,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(n,e)}},Ae.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},Ae.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},Ae.prototype.logout=function(t){Ot.redirect(this.client.buildLogoutUrl(t))},Ae.prototype.passwordlessVerify=function(t,e){var r=this,n=gt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(t);return lt.check(n,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),n=this.transactionManager.process(n),this.client.passwordless.verify(n,(function(i){if(i)return e(i);function o(){Ot.redirect(r.client.passwordless.buildVerifyUrl(n))}if("function"==typeof t.onRedirecting)return t.onRedirecting((function(){o()}));o()}))},Ae.prototype.renderCaptcha=function(t,e,r){return function(t,e,r,n){function i(n){n=n||ke,t.getChallenge((function(t,o){return t?(e.innerHTML=r.templates.error(t),n(t)):o.required?(e.style.display="","auth0"===o.provider?function(t,e,r,n){t.innerHTML=e.templates[r.provider](r),t.querySelector(".captcha-reload").addEventListener("click",(function(t){t.preventDefault(),n()}))}(e,r,o,i):"recaptcha_v2"!==o.provider&&"recaptcha_enterprise"!==o.provider||function(t,e,r){var n=t.hasAttribute("data-wid")&&t.getAttribute("data-wid");function i(e){t.querySelector('input[name="captcha"]').value=e||""}if(n)return i(),void Se(r.provider).reset(n);t.innerHTML=e.templates[r.provider](r);var o=t.querySelector(".recaptcha");!function(t,e,r){var n="recaptchaCallback_"+Math.floor(1000001*Math.random());window[n]=function(){delete window[n],r()};var i=window.document.createElement("script");i.src=function(t,e,r){switch(t){case"recaptcha_v2":return"https://www.recaptcha.net/recaptcha/api.js?hl="+e+"&onload="+r;case"recaptcha_enterprise":return"https://www.recaptcha.net/recaptcha/enterprise.js?render=explicit&hl="+e+"&onload="+r;default:throw new Error("Unknown captcha provider")}}(e.provider,e.lang,n),i.async=!0,window.document.body.appendChild(i)}(0,{lang:e.lang,provider:r.provider},(function(){var e=Se(r.provider);n=e.render(o,{callback:i,"expired-callback":function(){i()},"error-callback":function(){i()},sitekey:r.siteKey}),t.setAttribute("data-wid",n)}))}(e,r,o),void n()):(e.style.display="none",void(e.innerHTML=""))}))}return r=gt.merge(Ee).with(r||{}),i(n),{reload:i,getValue:function(){var t=e.querySelector('input[name="captcha"]');if(t)return t.value}}}(this.client,t,e,r)},De.prototype.buildVerifyUrl=function(t){var e,r;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(t){return!t.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(t){return!t.phoneNumber}}}),e=gt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(t),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e=gt.toSnakeCase(e,["auth0Client"]),r=D(e),s(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+r)},De.prototype.start=function(t,e){var r,n;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(t){return"code"===t.send||!t.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(t){return"link"===t.send||!t.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"passwordless","start"),(n=gt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(t)).scope&&(n.authParams=n.authParams||{},n.authParams.scope=n.authParams.scope||n.scope),n.redirectUri&&(n.authParams=n.authParams||{},n.authParams.redirect_uri=n.authParams.redirectUri||n.redirectUri),n.responseType&&(n.authParams=n.authParams||{},n.authParams.response_type=n.authParams.responseType||n.responseType),delete n.redirectUri,delete n.responseType,delete n.scope,n=gt.toSnakeCase(n,["auth0Client","authParams"]),this.request.post(r).send(n).end(Rt(e))},De.prototype.verify=function(t,e){var r,n;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(t){return!t.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(t){return!t.phoneNumber}}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),n=gt.pick(t,["connection","verificationCode","phoneNumber","email","auth0Client"]),n=gt.toSnakeCase(n,["auth0Client"]),r=s(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(r).send(n).end(Rt(e))},Fe.prototype.signup=function(t,e){var r,n,i;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"dbconnections","signup"),i=(n=gt.merge(this.baseOptions,["clientID","state"]).with(t)).user_metadata||n.userMetadata,n=gt.blacklist(n,["scope","userMetadata","user_metadata"]),n=gt.toSnakeCase(n,["auth0Client"]),i&&(n.user_metadata=i),this.request.post(r).send(n).end(Rt(e))},Fe.prototype.changePassword=function(t,e){var r,n;return lt.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"dbconnections","change_password"),n=gt.merge(this.baseOptions,["clientID"]).with(t,["email","connection"]),n=gt.toSnakeCase(n,["auth0Client"]),this.request.post(r).send(n).end(Rt(e))},Re.prototype.buildAuthorizeUrl=function(t){var e,r;return lt.check(t,{type:"object",message:"options parameter is not valid"}),e=gt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(t),lt.check(e,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(t){return-1===t.responseType.indexOf("code")&&-1!==t.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e.connection_scope&<.isArray(e.connection_scope)&&(e.connection_scope=e.connection_scope.join(",")),e=gt.blacklist(e,["username","popupOptions","domain","tenant","timeout","appState"]),e=gt.toSnakeCase(e,["auth0Client"]),e=function(t,e){var r=gt.getKeysNotIn(e,Mt);return r.length>0&&t.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+r.join(",")+"]"),e}(this.warn,e),r=D(e),s(this.baseOptions.rootUrl,"authorize","?"+r)},Re.prototype.buildLogoutUrl=function(t){var e,r;return lt.check(t,{optional:!0,type:"object",message:"options parameter is not valid"}),e=gt.merge(this.baseOptions,["clientID"]).with(t||{}),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e=gt.toSnakeCase(e,["auth0Client","returnTo"]),r=D(gt.blacklist(e,["federated"])),t&&void 0!==t.federated&&!1!==t.federated&&"false"!==t.federated&&(r+="&federated"),s(this.baseOptions.rootUrl,"v2","logout","?"+r)},Re.prototype.loginWithDefaultDirectory=function(t,e){return lt.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),t.grantType="password",this.oauthToken(t,e)},Re.prototype.login=function(t,e){return lt.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),t.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(t,e)},Re.prototype.oauthToken=function(t,e){var r,n,i;return lt.check(t,{type:"object",message:"options parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"oauth","token"),n=gt.merge(this.baseOptions,["clientID","scope","audience"]).with(t),lt.check(n,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),n=gt.toSnakeCase(n,["auth0Client"]),this.warn,i=n,n=gt.pick(i,Pt),this.request.post(r).send(n).end(Rt(e))},Re.prototype.loginWithResourceOwner=function(t,e){var r,n;return lt.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"oauth","ro"),n=gt.merge(this.baseOptions,["clientID","scope"]).with(t,["username","password","scope","connection","device"]),(n=gt.toSnakeCase(n,["auth0Client"])).grant_type=n.grant_type||"password",this.request.post(r).send(n).end(Rt(e))},Re.prototype.getSSOData=function(t,e){if(this.auth0||(this.auth0=new Ae(this.baseOptions)),Ot.getWindow().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(t,e);"function"==typeof t&&(e=t),lt.check(e,{type:"function",message:"cb parameter is not valid"});var r=this.baseOptions.clientID,n=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:n.lastUsedConnection,timeout:5e3},(function(t,i){return t?"login_required"===t.error?e(null,{sso:!1}):("consent_required"===t.error&&(t.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),e(t,{sso:!1})):n.lastUsedSub&&n.lastUsedSub!==i.idTokenPayload.sub?e(t,{sso:!1}):e(null,{lastUsedConnection:{name:n.lastUsedConnection},lastUsedUserID:i.idTokenPayload.sub,lastUsedUsername:i.idTokenPayload.email||i.idTokenPayload.name,lastUsedClientID:r,sessionClients:[r],sso:!0})}))},Re.prototype.userInfo=function(t,e){var r;return lt.check(t,{type:"string",message:"accessToken parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"userinfo"),this.request.get(r).set("Authorization","Bearer "+t).end(Rt(e,{ignoreCasing:!0}))},Re.prototype.getChallenge=function(t){if(lt.check(t,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return t();var e=s(this.baseOptions.rootUrl,"usernamepassword","challenge");return this.request.post(e).send({state:this.baseOptions.state}).end(Rt(t,{ignoreCasing:!0}))},Re.prototype.delegation=function(t,e){var r,n;return lt.check(t,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"delegation"),n=gt.merge(this.baseOptions,["clientID"]).with(t),n=gt.toSnakeCase(n,["auth0Client"]),this.request.post(r).send(n).end(Rt(e))},Re.prototype.getUserCountry=function(t){var e;return lt.check(t,{type:"function",message:"cb parameter is not valid"}),e=s(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(e).end(Rt(t))},Pe.prototype.getUser=function(t,e){var r;return lt.check(t,{type:"string",message:"userId parameter is not valid"}),lt.check(e,{type:"function",message:"cb parameter is not valid"}),r=s(this.baseOptions.rootUrl,"users",t),this.request.get(r).end(Rt(e,{ignoreCasing:!0}))},Pe.prototype.patchUserMetadata=function(t,e,r){var n;return lt.check(t,{type:"string",message:"userId parameter is not valid"}),lt.check(e,{type:"object",message:"userMetadata parameter is not valid"}),lt.check(r,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"users",t),this.request.patch(n).send({user_metadata:e}).end(Rt(r,{ignoreCasing:!0}))},Pe.prototype.patchUserAttributes=function(t,e,r){var n;return lt.check(t,{type:"string",message:"userId parameter is not valid"}),lt.check(e,{type:"object",message:"user parameter is not valid"}),lt.check(r,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"users",t),this.request.patch(n).send(e).end(Rt(r,{ignoreCasing:!0}))},Pe.prototype.linkUser=function(t,e,r){var n;return lt.check(t,{type:"string",message:"userId parameter is not valid"}),lt.check(e,{type:"string",message:"secondaryUserToken parameter is not valid"}),lt.check(r,{type:"function",message:"cb parameter is not valid"}),n=s(this.baseOptions.rootUrl,"users",t,"identities"),this.request.post(n).send({link_with:e}).end(Rt(r,{ignoreCasing:!0}))};var Me={Authentication:Re,Management:Pe,WebAuth:Ae,version:ot};e.default=Me}.call(this,r(64),r(59))},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.variant,r=void 0===e?"default":e,o=t.className;return i.jsx("svg",n({className:o,viewBox:"0 0 60 38.19"},{children:i.jsxs("g",n({transform:"translate(-238.467 -453.779)"},{children:[i.jsx("g",n({transform:"translate(238.467 453.779)"},{children:i.jsx("g",n({transform:"translate(0 1.926)"},{children:i.jsxs("g",{children:[i.jsx("g",n({transform:"translate(.243)"},{children:i.jsx("path",{fill:"default"===r?"#00d163":"#220C4A",d:"M239.9 473.289a.981.981 0 0 0 .663 1.708l17.7-.048a1.56 1.56 0 0 0 1.046-.406l13.191-11.984-19.5.054a3.507 3.507 0 0 0-2.351.912z",transform:"translate(-239.576 -462.559)"},void 0)}),void 0),i.jsx("path",{d:"M296.542 462.586l-21.3.051a1.786 1.786 0 0 0-1.2.47l-12.629 11.57a1.523 1.523 0 0 0-.489 1.121v8.934a.94.94 0 0 1-.932.946l-8.148.02a3.363 3.363 0 0 0-2.27.892l-10.779 9.917a1 1 0 0 0 .662 1.729l20.974-.05a1.275 1.275 0 0 0 .858-.336l12.775-11.7a1.522 1.522 0 0 0 .49-1.12v-8.934a.94.94 0 0 1 .932-.946l8.739-.021a1.841 1.841 0 0 0 1.242-.488l11.606-10.678a.789.789 0 0 0-.531-1.377z",fill:"default"===r?"#201047":"#220C4A",transform:"translate(-238.467 -462.58)"},void 0)]},void 0)}),void 0)}),void 0),i.jsx("g",n({transform:"translate(554.613 460.161)"},{children:i.jsx("path",{fill:"default"===r?"#1d1047":"#220C4A",d:"M1667.281 484.388a1.928 1.928 0 1 1-1.921-1.876 1.885 1.885 0 0 1 1.921 1.876zm-3.374 0a1.453 1.453 0 0 0 1.464 1.5 1.436 1.436 0 0 0 1.43-1.487 1.448 1.448 0 1 0-2.893-.011zm1.155.983h-.435V483.5a3.792 3.792 0 0 1 .72-.057 1.169 1.169 0 0 1 .652.137.52.52 0 0 1 .183.412.48.48 0 0 1-.389.434v.023a.553.553 0 0 1 .343.457 1.43 1.43 0 0 0 .137.469h-.469a1.613 1.613 0 0 1-.148-.458c-.034-.206-.149-.3-.389-.3h-.206zm.011-1.063h.206c.24 0 .434-.08.434-.275 0-.171-.126-.286-.4-.286a1.049 1.049 0 0 0-.24.023z",transform:"translate(-1663.427 -482.512)"},void 0)}),void 0)]}),void 0)}),void 0)}},function(t,e,r){},function(t,e,r){},function(t,e,r){},function(t,e,r){},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(30)),a=i(r(142)),u=i(r(143)),c=i(r(17)),l=i(r(18));r(144),e.default=function(t){var e=t.integrationId,r=t.organizationId,i=t.organizationName,p=s.default.portalBaseUrl+"/"+r+"/settings/integrations/"+e;return o.jsxs(l.default,n({title:"Platform connectie",footerContent:o.jsxs(c.default,n({href:p,color:"white"},{children:[o.jsx(u.default,{className:"tr-wc-buttonVector"},void 0),"Beheer"]}),void 0)},{children:[o.jsxs("span",n({className:"tr-wc-detailsPanel-connected"},{children:[o.jsx(a.default,{className:"tr-wc-checkVector"},void 0),o.jsxs("span",{children:[o.jsx("h3",{children:"Deze winkel is verbonden"},void 0),o.jsx("p",{children:"U bent klaar om uw bestellingen met Trunkrs te verzenden."},void 0)]},void 0)]}),void 0),o.jsxs("span",{children:[o.jsx("h4",{children:"Integratie nummer:"},void 0),o.jsx("p",{children:e},void 0),o.jsx("h4",{children:"Organisatie nummer:"},void 0),o.jsx("p",{children:r},void 0),o.jsx("h4",{children:"Organisatie naam:"},void 0),o.jsx("p",{children:i},void 0)]},void 0)]}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 14 14",fill:"currentColor"},{children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3334 7.00016C12.3334 9.94568 9.94556 12.3335 7.00004 12.3335C4.05452 12.3335 1.66671 9.94568 1.66671 7.00016C1.66671 4.05464 4.05452 1.66683 7.00004 1.66683C9.94556 1.66683 12.3334 4.05464 12.3334 7.00016ZM13.6667 7.00016C13.6667 10.6821 10.6819 13.6668 7.00004 13.6668C3.31814 13.6668 0.333374 10.6821 0.333374 7.00016C0.333374 3.31826 3.31814 0.333496 7.00004 0.333496C10.6819 0.333496 13.6667 3.31826 13.6667 7.00016ZM6.596 9.27795L10.6112 5.2628L9.66834 4.31999L6.1246 7.86373L4.80477 6.5439L3.86196 7.48671L5.65319 9.27795L6.1246 9.74935L6.596 9.27795Z",fill:"#1ED771"},void 0)}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"currentColor"},{children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 2H8V4H4V20H20V16H22V22H2V2ZM18.4372 4.16L12.5199 4.16V2.16L21.8399 2.16L21.8399 11.48H19.8399L19.8399 5.5857L9.20706 16.2186L7.79285 14.8044L18.4372 4.16Z",fill:"currentColor"},void 0)}),void 0)}},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(65)),a=i(r(18));r(147),e.default=function(t){var e=t.useBigText,r=t.darkLogo,i=t.tntEmailLinks,u=t.tntAccountActions,c=t.onUseBigTextChanged,l=t.onDarkLogoChanged,p=t.onTntEmailLinksChanged,f=t.onTntAccountActionsChanged;return o.jsx(a.default,n({title:"Visuele instellingen"},{children:o.jsxs("ul",n({className:"tr-wc-settingsList"},{children:[o.jsx("li",{children:o.jsx(s.default,n({checked:r,onChange:l},{children:o.jsx("h4",n({className:"tr-wc-switchLabel"},{children:"Gebruik aangepast logo voor donker thema in de winkelwagen."}),void 0)}),void 0)},void 0),o.jsx("li",{children:o.jsx(s.default,n({checked:e,onChange:c},{children:o.jsx("h4",n({className:"tr-wc-switchLabel"},{children:"Laat het verwachte levermoment zien in winkelwagen."}),void 0)}),void 0)},void 0),o.jsx("li",{children:o.jsx(s.default,n({checked:i,onChange:p},{children:o.jsx("h4",n({className:"tr-wc-switchLabel"},{children:"Plaats Trunkrs Track & Trace links in orderbevestiging e-mail."}),void 0)}),void 0)},void 0),o.jsx("li",{children:o.jsx(s.default,n({checked:u,onChange:f},{children:o.jsx("h4",n({className:"tr-wc-switchLabel"},{children:"Maak Trunkrs Track & Trace links zichtbaar in gebruikers account pagina."}),void 0)}),void 0)},void 0)]}),void 0)}),void 0)}},function(t,e,r){},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(0)),a=i(r(149)),u=i(r(150)),c=i(r(65)),l=i(r(18)),p=i(r(17)),f=i(r(151));r(291);var d=i(r(292));e.default=function(t){var e=t.isLoading,r=t.rules,i=t.isSubRenewalsEnabled,h=t.allOrdersAreTrunkrs,v=t.isOrderFiltersEnabled,m=t.onAllOrdersAreTrunkrs,y=t.onEnableOrderRules,g=t.onSaveRules,b=t.onIsSubRenewalsEnabled,w=s.default.useState(!1),_=w[0],x=w[1],O=s.default.useState(!1),j=O[0],T=O[1],k=s.default.useCallback((function(){x((function(t){return!t}))}),[]),E=s.default.useCallback((function(){T((function(t){return!t}))}),[]);return o.jsxs(o.Fragment,{children:[o.jsx(l.default,n({title:"Verzendings instellingen"},{children:o.jsxs("ul",n({className:"tr-wc-settingsList"},{children:[o.jsx("li",{children:o.jsx(c.default,n({checked:i,onChange:b},{children:o.jsx("h4",n({className:"tr-wc-switchLabel"},{children:"Maak een zending aan als abonnement verlenging is betaald."}),void 0)}),void 0)},void 0),o.jsx("li",{children:o.jsx(c.default,n({disabled:v,checked:h,onChange:m},{children:o.jsx("h4",n({className:"tr-wc-switchLabel"},{children:"Alle orders zijn exclusief voor Trunkrs."}),void 0)}),void 0)},void 0),o.jsx("li",{children:o.jsx(c.default,n({disabled:h,checked:v,onChange:y},{children:o.jsx("h4",n({className:"tr-wc-switchLabel"},{children:"Gebruik order selectie filters."}),void 0)}),void 0)},void 0),o.jsxs("li",n({className:"tr-wc-ruleBtn-group"},{children:[o.jsxs(p.default,n({color:"white",size:"small",className:"tr-wc-ruleBtn",disabled:!v,onClick:k},{children:[o.jsx(a.default,{className:"tr-wc-buttonVector"},void 0),"Selectie regels"]}),void 0),o.jsxs(p.default,n({color:"white",size:"small",disabled:!v,onClick:E},{children:[o.jsx(u.default,{className:"tr-wc-buttonVector"},void 0),"Logboek"]}),void 0)]}),void 0)]}),void 0)}),void 0),o.jsx(f.default,{isLoading:e,open:_,rules:r,onClose:k,onSaveRules:g},void 0),o.jsx(d.default,{open:j,onClose:E},void 0)]},void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"currentColor"},{children:i.jsx("path",{fill:"currentColor",d:"M12 12V19.88C12.04 20.18 11.94 20.5 11.71 20.71C11.32 21.1 10.69 21.1 10.3 20.71L8.29 18.7C8.06 18.47 7.96 18.16 8 17.87V12H7.97L2.21 4.62C1.87 4.19 1.95 3.56 2.38 3.22C2.57 3.08 2.78 3 3 3H17C17.22 3 17.43 3.08 17.62 3.22C18.05 3.56 18.13 4.19 17.79 4.62L12.03 12H12M17.75 21L15 18L16.16 16.84L17.75 18.43L21.34 14.84L22.5 16.25L17.75 21"},void 0)}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"currentColor"},{children:i.jsx("path",{fill:"currentColor",d:"M3,7V5H5V4C5,2.89 5.9,2 7,2H13V9L15.5,7.5L18,9V2H19C20.05,2 21,2.95 21,4V20C21,21.05 20.05,22 19,22H7C5.95,22 5,21.05 5,20V19H3V17H5V13H3V11H5V7H3M7,11H5V13H7V11M7,7V5H5V7H7M7,19V17H5V19H7Z"},void 0)}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=o(r(0)),u=r(47),c=o(r(218)),l=o(r(86)),p=o(r(87)),f=o(r(17));r(241);var d=o(r(242)),h=o(r(247)),v=o(r(250)),m=o(r(31));e.default=u.withFormik({displayName:"RulesModalForm",validationSchema:v.default,validateOnMount:!0,mapPropsToValues:function(t){var e=t.rules;return{rules:null!=e?e:[]}},handleSubmit:function(t,e){var r=t.rules;(0,e.props.onSaveRules)(r)}})((function(t){var e=t.isLoading,r=t.isValid,o=t.submitForm,v=t.values.rules,y=t.setFieldValue,g=t.open,b=t.onClose,w=a.default.useCallback((function(){y("rules",i(i([],v),[{comparator:"EQ"}]))}),[v,y]);return s.jsxs(p.default,n({open:g,classes:{container:"tr-wc-rulesModal-container",header:"tr-wc-rulesModal-header",contentPanel:"tr-wc-rulesModal-contentPanel",content:"tr-wc-rulesModal-content",footer:"tr-wc-rulesModal-footerContainer"},title:"Order selectie regels",footerContent:s.jsxs(s.Fragment,{children:[s.jsxs(f.default,n({color:"white",size:"small",onClick:w},{children:[s.jsx(l.default,{className:"tr-wc-buttonVector"},void 0),"Regel toevoegen"]}),void 0),s.jsxs(f.default,n({color:"green",size:"small",disabled:!r||e,onClick:o},{children:[e?s.jsx(m.default,{size:32,thickness:2},void 0):s.jsx(c.default,{className:"tr-wc-buttonVector"},void 0),"Opslaan"]}),void 0)]},void 0),onClose:b},{children:[s.jsx(u.FieldArray,{name:"rules",render:function(t){return v.map((function(e,r){return s.jsx(d.default,{prefix:"rules."+r,onRemove:function(){return t.remove(r)}},r)}))}},void 0),v.length?void 0:s.jsx(h.default,{},void 0)]}),void 0)}))},function(t,e,r){var n=r(14),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[a]=r:delete t[a]),i}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(20),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():i.call(e,r,1),--this.size,0))}},function(t,e,r){var n=r(20);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(20);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(20);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},function(t,e,r){var n=r(19);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(19),i=r(35),o=r(36);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(69),i=r(165),o=r(12),s=r(70),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?f:a).test(s(t))}},function(t,e,r){var n,i=r(166),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},function(t,e,r){var n=r(3)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(169),i=r(19),o=r(35);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(t,e,r){var n=r(170),i=r(171),o=r(172),s=r(173),a=r(174);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},function(t,e,r){var n=r(21);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(21),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(21),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},function(t,e,r){var n=r(21);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(22);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(22);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(22);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(22);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e,r){var n=r(9),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,r){var n=r(24),i=r(15);t.exports=function(t,e){return t&&n(e,i(e),t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(11),i=r(6);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(11),i=r(39),o=r(6),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[n(t)]}},function(t,e,r){var n=r(42),i=r(188),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e,r){var n=r(67)(Object.keys,Object);t.exports=n},function(t,e,r){var n=r(24),i=r(43);t.exports=function(t,e){return t&&n(e,i(e),t)}},function(t,e,r){var n=r(12),i=r(42),o=r(191),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=i(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){(function(t){var n=r(3),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}).call(this,r(38)(t))},function(t,e,r){var n=r(24),i=r(44);t.exports=function(t,e){return n(t,i(t),e)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}},function(t,e,r){var n=r(24),i=r(79);t.exports=function(t,e){return n(t,i(t),e)}},function(t,e,r){var n=r(82),i=r(79),o=r(43);t.exports=function(t){return n(t,o,i)}},function(t,e,r){var n=r(9)(r(3),"DataView");t.exports=n},function(t,e,r){var n=r(9)(r(3),"Promise");t.exports=n},function(t,e,r){var n=r(9)(r(3),"Set");t.exports=n},function(t,e,r){var n=r(9)(r(3),"WeakMap");t.exports=n},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,r){var n=r(45),i=r(203),o=r(204),s=r(205),a=r(206);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,r);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Set]":return new u;case"[object Symbol]":return s(t)}}},function(t,e,r){var n=r(45);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},function(t,e){var r=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,r){var n=r(14),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,r){var n=r(45);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,e,r){var n=r(208),i=r(32),o=r(42);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:n(i(t))}},function(t,e,r){var n=r(12),i=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=o},function(t,e,r){var n=r(210),i=r(40),o=r(41),s=o&&o.isMap,a=s?i(s):n;t.exports=a},function(t,e,r){var n=r(25),i=r(6);t.exports=function(t){return i(t)&&"[object Map]"==n(t)}},function(t,e,r){var n=r(212),i=r(40),o=r(41),s=o&&o.isSet,a=s?i(s):n;t.exports=a},function(t,e,r){var n=r(25),i=r(6);t.exports=function(t){return i(t)&&"[object Set]"==n(t)}},function(t,e,r){var n=r(214);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=r(36);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},function(t,e,r){var n=r(14),i=r(84),o=r(4),s=r(26),a=n?n.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(t,e,r){"use strict";t.exports=r(217)},function(t,e,r){"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,v=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case p:case f:case s:case u:case a:case h:return t;default:switch(t=t&&t.$$typeof){case l:case d:case y:case m:case c:return t;default:return e}}case o:return e}}}function O(t){return x(t)===f}e.AsyncMode=p,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=c,e.Element=i,e.ForwardRef=d,e.Fragment=s,e.Lazy=y,e.Memo=m,e.Portal=o,e.Profiler=u,e.StrictMode=a,e.Suspense=h,e.isAsyncMode=function(t){return O(t)||x(t)===p},e.isConcurrentMode=O,e.isContextConsumer=function(t){return x(t)===l},e.isContextProvider=function(t){return x(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===s},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===u},e.isStrictMode=function(t){return x(t)===a},e.isSuspense=function(t){return x(t)===h},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===s||t===f||t===u||t===a||t===h||t===v||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===m||t.$$typeof===c||t.$$typeof===l||t.$$typeof===d||t.$$typeof===b||t.$$typeof===w||t.$$typeof===_||t.$$typeof===g)},e.typeOf=x},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"currentColor"},{children:i.jsx("path",{fill:"currentColor",d:"M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z"},void 0)}),void 0)}},function(t,e,r){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(220)),o=n(r(221)),s=n(r(222)),a=n(r(224)),u=n(r(225)),c=n(r(88)),l=n(r(227)),p=n(r(229)),f=n(r(0));n(r(230)),n(r(233));var d,h=(d=null,function(){if(null!==d)return d;var t,e,r=!1;try{window.addEventListener("test",null,(t={},"passive",e={get:function(){r=!0}},Object.defineProperty(t,"passive",e)))}catch(t){}return d=r,r}()),v={capture:!1,passive:!1};function m(t){return p({},v,t)}function y(t,e,r){var n=[t,e];return n.push(h?r:r.capture),n}function g(t,e,r,n){t.addEventListener.apply(t,y(e,r,n))}function b(t,e,r,n){t.removeEventListener.apply(t,y(e,r,n))}function w(t,e){t.children,t.target;var r=l(t,["children","target"]);Object.keys(r).forEach((function(t){if("on"===t.substring(0,2)){var n=r[t],i=c(n),o="object"===i;if(o||"function"===i){var s="capture"===t.substr(-7).toLowerCase(),a=t.substring(2).toLowerCase();a=s?a.substring(0,a.length-7):a,o?e(a,n.handler,n.options):e(a,n,m({capture:s}))}}}))}var _=function(t){function e(){return i(this,e),s(this,a(e).apply(this,arguments))}return u(e,t),o(e,[{key:"componentDidMount",value:function(){this.applyListeners(g)}},{key:"componentDidUpdate",value:function(t){this.applyListeners(b,t),this.applyListeners(g)}},{key:"componentWillUnmount",value:function(){this.applyListeners(b)}},{key:"applyListeners",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,r=e.target;if(r){var n=r;"string"==typeof r&&(n=window[r]),w(e,t.bind(null,n))}}},{key:"render",value:function(){return this.props.children||null}}]),e}(f.PureComponent);_.propTypes={},e.withOptions=function(t,e){return{handler:t,options:m(e)}},e.default=_},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(88).default,i=r(223);t.exports=function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(226);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var n=r(228);t.exports=function(t,e){if(null==t)return{};var r,i,o=n(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(){return t.exports=r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,r.apply(this,arguments)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){t.exports=r(231)()},function(t,e,r){"use strict";var n=r(232);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,s){if(s!==n){var a=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 a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,r){"use strict";t.exports=function(){}},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=o(r(0)),a=o(r(235)),u=document.getElementById("portal-root"),c=function(t){function e(e){var r=t.call(this,e)||this;return r.updateRef=function(t){var e=r.props.portalRef;e&&("function"==typeof e?e(t):e.current=t)},r.portalEl=document.createElement("div"),r}return i(e,t),e.prototype.componentDidMount=function(){null==u||u.appendChild(this.portalEl),this.updateRef(this.portalEl)},e.prototype.componentWillUnmount=function(){null==u||u.removeChild(this.portalEl),this.updateRef(null)},e.prototype.render=function(){var t=this.props.children;return a.default.createPortal(t,this.portalEl)},e}(s.default.PureComponent);e.default=c},function(t,e){t.exports=ReactDOM},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"currentColor"},{children:i.jsx("path",{fill:"currentColor",d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},void 0)}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(8));r(239),e.default=function(t){var e=t.open,r=t.className,i=t.children,a=t.onClick;return o.jsx("div",n({role:"banner",className:s.default("tr-wc-backdrop-root",r,{"tr-wc-backdrop-open":e}),onClick:a},{children:o.jsx("span",n({className:"tr-wc-backdrop-content"},{children:i}),void 0)}),void 0)}},function(t,e,r){},function(t,e,r){},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=r(47),a=i(r(89)),u=i(r(243));r(244);var c=i(r(245));e.default=function(t){var e=t.prefix,r=t.onRemove;return o.jsxs("div",n({className:"tr-wc-Rule-container"},{children:[o.jsxs("div",n({className:"tr-wc-Rule-ruleContainer"},{children:[o.jsx(c.default,{name:e+".field"},void 0),o.jsx(s.Field,{name:e+".comparator",render:function(t){var e=t.field;return o.jsxs("select",n({className:"tr-wc-Rule-select"},e,{children:[o.jsx("option",n({value:"EQ"},{children:"Gelijk aan"}),void 0),o.jsx("option",n({value:"NQ"},{children:"Niet gelijk aan"}),void 0),o.jsx("option",n({value:"GT"},{children:"Groter dan"}),void 0),o.jsx("option",n({value:"LT"},{children:"Kleiner dan"}),void 0),o.jsx("option",n({value:"CO"},{children:"Bevat"}),void 0),o.jsx("option",n({value:"SW"},{children:"Begint met"}),void 0),o.jsx("option",n({value:"EW"},{children:"Eindigt met"}),void 0)]}),void 0)}},void 0),o.jsx(s.Field,{className:"tr-wc-Rule-input",name:e+".value"},void 0)]}),void 0),o.jsx("div",{children:o.jsx(a.default,{icon:o.jsx(u.default,{},void 0),onClick:r},void 0)},void 0)]}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"currentColor"},{children:i.jsx("path",{fill:"currentColor",d:"M12 12V19.88C12.04 20.18 11.94 20.5 11.71 20.71C11.32 21.1 10.69 21.1 10.3 20.71L8.29 18.7C8.06 18.47 7.96 18.16 8 17.86V12H7.97L2.21 4.62C1.87 4.19 1.95 3.56 2.38 3.22C2.57 3.08 2.78 3 3 3V3H17V3C17.22 3 17.43 3.08 17.62 3.22C18.05 3.56 18.13 4.19 17.79 4.62L12.03 12H12M15 17H23V19H15V17Z"},void 0)}),void 0)}},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(0)),a=r(47);r(246);var u={method_id:"Verzendoptie code",method_title:"Verzendoptie naam",payment_method:"Betaalmethode type",payment_method_title:"Betaalmethode naam",total:"Order totaal",status:"Order status",created_via:"Aangemaakt via"},c=Object.keys(u);e.default=function(t){var e=t.name,r=a.useField(e),i=r[0],l=r[2],p=s.default.useState(i.value&&!c.includes(i.value)),f=p[0],d=p[1],h=s.default.useCallback((function(t){var e=t.target.value;c.includes(e)?(l.setValue(e),f&&d(!1)):(l.setValue(""),d(!0))}),[l,f]);return o.jsxs("div",n({className:"tr-wc-fieldInput-container"},{children:[o.jsxs("select",n({className:"tr-wc-Rule-select",value:i.value,onBlur:i.onBlur,onChange:h},{children:[o.jsx("option",n({value:"",hidden:!0},{children:"Selecteer veld"}),void 0),s.default.useMemo((function(){return c.map((function(t){var e=u[t];return o.jsx("option",n({value:t},{children:e}),t)}))}),[]),o.jsx("option",n({value:"custom-field"},{children:"Aangepaste waarde"}),void 0)]}),void 0),o.jsx("input",{disabled:!f,type:"text",className:"tr-wc-Rule-input tr-wc-fieldInput-input",placeholder:f?"Type de naam van het veld":"Selecteer een veld",value:i.value,name:i.name,onBlur:i.onBlur,onChange:i.onChange},void 0)]}),void 0)}},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(248));r(249);var a=i(r(86));e.default=function(){return o.jsxs("div",n({className:"tr-wc-rulesModal-emptyView-panel"},{children:[o.jsx(s.default,{className:"tr-wc-rulesModal-emptyView-line"},void 0),o.jsxs("p",n({className:"tr-wc-rulesModal-emptyView-text"},{children:[o.jsx(a.default,{className:"tr-wc-buttonVector"},void 0),"Voeg een regel toe"]}),void 0)]}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.default=function(t){var e=t.className;return i.jsx("svg",n({xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 233 166",fill:"currentColor"},{children:i.jsx("path",{d:"M231 3.68182C231.828 3.68182 232.5 3.01025 232.5 2.18182C232.5 1.3534 231.828 0.681824 231 0.681824V3.68182ZM10.9393 165.061C11.5251 165.646 12.4749 165.646 13.0607 165.061L22.6066 155.515C23.1924 154.929 23.1924 153.979 22.6066 153.393C22.0208 152.808 21.0711 152.808 20.4853 153.393L12 161.879L3.51472 153.393C2.92893 152.808 1.97918 152.808 1.3934 153.393C0.807612 153.979 0.807612 154.929 1.3934 155.515L10.9393 165.061ZM231 0.681824H36V3.68182H231V0.681824ZM10.5 26.1818V164H13.5V26.1818H10.5ZM36 0.681824C21.9167 0.681824 10.5 12.0986 10.5 26.1818H13.5C13.5 13.7554 23.5736 3.68182 36 3.68182V0.681824Z",fill:"currentColor"},void 0)}),void 0)}},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0});var s=o(r(301)),a=/[$%|]/,u=s.object().shape({rules:s.array().of(s.object().shape({field:s.string().required().test("Het veld mag geen $, | en % karakters bevatten.",(function(t){return Boolean(t)&&!a.test(t)})),comparator:s.string().required().test("Het veld mag geen $, | en % karakters bevatten.",(function(t){return Boolean(t)&&!a.test(t)})),value:s.string().required().test("Het veld mag geen $, | en % karakters bevatten.",(function(t){return Boolean(t)&&!a.test(t)}))})).min(1)});e.default=u},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&r.call(t,e)}},function(t,e,r){var n=r(253)();t.exports=n},function(t,e){t.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),s=n(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===r(o[u],u,o))break}return e}}},function(t,e,r){var n=r(255),i=r(266),o=r(97);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(33),i=r(94);t.exports=function(t,e,r,o){var s=r.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=r[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=r[s])[0],p=t[l],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in t))return!1}else{var d=new n;if(o)var h=o(p,f,l,t,e,d);if(!(void 0===h?i(f,p,3,o,d):h))return!1}}return!0}},function(t,e,r){var n=r(33),i=r(95),o=r(262),s=r(265),a=r(25),u=r(4),c=r(37),l=r(75),p="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,h,v){var m=u(t),y=u(e),g=m?"[object Array]":a(t),b=y?"[object Array]":a(e),w=(g="[object Arguments]"==g?p:g)==p,_=(b="[object Arguments]"==b?p:b)==p,x=g==b;if(x&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(x&&!w)return v||(v=new n),m||l(t)?i(t,e,r,d,h,v):o(t,e,g,r,d,h,v);if(!(1&r)){var O=w&&f.call(t,"__wrapped__"),j=_&&f.call(e,"__wrapped__");if(O||j){var T=O?t.value():t,k=j?e.value():e;return v||(v=new n),h(T,k,r,d,v)}}return!!x&&(v||(v=new n),s(t,e,r,d,h,v))}},function(t,e,r){var n=r(36),i=r(258),o=r(259);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(14),i=r(83),o=r(34),s=r(95),a=r(263),u=r(264),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":var h=1&n;if(d||(d=u),t.size!=e.size&&!h)return!1;var v=f.get(t);if(v)return v==e;n|=2,f.set(t,e);var m=s(d(t),d(e),n,c,p,f);return f.delete(t),m;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(81),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,s,a){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var p=l;p--;){var f=c[p];if(!(u?f in e:i.call(e,f)))return!1}var d=a.get(t),h=a.get(e);if(d&&h)return d==e&&h==t;var v=!0;a.set(t,e),a.set(e,t);for(var m=u;++p<l;){var y=t[f=c[p]],g=e[f];if(o)var b=u?o(g,y,f,e,t,a):o(y,g,f,t,e,a);if(!(void 0===b?y===g||s(y,g,r,o,a):b)){v=!1;break}m||(m="constructor"==f)}if(v&&!m){var w=t.constructor,_=e.constructor;w==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(v=!1)}return a.delete(t),a.delete(e),v}},function(t,e,r){var n=r(96),i=r(15);t.exports=function(t){for(var e=i(t),r=e.length;r--;){var o=e[r],s=t[o];e[r]=[o,s,n(s)]}return e}},function(t,e,r){var n=r(94),i=r(268),o=r(269),s=r(46),a=r(96),u=r(97),c=r(16);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(r){var s=i(r,t);return void 0===s&&s===e?o(r,t):n(e,s,3)}}},function(t,e,r){var n=r(98);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},function(t,e,r){var n=r(270),i=r(90);t.exports=function(t,e){return null!=t&&i(t,e,n)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(273),i=r(274),o=r(46),s=r(16);t.exports=function(t){return o(t)?n(s(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(98);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e){t.exports=function(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}},function(t,e,r){var n=r(277),i=r(13),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,n).replace(s,"")}},function(t,e,r){var n=r(278)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=n},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,r){var n=r(280),i=r(281),o=r(13),s=r(282);t.exports=function(t,e,r){return t=o(t),void 0===(e=r?void 0:e)?i(t)?s(t):n(t):t.match(e)||[]}},function(t,e){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(r)||[]}},function(t,e){var r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return r.test(t)}},function(t,e){var r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="["+r+"]",i="\\d+",o="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+r+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="[A-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:"+o+"|"+s+")",p="(?:"+c+"|"+s+")",f="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",d="[\\ufe0e\\ufe0f]?"+f+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",a,u].join("|")+")[\\ufe0e\\ufe0f]?"+f+")*",h="(?:"+["[\\u2700-\\u27bf]",a,u].join("|")+")"+d,v=RegExp([c+"?"+o+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[n,c,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[n,c+l,"$"].join("|")+")",c+"?"+l+"+(?:['’](?:d|ll|m|re|s|t|ve))?",c+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,h].join("|"),"g");t.exports=function(t){return t.match(v)||[]}},function(t,e,r){var n=r(13),i=r(284);t.exports=function(t){return i(n(t).toLowerCase())}},function(t,e,r){var n=r(285)("toUpperCase");t.exports=n},function(t,e,r){var n=r(286),i=r(100),o=r(288),s=r(13);t.exports=function(t){return function(e){e=s(e);var r=i(e)?o(e):void 0,a=r?r[0]:e.charAt(0),u=r?n(r,1).join(""):e.slice(1);return a[t]()+u}}},function(t,e,r){var n=r(287);t.exports=function(t,e,r){var i=t.length;return r=void 0===r?i:r,!e&&r>=i?t:n(t,e,r)}},function(t,e){t.exports=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}},function(t,e,r){var n=r(289),i=r(100),o=r(290);t.exports=function(t){return i(t)?o(t):n(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?"+a+"(?:\\u200d(?:"+[i,o,s].join("|")+")[\\ufe0e\\ufe0f]?"+a+")*",c="(?:"+[i+r+"?",r,o,s,"[\\ud800-\\udfff]"].join("|")+")",l=RegExp(n+"(?="+n+")|"+c+u,"g");t.exports=function(t){return t.match(l)||[]}},function(t,e,r){},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),s=i(r(0)),a=r(54),u=i(r(31)),c=i(r(87)),l=i(r(293));r(295),e.default=function(t){var e=t.open,r=t.onClose,i=s.default.useState(!0),p=i[0],f=i[1],d=s.default.useState([]),h=d[0],v=d[1];return s.default.useEffect((function(){e&&(f(!0),a.findAuditLogs().then(v).finally((function(){return f(!1)})))}),[e]),o.jsx(c.default,n({open:e,classes:{container:"tr-wc-auditLogModal-container",contentPanel:"tr-wc-auditLogModal-contentPanel",content:"tr-wc-auditLogModal-panel"},title:"Selectie logboek",onClose:r},{children:p?o.jsx("div",n({className:"tr-wc-auditLogModal-loading"},{children:o.jsx(u.default,{size:48,thickness:4},void 0)}),void 0):h.map((function(t){return o.jsx(l.default,n({},t),t.timestamp)}))}),void 0)}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);r(294);var o={EQ:"gelijk aan",NQ:"niet gelijk aan",GT:"groter dan",LT:"kleiner dan",CO:"bevat",SW:"begint met",EW:"eindigt met"};e.default=function(t){var e=t.orderId,r=t.timestamp,s=t.entries;return i.jsx("table",n({className:"tr-wc-logEntry-table"},{children:i.jsx("tbody",{children:s.map((function(t,a){return t.comparisons.map((function(u){return i.jsxs("tr",{children:[0===a&&i.jsxs("td",n({rowSpan:s.length,width:"25%",className:"tr-wc-auditLogModal-dataCell"},{children:[i.jsx("a",n({href:"/wp-admin/post.php?post="+e+"&action=edit"},{children:"Bestelling #"+e}),void 0),i.jsx("p",{children:r+" UTC"},void 0)]}),void 0),i.jsx("td",n({width:"45%",className:"tr-wc-auditLogModal-dataCell"},{children:t.fieldName+" "+o[u.operator]+" "+u.compareValue}),void 0),i.jsxs("td",n({width:"40%",className:"tr-wc-auditLogModal-dataCell"},{children:[i.jsxs("p",{children:["Waarde: ",t.fieldValue]},void 0),i.jsxs("p",{children:["Uitkomst:"," ",i.jsx("span",n({style:{color:u.result?"green":"red"}},{children:String(u.result)}),void 0)]},void 0)]}),void 0)]},t.fieldName+"-"+u.operator+"-"+u.compareValue)}))}))},void 0)}),void 0)}},function(t,e,r){},function(t,e,r){},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toOrderRuleString=e.fromOrderRuleString=void 0,e.fromOrderRuleString=function(t){return t?t.split("%").map((function(t){var e=t.split("$"),r=e[0],n=e[1].split("|");return{field:r,comparator:n[0],value:n[1]}})):[]},e.toOrderRuleString=function(t){return t.map((function(t){return[t.field,[t.comparator,t.value].join("|")].join("$")})).join("%")}},function(t,e,r){},,,,function(t,e,r){"use strict";var n,i;r.r(e),r.d(e,"mixed",(function(){return z})),r.d(e,"bool",(function(){return H})),r.d(e,"boolean",(function(){return H})),r.d(e,"string",(function(){return Y})),r.d(e,"number",(function(){return tt})),r.d(e,"date",(function(){return it})),r.d(e,"object",(function(){return wt})),r.d(e,"array",(function(){return xt})),r.d(e,"ref",(function(){return F})),r.d(e,"lazy",(function(){return jt})),r.d(e,"reach",(function(){return U})),r.d(e,"isSchema",(function(){return O})),r.d(e,"addMethod",(function(){return Et})),r.d(e,"setLocale",(function(){return kt})),r.d(e,"ValidationError",(function(){return E})),r.d(e,"BaseSchema",(function(){return q})),r.d(e,"MixedSchema",(function(){return V})),r.d(e,"BooleanSchema",(function(){return W})),r.d(e,"StringSchema",(function(){return Q})),r.d(e,"NumberSchema",(function(){return et})),r.d(e,"DateSchema",(function(){return ot})),r.d(e,"ObjectSchema",(function(){return bt})),r.d(e,"ArraySchema",(function(){return Ot}));try{n=Map}catch(t){}try{i=Set}catch(t){}function o(t){return function t(e,r,s){if(!e||"object"!=typeof e||"function"==typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(o);if(n&&e instanceof n)return new Map(Array.from(e.entries()));if(i&&e instanceof i)return new Set(Array.from(e.values()));if(e instanceof Object){r.push(e);var a=Object.create(e);for(var u in s.push(a),e){var c=r.findIndex((function(t){return t===e[u]}));a[u]=c>-1?s[c]:t(e[u],r,s)}return a}return e}(t,[],[])}const s=Object.prototype.toString,a=Error.prototype.toString,u=RegExp.prototype.toString,c="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function p(t,e=!1){if(null==t||!0===t||!1===t)return""+t;const r=typeof t;if("number"===r)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===r)return e?`"${t}"`:t;if("function"===r)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===r)return c.call(t).replace(l,"Symbol($1)");const n=s.call(t).slice(8,-1);return"Date"===n?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===n||t instanceof Error?"["+a.call(t)+"]":"RegExp"===n?u.call(t):null}function f(t,e){let r=p(t,e);return null!==r?r:JSON.stringify(t,(function(t,r){let n=p(this[t],e);return null!==n?n:r}),2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:n})=>{let i=null!=n&&n!==r,o=`${t} must be a \`${e}\` type, but the final value was: \`${f(r,!0)}\``+(i?` (cast from the value \`${f(n,!0)}\`).`:".");return null===r&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},h={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},v={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},m={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},y={isValue:"${path} field must be ${value}"},g={noUnknown:"${path} field has unspecified keys: ${unknown}"},b={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};var w=Object.assign(Object.create(null),{mixed:d,string:h,number:v,date:m,object:g,array:b,boolean:y}),_=r(10),x=r.n(_),O=t=>t&&t.__isYupSchema__;function j(t){return null==t?[]:[].concat(t)}function T(){return(T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}let k=/\$\{\s*(\w+)\s*\}/g;class E extends Error{static formatError(t,e){const r=e.label||e.path||"this";return r!==e.path&&(e=T({},e,{path:r})),"string"==typeof t?t.replace(k,(t,r)=>f(e[r])):"function"==typeof t?t(e):t}static isError(t){return t&&"ValidationError"===t.name}constructor(t,e,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=e,this.path=r,this.type=n,this.errors=[],this.inner=[],j(t).forEach(t=>{E.isError(t)?(this.errors.push(...t.errors),this.inner=this.inner.concat(t.inner.length?t.inner:t)):this.errors.push(t)}),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,E)}}function S(t,e){let{endEarly:r,tests:n,args:i,value:o,errors:s,sort:a,path:u}=t,c=(t=>{let e=!1;return(...r)=>{e||(e=!0,t(...r))}})(e),l=n.length;const p=[];if(s=s||[],!l)return s.length?c(new E(s,o,u)):c(null,o);for(let t=0;t<n.length;t++)(0,n[t])(i,(function(t){if(t){if(!E.isError(t))return c(t,o);if(r)return t.value=o,c(t,o);p.push(t)}if(--l<=0){if(p.length&&(a&&p.sort(a),s.length&&p.push(...s),s=p),s.length)return void c(new E(s,o,u),o);c(null,o)}}))}var C=r(27),A=r.n(C),D=r(7);function F(t,e){return new R(t,e)}class R{constructor(t,e={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof t)throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?"$":this.isValue?".":"";this.path=this.key.slice(r.length),this.getter=this.path&&Object(D.getter)(this.path,!0),this.map=e.map}getValue(t,e,r){let n=this.isContext?r:this.isValue?t:e;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(t,e){return this.getValue(t,null==e?void 0:e.parent,null==e?void 0:e.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}function P(){return(P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function M(t){function e(e,r){let{value:n,path:i="",label:o,options:s,originalValue:a,sync:u}=e,c=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(e,["value","path","label","options","originalValue","sync"]);const{name:l,test:p,params:f,message:d}=t;let{parent:h,context:v}=s;function m(t){return R.isRef(t)?t.getValue(n,h,v):t}function y(t={}){const e=A()(P({value:n,originalValue:a,label:o,path:t.path||i},f,t.params),m),r=new E(E.formatError(t.message||d,e),n,e.path,t.type||l);return r.params=e,r}let g,b=P({path:i,parent:h,type:l,createError:y,resolve:m,options:s,originalValue:a},c);if(u){try{var w;if(g=p.call(b,n,b),"function"==typeof(null==(w=g)?void 0:w.then))throw new Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(t){return void r(t)}E.isError(g)?r(g):g?r(null,g):r(y())}else try{Promise.resolve(p.call(b,n,b)).then(t=>{E.isError(t)?r(t):t?r(null,t):r(y())}).catch(r)}catch(t){r(t)}}return e.OPTIONS=t,e}function I(t,e,r,n=r){let i,o,s;return e?(Object(D.forEach)(e,(a,u,c)=>{let l=u?(t=>t.substr(0,t.length-1).substr(1))(a):a;if((t=t.resolve({context:n,parent:i,value:r})).innerType){let n=c?parseInt(l,10):0;if(r&&n>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);i=r,r=r&&r[n],t=t.innerType}if(!c){if(!t.fields||!t.fields[l])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t._type}")`);i=r,r=r&&r[l],t=t.fields[l]}o=l,s=u?"["+a+"]":"."+a}),{schema:t,parent:i,parentPath:o}):{parent:i,parentPath:e,schema:t}}R.prototype.__isYupRef=!0;var U=(t,e,r,n)=>I(t,e,r,n).schema;class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const t=[];for(const e of this.list)t.push(e);for(const[,e]of this.refs)t.push(e.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((e,r)=>e.concat(R.isRef(r)?t(r):r),[])}add(t){R.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){R.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new L;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,e){const r=this.clone();return t.list.forEach(t=>r.add(t)),t.refs.forEach(t=>r.add(t)),e.list.forEach(t=>r.delete(t)),e.refs.forEach(t=>r.delete(t)),r}}function N(){return(N=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}class q{constructor(t){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new L,this._blacklist=new L,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(d.notType)}),this.type=(null==t?void 0:t.type)||"mixed",this.spec=N({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==t?void 0:t.spec)}get _type(){return this.type}_typeCheck(t){return!0}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const e=Object.create(Object.getPrototypeOf(this));return e.type=this.type,e._typeError=this._typeError,e._whitelistError=this._whitelistError,e._blacklistError=this._blacklistError,e._whitelist=this._whitelist.clone(),e._blacklist=this._blacklist.clone(),e.exclusiveTests=N({},this.exclusiveTests),e.deps=[...this.deps],e.conditions=[...this.conditions],e.tests=[...this.tests],e.transforms=[...this.transforms],e.spec=o(N({},this.spec,t)),e}label(t){let e=this.clone();return e.spec.label=t,e}meta(...t){if(0===t.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},t[0]),e}withMutation(t){let e=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=e,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let e=t.clone();const r=N({},this.spec,e.spec);return e.spec=r,e._typeError||(e._typeError=this._typeError),e._whitelistError||(e._whitelistError=this._whitelistError),e._blacklistError||(e._blacklistError=this._blacklistError),e._whitelist=this._whitelist.merge(t._whitelist,t._blacklist),e._blacklist=this._blacklist.merge(t._blacklist,t._whitelist),e.tests=this.tests,e.exclusiveTests=this.exclusiveTests,e.withMutation(e=>{t.tests.forEach(t=>{e.test(t.OPTIONS)})}),e.transforms=[...this.transforms,...e.transforms],e}isType(t){return!(!this.spec.nullable||null!==t)||this._typeCheck(t)}resolve(t){let e=this;if(e.conditions.length){let r=e.conditions;e=e.clone(),e.conditions=[],e=r.reduce((e,r)=>r.resolve(e,t),e),e=e.resolve(t)}return e}cast(t,e={}){let r=this.resolve(N({value:t},e)),n=r._cast(t,e);if(void 0!==t&&!1!==e.assert&&!0!==r.isType(n)){let i=f(t),o=f(n);throw new TypeError(`The value of ${e.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". \n\nattempted value: ${i} \n`+(o!==i?"result of cast: "+o:""))}return n}_cast(t,e){let r=void 0===t?t:this.transforms.reduce((e,r)=>r.call(this,e,t,this),t);return void 0===r&&(r=this.getDefault()),r}_validate(t,e={},r){let{sync:n,path:i,from:o=[],originalValue:s=t,strict:a=this.spec.strict,abortEarly:u=this.spec.abortEarly}=e,c=t;a||(c=this._cast(c,N({assert:!1},e)));let l={value:c,path:i,options:e,originalValue:s,schema:this,label:this.spec.label,sync:n,from:o},p=[];this._typeError&&p.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),S({args:l,value:c,path:i,sync:n,tests:p,endEarly:u},t=>{t?r(t,c):S({tests:this.tests.concat(f),args:l,path:i,sync:n,value:c,endEarly:u},r)})}validate(t,e,r){let n=this.resolve(N({},e,{value:t}));return"function"==typeof r?n._validate(t,e,r):new Promise((r,i)=>n._validate(t,e,(t,e)=>{t?i(t):r(e)}))}validateSync(t,e){let r;return this.resolve(N({},e,{value:t}))._validate(t,N({},e,{sync:!0}),(t,e)=>{if(t)throw t;r=e}),r}isValid(t,e){return this.validate(t,e).then(()=>!0,t=>{if(E.isError(t))return!1;throw t})}isValidSync(t,e){try{return this.validateSync(t,e),!0}catch(t){if(E.isError(t))return!1;throw t}}_getDefault(){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this):o(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return 0===arguments.length?this._getDefault():this.clone({default:t})}strict(t=!0){let e=this.clone();return e.spec.strict=t,e}_isPresent(t){return null!=t}defined(t=d.defined){return this.test({message:t,name:"defined",exclusive:!0,test:t=>void 0!==t})}required(t=d.required){return this.clone({presence:"required"}).withMutation(e=>e.test({message:t,name:"required",exclusive:!0,test(t){return this.schema._isPresent(t)}}))}notRequired(){let t=this.clone({presence:"optional"});return t.tests=t.tests.filter(t=>"required"!==t.OPTIONS.name),t}nullable(t=!0){return this.clone({nullable:!1!==t})}transform(t){let e=this.clone();return e.transforms.push(t),e}test(...t){let e;if(e=1===t.length?"function"==typeof t[0]?{test:t[0]}:t[0]:2===t.length?{name:t[0],test:t[1]}:{name:t[0],message:t[1],test:t[2]},void 0===e.message&&(e.message=d.default),"function"!=typeof e.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),n=M(e),i=e.exclusive||e.name&&!0===r.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(r.exclusiveTests[e.name]=!!e.exclusive),r.tests=r.tests.filter(t=>{if(t.OPTIONS.name===e.name){if(i)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0}),r.tests.push(n),r}when(t,e){Array.isArray(t)||"string"==typeof t||(e=t,t=".");let r=this.clone(),n=j(t).map(t=>new R(t));return n.forEach(t=>{t.isSibling&&r.deps.push(t.key)}),r.conditions.push(new class{constructor(t,e){if(this.fn=void 0,this.refs=t,this.refs=t,"function"==typeof e)return void(this.fn=e);if(!x()(e,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!e.then&&!e.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=e,o="function"==typeof r?r:(...t)=>t.every(t=>t===r);this.fn=function(...t){let e=t.pop(),r=t.pop(),s=o(...t)?n:i;if(s)return"function"==typeof s?s(r):r.concat(s.resolve(e))}}resolve(t,e){let r=this.refs.map(t=>t.getValue(null==e?void 0:e.value,null==e?void 0:e.parent,null==e?void 0:e.context)),n=this.fn.apply(t,r.concat(t,e));if(void 0===n||n===t)return t;if(!O(n))throw new TypeError("conditions must return a schema object");return n.resolve(e)}}(n,e)),r}typeError(t){let e=this.clone();return e._typeError=M({message:t,name:"typeError",test(t){return!(void 0!==t&&!this.schema.isType(t))||this.createError({params:{type:this.schema._type}})}}),e}oneOf(t,e=d.oneOf){let r=this.clone();return t.forEach(t=>{r._whitelist.add(t),r._blacklist.delete(t)}),r._whitelistError=M({message:e,name:"oneOf",test(t){if(void 0===t)return!0;let e=this.schema._whitelist,r=e.resolveAll(this.resolve);return!!r.includes(t)||this.createError({params:{values:e.toArray().join(", "),resolved:r}})}}),r}notOneOf(t,e=d.notOneOf){let r=this.clone();return t.forEach(t=>{r._blacklist.add(t),r._whitelist.delete(t)}),r._blacklistError=M({message:e,name:"notOneOf",test(t){let e=this.schema._blacklist,r=e.resolveAll(this.resolve);return!r.includes(t)||this.createError({params:{values:e.toArray().join(", "),resolved:r}})}}),r}strip(t=!0){let e=this.clone();return e.spec.strip=t,e}describe(){const t=this.clone(),{label:e,meta:r}=t.spec;return{meta:r,label:e,type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(t=>({name:t.OPTIONS.name,params:t.OPTIONS.params})).filter((t,e,r)=>r.findIndex(e=>e.name===t.name)===e)}}}q.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])q.prototype[t+"At"]=function(e,r,n={}){const{parent:i,parentPath:o,schema:s}=I(this,e,r,n.context);return s[t](i&&i[o],N({},n,{parent:i,path:e}))};for(const t of["equals","is"])q.prototype[t]=q.prototype.oneOf;for(const t of["not","nope"])q.prototype[t]=q.prototype.notOneOf;q.prototype.optional=q.prototype.notRequired;const B=q;var V=B;function z(){return new B}z.prototype=B.prototype;var $=t=>null==t;function H(){return new W}class W extends q{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform((function(t){if(!this.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t}))})}_typeCheck(t){return t instanceof Boolean&&(t=t.valueOf()),"boolean"==typeof t}isTrue(t=y.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test:t=>$(t)||!0===t})}isFalse(t=y.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test:t=>$(t)||!1===t})}}H.prototype=W.prototype;let Z=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,J=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,G=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,K=t=>$(t)||t===t.trim(),X={}.toString();function Y(){return new Q}class Q extends q{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform((function(t){if(this.isType(t))return t;if(Array.isArray(t))return t;const e=null!=t&&t.toString?t.toString():t;return e===X?t:e}))})}_typeCheck(t){return t instanceof String&&(t=t.valueOf()),"string"==typeof t}_isPresent(t){return super._isPresent(t)&&!!t.length}length(t,e=h.length){return this.test({message:e,name:"length",exclusive:!0,params:{length:t},test(e){return $(e)||e.length===this.resolve(t)}})}min(t,e=h.min){return this.test({message:e,name:"min",exclusive:!0,params:{min:t},test(e){return $(e)||e.length>=this.resolve(t)}})}max(t,e=h.max){return this.test({name:"max",exclusive:!0,message:e,params:{max:t},test(e){return $(e)||e.length<=this.resolve(t)}})}matches(t,e){let r,n,i=!1;return e&&("object"==typeof e?({excludeEmptyString:i=!1,message:r,name:n}=e):r=e),this.test({name:n||"matches",message:r||h.matches,params:{regex:t},test:e=>$(e)||""===e&&i||-1!==e.search(t)})}email(t=h.email){return this.matches(Z,{name:"email",message:t,excludeEmptyString:!0})}url(t=h.url){return this.matches(J,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=h.uuid){return this.matches(G,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>null===t?"":t)}trim(t=h.trim){return this.transform(t=>null!=t?t.trim():t).test({message:t,name:"trim",test:K})}lowercase(t=h.lowercase){return this.transform(t=>$(t)?t:t.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,test:t=>$(t)||t===t.toLowerCase()})}uppercase(t=h.uppercase){return this.transform(t=>$(t)?t:t.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,test:t=>$(t)||t===t.toUpperCase()})}}function tt(){return new et}Y.prototype=Q.prototype;class et extends q{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform((function(t){let e=t;if("string"==typeof e){if(e=e.replace(/\s/g,""),""===e)return NaN;e=+e}return this.isType(e)?e:parseFloat(e)}))})}_typeCheck(t){return t instanceof Number&&(t=t.valueOf()),"number"==typeof t&&!(t=>t!=+t)(t)}min(t,e=v.min){return this.test({message:e,name:"min",exclusive:!0,params:{min:t},test(e){return $(e)||e>=this.resolve(t)}})}max(t,e=v.max){return this.test({message:e,name:"max",exclusive:!0,params:{max:t},test(e){return $(e)||e<=this.resolve(t)}})}lessThan(t,e=v.lessThan){return this.test({message:e,name:"max",exclusive:!0,params:{less:t},test(e){return $(e)||e<this.resolve(t)}})}moreThan(t,e=v.moreThan){return this.test({message:e,name:"min",exclusive:!0,params:{more:t},test(e){return $(e)||e>this.resolve(t)}})}positive(t=v.positive){return this.moreThan(0,t)}negative(t=v.negative){return this.lessThan(0,t)}integer(t=v.integer){return this.test({name:"integer",message:t,test:t=>$(t)||Number.isInteger(t)})}truncate(){return this.transform(t=>$(t)?t:0|t)}round(t){var e;let r=["ceil","floor","round","trunc"];if("trunc"===(t=(null==(e=t)?void 0:e.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(t.toLowerCase()))throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(e=>$(e)?e:Math[t](e))}}tt.prototype=et.prototype;var rt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let nt=new Date("");function it(){return new ot}class ot extends q{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform((function(t){return this.isType(t)?t:(t=function(t){var e,r,n=[1,4,5,6,7,10,11],i=0;if(r=rt.exec(t)){for(var o,s=0;o=n[s];++s)r[o]=+r[o]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,void 0!==r[8]&&""!==r[8]||void 0!==r[9]&&""!==r[9]?("Z"!==r[8]&&void 0!==r[9]&&(i=60*r[10]+r[11],"+"===r[9]&&(i=0-i)),e=Date.UTC(r[1],r[2],r[3],r[4],r[5]+i,r[6],r[7])):e=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7])}else e=Date.parse?Date.parse(t):NaN;return e}(t),isNaN(t)?nt:new Date(t))}))})}_typeCheck(t){return e=t,"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(t.getTime());var e}prepareParam(t,e){let r;if(R.isRef(t))r=t;else{let n=this.cast(t);if(!this._typeCheck(n))throw new TypeError(`\`${e}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(t,e=m.min){let r=this.prepareParam(t,"min");return this.test({message:e,name:"min",exclusive:!0,params:{min:t},test(t){return $(t)||t>=this.resolve(r)}})}max(t,e=m.max){let r=this.prepareParam(t,"max");return this.test({message:e,name:"max",exclusive:!0,params:{max:t},test(t){return $(t)||t<=this.resolve(r)}})}}ot.INVALID_DATE=nt,it.prototype=ot.prototype,it.INVALID_DATE=nt;var st=r(52),at=r.n(st),ut=r(102),ct=r.n(ut),lt=r(103),pt=r.n(lt),ft=r(104),dt=r.n(ft);function ht(t,e){let r=1/0;return t.some((t,n)=>{var i;if(-1!==(null==(i=e.path)?void 0:i.indexOf(t)))return r=n,!0}),r}function vt(t){return(e,r)=>ht(t,e)-ht(t,r)}function mt(){return(mt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}let yt=t=>"[object Object]"===Object.prototype.toString.call(t);const gt=vt([]);class bt extends q{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=gt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform((function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null})),t&&this.shape(t)})}_typeCheck(t){return yt(t)||"function"==typeof t}_cast(t,e={}){var r;let n=super._cast(t,e);if(void 0===n)return this.getDefault();if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=e.stripUnknown)?r:this.spec.noUnknown,s=this._nodes.concat(Object.keys(n).filter(t=>-1===this._nodes.indexOf(t))),a={},u=mt({},e,{parent:a,__validating:e.__validating||!1}),c=!1;for(const t of s){let r=i[t],s=x()(n,t);if(r){let i,o=n[t];u.path=(e.path?e.path+".":"")+t,r=r.resolve({value:o,context:e.context,parent:a});let s="spec"in r?r.spec:void 0,l=null==s?void 0:s.strict;if(null==s?void 0:s.strip){c=c||t in n;continue}i=e.__validating&&l?n[t]:r.cast(n[t],u),void 0!==i&&(a[t]=i)}else s&&!o&&(a[t]=n[t]);a[t]!==n[t]&&(c=!0)}return c?a:n}_validate(t,e={},r){let n=[],{sync:i,from:o=[],originalValue:s=t,abortEarly:a=this.spec.abortEarly,recursive:u=this.spec.recursive}=e;o=[{schema:this,value:s},...o],e.__validating=!0,e.originalValue=s,e.from=o,super._validate(t,e,(t,c)=>{if(t){if(!E.isError(t)||a)return void r(t,c);n.push(t)}if(!u||!yt(c))return void r(n[0]||null,c);s=s||c;let l=this._nodes.map(t=>(r,n)=>{let i=-1===t.indexOf(".")?(e.path?e.path+".":"")+t:`${e.path||""}["${t}"]`,a=this.fields[t];a&&"validate"in a?a.validate(c[t],mt({},e,{path:i,from:o,strict:!0,parent:c,originalValue:s[t]}),n):n(null)});S({sync:i,tests:l,value:c,errors:n,endEarly:a,sort:this._sortErrors,path:e.path},r)})}clone(t){const e=super.clone(t);return e.fields=mt({},this.fields),e._nodes=this._nodes,e._excludedEdges=this._excludedEdges,e._sortErrors=this._sortErrors,e}concat(t){let e=super.concat(t),r=e.fields;for(let[t,e]of Object.entries(this.fields)){const n=r[t];void 0===n?r[t]=e:n instanceof q&&e instanceof q&&(r[t]=e.concat(n))}return e.withMutation(()=>e.shape(r,this._excludedEdges))}getDefaultFromShape(){let t={};return this._nodes.forEach(e=>{const r=this.fields[e];t[e]="default"in r?r.getDefault():void 0}),t}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(t,e=[]){let r=this.clone(),n=Object.assign(r.fields,t);return r.fields=n,r._sortErrors=vt(Object.keys(n)),e.length&&(Array.isArray(e[0])||(e=[e]),r._excludedEdges=[...r._excludedEdges,...e]),r._nodes=function(t,e=[]){let r=[],n=new Set,i=new Set(e.map(([t,e])=>`${t}-${e}`));function o(t,e){let o=Object(D.split)(t)[0];n.add(o),i.has(`${e}-${o}`)||r.push([e,o])}for(const e in t)if(x()(t,e)){let r=t[e];n.add(e),R.isRef(r)&&r.isSibling?o(r.path,e):O(r)&&"deps"in r&&r.deps.forEach(t=>o(t,e))}return dt.a.array(Array.from(n),r).reverse()}(n,r._excludedEdges),r}pick(t){const e={};for(const r of t)this.fields[r]&&(e[r]=this.fields[r]);return this.clone().withMutation(t=>(t.fields={},t.shape(e)))}omit(t){const e=this.clone(),r=e.fields;e.fields={};for(const e of t)delete r[e];return e.withMutation(()=>e.shape(r))}from(t,e,r){let n=Object(D.getter)(t,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,t)&&(o=mt({},i),r||delete o[t],o[e]=n(i)),o})}noUnknown(t=!0,e=g.noUnknown){"string"==typeof t&&(e=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:e,test(e){if(null==e)return!0;const r=function(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter(t=>-1===r.indexOf(t))}(this.schema,e);return!t||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,e=g.noUnknown){return this.noUnknown(!t,e)}transformKeys(t){return this.transform(e=>e&&pt()(e,(e,r)=>t(r)))}camelCase(){return this.transformKeys(ct.a)}snakeCase(){return this.transformKeys(at.a)}constantCase(){return this.transformKeys(t=>at()(t).toUpperCase())}describe(){let t=super.describe();return t.fields=A()(this.fields,t=>t.describe()),t}}function wt(t){return new bt(t)}function _t(){return(_t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function xt(t){return new Ot(t)}wt.prototype=bt.prototype;class Ot extends q{constructor(t){super({type:"array"}),this.innerType=void 0,this.innerType=t,this.withMutation(()=>{this.transform((function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null}))})}_typeCheck(t){return Array.isArray(t)}get _subType(){return this.innerType}_cast(t,e){const r=super._cast(t,e);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1;const i=r.map((t,r)=>{const i=this.innerType.cast(t,_t({},e,{path:`${e.path||""}[${r}]`}));return i!==t&&(n=!0),i});return n?i:r}_validate(t,e={},r){var n,i;let o=[],s=e.sync,a=e.path,u=this.innerType,c=null!=(n=e.abortEarly)?n:this.spec.abortEarly,l=null!=(i=e.recursive)?i:this.spec.recursive,p=null!=e.originalValue?e.originalValue:t;super._validate(t,e,(t,n)=>{if(t){if(!E.isError(t)||c)return void r(t,n);o.push(t)}if(!l||!u||!this._typeCheck(n))return void r(o[0]||null,n);p=p||n;let i=new Array(n.length);for(let t=0;t<n.length;t++){let r=n[t],o=`${e.path||""}[${t}]`,s=_t({},e,{path:o,strict:!0,parent:n,index:t,originalValue:p[t]});i[t]=(t,e)=>u.validate(r,s,e)}S({sync:s,path:a,value:n,errors:o,endEarly:c,tests:i},r)})}clone(t){const e=super.clone(t);return e.innerType=this.innerType,e}concat(t){let e=super.concat(t);return e.innerType=this.innerType,t.innerType&&(e.innerType=e.innerType?e.innerType.concat(t.innerType):t.innerType),e}of(t){let e=this.clone();if(!O(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+f(t));return e.innerType=t,e}length(t,e=b.length){return this.test({message:e,name:"length",exclusive:!0,params:{length:t},test(e){return $(e)||e.length===this.resolve(t)}})}min(t,e){return e=e||b.min,this.test({message:e,name:"min",exclusive:!0,params:{min:t},test(e){return $(e)||e.length>=this.resolve(t)}})}max(t,e){return e=e||b.max,this.test({message:e,name:"max",exclusive:!0,params:{max:t},test(e){return $(e)||e.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,e)=>this._typeCheck(t)?t:null==e?[]:[].concat(e))}compact(t){let e=t?(e,r,n)=>!t(e,r,n):t=>!!t;return this.transform(t=>null!=t?t.filter(e):t)}describe(){let t=super.describe();return this.innerType&&(t.innerType=this.innerType.describe()),t}nullable(t=!0){return super.nullable(t)}defined(){return super.defined()}required(t){return super.required(t)}}function jt(t){return new Tt(t)}xt.prototype=Ot.prototype;class Tt{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.__inputType=void 0,this.__outputType=void 0,this._resolve=(t,e={})=>{let r=this.builder(t,e);if(!O(r))throw new TypeError("lazy() functions must return a valid schema");return r.resolve(e)},this.builder=t}resolve(t){return this._resolve(t.value,t)}cast(t,e){return this._resolve(t,e).cast(t,e)}validate(t,e,r){return this._resolve(t,e).validate(t,e,r)}validateSync(t,e){return this._resolve(t,e).validateSync(t,e)}validateAt(t,e,r){return this._resolve(e,r).validateAt(t,e,r)}validateSyncAt(t,e,r){return this._resolve(e,r).validateSyncAt(t,e,r)}describe(){return null}isValid(t,e){return this._resolve(t,e).isValid(t,e)}isValidSync(t,e){return this._resolve(t,e).isValidSync(t,e)}}function kt(t){Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(r=>{w[e][r]=t[e][r]})})}function Et(t,e,r){if(!t||!O(t.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!=typeof e)throw new TypeError("A Method name must be provided");if("function"!=typeof r)throw new TypeError("Method function must be provided");t.prototype[e]=r}}]); -
TabularUnified trunkrs-for-woocommerce/trunk/includes/wc-internal/trunkrs-order.php ¶
r2683954 r2750706 8 8 public const TYCHE_DELIVERY_DATE_PREFIX = '_orddd'; 9 9 public const TYCHE_DELIVERY_DATE_TIMESTAMP_POSTFIX = 'timestamp'; 10 public const YITH_CARRIER_NAME_META = 'ywcdd_order_carrier';11 10 public const YITH_DELIVER_DATE_META = 'ywcdd_order_delivery_date'; 12 11 public const YITH_SHIPPING_DATE_META = 'ywcdd_order_shipping_date'; 13 public const YITH_TIMESLOT_FROM_META = 'ywcdd_order_slot_from';14 public const YITH_TIMESLOT_TO_META = 'ywcdd_order_slot_to';15 12 public const SELF_DELIVERY_DATE_META = '_tr_delivery_date_ts'; 16 13 … … 161 158 private function setDeliveryDate() { 162 159 $dateValue = TRUNKRS_WC_Utils::parse8601($this->deliveryDate); 160 $dateValue->setTime(12, 0, 0); 163 161 164 162 $tycheMeta = $this->getTychePluginMeta(); … … 175 173 $dateString = $dateValue->format('Y-m-d'); 176 174 177 update_post_meta($this->order->get_id(), self::YITH_CARRIER_NAME_META, 'Trunkrs');178 175 update_post_meta($this->order->get_id(), self::YITH_DELIVER_DATE_META, $dateString); 179 176 update_post_meta($this->order->get_id(), self::YITH_SHIPPING_DATE_META, $dateString); 180 update_post_meta($this->order->get_id(), self::YITH_TIMESLOT_FROM_META, '17:00');181 update_post_meta($this->order->get_id(), self::YITH_TIMESLOT_TO_META, '22:00');182 177 } 183 178 -
TabularUnified trunkrs-for-woocommerce/trunk/readme.txt ¶
r2724645 r2750706 4 4 Requires at least: 3.6 & WooCommerce 3.0+ 5 5 Tested up to: 5.9 6 Stable tag: 1.2. 86 Stable tag: 1.2.9 7 7 Requires PHP: 7.1 8 8 License: GPLv3 … … 42 42 == Changelog == 43 43 44 = 1.2. 8=45 Fixed a bug which prevented the creation of manual orders for Trunkrs in WooCommerce. 44 = 1.2.9 = 45 - Fixes an issue where different server times could yield a delivery date of yesterday on the Tyche delivery date plugin 46 46 47 47 = 1.2.6 = -
TabularUnified trunkrs-for-woocommerce/trunk/trunkrs-woocommerce.php ¶
r2724645 r2750706 6 6 * Author: Trunkrs 7 7 * Author URI: https://trunkrs.nl 8 * Version: 1.2. 88 * Version: 1.2.9 9 9 * Requires at least: 3.6 & WooCommerce 3.0+ 10 10 * Requires PHP: 7.1 … … 24 24 * @var string The semver version of the plugin. 25 25 */ 26 public $version = '1.2. 6';26 public $version = '1.2.9'; 27 27 28 28 /**
Note: See TracChangeset
for help on using the changeset viewer.