@kingteza/crud-component 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/common/index.d.ts +2 -1
- package/dist/common/index.js +1 -1
- package/dist/index.d.ts +62 -0
- package/dist/util/index.d.ts +4 -1
- package/package.json +10 -2
- package/dist/node_modules/@ant-design/colors/es/generate.js +0 -1
- package/dist/node_modules/@ant-design/colors/es/presets.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/components/Context.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CopyOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/DeleteOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/DownCircleOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/DownloadOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EditOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/ExportOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/FileExcelOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/FileImageOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/FileOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/FilePdfOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/FilePptOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/FileTextOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/FileWordOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/ImportOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/PlusOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/PrinterOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/ReloadOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/RotateLeftOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/RotateRightOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/SaveOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/UpCircleOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/UploadOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/icons/WarningTwoTone.js +0 -1
- package/dist/node_modules/@ant-design/icons/es/utils.js +0 -56
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownCircleOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EditOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExportOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileExcelOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileImageOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FilePdfOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FilePptOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileTextOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileWordOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ImportOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PrinterOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RotateLeftOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RotateRightOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SaveOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UpCircleOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.js +0 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/WarningTwoTone.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -1
- package/dist/node_modules/browser-image-compression/dist/browser-image-compression.js +0 -20
- package/dist/node_modules/classnames/index.js +0 -5
- package/dist/node_modules/cookie/dist/index.js +0 -1
- package/dist/node_modules/cropperjs/dist/cropper.esm.js +0 -10
- package/dist/node_modules/css-mediaquery/index.js +0 -1
- package/dist/node_modules/dayjs/dayjs.min.js +0 -1
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +0 -1
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +0 -1
- package/dist/node_modules/dayjs/plugin/localeData.js +0 -1
- package/dist/node_modules/dayjs/plugin/weekOfYear.js +0 -1
- package/dist/node_modules/dayjs/plugin/weekYear.js +0 -1
- package/dist/node_modules/dayjs/plugin/weekday.js +0 -1
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +0 -1
- package/dist/node_modules/hyphenate-style-name/index.js +0 -1
- package/dist/node_modules/i18next/dist/esm/i18next.js +0 -1
- package/dist/node_modules/matchmediaquery/index.js +0 -1
- package/dist/node_modules/mime/dist/src/Mime.js +0 -1
- package/dist/node_modules/mime/dist/src/index.js +0 -1
- package/dist/node_modules/mime/dist/types/other.js +0 -1
- package/dist/node_modules/mime/dist/types/standard.js +0 -1
- package/dist/node_modules/object-assign/index.js +0 -5
- package/dist/node_modules/papaparse/papaparse.min.js +0 -15
- package/dist/node_modules/path-browserify/index.js +0 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -2
- package/dist/node_modules/prop-types/index.js +0 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/dist/node_modules/prop-types/lib/has.js +0 -1
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js +0 -1
- package/dist/node_modules/rc-util/es/Dom/contains.js +0 -1
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js +0 -1
- package/dist/node_modules/rc-util/es/Dom/shadow.js +0 -1
- package/dist/node_modules/rc-util/es/warning.js +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -22
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -9
- package/dist/node_modules/react/jsx-runtime.js +0 -1
- package/dist/node_modules/react-cropper/dist/react-cropper.es.js +0 -1
- package/dist/node_modules/react-highlight-words/dist/main.js +0 -2
- package/dist/node_modules/react-i18next/dist/es/context.js +0 -1
- package/dist/node_modules/react-i18next/dist/es/defaults.js +0 -1
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +0 -1
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +0 -1
- package/dist/node_modules/react-i18next/dist/es/unescape.js +0 -1
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +0 -1
- package/dist/node_modules/react-i18next/dist/es/utils.js +0 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -8
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -8
- package/dist/node_modules/react-is/index.js +0 -1
- package/dist/node_modules/react-responsive/dist/esm/index.js +0 -1
- package/dist/node_modules/react-router/dist/development/chunk-K6AXKMTT.js +0 -12
- package/dist/node_modules/react-show-more-text/lib/ShowMoreText.js +0 -2
- package/dist/node_modules/react-show-more-text/lib/Truncate.js +0 -5
- package/dist/node_modules/shallow-equal/dist/index.modern.js +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./typeof.js"),i=require("./toPrimitive.js");function o(t){var r=i(t,"string");return e(r)=="symbol"?r:r+""}module.exports=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function o(e){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(e)}module.exports=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./arrayLikeToArray.js");function n(r,t){if(r){if(typeof r=="string")return o(r,t);var e={}.toString.call(r).slice(8,-1);return e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set"?Array.from(r):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(r,t):void 0}}module.exports=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./util.js");function s(n,o,r){return{r:e.bound01(n,255)*255,g:e.bound01(o,255)*255,b:e.bound01(r,255)*255}}function v(n,o,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?n+(o-n)*(6*r):r<1/2?o:r<2/3?n+(o-n)*(2/3-r)*6:n}function m(n,o,r){var u,i,a;if(n=e.bound01(n,360),o=e.bound01(o,100),r=e.bound01(r,100),o===0)i=r,a=r,u=r;else{var b=r<.5?r*(1+o):r+o-r*o,t=2*r-b;u=v(t,b,n+1/3),i=v(t,b,n),a=v(t,b,n-1/3)}return{r:u*255,g:i*255,b:a*255}}function h(n,o,r){n=e.bound01(n,255),o=e.bound01(o,255),r=e.bound01(r,255);var u=Math.max(n,o,r),i=Math.min(n,o,r),a=0,b=u,t=u-i,d=u===0?0:t/u;if(u===i)a=0;else{switch(u){case n:a=(o-r)/t+(o<r?6:0);break;case o:a=(r-n)/t+2;break;case r:a=(n-o)/t+4;break}a/=6}return{h:a,s:d,v:b}}function x(n,o,r){n=e.bound01(n,360)*6,o=e.bound01(o,100),r=e.bound01(r,100);var u=Math.floor(n),i=n-u,a=r*(1-o),b=r*(1-i*o),t=r*(1-(1-i)*o),d=u%6,f=[r,b,a,a,t,r][d],g=[t,r,r,b,a,a][d],T=[a,a,t,r,r,b][d];return{r:f*255,g:g*255,b:T*255}}function H(n,o,r,u){var i=[e.pad2(Math.round(n).toString(16)),e.pad2(Math.round(o).toString(16)),e.pad2(Math.round(r).toString(16))];return i.join("")}function M(n){return c(n)/255}function c(n){return parseInt(n,16)}exports.convertHexToDecimal=M;exports.hslToRgb=m;exports.hsvToRgb=x;exports.parseIntFromHex=c;exports.rgbToHex=H;exports.rgbToHsv=h;exports.rgbToRgb=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};exports.names=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./conversion.js"),p=require("./css-color-names.js"),i=require("./util.js");function I(a){var r={r:0,g:0,b:0},e=1,h=null,v=null,b=null,x=!1,g=!1;return typeof a=="string"&&(a=F(a)),typeof a=="object"&&(s(a.r)&&s(a.g)&&s(a.b)?(r=t.rgbToRgb(a.r,a.g,a.b),x=!0,g=String(a.r).substr(-1)==="%"?"prgb":"rgb"):s(a.h)&&s(a.s)&&s(a.v)?(h=i.convertToPercentage(a.s),v=i.convertToPercentage(a.v),r=t.hsvToRgb(a.h,h,v),x=!0,g="hsv"):s(a.h)&&s(a.s)&&s(a.l)&&(h=i.convertToPercentage(a.s),b=i.convertToPercentage(a.l),r=t.hslToRgb(a.h,h,b),x=!0,g="hsl"),Object.prototype.hasOwnProperty.call(a,"a")&&(e=a.a)),e=i.boundAlpha(e),{ok:x,format:a.format||g,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}var S="[-\\+]?\\d+%?",T="[-\\+]?\\d*\\.\\d+%?",f="(?:".concat(T,")|(?:").concat(S,")"),m="[\\s|\\(]+(".concat(f,")[,|\\s]+(").concat(f,")[,|\\s]+(").concat(f,")\\s*\\)?"),u="[\\s|\\(]+(".concat(f,")[,|\\s]+(").concat(f,")[,|\\s]+(").concat(f,")[,|\\s]+(").concat(f,")\\s*\\)?"),n={CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+m),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+m),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+m),hsva:new RegExp("hsva"+u),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function F(a){if(a=a.trim().toLowerCase(),a.length===0)return!1;var r=!1;if(p.names[a])a=p.names[a],r=!0;else if(a==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=n.rgb.exec(a);return e?{r:e[1],g:e[2],b:e[3]}:(e=n.rgba.exec(a),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=n.hsl.exec(a),e?{h:e[1],s:e[2],l:e[3]}:(e=n.hsla.exec(a),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=n.hsv.exec(a),e?{h:e[1],s:e[2],v:e[3]}:(e=n.hsva.exec(a),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=n.hex8.exec(a),e?{r:t.parseIntFromHex(e[1]),g:t.parseIntFromHex(e[2]),b:t.parseIntFromHex(e[3]),a:t.convertHexToDecimal(e[4]),format:r?"name":"hex8"}:(e=n.hex6.exec(a),e?{r:t.parseIntFromHex(e[1]),g:t.parseIntFromHex(e[2]),b:t.parseIntFromHex(e[3]),format:r?"name":"hex"}:(e=n.hex4.exec(a),e?{r:t.parseIntFromHex(e[1]+e[1]),g:t.parseIntFromHex(e[2]+e[2]),b:t.parseIntFromHex(e[3]+e[3]),a:t.convertHexToDecimal(e[4]+e[4]),format:r?"name":"hex8"}:(e=n.hex3.exec(a),e?{r:t.parseIntFromHex(e[1]+e[1]),g:t.parseIntFromHex(e[2]+e[2]),b:t.parseIntFromHex(e[3]+e[3]),format:r?"name":"hex"}:!1)))))))))}function s(a){return!!n.CSS_UNIT.exec(String(a))}exports.inputToRGB=I;exports.isValidCSSUnit=s;exports.stringInputToObject=F;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e,t){r(e)&&(e="100%");var o=i(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function r(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function i(e){return typeof e=="string"&&e.indexOf("%")!==-1}function u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function s(e){return e<=1?"".concat(Number(e)*100,"%"):e}function f(e){return e.length===1?"0"+e:String(e)}exports.bound01=n;exports.boundAlpha=u;exports.convertToPercentage=s;exports.isOnePointZero=r;exports.isPercentage=i;exports.pad2=f;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";function it(x,S){return S.forEach(function(D){D&&typeof D!="string"&&!Array.isArray(D)&&Object.keys(D).forEach(function(h){if(h!=="default"&&!(h in x)){var e=Object.getOwnPropertyDescriptor(D,h);Object.defineProperty(x,h,e.get?e:{enumerable:!0,get:function(){return D[h]}})}})}),Object.freeze(x)}function qe(x,S){return new Promise(function(D,h){let e;return ot(x).then(function(t){try{return e=t,D(new Blob([S.slice(0,2),e,S.slice(2)],{type:"image/jpeg"}))}catch(u){return h(u)}},h)})}const ot=x=>new Promise((S,D)=>{const h=new FileReader;h.addEventListener("load",({target:{result:e}})=>{const t=new DataView(e);let u=0;if(t.getUint16(u)!==65496)return D("not a valid JPEG");for(u+=2;;){const f=t.getUint16(u);if(f===65498)break;const p=t.getUint16(u+2);if(f===65505&&t.getUint32(u+4)===1165519206){const y=u+10;let r;switch(t.getUint16(y)){case 18761:r=!0;break;case 19789:r=!1;break;default:return D("TIFF header contains invalid endian")}if(t.getUint16(y+2,r)!==42)return D("TIFF header contains invalid version");const i=t.getUint32(y+4,r),n=y+i+2+12*t.getUint16(y+i,r);for(let a=y+i+2;a<n;a+=12)if(t.getUint16(a,r)==274){if(t.getUint16(a+2,r)!==3)return D("Orientation data type is invalid");if(t.getUint32(a+4,r)!==1)return D("Orientation data count is invalid");t.setUint16(a+8,1,r);break}return S(e.slice(u,u+2+p))}u+=2+p}return S(new Blob)}),h.readAsArrayBuffer(x)});var Te={},at={get exports(){return Te},set exports(x){Te=x}};(function(x){var S,D,h={};at.exports=h,h.parse=function(e,t){for(var u=h.bin.readUshort,f=h.bin.readUint,p=0,y={},r=new Uint8Array(e),i=r.length-4;f(r,i)!=101010256;)i--;p=i,p+=4;var n=u(r,p+=4);u(r,p+=2);var a=f(r,p+=2),d=f(r,p+=4);p+=4,p=d;for(var F=0;F<n;F++){f(r,p),p+=4,p+=4,p+=4,f(r,p+=4),a=f(r,p+=4);var C=f(r,p+=4),A=u(r,p+=4),H=u(r,p+2),T=u(r,p+4);p+=6;var I=f(r,p+=8);p+=4,p+=A+H+T,h._readLocal(r,I,y,a,C,t)}return y},h._readLocal=function(e,t,u,f,p,y){var r=h.bin.readUshort,i=h.bin.readUint;i(e,t),r(e,t+=4),r(e,t+=2);var n=r(e,t+=2);i(e,t+=2),i(e,t+=4),t+=4;var a=r(e,t+=8),d=r(e,t+=2);t+=2;var F=h.bin.readUTF8(e,t,a);if(t+=a,t+=d,y)u[F]={size:p,csize:f};else{var C=new Uint8Array(e.buffer,t);if(n==0)u[F]=new Uint8Array(C.buffer.slice(t,t+f));else{if(n!=8)throw"unknown compression method: "+n;var A=new Uint8Array(p);h.inflateRaw(C,A),u[F]=A}}},h.inflateRaw=function(e,t){return h.F.inflate(e,t)},h.inflate=function(e,t){return e[0],e[1],h.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},h.deflate=function(e,t){t==null&&(t={level:6});var u=0,f=new Uint8Array(50+Math.floor(1.1*e.length));f[u]=120,f[u+1]=156,u+=2,u=h.F.deflateRaw(e,f,u,t.level);var p=h.adler(e,0,e.length);return f[u+0]=p>>>24&255,f[u+1]=p>>>16&255,f[u+2]=p>>>8&255,f[u+3]=p>>>0&255,new Uint8Array(f.buffer,0,u+4)},h.deflateRaw=function(e,t){t==null&&(t={level:6});var u=new Uint8Array(50+Math.floor(1.1*e.length)),f=h.F.deflateRaw(e,u,f,t.level);return new Uint8Array(u.buffer,0,f)},h.encode=function(e,t){t==null&&(t=!1);var u=0,f=h.bin.writeUint,p=h.bin.writeUshort,y={};for(var r in e){var i=!h._noNeed(r)&&!t,n=e[r],a=h.crc.crc(n,0,n.length);y[r]={cpr:i,usize:n.length,crc:a,file:i?h.deflateRaw(n):n}}for(var r in y)u+=y[r].file.length+30+46+2*h.bin.sizeUTF8(r);u+=22;var d=new Uint8Array(u),F=0,C=[];for(var r in y){var A=y[r];C.push(F),F=h._writeHeader(d,F,r,A,0)}var H=0,T=F;for(var r in y)A=y[r],C.push(F),F=h._writeHeader(d,F,r,A,1,C[H++]);var I=F-T;return f(d,F,101010256),F+=4,p(d,F+=4,H),p(d,F+=2,H),f(d,F+=2,I),f(d,F+=4,T),F+=4,F+=2,d.buffer},h._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(t)!=-1},h._writeHeader=function(e,t,u,f,p,y){var r=h.bin.writeUint,i=h.bin.writeUshort,n=f.file;return r(e,t,p==0?67324752:33639248),t+=4,p==1&&(t+=2),i(e,t,20),i(e,t+=2,0),i(e,t+=2,f.cpr?8:0),r(e,t+=2,0),r(e,t+=4,f.crc),r(e,t+=4,n.length),r(e,t+=4,f.usize),i(e,t+=4,h.bin.sizeUTF8(u)),i(e,t+=2,0),t+=2,p==1&&(t+=2,t+=2,r(e,t+=6,y),t+=4),t+=h.bin.writeUTF8(e,t,u),p==0&&(e.set(n,t),t+=n.length),t},h.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var u=t,f=0;f<8;f++)1&u?u=3988292384^u>>>1:u>>>=1;e[t]=u}return e}(),update:function(e,t,u,f){for(var p=0;p<f;p++)e=h.crc.table[255&(e^t[u+p])]^e>>>8;return e},crc:function(e,t,u){return 4294967295^h.crc.update(4294967295,e,t,u)}},h.adler=function(e,t,u){for(var f=1,p=0,y=t,r=t+u;y<r;){for(var i=Math.min(y+5552,r);y<i;)p+=f+=e[y++];f%=65521,p%=65521}return p<<16|f},h.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,u){e[t]=255&u,e[t+1]=u>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,u){e[t]=255&u,e[t+1]=u>>8&255,e[t+2]=u>>16&255,e[t+3]=u>>24&255},readASCII:function(e,t,u){for(var f="",p=0;p<u;p++)f+=String.fromCharCode(e[t+p]);return f},writeASCII:function(e,t,u){for(var f=0;f<u.length;f++)e[t+f]=u.charCodeAt(f)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,u){for(var f,p="",y=0;y<u;y++)p+="%"+h.bin.pad(e[t+y].toString(16));try{f=decodeURIComponent(p)}catch{return h.bin.readASCII(e,t,u)}return f},writeUTF8:function(e,t,u){for(var f=u.length,p=0,y=0;y<f;y++){var r=u.charCodeAt(y);if(!(4294967168&r))e[t+p]=r,p++;else if(!(4294965248&r))e[t+p]=192|r>>6,e[t+p+1]=128|r>>0&63,p+=2;else if(!(4294901760&r))e[t+p]=224|r>>12,e[t+p+1]=128|r>>6&63,e[t+p+2]=128|r>>0&63,p+=3;else{if(4292870144&r)throw"e";e[t+p]=240|r>>18,e[t+p+1]=128|r>>12&63,e[t+p+2]=128|r>>6&63,e[t+p+3]=128|r>>0&63,p+=4}}return p},sizeUTF8:function(e){for(var t=e.length,u=0,f=0;f<t;f++){var p=e.charCodeAt(f);if(!(4294967168&p))u++;else if(!(4294965248&p))u+=2;else if(!(4294901760&p))u+=3;else{if(4292870144&p)throw"e";u+=4}}return u}},h.F={},h.F.deflateRaw=function(e,t,u,f){var p=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][f],y=h.F.U,r=h.F._goodIndex;h.F._hash;var i=h.F._putsE,n=0,a=u<<3,d=0,F=e.length;if(f==0){for(;n<F;)i(t,a,n+(m=Math.min(65535,F-n))==F?1:0),a=h.F._copyExact(e,n,m,t,a+8),n+=m;return a>>>3}var C=y.lits,A=y.strt,H=y.prev,T=0,I=0,O=0,g=0,R=0,l=0;for(F>2&&(A[l=h.F._hash(e,0)]=0),n=0;n<F;n++){if(R=l,n+1<F-2){l=h.F._hash(e,n+1);var s=n+1&32767;H[s]=A[l],A[l]=s}if(d<=n){(T>14e3||I>26697)&&F-n>100&&(d<n&&(C[T]=n-d,T+=2,d=n),a=h.F._writeBlock(n==F-1||d==F?1:0,C,T,g,e,O,n-O,t,a),T=I=g=0,O=n);var b=0;n<F-2&&(b=h.F._bestMatch(e,n,H,R,Math.min(p[2],F-n),p[3]));var m=b>>>16,w=65535&b;if(b!=0){w=65535&b;var U=r(m=b>>>16,y.of0);y.lhst[257+U]++;var v=r(w,y.df0);y.dhst[v]++,g+=y.exb[U]+y.dxb[v],C[T]=m<<23|n-d,C[T+1]=w<<16|U<<8|v,T+=2,d=n+m}else y.lhst[e[n]]++;I++}}for(O==n&&e.length!=0||(d<n&&(C[T]=n-d,T+=2,d=n),a=h.F._writeBlock(1,C,T,g,e,O,n-O,t,a),T=0,I=0,T=I=g=0,O=n);7&a;)a++;return a>>>3},h.F._bestMatch=function(e,t,u,f,p,y){var r=32767&t,i=u[r],n=r-i+32768&32767;if(i==r||f!=h.F._hash(e,t-n))return 0;for(var a=0,d=0,F=Math.min(32767,t);n<=F&&--y!=0&&i!=r;){if(a==0||e[t+a]==e[t+a-n]){var C=h.F._howLong(e,t,n);if(C>a){if(d=n,(a=C)>=p)break;n+2<C&&(C=n+2);for(var A=0,H=0;H<C-2;H++){var T=t-n+H+32768&32767,I=T-u[T]+32768&32767;I>A&&(A=I,i=T)}}}n+=(r=i)-(i=u[r])+32768&32767}return a<<16|d},h.F._howLong=function(e,t,u){if(e[t]!=e[t-u]||e[t+1]!=e[t+1-u]||e[t+2]!=e[t+2-u])return 0;var f=t,p=Math.min(e.length,t+258);for(t+=3;t<p&&e[t]==e[t-u];)t++;return t-f},h.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},h.saved=0,h.F._writeBlock=function(e,t,u,f,p,y,r,i,n){var a,d,F,C,A,H,T,I,O,g=h.F.U,R=h.F._putsF,l=h.F._putsE;g.lhst[256]++,d=(a=h.F.getTrees())[0],F=a[1],C=a[2],A=a[3],H=a[4],T=a[5],I=a[6],O=a[7];var s=32+(n+3&7?8-(n+3&7):0)+(r<<3),b=f+h.F.contSize(g.fltree,g.lhst)+h.F.contSize(g.fdtree,g.dhst),m=f+h.F.contSize(g.ltree,g.lhst)+h.F.contSize(g.dtree,g.dhst);m+=14+3*T+h.F.contSize(g.itree,g.ihst)+(2*g.ihst[16]+3*g.ihst[17]+7*g.ihst[18]);for(var w=0;w<286;w++)g.lhst[w]=0;for(w=0;w<30;w++)g.dhst[w]=0;for(w=0;w<19;w++)g.ihst[w]=0;var U=s<b&&s<m?0:b<m?1:2;if(R(i,n,e),R(i,n+1,U),n+=3,U==0){for(;7&n;)n++;n=h.F._copyExact(p,y,r,i,n)}else{var v,_;if(U==1&&(v=g.fltree,_=g.fdtree),U==2){h.F.makeCodes(g.ltree,d),h.F.revCodes(g.ltree,d),h.F.makeCodes(g.dtree,F),h.F.revCodes(g.dtree,F),h.F.makeCodes(g.itree,C),h.F.revCodes(g.itree,C),v=g.ltree,_=g.dtree,l(i,n,A-257),l(i,n+=5,H-1),l(i,n+=5,T-4),n+=4;for(var c=0;c<T;c++)l(i,n+3*c,g.itree[1+(g.ordr[c]<<1)]);n+=3*T,n=h.F._codeTiny(I,g.itree,i,n),n=h.F._codeTiny(O,g.itree,i,n)}for(var o=y,P=0;P<u;P+=2){for(var E=t[P],k=E>>>23,N=o+(8388607&E);o<N;)n=h.F._writeLit(p[o++],v,i,n);if(k!=0){var z=t[P+1],Q=z>>16,L=z>>8&255,M=255&z;l(i,n=h.F._writeLit(257+L,v,i,n),k-g.of0[L]),n+=g.exb[L],R(i,n=h.F._writeLit(M,_,i,n),Q-g.df0[M]),n+=g.dxb[M],o+=k}}n=h.F._writeLit(256,v,i,n)}return n},h.F._copyExact=function(e,t,u,f,p){var y=p>>>3;return f[y]=u,f[y+1]=u>>>8,f[y+2]=255-f[y],f[y+3]=255-f[y+1],y+=4,f.set(new Uint8Array(e.buffer,t,u),y),p+(u+4<<3)},h.F.getTrees=function(){for(var e=h.F.U,t=h.F._hufTree(e.lhst,e.ltree,15),u=h.F._hufTree(e.dhst,e.dtree,15),f=[],p=h.F._lenCodes(e.ltree,f),y=[],r=h.F._lenCodes(e.dtree,y),i=0;i<f.length;i+=2)e.ihst[f[i]]++;for(i=0;i<y.length;i+=2)e.ihst[y[i]]++;for(var n=h.F._hufTree(e.ihst,e.itree,7),a=19;a>4&&e.itree[1+(e.ordr[a-1]<<1)]==0;)a--;return[t,u,n,p,r,a,f,y]},h.F.getSecond=function(e){for(var t=[],u=0;u<e.length;u+=2)t.push(e[u+1]);return t},h.F.nonZero=function(e){for(var t="",u=0;u<e.length;u+=2)e[u+1]!=0&&(t+=(u>>1)+",");return t},h.F.contSize=function(e,t){for(var u=0,f=0;f<t.length;f++)u+=t[f]*e[1+(f<<1)];return u},h.F._codeTiny=function(e,t,u,f){for(var p=0;p<e.length;p+=2){var y=e[p],r=e[p+1];f=h.F._writeLit(y,t,u,f);var i=y==16?2:y==17?3:7;y>15&&(h.F._putsE(u,f,r,i),f+=i)}return f},h.F._lenCodes=function(e,t){for(var u=e.length;u!=2&&e[u-1]==0;)u-=2;for(var f=0;f<u;f+=2){var p=e[f+1],y=f+3<u?e[f+3]:-1,r=f+5<u?e[f+5]:-1,i=f==0?-1:e[f-1];if(p==0&&y==p&&r==p){for(var n=f+5;n+2<u&&e[n+2]==p;)n+=2;(a=Math.min(n+1-f>>>1,138))<11?t.push(17,a-3):t.push(18,a-11),f+=2*a-2}else if(p==i&&y==p&&r==p){for(n=f+5;n+2<u&&e[n+2]==p;)n+=2;var a=Math.min(n+1-f>>>1,6);t.push(16,a-3),f+=2*a-2}else t.push(p,0)}return u>>>1},h.F._hufTree=function(e,t,u){var f=[],p=e.length,y=t.length,r=0;for(r=0;r<y;r+=2)t[r]=0,t[r+1]=0;for(r=0;r<p;r++)e[r]!=0&&f.push({lit:r,f:e[r]});var i=f.length,n=f.slice(0);if(i==0)return 0;if(i==1){var a=f[0].lit;return n=a==0?1:0,t[1+(a<<1)]=1,t[1+(n<<1)]=1,1}f.sort(function(I,O){return I.f-O.f});var d=f[0],F=f[1],C=0,A=1,H=2;for(f[0]={lit:-1,f:d.f+F.f,l:d,r:F,d:0};A!=i-1;)d=C!=A&&(H==i||f[C].f<f[H].f)?f[C++]:f[H++],F=C!=A&&(H==i||f[C].f<f[H].f)?f[C++]:f[H++],f[A++]={lit:-1,f:d.f+F.f,l:d,r:F};var T=h.F.setDepth(f[A-1],0);for(T>u&&(h.F.restrictDepth(n,u,T),T=u),r=0;r<i;r++)t[1+(n[r].lit<<1)]=n[r].d;return T},h.F.setDepth=function(e,t){return e.lit!=-1?(e.d=t,t):Math.max(h.F.setDepth(e.l,t+1),h.F.setDepth(e.r,t+1))},h.F.restrictDepth=function(e,t,u){var f=0,p=1<<u-t,y=0;for(e.sort(function(i,n){return n.d==i.d?i.f-n.f:n.d-i.d}),f=0;f<e.length&&e[f].d>t;f++){var r=e[f].d;e[f].d=t,y+=p-(1<<u-r)}for(y>>>=u-t;y>0;)(r=e[f].d)<t?(e[f].d++,y-=1<<t-r-1):f++;for(;f>=0;f--)e[f].d==t&&y<0&&(e[f].d--,y++);y!=0&&console.log("debt left")},h.F._goodIndex=function(e,t){var u=0;return t[16|u]<=e&&(u|=16),t[8|u]<=e&&(u|=8),t[4|u]<=e&&(u|=4),t[2|u]<=e&&(u|=2),t[1|u]<=e&&(u|=1),u},h.F._writeLit=function(e,t,u,f){return h.F._putsF(u,f,t[e<<1]),f+t[1+(e<<1)]},h.F.inflate=function(e,t){var u=Uint8Array;if(e[0]==3&&e[1]==0)return t||new u(0);var f=h.F,p=f._bitsF,y=f._bitsE,r=f._decodeTiny,i=f.makeCodes,n=f.codes2map,a=f._get17,d=f.U,F=t==null;F&&(t=new u(e.length>>>2<<3));for(var C,A,H=0,T=0,I=0,O=0,g=0,R=0,l=0,s=0,b=0;H==0;)if(H=p(e,b,1),T=p(e,b+1,2),b+=3,T!=0){if(F&&(t=h.F._check(t,s+(1<<17))),T==1&&(C=d.flmap,A=d.fdmap,R=511,l=31),T==2){I=y(e,b,5)+257,O=y(e,b+5,5)+1,g=y(e,b+10,4)+4,b+=14;for(var m=0;m<38;m+=2)d.itree[m]=0,d.itree[m+1]=0;var w=1;for(m=0;m<g;m++){var U=y(e,b+3*m,3);d.itree[1+(d.ordr[m]<<1)]=U,U>w&&(w=U)}b+=3*g,i(d.itree,w),n(d.itree,w,d.imap),C=d.lmap,A=d.dmap,b=r(d.imap,(1<<w)-1,I+O,e,b,d.ttree);var v=f._copyOut(d.ttree,0,I,d.ltree);R=(1<<v)-1;var _=f._copyOut(d.ttree,I,O,d.dtree);l=(1<<_)-1,i(d.ltree,v),n(d.ltree,v,C),i(d.dtree,_),n(d.dtree,_,A)}for(;;){var c=C[a(e,b)&R];b+=15&c;var o=c>>>4;if(!(o>>>8))t[s++]=o;else{if(o==256)break;var P=s+o-254;if(o>264){var E=d.ldef[o-257];P=s+(E>>>3)+y(e,b,7&E),b+=7&E}var k=A[a(e,b)&l];b+=15&k;var N=k>>>4,z=d.ddef[N],Q=(z>>>4)+p(e,b,15&z);for(b+=15&z,F&&(t=h.F._check(t,s+(1<<17)));s<P;)t[s]=t[s++-Q],t[s]=t[s++-Q],t[s]=t[s++-Q],t[s]=t[s++-Q];s=P}}}else{7&b&&(b+=8-(7&b));var L=4+(b>>>3),M=e[L-4]|e[L-3]<<8;F&&(t=h.F._check(t,s+M)),t.set(new u(e.buffer,e.byteOffset+L,M),s),b=L+M<<3,s+=M}return t.length==s?t:t.slice(0,s)},h.F._check=function(e,t){var u=e.length;if(t<=u)return e;var f=new Uint8Array(Math.max(u<<1,t));return f.set(e,0),f},h.F._decodeTiny=function(e,t,u,f,p,y){for(var r=h.F._bitsE,i=h.F._get17,n=0;n<u;){var a=e[i(f,p)&t];p+=15&a;var d=a>>>4;if(d<=15)y[n]=d,n++;else{var F=0,C=0;d==16?(C=3+r(f,p,2),p+=2,F=y[n-1]):d==17?(C=3+r(f,p,3),p+=3):d==18&&(C=11+r(f,p,7),p+=7);for(var A=n+C;n<A;)y[n]=F,n++}}return p},h.F._copyOut=function(e,t,u,f){for(var p=0,y=0,r=f.length>>>1;y<u;){var i=e[y+t];f[y<<1]=0,f[1+(y<<1)]=i,i>p&&(p=i),y++}for(;y<r;)f[y<<1]=0,f[1+(y<<1)]=0,y++;return p},h.F.makeCodes=function(e,t){for(var u,f,p,y,r=h.F.U,i=e.length,n=r.bl_count,a=0;a<=t;a++)n[a]=0;for(a=1;a<i;a+=2)n[e[a]]++;var d=r.next_code;for(u=0,n[0]=0,f=1;f<=t;f++)u=u+n[f-1]<<1,d[f]=u;for(p=0;p<i;p+=2)(y=e[p+1])!=0&&(e[p]=d[y],d[y]++)},h.F.codes2map=function(e,t,u){for(var f=e.length,p=h.F.U.rev15,y=0;y<f;y+=2)if(e[y+1]!=0)for(var r=y>>1,i=e[y+1],n=r<<4|i,a=t-i,d=e[y]<<a,F=d+(1<<a);d!=F;)u[p[d]>>>15-t]=n,d++},h.F.revCodes=function(e,t){for(var u=h.F.U.rev15,f=15-t,p=0;p<e.length;p+=2){var y=e[p]<<t-e[p+1];e[p]=u[y]>>>f}},h.F._putsE=function(e,t,u){u<<=7&t;var f=t>>>3;e[f]|=u,e[f+1]|=u>>>8},h.F._putsF=function(e,t,u){u<<=7&t;var f=t>>>3;e[f]|=u,e[f+1]|=u>>>8,e[f+2]|=u>>>16},h.F._bitsE=function(e,t,u){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<u)-1},h.F._bitsF=function(e,t,u){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<u)-1},h.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},h.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},h.F.U=(S=Uint16Array,D=Uint32Array,{next_code:new S(16),bl_count:new S(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new S(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new D(32),flmap:new S(512),fltree:[],fdmap:new S(32),fdtree:[],lmap:new S(32768),ltree:[],ttree:[],dmap:new S(32768),dtree:[],imap:new S(512),itree:[],rev15:new S(32768),lhst:new D(286),dhst:new D(30),ihst:new D(19),lits:new D(15e3),strt:new S(65536),prev:new S(32768)}),function(){for(var e=h.F.U,t=0;t<32768;t++){var u=t;u=(4278255360&(u=(4042322160&(u=(3435973836&(u=(2863311530&u)>>>1|(1431655765&u)<<1))>>>2|(858993459&u)<<2))>>>4|(252645135&u)<<4))>>>8|(16711935&u)<<8,e.rev15[t]=(u>>>16|u<<16)>>>17}function f(p,y,r){for(;y--!=0;)p.push(0,r)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];f(e.fltree,144,8),f(e.fltree,112,9),f(e.fltree,24,7),f(e.fltree,8,8),h.F.makeCodes(e.fltree,9),h.F.codes2map(e.fltree,9,e.flmap),h.F.revCodes(e.fltree,9),f(e.fdtree,32,5),h.F.makeCodes(e.fdtree,5),h.F.codes2map(e.fdtree,5,e.fdmap),h.F.revCodes(e.fdtree,5),f(e.itree,19,0),f(e.ltree,286,0),f(e.dtree,30,0),f(e.ttree,320,0)}()})();var ft=it({__proto__:null,default:Te},[Te]);const he=function(){var x={nextZero(r,i){for(;r[i]!=0;)i++;return i},readUshort:(r,i)=>r[i]<<8|r[i+1],writeUshort(r,i,n){r[i]=n>>8&255,r[i+1]=255&n},readUint:(r,i)=>16777216*r[i]+(r[i+1]<<16|r[i+2]<<8|r[i+3]),writeUint(r,i,n){r[i]=n>>24&255,r[i+1]=n>>16&255,r[i+2]=n>>8&255,r[i+3]=255&n},readASCII(r,i,n){let a="";for(let d=0;d<n;d++)a+=String.fromCharCode(r[i+d]);return a},writeASCII(r,i,n){for(let a=0;a<n.length;a++)r[i+a]=n.charCodeAt(a)},readBytes(r,i,n){const a=[];for(let d=0;d<n;d++)a.push(r[i+d]);return a},pad:r=>r.length<2?`0${r}`:r,readUTF8(r,i,n){let a,d="";for(let F=0;F<n;F++)d+=`%${x.pad(r[i+F].toString(16))}`;try{a=decodeURIComponent(d)}catch{return x.readASCII(r,i,n)}return a}};function S(r,i,n,a){const d=i*n,F=t(a),C=Math.ceil(i*F/8),A=new Uint8Array(4*d),H=new Uint32Array(A.buffer),{ctype:T}=a,{depth:I}=a,O=x.readUshort;if(T==6){const E=d<<2;if(I==8)for(var g=0;g<E;g+=4)A[g]=r[g],A[g+1]=r[g+1],A[g+2]=r[g+2],A[g+3]=r[g+3];if(I==16)for(g=0;g<E;g++)A[g]=r[g<<1]}else if(T==2){const E=a.tabs.tRNS;if(E==null){if(I==8)for(g=0;g<d;g++){var R=3*g;H[g]=255<<24|r[R+2]<<16|r[R+1]<<8|r[R]}if(I==16)for(g=0;g<d;g++)R=6*g,H[g]=255<<24|r[R+4]<<16|r[R+2]<<8|r[R]}else{var l=E[0];const k=E[1],N=E[2];if(I==8)for(g=0;g<d;g++){var s=g<<2;R=3*g,H[g]=255<<24|r[R+2]<<16|r[R+1]<<8|r[R],r[R]==l&&r[R+1]==k&&r[R+2]==N&&(A[s+3]=0)}if(I==16)for(g=0;g<d;g++)s=g<<2,R=6*g,H[g]=255<<24|r[R+4]<<16|r[R+2]<<8|r[R],O(r,R)==l&&O(r,R+2)==k&&O(r,R+4)==N&&(A[s+3]=0)}}else if(T==3){const E=a.tabs.PLTE,k=a.tabs.tRNS,N=k?k.length:0;if(I==1)for(var b=0;b<n;b++){var m=b*C,w=b*i;for(g=0;g<i;g++){s=w+g<<2;var U=3*(v=r[m+(g>>3)]>>7-((7&g)<<0)&1);A[s]=E[U],A[s+1]=E[U+1],A[s+2]=E[U+2],A[s+3]=v<N?k[v]:255}}if(I==2)for(b=0;b<n;b++)for(m=b*C,w=b*i,g=0;g<i;g++)s=w+g<<2,U=3*(v=r[m+(g>>2)]>>6-((3&g)<<1)&3),A[s]=E[U],A[s+1]=E[U+1],A[s+2]=E[U+2],A[s+3]=v<N?k[v]:255;if(I==4)for(b=0;b<n;b++)for(m=b*C,w=b*i,g=0;g<i;g++)s=w+g<<2,U=3*(v=r[m+(g>>1)]>>4-((1&g)<<2)&15),A[s]=E[U],A[s+1]=E[U+1],A[s+2]=E[U+2],A[s+3]=v<N?k[v]:255;if(I==8)for(g=0;g<d;g++){var v;s=g<<2,U=3*(v=r[g]),A[s]=E[U],A[s+1]=E[U+1],A[s+2]=E[U+2],A[s+3]=v<N?k[v]:255}}else if(T==4){if(I==8)for(g=0;g<d;g++){s=g<<2;var _=r[c=g<<1];A[s]=_,A[s+1]=_,A[s+2]=_,A[s+3]=r[c+1]}if(I==16)for(g=0;g<d;g++){var c;s=g<<2,_=r[c=g<<2],A[s]=_,A[s+1]=_,A[s+2]=_,A[s+3]=r[c+2]}}else if(T==0)for(l=a.tabs.tRNS?a.tabs.tRNS:-1,b=0;b<n;b++){const E=b*C,k=b*i;if(I==1)for(var o=0;o<i;o++){var P=(_=255*(r[E+(o>>>3)]>>>7-(7&o)&1))==255*l?0:255;H[k+o]=P<<24|_<<16|_<<8|_}else if(I==2)for(o=0;o<i;o++)P=(_=85*(r[E+(o>>>2)]>>>6-((3&o)<<1)&3))==85*l?0:255,H[k+o]=P<<24|_<<16|_<<8|_;else if(I==4)for(o=0;o<i;o++)P=(_=17*(r[E+(o>>>1)]>>>4-((1&o)<<2)&15))==17*l?0:255,H[k+o]=P<<24|_<<16|_<<8|_;else if(I==8)for(o=0;o<i;o++)P=(_=r[E+o])==l?0:255,H[k+o]=P<<24|_<<16|_<<8|_;else if(I==16)for(o=0;o<i;o++)_=r[E+(o<<1)],P=O(r,E+(o<<1))==l?0:255,H[k+o]=P<<24|_<<16|_<<8|_}return A}function D(r,i,n,a){const d=t(r),F=Math.ceil(n*d/8),C=new Uint8Array((F+1+r.interlace)*a);return i=r.tabs.CgBI?e(i,C):h(i,C),r.interlace==0?i=u(i,r,0,n,a):r.interlace==1&&(i=function(H,T){const I=T.width,O=T.height,g=t(T),R=g>>3,l=Math.ceil(I*g/8),s=new Uint8Array(O*l);let b=0;const m=[0,0,4,0,2,0,1],w=[0,4,0,2,0,1,0],U=[8,8,8,4,4,2,2],v=[8,8,4,4,2,2,1];let _=0;for(;_<7;){const o=U[_],P=v[_];let E=0,k=0,N=m[_];for(;N<O;)N+=o,k++;let z=w[_];for(;z<I;)z+=P,E++;const Q=Math.ceil(E*g/8);u(H,T,b,E,k);let L=0,M=m[_];for(;M<O;){let B=w[_],Z=b+L*Q<<3;for(;B<I;){var c;if(g==1&&(c=(c=H[Z>>3])>>7-(7&Z)&1,s[M*l+(B>>3)]|=c<<7-((7&B)<<0)),g==2&&(c=(c=H[Z>>3])>>6-(7&Z)&3,s[M*l+(B>>2)]|=c<<6-((3&B)<<1)),g==4&&(c=(c=H[Z>>3])>>4-(7&Z)&15,s[M*l+(B>>1)]|=c<<4-((1&B)<<2)),g>=8){const j=M*l+B*R;for(let W=0;W<R;W++)s[j+W]=H[(Z>>3)+W]}Z+=g,B+=P}L++,M+=o}E*k!=0&&(b+=k*(1+Q)),_+=1}return s}(i,r)),i}function h(r,i){return e(new Uint8Array(r.buffer,2,r.length-6),i)}var e=function(){const r={H:{}};return r.H.N=function(i,n){const a=Uint8Array;let d,F,C=0,A=0,H=0,T=0,I=0,O=0,g=0,R=0,l=0;if(i[0]==3&&i[1]==0)return n||new a(0);const s=r.H,b=s.b,m=s.e,w=s.R,U=s.n,v=s.A,_=s.Z,c=s.m,o=n==null;for(o&&(n=new a(i.length>>>2<<5));C==0;)if(C=b(i,l,1),A=b(i,l+1,2),l+=3,A!=0){if(o&&(n=r.H.W(n,R+(1<<17))),A==1&&(d=c.J,F=c.h,O=511,g=31),A==2){H=m(i,l,5)+257,T=m(i,l+5,5)+1,I=m(i,l+10,4)+4,l+=14;let E=1;for(var P=0;P<38;P+=2)c.Q[P]=0,c.Q[P+1]=0;for(P=0;P<I;P++){const z=m(i,l+3*P,3);c.Q[1+(c.X[P]<<1)]=z,z>E&&(E=z)}l+=3*I,U(c.Q,E),v(c.Q,E,c.u),d=c.w,F=c.d,l=w(c.u,(1<<E)-1,H+T,i,l,c.v);const k=s.V(c.v,0,H,c.C);O=(1<<k)-1;const N=s.V(c.v,H,T,c.D);g=(1<<N)-1,U(c.C,k),v(c.C,k,d),U(c.D,N),v(c.D,N,F)}for(;;){const E=d[_(i,l)&O];l+=15&E;const k=E>>>4;if(!(k>>>8))n[R++]=k;else{if(k==256)break;{let N=R+k-254;if(k>264){const B=c.q[k-257];N=R+(B>>>3)+m(i,l,7&B),l+=7&B}const z=F[_(i,l)&g];l+=15&z;const Q=z>>>4,L=c.c[Q],M=(L>>>4)+b(i,l,15&L);for(l+=15&L;R<N;)n[R]=n[R++-M],n[R]=n[R++-M],n[R]=n[R++-M],n[R]=n[R++-M];R=N}}}}else{7&l&&(l+=8-(7&l));const E=4+(l>>>3),k=i[E-4]|i[E-3]<<8;o&&(n=r.H.W(n,R+k)),n.set(new a(i.buffer,i.byteOffset+E,k),R),l=E+k<<3,R+=k}return n.length==R?n:n.slice(0,R)},r.H.W=function(i,n){const a=i.length;if(n<=a)return i;const d=new Uint8Array(a<<1);return d.set(i,0),d},r.H.R=function(i,n,a,d,F,C){const A=r.H.e,H=r.H.Z;let T=0;for(;T<a;){const I=i[H(d,F)&n];F+=15&I;const O=I>>>4;if(O<=15)C[T]=O,T++;else{let g=0,R=0;O==16?(R=3+A(d,F,2),F+=2,g=C[T-1]):O==17?(R=3+A(d,F,3),F+=3):O==18&&(R=11+A(d,F,7),F+=7);const l=T+R;for(;T<l;)C[T]=g,T++}}return F},r.H.V=function(i,n,a,d){let F=0,C=0;const A=d.length>>>1;for(;C<a;){const H=i[C+n];d[C<<1]=0,d[1+(C<<1)]=H,H>F&&(F=H),C++}for(;C<A;)d[C<<1]=0,d[1+(C<<1)]=0,C++;return F},r.H.n=function(i,n){const a=r.H.m,d=i.length;let F,C,A,H;const T=a.j;for(var I=0;I<=n;I++)T[I]=0;for(I=1;I<d;I+=2)T[i[I]]++;const O=a.K;for(F=0,T[0]=0,C=1;C<=n;C++)F=F+T[C-1]<<1,O[C]=F;for(A=0;A<d;A+=2)H=i[A+1],H!=0&&(i[A]=O[H],O[H]++)},r.H.A=function(i,n,a){const d=i.length,F=r.H.m.r;for(let C=0;C<d;C+=2)if(i[C+1]!=0){const A=C>>1,H=i[C+1],T=A<<4|H,I=n-H;let O=i[C]<<I;const g=O+(1<<I);for(;O!=g;)a[F[O]>>>15-n]=T,O++}},r.H.l=function(i,n){const a=r.H.m.r,d=15-n;for(let F=0;F<i.length;F+=2){const C=i[F]<<n-i[F+1];i[F]=a[C]>>>d}},r.H.M=function(i,n,a){a<<=7&n;const d=n>>>3;i[d]|=a,i[d+1]|=a>>>8},r.H.I=function(i,n,a){a<<=7&n;const d=n>>>3;i[d]|=a,i[d+1]|=a>>>8,i[d+2]|=a>>>16},r.H.e=function(i,n,a){return(i[n>>>3]|i[1+(n>>>3)]<<8)>>>(7&n)&(1<<a)-1},r.H.b=function(i,n,a){return(i[n>>>3]|i[1+(n>>>3)]<<8|i[2+(n>>>3)]<<16)>>>(7&n)&(1<<a)-1},r.H.Z=function(i,n){return(i[n>>>3]|i[1+(n>>>3)]<<8|i[2+(n>>>3)]<<16)>>>(7&n)},r.H.i=function(i,n){return(i[n>>>3]|i[1+(n>>>3)]<<8|i[2+(n>>>3)]<<16|i[3+(n>>>3)]<<24)>>>(7&n)},r.H.m=function(){const i=Uint16Array,n=Uint32Array;return{K:new i(16),j:new i(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new i(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new n(32),J:new i(512),_:[],h:new i(32),$:[],w:new i(32768),C:[],v:[],d:new i(32768),D:[],u:new i(512),Q:[],r:new i(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new i(65536),g:new i(32768)}}(),function(){const i=r.H.m;for(var n=0;n<32768;n++){let d=n;d=(2863311530&d)>>>1|(1431655765&d)<<1,d=(3435973836&d)>>>2|(858993459&d)<<2,d=(4042322160&d)>>>4|(252645135&d)<<4,d=(4278255360&d)>>>8|(16711935&d)<<8,i.r[n]=(d>>>16|d<<16)>>>17}function a(d,F,C){for(;F--!=0;)d.push(0,C)}for(n=0;n<32;n++)i.q[n]=i.S[n]<<3|i.T[n],i.c[n]=i.p[n]<<4|i.z[n];a(i._,144,8),a(i._,112,9),a(i._,24,7),a(i._,8,8),r.H.n(i._,9),r.H.A(i._,9,i.J),r.H.l(i._,9),a(i.$,32,5),r.H.n(i.$,5),r.H.A(i.$,5,i.h),r.H.l(i.$,5),a(i.Q,19,0),a(i.C,286,0),a(i.D,30,0),a(i.v,320,0)}(),r.H.N}();function t(r){return[1,null,3,1,2,null,4][r.ctype]*r.depth}function u(r,i,n,a,d){let F=t(i);const C=Math.ceil(a*F/8);let A,H;F=Math.ceil(F/8);let T=r[n],I=0;if(T>1&&(r[n]=[0,0,1][T-2]),T==3)for(I=F;I<C;I++)r[I+1]=r[I+1]+(r[I+1-F]>>>1)&255;for(let O=0;O<d;O++)if(A=n+O*C,H=A+O+1,T=r[H-1],I=0,T==0)for(;I<C;I++)r[A+I]=r[H+I];else if(T==1){for(;I<F;I++)r[A+I]=r[H+I];for(;I<C;I++)r[A+I]=r[H+I]+r[A+I-F]}else if(T==2)for(;I<C;I++)r[A+I]=r[H+I]+r[A+I-C];else if(T==3){for(;I<F;I++)r[A+I]=r[H+I]+(r[A+I-C]>>>1);for(;I<C;I++)r[A+I]=r[H+I]+(r[A+I-C]+r[A+I-F]>>>1)}else{for(;I<F;I++)r[A+I]=r[H+I]+f(0,r[A+I-C],0);for(;I<C;I++)r[A+I]=r[H+I]+f(r[A+I-F],r[A+I-C],r[A+I-F-C])}return r}function f(r,i,n){const a=r+i-n,d=a-r,F=a-i,C=a-n;return d*d<=F*F&&d*d<=C*C?r:F*F<=C*C?i:n}function p(r,i,n){n.width=x.readUint(r,i),i+=4,n.height=x.readUint(r,i),i+=4,n.depth=r[i],i++,n.ctype=r[i],i++,n.compress=r[i],i++,n.filter=r[i],i++,n.interlace=r[i],i++}function y(r,i,n,a,d,F,C,A,H){const T=Math.min(i,d),I=Math.min(n,F);let O=0,g=0;for(let _=0;_<I;_++)for(let c=0;c<T;c++)if(C>=0&&A>=0?(O=_*i+c<<2,g=(A+_)*d+C+c<<2):(O=(-A+_)*i-C+c<<2,g=_*d+c<<2),H==0)a[g]=r[O],a[g+1]=r[O+1],a[g+2]=r[O+2],a[g+3]=r[O+3];else if(H==1){var R=r[O+3]*.00392156862745098,l=r[O]*R,s=r[O+1]*R,b=r[O+2]*R,m=a[g+3]*(1/255),w=a[g]*m,U=a[g+1]*m,v=a[g+2]*m;const o=1-R,P=R+m*o,E=P==0?0:1/P;a[g+3]=255*P,a[g+0]=(l+w*o)*E,a[g+1]=(s+U*o)*E,a[g+2]=(b+v*o)*E}else if(H==2)R=r[O+3],l=r[O],s=r[O+1],b=r[O+2],m=a[g+3],w=a[g],U=a[g+1],v=a[g+2],R==m&&l==w&&s==U&&b==v?(a[g]=0,a[g+1]=0,a[g+2]=0,a[g+3]=0):(a[g]=l,a[g+1]=s,a[g+2]=b,a[g+3]=R);else if(H==3){if(R=r[O+3],l=r[O],s=r[O+1],b=r[O+2],m=a[g+3],w=a[g],U=a[g+1],v=a[g+2],R==m&&l==w&&s==U&&b==v)continue;if(R<220&&m>20)return!1}return!0}return{decode:function(i){const n=new Uint8Array(i);let a=8;const d=x,F=d.readUshort,C=d.readUint,A={tabs:{},frames:[]},H=new Uint8Array(n.length);let T,I=0,O=0;const g=[137,80,78,71,13,10,26,10];for(var R=0;R<8;R++)if(n[R]!=g[R])throw"The input is not a PNG file!";for(;a<n.length;){const _=d.readUint(n,a);a+=4;const c=d.readASCII(n,a,4);if(a+=4,c=="IHDR")p(n,a,A);else if(c=="iCCP"){for(var l=a;n[l]!=0;)l++;d.readASCII(n,a,l-a),n[l+1];const o=n.slice(l+2,a+_);let P=null;try{P=h(o)}catch{P=e(o)}A.tabs[c]=P}else if(c=="CgBI")A.tabs[c]=n.slice(a,a+4);else if(c=="IDAT"){for(R=0;R<_;R++)H[I+R]=n[a+R];I+=_}else if(c=="acTL")A.tabs[c]={num_frames:C(n,a),num_plays:C(n,a+4)},T=new Uint8Array(n.length);else if(c=="fcTL"){O!=0&&((v=A.frames[A.frames.length-1]).data=D(A,T.slice(0,O),v.rect.width,v.rect.height),O=0);const o={x:C(n,a+12),y:C(n,a+16),width:C(n,a+4),height:C(n,a+8)};let P=F(n,a+22);P=F(n,a+20)/(P==0?100:P);const E={rect:o,delay:Math.round(1e3*P),dispose:n[a+24],blend:n[a+25]};A.frames.push(E)}else if(c=="fdAT"){for(R=0;R<_-4;R++)T[O+R]=n[a+R+4];O+=_-4}else if(c=="pHYs")A.tabs[c]=[d.readUint(n,a),d.readUint(n,a+4),n[a+8]];else if(c=="cHRM")for(A.tabs[c]=[],R=0;R<8;R++)A.tabs[c].push(d.readUint(n,a+4*R));else if(c=="tEXt"||c=="zTXt"){A.tabs[c]==null&&(A.tabs[c]={});var s=d.nextZero(n,a),b=d.readASCII(n,a,s-a),m=a+_-s-1;if(c=="tEXt")U=d.readASCII(n,s+1,m);else{var w=h(n.slice(s+2,s+2+m));U=d.readUTF8(w,0,w.length)}A.tabs[c][b]=U}else if(c=="iTXt"){A.tabs[c]==null&&(A.tabs[c]={}),s=0,l=a,s=d.nextZero(n,l),b=d.readASCII(n,l,s-l);const o=n[l=s+1];var U;n[l+1],l+=2,s=d.nextZero(n,l),d.readASCII(n,l,s-l),l=s+1,s=d.nextZero(n,l),d.readUTF8(n,l,s-l),m=_-((l=s+1)-a),o==0?U=d.readUTF8(n,l,m):(w=h(n.slice(l,l+m)),U=d.readUTF8(w,0,w.length)),A.tabs[c][b]=U}else if(c=="PLTE")A.tabs[c]=d.readBytes(n,a,_);else if(c=="hIST"){const o=A.tabs.PLTE.length/3;for(A.tabs[c]=[],R=0;R<o;R++)A.tabs[c].push(F(n,a+2*R))}else if(c=="tRNS")A.ctype==3?A.tabs[c]=d.readBytes(n,a,_):A.ctype==0?A.tabs[c]=F(n,a):A.ctype==2&&(A.tabs[c]=[F(n,a),F(n,a+2),F(n,a+4)]);else if(c=="gAMA")A.tabs[c]=d.readUint(n,a)/1e5;else if(c=="sRGB")A.tabs[c]=n[a];else if(c=="bKGD")A.ctype==0||A.ctype==4?A.tabs[c]=[F(n,a)]:A.ctype==2||A.ctype==6?A.tabs[c]=[F(n,a),F(n,a+2),F(n,a+4)]:A.ctype==3&&(A.tabs[c]=n[a]);else if(c=="IEND")break;a+=_,d.readUint(n,a),a+=4}var v;return O!=0&&((v=A.frames[A.frames.length-1]).data=D(A,T.slice(0,O),v.rect.width,v.rect.height)),A.data=D(A,H,A.width,A.height),delete A.compress,delete A.interlace,delete A.filter,A},toRGBA8:function(i){const n=i.width,a=i.height;if(i.tabs.acTL==null)return[S(i.data,n,a,i).buffer];const d=[];i.frames[0].data==null&&(i.frames[0].data=i.data);const F=n*a*4,C=new Uint8Array(F),A=new Uint8Array(F),H=new Uint8Array(F);for(let I=0;I<i.frames.length;I++){const O=i.frames[I],g=O.rect.x,R=O.rect.y,l=O.rect.width,s=O.rect.height,b=S(O.data,l,s,i);if(I!=0)for(var T=0;T<F;T++)H[T]=C[T];if(O.blend==0?y(b,l,s,C,n,a,g,R,0):O.blend==1&&y(b,l,s,C,n,a,g,R,1),d.push(C.buffer.slice(0)),O.dispose!=0){if(O.dispose==1)y(A,l,s,C,n,a,g,R,0);else if(O.dispose==2)for(T=0;T<F;T++)C[T]=H[T]}}return d},_paeth:f,_copyTile:y,_bin:x}}();(function(){const{_copyTile:x}=he,{_bin:S}=he,D=he._paeth;var h={table:function(){const l=new Uint32Array(256);for(let s=0;s<256;s++){let b=s;for(let m=0;m<8;m++)1&b?b=3988292384^b>>>1:b>>>=1;l[s]=b}return l}(),update(l,s,b,m){for(let w=0;w<m;w++)l=h.table[255&(l^s[b+w])]^l>>>8;return l},crc:(l,s,b)=>4294967295^h.update(4294967295,l,s,b)};function e(l,s,b,m){s[b]+=l[0]*m>>4,s[b+1]+=l[1]*m>>4,s[b+2]+=l[2]*m>>4,s[b+3]+=l[3]*m>>4}function t(l){return Math.max(0,Math.min(255,l))}function u(l,s){const b=l[0]-s[0],m=l[1]-s[1],w=l[2]-s[2],U=l[3]-s[3];return b*b+m*m+w*w+U*U}function f(l,s,b,m,w,U,v){v==null&&(v=1);const _=m.length,c=[];for(var o=0;o<_;o++){const M=m[o];c.push([M>>>0&255,M>>>8&255,M>>>16&255,M>>>24&255])}for(o=0;o<_;o++){let M=4294967295;for(var P=0,E=0;E<_;E++){var k=u(c[o],c[E]);E!=o&&k<M&&(M=k,P=E)}}const N=new Uint32Array(w.buffer),z=new Int16Array(s*b*4),Q=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(o=0;o<Q.length;o++)Q[o]=255*((Q[o]+.5)/16-.5);for(let M=0;M<b;M++)for(let B=0;B<s;B++){var L;o=4*(M*s+B),v!=2?L=[t(l[o]+z[o]),t(l[o+1]+z[o+1]),t(l[o+2]+z[o+2]),t(l[o+3]+z[o+3])]:(k=Q[4*(3&M)+(3&B)],L=[t(l[o]+k),t(l[o+1]+k),t(l[o+2]+k),t(l[o+3]+k)]),P=0;let Z=16777215;for(E=0;E<_;E++){const q=u(L,c[E]);q<Z&&(Z=q,P=E)}const j=c[P],W=[L[0]-j[0],L[1]-j[1],L[2]-j[2],L[3]-j[3]];v==1&&(B!=s-1&&e(W,z,o+4,7),M!=b-1&&(B!=0&&e(W,z,o+4*s-4,3),e(W,z,o+4*s,5),B!=s-1&&e(W,z,o+4*s+4,1))),U[o>>2]=P,N[o>>2]=m[P]}}function p(l,s,b,m,w){w==null&&(w={});const{crc:U}=h,v=S.writeUint,_=S.writeUshort,c=S.writeASCII;let o=8;const P=l.frames.length>1;let E,k=!1,N=33+(P?20:0);if(w.sRGB!=null&&(N+=13),w.pHYs!=null&&(N+=21),w.iCCP!=null&&(E=pako.deflate(w.iCCP),N+=21+E.length+4),l.ctype==3){for(var z=l.plte.length,Q=0;Q<z;Q++)l.plte[Q]>>>24!=255&&(k=!0);N+=8+3*z+4+(k?8+1*z+4:0)}for(var L=0;L<l.frames.length;L++)P&&(N+=38),N+=(j=l.frames[L]).cimg.length+12,L!=0&&(N+=4);N+=12;const M=new Uint8Array(N),B=[137,80,78,71,13,10,26,10];for(Q=0;Q<8;Q++)M[Q]=B[Q];if(v(M,o,13),o+=4,c(M,o,"IHDR"),o+=4,v(M,o,s),o+=4,v(M,o,b),o+=4,M[o]=l.depth,o++,M[o]=l.ctype,o++,M[o]=0,o++,M[o]=0,o++,M[o]=0,o++,v(M,o,U(M,o-17,17)),o+=4,w.sRGB!=null&&(v(M,o,1),o+=4,c(M,o,"sRGB"),o+=4,M[o]=w.sRGB,o++,v(M,o,U(M,o-5,5)),o+=4),w.iCCP!=null){const W=13+E.length;v(M,o,W),o+=4,c(M,o,"iCCP"),o+=4,c(M,o,"ICC profile"),o+=11,o+=2,M.set(E,o),o+=E.length,v(M,o,U(M,o-(W+4),W+4)),o+=4}if(w.pHYs!=null&&(v(M,o,9),o+=4,c(M,o,"pHYs"),o+=4,v(M,o,w.pHYs[0]),o+=4,v(M,o,w.pHYs[1]),o+=4,M[o]=w.pHYs[2],o++,v(M,o,U(M,o-13,13)),o+=4),P&&(v(M,o,8),o+=4,c(M,o,"acTL"),o+=4,v(M,o,l.frames.length),o+=4,v(M,o,w.loop!=null?w.loop:0),o+=4,v(M,o,U(M,o-12,12)),o+=4),l.ctype==3){for(v(M,o,3*(z=l.plte.length)),o+=4,c(M,o,"PLTE"),o+=4,Q=0;Q<z;Q++){const W=3*Q,q=l.plte[Q],V=255&q,ee=q>>>8&255,ye=q>>>16&255;M[o+W+0]=V,M[o+W+1]=ee,M[o+W+2]=ye}if(o+=3*z,v(M,o,U(M,o-3*z-4,3*z+4)),o+=4,k){for(v(M,o,z),o+=4,c(M,o,"tRNS"),o+=4,Q=0;Q<z;Q++)M[o+Q]=l.plte[Q]>>>24&255;o+=z,v(M,o,U(M,o-z-4,z+4)),o+=4}}let Z=0;for(L=0;L<l.frames.length;L++){var j=l.frames[L];P&&(v(M,o,26),o+=4,c(M,o,"fcTL"),o+=4,v(M,o,Z++),o+=4,v(M,o,j.rect.width),o+=4,v(M,o,j.rect.height),o+=4,v(M,o,j.rect.x),o+=4,v(M,o,j.rect.y),o+=4,_(M,o,m[L]),o+=2,_(M,o,1e3),o+=2,M[o]=j.dispose,o++,M[o]=j.blend,o++,v(M,o,U(M,o-30,30)),o+=4);const W=j.cimg;v(M,o,(z=W.length)+(L==0?0:4)),o+=4;const q=o;c(M,o,L==0?"IDAT":"fdAT"),o+=4,L!=0&&(v(M,o,Z++),o+=4),M.set(W,o),o+=z,v(M,o,U(M,q,o-q)),o+=4}return v(M,o,0),o+=4,c(M,o,"IEND"),o+=4,v(M,o,U(M,o-4,4)),o+=4,M.buffer}function y(l,s,b){for(let m=0;m<l.frames.length;m++){const w=l.frames[m];w.rect.width;const U=w.rect.height,v=new Uint8Array(U*w.bpl+U);w.cimg=a(w.img,U,w.bpp,w.bpl,v,s,b)}}function r(l,s,b,m,w){const U=w[0],v=w[1],_=w[2],c=w[3],o=w[4],P=w[5];let E=6,k=8,N=255;for(var z=0;z<l.length;z++){const ne=new Uint8Array(l[z]);for(var Q=ne.length,L=0;L<Q;L+=4)N&=ne[L+3]}const M=N!=255,B=function($,G,te,oe,Y,se){const J=[];for(var K=0;K<$.length;K++){const ae=new Uint8Array($[K]),ue=new Uint32Array(ae.buffer);var le;let ce=0,ve=0,ge=G,Ue=te,De=oe?1:0;if(K!=0){const nt=se||oe||K==1||J[K-2].dispose!=0?1:2;let Le=0,Be=1e9;for(let Me=0;Me<nt;Me++){var be=new Uint8Array($[K-1-Me]);const rt=new Uint32Array($[K-1-Me]);let Ae=G,we=te,Ie=-1,Re=-1;for(let Fe=0;Fe<te;Fe++)for(let Ee=0;Ee<G;Ee++)ue[re=Fe*G+Ee]!=rt[re]&&(Ee<Ae&&(Ae=Ee),Ee>Ie&&(Ie=Ee),Fe<we&&(we=Fe),Fe>Re&&(Re=Fe));Ie==-1&&(Ae=we=Ie=Re=0),Y&&((1&Ae)==1&&Ae--,(1&we)==1&&we--);const We=(Ie-Ae+1)*(Re-we+1);We<Be&&(Be=We,Le=Me,ce=Ae,ve=we,ge=Ie-Ae+1,Ue=Re-we+1)}be=new Uint8Array($[K-1-Le]),Le==1&&(J[K-1].dispose=2),le=new Uint8Array(ge*Ue*4),x(be,G,te,le,ge,Ue,-ce,-ve,0),De=x(ae,G,te,le,ge,Ue,-ce,-ve,3)?1:0,De==1?n(ae,G,te,le,{x:ce,y:ve,width:ge,height:Ue}):x(ae,G,te,le,ge,Ue,-ce,-ve,0)}else le=ae.slice(0);J.push({rect:{x:ce,y:ve,width:ge,height:Ue},img:le,blend:De,dispose:0})}if(oe)for(K=0;K<J.length;K++){if((me=J[K]).blend==1)continue;const ae=me.rect,ue=J[K-1].rect,ce=Math.min(ae.x,ue.x),ve=Math.min(ae.y,ue.y),ge={x:ce,y:ve,width:Math.max(ae.x+ae.width,ue.x+ue.width)-ce,height:Math.max(ae.y+ae.height,ue.y+ue.height)-ve};J[K-1].dispose=1,K-1!=0&&i($,G,te,J,K-1,ge,Y),i($,G,te,J,K,ge,Y)}let xe=0;if($.length!=1)for(var re=0;re<J.length;re++){var me;xe+=(me=J[re]).rect.width*me.rect.height}return J}(l,s,b,U,v,_),Z={},j=[],W=[];if(m!=0){const ne=[];for(L=0;L<B.length;L++)ne.push(B[L].img.buffer);const $=function(Y){let se=0;for(var J=0;J<Y.length;J++)se+=Y[J].byteLength;const K=new Uint8Array(se);let le=0;for(J=0;J<Y.length;J++){const be=new Uint8Array(Y[J]),xe=be.length;for(let re=0;re<xe;re+=4){let me=be[re],ae=be[re+1],ue=be[re+2];const ce=be[re+3];ce==0&&(me=ae=ue=0),K[le+re]=me,K[le+re+1]=ae,K[le+re+2]=ue,K[le+re+3]=ce}le+=xe}return K.buffer}(ne),G=F($,m);for(L=0;L<G.plte.length;L++)j.push(G.plte[L].est.rgba);let te=0;for(L=0;L<B.length;L++){const oe=(V=B[L]).img.length;var q=new Uint8Array(G.inds.buffer,te>>2,oe>>2);W.push(q);const Y=new Uint8Array(G.abuf,te,oe);P&&f(V.img,V.rect.width,V.rect.height,j,Y,q),V.img.set(Y),te+=oe}}else for(z=0;z<B.length;z++){var V=B[z];const ne=new Uint32Array(V.img.buffer);var ee=V.rect.width;for(Q=ne.length,q=new Uint8Array(Q),W.push(q),L=0;L<Q;L++){const $=ne[L];if(L!=0&&$==ne[L-1])q[L]=q[L-1];else if(L>ee&&$==ne[L-ee])q[L]=q[L-ee];else{let G=Z[$];if(G==null&&(Z[$]=G=j.length,j.push($),j.length>=300))break;q[L]=G}}}const ye=j.length;for(ye<=256&&o==0&&(k=ye<=2?1:ye<=4?2:ye<=16?4:8,k=Math.max(k,c)),z=0;z<B.length;z++){(V=B[z]).rect.x,V.rect.y,ee=V.rect.width;const ne=V.rect.height;let $=V.img;new Uint32Array($.buffer);let G=4*ee,te=4;if(ye<=256&&o==0){G=Math.ceil(k*ee/8);var de=new Uint8Array(G*ne);const oe=W[z];for(let Y=0;Y<ne;Y++){L=Y*G;const se=Y*ee;if(k==8)for(var X=0;X<ee;X++)de[L+X]=oe[se+X];else if(k==4)for(X=0;X<ee;X++)de[L+(X>>1)]|=oe[se+X]<<4-4*(1&X);else if(k==2)for(X=0;X<ee;X++)de[L+(X>>2)]|=oe[se+X]<<6-2*(3&X);else if(k==1)for(X=0;X<ee;X++)de[L+(X>>3)]|=oe[se+X]<<7-1*(7&X)}$=de,E=3,te=1}else if(M==0&&B.length==1){de=new Uint8Array(ee*ne*3);const oe=ee*ne;for(L=0;L<oe;L++){const Y=3*L,se=4*L;de[Y]=$[se],de[Y+1]=$[se+1],de[Y+2]=$[se+2]}$=de,E=2,te=3,G=3*ee}V.img=$,V.bpl=G,V.bpp=te}return{ctype:E,depth:k,plte:j,frames:B}}function i(l,s,b,m,w,U,v){const _=Uint8Array,c=Uint32Array,o=new _(l[w-1]),P=new c(l[w-1]),E=w+1<l.length?new _(l[w+1]):null,k=new _(l[w]),N=new c(k.buffer);let z=s,Q=b,L=-1,M=-1;for(let Z=0;Z<U.height;Z++)for(let j=0;j<U.width;j++){const W=U.x+j,q=U.y+Z,V=q*s+W,ee=N[V];ee==0||m[w-1].dispose==0&&P[V]==ee&&(E==null||E[4*V+3]!=0)||(W<z&&(z=W),W>L&&(L=W),q<Q&&(Q=q),q>M&&(M=q))}L==-1&&(z=Q=L=M=0),v&&((1&z)==1&&z--,(1&Q)==1&&Q--),U={x:z,y:Q,width:L-z+1,height:M-Q+1};const B=m[w];B.rect=U,B.blend=1,B.img=new Uint8Array(U.width*U.height*4),m[w-1].dispose==0?(x(o,s,b,B.img,U.width,U.height,-U.x,-U.y,0),n(k,s,b,B.img,U)):x(k,s,b,B.img,U.width,U.height,-U.x,-U.y,0)}function n(l,s,b,m,w){x(l,s,b,m,w.width,w.height,-w.x,-w.y,2)}function a(l,s,b,m,w,U,v){const _=[];let c,o=[0,1,2,3,4];U!=-1?o=[U]:(s*m>5e5||b==1)&&(o=[0]),v&&(c={level:0});const P=ft;for(var E=0;E<o.length;E++){for(let z=0;z<s;z++)d(w,l,z,m,b,o[E]);_.push(P.deflate(w,c))}let k,N=1e9;for(E=0;E<_.length;E++)_[E].length<N&&(k=E,N=_[E].length);return _[k]}function d(l,s,b,m,w,U){const v=b*m;let _=v+b;if(l[_]=U,_++,U==0)if(m<500)for(var c=0;c<m;c++)l[_+c]=s[v+c];else l.set(new Uint8Array(s.buffer,v,m),_);else if(U==1){for(c=0;c<w;c++)l[_+c]=s[v+c];for(c=w;c<m;c++)l[_+c]=s[v+c]-s[v+c-w]+256&255}else if(b==0){for(c=0;c<w;c++)l[_+c]=s[v+c];if(U==2)for(c=w;c<m;c++)l[_+c]=s[v+c];if(U==3)for(c=w;c<m;c++)l[_+c]=s[v+c]-(s[v+c-w]>>1)+256&255;if(U==4)for(c=w;c<m;c++)l[_+c]=s[v+c]-D(s[v+c-w],0,0)+256&255}else{if(U==2)for(c=0;c<m;c++)l[_+c]=s[v+c]+256-s[v+c-m]&255;if(U==3){for(c=0;c<w;c++)l[_+c]=s[v+c]+256-(s[v+c-m]>>1)&255;for(c=w;c<m;c++)l[_+c]=s[v+c]+256-(s[v+c-m]+s[v+c-w]>>1)&255}if(U==4){for(c=0;c<w;c++)l[_+c]=s[v+c]+256-D(0,s[v+c-m],0)&255;for(c=w;c<m;c++)l[_+c]=s[v+c]+256-D(s[v+c-w],s[v+c-m],s[v+c-w-m])&255}}}function F(l,s){const b=new Uint8Array(l),m=b.slice(0),w=new Uint32Array(m.buffer),U=C(m,s),v=U[0],_=U[1],c=b.length,o=new Uint8Array(c>>2);let P;if(b.length<2e7)for(var E=0;E<c;E+=4)P=A(v,k=b[E]*(1/255),N=b[E+1]*(1/255),z=b[E+2]*(1/255),Q=b[E+3]*(1/255)),o[E>>2]=P.ind,w[E>>2]=P.est.rgba;else for(E=0;E<c;E+=4){var k=b[E]*.00392156862745098,N=b[E+1]*(1/255),z=b[E+2]*(1/255),Q=b[E+3]*(1/255);for(P=v;P.left;)P=H(P.est,k,N,z,Q)<=0?P.left:P.right;o[E>>2]=P.ind,w[E>>2]=P.est.rgba}return{abuf:m.buffer,inds:o,plte:_}}function C(l,s,b){b==null&&(b=1e-4);const m=new Uint32Array(l.buffer),w={i0:0,i1:l.length,bst:null,est:null,tdst:0,left:null,right:null};w.bst=O(l,w.i0,w.i1),w.est=g(w.bst);const U=[w];for(;U.length<s;){let _=0,c=0;for(var v=0;v<U.length;v++)U[v].est.L>_&&(_=U[v].est.L,c=v);if(_<b)break;const o=U[c],P=T(l,m,o.i0,o.i1,o.est.e,o.est.eMq255);if(o.i0>=P||o.i1<=P){o.est.L=0;continue}const E={i0:o.i0,i1:P,bst:null,est:null,tdst:0,left:null,right:null};E.bst=O(l,E.i0,E.i1),E.est=g(E.bst);const k={i0:P,i1:o.i1,bst:null,est:null,tdst:0,left:null,right:null};for(k.bst={R:[],m:[],N:o.bst.N-E.bst.N},v=0;v<16;v++)k.bst.R[v]=o.bst.R[v]-E.bst.R[v];for(v=0;v<4;v++)k.bst.m[v]=o.bst.m[v]-E.bst.m[v];k.est=g(k.bst),o.left=E,o.right=k,U[c]=E,U.push(k)}for(U.sort((_,c)=>c.bst.N-_.bst.N),v=0;v<U.length;v++)U[v].ind=v;return[w,U]}function A(l,s,b,m,w){if(l.left==null)return l.tdst=function(E,k,N,z,Q){const L=k-E[0],M=N-E[1],B=z-E[2],Z=Q-E[3];return L*L+M*M+B*B+Z*Z}(l.est.q,s,b,m,w),l;const U=H(l.est,s,b,m,w);let v=l.left,_=l.right;U>0&&(v=l.right,_=l.left);const c=A(v,s,b,m,w);if(c.tdst<=U*U)return c;const o=A(_,s,b,m,w);return o.tdst<c.tdst?o:c}function H(l,s,b,m,w){const{e:U}=l;return U[0]*s+U[1]*b+U[2]*m+U[3]*w-l.eMq}function T(l,s,b,m,w,U){for(m-=4;b<m;){for(;I(l,b,w)<=U;)b+=4;for(;I(l,m,w)>U;)m-=4;if(b>=m)break;const v=s[b>>2];s[b>>2]=s[m>>2],s[m>>2]=v,b+=4,m-=4}for(;I(l,b,w)>U;)b-=4;return b+4}function I(l,s,b){return l[s]*b[0]+l[s+1]*b[1]+l[s+2]*b[2]+l[s+3]*b[3]}function O(l,s,b){const m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=[0,0,0,0],U=b-s>>2;for(let v=s;v<b;v+=4){const _=l[v]*.00392156862745098,c=l[v+1]*(1/255),o=l[v+2]*(1/255),P=l[v+3]*(1/255);w[0]+=_,w[1]+=c,w[2]+=o,w[3]+=P,m[0]+=_*_,m[1]+=_*c,m[2]+=_*o,m[3]+=_*P,m[5]+=c*c,m[6]+=c*o,m[7]+=c*P,m[10]+=o*o,m[11]+=o*P,m[15]+=P*P}return m[4]=m[1],m[8]=m[2],m[9]=m[6],m[12]=m[3],m[13]=m[7],m[14]=m[11],{R:m,m:w,N:U}}function g(l){const{R:s}=l,{m:b}=l,{N:m}=l,w=b[0],U=b[1],v=b[2],_=b[3],c=m==0?0:1/m,o=[s[0]-w*w*c,s[1]-w*U*c,s[2]-w*v*c,s[3]-w*_*c,s[4]-U*w*c,s[5]-U*U*c,s[6]-U*v*c,s[7]-U*_*c,s[8]-v*w*c,s[9]-v*U*c,s[10]-v*v*c,s[11]-v*_*c,s[12]-_*w*c,s[13]-_*U*c,s[14]-_*v*c,s[15]-_*_*c],P=o,E=R;let k=[Math.random(),Math.random(),Math.random(),Math.random()],N=0,z=0;if(m!=0)for(let L=0;L<16&&(k=E.multVec(P,k),z=Math.sqrt(E.dot(k,k)),k=E.sml(1/z,k),!(L!=0&&Math.abs(z-N)<1e-9));L++)N=z;const Q=[w*c,U*c,v*c,_*c];return{Cov:o,q:Q,e:k,L:N,eMq255:E.dot(E.sml(255,Q),k),eMq:E.dot(k,Q),rgba:(Math.round(255*Q[3])<<24|Math.round(255*Q[2])<<16|Math.round(255*Q[1])<<8|Math.round(255*Q[0])<<0)>>>0}}var R={multVec:(l,s)=>[l[0]*s[0]+l[1]*s[1]+l[2]*s[2]+l[3]*s[3],l[4]*s[0]+l[5]*s[1]+l[6]*s[2]+l[7]*s[3],l[8]*s[0]+l[9]*s[1]+l[10]*s[2]+l[11]*s[3],l[12]*s[0]+l[13]*s[1]+l[14]*s[2]+l[15]*s[3]],dot:(l,s)=>l[0]*s[0]+l[1]*s[1]+l[2]*s[2]+l[3]*s[3],sml:(l,s)=>[l*s[0],l*s[1],l*s[2],l*s[3]]};he.encode=function(s,b,m,w,U,v,_){w==null&&(w=0),_==null&&(_=!1);const c=r(s,b,m,w,[!1,!1,!1,0,_,!1]);return y(c,-1),p(c,b,m,U,v)},he.encodeLL=function(s,b,m,w,U,v,_,c){const o={ctype:0+(w==1?0:2)+(U==0?0:4),depth:v,frames:[]},P=(w+U)*v,E=P*b;for(let k=0;k<s.length;k++)o.frames.push({rect:{x:0,y:0,width:b,height:m},img:new Uint8Array(s[k]),blend:0,dispose:1,bpp:Math.ceil(P/8),bpl:Math.ceil(E/8)});return y(o,0,!0),p(o,b,m,_,c)},he.encode.compress=r,he.encode.dither=f,he.quantize=F,he.quantize.getKDtree=C,he.quantize.getNearest=A})();const Ge={toArrayBuffer(x,S){const D=x.width,h=x.height,e=D<<2,t=x.getContext("2d").getImageData(0,0,D,h),u=new Uint32Array(t.data.buffer),f=(32*D+31)/32<<2,p=f*h,y=122+p,r=new ArrayBuffer(y),i=new DataView(r),n=1<<20;let a,d,F,C,A=n,H=0,T=0,I=0;function O(l){i.setUint16(T,l,!0),T+=2}function g(l){i.setUint32(T,l,!0),T+=4}function R(l){T+=l}O(19778),g(y),R(4),g(122),g(108),g(D),g(-h>>>0),O(1),O(32),g(3),g(p),g(2835),g(2835),R(8),g(16711680),g(65280),g(255),g(4278190080),g(1466527264),function l(){for(;H<h&&A>0;){for(C=122+H*f,a=0;a<e;)A--,d=u[I++],F=d>>>24,i.setUint32(C+a,d<<8|F),a+=4;H++}I<u.length?(A=n,setTimeout(l,Ge._dly)):S(r)}()},toBlob(x,S){this.toArrayBuffer(x,D=>{S(new Blob([D],{type:"image/bmp"}))})},_dly:9};var fe={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},st={[fe.CHROME]:16384,[fe.FIREFOX]:11180,[fe.DESKTOP_SAFARI]:16384,[fe.IE]:8192,[fe.IOS]:4096,[fe.ETC]:8192};const Qe=typeof window<"u",Ke=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=Qe&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),lt=(Qe||Ke)&&(Pe&&Pe.getOriginalSymbol(window,"File")||typeof File<"u"&&File),Ze=(Qe||Ke)&&(Pe&&Pe.getOriginalSymbol(window,"FileReader")||typeof FileReader<"u"&&FileReader);function Ne(x,S,D=Date.now()){return new Promise(h=>{const e=x.split(","),t=e[0].match(/:(.*?);/)[1],u=globalThis.atob(e[1]);let f=u.length;const p=new Uint8Array(f);for(;f--;)p[f]=u.charCodeAt(f);const y=new Blob([p],{type:t});y.name=S,y.lastModified=D,h(y)})}function $e(x){return new Promise((S,D)=>{const h=new Ze;h.onload=()=>S(h.result),h.onerror=e=>D(e),h.readAsDataURL(x)})}function Xe(x){return new Promise((S,D)=>{const h=new Image;h.onload=()=>S(h),h.onerror=e=>D(e),h.src=x})}function _e(){if(_e.cachedResult!==void 0)return _e.cachedResult;let x=fe.ETC;const{userAgent:S}=navigator;return/Chrom(e|ium)/i.test(S)?x=fe.CHROME:/iP(ad|od|hone)/i.test(S)&&/WebKit/i.test(S)?x=fe.IOS:/Safari/i.test(S)?x=fe.DESKTOP_SAFARI:/Firefox/i.test(S)?x=fe.FIREFOX:(/MSIE/i.test(S)||document.documentMode)&&(x=fe.IE),_e.cachedResult=x,_e.cachedResult}function Ve(x,S){const D=_e(),h=st[D];let e=x,t=S,u=e*t;const f=e>t?t/e:e/t;for(;u>h*h;){const p=(h+e)/2,y=(h+t)/2;p<y?(t=y,e=y*f):(t=p*f,e=p),u=e*t}return{width:e,height:t}}function He(x,S){let D,h;try{if(D=new OffscreenCanvas(x,S),h=D.getContext("2d"),h===null)throw new Error("getContext of OffscreenCanvas returns null")}catch{D=document.createElement("canvas"),h=D.getContext("2d")}return D.width=x,D.height=S,[D,h]}function Ye(x,S){const{width:D,height:h}=Ve(x.width,x.height),[e,t]=He(D,h);return S&&/jpe?g/.test(S)&&(t.fillStyle="white",t.fillRect(0,0,e.width,e.height)),t.drawImage(x,0,0,e.width,e.height),e}function Se(){return Se.cachedResult!==void 0||(Se.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof document<"u"&&"ontouchend"in document),Se.cachedResult}function ke(x,S={}){return new Promise(function(D,h){let e,t;var u=function(){try{return t=Ye(e,S.fileType||x.type),D([e,t])}catch(p){return h(p)}},f=function(p){try{var y=function(r){try{throw r}catch(i){return h(i)}};try{let r;return $e(x).then(function(i){try{return r=i,Xe(r).then(function(n){try{return e=n,function(){try{return u()}catch(a){return h(a)}}()}catch(a){return y(a)}},y)}catch(n){return y(n)}},y)}catch(r){y(r)}}catch(r){return h(r)}};try{if(Se()||[fe.DESKTOP_SAFARI,fe.MOBILE_SAFARI].includes(_e()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(x).then(function(p){try{return e=p,u()}catch{return f()}},f)}catch{f()}})}function Oe(x,S,D,h,e=1){return new Promise(function(t,u){let f;if(S==="image/png"){let y,r,i;return y=x.getContext("2d"),{data:r}=y.getImageData(0,0,x.width,x.height),i=he.encode([r.buffer],x.width,x.height,4096*e),f=new Blob([i],{type:S}),f.name=D,f.lastModified=h,p.call(this)}{let y=function(){return p.call(this)};if(S==="image/bmp")return new Promise(r=>Ge.toBlob(x,r)).then((function(r){try{return f=r,f.name=D,f.lastModified=h,y.call(this)}catch(i){return u(i)}}).bind(this),u);{let r=function(){return y.call(this)};if(typeof OffscreenCanvas=="function"&&x instanceof OffscreenCanvas)return x.convertToBlob({type:S,quality:e}).then((function(i){try{return f=i,f.name=D,f.lastModified=h,r.call(this)}catch(n){return u(n)}}).bind(this),u);{let i;return i=x.toDataURL(S,e),Ne(i,D,h).then((function(n){try{return f=n,r.call(this)}catch(a){return u(a)}}).bind(this),u)}}}function p(){return t(f)}})}function pe(x){x.width=0,x.height=0}function Ce(){return new Promise(function(x,S){let D,h,e,t;return Ce.cachedResult!==void 0?x(Ce.cachedResult):Ne("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(u){try{return D=u,ke(D).then(function(f){try{return h=f[1],Oe(h,D.type,D.name,D.lastModified).then(function(p){try{return e=p,pe(h),ke(e).then(function(y){try{return t=y[0],Ce.cachedResult=t.width===1&&t.height===2,x(Ce.cachedResult)}catch(r){return S(r)}},S)}catch(y){return S(y)}},S)}catch(p){return S(p)}},S)}catch(f){return S(f)}},S)})}function Je(x){return new Promise((S,D)=>{const h=new Ze;h.onload=e=>{const t=new DataView(e.target.result);if(t.getUint16(0,!1)!=65496)return S(-2);const u=t.byteLength;let f=2;for(;f<u;){if(t.getUint16(f+2,!1)<=8)return S(-1);const p=t.getUint16(f,!1);if(f+=2,p==65505){if(t.getUint32(f+=2,!1)!=1165519206)return S(-1);const y=t.getUint16(f+=6,!1)==18761;f+=t.getUint32(f+4,y);const r=t.getUint16(f,y);f+=2;for(let i=0;i<r;i++)if(t.getUint16(f+12*i,y)==274)return S(t.getUint16(f+12*i+8,y))}else{if((65280&p)!=65280)break;f+=t.getUint16(f,!1)}}return S(-1)},h.onerror=e=>D(e),h.readAsArrayBuffer(x)})}function et(x,S){const{width:D}=x,{height:h}=x,{maxWidthOrHeight:e}=S;let t,u=x;return isFinite(e)&&(D>e||h>e)&&([u,t]=He(D,h),D>h?(u.width=e,u.height=h/D*e):(u.width=D/h*e,u.height=e),t.drawImage(x,0,0,u.width,u.height),pe(x)),u}function tt(x,S){const{width:D}=x,{height:h}=x,[e,t]=He(D,h);switch(S>4&&S<9?(e.width=h,e.height=D):(e.width=D,e.height=h),S){case 2:t.transform(-1,0,0,1,D,0);break;case 3:t.transform(-1,0,0,-1,D,h);break;case 4:t.transform(1,0,0,-1,0,h);break;case 5:t.transform(0,1,1,0,0,0);break;case 6:t.transform(0,1,-1,0,h,0);break;case 7:t.transform(0,-1,-1,0,h,D);break;case 8:t.transform(0,-1,1,0,0,D)}return t.drawImage(x,0,0,D,h),pe(x),e}function je(x,S,D=0){return new Promise(function(h,e){let t,u,f,p,y,r,i,n,a,d,F,C,A,H,T,I,O,g,R,l;function s(m=5){if(S.signal&&S.signal.aborted)throw S.signal.reason;t+=m,S.onProgress(Math.min(t,100))}function b(m){if(S.signal&&S.signal.aborted)throw S.signal.reason;t=Math.min(Math.max(m,t),100),S.onProgress(t)}return t=D,u=S.maxIteration||10,f=1024*S.maxSizeMB*1024,s(),ke(x,S).then((function(m){try{return[,p]=m,s(),y=et(p,S),s(),new Promise(function(w,U){var v;if(!(v=S.exifOrientation))return Je(x).then((function(c){try{return v=c,_.call(this)}catch(o){return U(o)}}).bind(this),U);function _(){return w(v)}return _.call(this)}).then((function(w){try{return r=w,s(),Ce().then((function(U){try{return i=U?y:tt(y,r),s(),n=S.initialQuality||1,a=S.fileType||x.type,Oe(i,a,x.name,x.lastModified,n).then((function(v){try{{let c=function(){if(u--&&(T>f||T>A)){let P,E;return P=l?.95*R.width:R.width,E=l?.95*R.height:R.height,[O,g]=He(P,E),g.drawImage(R,0,0,P,E),n*=a==="image/png"?.85:.95,Oe(O,a,x.name,x.lastModified,n).then(function(k){try{return I=k,pe(R),R=O,T=I.size,b(Math.min(99,Math.floor((H-T)/(H-f)*100))),c}catch(N){return e(N)}},e)}return[1]},o=function(){return pe(R),pe(O),pe(y),pe(i),pe(p),b(100),h(I)};if(d=v,s(),F=d.size>f,C=d.size>x.size,!F&&!C)return b(100),h(d);var _;return A=x.size,H=d.size,T=H,R=i,l=!S.alwaysKeepResolution&&F,(_=(function(P){for(;P;){if(P.then)return void P.then(_,e);try{if(P.pop){if(P.length)return P.pop()?o.call(this):P;P=c}else P=P.call(this)}catch(E){return e(E)}}}).bind(this))(c)}}catch(c){return e(c)}}).bind(this),e)}catch(v){return e(v)}}).bind(this),e)}catch(U){return e(U)}}).bind(this),e)}catch(w){return e(w)}}).bind(this),e)})}const ct=`
|
|
2
|
-
let scriptImported = false
|
|
3
|
-
self.addEventListener('message', async (e) => {
|
|
4
|
-
const { file, id, imageCompressionLibUrl, options } = e.data
|
|
5
|
-
options.onProgress = (progress) => self.postMessage({ progress, id })
|
|
6
|
-
try {
|
|
7
|
-
if (!scriptImported) {
|
|
8
|
-
// console.log('[worker] importScripts', imageCompressionLibUrl)
|
|
9
|
-
self.importScripts(imageCompressionLibUrl)
|
|
10
|
-
scriptImported = true
|
|
11
|
-
}
|
|
12
|
-
// console.log('[worker] self', self)
|
|
13
|
-
const compressedFile = await imageCompression(file, options)
|
|
14
|
-
self.postMessage({ file: compressedFile, id })
|
|
15
|
-
} catch (e) {
|
|
16
|
-
// console.error('[worker] error', e)
|
|
17
|
-
self.postMessage({ error: e.message + '\\n' + e.stack, id })
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
`;let ze;function ut(x,S){return new Promise((D,h)=>{ze||(ze=function(u){const f=[];return f.push(u),URL.createObjectURL(new Blob(f))}(ct));const e=new Worker(ze);e.addEventListener("message",function(u){if(S.signal&&S.signal.aborted)e.terminate();else if(u.data.progress===void 0){if(u.data.error)return h(new Error(u.data.error)),void e.terminate();D(u.data.file),e.terminate()}else S.onProgress(u.data.progress)}),e.addEventListener("error",h),S.signal&&S.signal.addEventListener("abort",()=>{h(S.signal.reason),e.terminate()}),e.postMessage({file:x,imageCompressionLibUrl:S.libURL,options:{...S,onProgress:void 0,signal:void 0}})})}function ie(x,S){return new Promise(function(D,h){let e,t,u,f,p,y;if(e={...S},u=0,{onProgress:f}=e,e.maxSizeMB=e.maxSizeMB||Number.POSITIVE_INFINITY,p=typeof e.useWebWorker!="boolean"||e.useWebWorker,delete e.useWebWorker,e.onProgress=a=>{u=a,typeof f=="function"&&f(u)},!(x instanceof Blob||x instanceof lt))return h(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(x.type))return h(new Error("The file given is not an image"));if(y=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!p||typeof Worker!="function"||y)return je(x,e).then((function(a){try{return t=a,n.call(this)}catch(d){return h(d)}}).bind(this),h);var r=(function(){try{return n.call(this)}catch(a){return h(a)}}).bind(this),i=function(a){try{return je(x,e).then(function(d){try{return t=d,r()}catch(F){return h(F)}},h)}catch(d){return h(d)}};try{return e.libURL=e.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",ut(x,e).then(function(a){try{return t=a,r()}catch{return i()}},i)}catch{i()}function n(){try{t.name=x.name,t.lastModified=x.lastModified}catch{}try{e.preserveExif&&x.type==="image/jpeg"&&(!e.fileType||e.fileType&&e.fileType===x.type)&&(t=qe(x,t))}catch{}return D(t)}})}ie.getDataUrlFromFile=$e,ie.getFilefromDataUrl=Ne,ie.loadImage=Xe,ie.drawImageInCanvas=Ye,ie.drawFileInCanvas=ke,ie.canvasToFile=Oe,ie.getExifOrientation=Je,ie.handleMaxWidthOrHeight=et,ie.followExifOrientation=tt,ie.cleanupCanvasMemory=pe,ie.isAutoOrientationInBrowser=Ce,ie.approximateBelowMaximumCanvasSizeOfBrowser=Ve,ie.copyExifWithoutOrientation=qe,ie.getBrowserName=_e,ie.version="2.0.2";module.exports=ie;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../_virtual/index4.js");/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var u;function a(){return u||(u=1,function(o){(function(){var f={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,c(r)))}return e}function c(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e!="object")return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)f.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}o.exports?(n.default=n,o.exports=n):window.classNames=n})()}(i.__module)),i.__module.exports}exports.__require=a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../_virtual/index10.js");var y;function A(){if(y)return c.__exports;y=1,Object.defineProperty(c.__exports,"__esModule",{value:!0}),c.__exports.parse=b,c.__exports.serialize=v;const h=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,w=/^[\u0021-\u003A\u003C-\u007E]*$/,g=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,S=/^[\u0020-\u003A\u003D-\u007E]*$/,p=Object.prototype.toString,E=(()=>{const r=function(){};return r.prototype=Object.create(null),r})();function b(r,i){const e=new E,a=r.length;if(a<2)return e;const u=(i==null?void 0:i.decode)||_;let t=0;do{const n=r.indexOf("=",t);if(n===-1)break;const f=r.indexOf(";",t),d=f===-1?a:f;if(n>d){t=r.lastIndexOf(";",n-1)+1;continue}const s=o(r,t,n),k=l(r,n,s),x=r.slice(s,k);if(e[x]===void 0){let m=o(r,n+1,d),O=l(r,d,m);const $=u(r.slice(m,O));e[x]=$}t=d+1}while(t<a);return e}function o(r,i,e){do{const a=r.charCodeAt(i);if(a!==32&&a!==9)return i}while(++i<e);return e}function l(r,i,e){for(;i>e;){const a=r.charCodeAt(--i);if(a!==32&&a!==9)return i+1}return e}function v(r,i,e){const a=(e==null?void 0:e.encode)||encodeURIComponent;if(!h.test(r))throw new TypeError(`argument name is invalid: ${r}`);const u=a(i);if(!w.test(u))throw new TypeError(`argument val is invalid: ${i}`);let t=r+"="+u;if(!e)return t;if(e.maxAge!==void 0){if(!Number.isInteger(e.maxAge))throw new TypeError(`option maxAge is invalid: ${e.maxAge}`);t+="; Max-Age="+e.maxAge}if(e.domain){if(!g.test(e.domain))throw new TypeError(`option domain is invalid: ${e.domain}`);t+="; Domain="+e.domain}if(e.path){if(!S.test(e.path))throw new TypeError(`option path is invalid: ${e.path}`);t+="; Path="+e.path}if(e.expires){if(!I(e.expires)||!Number.isFinite(e.expires.valueOf()))throw new TypeError(`option expires is invalid: ${e.expires}`);t+="; Expires="+e.expires.toUTCString()}if(e.httpOnly&&(t+="; HttpOnly"),e.secure&&(t+="; Secure"),e.partitioned&&(t+="; Partitioned"),e.priority)switch(typeof e.priority=="string"?e.priority.toLowerCase():void 0){case"low":t+="; Priority=Low";break;case"medium":t+="; Priority=Medium";break;case"high":t+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${e.priority}`)}if(e.sameSite)switch(typeof e.sameSite=="string"?e.sameSite.toLowerCase():e.sameSite){case!0:case"strict":t+="; SameSite=Strict";break;case"lax":t+="; SameSite=Lax";break;case"none":t+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${e.sameSite}`)}return t}function _(r){if(r.indexOf("%")===-1)return r;try{return decodeURIComponent(r)}catch{return r}}function I(r){return p.call(r)==="[object Date]"}return c.__exports}exports.__require=A;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";/*!
|
|
2
|
-
* Cropper.js v1.6.2
|
|
3
|
-
* https://fengyuanchen.github.io/cropperjs
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2015-present Chen Fengyuan
|
|
6
|
-
* Released under the MIT license
|
|
7
|
-
*
|
|
8
|
-
* Date: 2024-04-21T07:43:05.335Z
|
|
9
|
-
*/function Pt(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),e.push.apply(e,i)}return e}function Zt(a){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Pt(Object(e),!0).forEach(function(i){bi(a,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(e)):Pt(Object(e)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(e,i))})}return a}function mi(a,t){if(typeof a!="object"||!a)return a;var e=a[Symbol.toPrimitive];if(e!==void 0){var i=e.call(a,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}function Jt(a){var t=mi(a,"string");return typeof t=="symbol"?t:t+""}function vt(a){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(a)}function vi(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function kt(a,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,Jt(i.key),i)}}function wi(a,t,e){return kt(a.prototype,t),kt(a,e),Object.defineProperty(a,"prototype",{writable:!1}),a}function bi(a,t,e){return t=Jt(t),t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}function ti(a){return yi(a)||xi(a)||Di(a)||Ei()}function yi(a){if(Array.isArray(a))return wt(a)}function xi(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Di(a,t){if(a){if(typeof a=="string")return wt(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);if(e==="Object"&&a.constructor&&(e=a.constructor.name),e==="Map"||e==="Set")return Array.from(a);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return wt(a,t)}}function wt(a,t){(t==null||t>a.length)&&(t=a.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=a[e];return i}function Ei(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dt=typeof window<"u"&&typeof window.document<"u",k=dt?window:{},Ot=dt&&k.document.documentElement?"ontouchstart"in k.document.documentElement:!1,Nt=dt?"PointerEvent"in k:!1,y="cropper",At="all",ii="crop",ei="move",ai="zoom",$="e",q="w",K="s",H="n",it="ne",et="nw",at="se",rt="sw",bt="".concat(y,"-crop"),Yt="".concat(y,"-disabled"),S="".concat(y,"-hidden"),Xt="".concat(y,"-hide"),Mi="".concat(y,"-invisible"),ft="".concat(y,"-modal"),yt="".concat(y,"-move"),ot="".concat(y,"Action"),ct="".concat(y,"Preview"),St="crop",ri="move",ni="none",xt="crop",Dt="cropend",Et="cropmove",Mt="cropstart",zt="dblclick",Ti=Ot?"touchstart":"mousedown",Ci=Ot?"touchmove":"mousemove",Oi=Ot?"touchend touchcancel":"mouseup",Ht=Nt?"pointerdown":Ti,Wt=Nt?"pointermove":Ci,Ut=Nt?"pointerup pointercancel":Oi,jt="ready",Vt="resize",Gt="wheel",Tt="zoom",$t="image/jpeg",Ni=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Ai=/^data:/,Si=/^data:image\/jpeg;base64,/,Ri=/^img|canvas$/i,oi=200,si=100,qt={viewMode:0,dragMode:St,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:oi,minContainerHeight:si,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Ii='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',Li=Number.isNaN||k.isNaN;function u(a){return typeof a=="number"&&!Li(a)}var Ft=function(t){return t>0&&t<1/0};function gt(a){return typeof a>"u"}function F(a){return vt(a)==="object"&&a!==null}var Bi=Object.prototype.hasOwnProperty;function Q(a){if(!F(a))return!1;try{var t=a.constructor,e=t.prototype;return t&&e&&Bi.call(e,"isPrototypeOf")}catch{return!1}}function A(a){return typeof a=="function"}var _i=Array.prototype.slice;function hi(a){return Array.from?Array.from(a):_i.call(a)}function E(a,t){return a&&A(t)&&(Array.isArray(a)||u(a.length)?hi(a).forEach(function(e,i){t.call(a,e,i,a)}):F(a)&&Object.keys(a).forEach(function(e){t.call(a,a[e],e,a)})),a}var x=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return F(t)&&i.length>0&&i.forEach(function(r){F(r)&&Object.keys(r).forEach(function(n){t[n]=r[n]})}),t},Pi=/\.\d*(?:0|9){12}\d*$/;function J(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Pi.test(a)?Math.round(a*t)/t:a}var ki=/^width|height|left|top|marginLeft|marginTop$/;function W(a,t){var e=a.style;E(t,function(i,o){ki.test(o)&&u(i)&&(i="".concat(i,"px")),e[o]=i})}function Yi(a,t){return a.classList?a.classList.contains(t):a.className.indexOf(t)>-1}function O(a,t){if(t){if(u(a.length)){E(a,function(i){O(i,t)});return}if(a.classList){a.classList.add(t);return}var e=a.className.trim();e?e.indexOf(t)<0&&(a.className="".concat(e," ").concat(t)):a.className=t}}function P(a,t){if(t){if(u(a.length)){E(a,function(e){P(e,t)});return}if(a.classList){a.classList.remove(t);return}a.className.indexOf(t)>=0&&(a.className=a.className.replace(t,""))}}function Z(a,t,e){if(t){if(u(a.length)){E(a,function(i){Z(i,t,e)});return}e?O(a,t):P(a,t)}}var Xi=/([a-z\d])([A-Z])/g;function Rt(a){return a.replace(Xi,"$1-$2").toLowerCase()}function Ct(a,t){return F(a[t])?a[t]:a.dataset?a.dataset[t]:a.getAttribute("data-".concat(Rt(t)))}function st(a,t,e){F(e)?a[t]=e:a.dataset?a.dataset[t]=e:a.setAttribute("data-".concat(Rt(t)),e)}function zi(a,t){if(F(a[t]))try{delete a[t]}catch{a[t]=void 0}else if(a.dataset)try{delete a.dataset[t]}catch{a.dataset[t]=void 0}else a.removeAttribute("data-".concat(Rt(t)))}var ci=/\s\s*/,li=function(){var a=!1;if(dt){var t=!1,e=function(){},i=Object.defineProperty({},"once",{get:function(){return a=!0,t},set:function(r){t=r}});k.addEventListener("test",e,i),k.removeEventListener("test",e,i)}return a}();function B(a,t,e){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=e;t.trim().split(ci).forEach(function(r){if(!li){var n=a.listeners;n&&n[r]&&n[r][e]&&(o=n[r][e],delete n[r][e],Object.keys(n[r]).length===0&&delete n[r],Object.keys(n).length===0&&delete a.listeners)}a.removeEventListener(r,o,i)})}function L(a,t,e){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=e;t.trim().split(ci).forEach(function(r){if(i.once&&!li){var n=a.listeners,s=n===void 0?{}:n;o=function(){delete s[r][e],a.removeEventListener(r,o,i);for(var l=arguments.length,h=new Array(l),c=0;c<l;c++)h[c]=arguments[c];e.apply(a,h)},s[r]||(s[r]={}),s[r][e]&&a.removeEventListener(r,s[r][e],i),s[r][e]=o,a.listeners=s}a.addEventListener(r,o,i)})}function tt(a,t,e){var i;return A(Event)&&A(CustomEvent)?i=new CustomEvent(t,{detail:e,bubbles:!0,cancelable:!0}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(t,!0,!0,e)),a.dispatchEvent(i)}function fi(a){var t=a.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var mt=k.location,Hi=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Kt(a){var t=a.match(Hi);return t!==null&&(t[1]!==mt.protocol||t[2]!==mt.hostname||t[3]!==mt.port)}function Qt(a){var t="timestamp=".concat(new Date().getTime());return a+(a.indexOf("?")===-1?"?":"&")+t}function nt(a){var t=a.rotate,e=a.scaleX,i=a.scaleY,o=a.translateX,r=a.translateY,n=[];u(o)&&o!==0&&n.push("translateX(".concat(o,"px)")),u(r)&&r!==0&&n.push("translateY(".concat(r,"px)")),u(t)&&t!==0&&n.push("rotate(".concat(t,"deg)")),u(e)&&e!==1&&n.push("scaleX(".concat(e,")")),u(i)&&i!==1&&n.push("scaleY(".concat(i,")"));var s=n.length?n.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function Wi(a){var t=Zt({},a),e=0;return E(a,function(i,o){delete t[o],E(t,function(r){var n=Math.abs(i.startX-r.startX),s=Math.abs(i.startY-r.startY),d=Math.abs(i.endX-r.endX),l=Math.abs(i.endY-r.endY),h=Math.sqrt(n*n+s*s),c=Math.sqrt(d*d+l*l),f=(c-h)/h;Math.abs(f)>Math.abs(e)&&(e=f)})}),e}function lt(a,t){var e=a.pageX,i=a.pageY,o={endX:e,endY:i};return t?o:Zt({startX:e,startY:i},o)}function Ui(a){var t=0,e=0,i=0;return E(a,function(o){var r=o.startX,n=o.startY;t+=r,e+=n,i+=1}),t/=i,e/=i,{pageX:t,pageY:e}}function U(a){var t=a.aspectRatio,e=a.height,i=a.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",r=Ft(i),n=Ft(e);if(r&&n){var s=e*t;o==="contain"&&s>i||o==="cover"&&s<i?e=i/t:i=e*t}else r?e=i/t:n&&(i=e*t);return{width:i,height:e}}function ji(a){var t=a.width,e=a.height,i=a.degree;if(i=Math.abs(i)%180,i===90)return{width:e,height:t};var o=i%90*Math.PI/180,r=Math.sin(o),n=Math.cos(o),s=t*n+e*r,d=t*r+e*n;return i>90?{width:d,height:s}:{width:s,height:d}}function Vi(a,t,e,i){var o=t.aspectRatio,r=t.naturalWidth,n=t.naturalHeight,s=t.rotate,d=s===void 0?0:s,l=t.scaleX,h=l===void 0?1:l,c=t.scaleY,f=c===void 0?1:c,m=e.aspectRatio,g=e.naturalWidth,b=e.naturalHeight,v=i.fillColor,M=v===void 0?"transparent":v,C=i.imageSmoothingEnabled,D=C===void 0?!0:C,Y=i.imageSmoothingQuality,R=Y===void 0?"low":Y,p=i.maxWidth,w=p===void 0?1/0:p,T=i.maxHeight,I=T===void 0?1/0:T,X=i.minWidth,j=X===void 0?0:X,V=i.minHeight,z=V===void 0?0:V,_=document.createElement("canvas"),N=_.getContext("2d"),G=U({aspectRatio:m,width:w,height:I}),ht=U({aspectRatio:m,width:j,height:z},"cover"),pt=Math.min(G.width,Math.max(ht.width,g)),ut=Math.min(G.height,Math.max(ht.height,b)),It=U({aspectRatio:o,width:w,height:I}),Lt=U({aspectRatio:o,width:j,height:z},"cover"),Bt=Math.min(It.width,Math.max(Lt.width,r)),_t=Math.min(It.height,Math.max(Lt.height,n)),ui=[-Bt/2,-_t/2,Bt,_t];return _.width=J(pt),_.height=J(ut),N.fillStyle=M,N.fillRect(0,0,pt,ut),N.save(),N.translate(pt/2,ut/2),N.rotate(d*Math.PI/180),N.scale(h,f),N.imageSmoothingEnabled=D,N.imageSmoothingQuality=R,N.drawImage.apply(N,[a].concat(ti(ui.map(function(gi){return Math.floor(J(gi))})))),N.restore(),_}var di=String.fromCharCode;function Gi(a,t,e){var i="";e+=t;for(var o=t;o<e;o+=1)i+=di(a.getUint8(o));return i}var $i=/^data:.*,/;function qi(a){var t=a.replace($i,""),e=atob(t),i=new ArrayBuffer(e.length),o=new Uint8Array(i);return E(o,function(r,n){o[n]=e.charCodeAt(n)}),i}function Fi(a,t){for(var e=[],i=8192,o=new Uint8Array(a);o.length>0;)e.push(di.apply(null,hi(o.subarray(0,i)))),o=o.subarray(i);return"data:".concat(t,";base64,").concat(btoa(e.join("")))}function Ki(a){var t=new DataView(a),e;try{var i,o,r;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var n=t.byteLength,s=2;s+1<n;){if(t.getUint8(s)===255&&t.getUint8(s+1)===225){o=s;break}s+=1}if(o){var d=o+4,l=o+10;if(Gi(t,d,4)==="Exif"){var h=t.getUint16(l);if(i=h===18761,(i||h===19789)&&t.getUint16(l+2,i)===42){var c=t.getUint32(l+4,i);c>=8&&(r=l+c)}}}if(r){var f=t.getUint16(r,i),m,g;for(g=0;g<f;g+=1)if(m=r+g*12+2,t.getUint16(m,i)===274){m+=8,e=t.getUint16(m,i),t.setUint16(m,1,i);break}}}catch{e=1}return e}function Qi(a){var t=0,e=1,i=1;switch(a){case 2:e=-1;break;case 3:t=-180;break;case 4:i=-1;break;case 5:t=90,i=-1;break;case 6:t=90;break;case 7:t=90,e=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:e,scaleY:i}}var Zi={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,o=this.cropper,r=Number(e.minContainerWidth),n=Number(e.minContainerHeight);O(o,S),P(t,S);var s={width:Math.max(i.offsetWidth,r>=0?r:oi),height:Math.max(i.offsetHeight,n>=0?n:si)};this.containerData=s,W(o,{width:s.width,height:s.height}),O(t,S),P(o,S)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,o=Math.abs(e.rotate)%180===90,r=o?e.naturalHeight:e.naturalWidth,n=o?e.naturalWidth:e.naturalHeight,s=r/n,d=t.width,l=t.height;t.height*s>t.width?i===3?d=t.height*s:l=t.width/s:i===3?l=t.width/s:d=t.height*s;var h={aspectRatio:s,naturalWidth:r,naturalHeight:n,width:d,height:l};this.canvasData=h,this.limited=i===1||i===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(t.width-h.width)/2,h.top=(t.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=x({},h)},limitCanvas:function(t,e){var i=this.options,o=this.containerData,r=this.canvasData,n=this.cropBoxData,s=i.viewMode,d=r.aspectRatio,l=this.cropped&&n;if(t){var h=Number(i.minCanvasWidth)||0,c=Number(i.minCanvasHeight)||0;s>1?(h=Math.max(h,o.width),c=Math.max(c,o.height),s===3&&(c*d>h?h=c*d:c=h/d)):s>0&&(h?h=Math.max(h,l?n.width:0):c?c=Math.max(c,l?n.height:0):l&&(h=n.width,c=n.height,c*d>h?h=c*d:c=h/d));var f=U({aspectRatio:d,width:h,height:c});h=f.width,c=f.height,r.minWidth=h,r.minHeight=c,r.maxWidth=1/0,r.maxHeight=1/0}if(e)if(s>(l?0:1)){var m=o.width-r.width,g=o.height-r.height;r.minLeft=Math.min(0,m),r.minTop=Math.min(0,g),r.maxLeft=Math.max(0,m),r.maxTop=Math.max(0,g),l&&this.limited&&(r.minLeft=Math.min(n.left,n.left+(n.width-r.width)),r.minTop=Math.min(n.top,n.top+(n.height-r.height)),r.maxLeft=n.left,r.maxTop=n.top,s===2&&(r.width>=o.width&&(r.minLeft=Math.min(0,m),r.maxLeft=Math.max(0,m)),r.height>=o.height&&(r.minTop=Math.min(0,g),r.maxTop=Math.max(0,g))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=o.width,r.maxTop=o.height},renderCanvas:function(t,e){var i=this.canvasData,o=this.imageData;if(e){var r=ji({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),n=r.width,s=r.height,d=i.width*(n/i.naturalWidth),l=i.height*(s/i.naturalHeight);i.left-=(d-i.width)/2,i.top-=(l-i.height)/2,i.width=d,i.height=l,i.aspectRatio=n/s,i.naturalWidth=n,i.naturalHeight=s,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,W(this.canvas,x({width:i.width,height:i.height},nt({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,o=i.naturalWidth*(e.width/e.naturalWidth),r=i.naturalHeight*(e.height/e.naturalHeight);x(i,{width:o,height:r,left:(e.width-o)/2,top:(e.height-r)/2}),W(this.image,x({width:i.width,height:i.height},nt(x({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,o=Number(t.autoCropArea)||.8,r={width:e.width,height:e.height};i&&(e.height*i>e.width?r.height=r.width/i:r.width=r.height*i),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*o),r.height=Math.max(r.minHeight,r.height*o),r.left=e.left+(e.width-r.width)/2,r.top=e.top+(e.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=x({},r)},limitCropBox:function(t,e){var i=this.options,o=this.containerData,r=this.canvasData,n=this.cropBoxData,s=this.limited,d=i.aspectRatio;if(t){var l=Number(i.minCropBoxWidth)||0,h=Number(i.minCropBoxHeight)||0,c=s?Math.min(o.width,r.width,r.width+r.left,o.width-r.left):o.width,f=s?Math.min(o.height,r.height,r.height+r.top,o.height-r.top):o.height;l=Math.min(l,o.width),h=Math.min(h,o.height),d&&(l&&h?h*d>l?h=l/d:l=h*d:l?h=l/d:h&&(l=h*d),f*d>c?f=c/d:c=f*d),n.minWidth=Math.min(l,c),n.minHeight=Math.min(h,f),n.maxWidth=c,n.maxHeight=f}e&&(s?(n.minLeft=Math.max(0,r.left),n.minTop=Math.max(0,r.top),n.maxLeft=Math.min(o.width,r.left+r.width)-n.width,n.maxTop=Math.min(o.height,r.top+r.height)-n.height):(n.minLeft=0,n.minTop=0,n.maxLeft=o.width-n.width,n.maxTop=o.height-n.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&st(this.face,ot,i.width>=e.width&&i.height>=e.height?ei:At),W(this.cropBox,x({width:i.width,height:i.height},nt({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),tt(this.element,xt,this.getData())}},Ji={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,o=e?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",n=document.createElement("img");if(e&&(n.crossOrigin=e),n.src=o,n.alt=r,this.viewBox.appendChild(n),this.viewBoxImage=n,!!i){var s=i;typeof i=="string"?s=t.ownerDocument.querySelectorAll(i):i.querySelector&&(s=[i]),this.previews=s,E(s,function(d){var l=document.createElement("img");st(d,ct,{width:d.offsetWidth,height:d.offsetHeight,html:d.innerHTML}),e&&(l.crossOrigin=e),l.src=o,l.alt=r,l.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',d.innerHTML="",d.appendChild(l)})}},resetPreview:function(){E(this.previews,function(t){var e=Ct(t,ct);W(t,{width:e.width,height:e.height}),t.innerHTML=e.html,zi(t,ct)})},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,o=i.width,r=i.height,n=t.width,s=t.height,d=i.left-e.left-t.left,l=i.top-e.top-t.top;!this.cropped||this.disabled||(W(this.viewBoxImage,x({width:n,height:s},nt(x({translateX:-d,translateY:-l},t)))),E(this.previews,function(h){var c=Ct(h,ct),f=c.width,m=c.height,g=f,b=m,v=1;o&&(v=f/o,b=r*v),r&&b>m&&(v=m/r,g=o*v,b=m),W(h,{width:g,height:b}),W(h.getElementsByTagName("img")[0],x({width:n*v,height:s*v},nt(x({translateX:-d*v,translateY:-l*v},t))))}))}},te={bind:function(){var t=this.element,e=this.options,i=this.cropper;A(e.cropstart)&&L(t,Mt,e.cropstart),A(e.cropmove)&&L(t,Et,e.cropmove),A(e.cropend)&&L(t,Dt,e.cropend),A(e.crop)&&L(t,xt,e.crop),A(e.zoom)&&L(t,Tt,e.zoom),L(i,Ht,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&L(i,Gt,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&L(i,zt,this.onDblclick=this.dblclick.bind(this)),L(t.ownerDocument,Wt,this.onCropMove=this.cropMove.bind(this)),L(t.ownerDocument,Ut,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&L(window,Vt,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;A(e.cropstart)&&B(t,Mt,e.cropstart),A(e.cropmove)&&B(t,Et,e.cropmove),A(e.cropend)&&B(t,Dt,e.cropend),A(e.crop)&&B(t,xt,e.crop),A(e.zoom)&&B(t,Tt,e.zoom),B(i,Ht,this.onCropStart),e.zoomable&&e.zoomOnWheel&&B(i,Gt,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&B(i,zt,this.onDblclick),B(t.ownerDocument,Wt,this.onCropMove),B(t.ownerDocument,Ut,this.onCropEnd),e.responsive&&B(window,Vt,this.onResize)}},ie={resize:function(){if(!this.disabled){var t=this.options,e=this.container,i=this.containerData,o=e.offsetWidth/i.width,r=e.offsetHeight/i.height,n=Math.abs(o-1)>Math.abs(r-1)?o:r;if(n!==1){var s,d;t.restore&&(s=this.getCanvasData(),d=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(E(s,function(l,h){s[h]=l*n})),this.setCropBoxData(E(d,function(l,h){d[h]=l*n})))}}},dblclick:function(){this.disabled||this.options.dragMode===ni||this.setDragMode(Yi(this.dragBox,bt)?ri:St)},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?o=t.deltaY>0?1:-1:t.wheelDelta?o=-t.wheelDelta/120:t.detail&&(o=t.detail>0?1:-1),this.zoom(-o*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(u(e)&&e!==1||u(i)&&i!==0||t.ctrlKey))){var o=this.options,r=this.pointers,n;t.changedTouches?E(t.changedTouches,function(s){r[s.identifier]=lt(s)}):r[t.pointerId||0]=lt(t),Object.keys(r).length>1&&o.zoomable&&o.zoomOnTouch?n=ai:n=Ct(t.target,ot),Ni.test(n)&&tt(this.element,Mt,{originalEvent:t,action:n})!==!1&&(t.preventDefault(),this.action=n,this.cropping=!1,n===ii&&(this.cropping=!0,O(this.dragBox,ft)))}},cropMove:function(t){var e=this.action;if(!(this.disabled||!e)){var i=this.pointers;t.preventDefault(),tt(this.element,Et,{originalEvent:t,action:e})!==!1&&(t.changedTouches?E(t.changedTouches,function(o){x(i[o.identifier]||{},lt(o,!0))}):x(i[t.pointerId||0]||{},lt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?E(t.changedTouches,function(o){delete i[o.identifier]}):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,Z(this.dragBox,ft,this.cropped&&this.options.modal)),tt(this.element,Dt,{originalEvent:t,action:e}))}}},ee={change:function(t){var e=this.options,i=this.canvasData,o=this.containerData,r=this.cropBoxData,n=this.pointers,s=this.action,d=e.aspectRatio,l=r.left,h=r.top,c=r.width,f=r.height,m=l+c,g=h+f,b=0,v=0,M=o.width,C=o.height,D=!0,Y;!d&&t.shiftKey&&(d=c&&f?c/f:1),this.limited&&(b=r.minLeft,v=r.minTop,M=b+Math.min(o.width,i.width,i.left+i.width),C=v+Math.min(o.height,i.height,i.top+i.height));var R=n[Object.keys(n)[0]],p={x:R.endX-R.startX,y:R.endY-R.startY},w=function(I){switch(I){case $:m+p.x>M&&(p.x=M-m);break;case q:l+p.x<b&&(p.x=b-l);break;case H:h+p.y<v&&(p.y=v-h);break;case K:g+p.y>C&&(p.y=C-g);break}};switch(s){case At:l+=p.x,h+=p.y;break;case $:if(p.x>=0&&(m>=M||d&&(h<=v||g>=C))){D=!1;break}w($),c+=p.x,c<0&&(s=q,c=-c,l-=c),d&&(f=c/d,h+=(r.height-f)/2);break;case H:if(p.y<=0&&(h<=v||d&&(l<=b||m>=M))){D=!1;break}w(H),f-=p.y,h+=p.y,f<0&&(s=K,f=-f,h-=f),d&&(c=f*d,l+=(r.width-c)/2);break;case q:if(p.x<=0&&(l<=b||d&&(h<=v||g>=C))){D=!1;break}w(q),c-=p.x,l+=p.x,c<0&&(s=$,c=-c,l-=c),d&&(f=c/d,h+=(r.height-f)/2);break;case K:if(p.y>=0&&(g>=C||d&&(l<=b||m>=M))){D=!1;break}w(K),f+=p.y,f<0&&(s=H,f=-f,h-=f),d&&(c=f*d,l+=(r.width-c)/2);break;case it:if(d){if(p.y<=0&&(h<=v||m>=M)){D=!1;break}w(H),f-=p.y,h+=p.y,c=f*d}else w(H),w($),p.x>=0?m<M?c+=p.x:p.y<=0&&h<=v&&(D=!1):c+=p.x,p.y<=0?h>v&&(f-=p.y,h+=p.y):(f-=p.y,h+=p.y);c<0&&f<0?(s=rt,f=-f,c=-c,h-=f,l-=c):c<0?(s=et,c=-c,l-=c):f<0&&(s=at,f=-f,h-=f);break;case et:if(d){if(p.y<=0&&(h<=v||l<=b)){D=!1;break}w(H),f-=p.y,h+=p.y,c=f*d,l+=r.width-c}else w(H),w(q),p.x<=0?l>b?(c-=p.x,l+=p.x):p.y<=0&&h<=v&&(D=!1):(c-=p.x,l+=p.x),p.y<=0?h>v&&(f-=p.y,h+=p.y):(f-=p.y,h+=p.y);c<0&&f<0?(s=at,f=-f,c=-c,h-=f,l-=c):c<0?(s=it,c=-c,l-=c):f<0&&(s=rt,f=-f,h-=f);break;case rt:if(d){if(p.x<=0&&(l<=b||g>=C)){D=!1;break}w(q),c-=p.x,l+=p.x,f=c/d}else w(K),w(q),p.x<=0?l>b?(c-=p.x,l+=p.x):p.y>=0&&g>=C&&(D=!1):(c-=p.x,l+=p.x),p.y>=0?g<C&&(f+=p.y):f+=p.y;c<0&&f<0?(s=it,f=-f,c=-c,h-=f,l-=c):c<0?(s=at,c=-c,l-=c):f<0&&(s=et,f=-f,h-=f);break;case at:if(d){if(p.x>=0&&(m>=M||g>=C)){D=!1;break}w($),c+=p.x,f=c/d}else w(K),w($),p.x>=0?m<M?c+=p.x:p.y>=0&&g>=C&&(D=!1):c+=p.x,p.y>=0?g<C&&(f+=p.y):f+=p.y;c<0&&f<0?(s=et,f=-f,c=-c,h-=f,l-=c):c<0?(s=rt,c=-c,l-=c):f<0&&(s=it,f=-f,h-=f);break;case ei:this.move(p.x,p.y),D=!1;break;case ai:this.zoom(Wi(n),t),D=!1;break;case ii:if(!p.x||!p.y){D=!1;break}Y=fi(this.cropper),l=R.startX-Y.left,h=R.startY-Y.top,c=r.minWidth,f=r.minHeight,p.x>0?s=p.y>0?at:it:p.x<0&&(l-=c,s=p.y>0?rt:et),p.y<0&&(h-=f),this.cropped||(P(this.cropBox,S),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}D&&(r.width=c,r.height=f,r.left=l,r.top=h,this.action=s,this.renderCropBox()),E(n,function(T){T.startX=T.endX,T.startY=T.endY})}},ae={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&O(this.dragBox,ft),P(this.cropBox,S),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=x({},this.initialImageData),this.canvasData=x({},this.initialCanvasData),this.cropBoxData=x({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(x(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),P(this.dragBox,ft),O(this.cropBox,S)),this},replace:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,E(this.previews,function(i){i.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,P(this.cropper,Yt)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,O(this.cropper,Yt)),this},destroy:function(){var t=this.element;return t[y]?(t[y]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.canvasData,o=i.left,r=i.top;return this.moveTo(gt(t)?t:o+Number(t),gt(e)?e:r+Number(e))},moveTo:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.canvasData,o=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(u(t)&&(i.left=t,o=!0),u(e)&&(i.top=e,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var o=this.options,r=this.canvasData,n=r.width,s=r.height,d=r.naturalWidth,l=r.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&o.zoomable){var h=d*t,c=l*t;if(tt(this.element,Tt,{ratio:t,oldRatio:n/d,originalEvent:i})===!1)return this;if(i){var f=this.pointers,m=fi(this.cropper),g=f&&Object.keys(f).length?Ui(f):{pageX:i.pageX,pageY:i.pageY};r.left-=(h-n)*((g.pageX-m.left-r.left)/n),r.top-=(c-s)*((g.pageY-m.top-r.top)/s)}else Q(e)&&u(e.x)&&u(e.y)?(r.left-=(h-n)*((e.x-r.left)/n),r.top-=(c-s)*((e.y-r.top)/s)):(r.left-=(h-n)/2,r.top-=(c-s)/2);r.width=h,r.height=c,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),u(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,u(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(u(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,i=this.imageData,o=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(u(t)&&(i.scaleX=t,o=!0),u(e)&&(i.scaleY=e,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.options,i=this.imageData,o=this.canvasData,r=this.cropBoxData,n;if(this.ready&&this.cropped){n={x:r.left-o.left,y:r.top-o.top,width:r.width,height:r.height};var s=i.width/i.naturalWidth;if(E(n,function(h,c){n[c]=h/s}),t){var d=Math.round(n.y+n.height),l=Math.round(n.x+n.width);n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=l-n.x,n.height=d-n.y}}else n={x:0,y:0,width:0,height:0};return e.rotatable&&(n.rotate=i.rotate||0),e.scalable&&(n.scaleX=i.scaleX||1,n.scaleY=i.scaleY||1),n},setData:function(t){var e=this.options,i=this.imageData,o=this.canvasData,r={};if(this.ready&&!this.disabled&&Q(t)){var n=!1;e.rotatable&&u(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,n=!0),e.scalable&&(u(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,n=!0),u(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,n=!0)),n&&this.renderCanvas(!0,!0);var s=i.width/i.naturalWidth;u(t.x)&&(r.left=t.x*s+o.left),u(t.y)&&(r.top=t.y*s+o.top),u(t.width)&&(r.width=t.width*s),u(t.height)&&(r.height=t.height*s),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?x({},this.containerData):{}},getImageData:function(){return this.sized?x({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&E(["left","top","width","height","naturalWidth","naturalHeight"],function(i){e[i]=t[i]}),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&Q(t)&&(u(t.left)&&(e.left=t.left),u(t.top)&&(e.top=t.top),u(t.width)?(e.width=t.width,e.height=t.width/i):u(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,e;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(t){var e=this.cropBoxData,i=this.options.aspectRatio,o,r;return this.ready&&this.cropped&&!this.disabled&&Q(t)&&(u(t.left)&&(e.left=t.left),u(t.top)&&(e.top=t.top),u(t.width)&&t.width!==e.width&&(o=!0,e.width=t.width),u(t.height)&&t.height!==e.height&&(r=!0,e.height=t.height),i&&(o?e.height=e.width/i:r&&(e.width=e.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=Vi(this.image,this.imageData,e,t);if(!this.cropped)return i;var o=this.getData(t.rounded),r=o.x,n=o.y,s=o.width,d=o.height,l=i.width/Math.floor(e.naturalWidth);l!==1&&(r*=l,n*=l,s*=l,d*=l);var h=s/d,c=U({aspectRatio:h,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),f=U({aspectRatio:h,width:t.minWidth||0,height:t.minHeight||0},"cover"),m=U({aspectRatio:h,width:t.width||(l!==1?i.width:s),height:t.height||(l!==1?i.height:d)}),g=m.width,b=m.height;g=Math.min(c.width,Math.max(f.width,g)),b=Math.min(c.height,Math.max(f.height,b));var v=document.createElement("canvas"),M=v.getContext("2d");v.width=J(g),v.height=J(b),M.fillStyle=t.fillColor||"transparent",M.fillRect(0,0,g,b);var C=t.imageSmoothingEnabled,D=C===void 0?!0:C,Y=t.imageSmoothingQuality;M.imageSmoothingEnabled=D,Y&&(M.imageSmoothingQuality=Y);var R=i.width,p=i.height,w=r,T=n,I,X,j,V,z,_;w<=-s||w>R?(w=0,I=0,j=0,z=0):w<=0?(j=-w,w=0,I=Math.min(R,s+w),z=I):w<=R&&(j=0,I=Math.min(s,R-w),z=I),I<=0||T<=-d||T>p?(T=0,X=0,V=0,_=0):T<=0?(V=-T,T=0,X=Math.min(p,d+T),_=X):T<=p&&(V=0,X=Math.min(d,p-T),_=X);var N=[w,T,I,X];if(z>0&&_>0){var G=g/s;N.push(j*G,V*G,z*G,_*G)}return M.drawImage.apply(M,[i].concat(ti(N.map(function(ht){return Math.floor(J(ht))})))),v},setAspectRatio:function(t){var e=this.options;return!this.disabled&&!gt(t)&&(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var r=t===St,n=e.movable&&t===ri;t=r||n?t:ni,e.dragMode=t,st(i,ot,t),Z(i,bt,r),Z(i,yt,n),e.cropBoxMovable||(st(o,ot,t),Z(o,bt,r),Z(o,yt,n))}return this}},re=k.Cropper,pi=function(){function a(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(vi(this,a),!t||!Ri.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=x({},qt,Q(e)&&e),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return wi(a,[{key:"init",value:function(){var e=this.element,i=e.tagName.toLowerCase(),o;if(!e[y]){if(e[y]=this,i==="img"){if(this.isImg=!0,o=e.getAttribute("src")||"",this.originalUrl=o,!o)return;o=e.src}else i==="canvas"&&window.HTMLCanvasElement&&(o=e.toDataURL());this.load(o)}}},{key:"load",value:function(e){var i=this;if(e){this.url=e,this.imageData={};var o=this.element,r=this.options;if(!r.rotatable&&!r.scalable&&(r.checkOrientation=!1),!r.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Ai.test(e)){Si.test(e)?this.read(qi(e)):this.clone();return}var n=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=n,n.onabort=s,n.onerror=s,n.ontimeout=s,n.onprogress=function(){n.getResponseHeader("content-type")!==$t&&n.abort()},n.onload=function(){i.read(n.response)},n.onloadend=function(){i.reloading=!1,i.xhr=null},r.checkCrossOrigin&&Kt(e)&&o.crossOrigin&&(e=Qt(e)),n.open("GET",e,!0),n.responseType="arraybuffer",n.withCredentials=o.crossOrigin==="use-credentials",n.send()}}},{key:"read",value:function(e){var i=this.options,o=this.imageData,r=Ki(e),n=0,s=1,d=1;if(r>1){this.url=Fi(e,$t);var l=Qi(r);n=l.rotate,s=l.scaleX,d=l.scaleY}i.rotatable&&(o.rotate=n),i.scalable&&(o.scaleX=s,o.scaleY=d),this.clone()}},{key:"clone",value:function(){var e=this.element,i=this.url,o=e.crossOrigin,r=i;this.options.checkCrossOrigin&&Kt(i)&&(o||(o="anonymous"),r=Qt(i)),this.crossOrigin=o,this.crossOriginUrl=r;var n=document.createElement("img");o&&(n.crossOrigin=o),n.src=r||i,n.alt=e.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),O(n,Xt),e.parentNode.insertBefore(n,e.nextSibling)}},{key:"start",value:function(){var e=this,i=this.image;i.onload=null,i.onerror=null,this.sizing=!0;var o=k.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(k.navigator.userAgent),r=function(l,h){x(e.imageData,{naturalWidth:l,naturalHeight:h,aspectRatio:l/h}),e.initialImageData=x({},e.imageData),e.sizing=!1,e.sized=!0,e.build()};if(i.naturalWidth&&!o){r(i.naturalWidth,i.naturalHeight);return}var n=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){r(n.width,n.height),o||s.removeChild(n)},n.src=i.src,o||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",s.appendChild(n))}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var e=this.element,i=this.options,o=this.image,r=e.parentNode,n=document.createElement("div");n.innerHTML=Ii;var s=n.querySelector(".".concat(y,"-container")),d=s.querySelector(".".concat(y,"-canvas")),l=s.querySelector(".".concat(y,"-drag-box")),h=s.querySelector(".".concat(y,"-crop-box")),c=h.querySelector(".".concat(y,"-face"));this.container=r,this.cropper=s,this.canvas=d,this.dragBox=l,this.cropBox=h,this.viewBox=s.querySelector(".".concat(y,"-view-box")),this.face=c,d.appendChild(o),O(e,S),r.insertBefore(s,e.nextSibling),P(o,Xt),this.initPreview(),this.bind(),i.initialAspectRatio=Math.max(0,i.initialAspectRatio)||NaN,i.aspectRatio=Math.max(0,i.aspectRatio)||NaN,i.viewMode=Math.max(0,Math.min(3,Math.round(i.viewMode)))||0,O(h,S),i.guides||O(h.getElementsByClassName("".concat(y,"-dashed")),S),i.center||O(h.getElementsByClassName("".concat(y,"-center")),S),i.background&&O(s,"".concat(y,"-bg")),i.highlight||O(c,Mi),i.cropBoxMovable&&(O(c,yt),st(c,ot,At)),i.cropBoxResizable||(O(h.getElementsByClassName("".concat(y,"-line")),S),O(h.getElementsByClassName("".concat(y,"-point")),S)),this.render(),this.ready=!0,this.setDragMode(i.dragMode),i.autoCrop&&this.crop(),this.setData(i.data),A(i.ready)&&L(e,jt,i.ready,{once:!0}),tt(e,jt)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var e=this.cropper.parentNode;e&&e.removeChild(this.cropper),P(this.element,S)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=re,a}},{key:"setDefaults",value:function(e){x(qt,Q(e)&&e)}}])}();x(pi.prototype,Zi,Ji,te,ie,ee,ae);module.exports=pi;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../_virtual/index9.js");var h;function b(){if(h)return m.__exports;h=1,m.__exports.match=y,m.__exports.parse=d;var _=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,x=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,E=/^(?:(min|max)-)?(.+)/,w=/(em|rem|px|cm|mm|in|pt|pc)?$/,R=/(dpi|dpcm|dppx)?$/;function y(s,e){return d(s).some(function(r){var n=r.inverse,u=r.type==="all"||e.type===r.type;if(u&&n||!(u||n))return!1;var i=r.expressions.every(function(c){var o=c.feature,p=c.modifier,t=c.value,a=e[o];if(!a)return!1;switch(o){case"orientation":case"scan":return a.toLowerCase()===t.toLowerCase();case"width":case"height":case"device-width":case"device-height":t=v(t),a=v(a);break;case"resolution":t=l(t),a=l(a);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":t=f(t),a=f(a);break;case"grid":case"color":case"color-index":case"monochrome":t=parseInt(t,10)||1,a=parseInt(a,10)||0;break}switch(p){case"min":return a>=t;case"max":return a<=t;default:return a===t}});return i&&!n||!i&&n})}function d(s){return s.split(",").map(function(e){e=e.trim();var r=e.match(_),n=r[1],u=r[2],i=r[3]||"",c={};return c.inverse=!!n&&n.toLowerCase()==="not",c.type=u?u.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],c.expressions=i.map(function(o){var p=o.match(x),t=p[1].toLowerCase().match(E);return{modifier:t[1],feature:t[2],value:p[2]}}),c})}function f(s){var e=Number(s),r;return e||(r=s.match(/^(\d+)\s*\/\s*(\d+)$/),e=r[1]/r[2]),e}function l(s){var e=parseFloat(s),r=String(s).match(R)[1];switch(r){case"dpcm":return e/2.54;case"dppx":return e*96;default:return e}}function v(s){var e=parseFloat(s),r=String(s).match(w)[1];switch(r){case"em":return e*16;case"rem":return e*16;case"cm":return e*96/2.54;case"mm":return e*96/2.54/10;case"in":return e*96;case"pt":return e*72;case"pc":return e*72/12;default:return e}}return m.__exports}exports.__require=b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../_virtual/dayjs.min2.js");var G=C.__module.exports,V;function K(){return V||(V=1,function(P,X){(function(A,k){P.exports=k()})(G,function(){var A=1e3,k=6e4,U=36e5,I="millisecond",p="second",_="minute",w="hour",M="day",H="week",m="month",F="quarter",y="year",O="date",J="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var n=["th","st","nd","rd"],t=i%100;return"["+i+(n[(t-20)%10]||n[t]||n[0])+"]"}},q=function(i,n,t){var r=String(i);return!r||r.length>=n?i:""+Array(n+1-r.length).join(t)+i},R={s:q,z:function(i){var n=-i.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+q(r,2,"0")+":"+q(e,2,"0")},m:function i(n,t){if(n.date()<t.date())return-i(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,m),s=t-e<0,u=n.clone().add(r+(s?-1:1),m);return+(-(r+(t-e)/(s?e-u:u-e))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M:m,y,w:H,d:M,D:O,h:w,m:_,s:p,ms:I,Q:F}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},x="en",D={};D[x]=Q;var Z="$isDayjsObject",N=function(i){return i instanceof L||!(!i||!i[Z])},j=function i(n,t,r){var e;if(!n)return x;if(typeof n=="string"){var s=n.toLowerCase();D[s]&&(e=s),t&&(D[s]=t,e=s);var u=n.split("-");if(!e&&u.length>1)return i(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(i,n){if(N(i))return i.clone();var t=typeof n=="object"?n:{};return t.date=i,t.args=arguments,new L(t)},a=R;a.l=j,a.i=N,a.w=function(i,n){return f(i,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var L=function(){function i(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=i.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,s=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return s?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,s=!!a.u(r)||r,u=a.p(t),o=function(S,$){var v=a.w(e.$u?Date.UTC(e.$y,$,S):new Date(e.$y,$,S),e);return s?v:v.endOf(M)},c=function(S,$){return a.w(e.toDate()[S].apply(e.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,d=this.$M,l=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case y:return s?o(1,0):o(31,11);case m:return s?o(1,d):o(0,d+1);case H:var g=this.$locale().weekStart||0,T=(h<g?h+7:h)-g;return o(s?l-T:l+(6-T),d);case M:case O:return c(b+"Hours",0);case w:return c(b+"Minutes",1);case _:return c(b+"Seconds",2);case p:return c(b+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,s=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[M]=u+"Date",e[O]=u+"Date",e[m]=u+"Month",e[y]=u+"FullYear",e[w]=u+"Hours",e[_]=u+"Minutes",e[p]=u+"Seconds",e[I]=u+"Milliseconds",e)[s],c=s===M?this.$D+(r-this.$W):r;if(s===m||s===y){var h=this.clone().set(O,1);h.$d[o](c),h.init(),this.$d=h.set(O,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,s=this;t=Number(t);var u=a.p(r),o=function(d){var l=f(s);return a.w(l.date(l.date()+Math.round(d*t)),s)};if(u===m)return this.set(m,this.$M+t);if(u===y)return this.set(y,this.$y+t);if(u===M)return o(1);if(u===H)return o(7);var c=(e={},e[_]=k,e[w]=U,e[p]=A,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var s=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,l=e.months,b=e.meridiem,g=function($,v,Y,W){return $&&($[v]||$(r,s))||Y[v].slice(0,W)},T=function($){return a.s(o%12||12,$,"0")},S=b||function($,v,Y){var W=$<12?"AM":"PM";return Y?W.toLowerCase():W};return s.replace(E,function($,v){return v||function(Y){switch(Y){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return g(e.monthsShort,h,l,3);case"MMMM":return g(l,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return g(e.weekdaysMin,r.$W,d,2);case"ddd":return g(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return S(o,c,!0);case"A":return S(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null}($)||u.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var s,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*k,d=this-c,l=function(){return a.m(u,c)};switch(o){case y:s=l()/12;break;case m:s=l();break;case F:s=l()/3;break;case H:s=(d-h)/6048e5;break;case M:s=(d-h)/864e5;break;case w:s=d/U;break;case _:s=d/k;break;case p:s=d/A;break;default:s=d}return e?s:a.a(s)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return D[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),s=j(t,r,!0);return s&&(e.$L=s),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},i}(),z=L.prototype;return f.prototype=z,[["$ms",I],["$s",p],["$m",_],["$H",w],["$W",M],["$M",m],["$y",y],["$D",O]].forEach(function(i){z[i[1]]=function(n){return this.$g(n,i[0],i[1])}}),f.extend=function(i,n){return i.$i||(i(n,L,f),i.$i=!0),f},f.locale=j,f.isDayjs=N,f.unix=function(i){return f(1e3*i)},f.en=D[x],f.Ls=D,f.p={},f})}(C.__module)),C.__module.exports}exports.__require=K;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../_virtual/advancedFormat2.js");var m=t.__module.exports,c;function g(){return c||(c=1,function(d,w){(function(f,a){d.exports=a()})(m,function(){return function(f,a){var o=a.prototype,s=o.format;o.format=function(u){var e=this,i=this.$locale();if(!this.isValid())return s.bind(this)(u);var n=this.$utils(),l=(u||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(r){switch(r){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return i.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return i.ordinal(e.week(),"W");case"w":case"ww":return n.s(e.week(),r==="w"?1:2,"0");case"W":case"WW":return n.s(e.isoWeek(),r==="W"?1:2,"0");case"k":case"kk":return n.s(String(e.$H===0?24:e.$H),r==="k"?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return r}});return s.bind(this)(l)}}})}(t.__module)),t.__module.exports}exports.__require=g;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../../../_virtual/customParseFormat2.js");var nt=P.__module.exports,G;function ot(){return G||(G=1,function(I,at){(function(E,Z){I.exports=Z()})(nt,function(){var E={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Z=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Q=/\d/,L=/\d\d/,s=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,m={},X=function(t){return(t=+t)+(t>68?1900:2e3)},o=function(t){return function(e){this[t]=+e}},j=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(e){if(!e||e==="Z")return 0;var r=e.match(/([+-]|\d\d)/g),n=60*r[1]+(+r[2]||0);return n===0?0:r[0]==="+"?-n:n}(t)}],k=function(t){var e=m[t];return e&&(e.indexOf?e:e.s.concat(e.f))},R=function(t,e){var r,n=m.meridiem;if(n){for(var f=1;f<=24;f+=1)if(t.indexOf(n(f,0,e))>-1){r=f>12;break}}else r=t===(e?"pm":"PM");return r},J={A:[y,function(t){this.afternoon=R(t,!1)}],a:[y,function(t){this.afternoon=R(t,!0)}],Q:[Q,function(t){this.month=3*(t-1)+1}],S:[Q,function(t){this.milliseconds=100*+t}],SS:[L,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[s,o("seconds")],ss:[s,o("seconds")],m:[s,o("minutes")],mm:[s,o("minutes")],H:[s,o("hours")],h:[s,o("hours")],HH:[s,o("hours")],hh:[s,o("hours")],D:[s,o("day")],DD:[L,o("day")],Do:[y,function(t){var e=m.ordinal,r=t.match(/\d+/);if(this.day=r[0],e)for(var n=1;n<=31;n+=1)e(n).replace(/\[|\]/g,"")===t&&(this.day=n)}],w:[s,o("week")],ww:[L,o("week")],M:[s,o("month")],MM:[L,o("month")],MMM:[y,function(t){var e=k("months"),r=(k("monthsShort")||e.map(function(n){return n.slice(0,3)})).indexOf(t)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[y,function(t){var e=k("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,o("year")],YY:[L,function(t){this.year=X(t)}],YYYY:[/\d{4}/,o("year")],Z:j,ZZ:j};function K(t){var e,r;e=t,r=m&&m.formats;for(var n=(t=e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,l,u){var i=u&&u.toUpperCase();return l||r[u]||E[u]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,Y,D){return Y||D.slice(1)})})).match(Z),f=n.length,h=0;h<f;h+=1){var x=n[h],v=J[x],c=v&&v[0],d=v&&v[1];n[h]=d?{regex:c,parser:d}:x.replace(/^\[|\]$/g,"")}return function(p){for(var l={},u=0,i=0;u<f;u+=1){var M=n[u];if(typeof M=="string")i+=M.length;else{var Y=M.regex,D=M.parser,$=p.slice(i),g=Y.exec($)[0];D.call(l,g),p=p.replace(g,"")}}return function(w){var S=w.afternoon;if(S!==void 0){var a=w.hours;S?a<12&&(w.hours+=12):a===12&&(w.hours=0),delete w.afternoon}}(l),l}}return function(t,e,r){r.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(X=t.parseTwoDigitYear);var n=e.prototype,f=n.parse;n.parse=function(h){var x=h.date,v=h.utc,c=h.args;this.$u=v;var d=c[1];if(typeof d=="string"){var p=c[2]===!0,l=c[3]===!0,u=p||l,i=c[2];l&&(i=c[2]),m=this.$locale(),!p&&i&&(m=r.Ls[i]),this.$d=function($,g,w,S){try{if(["x","X"].indexOf(g)>-1)return new Date((g==="X"?1e3:1)*$);var a=K(g)($),F=a.year,_=a.month,N=a.day,W=a.hours,tt=a.minutes,et=a.seconds,rt=a.milliseconds,V=a.zone,B=a.week,O=new Date,C=N||(F||_?1:O.getDate()),H=F||O.getFullYear(),T=0;F&&!_||(T=_>0?_-1:O.getMonth());var A,b=W||0,q=tt||0,z=et||0,U=rt||0;return V?new Date(Date.UTC(H,T,C,b,q,z,U+60*V.offset*1e3)):w?new Date(Date.UTC(H,T,C,b,q,z,U)):(A=new Date(H,T,C,b,q,z,U),B&&(A=S(A).week(B).toDate()),A)}catch{return new Date("")}}(x,d,v,r),this.init(),i&&i!==!0&&(this.$L=this.locale(i).$L),u&&x!=this.format(d)&&(this.$d=new Date("")),m={}}else if(d instanceof Array)for(var M=d.length,Y=1;Y<=M;Y+=1){c[1]=d[Y-1];var D=r.apply(this,c);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}Y===M&&(this.$d=new Date(""))}else f.call(this,h)}}})}(P.__module)),P.__module.exports}exports.__require=ot;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../_virtual/localeData2.js");var x=u.__module.exports,k;function $(){return k||(k=1,function(y,g){(function(w,i){y.exports=i()})(x,function(){return function(w,i,r){var M=i.prototype,f=function(n){return n&&(n.indexOf?n:n.s)},t=function(n,e,s,m,c){var a=n.name?n:n.$locale(),p=f(a[e]),D=f(a[s]),d=p||D.map(function(h){return h.slice(0,m)});if(!c)return d;var _=a.weekStart;return d.map(function(h,v){return d[(v+(_||0))%7]})},o=function(){return r.Ls[r.locale()]},l=function(n,e){return n.formats[e]||function(s){return s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,c,a){return c||a.slice(1)})}(n.formats[e.toUpperCase()])},S=function(){var n=this;return{months:function(e){return e?e.format("MMMM"):t(n,"months")},monthsShort:function(e){return e?e.format("MMM"):t(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):t(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):t(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):t(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return l(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};M.localeData=function(){return S.bind(this)()},r.localeData=function(){var n=o();return{firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(e){return l(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},r.months=function(){return t(o(),"months")},r.monthsShort=function(){return t(o(),"monthsShort","months",3)},r.weekdays=function(n){return t(o(),"weekdays",null,null,n)},r.weekdaysShort=function(n){return t(o(),"weekdaysShort","weekdays",3,n)},r.weekdaysMin=function(n){return t(o(),"weekdaysMin","weekdays",2,n)}}})}(u.__module)),u.__module.exports}exports.__require=$;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../_virtual/weekOfYear2.js");var k=a.__module.exports,s;function v(){return s||(s=1,function(f,O){(function(r,t){f.exports=t()})(k,function(){var r="week",t="year";return function(_,d,i){var n=d.prototype;n.week=function(e){if(e===void 0&&(e=null),e!==null)return this.add(7*(e-this.week()),"day");var o=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var l=i(this).startOf(t).add(1,t).date(o),c=i(this).endOf(r);if(l.isBefore(c))return 1}var h=i(this).startOf(t).date(o).startOf(r).subtract(1,"millisecond"),u=this.diff(h,r,!0);return u<0?i(this).startOf("week").week():Math.ceil(u)},n.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}})}(a.__module)),a.__module.exports}exports.__require=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/weekYear2.js");var s=e.__module.exports,u;function _(){return u||(u=1,function(i,c){(function(a,r){i.exports=r()})(s,function(){return function(a,r){r.prototype.weekYear=function(){var o=this.month(),n=this.week(),t=this.year();return n===1&&o===11?t+1:o===0&&n>=52?t-1:t}}})}(e.__module)),e.__module.exports}exports.__require=_;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/weekday2.js");var s=e.__module.exports,n;function c(){return n||(n=1,function(a,l){(function(d,t){a.exports=t()})(s,function(){return function(d,t){t.prototype.weekday=function(u){var o=this.$locale().weekStart||0,r=this.$W,i=(r<o?r+7:r)-o;return this.$utils().u(u)?i:this.subtract(i,"day").add(u,"day")}}})}(e.__module)),e.__module.exports}exports.__require=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../_virtual/_commonjsHelpers.js"),d=require("../../../_virtual/FileSaver.min2.js");var E=d.__module.exports,j;function R(){return j||(j=1,function(_,L){(function(m,i){i()})(E,function(){function m(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function i(e,t,a){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){l(o.response,t,a)},o.onerror=function(){console.error("could not download file")},o.send()}function v(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function s(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var r=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof u.commonjsGlobal=="object"&&u.commonjsGlobal.global===u.commonjsGlobal?u.commonjsGlobal:void 0,w=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=r.saveAs||(typeof window!="object"||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!w?function(e,t,a){var o=r.URL||r.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin===location.origin?s(n):v(n.href)?i(e,t,a):s(n,n.target="_blank")):(n.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(n.href)},4e4),setTimeout(function(){s(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,a){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(m(e,a),t);else if(v(e))i(e,t,a);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){s(o)})}}:function(e,t,a,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return i(e,t,a);var n=e.type==="application/octet-stream",h=/constructor/i.test(r.HTMLElement)||r.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||n&&h||w)&&typeof FileReader<"u"){var f=new FileReader;f.onloadend=function(){var c=f.result;c=y?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=c:location=c,o=null},f.readAsDataURL(e)}else{var b=r.URL||r.webkitURL,p=b.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout(function(){b.revokeObjectURL(p)},4e4)}});r.saveAs=l.saveAs=l,_.exports=l})}(d.__module)),d.__module.exports}exports.__require=R;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var a=/[A-Z]/g,n=/^ms-/,t={};function s(e){return"-"+e.toLowerCase()}function o(e){if(t.hasOwnProperty(e))return t[e];var r=e.replace(a,s);return t[e]=n.test(r)?"-"+r:r}module.exports=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=a=>typeof a=="string",I=()=>{let a,e;const t=new Promise((s,n)=>{a=s,e=n});return t.resolve=a,t.reject=e,t},_=a=>a==null?"":""+a,ce=(a,e,t)=>{a.forEach(s=>{e[s]&&(t[s]=e[s])})},pe=/###/g,ee=a=>a&&a.indexOf("###")>-1?a.replace(pe,"."):a,te=a=>!a||c(a),K=(a,e,t)=>{const s=c(e)?e.split("."):e;let n=0;for(;n<s.length-1;){if(te(a))return{};const i=ee(s[n]);!a[i]&&t&&(a[i]=new t),Object.prototype.hasOwnProperty.call(a,i)?a=a[i]:a={},++n}return te(a)?{}:{obj:a,k:ee(s[n])}},se=(a,e,t)=>{const{obj:s,k:n}=K(a,e,Object);if(s!==void 0||e.length===1){s[n]=t;return}let i=e[e.length-1],r=e.slice(0,e.length-1),l=K(a,r,Object);for(;l.obj===void 0&&r.length;)i=`${r[r.length-1]}.${i}`,r=r.slice(0,r.length-1),l=K(a,r,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=t},me=(a,e,t,s)=>{const{obj:n,k:i}=K(a,e,Object);n[i]=n[i]||[],n[i].push(t)},z=(a,e)=>{const{obj:t,k:s}=K(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},xe=(a,e,t)=>{const s=z(a,t);return s!==void 0?s:z(e,t)},he=(a,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in a?c(a[s])||a[s]instanceof String||c(e[s])||e[s]instanceof String?t&&(a[s]=e[s]):he(a[s],e[s],t):a[s]=e[s]);return a},F=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ye={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const be=a=>c(a)?a.replace(/[&<>"'\/]/g,e=>ye[e]):a;class Se{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const Oe=[" ",",","?","!",";"],Le=new Se(20),ve=(a,e,t)=>{e=e||"",t=t||"";const s=Oe.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(s.length===0)return!0;const n=Le.getRegExp(`(${s.map(r=>r==="?"?"\\?":r).join("|")})`);let i=!n.test(a);if(!i){const r=a.indexOf(t);r>0&&!n.test(a.substring(0,r))&&(i=!0)}return i},G=function(a,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;const s=e.split(t);let n=a;for(let i=0;i<s.length;){if(!n||typeof n!="object")return;let r,l="";for(let o=i;o<s.length;++o)if(o!==i&&(l+=t),l+=s[o],r=n[l],r!==void 0){if(["string","number","boolean"].indexOf(typeof r)>-1&&o<s.length-1)continue;i+=o-i+1;break}n=r}return n},B=a=>a==null?void 0:a.replace("_","-"),we={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){var t,s;(s=(t=console==null?void 0:console[a])==null?void 0:t.apply)==null||s.call(t,console,e)}};class J{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||we,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,n){return n&&!this.debug?null:(c(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new J(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new J(this.logger,e)}}var R=new J;class Y{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const n=this.observers[s].get(t)||0;this.observers[s].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(r=>{let[l,o]=r;for(let u=0;u<o;u++)l(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(r=>{let[l,o]=r;for(let u=0;u<o;u++)l.apply(l,[e,...s])})}}class ne extends Y{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){var u,h;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,r=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],s&&(Array.isArray(s)?l.push(...s):c(s)&&i?l.push(...s.split(i)):l.push(s)));const o=z(this.data,l);return!o&&!t&&!s&&e.indexOf(".")>-1&&(e=l[0],t=l[1],s=l.slice(2).join(".")),o||!r||!c(s)?o:G((h=(u=this.data)==null?void 0:u[e])==null?void 0:h[t],s,i)}addResource(e,t,s,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[e,t];s&&(l=l.concat(r?s.split(r):s)),e.indexOf(".")>-1&&(l=e.split("."),n=t,t=l[1]),this.addNamespaces(t),se(this.data,l,n),i.silent||this.emit("added",e,t,s,n)}addResources(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in s)(c(s[i])||Array.isArray(s[i]))&&this.addResource(e,t,i,s[i],{silent:!0});n.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,n,i){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),n=s,s=t,t=l[1]),this.addNamespaces(t);let o=z(this.data,l)||{};r.skipCopy||(s=JSON.parse(JSON.stringify(s))),n?he(o,s,i):o={...o,...s},se(this.data,l,o),r.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var de={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,s,n){return a.forEach(i=>{var r;e=((r=this.processors[i])==null?void 0:r.process(e,t,s,n))??e}),e}};const ie={};class W extends Y{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ce(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=R.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return(s==null?void 0:s.res)!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const r=s&&e.indexOf(s)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ve(e,s,n);if(r&&!l){const o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:c(i)?[i]:i};const u=e.split(s);(s!==n||s===n&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(n)}return{key:e,namespaces:c(i)?[i]:i}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],t),o=l[l.length-1],u=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(h){const y=t.nsSeparator||this.options.nsSeparator;return n?{res:`${o}${y}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:`${o}${y}${r}`}return n?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:r}const d=this.resolve(e,t);let f=d==null?void 0:d.res;const m=(d==null?void 0:d.usedKey)||r,g=(d==null?void 0:d.exactUsedKey)||r,p=Object.prototype.toString.apply(f),x=["[object Number]","[object Function]","[object RegExp]"],L=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!c(f)&&typeof f!="boolean"&&typeof f!="number";if(w&&f&&k&&x.indexOf(p)<0&&!(c(L)&&Array.isArray(f))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,f,{...t,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(d.res=y,d.usedParams=this.getUsedParamsDetails(t),d):y}if(i){const y=Array.isArray(f),O=y?[]:{},C=y?g:m;for(const b in f)if(Object.prototype.hasOwnProperty.call(f,b)){const $=`${C}${i}${b}`;O[b]=this.translate($,{...t,joinArrays:!1,ns:l}),O[b]===$&&(O[b]=f[b])}f=O}}else if(w&&c(L)&&Array.isArray(f))f=f.join(L),f&&(f=this.extendTranslation(f,e,t,s));else{let y=!1,O=!1;const C=t.count!==void 0&&!c(t.count),b=W.hasDefaultValue(t),$=C?this.pluralResolver.getSuffix(u,t.count,t):"",j=t.ordinal&&C?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",P=C&&!t.ordinal&&t.count===0,A=P&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${$}`]||t[`defaultValue${j}`]||t.defaultValue;!this.isValidLookup(f)&&b&&(y=!0,f=A),this.isValidLookup(f)||(O=!0,f=r);const ge=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:f,D=b&&A!==f&&this.options.updateMissing;if(O||y||D){if(this.logger.log(D?"updateKey":"missingKey",u,o,r,D?A:f),i){const v=this.resolve(r,{...t,keySeparator:!1});v&&v.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let T=[];const U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(let v=0;v<U.length;v++)T.push(U[v]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(t.lng||this.language):T.push(t.lng||this.language);const Z=(v,N,V)=>{var q;const X=b&&V!==f?V:ge;this.options.missingKeyHandler?this.options.missingKeyHandler(v,o,N,X,D,t):(q=this.backendConnector)!=null&&q.saveMissing&&this.backendConnector.saveMissing(v,o,N,X,D,t),this.emit("missingKey",v,o,N,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?T.forEach(v=>{const N=this.pluralResolver.getSuffixes(v,t);P&&t[`defaultValue${this.options.pluralSeparator}zero`]&&N.indexOf(`${this.options.pluralSeparator}zero`)<0&&N.push(`${this.options.pluralSeparator}zero`),N.forEach(V=>{Z([v],r+V,t[`defaultValue${V}`]||A)})}):Z(T,r,A))}f=this.extendTranslation(f,e,t,d,s),O&&f===r&&this.options.appendNamespaceToMissingKey&&(f=`${o}:${r}`),(O||y)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${r}`:r,y?f:void 0))}return n?(d.res=f,d.usedParams=this.getUsedParamsDetails(t),d):f}extendTranslation(e,t,s,n,i){var u,h;var r=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const d=c(e)&&(((h=s==null?void 0:s.interpolation)==null?void 0:h.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(d){const g=e.match(this.interpolator.nestingRegexp);f=g&&g.length}let m=s.replace&&!c(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,s.lng||this.language||n.usedLng,s),d){const g=e.match(this.interpolator.nestingRegexp),p=g&&g.length;f<p&&(s.nest=!1)}!s.lng&&n&&n.res&&(s.lng=this.language||n.usedLng),s.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var g=arguments.length,p=new Array(g),x=0;x<g;x++)p[x]=arguments[x];return(i==null?void 0:i[0])===p[0]&&!s.context?(r.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`),null):r.translate(...p,t)},s)),s.interpolation&&this.interpolator.reset()}const l=s.postProcess||this.options.postProcess,o=c(l)?[l]:l;return e!=null&&(o!=null&&o.length)&&s.applyPostProcessor!==!1&&(e=de.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,n,i,r,l;return c(e)&&(e=[e]),e.forEach(o=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(o,t),h=u.key;n=h;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=t.count!==void 0&&!c(t.count),m=f&&!t.ordinal&&t.count===0,g=t.context!==void 0&&(c(t.context)||typeof t.context=="number")&&t.context!=="",p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.forEach(x=>{var L,w;this.isValidLookup(s)||(l=x,!ie[`${p[0]}-${x}`]&&((L=this.utils)!=null&&L.hasLoadedNamespace)&&!((w=this.utils)!=null&&w.hasLoadedNamespace(l))&&(ie[`${p[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(k=>{var C;if(this.isValidLookup(s))return;r=k;const y=[h];if((C=this.i18nFormat)!=null&&C.addLookupKeys)this.i18nFormat.addLookupKeys(y,h,k,x,t);else{let b;f&&(b=this.pluralResolver.getSuffix(k,t.count,t));const $=`${this.options.pluralSeparator}zero`,j=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(y.push(h+b),t.ordinal&&b.indexOf(j)===0&&y.push(h+b.replace(j,this.options.pluralSeparator)),m&&y.push(h+$)),g){const P=`${h}${this.options.contextSeparator}${t.context}`;y.push(P),f&&(y.push(P+b),t.ordinal&&b.indexOf(j)===0&&y.push(P+b.replace(j,this.options.pluralSeparator)),m&&y.push(P+$))}}let O;for(;O=y.pop();)this.isValidLookup(s)||(i=O,s=this.getResource(k,x,O,t))}))})}),{res:s,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){var i;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,s,n):this.resourceStore.getResource(e,t,s,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!c(e.replace);let n=s?e.replace:e;if(s&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const i of t)delete n[i]}return n}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}class re{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=R.create("languageUtils")}getScriptPartFromCode(e){if(e=B(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=B(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(c(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const n=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const n=this.getLanguagePartFromCode(s);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(i=>{if(i===n)return i;if(!(i.indexOf("-")<0&&n.indexOf("-")<0)&&(i.indexOf("-")>0&&n.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===n||i.indexOf(n)===0&&n.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),c(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],i=r=>{r&&(this.isSupportedCode(r)?n.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return c(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):c(e)&&i(this.formatLanguageCode(e)),s.forEach(r=>{n.indexOf(r)<0&&i(this.formatLanguageCode(r))}),n}}const ae={zero:0,one:1,two:2,few:3,many:4,other:5},oe={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Re{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=R.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=B(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:s,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let r;try{r=new Intl.PluralRules(s,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),oe;if(!e.match(/-|_/))return oe;const o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(n=>`${t}${n}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((n,i)=>ae[n]-ae[i]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,s);return n?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const le=function(a,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=xe(a,e,t);return!i&&n&&c(t)&&(i=G(a,t,s),i===void 0&&(i=G(e,t,s))),i},Q=a=>a.replace(/\$/g,"$$$$");class Ce{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=R.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:n,prefix:i,prefixEscaped:r,suffix:l,suffixEscaped:o,formatSeparator:u,unescapeSuffix:h,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:g,nestingSuffixEscaped:p,nestingOptionsSeparator:x,maxReplaces:L,alwaysFormat:w}=e.interpolation;this.escape=t!==void 0?t:be,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=i?F(i):r||"{{",this.suffix=l?F(l):o||"}}",this.formatSeparator=u||",",this.unescapePrefix=h?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=f?F(f):m||F("$t("),this.nestingSuffix=g?F(g):p||F(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=L||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,n){var m;let i,r,l;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const w=le(t,o,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,s,{...n,...t,interpolationkey:g}):w}const p=g.split(this.formatSeparator),x=p.shift().trim(),L=p.join(this.formatSeparator).trim();return this.format(le(t,o,x,this.options.keySeparator,this.options.ignoreJSONStructure),L,s,{...n,...t,interpolationkey:x})};this.resetRegExp();const h=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((m=n==null?void 0:n.interpolation)==null?void 0:m.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>Q(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?Q(this.escape(g)):Q(g)}].forEach(g=>{for(l=0;i=g.regex.exec(e);){const p=i[1].trim();if(r=u(p),r===void 0)if(typeof h=="function"){const L=h(e,i,n);r=c(L)?L:""}else if(n&&Object.prototype.hasOwnProperty.call(n,p))r="";else if(d){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),r="";else!c(r)&&!this.useRawValueToEscape&&(r=_(r));const x=g.safeValue(r);if(e=e.replace(i[0],x),d?(g.regex.lastIndex+=r.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,r;const l=(o,u)=>{const h=this.nestingOptionsSeparator;if(o.indexOf(h)<0)return o;const d=o.split(new RegExp(`${h}[ ]*{`));let f=`{${d[1]}`;o=d[0],f=this.interpolate(f,r);const m=f.match(/'/g),g=f.match(/"/g);(((m==null?void 0:m.length)??0)%2===0&&!g||g.length%2!==0)&&(f=f.replace(/'/g,'"'));try{r=JSON.parse(f),u&&(r={...u,...r})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${o}`,p),`${o}${h}${f}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,o};for(;n=this.nestingRegexp.exec(e);){let o=[];r={...s},r=r.replace&&!c(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const h=n[1].split(this.formatSeparator).map(d=>d.trim());n[1]=h.shift(),o=h,u=!0}if(i=t(l.call(this,n[1].trim(),r),r),i&&n[0]===e&&!c(i))return i;c(i)||(i=_(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),u&&(i=o.reduce((h,d)=>this.format(h,d,s.lng,{...s,interpolationkey:n[1].trim()}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}const $e=a=>{let e=a.toLowerCase().trim();const t={};if(a.indexOf("(")>-1){const s=a.split("(");e=s[0].toLowerCase().trim();const n=s[1].substring(0,s[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(r=>{if(r){const[l,...o]=r.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),h=l.trim();t[h]||(t[h]=u),u==="false"&&(t[h]=!1),u==="true"&&(t[h]=!0),isNaN(u)||(t[h]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},E=a=>{const e={};return(t,s,n)=>{let i=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(i={...i,[n.interpolationkey]:void 0});const r=s+JSON.stringify(i);let l=e[r];return l||(l=a(B(s),n),e[r]=l),l(t)}};class Pe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=R.create("formatter"),this.options=e,this.formats={number:E((t,s)=>{const n=new Intl.NumberFormat(t,{...s});return i=>n.format(i)}),currency:E((t,s)=>{const n=new Intl.NumberFormat(t,{...s,style:"currency"});return i=>n.format(i)}),datetime:E((t,s)=>{const n=new Intl.DateTimeFormat(t,{...s});return i=>n.format(i)}),relativetime:E((t,s)=>{const n=new Intl.RelativeTimeFormat(t,{...s});return i=>n.format(i,s.range||"day")}),list:E((t,s)=>{const n=new Intl.ListFormat(t,{...s});return i=>n.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=E(t)}format(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(o=>o.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,o)=>{var d;const{formatName:u,formatOptions:h}=$e(o);if(this.formats[u]){let f=l;try{const m=((d=n==null?void 0:n.formatParams)==null?void 0:d[n.interpolationkey])||{},g=m.locale||m.lng||n.locale||n.lng||s;f=this.formats[u](l,g,{...h,...n,...m})}catch(m){this.logger.warn(m)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Ne=(a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)};class ke extends Y{constructor(e,t,s){var i,r;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=n,this.logger=R.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(r=(i=this.backend)==null?void 0:i.init)==null||r.call(i,s,n.backend,n)}queueLoad(e,t,s,n){const i={},r={},l={},o={};return e.forEach(u=>{let h=!0;t.forEach(d=>{const f=`${u}|${d}`;!s.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?r[f]===void 0&&(r[f]=!0):(this.state[f]=1,h=!1,r[f]===void 0&&(r[f]=!0),i[f]===void 0&&(i[f]=!0),o[d]===void 0&&(o[d]=!0)))}),h||(l[u]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(o)}}loaded(e,t,s){const n=e.split("|"),i=n[0],r=n[1];t&&this.emit("failedLoading",i,r,t),!t&&s&&this.store.addResourceBundle(i,r,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const l={};this.queue.forEach(o=>{me(o.loaded,[i],r),Ne(o,e),t&&o.errors.push(t),o.pendingCount===0&&!o.done&&(Object.keys(o.loaded).forEach(u=>{l[u]||(l[u]={});const h=o.loaded[u];h.length&&h.forEach(d=>{l[u][d]===void 0&&(l[u][d]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(o=>!o.done)}read(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:n,wait:i,callback:r});return}this.readingCalls++;const l=(u,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&h&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,s,n+1,i*2,r)},i);return}r(u,h)},o=this.backend[s].bind(this.backend);if(o.length===2){try{const u=o(e,t);u&&typeof u.then=="function"?u.then(h=>l(null,h)).catch(l):l(null,u)}catch(u){l(u)}return}return o(e,t,l)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();c(e)&&(e=this.languageUtils.toResolveHierarchy(e)),c(t)&&(t=[t]);const i=this.queueLoad(e,t,s,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),n=s[0],i=s[1];this.read(n,i,"read",void 0,void 0,(r,l)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,l),this.loaded(e,r,l)})}saveMissing(e,t,s,n,i){var o,u,h,d,f;let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(o=this.services)==null?void 0:o.utils)!=null&&u.hasLoadedNamespace&&!((d=(h=this.services)==null?void 0:h.utils)!=null&&d.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((f=this.backend)!=null&&f.create){const m={...r,isUpdate:i},g=this.backend.create.bind(this.backend);if(g.length<6)try{let p;g.length===5?p=g(e,t,s,n,m):p=g(e,t,s,n),p&&typeof p.then=="function"?p.then(x=>l(null,x)).catch(l):l(null,p)}catch(p){l(p)}else g(e,t,s,n,l,m)}!e||!e[0]||this.store.addResource(e[0],t,s,n)}}}const ue=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),c(a[1])&&(e.defaultValue=a[1]),c(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const t=a[3]||a[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),fe=a=>{var e,t;return c(a.ns)&&(a.ns=[a.ns]),c(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),c(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((t=(e=a.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},H=()=>{},je=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})};class M extends Y{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=fe(e),this.services={},this.logger=R,this.modules={external:[]},je(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(c(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=ue();this.options={...n,...this.options,...fe(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?R.init(i(this.modules.logger),this.options):R.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=Pe;const d=new re(this.options);this.store=new ne(this.options.resources,this.options);const f=this.services;f.logger=R,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new Re(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(f.formatter=i(h),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Ce(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new ke(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var g=arguments.length,p=new Array(g>1?g-1:0),x=1;x<g;x++)p[x-1]=arguments[x];e.emit(m,...p)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new W(this.services,this.options),this.translator.on("*",function(m){for(var g=arguments.length,p=new Array(g>1?g-1:0),x=1;x<g;x++)p[x-1]=arguments[x];e.emit(m,...p)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,s||(s=H),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const o=I(),u=()=>{const h=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(f),s(d,f)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),o}loadResources(e){var i,r;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H;const n=c(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(d=>{d!=="cimode"&&l.indexOf(d)<0&&l.push(d)})};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>o(h)),(r=(i=this.options.preload)==null?void 0:i.forEach)==null||r.call(i,u=>o(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const n=I();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=H),this.services.backendConnector.reload(e,t,i=>{n.resolve(),s(i)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&de.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const s=this.languages[t];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const n=I();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,n.resolve(function(){return s.t(...arguments)}),t&&t(o,function(){return s.t(...arguments)})},l=o=>{var h,d;!e&&!o&&this.services.languageDetector&&(o=[]);const u=c(o)?o:this.services.languageUtils.getBestMatchFromCodes(o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(d=(h=this.services.languageDetector)==null?void 0:h.cacheUserLanguage)==null||d.call(h,u)),this.loadResources(u,f=>{r(f,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),n}getFixedT(e,t,s){var n=this;const i=function(r,l){let o;if(typeof l!="object"){for(var u=arguments.length,h=new Array(u>2?u-2:0),d=2;d<u;d++)h[d-2]=arguments[d];o=n.options.overloadTranslationOptionHandler([r,l].concat(h))}else o={...l};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix!==""&&(o.keyPrefix=o.keyPrefix||s||i.keyPrefix);const f=n.options.keySeparator||".";let m;return o.keyPrefix&&Array.isArray(r)?m=r.map(g=>`${o.keyPrefix}${f}${g}`):m=o.keyPrefix?`${o.keyPrefix}${f}${r}`:r,n.t(m,o)};return c(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=s,i}t(){var n;for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return(n=this.translator)==null?void 0:n.translate(...t)}exists(){var n;for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const r=(l,o)=>{const u=this.services.backendConnector.state[`${l}|${o}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,r);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(s,e)&&(!n||r(i,e)))}loadNamespaces(e,t){const s=I();return this.options.ns?(c(e)&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{s.resolve(),t&&t(n)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=I();c(e)&&(e=[e]);const n=this.options.preload||[],i=e.filter(r=>n.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return i.length?(this.options.preload=n.concat(i),this.loadResources(r=>{s.resolve(),t&&t(r)}),s):(t&&t(),Promise.resolve())}dir(e){var n,i;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((i=this.services)==null?void 0:i.languageUtils)||new re(ue());return t.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new M(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},i=new M(n);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},s){const l=Object.keys(this.store.data).reduce((o,u)=>(o[u]={...this.store.data[u]},Object.keys(o[u]).reduce((h,d)=>(h[d]={...o[u][d]},h),{})),{});i.store=new ne(l,n),i.services.resourceStore=i.store}return i.translator=new W(i.services,n),i.translator.on("*",function(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),h=1;h<o;h++)u[h-1]=arguments[h];i.emit(l,...u)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const S=M.createInstance();S.createInstance=M.createInstance;S.createInstance;S.dir;S.init;S.loadResources;S.reloadResources;S.use;S.changeLanguage;S.getFixedT;const Fe=S.t;S.exists;S.setDefaultNamespace;S.hasLoadedNamespace;S.loadNamespaces;S.loadLanguages;exports.default=S;exports.t=Fe;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../css-mediaquery/index.js");var n,m;function L(){if(m)return n;m=1;var h=q.__require().match,s=typeof window<"u"?window.matchMedia:null;function o(t,a,r){var d=this,e;s&&!r&&(e=s.call(window,t)),e?(this.matches=e.matches,this.media=e.media,e.addListener(c)):(this.matches=h(t,a),this.media=t),this.addListener=f,this.removeListener=l,this.dispose=v;function f(i){e&&e.addListener(i)}function l(i){e&&e.removeListener(i)}function c(i){d.matches=i.matches,d.media=i.media}function v(){e&&e.removeListener(c)}}function u(t,a,r){return new o(t,a,r)}return n=u,n}exports.__require=L;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r=function(a,e,s,t){if(s==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?a!==e||!t:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?t:s==="a"?t.call(a):t?t.value:e.get(a)},o,l,i;class d{constructor(...e){o.set(this,new Map),l.set(this,new Map),i.set(this,new Map);for(const s of e)this.define(s)}define(e,s=!1){for(let[t,f]of Object.entries(e)){t=t.toLowerCase(),f=f.map(n=>n.toLowerCase()),r(this,i,"f").has(t)||r(this,i,"f").set(t,new Set);const h=r(this,i,"f").get(t);let u=!0;for(let n of f){const w=n.startsWith("*");if(n=w?n.slice(1):n,h==null||h.add(n),u&&r(this,l,"f").set(t,n),u=!1,w)continue;const c=r(this,o,"f").get(n);if(c&&c!=t&&!s)throw new Error(`"${t} -> ${n}" conflicts with "${c} -> ${n}". Pass \`force=true\` to override this definition.`);r(this,o,"f").set(n,t)}}return this}getType(e){if(typeof e!="string")return null;const s=e.replace(/^.*[/\\]/,"").toLowerCase(),t=s.replace(/^.*\./,"").toLowerCase(),f=s.length<e.length;return!(t.length<s.length-1)&&f?null:r(this,o,"f").get(t)??null}getExtension(e){var s;return typeof e!="string"?null:(e=(s=e==null?void 0:e.split)==null?void 0:s.call(e,";")[0],(e&&r(this,l,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:r(this,i,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of r(this,i,"f").values())Object.freeze(e);return this}_getTestState(){return{types:r(this,o,"f"),extensions:r(this,l,"f")}}}o=new WeakMap,l=new WeakMap,i=new WeakMap;module.exports=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../types/other.js"),t=require("../types/standard.js"),e=require("./Mime.js"),i=new e(t,r)._freeze();exports.Mime=e;exports.default=i;
|