UNPKG

@nutrient-sdk/viewer

Version:

View and annotate PDF files in your web app. Full support for mobile and desktop. Runs in the browser using WASM.

13 lines 190 kB
/*! * Nutrient Web SDK 1.17.0 (https://www.nutrient.io/sdk/web) * * Copyright (c) 2016-2026 PSPDFKit GmbH. All rights reserved. * * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT. * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. * This notice may not be removed from this file. * * PSPDFKit uses several open source third-party components: https://www.nutrient.io/legal/acknowledgements/web-acknowledgements/ */ "use strict";(globalThis.webpackChunkNutrientViewer=globalThis.webpackChunkNutrientViewer||[]).push([[329],{20853(t,e,n){n.d(e,{default:()=>o});var r=n(37737),i=n.n(r);function o(){return i()('/*!\n * Nutrient Web SDK 1.17.0 (https://www.nutrient.io/sdk/web)\n *\n * Copyright (c) 2016-2026 PSPDFKit GmbH. All rights reserved.\n *\n * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW\n * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.\n * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.\n * This notice may not be removed from this file.\n *\n * PSPDFKit uses several open source third-party components: https://www.nutrient.io/legal/acknowledgements/web-acknowledgements/\n */(()=>{var t={1300(t,e,n){"use strict";var r=n(1711),i=n(9253),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},8777(t,e,n){"use strict";var r=n(7060),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},6335(t,e,n){"use strict";var r=n(7963),i=n(3132),o=n(2676),a=function(t){return function(e,n,a){var s=r(e),u=o(s);if(0===u)return!t&&-1;var c,l=i(a,u);if(t&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4806(t,e,n){"use strict";var r=n(5942);t.exports=r([].slice)},7122(t,e,n){"use strict";var r=n(5942),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},2666(t,e,n){"use strict";var r=n(3199),i=n(8133),o=n(8901),a=n(2839);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},7481(t,e,n){"use strict";var r=n(5322),i=n(2839),o=n(1966);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},1966(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9422(t,e,n){"use strict";var r=n(1711),i=n(2839),o=n(6437),a=n(2227);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&o(n,c,s),s.global)u?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},2227(t,e,n){"use strict";var r=n(8950),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},5322(t,e,n){"use strict";var r=n(6101);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},8269(t,e,n){"use strict";var r=n(8950),i=n(7060),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},7737(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7670(t,e,n){"use strict";var r=n(5921);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},2491(t,e,n){"use strict";var r=n(8765);t.exports="NODE"===r},5921(t,e,n){"use strict";var r=n(8950).navigator,i=r&&r.userAgent;t.exports=i?String(i):""},7617(t,e,n){"use strict";var r,i,o=n(8950),a=n(5921),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\\/(\\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\\/(\\d+)/))&&(i=+r[1]),t.exports=i},8765(t,e,n){"use strict";var r=n(8950),i=n(5921),o=n(7122),a=function(t){return i.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},6976(t,e,n){"use strict";var r=n(8950),i=n(8901).f,o=n(7481),a=n(9422),s=n(2227),u=n(2666),c=n(2302);t.exports=function(t,e){var n,l,f,h,p,d=t.target,m=t.global,_=t.stat;if(n=m?r:_?r[d]||s(d,{}):r[d]&&r[d].prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(p=i(n,l))&&p.value:n[l],!c(m?l:d+(_?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,t)}}},6101(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},5279(t,e,n){"use strict";var r=n(7926),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},1574(t,e,n){"use strict";var r=n(286),i=n(1300),o=n(7926),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},7926(t,e,n){"use strict";var r=n(6101);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},7987(t,e,n){"use strict";var r=n(7926),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},5708(t,e,n){"use strict";var r=n(5322),i=n(3199),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},286(t,e,n){"use strict";var r=n(7122),i=n(5942);t.exports=function(t){if("Function"===r(t))return i(t)}},5942(t,e,n){"use strict";var r=n(7926),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},6109(t,e,n){"use strict";var r=n(8950),i=n(1711);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},1104(t,e,n){"use strict";var r=n(1300),i=n(2339);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},8950(t){"use strict";var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof globalThis&&globalThis)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()},3199(t,e,n){"use strict";var r=n(5942),i=n(3815),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},6159(t){"use strict";t.exports={}},8871(t,e,n){"use strict";var r=n(6109);t.exports=r("document","documentElement")},1539(t,e,n){"use strict";var r=n(5322),i=n(6101),o=n(8269);t.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},2389(t,e,n){"use strict";var r=n(5942),i=n(6101),o=n(7122),a=Object,s=r("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?s(t,""):a(t)}:a},6960(t,e,n){"use strict";var r=n(5942),i=n(1711),o=n(5531),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},8751(t,e,n){"use strict";var r,i,o,a=n(3184),s=n(8950),u=n(7060),c=n(7481),l=n(3199),f=n(5531),h=n(4741),p=n(6159),d="Object already initialized",m=s.TypeError,_=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new _);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw new m(d);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var g=h("state");p[g]=!0,r=function(t,e){if(l(t,g))throw new m(d);return e.facade=t,c(t,g,e),e},i=function(t){return l(t,g)?t[g]:{}},o=function(t){return l(t,g)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}}}},1711(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2302(t,e,n){"use strict";var r=n(6101),i=n(1711),o=/#|\\.prototype\\./,a=function(t,e){var n=u[s(t)];return n===l||n!==c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},2339(t){"use strict";t.exports=function(t){return null==t}},7060(t,e,n){"use strict";var r=n(1711);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},8377(t){"use strict";t.exports=!1},2411(t,e,n){"use strict";var r=n(6109),i=n(1711),o=n(1019),a=n(1514),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},2676(t,e,n){"use strict";var r=n(5664);t.exports=function(t){return r(t.length)}},6437(t,e,n){"use strict";var r=n(5942),i=n(6101),o=n(1711),a=n(3199),s=n(5322),u=n(5708).CONFIGURABLE,c=n(6960),l=n(8751),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,m=r("".slice),_=r("".replace),y=r([].join),g=s&&!i(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+_(p(e),/^Symbol\\(([^)]*)\\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=y(v,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return o(this)&&h(this).source||c(this)},"toString")},395(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},2839(t,e,n){"use strict";var r=n(5322),i=n(1539),o=n(532),a=n(8777),s=n(6355),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},8901(t,e,n){"use strict";var r=n(5322),i=n(7987),o=n(4695),a=n(1966),s=n(7963),u=n(6355),c=n(3199),l=n(1539),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},6106(t,e,n){"use strict";var r=n(4658),i=n(7737).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},3375(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1019(t,e,n){"use strict";var r=n(5942);t.exports=r({}.isPrototypeOf)},4658(t,e,n){"use strict";var r=n(5942),i=n(3199),o=n(7963),a=n(6335).indexOf,s=n(6159),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},4695(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2592(t,e,n){"use strict";var r=n(7987),i=n(1711),o=n(7060),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can\'t convert object to primitive value")}},8133(t,e,n){"use strict";var r=n(6109),i=n(5942),o=n(6106),a=n(3375),s=n(8777),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?u(e,n(t)):e}},7460(t,e,n){"use strict";var r=n(2339),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can\'t call method on "+t);return t}},9694(t,e,n){"use strict";var r,i=n(8950),o=n(5279),a=n(1711),s=n(8765),u=n(5921),c=n(4806),l=n(1214),f=i.Function,h=/MSIE .\\./.test(u)||"BUN"===s&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));t.exports=function(t,e){var n=e?2:1;return h?function(r,i){var s=l(arguments.length,1)>n,u=a(r)?r:f(r),h=s?c(arguments,n):[],p=s?function(){o(u,this,h)}:u;return e?t(p,i):t(p)}:t}},4741(t,e,n){"use strict";var r=n(2363),i=n(614),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5531(t,e,n){"use strict";var r=n(8377),i=n(8950),o=n(2227),a="__core-js_shared__",s=t.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.47.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2363(t,e,n){"use strict";var r=n(5531);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},8225(t,e,n){"use strict";var r=n(7617),i=n(6101),o=n(8950).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},2011(t,e,n){"use strict";var r,i,o,a,s=n(8950),u=n(5279),c=n(1574),l=n(1711),f=n(3199),h=n(6101),p=n(8871),d=n(4806),m=n(8269),_=n(1214),y=n(7670),g=n(2491),v=s.setImmediate,w=s.clearImmediate,b=s.process,S=s.Dispatch,O=s.Function,I=s.MessageChannel,E=s.String,A=0,x={},D="onreadystatechange";h(function(){r=s.location});var F=function(t){if(f(x,t)){var e=x[t];delete x[t],e()}},T=function(t){return function(){F(t)}},M=function(t){F(t.data)},P=function(t){s.postMessage(E(t),r.protocol+"//"+r.host)};v&&w||(v=function(t){_(arguments.length,1);var e=l(t)?t:O(t),n=d(arguments,1);return x[++A]=function(){u(e,void 0,n)},i(A),A},w=function(t){delete x[t]},g?i=function(t){b.nextTick(T(t))}:S&&S.now?i=function(t){S.now(T(t))}:I&&!y?(a=(o=new I).port2,o.port1.onmessage=M,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(P)?(i=P,s.addEventListener("message",M,!1)):i=D in m("script")?function(t){p.appendChild(m("script"))[D]=function(){p.removeChild(this),F(t)}}:function(t){setTimeout(T(t),0)}),t.exports={set:v,clear:w}},3132(t,e,n){"use strict";var r=n(3817),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},7963(t,e,n){"use strict";var r=n(2389),i=n(7460);t.exports=function(t){return r(i(t))}},3817(t,e,n){"use strict";var r=n(395);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},5664(t,e,n){"use strict";var r=n(3817),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},3815(t,e,n){"use strict";var r=n(7460),i=Object;t.exports=function(t){return i(r(t))}},3615(t,e,n){"use strict";var r=n(7987),i=n(7060),o=n(2411),a=n(1104),s=n(2592),u=n(1541),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw new c("Can\'t convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6355(t,e,n){"use strict";var r=n(3615),i=n(2411);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},9253(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},614(t,e,n){"use strict";var r=n(5942),i=0,o=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},1514(t,e,n){"use strict";var r=n(8225);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},532(t,e,n){"use strict";var r=n(5322),i=n(6101);t.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},1214(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},3184(t,e,n){"use strict";var r=n(8950),i=n(1711),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},1541(t,e,n){"use strict";var r=n(8950),i=n(2363),o=n(3199),a=n(614),s=n(8225),u=n(1514),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(c,t)?c[t]:f("Symbol."+t)),l[t]}},5282(t,e,n){"use strict";var r=n(6976),i=n(8950),o=n(2011).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},562(t,e,n){"use strict";n(5282),n(2843)},2843(t,e,n){"use strict";var r=n(6976),i=n(8950),o=n(2011).set,a=n(9694),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},3265(){},5920(t){t.exports="6c25eb5dab71d66d"},1211(t){t.exports="eeae1b93229f8200"}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{default:()=>bt});n(562);"object"==typeof window&&(window._babelPolyfill=!1);const e=function t(e){let n;return n=e instanceof Error?e:new Error(e),Object.setPrototypeOf(n,t.prototype),n};e.prototype=Object.create(Error.prototype,{name:{value:"PSPDFKitError",enumerable:!1}});const r=e;function i(t,e){if(!t)throw new r(`Assertion failed: ${e||"Condition not met"}\\n\\nFor further assistance, please go to: https://www.nutrient.io/support/request`)}function o(t){console.log(t)}function a(){console.warn(...arguments)}function s(t){console.error(t)}["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",\'[tabindex]:not([tabindex^="-"])\'].join(",");function u(t){return u="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},u(t)}function c(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}function l(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}new WeakMap;const{entries:f,setPrototypeOf:h,isFrozen:p,getPrototypeOf:d,getOwnPropertyDescriptor:m}=Object;let{freeze:_,seal:y,create:g}=Object,{apply:v,construct:w}="undefined"!=typeof Reflect&&Reflect;_||(_=function(t){return t}),y||(y=function(t){return t}),v||(v=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t.apply(e,r)}),w||(w=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const b=$(Array.prototype.forEach),S=$(Array.prototype.lastIndexOf),O=$(Array.prototype.pop),I=$(Array.prototype.push),E=$(Array.prototype.splice),A=Array.isArray,x=$(String.prototype.toLowerCase),D=$(String.prototype.toString),F=$(String.prototype.match),T=$(String.prototype.replace),M=$(String.prototype.indexOf),P=$(String.prototype.trim),k=$(Number.prototype.toString),z=$(Boolean.prototype.toString),j="undefined"==typeof BigInt?null:$(BigInt.prototype.toString),C="undefined"==typeof Symbol?null:$(Symbol.prototype.toString),N=$(Object.prototype.hasOwnProperty),R=$(Object.prototype.toString),L=$(RegExp.prototype.test),U=(B=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return w(B,e)});var B;function $(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return v(t,e,r)}}function q(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;if(h&&h(t,null),!A(e))return t;let r=e.length;for(;r--;){let i=e[r];if("string"==typeof i){const t=n(i);t!==i&&(p(e)||(e[r]=t),i=t)}t[i]=!0}return t}function H(t){for(let e=0;e<t.length;e++){N(t,e)||(t[e]=null)}return t}function W(t){const e=g(null);for(const[n,r]of f(t)){N(t,n)&&(A(r)?e[n]=H(r):r&&"object"==typeof r&&r.constructor===Object?e[n]=W(r):e[n]=r)}return e}function J(t,e){for(;null!==t;){const n=m(t,e);if(n){if(n.get)return $(n.get);if("function"==typeof n.value)return $(n.value)}t=d(t)}return function(){return null}}const K=_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G=_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Y=_(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),X=_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=_(["#text"]),tt=_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),et=_(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nt=_(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rt=_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),it=y(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm),ot=y(/<%[\\w\\W]*|[\\w\\W]*%>/gm),at=y(/\\$\\{[\\w\\W]*/gm),st=y(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/),ut=y(/^aria-[\\-\\w]+$/),ct=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i),lt=y(/^(?:\\w+script|data):/i),ft=y(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g),ht=y(/^html$/i),pt=y(/^[a-z][.\\w]*(-[.\\w]+)+$/i);var dt=Object.freeze({__proto__:null,ARIA_ATTR:ut,ATTR_WHITESPACE:ft,CUSTOM_ELEMENT:pt,DATA_ATTR:st,DOCTYPE_NAME:ht,ERB_EXPR:ot,IS_ALLOWED_URI:ct,IS_SCRIPT_OR_DATA:lt,MUSTACHE_EXPR:it,TMPLIT_EXPR:at});const mt=1,_t=3,yt=7,gt=8,vt=9,wt=function(){return"undefined"==typeof window?null:window};var bt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt();const n=e=>t(e);if(n.version="3.4.2",n.removed=[],!e||!e.document||e.document.nodeType!==vt||!e.Element)return n.isSupported=!1,n;let{document:r}=e;const i=r,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:u,Element:c,NodeFilter:l,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:d,trustedTypes:m}=e,y=c.prototype,v=J(y,"cloneNode"),w=J(y,"remove"),B=J(y,"nextSibling"),$=J(y,"childNodes"),H=J(y,"parentNode");if("function"==typeof s){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let it,ot="";const{implementation:at,createNodeIterator:st,createDocumentFragment:ut,getElementsByTagName:lt}=r,{importNode:ft}=i;let pt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof f&&"function"==typeof H&&at&&void 0!==at.createHTMLDocument;const{MUSTACHE_EXPR:bt,ERB_EXPR:St,TMPLIT_EXPR:Ot,DATA_ATTR:It,ARIA_ATTR:Et,IS_SCRIPT_OR_DATA:At,ATTR_WHITESPACE:xt,CUSTOM_ELEMENT:Dt}=dt;let{IS_ALLOWED_URI:Ft}=dt,Tt=null;const Mt=q({},[...K,...V,...G,...X,...Q]);let Pt=null;const kt=q({},[...tt,...et,...nt,...rt]);let zt=Object.seal(g(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),jt=null,Ct=null;const Nt=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Rt=!0,Lt=!0,Ut=!1,Bt=!0,$t=!1,qt=!0,Ht=!1,Wt=!1,Jt=!1,Kt=!1,Vt=!1,Gt=!1,Yt=!0,Xt=!1;const Zt="user-content-";let Qt=!0,te=!1,ee={},ne=null;const re=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ie=null;const oe=q({},["audio","video","img","source","image","track"]);let ae=null;const se=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",ce="http://www.w3.org/2000/svg",le="http://www.w3.org/1999/xhtml";let fe=le,he=!1,pe=null;const de=q({},[ue,ce,le],D);let me=q({},["mi","mo","mn","ms","mtext"]),_e=q({},["annotation-xml"]);const ye=q({},["title","style","font","a","script"]);let ge=null;const ve=["application/xhtml+xml","text/html"];let we=null,be=null;const Se=r.createElement("form"),Oe=function(t){return t instanceof RegExp||t instanceof Function},Ie=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(be&&be===t)return;t&&"object"==typeof t||(t={}),t=W(t),ge=-1===ve.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,we="application/xhtml+xml"===ge?D:x,Tt=N(t,"ALLOWED_TAGS")&&A(t.ALLOWED_TAGS)?q({},t.ALLOWED_TAGS,we):Mt,Pt=N(t,"ALLOWED_ATTR")&&A(t.ALLOWED_ATTR)?q({},t.ALLOWED_ATTR,we):kt,pe=N(t,"ALLOWED_NAMESPACES")&&A(t.ALLOWED_NAMESPACES)?q({},t.ALLOWED_NAMESPACES,D):de,ae=N(t,"ADD_URI_SAFE_ATTR")&&A(t.ADD_URI_SAFE_ATTR)?q(W(se),t.ADD_URI_SAFE_ATTR,we):se,ie=N(t,"ADD_DATA_URI_TAGS")&&A(t.ADD_DATA_URI_TAGS)?q(W(oe),t.ADD_DATA_URI_TAGS,we):oe,ne=N(t,"FORBID_CONTENTS")&&A(t.FORBID_CONTENTS)?q({},t.FORBID_CONTENTS,we):re,jt=N(t,"FORBID_TAGS")&&A(t.FORBID_TAGS)?q({},t.FORBID_TAGS,we):W({}),Ct=N(t,"FORBID_ATTR")&&A(t.FORBID_ATTR)?q({},t.FORBID_ATTR,we):W({}),ee=!!N(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?W(t.USE_PROFILES):t.USE_PROFILES),Rt=!1!==t.ALLOW_ARIA_ATTR,Lt=!1!==t.ALLOW_DATA_ATTR,Ut=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Bt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,$t=t.SAFE_FOR_TEMPLATES||!1,qt=!1!==t.SAFE_FOR_XML,Ht=t.WHOLE_DOCUMENT||!1,Kt=t.RETURN_DOM||!1,Vt=t.RETURN_DOM_FRAGMENT||!1,Gt=t.RETURN_TRUSTED_TYPE||!1,Jt=t.FORCE_BODY||!1,Yt=!1!==t.SANITIZE_DOM,Xt=t.SANITIZE_NAMED_PROPS||!1,Qt=!1!==t.KEEP_CONTENT,te=t.IN_PLACE||!1,Ft=function(t){try{return L(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ct,fe="string"==typeof t.NAMESPACE?t.NAMESPACE:le,me=N(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?W(t.MATHML_TEXT_INTEGRATION_POINTS):q({},["mi","mo","mn","ms","mtext"]),_e=N(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?W(t.HTML_INTEGRATION_POINTS):q({},["annotation-xml"]);const e=N(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?W(t.CUSTOM_ELEMENT_HANDLING):g(null);if(zt=g(null),N(e,"tagNameCheck")&&Oe(e.tagNameCheck)&&(zt.tagNameCheck=e.tagNameCheck),N(e,"attributeNameCheck")&&Oe(e.attributeNameCheck)&&(zt.attributeNameCheck=e.attributeNameCheck),N(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(zt.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),$t&&(Lt=!1),Vt&&(Kt=!0),ee&&(Tt=q({},Q),Pt=g(null),!0===ee.html&&(q(Tt,K),q(Pt,tt)),!0===ee.svg&&(q(Tt,V),q(Pt,et),q(Pt,rt)),!0===ee.svgFilters&&(q(Tt,G),q(Pt,et),q(Pt,rt)),!0===ee.mathMl&&(q(Tt,X),q(Pt,nt),q(Pt,rt))),Nt.tagCheck=null,Nt.attributeCheck=null,N(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?Nt.tagCheck=t.ADD_TAGS:A(t.ADD_TAGS)&&(Tt===Mt&&(Tt=W(Tt)),q(Tt,t.ADD_TAGS,we))),N(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?Nt.attributeCheck=t.ADD_ATTR:A(t.ADD_ATTR)&&(Pt===kt&&(Pt=W(Pt)),q(Pt,t.ADD_ATTR,we))),N(t,"ADD_URI_SAFE_ATTR")&&A(t.ADD_URI_SAFE_ATTR)&&q(ae,t.ADD_URI_SAFE_ATTR,we),N(t,"FORBID_CONTENTS")&&A(t.FORBID_CONTENTS)&&(ne===re&&(ne=W(ne)),q(ne,t.FORBID_CONTENTS,we)),N(t,"ADD_FORBID_CONTENTS")&&A(t.ADD_FORBID_CONTENTS)&&(ne===re&&(ne=W(ne)),q(ne,t.ADD_FORBID_CONTENTS,we)),Qt&&(Tt["#text"]=!0),Ht&&q(Tt,["html","head","body"]),Tt.table&&(q(Tt,["tbody"]),delete jt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw U(\'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.\');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw U(\'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.\');it=t.TRUSTED_TYPES_POLICY,ot=it.createHTML("")}else void 0===it&&(it=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(m,o)),null!==it&&"string"==typeof ot&&(ot=it.createHTML(""));_&&_(t),be=t},Ee=q({},[...V,...G,...Y]),Ae=q({},[...X,...Z]),xe=function(t){I(n.removed,{element:t});try{H(t).removeChild(t)}catch(e){w(t)}},De=function(t,e){try{I(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){I(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Kt||Vt)try{xe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Fe=function(t){let e=null,n=null;if(Jt)t="<remove></remove>"+t;else{const e=F(t,/^[\\r\\n\\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ge&&fe===le&&(t=\'<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>\'+t+"</body></html>");const i=it?it.createHTML(t):t;if(fe===le)try{e=(new d).parseFromString(i,ge)}catch(t){}if(!e||!e.documentElement){e=at.createDocument(fe,"template",null);try{e.documentElement.innerHTML=he?ot:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),fe===le?lt.call(e,Ht?"html":"body")[0]:Ht?e.documentElement:o},Te=function(t){return st.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Me=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Pe=function(t){return"function"==typeof u&&t instanceof u};function ke(t,e,r){b(t,t=>{t.call(n,e,r,be)})}const ze=function(t){let e=null;if(ke(pt.beforeSanitizeElements,t,null),Me(t))return xe(t),!0;const r=we(t.nodeName);if(ke(pt.uponSanitizeElement,t,{tagName:r,allowedTags:Tt}),qt&&t.hasChildNodes()&&!Pe(t.firstElementChild)&&L(/<[/\\w!]/g,t.innerHTML)&&L(/<[/\\w!]/g,t.textContent))return xe(t),!0;if(qt&&t.namespaceURI===le&&"style"===r&&Pe(t.firstElementChild))return xe(t),!0;if(t.nodeType===yt)return xe(t),!0;if(qt&&t.nodeType===gt&&L(/<[/\\w]/g,t.data))return xe(t),!0;if(jt[r]||!(Nt.tagCheck instanceof Function&&Nt.tagCheck(r))&&!Tt[r]){if(!jt[r]&&Ne(r)){if(zt.tagNameCheck instanceof RegExp&&L(zt.tagNameCheck,r))return!1;if(zt.tagNameCheck instanceof Function&&zt.tagNameCheck(r))return!1}if(Qt&&!ne[r]){const e=H(t)||t.parentNode,n=$(t)||t.childNodes;if(n&&e){for(let r=n.length-1;r>=0;--r){const i=v(n[r],!0);e.insertBefore(i,B(t))}}}return xe(t),!0}return t instanceof c&&!function(t){let e=H(t);e&&e.tagName||(e={namespaceURI:fe,tagName:"template"});const n=x(t.tagName),r=x(e.tagName);return!!pe[t.namespaceURI]&&(t.namespaceURI===ce?e.namespaceURI===le?"svg"===n:e.namespaceURI===ue?"svg"===n&&("annotation-xml"===r||me[r]):Boolean(Ee[n]):t.namespaceURI===ue?e.namespaceURI===le?"math"===n:e.namespaceURI===ce?"math"===n&&_e[r]:Boolean(Ae[n]):t.namespaceURI===le?!(e.namespaceURI===ce&&!_e[r])&&!(e.namespaceURI===ue&&!me[r])&&!Ae[n]&&(ye[n]||!Ee[n]):!("application/xhtml+xml"!==ge||!pe[t.namespaceURI]))}(t)?(xe(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!L(/<\\/no(script|embed|frames)/i,t.innerHTML)?($t&&t.nodeType===_t&&(e=t.textContent,b([bt,St,Ot],t=>{e=T(e,t," ")}),t.textContent!==e&&(I(n.removed,{element:t.cloneNode()}),t.textContent=e)),ke(pt.afterSanitizeElements,t,null),!1):(xe(t),!0)},je=function(t,e,n){if(Ct[e])return!1;if(Yt&&("id"===e||"name"===e)&&(n in r||n in Se))return!1;const i=Pt[e]||Nt.attributeCheck instanceof Function&&Nt.attributeCheck(e,t);if(Lt&&!Ct[e]&&L(It,e));else if(Rt&&L(Et,e));else if(!i||Ct[e]){if(!(Ne(t)&&(zt.tagNameCheck instanceof RegExp&&L(zt.tagNameCheck,t)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(t))&&(zt.attributeNameCheck instanceof RegExp&&L(zt.attributeNameCheck,e)||zt.attributeNameCheck instanceof Function&&zt.attributeNameCheck(e,t))||"is"===e&&zt.allowCustomizedBuiltInElements&&(zt.tagNameCheck instanceof RegExp&&L(zt.tagNameCheck,n)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(n))))return!1}else if(ae[e]);else if(L(Ft,T(n,xt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==M(n,"data:")||!ie[t]){if(Ut&&!L(At,T(n,xt,"")));else if(n)return!1}else;return!0},Ce=q({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ne=function(t){return!Ce[x(t)]&&L(Dt,t)},Re=function(t){ke(pt.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Me(t))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pt,forceKeepAttr:void 0};let i=e.length;for(;i--;){const o=e[i],{name:a,namespaceURI:s,value:u}=o,c=we(a),l=u;let f="value"===a?l:P(l);if(r.attrName=c,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,ke(pt.uponSanitizeAttribute,t,r),f=r.attrValue,!Xt||"id"!==c&&"name"!==c||0===M(f,Zt)||(De(a,t),f=Zt+f),qt&&L(/((--!?|])>)|<\\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){De(a,t);continue}if("attributename"===c&&F(f,"href")){De(a,t);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){De(a,t);continue}if(!Bt&&L(/\\/>/i,f)){De(a,t);continue}$t&&b([bt,St,Ot],t=>{f=T(f,t," ")});const h=we(t.nodeName);if(je(h,c,f)){if(it&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(h,c)){case"TrustedHTML":f=it.createHTML(f);break;case"TrustedScriptURL":f=it.createScriptURL(f)}if(f!==l)try{s?t.setAttributeNS(s,a,f):t.setAttribute(a,f),Me(t)?xe(t):O(n.removed)}catch(e){De(a,t)}}else De(a,t)}ke(pt.afterSanitizeAttributes,t,null)},Le=function(t){let e=null;const n=Te(t);for(ke(pt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)ke(pt.uponSanitizeShadowNode,e,null),ze(e),Re(e),e.content instanceof a&&Le(e.content);ke(pt.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,c=null;if(he=!t,he&&(t="\\x3c!--\\x3e"),"string"!=typeof t&&!Pe(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return k(t);case"boolean":return z(t);case"bigint":return j?j(t):"0";case"symbol":return C?C(t):"Symbol()";case"undefined":default:return R(t);case"function":case"object":{if(null===t)return R(t);const e=t,n=J(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:R(t)}return R(t)}}}(t)))throw U("dirty is not a string, aborting");if(!n.isSupported)return t;if(Wt||Ie(e),n.removed=[],"string"==typeof t&&(te=!1),te){const e=t.nodeName;if("string"==typeof e){const t=we(e);if(!Tt[t]||jt[t])throw U("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)r=Fe("\\x3c!----\\x3e"),o=r.ownerDocument.importNode(t,!0),o.nodeType===mt&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Kt&&!$t&&!Ht&&-1===t.indexOf("<"))return it&&Gt?it.createHTML(t):t;if(r=Fe(t),!r)return Kt?null:Gt?ot:""}r&&Jt&&xe(r.firstChild);const l=Te(te?t:r);for(;s=l.nextNode();)ze(s),Re(s),s.content instanceof a&&Le(s.content);if(te)return t;if(Kt){if($t){r.normalize();let t=r.innerHTML;b([bt,St,Ot],e=>{t=T(t,e," ")}),r.innerHTML=t}if(Vt)for(c=ut.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Pt.shadowroot||Pt.shadowrootmode)&&(c=ft.call(i,c,!0)),c}let f=Ht?r.outerHTML:r.innerHTML;return Ht&&Tt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&L(ht,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\\n"+f),$t&&b([bt,St,Ot],t=>{f=T(f,t," ")}),it&&Gt?it.createHTML(f):f},n.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Wt=!0},n.clearConfig=function(){be=null,Wt=!1},n.isValidAttribute=function(t,e,n){be||Ie({});const r=we(t),i=we(e);return je(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&I(pt[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=S(pt[t],e);return-1===n?void 0:E(pt[t],n,1)[0]}return O(pt[t])},n.removeHooks=function(t){pt[t]=[]},n.removeAllHooks=function(){pt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();Symbol.for("nutrient.web.trustedTypesPolicy");new Set(["background-color","color","font-family","font-size","font-style","font-weight","text-align","text-decoration"]),new Set(["auto","aqua","black","block","blue","bold","both","bottom","brown","center","collapse","dashed","dotted","fuchsia","gray","green","!important","initial","italic","left","lime","maroon","medium","middle","none","navy","normal","nowrap","olive","pointer","purple","red","right","solid","silver","teal","top","transparent","underline","white","yellow"]);const St=Symbol("Comlink.proxy"),Ot=Symbol("Comlink.endpoint"),It=Symbol("Comlink.releaseProxy"),Et=Symbol("Comlink.finalizer"),At=Symbol("Comlink.thrown"),xt=t=>"object"==typeof t&&null!==t||"function"==typeof t,Dt={canHandle:t=>xt(t)&&t[St],serialize(t){const{port1:e,port2:n}=new MessageChannel;return Tt(t,e),[n,[n]]},deserialize:t=>(t.start(),function(t,e){const n=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const r=n.get(e.id);if(r)try{r(e)}finally{n.delete(e.id)}}),Ct(t,n,[],e)}(t))},Ft=new Map([["proxy",Dt],["throw",{canHandle:t=>xt(t)&&At in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function Tt(t,e=globalThis,n=["*"]){e.addEventListener("message",function r(i){if(!i||!i.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,i.origin))return void console.warn(`Invalid origin \'${i.origin}\' for comlink proxy`);const{id:o,type:a,path:s}=Object.assign({path:[]},i.data),u=(i.data.argumentList||[]).map(Ut);let c;try{const e=s.slice(0,-1).reduce((t,e)=>t[e],t),n=s.reduce((t,e)=>t[e],t);switch(a){case"GET":c=n;break;case"SET":e[s.slice(-1)[0]]=Ut(i.data.value),c=!0;break;case"APPLY":c=n.apply(e,u);break;case"CONSTRUCT":c=function(t){return Object.assign(t,{[St]:!0})}(new n(...u));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;Tt(t,n),c=function(t,e){return Rt.set(t,e),t}(e,[e])}break;case"RELEASE":c=void 0;break;default:return}}catch(t){c={value:t,[At]:0}}Promise.resolve(c).catch(t=>({value:t,[At]:0})).then(n=>{const[i,s]=Lt(n);e.postMessage(Object.assign(Object.assign({},i),{id:o}),s),"RELEASE"===a&&(e.removeEventListener("message",r),Mt(e),Et in t&&"function"==typeof t[Et]&&t[Et]())}).catch(t=>{const[n,r]=Lt({value:new TypeError("Unserializable return value"),[At]:0});e.postMessage(Object.assign(Object.assign({},n),{id:o}),r)})}),e.start&&e.start()}function Mt(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function Pt(t){if(t)throw new Error("Proxy has been released and is not useable")}function kt(t){return Bt(t,new Map,{type:"RELEASE"}).then(()=>{Mt(t)})}const zt=new WeakMap,jt="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(zt.get(t)||0)-1;zt.set(t,e),0===e&&kt(t)});function Ct(t,e,n=[],r=function(){}){let i=!1;const o=new Proxy(r,{get(r,a){if(Pt(i),a===It)return()=>{!function(t){jt&&jt.unregister(t)}(o),kt(t),e.clear(),i=!0};if("then"===a){if(0===n.length)return{then:()=>o};const r=Bt(t,e,{type:"GET",path:n.map(t=>t.toString())}).then(Ut);return r.then.bind(r)}return Ct(t,e,[...n,a])},set(r,o,a){Pt(i);const[s,u]=Lt(a);return Bt(t,e,{type:"SET",path:[...n,o].map(t=>t.toString()),value:s},u).then(Ut)},apply(r,o,a){Pt(i);const s=n[n.length-1];if(s===Ot)return Bt(t,e,{type:"ENDPOINT"}).then(Ut);if("bind"===s)return Ct(t,e,n.slice(0,-1));const[u,c]=Nt(a);return Bt(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:u},c).then(Ut)},construct(r,o){Pt(i);const[a,s]=Nt(o);return Bt(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:a},s).then(Ut)}});return function(t,e){const n=(zt.get(e)||0)+1;zt.set(e,n),jt&&jt.register(t,e,t)}(o,t),o}function Nt(t){const e=t.map(Lt);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))];var n}const Rt=new WeakMap;function Lt(t){for(const[e,n]of Ft)if(n.canHandle(t)){const[r,i]=n.serialize(t);return[{type:"HANDLER",name:e,value:r},i]}return[{type:"RAW",value:t},Rt.get(t)||[]]}function Ut(t){switch(t.type){case"HANDLER":return Ft.get(t.name).deserialize(t.value);case"RAW":return t.value}}function Bt(t,e,n,r){return new Promise(i=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(o,i),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),r)})}const $t="function"==typeof Buffer,qt=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),Ht=(t=>{let e={};return t.forEach((t,n)=>e[t]=n),e})(qt),Wt=/^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/,Jt=String.fromCharCode.bind(String),Kt="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Vt=t=>t.replace(/[^A-Za-z0-9\\+\\/]/g,""),Gt=t=>{let e,n,r,i,o="";const a=t.length%3;for(let a=0;a<t.length;){if((n=t.charCodeAt(a++))>255||(r=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=qt[e>>18&63]+qt[e>>12&63]+qt[e>>6&63]+qt[63&e]}return a?o.slice(0,a-3)+"===".substring(a):o},Yt=t=>{if(t=t.replace(/\\s+/g,""),!Wt.test(t))throw new TypeError("malformed base64.");let e,n,r;t+="==".slice(2-(3&t.length));let i=[];for(let o=0;o<t.length;)e=Ht[t.charAt(o++)]<<18|Ht[t.charAt(o++)]<<12|(n=Ht[t.charAt(o++)])<<6|(r=Ht[t.charAt(o++)]),64===n?i.push(Jt(e>>16&255)):64===r?i.push(Jt(e>>16&255,e>>8&255)):i.push(Jt(e>>16&255,e>>8&255,255&e));return i.join("")},Xt="function"==typeof atob?t=>atob(Vt(t)):$t?t=>Buffer.from(t,"base64").toString("binary"):Yt,Zt=$t?t=>Kt(Buffer.from(t,"base64")):t=>Kt(Xt(t).split("").map(t=>t.charCodeAt(0))),Qt=t=>Zt(te(t)),te=t=>Vt(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),ee=Qt;function ne(t){const e={unitFrom:t.scale.unitFrom,unitTo:t.scale.unitTo,from:Number(t.scale.fromValue),to:Number(t.scale.toValue)};return void 0!==t.scale.fromDescription&&(e.fromDescription=t.scale.fromDescription),void 0!==t.scale.toDescription&&(e.toDescription=t.scale.toDescription),{name:t.name,scale:e,precision:t.precision}}var re=n(5920),ie=n.n(re),oe=n(1211),ae=n.n(oe),se=n(3265),