<<<<<<< HEAD {"version":3,"sources":["webpack://server/webpack/bootstrap","webpack://server/./node_modules/@witkac/jschema/lib/methods/ftime.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/functions.js","webpack://server/./node_modules/core-js/modules/_object-keys.js","webpack://server/./node_modules/core-js/modules/_object-gopd.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/compareData.js","webpack://server/./node_modules/@witkac/jschema/lib/validationMessages.js","webpack://server/./node_modules/core-js/modules/_object-dps.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/IOptions.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/padNumber.js","webpack://server/./node_modules/core-js/modules/_dom-create.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/mround.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/fixData.js","webpack://server/./node_modules/core-js/modules/_redefine.js","webpack://server/./node_modules/core-js/modules/_object-create.js","webpack://server/./node_modules/core-js/modules/_library.js","webpack://server/./node_modules/core-js/modules/_cof.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/check.js","webpack://server/./node_modules/core-js/modules/_hide.js","webpack://server/./node_modules/@witkac/jschema/lib/TimeSpan.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateParse.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyObject.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/defaultValue.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyString.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/funcParams.js","webpack://server/./node_modules/core-js/modules/_to-integer.js","webpack://server/./node_modules/core-js/modules/_property-desc.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/trim.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/validate.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/JSchema.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/calcFunction.js","webpack://server/./node_modules/core-js/modules/_object-pie.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/datePart.js","webpack://server/./node_modules/core-js/modules/_shared.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/checkType.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/now.js","webpack://server/./node_modules/core-js/modules/_export.js","webpack://server/./node_modules/core-js/modules/_inherit-if-required.js","webpack://server/./node_modules/core-js/modules/_shared-key.js","webpack://server/./node_modules/core-js/modules/_iobject.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/generateGuid.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyBase.js","webpack://server/./node_modules/@witkac/jschema/lib/index.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/today.js","webpack://server/./node_modules/core-js/modules/_to-iobject.js","webpack://server/./node_modules/core-js/modules/_has.js","webpack://server/./node_modules/core-js/modules/_to-primitive.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyArrayItemDirect.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fdatetime.js","webpack://server/./node_modules/core-js/modules/_global.js","webpack://server/./node_modules/core-js/modules/_to-absolute-index.js","webpack://server/./node_modules/core-js/modules/_fails.js","webpack://server/./node_modules/core-js/modules/es6.function.name.js","webpack://server/./node_modules/core-js/modules/_core.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/setData.js","webpack://server/./node_modules/core-js/modules/_object-dp.js","webpack://server/./node_modules/core-js/modules/_set-proto.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/fix$parent.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/max.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fnumber.js","webpack://server/./node_modules/core-js/modules/_object-gopn.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateSet.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/fixAndMergeSchema.js","webpack://server/./node_modules/@witkac/jschema/lib/schemaMethods.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/schemaPath.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/clearData.js","webpack://server/./node_modules/core-js/modules/_ctx.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/min.js","webpack://server/./node_modules/core-js/modules/_to-length.js","webpack://server/./node_modules/core-js/modules/_descriptors.js","webpack://server/./node_modules/@witkac/jschema/lib/formatFunctions.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/index.js","webpack://server/./node_modules/core-js/modules/_string-trim.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateDiff.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/schemaValue.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateAdd.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyBoolean.js","webpack://server/./node_modules/core-js/modules/_defined.js","webpack://server/./node_modules/core-js/modules/_array-includes.js","webpack://server/./node_modules/core-js/modules/es6.number.constructor.js","webpack://server/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://server/./node_modules/core-js/modules/_uid.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/aggregateFunction.js","webpack://server/./node_modules/core-js/modules/_an-object.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/dataValue.js","webpack://server/./node_modules/core-js/modules/_object-keys-internal.js","webpack://server/./node_modules/core-js/modules/_is-object.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fdate.js","webpack://server/./node_modules/core-js/modules/_a-function.js","webpack://server/./node_modules/@witkac/jschema/lib/polyfills.js","webpack://server/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/ValidationResult.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyArray.js","webpack://server/./node_modules/@witkac/jschema/lib/schemaMixin.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyArrayItem.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/listMonths.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/listYears.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fmoney.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/nullDefault.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/validFunction.js","webpack://server/./node_modules/current-script-polyfill/currentScript.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyNumber.js","webpack://server/./node_modules/core-js/modules/_function-to-string.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/validCalcFunction.js","webpack://server/./node_modules/core-js/modules/_html.js","webpack://server/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://server/./src/components/preview/crossed-out.vue?564c","webpack://server/src/components/crossed-out.vue","webpack://server/./src/components/preview/crossed-out.vue?985c","webpack://server/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://server/./src/components/preview/crossed-out.vue","webpack://server/./src/components/preview/simple.vue?2144","webpack://server/src/components/preview/simple.vue","webpack://server/./src/components/preview/simple.vue?940c","webpack://server/./src/components/preview/simple.vue","webpack://server/./src/components/preview/text.vue?b493","webpack://server/src/components/preview/text.vue","webpack://server/./src/components/preview/text.vue?1cb0","webpack://server/./src/components/preview/text.vue","webpack://server/./src/components/preview/row.vue?14c1","webpack://server/src/components/preview/row.vue","webpack://server/./src/components/preview/row.vue?61ee","webpack://server/./src/components/preview/row.vue","webpack://server/./src/components/preview/previewComponents.js","webpack://server/./src/filters/index.js","webpack://server/./src/mixins/previewMixin.js","webpack://server/./src/serverpackage.js","webpack://server/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyCtor.js","webpack://server/./node_modules/core-js/modules/_string-ws.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/getValidations.js"],"names":["components","WSimple","WText","WRow","WCrossedOut","registerPreviewComponents","Vue","registerLog","name","console","time","component","timeEnd","filters","registerFilters","mixins","schemaMixin","props","data","model","$props","datamodel","beforeCreate","$options","propsData","external","created","log","mounted","window","vm","previewMixin","_previewMixin","previewComponents","_previewcomponents","_filters","schemaMethods","_schemaMethods"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;;ACZa;AACb,8CAA8C,cAAc;AAC5D,0BAA0B,mBAAO,CAAC,MAA8B;AAChE,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C,eAAe,mBAAO,CAAC,MAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAQV;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,MAAM;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,gBAAgB,EAAE,SAAS,EAAE;AAC7B,gBAAgB,EAAE,SAAS,EAAE;AAC7B,yBAAyB,EAAE,kBAAkB,EAAE;AAC/C,yBAAyB,EAAE,kBAAkB,EAAE;AAC/C,mBAAmB,EAAE,YAAY,EAAE;AACnC,kBAAkB,EAAE,WAAW,EAAE;AACjC,kBAAkB,EAAE,WAAW,EAAE;AACjC,iBAAiB,EAAE,UAAU,EAAE;AAC/B,iBAAiB,EAAE,UAAU,EAAE;AAC/B,gBAAgB,EAAE,SAAS,EAAE;AAC7B,eAAe,EAAE,QAAQ,EAAE;AAC3B,aAAa,EAAE,MAAM,EAAE;AACvB,cAAc,EAAE,OAAO,EAAE;AACzB,cAAc,EAAE,OAAO,EAAE;AACzB;AACA,uBAAuB,+BAA+B;AACtD;AACA;AACA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,EAAE,OAAO;AACxD,oEAAoE,8FAA8F,EAAE;AACpK;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,wBAAwB,EAAE;AACxD,sCAAsC,gCAAgC;AACtE;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;ACjPA;AACA,YAAY,mBAAO,CAAC,MAAyB;AAC7C,kBAAkB,mBAAO,CAAC,MAAkB;;AAE5C;AACA;AACA;;;;;;;;ACNA,UAAU,mBAAO,CAAC,MAAe;AACjC,iBAAiB,mBAAO,CAAC,MAAkB;AAC3C,gBAAgB,mBAAO,CAAC,MAAe;AACvC,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C,UAAU,mBAAO,CAAC,MAAQ;AAC1B,qBAAqB,mBAAO,CAAC,MAAmB;AAChD;;AAEA,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;;;;;;;;;ACfa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,2BAA2B,aAAa;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,uC;;;;;;;;AC5Fa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,SAAS;AACpC,4BAA4B,SAAS;AACrC,8CAA8C,kBAAkB;AAChE,+CAA+C,kBAAkB;AACjE,4CAA4C,YAAY;AACxD,qDAAqD,WAAW;AAChE,qDAAqD,WAAW;AAChE,kDAAkD,UAAU;AAC5D,+CAA+C,UAAU;AACzD;AACA;AACA;AACA;AACA;AACA,8C;;;;;;;ACvBA,SAAS,mBAAO,CAAC,MAAc;AAC/B,eAAe,mBAAO,CAAC,MAAc;AACrC,cAAc,mBAAO,CAAC,MAAgB;;AAEtC,iBAAiB,mBAAO,CAAC,MAAgB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACZa;AACb,8CAA8C,cAAc;AAC5D,sBAAsB,mBAAO,CAAC,MAAkB;AAChD,2BAA2B,mBAAO,CAAC,MAAuB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA,oC;;;;;;;;AC3Ba;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;AChBA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAW;AAClC;AACA;AACA;AACA;AACA;;;;;;;;;ACNa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA,qCAAqC,MAAM,GAAG,UAAU,WAAW,UAAU;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;;ACvBa;AACb,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,MAAW;AACnC,qBAAqB,mBAAO,CAAC,MAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;ACnCA,aAAa,mBAAO,CAAC,MAAW;AAChC,WAAW,mBAAO,CAAC,MAAS;AAC5B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,gBAAgB,mBAAO,CAAC,MAAuB;AAC/C;AACA;;AAEA,mBAAO,CAAC,MAAS;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;;;;;;;;AC9BD;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC,UAAU,mBAAO,CAAC,MAAe;AACjC,kBAAkB,mBAAO,CAAC,MAAkB;AAC5C,eAAe,mBAAO,CAAC,MAAe;AACtC,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA,eAAe,mBAAO,CAAC,MAAe;AACtC;AACA;AACA;AACA;AACA;AACA,EAAE,mBAAO,CAAC,MAAS;AACnB,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;ACxCA;;;;;;;;ACAA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;;ACJa;AACb,8CAA8C,cAAc;AAC5D,wBAAwB,mBAAO,CAAC,MAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACZA,SAAS,mBAAO,CAAC,MAAc;AAC/B,iBAAiB,mBAAO,CAAC,MAAkB;AAC3C,iBAAiB,mBAAO,CAAC,MAAgB;AACzC;AACA,CAAC;AACD;AACA;AACA;;;;;;;;;ACPa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,oC;;;;;;;;ACpKa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;ACfa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,qBAAqB,mBAAO,CAAC,MAAyB;AACtD,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,iD;;;;;;;;AC5Ia;AACb,8CAA8C,cAAc;AAC5D,qBAAqB,mBAAO,CAAC,MAAyB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,eAAe;AAC1C,mCAAmC,sBAAsB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wC;;;;;;;;ACzGa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,iD;;;;;;;;AC1Ia;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA,sC;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACPa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gC;;;;;;;;ACVa;AACb,8CAA8C,cAAc;AAC5D,yBAAyB,mBAAO,CAAC,MAAoB;AACrD,wBAAwB,mBAAO,CAAC,MAAoB;AACpD;AACA,0BAA0B,WAAW;AACrC,sCAAsC,yBAAyB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,WAAW;AACrC,sCAAsC,yBAAyB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,yBAAyB;AAC/D,0BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;ACrUa;AACb,8CAA8C,cAAc;AAC5D,qBAAqB,mBAAO,CAAC,MAAgB;AAC7C,kBAAkB,mBAAO,CAAC,MAAa;AACvC,oBAAoB,mBAAO,CAAC,MAAe;AAC3C,iBAAiB,mBAAO,CAAC,MAAY;AACrC,oBAAoB,mBAAO,CAAC,MAAe;AAC3C,kBAAkB,mBAAO,CAAC,MAAa;AACvC,gBAAgB,mBAAO,CAAC,MAAW;AACnC,0BAA0B,mBAAO,CAAC,MAAqB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,sBAAsB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,yBAAyB;AACnE,gCAAgC,eAAe;AAC/C,8BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,mC;;;;;;;;AC5Ga;AACb,8CAA8C,cAAc;AAC5D,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA,iEAAiE;AACjE;AACA,sEAAsE,EAAE;AACxE;AACA,iEAAiE;AACjE;AACA;AACA;AACA,4FAA4F;AAC5F;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA,kEAAkE,yDAAyD,SAAS;AACpI;AACA;AACA;AACA;AACA;AACA,kDAAkD,aAAa;AAC/D,gGAAgG,6CAA6C,2BAA2B;AACxK,2BAA2B,yBAAyB,EAAE,8BAA8B,aAAa,MAAM,MAAM;AAC7G,2DAA2D,8BAA8B,aAAa;AACtG;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA,sEAAsE,EAAE;AACxE;AACA,uEAAuE;AACvE;AACA;AACA;AACA,kGAAkG;AAClG;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA,kEAAkE,oBAAoB;AACtF;AACA;AACA,YAAY,KAAqC,EAAE,EAE1C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wC;;;;;;;ACtGA,cAAc;;;;;;;;;ACAD;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;ACtDA,WAAW,mBAAO,CAAC,MAAS;AAC5B,aAAa,mBAAO,CAAC,MAAW;AAChC;AACA,kDAAkD;;AAElD;AACA,qEAAqE;AACrE,CAAC;AACD;AACA,QAAQ,mBAAO,CAAC,MAAY;AAC5B;AACA,CAAC;;;;;;;;;ACXY;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;ACrCa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;ACVA,aAAa,mBAAO,CAAC,MAAW;AAChC,WAAW,mBAAO,CAAC,MAAS;AAC5B,WAAW,mBAAO,CAAC,MAAS;AAC5B,eAAe,mBAAO,CAAC,MAAa;AACpC,UAAU,mBAAO,CAAC,MAAQ;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF,uBAAuB;AACzG,iEAAiE;AACjE,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,eAAe;AACf,eAAe;AACf,eAAe;AACf,gBAAgB;AAChB;;;;;;;;AC1CA,eAAe,mBAAO,CAAC,MAAc;AACrC,qBAAqB,mBAAO,CAAC,MAAc;AAC3C;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACRA,aAAa,mBAAO,CAAC,MAAW;AAChC,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA;AACA;;;;;;;;ACJA;AACA,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA;AACA;AACA;;;;;;;;;ACLa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,wC;;;;;;;;ACjBa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,qBAAqB,mBAAO,CAAC,MAAyB;AACtD,sBAAsB,mBAAO,CAAC,MAA0B;AACxD,qBAAqB,mBAAO,CAAC,MAAyB;AACtD,0BAA0B,mBAAO,CAAC,MAA8B;AAChE,kBAAkB,mBAAO,CAAC,MAAsB;AAChD,uBAAuB,mBAAO,CAAC,MAA2B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,MAAsC,IAAI,KAAY;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE,MAAsC,IAAI,KAAY;AAC5H;AACA;AACA,4BAA4B,KAAsC,EAAE,YAY3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gFAAgF,MAAsC,IAAI,KAAY;AACtI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,KAAsC,EAAE,YAM3C;AACzC;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,gCAAgC,KAAsC,EAAE,YAY3C;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,qBAAqB;AAC/F;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,+C;;;;;;;;ACplBa;AACb,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C;AACA,oBAAoB,mBAAO,CAAC,MAAe;AAC3C;AACA,sBAAsB,mBAAO,CAAC,MAAiB;AAC/C;AACA;AACA;AACA,gBAAgB,mBAAO,CAAC,MAAa;AACrC;AACA,wBAAwB,mBAAO,CAAC,MAAmB;AACnD;AACA;AACA,0BAA0B,mBAAO,CAAC,MAA6B;AAC/D;AACA;AACA,iC;;;;;;;;AClBa;AACb,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,MAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACVA;AACA,cAAc,mBAAO,CAAC,MAAY;AAClC,cAAc,mBAAO,CAAC,MAAY;AAClC;AACA;AACA;;;;;;;;ACLA,uBAAuB;AACvB;AACA;AACA;;;;;;;;ACHA;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACXa;AACb,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,0D;;;;;;;;ACtCa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,kHAAkH,EAAE;AACrJ,iCAAiC,kHAAkH,EAAE;AACrJ,gCAAgC,mEAAmE,EAAE;AACrG,+BAA+B,mEAAmE,EAAE;AACpG,2BAA2B,+BAA+B,EAAE;AAC5D,0BAA0B,+BAA+B,EAAE;AAC3D,yBAAyB,0CAA0C,EAAE;AACrE,wBAAwB,gCAAgC,EAAE;AAC1D,2BAA2B,0CAA0C,EAAE;AACvE,0BAA0B,0CAA0C,EAAE;AACtE,yBAAyB,+CAA+C,EAAE;AAC1E,wBAAwB,uCAAuC,EAAE;AACjE,yBAAyB,2CAA2C,EAAE;AACtE,wBAAwB,iCAAiC,EAAE;AAC3D,yBAAyB,6CAA6C,EAAE;AACxE,wBAAwB,mCAAmC,EAAE;AAC7D,yBAAyB,6CAA6C,EAAE;AACxE,wBAAwB,mCAAmC,EAAE;AAC7D,+BAA+B,qIAAqI,EAAE;AACtK,0CAA0C,wGAAwG,EAAE;AACpJ,0CAA0C,wGAAwG;AAClJ;AACA,qC;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;;;;;;;ACLzC,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;ACNA,SAAS,mBAAO,CAAC,MAAc;AAC/B;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC;;;;;;;;ACfD,6BAA6B;AAC7B,uCAAuC;;;;;;;;;ACD1B;AACb,8CAA8C,cAAc;AAC5D,qBAAqB,mBAAO,CAAC,MAAgB;AAC7C,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,UAAU,EAAE;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,oBAAoB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;AC/OA,eAAe,mBAAO,CAAC,MAAc;AACrC,qBAAqB,mBAAO,CAAC,MAAmB;AAChD,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C;;AAEA,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA,cAAc,mBAAO,CAAC,MAAQ,iBAAiB,mBAAO,CAAC,MAAgB;AACvE;AACA;AACA,OAAO,YAAY,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;AACA;;;;;;;;;ACxBa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;;;ACda;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;;ACjBa;AACb,8CAA8C,cAAc;AAC5D,eAAe,mBAAO,CAAC,MAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;ACtBA;AACA,YAAY,mBAAO,CAAC,MAAyB;AAC7C,iBAAiB,mBAAO,CAAC,MAAkB;;AAE3C;AACA;AACA;;;;;;;;;ACNa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;;ACvDa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,+BAA+B;AACjD;AACA,6BAA6B,2CAA2C;AACxE;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA,gCAAgC,qBAAqB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA,8CAA8C,0BAA0B;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,iDAyBV;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,uCAAuC,oBAAoB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6C;;;;;;;;ACpQa;AACb,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,MAAiB;AACvC,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C,iBAAiB,mBAAO,CAAC,MAAoB;AAC7C,iBAAiB,mBAAO,CAAC,MAAoB;AAC7C,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,qBAAqB,mBAAO,CAAC,MAAwB;AACrD,aAAa,mBAAO,CAAC,MAAgB;AACrC,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C,eAAe,mBAAO,CAAC,MAAkB;AACzC,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,cAAc,mBAAO,CAAC,MAAiB;AACvC,cAAc,mBAAO,CAAC,MAAiB;AACvC,mBAAmB,mBAAO,CAAC,MAAsB;AACjD,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,YAAY,mBAAO,CAAC,MAAe;AACnC,YAAY,mBAAO,CAAC,MAAe;AACnC,eAAe,mBAAO,CAAC,MAAkB;AACzC,YAAY,mBAAO,CAAC,MAAe;AACnC,oBAAoB,mBAAO,CAAC,MAAuB;AACnD,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,cAAc,mBAAO,CAAC,MAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;;;ACtEa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;;;AClCa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;AClEA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnBa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;ACjBA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA,2DAA2D;AAC3D;;;;;;;;ACLA;AACA,kBAAkB,mBAAO,CAAC,MAAU;AACpC,iCAAiC,QAAQ,mBAAmB,UAAU,EAAE,EAAE;AAC1E,CAAC;;;;;;;;;ACHY;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,KAAK,oCAAoC,KAAK;AACvF;AACA,0EAA0E,cAAc,EAAE,+BAA+B,IAAI,GAAG,EAAE,eAAe,IAAI,GAAG,EAAE,aAAa,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,iBAAiB,IAAI,GAAG,IAAI,SAAS,IAAI,iBAAiB,IAAI,UAAU,IAAI,uCAAuC,EAAE,gDAAgD,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,2CAA2C,8CAA8C,EAAE,yDAAyD,aAAa,EAAE,0CAA0C,eAAe,EAAE,mCAAmC,eAAe,EAAE,gCAAgC,eAAe,EAAE,gCAAgC,eAAe,EAAE,gCAAgC,eAAe,EAAE,mCAAmC,iBAAiB,EAAE,iCAAiC,iBAAiB,EAAE;AACpoC;AACA,8EAA8E,cAAc,EAAE,+BAA+B,IAAI,GAAG,EAAE,eAAe,IAAI,GAAG,EAAE,aAAa,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,iBAAiB,IAAI,GAAG,IAAI,SAAS,IAAI,iBAAiB,IAAI,UAAU,IAAI,uCAAuC,EAAE,gDAAgD,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,2CAA2C,8CAA8C,EAAE,0DAA0D,aAAa,EAAE,2CAA2C,eAAe,EAAE,oCAAoC,eAAe,EAAE,iCAAiC,eAAe,EAAE,iCAAiC,eAAe,EAAE,iCAAiC,eAAe,EAAE,qCAAqC,iBAAiB,EAAE,kCAAkC,iBAAiB,EAAE;AACjpC;AACA;AACA,kDAAkD,EAAE,YAAY,EAAE,IAAI,MAAM,gCAAgC,EAAE,iBAAiB,IAAI,gCAAgC,EAAE,iBAAiB,IAAI,SAAS;AACnM;AACA;AACA;AACA;AACA;AACA,gFAAgF,IAAI,EAAE,EAAE,eAAe,IAAI,EAAE,EAAE,oBAAoB,IAAI,EAAE,EAAE,oBAAoB,IAAI,EAAE,EAAE,sCAAsC,IAAI,EAAE,EAAE,gDAAgD,IAAI,oBAAoB,EAAE,uDAAuD,KAAK,IAAI,KAAK,gBAAgB,KAAK,IAAI,KAAK,qBAAqB,KAAK,IAAI,KAAK,gBAAgB,KAAK,IAAI,KAAK,sBAAsB,KAAK,IAAI,KAAK,EAAE,GAAG,UAAU,IAAI;AAC1f;AACA,6jBAA6jB,IAAI,EAAE,EAAE,kBAAkB,IAAI,EAAE,EAAE,uBAAuB,IAAI,EAAE,EAAE,uBAAuB,IAAI,EAAE,EAAE,2CAA2C,IAAI,EAAE,EAAE,+DAA+D,IAAI,uBAAuB,EAAE,ooBAAooB,GAAG,aAAa,IAAI;AACp8C,uCAAuC,EAAE,aAAa,EAAE,GAAG,EAAE,SAAS,GAAG;AACzE;AACA,mEAAmE,eAAe,EAAE;AACpF;AACA;AACA,+CAA+C,EAAE,0BAA0B,KAAK,oCAAoC,KAAK;AACzH;AACA,uCAAuC,EAAE,+BAA+B,EAAE;AAC1E;AACA;AACA;AACA,sDAAsD,EAAE;AACxD;AACA;AACA,qCAAqC,IAAI,GAAG,EAAE,YAAY,IAAI,oBAAoB,IAAI,GAAG,EAAE,aAAa,IAAI,iFAAiF,EAAE,qBAAqB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,mFAAmF,EAAE,qBAAqB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,mFAAmF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,8BAA8B,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE;AAC7oC,6BAA6B,EAAE,OAAO,EAAE;AACxC;AACA,oBAAoB,EAAE;AACtB,qBAAqB,EAAE;AACvB;AACA;AACA;AACA,yBAAyB,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,GAAG;AACvF,KAAK;AACL,iCAAiC,iEAAiE,EAAE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yBAAyB,uDAAuD,EAAE;AAClF;AACA;AACA;AACA;AACA,KAAK;AACL,8BAA8B,yEAAyE,EAAE;AACzG,yBAAyB,sGAAsG,EAAE;AACjI,yBAAyB,+CAA+C,EAAE;AAC1E,0BAA0B,gDAAgD,EAAE;AAC5E,0BAA0B,gDAAgD,EAAE;AAC5E,0BAA0B,gDAAgD,EAAE;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,wFAAwF,EAAE;AACrH;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,iDAAiD,EAAE;AAC9E,0BAA0B,gDAAgD,EAAE;AAC5E,6BAA6B,mDAAmD,EAAE;AAClF,4BAA4B,kDAAkD,EAAE;AAChF,2BAA2B,iDAAiD;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,aAAa;AAChD;AACA;AACA;AACA;AACA,2C;;;;;;;;AC5Ua;AACb,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,6BAA6B,mBAAO,CAAC,MAAwB;AAC7D;AACA,8BAA8B,mBAAO,CAAC,MAAyB;AAC/D;AACA,8BAA8B,mBAAO,CAAC,MAAyB;AAC/D;AACA,8BAA8B,mBAAO,CAAC,MAAyB;AAC/D;AACA,+BAA+B,mBAAO,CAAC,MAA0B;AACjE;AACA,iBAAiB,mBAAO,CAAC,MAAY;AACrC,0BAA0B,mBAAO,CAAC,MAA8B;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;AC/CA,cAAc,mBAAO,CAAC,MAAW;AACjC,cAAc,mBAAO,CAAC,MAAY;AAClC,YAAY,mBAAO,CAAC,MAAU;AAC9B,aAAa,mBAAO,CAAC,MAAc;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;AC7Ba;AACb,8CAA8C,cAAc;AAC5D,iBAAiB,mBAAO,CAAC,MAAa;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;ACZa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uC;;;;;;;;ACpDa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;;ACvDa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,kD;;;;;;;ACjEA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC,eAAe,mBAAO,CAAC,MAAc;AACrC,sBAAsB,mBAAO,CAAC,MAAsB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;;;ACtBa;AACb,aAAa,mBAAO,CAAC,MAAW;AAChC,UAAU,mBAAO,CAAC,MAAQ;AAC1B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,wBAAwB,mBAAO,CAAC,MAAwB;AACxD,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C,YAAY,mBAAO,CAAC,MAAU;AAC9B,WAAW,mBAAO,CAAC,MAAgB;AACnC,WAAW,mBAAO,CAAC,MAAgB;AACnC,SAAS,mBAAO,CAAC,MAAc;AAC/B,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA;AACA,qBAAqB,mBAAO,CAAC,MAAkB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD,KAAK;AACL;AACA,oCAAoC,cAAc,OAAO;AACzD,qCAAqC,cAAc,OAAO;AAC1D;AACA;AACA,oEAAoE,OAAO;AAC3E;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,0BAA0B,EAAE;AACtE;AACA;AACA,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,mBAAO,CAAC,MAAa;AACvB;;;;;;;;ACpEA,kBAAkB,mBAAO,CAAC,MAAgB,MAAM,mBAAO,CAAC,MAAU;AAClE,+BAA+B,mBAAO,CAAC,MAAe,gBAAgB,mBAAmB,UAAU,EAAE,EAAE;AACvG,CAAC;;;;;;;;ACFD;AACA;AACA;AACA;AACA;;;;;;;;;ACJa;AACb,8CAA8C,cAAc;AAC5D,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,uDAAuD,cAAc;AACrE;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA,uHAAuH;AACvH;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA,gCAAgC,KAAK;AACrC;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA,kDAAkD;AAClD;AACA;AACA,kDAAkD;AAClD;AACA;AACA,oDAAoD;AACpD;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,mDAAmD,MAAM;AACzD;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA,0DAA0D,mBAAmB,uBAAuB,YAAY,2BAA2B,gFAAgF,4BAA4B,KAAK;AAC5P;AACA;AACA,oDAAoD;AACpD,yCAAyC,2BAA2B,gFAAgF,4BAA4B,KAAK;AACrL;AACA,6BAA6B,cAAc,MAAM,OAAO,GAAG,EAAE,SAAS,YAAY;AAClF;AACA;AACA;AACA;AACA,0DAA0D,4BAA4B,mBAAmB,uBAAuB,YAAY,wBAAwB;AACpK;AACA;AACA,oDAAoD,sBAAsB,qBAAqB,wBAAwB;AACvH;AACA;AACA,iDAAiD,yBAAyB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,qFAAqF,2BAA2B,4BAA4B,kBAAkB,6DAA6D,mBAAmB,0BAA0B,KAAK;AAC3U;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA,sEAAsE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA,uEAAuE;AACvE;AACA;AACA;AACA,kGAAkG;AAClG;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA,yCAAyC;AACzC;AACA,gGAAgG,6CAA6C,2BAA2B;AACxK,kDAAkD,aAAa;AAC/D;AACA;AACA;AACA;AACA,oEAAoE;AACpE;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA,+FAA+F;AAC/F;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA,YAAY,KAAqC,EAAE,EAE1C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6C;;;;;;;ACxOA,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;;;;;;;;;ACJa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;ACpEA,UAAU,mBAAO,CAAC,MAAQ;AAC1B,gBAAgB,mBAAO,CAAC,MAAe;AACvC,mBAAmB,mBAAO,CAAC,MAAmB;AAC9C,eAAe,mBAAO,CAAC,MAAe;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;;;;;;;;;ACFa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACZA;AACA;AACA;AACA;;;;;;;;;ACHa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,iBAAiB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA,2BAA2B,0BAA0B;AACrD;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;AC/GA;AACA;AACA;AACA;;;;;;;;;ACHa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,4C;;;;;;;;ACVa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,iCAAiC,mBAAO,CAAC,MAA4B;AACrE,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,uCAAuC,mBAAO,CAAC,MAAkC;AACjF,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C,qBAAqB,mBAAO,CAAC,MAAyB;AACtD,0BAA0B,mBAAO,CAAC,MAA8B;AAChE,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C,qBAAqB,mBAAO,CAAC,MAAyB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mGAAmG,mCAAmC,EAAE;AACxI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,UAOV;AACT;AACA,2BAA2B,aAAa;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,IAAI;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,gBAAgB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA,8CAA8C,aAAa;AAC3D;AACA,kCAAkC,yBAAyB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,KAAsC,EAAE,EAE3C;AAC7B;AACA;AACA;AACA,+CAA+C,OAAO,MAAM,SAAS,GAAG,QAAQ;AAChF;AACA;AACA,4BAA4B,KAAsC,EAAE,EAG3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA,8CAA8C,aAAa;AAC3D;AACA,kCAAkC,yBAAyB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,KAAsC,EAAE,EAG3C;AAC7B;AACA;AACA,gCAAgC,KAAsC,EAAE,EAG3C;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kCAAkC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;;AAEA,mBAAmB,kCAAkC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA,6FAA6F,mEAAmE,EAAE;AAClK;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAG3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA,6CAA6C,uIAAuI,EAAE;AACtL;AACA;AACA;AACA,mCAAmC,SAAS;AAC5C;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA,mCAAmC,SAAS;AAC5C;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,EAEJ;AACT;AACA;AACA;AACA;AACA;AACA,kCAAkC,eAAe;AACjD;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,4BAA4B;AAC/C;AACA;AACA;AACA,mBAAmB,kCAAkC;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gD;;;;;;;;ACnoBa;AACb,8CAA8C,cAAc;AAC5D,iBAAiB,mBAAO,CAAC,MAA4B;AACrD,wBAAwB,mBAAO,CAAC,MAAmB;AACnD,0BAA0B,mBAAO,CAAC,MAA6B;AAC/D,qBAAqB,mBAAO,CAAC,MAAwB;AACrD,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C,2BAA2B,mBAAO,CAAC,MAAsB;AACzD;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb;AACA;AACA,8BAA8B,SAAS;AACvC;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,KAAsC,EAAE,EAE3C;AACrB;AACA,wBAAwB,KAAsC,EAAE,EAK3C;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf,WAAW;AACX,OAAO;AACP;AACA;AACA;AACA,uC;;;;;;;;AC9Ja;AACb,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,oD;;;;;;;;AC9Da;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,kBAAkB,mBAAO,CAAC,MAAa;AACvC,iBAAiB,mBAAO,CAAC,MAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA,oCAAoC,6CAA6C;AACjF;AACA;AACA,oCAAoC,wBAAwB;AAC5D;AACA;AACA,oCAAoC,kCAAkC;AACtE;AACA;AACA,oCAAoC,kCAAkC;AACtE;AACA;AACA,oCAAoC,mCAAmC;AACvE;AACA;AACA,oCAAoC,2BAA2B;AAC/D;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;;;ACnEa;AACb,8CAA8C,cAAc;AAC5D,iBAAiB,mBAAO,CAAC,MAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;ACnBa;AACb,8CAA8C,cAAc;AAC5D,eAAe,mBAAO,CAAC,MAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;;AClCa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uC;;;;;;;;ACXa;AACb,8CAA8C,cAAc;AAC5D,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA,4CAA4C,qBAAqB,kBAAkB;AACnF,sBAAsB;AACtB,kCAAkC;AAClC,oCAAoC,OAAO;AAC3C,uBAAuB;AACvB,sDAAsD,SAAS,WAAW;AAC1E;AACA,yCAAyC;AACzC;AACA,wCAAwC;AACxC;AACA,gGAAgG,6CAA6C,2BAA2B;AACxK,kDAAkD,aAAa;AAC/D;AACA;AACA;AACA,4BAA4B,MAAM,EAAE;;;;AAIpC;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;;ACrDA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;ACnCY;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,eAAe,mBAAO,CAAC,MAAmB;AAC1C,eAAe,mBAAO,CAAC,MAAmB;AAC1C,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,iD;;;;;;;ACjNA,iBAAiB,mBAAO,CAAC,MAAW;;;;;;;;;ACAvB;AACb,8CAA8C,cAAc;AAC5D,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,6C;;;;;;;AChCA,eAAe,mBAAO,CAAC,MAAW;AAClC;;;;;;;;;;;;ACDA;;AAEA;AACA,MAAM,IAAuC;AAC7C,IAAI,mBAAO,CAAC,MAAyB;AACrC;;AAEA;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACe,sDAAI;;;;;;ACdnB,0BAA0B,aAAa,0BAA0B,wBAAwB;AACzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkBA;AACA,uBADA;AAEA;AACA,mBADA;AAEA;AACA,kBADA;AAEA;AAFA,KAFA;AAMA;AACA,kBADA;AAEA;AAFA,KANA;AAUA,iBAVA;AAWA;AAXA,GAFA;AAeA,MAfA,kBAeA;AACA;AACA;AAjBA,G;;ACnBoV,CAAgB,mHAAG,EAAC,C;;ACAxW;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5F0F;AAC3B;AACL;;;AAG1D;AAC6F;AAC7F,gBAAgB,kBAAU;AAC1B,EAAE,2CAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,iE;;AClBf,IAAI,0CAAM,gBAAgB,aAAa,0BAA0B,wBAAwB,oCAAoC,OAAO,wBAAwB;AAC5J,IAAI,mDAAe;;;;;;;;;;;;;;;ACSnB;AACA;AADA,G;;ACV+U,CAAgB,yGAAG,EAAC,C;;ACA9Q;AAC3B;AACL;;;AAGrD;AAC6F;AAC7F,IAAI,gBAAS,GAAG,kBAAU;AAC1B,EAAE,sCAAM;AACR,EAAE,0CAAM;AACR,EAAE,mDAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,2DAAS,Q;;AClBxB,IAAI,wCAAM,gBAAgB,aAAa,0BAA0B,wBAAwB,mCAAmC,UAAU,kCAAkC,YAAY,aAAa,0BAA0B;AAC3N,IAAI,iDAAe;;;;;;;;;;ACInB;AACA,kBADA;AAEA;AACA,YADA,sBACA;AACA;AACA;AAHA;AAFA,G;;ACL6U,CAAgB,qGAAG,EAAC,C;;ACA9Q;AAC3B;AACL;;;AAGnD;AAC6F;AAC7F,IAAI,cAAS,GAAG,kBAAU;AAC1B,EAAE,oCAAM;AACR,EAAE,wCAAM;AACR,EAAE,iDAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,+DAAS,Q;;AClBxB,IAAI,uCAAM,gBAAgB,aAAa,0BAA0B,wBAAwB,gBAAgB,wBAAwB,yBAAyB,0BAA0B;AACpL,IAAI,gDAAe;;;;;;;;;;;ACKnB;AACA,kBADA;AAEA;AACA,iBADA,2BACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AALA;AAOA;;AACA;AACA;AAZA;AAFA,G;;ACN4U,CAAgB,mGAAG,EAAC,C;;ACA9Q;AAC3B;AACL;;;AAGlD;AAC6F;AAC7F,IAAI,aAAS,GAAG,kBAAU;AAC1B,EAAE,mCAAM;AACR,EAAE,uCAAM;AACR,EAAE,gDAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,qDAAS,Q;;;AClBxB;AACA;AACA;AACA;AAGO,IAAMA,UAAU,GAAG;AACxBC,SAAO,EAAPA,MADwB;AAExBC,OAAK,EAALA,YAFwB;AAGxBC,MAAI,EAAJA,GAHwB;AAIxBC,aAAW,EAAXA,WAAWA;AAJa,CAAnB;AAOA,SAASC,yBAAT,CAAmCC,GAAnC,EAAwCC,WAAxC,EAAqD;AAC1D,OAAK,IAAIC,IAAT,IAAiBR,UAAjB,EAA6B;AAC3B,QAAIO,WAAJ,EAAiB;AACfE,aAAO,CAACC,IAAR,CAAa,cAAcF,IAA3B;AACAF,SAAG,CAACK,SAAJ,CAAcH,IAAd,EAAoBR,UAAU,CAACQ,IAAD,CAA9B;AACAC,aAAO,CAACG,OAAR,CAAgB,cAAcJ,IAA9B;AACD,KAJD,MAIO;AACLF,SAAG,CAACK,SAAJ,CAAcH,IAAd,EAAoBR,UAAU,CAACQ,IAAD,CAA9B;AACD;AAEF;AACF;AAGcR,gEAAf,E;;AC3BO,IAAMa,OAAO,GAAG,EAAhB;AAEA,SAASC,eAAT,CAAyBR,GAAzB,EAA8BC,WAA9B,EAA2C;AAChD,OAAK,IAAIC,IAAT,IAAiBK,OAAjB,EAA0B;AACxB,QAAIN,WAAJ,EAAiB;AACfE,aAAO,CAACC,IAAR,CAAa,qBAAqBF,IAAlC;AACAF,SAAG,CAACK,SAAJ,CAAcH,IAAd,EAAoBK,OAAO,CAACL,IAAD,CAA3B;AACAC,aAAO,CAACG,OAAR,CAAgB,qBAAqBJ,IAArC;AACD,KAJD,MAIO;AACLF,SAAG,CAACK,SAAJ,CAAcH,IAAd,EAAoBK,OAAO,CAACL,IAAD,CAA3B;AACD;AAEF;AACF;AAEcK,uDAAf,E;;;;;ACfA;AACA;AACA,IAAIb,uBAAU,GAAG,IAAjB,C,CAEA;;AACA;;;;;;;;;;AAaA;AACA;;AAEe;AACbe,QAAM,EAAE,CAACC,kBAAD,CADK;AAEbhB,YAAU,EAAEA,uBAFC;AAGbiB,OAAK,EAAE,CAAC,WAAD,EAAc,UAAd,CAHM;AAIbC,MAJa,kBAIN;AACL,QAAIA,IAAI,GAAG,EAAX;AACA,WAAO;AACLC,WAAK,EAAE,KAAKC,MAAL,CAAYC;AADd,KAAP;AAGD,GATY;AAWbC,cAXa,0BAWE;AACb,QAAML,KAAK,GAAG,KAAKM,QAAL,CAAcC,SAA5B;;AAEA,QAAIP,KAAK,CAACQ,QAAV,EAAoB;AAClB,WAAKF,QAAL,CAAcE,QAAd,GAAyBR,KAAK,CAACQ,QAA/B;AACA,aAAOR,KAAK,CAACQ,QAAb;AACD;AACF,GAlBY;AAmBbC,SAnBa,qBAmBH;AACRjB,WAAO,CAACkB,GAAR,CAAY,sBAAZ;AAED,GAtBY;AAuBbC,SAvBa,qBAuBH;AACR,QAAI,OAAOC,MAAP,KAAkB,WAAtB,EAAmC;AAEjCA,YAAM,CAACC,EAAP,GAAY,IAAZ;AACD;AACF;AA5BY,CAAf,E;;ACrBA;AACA;AACA;AAEA;AAEO,IAAMC,0BAAY,GAAGC,YAArB;AACA,IAAMC,+BAAiB,GAAGC,iBAA1B;AACA,IAAMrB,qBAAO,GAAGsB,WAAhB;AACA,IAAMC,aAAa,GAAGC,oBAAtB;AAIQJ,iFAAf,E;;ACbA;AAAA;AAAA;AAAA;AAAwB;AACA;AACT,4FAAG;AACI;;;;;;;;;ACHT;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA,+C;;;;;;;ACJA;AACA;;;;;;;;;ACDa;AACb,8CAA8C,cAAc;AAC5D,wBAAwB,mBAAO,CAAC,MAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,8CAA8C,EAAE;AAChH;AACA;AACA;AACA,gEAAgE,kBAAkB,EAAE;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,wCAAwC,EAAE;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,gFAAgF;AAClI;AACA;AACA,8FAA8F,wBAAwB;AACtH;AACA;AACA,uCAAuC,+EAA+E,EAAE;AACxH,2CAA2C,6HAA6H,EAAE;AAC1K,2CAA2C,6HAA6H,EAAE;AAC1K;AACA;AACA,KAAK;AACL,4CAA4C,iIAAiI,EAAE;AAC/K,4CAA4C,iIAAiI,EAAE;AAC/K,0CAA0C,kHAAkH,EAAE;AAC9J;AACA;AACA,KAAK;AACL,0CAA0C,kHAAkH,EAAE;AAC9J;AACA;AACA,KAAK;AACL,gDAAgD,iGAAiG,EAAE;AACnJ,yDAAyD,2HAA2H,EAAE;AACtL,gDAAgD,gGAAgG,EAAE;AAClJ,yDAAyD,4HAA4H;AACrL;AACA,0C","file":"server.common.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\n/**\n * formatuje czas do formatu HH:mm:ss\n * @param dt data typu Date\n */\nfunction ftime(dt) {\n return fdatetime_1.formatDateFunction['HH:mm:ss'](dt);\n // return padNumber(dt.getHours()) + ':' + padNumber(dt.getMinutes()) + ':' + padNumber(dt.getSeconds());\n}\nexports.default = ftime;\n//# sourceMappingURL=ftime.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar validCalcFunction_1 = require(\"../JSchema/validCalcFunction\");\nvar fnumber_1 = require(\"../methods/fnumber\");\nvar fmoney_1 = require(\"../methods/fmoney\");\nfunction anyCalc(schema) {\n if (schema.anyCalc !== undefined) {\n return schema.anyCalc;\n }\n if (schema.calc || schema.summary || schema.aggregate) {\n Object.defineProperty(schema, 'anyCalc', {\n value: true\n });\n return true;\n }\n else if (schema.properties) {\n for (var key in schema.properties) {\n if (schema.properties.hasOwnProperty(key)) {\n var isCalc = anyCalc(schema.properties[key]);\n if (isCalc) {\n Object.defineProperty(schema, 'anyCalc', {\n value: true\n });\n return true;\n }\n }\n }\n }\n else if (schema.items) {\n return anyCalc(schema.items);\n }\n Object.defineProperty(schema, 'anyCalc', {\n value: false\n });\n return false;\n}\nexports.anyCalc = anyCalc;\n// export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\nfunction wrapSchemaProps($schema, internal, type, props) {\n for (var i = 0; i < props.length; i++) {\n var field = props[i];\n if (internal.schema[field] !== undefined) {\n if (typeof internal.schema[field] !== type) {\n wrapSchemaProp($schema, field, internal);\n }\n else {\n $schema[field] = internal.schema[field];\n }\n }\n }\n}\nexports.wrapSchemaProps = wrapSchemaProps;\nfunction wrapSchemaProp($schema, field, internal, func) {\n var schema = internal.schema;\n internal.needsCalcArgs = true;\n var v = schema[field];\n delete $schema[field];\n // if (self.isSimpleField(v)) {\n if (false) {\n // console.log(field + ' simplefield:', v);\n Object.defineProperty($schema, field, {\n enumerable: true,\n get: function () {\n return this.vm.$options.$ext.$model[v];\n }\n });\n }\n else {\n // console.log(`create valid function`, field, v, internal.parent);\n internal.useComputedModel = true;\n if (schema.cache === undefined) {\n schema.cache = {};\n }\n var ff_1 = schema.cache[\"schema_\" + field];\n if (ff_1 === undefined) {\n ff_1 = validCalcFunction_1.default(v);\n // console.log('calc func', ff.toString());\n schema.cache[\"schema_\" + field] = ff_1;\n }\n internal.computed[\"schema_\" + field] = {\n get: function () {\n // console.log('calc 2', field);\n return ff_1.apply(internal.parent, internal.calcargs);\n }\n };\n if (func) {\n // func(ff.apply(internal.parent, internal.calcargs));\n // internal.watch[`schema_${field}`] = func;\n internal.watch['schema_' + field] = {\n handler: func,\n immediate: true\n };\n }\n // delete $schema[field];\n Object.defineProperty($schema, field, {\n enumerable: true,\n get: function () {\n try {\n return internal.vm[\"schema_\" + field];\n }\n catch (_a) {\n return undefined;\n }\n }\n });\n }\n}\nexports.wrapSchemaProp = wrapSchemaProp;\nvar msgRegex = {\n minimum: /\\{\\{minimum\\}\\}/g,\n maximum: /\\{\\{maximum\\}\\}/g,\n exclusiveMaximum: /\\{\\{exclusiveMaximum\\}\\}/g,\n exclusiveMinimum: /\\{\\{exclusiveMinimum\\}\\}/g,\n multipleOf: /\\{\\{multipleOf\\}\\}/g,\n maxLength: /\\{\\{maxLength\\}\\}/g,\n minLength: /\\{\\{minLength\\}\\}/g,\n maxItems: /\\{\\{maxItems\\}\\}/g,\n minItems: /\\{\\{minItems\\}\\}/g,\n pattern: /\\{\\{pattern\\}\\}/g,\n format: /\\{\\{format\\}\\}/g,\n enum: /\\{\\{enum\\}\\}/g,\n title: /\\{\\{title\\}\\}/g,\n value: /\\{\\{value\\}\\}/g\n};\nvar mustacheRegex = /{{([a-z.\\[\\]\\s\\?\\\"\\'\\:\\(\\)\\+]*)}}/gmi;\nfunction getRuleMessage(internal, rule, value, $schema) {\n // let result = rules[rule];\n // if (result) return result;\n if ($schema === void 0) { $schema = null; }\n $schema = $schema || internal.schema;\n var msg = internal.schema.validationMessages ? internal.schema.validationMessages[rule] : undefined;\n if (msg === undefined) {\n if (rule === 'type') {\n msg = internal.options.validationMessages[internal.schema.type];\n }\n if (msg === undefined) {\n msg = internal.options.validationMessages[rule] || rule;\n }\n // jeśli na starcie było zdefiniowane jako numer to od razu podmień\n if (typeof internal.schema[rule] === 'number') {\n // msg = msg.replace(new RegExp(`{{${rule}}}`, 'g'), schema[rule]);\n msg = msg.replace(msgRegex[rule] || 'rrr', function () { return (internal.schema[rule] === undefined ? '' : fnumber_1.default(internal.schema[rule])); });\n }\n // schema.validationMessages[rule] = msg;\n }\n // zamiana {{maxLength}} na prawdziwą wartość\n return msg.replace(mustacheRegex, function (match, matchrule) {\n switch (matchrule) {\n case 'key': return internal.schema.$key || '';\n case 'title': return $schema.title || internal.schema.$key || '';\n case 'format': return internal.schema.format || '';\n case 'value': return value;\n case 'minimum':\n case 'maximum':\n case 'exclusiveMinimum':\n case 'exclusiveMaximum':\n var svalue = $schema[matchrule];\n if (svalue !== undefined) {\n if (typeof svalue === 'number') {\n if (internal.schema.type === 'money') {\n return fmoney_1.default(svalue);\n }\n else {\n return fnumber_1.default(svalue);\n }\n }\n if (internal.schema.type === 'string' && internal.schema.format === 'date') {\n if (svalue.length >= 10) {\n return svalue.substr(8, 2) + \".\" + svalue.substr(5, 2) + \".\" + svalue.substr(0, 4);\n }\n else {\n return svalue;\n }\n }\n return svalue;\n }\n return '';\n default: return $schema[matchrule] || '';\n }\n });\n // msg = msg.replace(msgRegex[rule] || 'rrr', () => ($schema[rule] === undefined ? '' : $schema[rule]));\n // return msg.replace(msgRegex.value, value);\n}\nexports.getRuleMessage = getRuleMessage;\nfunction initVue(prop, internal) {\n if (internal.needsCalcArgs) {\n if (internal.options.external) {\n internal.calcargs[4] = internal.options.external;\n // console.log('set external', self.external);\n }\n else {\n internal.calcargs[4] = {};\n }\n internal.calcargs[5] = internal.options.schemaMethods;\n internal.calcargs[6] = prop;\n internal.calcargs[0] = prop.$root.$model;\n var dest = prop.$parent;\n if (dest && dest.$parent) {\n internal.calcargs[1] = dest.$parent.$model;\n if (dest.$parent.$parent) {\n internal.calcargs[2] = dest.$parent.$parent.$model;\n if (dest.$parent.$parent.$parent) {\n internal.calcargs[3] = dest.$parent.$parent.$parent.$model;\n }\n else {\n internal.calcargs[3] = {};\n }\n }\n else {\n internal.calcargs[2] = internal.calcargs[3] = {};\n }\n }\n else {\n internal.calcargs[1] = internal.calcargs[2] = internal.calcargs[3] = {};\n }\n }\n if (internal.useComputedModel || internal.needsCalcArgs) {\n internal.useComputedModel = true;\n internal.computed.model = {\n get: function () { return prop.getValue(); },\n set: function (newValue) { return prop.setValue(newValue); }\n };\n internal.vm = new internal.options.Vue({\n /*\n data() {\n return internal.reactiveData;\n },\n */\n computed: internal.computed,\n watch: internal.watch\n // methods: {\n // mround,\n // },\n // $ext: extraData\n });\n }\n else {\n // internal.vm = internal.options.Vue.observable(internal.reactiveData);\n }\n}\nexports.initVue = initVue;\n//# sourceMappingURL=functions.js.map","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Porównuje dane uzywając schematu, zwraca CompareResult zawierający wynik porównania i listę róźnic\n * @param firstItem pierwszy element do porównania\n * @param secondItem drugi element do porównania\n */\nfunction compareData(schema, firstItem, secondItem, compareArraySize) {\n var result = new CompareResult();\n _compareData(schema, firstItem, secondItem, '', result, compareArraySize);\n return result;\n}\nexports.default = compareData;\nvar CompareResult = /** @class */ (function () {\n function CompareResult() {\n this.equal = true;\n this.diff = [];\n }\n return CompareResult;\n}());\nexports.CompareResult = CompareResult;\nfunction _compareData(schema, firstItem, secondItem, path, result, compareArraySize) {\n if (schema.type === 'object') {\n if (typeof firstItem !== 'object') {\n firstItem = {};\n }\n if (typeof secondItem !== 'object') {\n secondItem = {};\n }\n if (schema.properties) {\n for (var key in schema.properties) {\n if (schema.properties.hasOwnProperty(key)) {\n var element = schema.properties[key];\n var value1 = firstItem[key];\n var value2 = secondItem[key];\n _compareData(element, value1, value2, path === '' ? key : path + '.' + key, result, compareArraySize);\n }\n }\n }\n }\n else if (schema.type === 'array') {\n var items = schema.items;\n if (items) {\n if (!Array.isArray(firstItem)) {\n firstItem = [];\n }\n if (!Array.isArray(secondItem)) {\n secondItem = [];\n }\n // if (Array.isArray(firstItem) && Array.isArray(secondItem)) {\n if (firstItem.length !== secondItem.length && compareArraySize) {\n result.equal = false;\n result.diff.push({\n path: path,\n type: 'arrayLength',\n value: [firstItem.length, secondItem.length],\n schema: schema\n });\n }\n var mlength = Math.max(firstItem.length, secondItem.length);\n for (var i = 0; i < mlength; i++) {\n _compareData(items, firstItem[i], secondItem[i], path + '[' + i + ']', result, compareArraySize);\n }\n }\n // }\n }\n else {\n if (firstItem === undefined && secondItem === undefined) {\n return;\n }\n if (firstItem === undefined || secondItem === undefined) {\n result.equal = false;\n result.diff.push({\n path: path,\n type: 'value',\n value: [firstItem, secondItem],\n schema: schema\n });\n return;\n }\n if ('' + firstItem !== '' + secondItem) {\n result.equal = false;\n result.diff.push({\n path: path,\n type: 'value',\n value: [firstItem, secondItem],\n schema: schema\n });\n return;\n }\n }\n}\n//# sourceMappingURL=compareData.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar validationMessages = {\n type: 'Nieprawidłowa wartość',\n number: 'Pole musi być liczbą',\n money: 'Pole musi być liczbą',\n integer: 'Pole musi być liczbą całkowitą',\n required: 'Wartość pola jest wymagana',\n fieldRequired: 'Wartość pola jest wymagana',\n minimum: 'Minimalnie {{minimum}}',\n maximum: 'Maksymalnie {{maximum}}',\n exclusiveMinimum: 'Musi być większe niz {{exclusiveMinimum}}',\n exclusiveMaximum: 'Musi być mniejsze niz {{exclusiveMaximum}}',\n multipleOf: 'Musi być wielokrotnością {{multipleOf}}',\n maxLength: 'Tekst jest zbyt długi, maksymalnie {{maxLength}} znaków',\n minLength: 'Tekst jest zbyt krótki, minimalnie {{minLength}} znaków',\n maxItems: 'Zbyt dużo elementów, maksymalnie {{maxItems}}',\n minItems: 'Za mało elementów, minimalnie {{minItems}}',\n enum: 'Nieprawidłowa wartość',\n format: 'Nieprawidłowy format',\n pattern: 'Nieprawidłowy format'\n};\nexports.default = validationMessages;\n//# sourceMappingURL=validationMessages.js.map","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar schemaMethods_1 = require(\"../schemaMethods\");\nvar validationMessages_1 = require(\"../validationMessages\");\nexports.defaultOptions = {\n Vue: null,\n resetOnFocus: true,\n dirtyOnInput: false,\n dirtyOnBlur: true,\n disableCalculations: false,\n disableValidations: false,\n startDirty: false,\n schemaMethods: schemaMethods_1.default,\n wrapAll: false,\n validationMessages: validationMessages_1.default,\n form: {},\n external: {}\n};\nfunction fixSchemaOptions(options) {\n if (options) {\n return Object.assign({}, exports.defaultOptions, options);\n }\n else {\n return Object.assign({}, exports.defaultOptions);\n }\n}\nexports.fixSchemaOptions = fixSchemaOptions;\n//# sourceMappingURL=IOptions.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * dodaje widoące zera do liczby\n * @param value liczba\n * @param minLength minimalna, wynikowa długośc tekstu\n */\nfunction padNumber(value, minLength) {\n if (minLength === void 0) { minLength = 2; }\n var result = '' + value;\n while (result.length < minLength) {\n result = '0' + result;\n }\n return result;\n}\nexports.default = padNumber;\n//# sourceMappingURL=padNumber.js.map","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar precisions = [1, 10, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8];\n/**\n * zaokrągla liczbę zmiennoprzecinkową uwzględniając przekłamania JS\n * @param value liczba\n * @param precision do ilu miejsc po przecinku zaokrąglić, domyślnie 2\n */\nfunction mround(value, precision) {\n if (precision === void 0) { precision = 2; }\n if (value === undefined) {\n return value;\n }\n // return Number(Math.round(+(`${value}e${precision}`)) + `e-${precision}`);\n var nnumber = value * precisions[precision];\n if (nnumber % 1 === 0) {\n return value;\n }\n else {\n return Math.round(nnumber + 0.0000000000001) / precisions[precision];\n }\n}\nexports.default = mround;\n//# sourceMappingURL=mround.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar setData_1 = require(\"./setData\");\nvar defaultValue_1 = require(\"./defaultValue\");\nfunction fixData(schema, data, Vue) {\n var result = 0;\n if (schema.type === 'object') {\n var props = schema.properties;\n for (var key in schema.properties) {\n if (props.hasOwnProperty(key)) {\n var pschema = props[key];\n if (data[key] === undefined) {\n setData_1.setDataValue(pschema, data, key, defaultValue_1.default(pschema, true), Vue);\n result++;\n }\n else if (data[key] === null && (pschema.type === 'array' || pschema.type === 'object')) {\n setData_1.setDataValue(pschema, data, key, defaultValue_1.default(pschema, true), Vue);\n result++;\n }\n else {\n result += fixData(pschema, data[key], Vue);\n }\n }\n }\n }\n else if (schema.type === 'array') {\n var pschema = schema.items;\n for (var i = 0; i < data.length; i++) {\n var value = data[i];\n result += fixData(pschema, value, Vue);\n }\n }\n return result;\n}\nexports.default = fixData;\n//# sourceMappingURL=fixData.js.map","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar formatFunctions_1 = require(\"../formatFunctions\");\n/**\n * Sprawdza czy tekst jest podanego formatu\n * @param format format tekstu\n * @param value wartośc do weryfikacji\n */\nfunction check(format, value) {\n return formatFunctions_1.checkFormat(format, value);\n}\nexports.default = check;\n//# sourceMappingURL=check.js.map","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar padNumber_1 = require(\"./methods/padNumber\");\n/**\n * klasa reprezentująca różnicę czasu\n */\nvar TimeSpan = /** @class */ (function () {\n function TimeSpan(ms, lateDate, earlyDate) {\n this.ms = ms;\n this.lateDate = lateDate;\n this.earlyDate = earlyDate;\n }\n TimeSpan.diff = function (lateDate, earlyDate) {\n try {\n var dt1 = new Date(lateDate);\n var dt2 = new Date(earlyDate);\n return new TimeSpan(dt1.getTime() - dt2.getTime(), dt1, dt2);\n }\n catch (_a) {\n return new TimeSpan(0);\n }\n };\n Object.defineProperty(TimeSpan.prototype, \"totalMiliseconds\", {\n /**\n * całkowita liczba milisekund\n */\n get: function () {\n return this.ms;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"miliseconds\", {\n /**\n * ilośc milisekund po odjęciu sekund, minut, godzin i dni\n */\n get: function () {\n return this.ms % 1000;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"totalSeconds\", {\n /**\n * całkowita liczba sekund = liczba milisekund /1000\n */\n get: function () {\n return this.ms / 1000;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"seconds\", {\n /**\n * liczba sekund po odjęciu minut, godzin i dni\n */\n get: function () {\n // return this.ms % (1000 * 60);\n return Math.trunc((this.totalMinutes % 1) * 60);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"totalMinutes\", {\n /**\n * całkowita liczba minut\n */\n get: function () {\n return this.ms / 60000 /* 1000 * 60 */;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"minutes\", {\n /**\n * liczba minut po odjęciu godzin i dni\n */\n get: function () {\n return Math.trunc((this.totalHours % 1) * 60);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"totalHours\", {\n /**\n * całkowita liczba godzin\n */\n get: function () {\n return this.ms / 3600000 /* 1000 * 60 * 60 */;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"hours\", {\n /**\n * liczba godzn po odjęciu liczby dni\n */\n get: function () {\n return Math.trunc((this.totalDays % 1) * 24);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"totalDays\", {\n /**\n * całkowita liczba dni\n */\n get: function () {\n return this.ms / 86400000 /*1000 * 60 * 60 * 24*/;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"days\", {\n /**\n * liczba dni, wartośc całkowita\n */\n get: function () {\n return Math.trunc(this.totalDays);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeSpan.prototype, \"months\", {\n /**\n * liczba miesięcy, wartośc całkowita\n */\n get: function () {\n if (this.earlyDate && this.lateDate) {\n var res = (this.lateDate.getFullYear() - this.earlyDate.getFullYear()) * 12;\n res += this.lateDate.getMonth();\n res -= this.earlyDate.getMonth();\n if (res > 0) {\n if (this.lateDate.getDate() < this.earlyDate.getDate()) {\n res--;\n }\n }\n else if (res < 0) {\n if (this.lateDate.getDate() > this.earlyDate.getDate()) {\n res++;\n }\n }\n return res;\n }\n else {\n return Math.trunc(this.days / 30);\n }\n },\n enumerable: true,\n configurable: true\n });\n /**\n * róznica w postaci HH:mm:ss\n */\n TimeSpan.prototype.toString = function () {\n return padNumber_1.default(Math.trunc(this.totalHours), 2)\n + ':'\n + padNumber_1.default(this.minutes, 2)\n + ':'\n + padNumber_1.default(this.seconds, 2);\n };\n return TimeSpan;\n}());\nexports.default = TimeSpan;\n//# sourceMappingURL=TimeSpan.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Parsowanie tekstowego formatu daty do Date\n * @param date data w formacie YYYY-MM-DD lub YYYY-MM-DD HH:mm:ss\n */\nfunction dateParse(date) {\n if (date.length === 10) {\n return new Date(date + ' 00:00:00');\n }\n else {\n return new Date(date);\n }\n}\nexports.default = dateParse;\n//# sourceMappingURL=dateParse.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\nvar functions_1 = require(\"./functions\");\nvar defaultValue_1 = require(\"../JSchema/defaultValue\");\nvar setData_1 = require(\"../JSchema/setData\");\nvar WrappedPropertyObject = /** @class */ (function (_super) {\n __extends(WrappedPropertyObject, _super);\n function WrappedPropertyObject(dest, parent, propName, schema, options) {\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\n var internal = _this._internal;\n internal.schemaprops = schema.properties;\n internal.cacheProp = {};\n var mparent = (internal.mparent = parent[propName]);\n functions_1.initVue(_this, _this._internal);\n if (internal.schemaprops) {\n if (mparent === undefined) {\n var defvalue = defaultValue_1.default(schema, true);\n options.Vue.set(parent, propName, defvalue);\n internal.mparent = mparent = parent[propName];\n }\n // tworzenie property\n var required = schema.required || [];\n var _loop_1 = function (key) {\n if (internal.schemaprops.hasOwnProperty(key)) {\n var element_1 = internal.schemaprops[key];\n if ((element_1.fieldRequired === undefined) && (required.indexOf(key) > -1)) {\n element_1.fieldRequired = true;\n }\n // setTimeout(function() {\n // self.wrapProperty(obj, mparent, key, element);\n // let proptime = (new Date()).getTime();\n if (this_1._options.wrapAll) {\n var prop = (this_1[key] = new WrappedPropertyCtor_1.default[element_1.type](this_1, mparent, key, element_1, options));\n if (this_1.$dirty) {\n prop.$dirty = true;\n }\n }\n else {\n Object.defineProperty(this_1, key, {\n enumerable: true,\n get: function () {\n var prop = internal.cacheProp[key];\n if (prop === undefined) {\n prop = internal.cacheProp[key] = new WrappedPropertyCtor_1.default[element_1.type](this, mparent, key, element_1, options);\n if (this.$dirty) {\n prop.$dirty = true;\n }\n }\n return prop;\n }\n });\n // console.log('prop time 1', key, (new Date()).getTime() - proptime);\n // trzeba utworzyć tabele jeśli są undefined w modelu\n if (element_1.type === 'array' || mparent[key] === undefined || functions_1.anyCalc(element_1)) {\n var prop = internal.cacheProp[key] = new WrappedPropertyCtor_1.default[element_1.type](this_1, mparent, key, element_1, options);\n if (this_1.$dirty) {\n prop.$dirty = true;\n }\n }\n }\n // console.log('prop time', key, (new Date()).getTime() - proptime);\n }\n };\n var this_1 = this;\n for (var key in internal.schemaprops) {\n _loop_1(key);\n }\n }\n return _this;\n }\n WrappedPropertyObject.prototype.$setData = function (value, path, fixArraySize) {\n // /Vue.set(parent, propName, value);\n return setData_1.default(this._internal.schema, this.$model, value, path, 0, this._options.Vue, fixArraySize);\n };\n WrappedPropertyObject.prototype.$validate = function (value) {\n this.$dirty = true;\n if (!this.$parent) {\n // self.startDirty = true;\n this._internal.options.startDirty = true;\n }\n return null;\n /*\n if (value === undefined) {\n value = mparent;\n }\n */\n };\n WrappedPropertyObject.prototype.$validateAll = function (result) {\n if (result === undefined) {\n result = [];\n }\n this.$dirty = true;\n for (var key in this._internal.schemaprops) {\n this[key].$validateAll(result);\n }\n return result;\n };\n WrappedPropertyObject.prototype.$reset = function () {\n for (var key in this._internal.cacheProp) {\n var prop = this._internal.cacheProp[key];\n if (prop !== undefined) {\n prop.$reset();\n }\n }\n this.$dirty = false;\n if (!this.$parent) {\n this._internal.options.startDirty = false;\n }\n };\n WrappedPropertyObject.prototype.$dirtyList = function (result) {\n if (result === undefined) {\n result = [];\n }\n for (var key in this._internal.cacheProp) {\n var prop = this._internal.cacheProp[key];\n if (prop) {\n prop.$dirtyList(result);\n }\n }\n return result;\n };\n return WrappedPropertyObject;\n}(WrappedPropertyBase_1.default));\nexports.default = WrappedPropertyObject;\nWrappedPropertyCtor_1.default.object = WrappedPropertyObject;\n//# sourceMappingURL=WrappedPropertyObject.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar generateGuid_1 = require(\"../methods/generateGuid\");\n/**\n * Domyślna wartośc na podstawie pól default ze schematu\n * @param schema schemat\n * @param force czy wymusić domyślne wartości dla kazdego pola:\n * * liczba: `0`\n * * boolean: `false`\n * * string: `\"\"`\n *\n */\nfunction defaultValue(schema, force, defaultNumber) {\n if (force === void 0) { force = false; }\n if (defaultNumber === void 0) { defaultNumber = null; }\n var result = null;\n if (schema.type === 'object') {\n if (schema.default !== undefined) {\n if (schema.default === null) {\n return null;\n }\n else {\n return Object.assign({}, schema.default);\n }\n }\n result = {};\n var isEmpty = true;\n if (schema.properties) {\n for (var key in schema.properties) {\n if (schema.properties.hasOwnProperty(key)) {\n var element = schema.properties[key];\n var value = defaultValue(element, force, defaultNumber);\n if (value !== undefined) {\n result[key] = value;\n isEmpty = false;\n }\n }\n }\n }\n if (!isEmpty || schema.$parent === undefined || force) {\n return result;\n }\n }\n else if (schema.type === 'array') {\n var minLength = 0;\n // let minLength = schema.minItems\n if (schema.default !== undefined) {\n if (typeof schema.default === 'number') {\n minLength = schema.default;\n }\n else {\n return Array.from(schema.default);\n }\n }\n if ((schema.length !== undefined) && (typeof schema.length === 'number')) {\n minLength = schema.length;\n }\n result = [];\n var isEmpty = true;\n if (schema.items) {\n if (minLength) {\n for (var i = 0; i < minLength; i++) {\n var value = defaultValue(schema.items, force, defaultNumber);\n result.push(value);\n isEmpty = false;\n }\n }\n else {\n /*\n const value = defaultValue(schema.items, force);\n if (value !== undefined) {\n result.push(value);\n isEmpty = false;\n }\n */\n }\n }\n // if (!isEmpty) return result;\n if (!isEmpty || schema.$parent === undefined || force) {\n return result;\n }\n }\n if (schema.default !== undefined) {\n return schema.default;\n }\n if (force) {\n switch (schema.type) {\n case 'number':\n case 'money':\n case 'integer':\n return defaultNumber;\n case 'boolean':\n return false;\n case 'string':\n switch (schema.format) {\n case 'guid':\n return generateGuid_1.default();\n default:\n return '';\n }\n }\n }\n // return result;\n}\nexports.default = defaultValue;\n//# sourceMappingURL=defaultValue.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\nvar functions_1 = require(\"./functions\");\nvar WrappedPropertyString = /** @class */ (function (_super) {\n __extends(WrappedPropertyString, _super);\n function WrappedPropertyString(dest, parent, propName, schema, options) {\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\n // //export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\n functions_1.wrapSchemaProps(_this.$schema, _this._internal, 'number', ['maxLength', 'minLength', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum']);\n functions_1.initVue(_this, _this._internal);\n return _this;\n // console.log('string created', propName, this._internal.vmUserData);\n }\n WrappedPropertyString.prototype.$validate = function (value) {\n if (value === undefined) {\n value = this.$model;\n }\n this.$dirty = true;\n var req = this.$schema.fieldRequired;\n // console.log('propName.get()', req, svalue);\n if (value === '' || value === null) {\n if (req) {\n // console.timeEnd('(string)$validate');\n return functions_1.getRuleMessage(this._internal, 'required', value, this.$schema);\n }\n else {\n // pustego nie walidujemy\n // console.timeEnd('(string)$validate');\n return null;\n }\n }\n // console.timeEnd('(string)$validate');\n return _super.prototype.$validate.call(this, value);\n };\n WrappedPropertyString.prototype.getValue = function () {\n var svalue = this.$model;\n // if ($schema.format === 'date-time' && typeof propName === 'number') {\n // console.log('gettinf date-time', svalue, parent, JSON.stringify(propName));\n // }\n // let svalue = obj.$model;\n // to jest niepotrzebne, bo teraz czyta $error\n /*\n if (this.$dirty) {\n this.$validate(svalue);\n }\n */\n switch (this.$schema.format) {\n case 'date':\n if (svalue && svalue.length >= 10) {\n var nsvalue = svalue.substr(8, 2) + \".\" + svalue.substr(5, 2) + \".\" + svalue.substr(0, 4);\n svalue = nsvalue;\n }\n break;\n case 'date-time':\n if (svalue && svalue.length >= 10) {\n var nsvalue = svalue.substr(8, 2) + \".\" + svalue.substr(5, 2) + \".\" + svalue.substr(0, 4);\n if (svalue.length === 19) {\n var ntvalue = svalue.substr(11, 8);\n // if (ntvalue !== '00:00:00') {\n nsvalue += ' ' + ntvalue;\n // }\n }\n // console.log('get date-time', svalue, nsvalue, ntvalue);\n svalue = nsvalue;\n }\n break;\n }\n return svalue || '';\n };\n WrappedPropertyString.prototype.setValue = function (newValue) {\n /*\n if (newValue === '' || newValue === null) {\n if ($schema.fieldRequired) {\n vm.error = getRuleMessage(schema, 'required', newValue, $schema);\n // console.log('empty required ' + propName, vm.error);\n // ok = false;\n typeok = false;\n }\n // newValue = '';\n }\n */\n // check save type\n if (this.$schema.format) {\n switch (this.$schema.format) {\n case 'date':\n if (newValue && newValue.length >= 10) {\n newValue = newValue.substr(6, 4) + \"-\" + newValue.substr(3, 2) + \"-\" + newValue.substr(0, 2);\n // console.log('set date-time', newValue);\n }\n break;\n case 'date-time':\n if (newValue && newValue.length >= 10) {\n if (newValue.length === 19) {\n newValue = newValue.substr(6, 4) + \"-\" + newValue.substr(3, 2) + \"-\" + newValue.substr(0, 2) + \" \" + newValue.substr(11);\n }\n else {\n newValue = newValue.substr(6, 4) + \"-\" + newValue.substr(3, 2) + \"-\" + newValue.substr(0, 2) + \" 00:00:00\";\n }\n // console.log('set date-time', newValue);\n }\n break;\n }\n }\n /*\n if (!typeok) {\n this.stringValue = newValue;\n } else {\n this.stringValue = null;\n }\n */\n // parent[propName] = newValue;\n this.$model = newValue;\n if (this.$schema.format === 'date-time') {\n // console.log('date parent', parent);\n }\n if (!this.$dirty && this._options.dirtyOnInput) {\n this.$dirty = true;\n }\n };\n return WrappedPropertyString;\n}(WrappedPropertyBase_1.default));\nexports.default = WrappedPropertyString;\nWrappedPropertyCtor_1.default.string = WrappedPropertyString;\n//# sourceMappingURL=WrappedPropertyString.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar funcParams = \"$root,$parent,$parent2,$parent3,$external,$methods,$obj\";\nexports.default = funcParams;\n//# sourceMappingURL=funcParams.js.map","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Obcina początkowe i końcowe spacje w tekscie\n * @param text tekst do obcięcia\n */\nfunction trim(text) {\n return (text || '').trim();\n}\nexports.default = trim;\n//# sourceMappingURL=trim.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ValidationResult_1 = require(\"./ValidationResult\");\nvar formatFunctions_1 = require(\"../formatFunctions\");\nfunction validateTable(schema, data, path, exitOnFirstError) {\n if (path === void 0) { path = ''; }\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\n var result = [];\n if (schema.minLength !== undefined) {\n if (data.length < schema.minLength) {\n var err = {\n validation: 'minLength',\n expected: schema.minLength,\n value: data.length,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.maxLength !== undefined) {\n if (data.length > schema.maxLength) {\n var err = {\n validation: 'maxLength',\n expected: schema.maxLength,\n value: data.length,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n return exitOnFirstError ? null : result;\n}\nexports.validateTable = validateTable;\nfunction validateField(schema, data, path, exitOnFirstError) {\n if (path === void 0) { path = ''; }\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\n var schemaIsNumber = false;\n var dataIsNumber = false;\n var result = [];\n // console.log(JSON.stringify(schema));\n if (schema.type === 'number' || schema.type === 'money') {\n schemaIsNumber = true;\n if (typeof data !== 'number') {\n // result.valid = false;\n var err = {\n validation: 'type',\n expected: schema.type,\n value: typeof data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n else {\n dataIsNumber = true;\n }\n }\n else if (schema.type === 'int' || schema.type === 'integer') {\n schemaIsNumber = true;\n if (typeof data !== 'number') {\n // result.valid = false;\n var err = {\n validation: 'type',\n expected: schema.type,\n value: typeof data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n else {\n if (data % 1 !== 0) {\n // result.valid = false;\n var err = {\n validation: 'type',\n expected: schema.type,\n value: 'float',\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n else {\n dataIsNumber = true;\n }\n }\n }\n if (schemaIsNumber) {\n if (dataIsNumber) {\n if (schema.maximum !== undefined) {\n if (data > schema.maximum) {\n var err = {\n validation: 'maximum',\n expected: schema.maximum,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.exclusiveMaximum !== undefined) {\n if (data >= schema.exclusiveMaximum) {\n var err = {\n validation: 'exclusiveMaximum',\n expected: schema.maximum,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.minimum !== undefined) {\n if (data < schema.minimum) {\n var err = {\n validation: 'minimum',\n expected: schema.minimum,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.exclusiveMinimum !== undefined) {\n if (data <= schema.exclusiveMinimum) {\n var err = {\n validation: 'exclusiveMinimum',\n expected: schema.minimum,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n // multipleOf\n if (schema.multipleOf !== undefined) {\n if (data % schema.multipleOf !== 0) {\n var err = {\n validation: 'multipleOf',\n expected: schema.multipleOf,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n }\n }\n else {\n if (schema.type === 'string') {\n if (typeof data !== 'string') {\n var err = {\n validation: 'type',\n expected: schema.type,\n value: typeof data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n else {\n if (schema.maxLength !== undefined) {\n var l = data.length;\n if (l > schema.maxLength) {\n var err = {\n validation: 'maxLength',\n expected: schema.maxLength,\n value: l,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n if (schema.minLength !== undefined) {\n var l = data.length;\n if (l < schema.minLength) {\n var err = {\n validation: 'minLength',\n expected: schema.minLength,\n value: l,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n // pattern\n if (schema.format !== undefined && data) {\n var ok = formatFunctions_1.checkFormat(schema.format, data);\n if (!ok) {\n var err = {\n validation: 'format',\n expected: schema.format,\n value: data,\n path: path\n };\n if (exitOnFirstError) {\n return err;\n }\n result.push(err);\n }\n }\n }\n }\n }\n return exitOnFirstError ? null : result;\n}\nexports.validateField = validateField;\nfunction _validate(schema, data, path, exitOnFirstError, result) {\n if (schema.type === 'object') {\n var required = schema.required || [];\n if (schema.properties) {\n for (var key in schema.properties) {\n // for (let key of schema.$keys) {\n if (schema.properties.hasOwnProperty(key)) {\n var element = schema.properties[key];\n var value = data[key];\n if (required.indexOf(key) > -1) {\n if (value === undefined\n || (element.type === 'string' && !value)\n || (element.type === 'integer' && !value)) {\n // result.valid = false;\n result.errors.push({\n validation: 'required',\n path: path === '' ? key : path + '.' + key\n });\n if (exitOnFirstError) {\n continue;\n }\n }\n }\n if (value !== undefined) {\n _validate(element, value, path === '' ? key : path + '.' + key, exitOnFirstError, result);\n }\n }\n }\n }\n }\n else if (schema.type === 'array') {\n if (exitOnFirstError) {\n var err = validateTable(schema, data, path, true);\n if (err) {\n result.errors.push(err);\n }\n }\n else {\n var errs = validateTable(schema, data, path, false);\n if (errs.length) {\n result.errors = result.errors.concat(errs);\n }\n }\n // uniqueItems\n // contains\n var items = schema.items;\n if (items) {\n for (var i = 0; i < data.length; i++) {\n var res = _validate(items, data[i], path + '[' + i + ']', exitOnFirstError, result);\n }\n }\n }\n else {\n if (exitOnFirstError) {\n var err = validateField(schema, data, path, true);\n if (err) {\n result.errors.push(err);\n }\n }\n else {\n var errs = validateField(schema, data, path, false);\n if (errs.length > 0) {\n result.errors = result.errors.concat(errs);\n }\n }\n }\n}\n/**\n * Sprawdza poprawnoc danych według schematu i zawartej w nim walidacji\n * @param data dane do sprawdzenia\n * @param schema gałąź schamtu, gdy pominięto to uzywa glownej\n * @param path sciezka startowa pola, przy pominięciu ustawia pustą\n */\nfunction validate(schema, data, exitOnFirstError, path) {\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\n if (path === void 0) { path = ''; }\n var result = new ValidationResult_1.default();\n _validate(schema, data, path || '', exitOnFirstError, result);\n if (result.errors.length) {\n result.valid = false;\n }\n return result;\n}\nexports.default = validate;\n//# sourceMappingURL=validate.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar defaultValue_1 = require(\"./defaultValue\");\nvar dataValue_1 = require(\"./dataValue\");\nvar schemaValue_1 = require(\"./schemaValue\");\nvar validate_1 = require(\"./validate\");\nvar compareData_1 = require(\"./compareData\");\nvar clearData_1 = require(\"./clearData\");\nvar setData_1 = require(\"./setData\");\nvar fixAndMergeSchema_1 = require(\"./fixAndMergeSchema\");\nvar JSchema = /** @class */ (function () {\n function JSchema(schema) {\n this.schema = {};\n // this.schema={};\n if (schema) {\n this.init(schema);\n }\n }\n /**\n * ładowanie schema\n * @param schema JSONSchema | string | JSONSchema[] | string[]\n */\n JSchema.prototype.init = function (schema) {\n var schemalist = [];\n if (Array.isArray(schema)) {\n for (var _i = 0, schema_1 = schema; _i < schema_1.length; _i++) {\n var schemaitem = schema_1[_i];\n if (typeof schemaitem === 'string') {\n schemalist.push(JSON.parse(schemaitem));\n }\n else {\n schemalist.push(schemaitem);\n }\n }\n }\n else if (typeof schema === 'string') {\n schemalist.push(JSON.parse(schema));\n }\n else {\n schemalist.push(schema);\n }\n this.schema = fixAndMergeSchema_1.default(schemalist);\n };\n /**\n * Domyślna wartośc na podstawie pól default ze schematu\n * @param schemaPath Ściezka schematu dla ktorej zwrocic domyslan wartosc, gdy pominieta zwraca dla pelnego schematu\n */\n JSchema.prototype.defaultValue = function (force, schemaPath) {\n var schema = schemaPath ? this.schemaValue(schemaPath) : this.schema;\n if (schema) {\n return defaultValue_1.default(schema, force);\n }\n return null;\n };\n /**\n * Zwraca wartosc pola danych wg sciezki\n * @param data Pelne dane\n * @param path sciezka w formacie pole.tablica[0].pole2\n */\n JSchema.prototype.dataValue = function (data, path) {\n return dataValue_1.default(this.schema, data, path);\n };\n /**\n * Zwraca czesc schematu na podstawie sciezki\n * @param path sciezka w formacie pole.tablica[0].pole2\n */\n JSchema.prototype.schemaValue = function (path) {\n return schemaValue_1.default(this.schema, path);\n };\n /**\n * Sprawdza poprawnoc danych według schematu i zawartej w nim walidacji\n * @param data dane do sprawdzenia\n * @param schema gałąź schamtu, gdy pominięto to uzywa glownej\n * @param path sciezka schamtu, gdy pusta uzywa glownej\n */\n JSchema.prototype.validate = function (data, exitOnFirstError, schema, path) {\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\n if (schema === void 0) { schema = null; }\n if (path === void 0) { path = ''; }\n var result = validate_1.default(schema || this.schema, data, exitOnFirstError, path || '');\n if (result.errors.length) {\n result.valid = false;\n }\n return result;\n };\n /**\n * Porównuje dane uzywając schematu, zwraca CompareResult zawierający wynik porównania i listę róźnic\n * @param firstItem pierwszy element do porównania\n * @param secondItem drugi element do porównania\n */\n JSchema.prototype.compareData = function (firstItem, secondItem, compareArraySize) {\n return compareData_1.default(this.schema, firstItem, secondItem);\n };\n /**\n * Czyści dane pozostawiając tylko te zgodne ze schematem, nie weryfikuje prostych typów danych\n * @param data dane do wyczyszczenia\n * @param checkDataType czy sprawdzac poprawnośc typów danych prostych\n * (number,integer,boolean, string), domyślnie nie\n */\n JSchema.prototype.clearData = function (data, checkDataType) {\n return clearData_1.default(data, this.schema, checkDataType);\n };\n JSchema.prototype.setData = function (data, value, path, Vue) {\n return setData_1.default(this.schema, data, value, path, 0, Vue);\n };\n return JSchema;\n}());\nexports.default = JSchema;\n//# sourceMappingURL=JSchema.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fix_parent_1 = require(\"./fix$parent\");\nvar funcParams_1 = require(\"./funcParams\");\nvar schemaPath_1 = require(\"./schemaPath\");\nvar cacheFuncs = {};\n/**\n * tworzy funkcję obliczającą na podstawie schematu\n * @param schema schemat\n * @param cache czy używać cache\n * @param debug czy dodać debugger, wtedy każde wywołanie funkcji się zatrzymuje\n */\nfunction calcFunction(schema, cache, debug) {\n if (cache === void 0) { cache = true; }\n var func = null;\n var calc = schema.calc;\n if (calc) {\n var funcText = schema.calc;\n var cacheKey = funcText;\n var when = '';\n if (calc.when) {\n funcText = calc.func;\n when = calc.when;\n }\n if (cache && !debug) {\n func = cacheFuncs['calc_' + when + '_' + funcText];\n if (func !== undefined) {\n return func;\n }\n }\n var stext = fix_parent_1.default(funcText);\n var ftext = void 0;\n if (debug) {\n ftext = \"var result = (\" + stext + \");\\r\\n\";\n switch (schema.type) {\n case 'integer':\n ftext += \"result = $methods.mround(result,0);\\r\\n\";\n break;\n // case 'money': ftext += 'return Math.round($result);'; break;\n case 'money':\n ftext += \"result = $methods.mround(result,2);\\r\\n\";\n break;\n case 'number':\n if (schema.precision !== undefined) {\n ftext += \"result = $methods.mround(result,\" + schema.precision + \");\\r\\n\";\n }\n else {\n // ftext += `return result;`;\n }\n break;\n default:\n // ftext += `return result;`;\n break;\n }\n if (when) {\n ftext = \"if (\" + fix_parent_1.default(when) + \") { // when: \" + when + \"\\r\\n\\r\\n\" + ftext + \"return result;\\r\\n\\r\\n}\";\n }\n else {\n ftext += 'return result';\n }\n // schemaPath\n // ftext = 'console.debug($obj.$path);\\r\\ndebugger;\\r\\n' + ftext;\n ftext = \"\\r\\n/*** debug only ***/\\r\\n\\\"\" + schemaPath_1.default(schema, true) + \"\\\"; // schema path\\r\\nconsole.debug($obj.$path); // model path\\r\\ndebugger;\\r\\n\\r\\n/*** function body ***/\\r\\n\" + ftext;\n // ftext = `\"${schemaPath(schema, true)}\";\\r\\nconsole.debug($obj.$path);\\r\\ndebugger;\\r\\n${ftext}`;\n // ftext = '\"' + schemaPath(schema, true) + '\";\\r\\nconsole.debug($obj.$path);\\r\\ndebugger;\\r\\n' + ftext;\n }\n else {\n switch (schema.type) {\n case 'integer':\n ftext = \"return $methods.mround((\" + stext + \"),0);\\r\\n\";\n break;\n // case 'money': ftext += 'return Math.round($result);'; break;\n case 'money':\n ftext = \"return $methods.mround((\" + stext + \"),2);\\r\\n\";\n break;\n case 'number':\n if (schema.precision !== undefined) {\n ftext = \"return $methods.mround((\" + stext + \"),\" + schema.precision + \");\\r\\n\";\n }\n else {\n ftext = \"return (\" + stext + \");\";\n }\n break;\n default:\n ftext = \"return (\" + stext + \");\";\n break;\n }\n if (when) {\n ftext = \"if (\" + fix_parent_1.default(when) + \") {\\r\\n \" + ftext + \"}\";\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n ftext = '\"use strict\";\\r\\n' + ftext;\n }\n func = new Function(funcParams_1.default, ftext);\n if (cache && !debug) {\n cacheFuncs['calc_' + when + '_' + funcText] = func;\n }\n }\n return func;\n}\nexports.default = calcFunction;\n//# sourceMappingURL=calcFunction.js.map","exports.f = {}.propertyIsEnumerable;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * zwraca liczbę reprezetującą częśc daty\n * @param date data w formacie yyyy-MM-dd HH:mm:ss\n * @param part rok:y,yy,yyy,year;\n * miesiąc:M,MM,month;\n * dzien:d,dd,day;\n * godzina:h,hh,hour;\n * minuta:m,mm,minute;\n * sekunda:s,ss,second;\n */\nfunction datePart(date, part) {\n switch (part) {\n case 'y':\n case 'yy':\n case 'yyyy':\n case 'year':\n return _getInt(date, 0, 4);\n case 'M':\n case 'MM':\n case 'month':\n return _getInt(date, 5, 2);\n case 'd':\n case 'dd':\n case 'day':\n return _getInt(date, 8, 2);\n case 'h':\n case 'hh':\n case 'hour':\n return _getInt(date, 11, 2);\n case 'm':\n case 'mm':\n case 'minute':\n return _getInt(date, 14, 2);\n case 's':\n case 'ss':\n case 'second':\n return _getInt(date, 17, 2);\n default:\n return 0;\n }\n}\nexports.default = datePart;\nfunction _getInt(s, start, length) {\n if (start < s.length) {\n return +s.substr(start, length);\n var res = +s.substr(start, length);\n if (!isNaN(res)) {\n return res;\n }\n }\n return 0;\n}\n//# sourceMappingURL=datePart.js.map","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * sprawdza czy typ podanej wartości jest zgodny ze schematem\n * @param schema schemat\n * @param value wartośc do sprawdzenia\n */\nfunction checkType(schema, value) {\n if (value === null) {\n return true;\n }\n switch (schema.type) {\n case 'object':\n return typeof value === 'object';\n case 'array':\n return Array.isArray(value);\n case 'integer':\n case 'number':\n case 'money':\n if (typeof value !== 'number') {\n return false;\n }\n else if (schema.type === 'integer' && value % 1 !== 0) {\n return false;\n }\n else {\n return true;\n }\n case 'string':\n return typeof value === 'string';\n case 'boolean':\n return typeof value === 'boolean';\n default:\n return false;\n }\n}\nexports.default = checkType;\n//# sourceMappingURL=checkType.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\n/**\n * aktualna data i czas w formacie yyyy-MM-dd HH:mm:ss\n */\nfunction now() {\n return fdatetime_1.default(new Date());\n}\nexports.default = now;\n//# sourceMappingURL=now.js.map","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * generuje guid w formacie xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\n */\nfunction generateGuid() {\n var g = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\n return g.replace(/[xy]/g, function (c) {\n // tslint:disable-next-line:no-bitwise\n var r = (Math.random() * 16) | 0;\n // tslint:disable-next-line:no-bitwise\n var v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n // return g;\n}\nexports.default = generateGuid;\n//# sourceMappingURL=generateGuid.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar functions_1 = require(\"./functions\");\nvar defaultValue_1 = require(\"../JSchema/defaultValue\");\nvar validFunction_1 = require(\"../JSchema/validFunction\");\nvar calcFunction_1 = require(\"../JSchema/calcFunction\");\nvar aggregateFunction_1 = require(\"../JSchema/aggregateFunction\");\nvar clearData_1 = require(\"../JSchema/clearData\");\nvar getValidations_1 = require(\"../JSchema/getValidations\");\nvar WrappedPropertyBase = /** @class */ (function () {\n function WrappedPropertyBase(dest, parent, propName, schema, options) {\n this.$parent = dest;\n this.$key = propName;\n this._options = options;\n var internal = (this._internal = {\n vm: null,\n options: options,\n parent: parent,\n schema: schema,\n computed: {},\n watch: {},\n calcargs: [],\n reactiveData: undefined,\n needsCalcArgs: false,\n useComputedModel: false,\n vmUserData: null\n });\n var self = this;\n // root\n if (dest) {\n this.$root = dest.$root;\n }\n else {\n this.$root = this;\n }\n // create schema\n this.$schema = {\n type: schema.type\n };\n if (schema.title !== undefined) {\n this.$schema.title = schema.title;\n }\n if (schema.format !== undefined) {\n this.$schema.format = schema.format;\n }\n // default value\n if (parent[propName] === undefined) {\n options.Vue.set(parent, propName, defaultValue_1.default(schema, true));\n // parent[propName] = defaultValue(schema, true);\n // console.log('current value fixed', propName, parent);\n }\n // wrap schema props;\n /*\n for (let i = 0; i < wrapSchemaProps.length; i++) {\n const field = wrapSchemaProps[i];\n if (schema[field] !== undefined) {\n if (typeof schema[field] !== 'number') {\n wrapSchemaProp(this.$schema, field, internal);\n } else {\n this.$schema[field] = schema[field];\n }\n }\n }\n */\n // wrap schema.emun\n if (schema.enum !== undefined) {\n if (self.$isArrayItem) {\n if (!Array.isArray(schema.enum)) {\n functions_1.wrapSchemaProp(this.$schema, 'enum', internal, function (newValue) {\n if (newValue) {\n if (newValue.indexOf(self.$model) === -1) {\n options.Vue.nextTick(function () {\n self.$removeRow();\n });\n }\n /*\n setTimeout(() => {\n self.$removeRow();\n });\n */\n }\n });\n }\n else {\n this.$schema.enum = schema.enum;\n if (this.$schema.enum.indexOf(self.$model) === -1) {\n options.Vue.nextTick(function () {\n self.$removeRow();\n });\n /*\n setTimeout(() => {\n self.$removeRow();\n }, 0);\n */\n }\n }\n }\n else {\n if (!Array.isArray(schema.enum)) {\n functions_1.wrapSchemaProp(this.$schema, 'enum', internal);\n }\n else {\n this.$schema.enum = schema.enum;\n }\n }\n }\n // wrap schema.required\n if (schema.required !== undefined && schema.type !== 'object' && (typeof schema.required === 'string' || typeof schema.required === 'boolean')) {\n schema.fieldRequired = schema.required;\n }\n functions_1.wrapSchemaProps(this.$schema, internal, 'boolean', ['fieldRequired']);\n /*\n if (schema.fieldRequired !== undefined) {\n if (typeof schema.fieldRequired !== 'boolean') {\n wrapSchemaProp(this, 'fieldRequired', internal, 'boolean');\n } else {\n this.$schema.fieldRequired = schema.fieldRequired;\n }\n }\n */\n // tworzenie funkcji validującej\n if (!options.disableValidations && schema.validFunc) {\n internal.needsCalcArgs = true;\n var validFunc_1 = validFunction_1.default(schema, true, process.env.NODE_ENV === 'development' && schema.debug);\n internal.computed.validFunc = {\n get: function () {\n // var $value=parent[propName];\n // const funcvalue = ff(this._data, parent, propName);\n var funcvalue = validFunc_1.apply(parent, internal.calcargs);\n if (funcvalue === true || funcvalue === undefined) {\n return null;\n }\n if (funcvalue === false) {\n return 'validFunc';\n }\n return funcvalue;\n }\n };\n /*\n internal.watch.validFunc = {\n handler: (newValue: any, oldValue: any) => {\n if (self.$dirty) {\n self.$validate();\n }\n },\n immediate: false\n };\n */\n }\n if (!self._options.disableCalculations) {\n // tworzenie funkcji wyliczjącej wartośc na podstawie innych pól\n if (schema.calc) {\n this.$dirty = true;\n internal.needsCalcArgs = true;\n var calcFunc_1 = calcFunction_1.default(schema, true, process.env.NODE_ENV === 'development' && schema.debug);\n internal.computed.calc = {\n get: function () {\n if (process.env.NODE_ENV === 'development') {\n try {\n var res = calcFunc_1.apply(parent, internal.calcargs);\n if ((res === undefined && schema.calc.when === undefined && schema.calc.indexOf('undefined') === -1) || res === NaN) {\n console.error('[DEBUG] ERR calc result: ', self.$path, schema.calc, res);\n }\n return res;\n }\n catch (err) {\n console.error('[DEBUG] ERR calc: ', self.$path, schema.calc, err);\n return undefined;\n }\n }\n else {\n try {\n return calcFunc_1.apply(parent, internal.calcargs);\n }\n catch (_a) {\n return undefined;\n }\n }\n // if (schema.calc ==='this.Dotacja + this.SrodkiWlasne + this.WkladOsobowy + this.WkladRzeczowy + 5')\n }\n };\n internal.watch.calc = {\n handler: function (newValue, oldValue) {\n if (!self.$dirty && (self._options.dirtyOnBlur || self._options.dirtyOnInput)) {\n self.$dirty = true;\n }\n if (newValue !== undefined) {\n self.$setData(newValue, undefined, true);\n }\n },\n immediate: true\n };\n // computed.calc = calcFunc;\n }\n // tworzenie funkcji sumującej wartość z tablicy\n if (schema.summary) {\n schema.aggregate = {\n func: 'sum',\n array: schema.summary.array,\n property: schema.summary.property,\n when: schema.summary.when,\n if: schema.summary.if,\n delay: schema.summary.delay\n };\n delete schema.summary;\n }\n // tworzenie funkcji sumującej wartość z tablicy\n if (schema.aggregate) {\n internal.needsCalcArgs = true;\n this.$dirty = true;\n var aggregateFunc_1 = aggregateFunction_1.default(schema, true, process.env.NODE_ENV === 'development' && schema.debug);\n // if (schema.aggregate.async) {\n if (schema.aggregate.delay) {\n // if (false) {\n setTimeout(function () {\n // console.log('delayed create aggregate',obj.$path);\n var asyncVm = new internal.options.Vue({\n computed: {\n aggregate: {\n get: function () {\n // console.log('delayed run aggregate', obj.$path);\n if (process.env.NODE_ENV === 'development') {\n var res = aggregateFunc_1.apply(parent, internal.calcargs);\n if (res === undefined || res === NaN) {\n console.error('ERR aggregate:delay result=', res, propName, schema.calc);\n }\n return res;\n }\n else {\n return aggregateFunc_1.apply(parent, internal.calcargs);\n }\n }\n }\n },\n watch: {\n aggregate: function (newValue) {\n internal.options.Vue.set(parent, propName, newValue);\n }\n }\n });\n // this.vueInstances.push(asyncVm);\n }, schema.aggregate.delay);\n }\n else {\n internal.computed.aggregate = {\n get: function () {\n if (process.env.NODE_ENV === 'development') {\n try {\n var res = aggregateFunc_1.apply(parent, internal.calcargs);\n if (res === undefined || res === NaN) {\n console.error('[DEBUG] ERR aggregate result: ', self.$path, schema.aggregate, res);\n }\n return res;\n }\n catch (err) {\n console.error('[DEBUG] ERR aggregate: ', self.$path, schema.aggregate, err);\n return undefined;\n }\n }\n else {\n try {\n return aggregateFunc_1.apply(parent, internal.calcargs);\n }\n catch (_a) {\n return undefined;\n }\n }\n // return aggregateFunc()\n }\n };\n internal.watch.aggregate = {\n handler: function (newValue) {\n if (!self.$dirty && (self._options.dirtyOnBlur || self._options.dirtyOnInput)) {\n self.$dirty = true;\n }\n // Vue.set(parent, propName, newValue);\n if (newValue !== undefined) {\n self.$setData(newValue, undefined, true);\n }\n },\n immediate: true\n };\n }\n }\n }\n /*\n if (internal.needsCalcArgs) {\n if (options.external) {\n internal.calcargs[4] = options.external;\n // console.log('set external', self.external);\n }\n internal.calcargs[5] = options.schemaMethods;\n internal.calcargs[6] = this;\n \n internal.calcargs[0] = this.$root.$model;\n if (dest && dest.$parent) {\n internal.calcargs[1] = (dest.$parent as IWrappedProperty).$model;\n if ((dest.$parent as IWrappedProperty).$parent) {\n internal.calcargs[2] = ((dest.$parent as IWrappedProperty).$parent as IWrappedProperty).$model;\n if (((dest.$parent as IWrappedProperty).$parent as IWrappedProperty).$parent) {\n internal.calcargs[3] = (((dest.$parent as IWrappedProperty).$parent as IWrappedProperty).$parent as IWrappedProperty).$model;\n } else {\n internal.calcargs[3] = {};\n }\n } else {\n internal.calcargs[2] = internal.calcargs[3] = {};\n }\n } else {\n internal.calcargs[1] = internal.calcargs[2] = internal.calcargs[3] = {};\n }\n }\n */\n }\n Object.defineProperty(WrappedPropertyBase.prototype, \"$model\", {\n get: function () {\n return this._internal.parent[this.$key];\n },\n set: function (value) {\n this._internal.parent[this.$key] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$value\", {\n /*\n public svalueGetFunc(): any {\n return this.internal.parent[this.$key];\n }\n public svalueSetFunc(newValue: any) {\n this.internal.parent[this.$key] = newValue;\n }\n */\n get: function () {\n if (this._internal.useComputedModel) {\n return this._internal.vm.model;\n }\n else {\n return this.getValue();\n }\n // return this.$model;\n // return this.svalueGetFunc();\n },\n set: function (newValue) {\n this.setValue(newValue);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$form\", {\n get: function () {\n return this._internal.options.form;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$data\", {\n get: function () {\n if (this._internal.vmUserData === null) {\n /*\n if (process.env.NODE_ENV === 'development') {\n console.log('create $data');\n }\n */\n var userData = {};\n this._internal.vmUserData = this._options.Vue.observable({ userData: userData });\n }\n return this._internal.vmUserData.userData;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$error\", {\n /**\n * komunikat błędu\n */\n get: function () {\n // return this.$getUserData('error', null);\n if (this.$dirty) {\n return this.$validate();\n }\n else {\n return null;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$dirty\", {\n get: function () {\n return this.$getUserData('dirty', this._options.startDirty);\n },\n set: function (newValue) {\n this.$setUserData('dirty', newValue);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$path\", {\n get: function () {\n var result = '';\n if (this.$parent) {\n if (this.$parent.$schema.type === 'array') {\n return this.$parent.$path + '[' + this.$key + ']';\n }\n var ppath = this.$parent.$path;\n if (ppath) {\n return ppath + '.' + this.$key;\n }\n else {\n return this.$key.toString();\n }\n }\n return '';\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$hasFocus\", {\n get: function () {\n return this.$getUserData('focused', false);\n // return this._internal.reactiveData.focused;\n },\n set: function (newValue) {\n if (newValue) {\n this.$setUserData('focused', true);\n // this._internal.reactiveData.focused = true;\n if (this._internal.options.resetOnFocus) {\n this.$reset();\n }\n }\n else {\n // if (vm.focused) {\n if (true) {\n /*\n if (typeok) {\n this.vm.stringValue = null;\n }\n */\n // this._internal.reactiveData.focused = false;\n this.$setUserData('focused', false);\n // console.log('$hasFocus', this.$path, newValue, dirty, self.dirtyOnBlur);\n if (!this.$dirty && this._options.dirtyOnBlur) {\n // dirty = true;\n // console.log('validate on blur', obj.$validate());\n // this.$validate();\n this.$dirty = true;\n }\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$title\", {\n get: function () {\n return this.$schema.title ? this.$schema.title : '';\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyBase.prototype, \"$isArrayItem\", {\n get: function () {\n return this.$parent && this.$parent.$schema.type === 'array';\n },\n enumerable: true,\n configurable: true\n });\n WrappedPropertyBase.prototype.$focus = function () {\n this.$hasFocus = true;\n };\n WrappedPropertyBase.prototype.$blur = function () {\n this.$hasFocus = false;\n };\n WrappedPropertyBase.prototype.$getUserData = function (field, defaultvalue) {\n var value = this.$data[field];\n if (value === undefined) {\n if (defaultvalue === undefined) {\n this._options.Vue.set(this._internal.vmUserData, field, null);\n }\n else {\n this._options.Vue.set(this._internal.vmUserData, field, defaultvalue);\n }\n return this._internal.vmUserData[field];\n }\n return value;\n };\n WrappedPropertyBase.prototype.$setUserData = function (field, value) {\n this._options.Vue.set(this.$data, field, value);\n };\n WrappedPropertyBase.prototype.$destroy = function () {\n if (this._internal.vm) {\n if (this._internal.vm.$destroy) {\n this._internal.vm.$destroy();\n }\n }\n };\n WrappedPropertyBase.prototype.$reset = function () {\n this.$dirty = false;\n // this.internal.vm.error = null;\n // this.$error = null;\n };\n WrappedPropertyBase.prototype.$dirtyList = function (result) {\n if (result === undefined) {\n result = [];\n }\n if (this.$dirty) {\n result.push(this);\n }\n return result;\n };\n WrappedPropertyBase.prototype.$validate = function (value) {\n // let stime = (new Date()).getTime();\n if (value === undefined) {\n value = this.$model;\n }\n var funcs = getValidations_1.getValidations(this._internal.schema, true);\n for (var _i = 0, funcs_1 = funcs; _i < funcs_1.length; _i++) {\n var func = funcs_1[_i];\n var result = func(value, this.$schema);\n if (result) {\n return functions_1.getRuleMessage(this._internal, result, value, this.$schema);\n // return result;\n }\n }\n if (this._internal.schema.validFunc) {\n if (this._internal.vm && this._internal.vm.validFunc) {\n // return this._internal.vm.validFunc;\n return functions_1.getRuleMessage(this._internal, this._internal.vm.validFunc, value, this.$schema);\n }\n }\n /*\n if (this.$schema.validFunc !== undefined) {\n if (this.$schema.validFunc) {\n return (this.$error = getRuleMessage(this._internal.schema, this.$schema.validFunc, value, this.$schema));\n }\n // return (this.internal.vm.error = getRuleMessage(this.internal.schema, this.$schema.validFunc, value, this.$schema));\n // return this.$schema.validFunc;\n }\n */\n return null;\n };\n WrappedPropertyBase.prototype.$validateAll = function (result) {\n if (result === undefined) {\n result = [];\n }\n if (this.$validate()) {\n result.push(this);\n }\n return result;\n };\n WrappedPropertyBase.prototype.$setData = function (value, path, fixArraySize) {\n this._options.Vue.set(this._internal.parent, this.$key, value);\n return true;\n // /Vue.set(parent, propName, value);\n // return setData(this._internal.schema, this.$model, value, path, 0, this._internal.options.Vue, fixArraySize);\n };\n WrappedPropertyBase.prototype.$getData = function (checkDataType) {\n return clearData_1.default(this._internal.schema, this.$model, checkDataType);\n };\n // array item\n WrappedPropertyBase.prototype.$removeRow = function (index) {\n if (this.$isArrayItem) {\n return this.$parent.$removeRow(this.$key);\n }\n return false;\n };\n WrappedPropertyBase.prototype.$moveUp = function (index) {\n if (this.$isArrayItem) {\n return this.$parent.$moveUp(this.$key);\n }\n return false;\n };\n WrappedPropertyBase.prototype.$moveDown = function (index) {\n if (this.$isArrayItem) {\n return this.$parent.$moveDown(this.$key);\n }\n return false;\n };\n WrappedPropertyBase.prototype.$clearRow = function (index) {\n if (this.$isArrayItem) {\n return this.$parent.$clearRow(this.$key);\n }\n return false;\n };\n WrappedPropertyBase.prototype.getValue = function () {\n return this.$model;\n };\n WrappedPropertyBase.prototype.setValue = function (newValue) {\n if (!this.$dirty && this._internal.options.dirtyOnInput) {\n this.$dirty = true;\n }\n this.$model = newValue;\n };\n return WrappedPropertyBase;\n}());\nexports.default = WrappedPropertyBase;\n//# sourceMappingURL=WrappedPropertyBase.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar JSchema_1 = require(\"./JSchema/JSchema\");\nexports.JSchema = JSchema_1.default;\nvar schemaMixin_1 = require(\"./schemaMixin\");\nexports.schemaMixin = schemaMixin_1.default;\nvar schemaMethods_1 = require(\"./schemaMethods\");\nexports.schemaMethods = schemaMethods_1.default;\n// tslint:disable-next-line: no-var-requires\n// const polyfills = require('./polyfills.ts');\nvar polyfills = require(\"./polyfills\");\nexports.polyfills = polyfills;\nvar WrappedProperty_1 = require(\"./WrappedProperty\");\nexports.WrappedPropertyCtor = WrappedProperty_1.default;\nexports.wrap = WrappedProperty_1.wrap;\nvar fixAndMergeSchema_1 = require(\"./JSchema/fixAndMergeSchema\");\nexports.fixAndMergeSchema = fixAndMergeSchema_1.default;\nexports.default = JSchema_1.default;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdate_1 = require(\"./fdate\");\n/**\n * dzisiejsza data w dormacie yyyy-MM-dd\n */\nfunction today() {\n return fdate_1.default(new Date());\n}\nexports.default = today;\n//# sourceMappingURL=today.js.map","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\nvar WrapperPropertyArrayItemDirect = /** @class */ (function () {\n function WrapperPropertyArrayItemDirect(dest, parent, key, schema, options) {\n this.$key = key;\n this.$item = new WrappedPropertyCtor_1.default[schema.type](dest, parent, key, schema, options);\n this._dest = dest;\n this._parent = parent;\n this._schema = schema;\n this._options = options;\n }\n WrapperPropertyArrayItemDirect.prototype.$clearCache = function () {\n this.$item.$destroy();\n };\n /**\n * ustawienie $dirty na false ale tylko wtedy gdy jest pobrane\n */\n WrapperPropertyArrayItemDirect.prototype.$reset = function () {\n this.$item.$reset();\n };\n /**\n *\n */\n WrapperPropertyArrayItemDirect.prototype.$dirtyList = function (result) {\n this.$item.$dirtyList(result);\n return result;\n };\n WrapperPropertyArrayItemDirect.prototype.$destroy = function () {\n this.$clearCache();\n };\n WrapperPropertyArrayItemDirect.prototype.$setKey = function (newKey) {\n this.$key = newKey;\n this.$item.$key = newKey;\n };\n return WrapperPropertyArrayItemDirect;\n}());\nexports.WrapperPropertyArrayItemDirect = WrapperPropertyArrayItemDirect;\n//# sourceMappingURL=WrappedPropertyArrayItemDirect.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar padNumber_1 = require(\"./padNumber\");\n/**\n * formatuje datę i czas do formatu yyyy-MM-dd HH:mm:ss\n * @param dt data typu Date\n */\nfunction fdatetime(dt, format) {\n return exports.formatDateFunction[format || 'yyyy-MM-dd HH:mm:ss'](dt);\n // return fdate(dt) + ' ' + ftime(dt);\n}\nexports.default = fdatetime;\nexports.monthNames = ['styczeń', 'luty', 'marzec', 'kwiecień', 'maj', 'czerwiec', 'lipiec', 'sierpień', 'wrzesień', 'październik', 'listopad', 'grudzień'];\nexports.monthShort = ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'];\nexports.dayNames = ['poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota', 'niedziela'];\nvar dayNames2 = ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'];\nexports.dayShort = ['Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So', 'N'];\nvar dayShort2 = ['Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So', 'N'];\nexports.formatDateFunction = {\n 'dd.MM.yyyy': function (dt) { return padNumber_1.default(dt.getDate()) + '.' + padNumber_1.default(dt.getMonth() + 1) + '.' + dt.getFullYear(); },\n 'yyyy-MM-dd': function (dt) { return dt.getFullYear() + '-' + padNumber_1.default(dt.getMonth() + 1) + '-' + padNumber_1.default(dt.getDate()); },\n 'MMMM yyyy': function (dt) { return exports.monthNames[dt.getMonth()] + \" \" + dt.getFullYear(); },\n 'MMM yyyy': function (dt) { return exports.monthShort[dt.getMonth()] + \" \" + dt.getFullYear(); },\n 'dddd': function (dt) { return dayNames2[dt.getDay()]; },\n 'ddd': function (dt) { return dayShort2[dt.getDay()]; },\n 'dd': function (dt) { return padNumber_1.default(dt.getDate()); },\n 'd': function (dt) { return dt.getDate().toString(); },\n 'MMMM': function (dt) { return exports.monthNames[dt.getMonth()]; },\n 'MMM': function (dt) { return exports.monthShort[dt.getMonth()]; },\n 'MM': function (dt) { return padNumber_1.default(dt.getMonth() + 1); },\n 'M': function (dt) { return (dt.getMonth() + 1).toString(); },\n 'HH': function (dt) { return padNumber_1.default(dt.getHours()); },\n 'H': function (dt) { return dt.getHours().toString(); },\n 'mm': function (dt) { return padNumber_1.default(dt.getMinutes()); },\n 'm': function (dt) { return dt.getMinutes().toString(); },\n 'ss': function (dt) { return padNumber_1.default(dt.getSeconds()); },\n 's': function (dt) { return dt.getSeconds().toString(); },\n 'HH:mm:ss': function (dt) { return padNumber_1.default(dt.getHours()) + \":\" + padNumber_1.default(dt.getMinutes()) + \":\" + padNumber_1.default(dt.getSeconds()); },\n 'dd.MM.yyyy HH:mm:ss': function (dt) { return exports.formatDateFunction['dd.MM.yyyy'](dt) + ' ' + exports.formatDateFunction['HH:mm:ss'](dt); },\n 'yyyy-MM-dd HH:mm:ss': function (dt) { return exports.formatDateFunction['yyyy-MM-dd'](dt) + ' ' + exports.formatDateFunction['HH:mm:ss'](dt); }\n};\n//# sourceMappingURL=fdatetime.js.map","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","var core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar defaultValue_1 = require(\"./defaultValue\");\nvar checkType_1 = require(\"./checkType\");\nfunction setData(schema, data, value, path, pathIndex, Vue, fixArraySize) {\n if (pathIndex === void 0) { pathIndex = 0; }\n if (path !== undefined) {\n if (typeof path === 'string') {\n path = path\n .replace(/\\[/g, '.')\n .replace(/\\]/g, '')\n .split('.')\n .filter(function (x) { return x; });\n pathIndex = 0;\n }\n var cpath = path[pathIndex];\n if (cpath) {\n if (schema.type === 'object') {\n var dschema = schema.properties[cpath];\n if (dschema !== undefined) {\n if (dschema.type === 'object' || dschema.type === 'array') {\n var data2 = data[cpath];\n if (data2 === undefined) {\n data2 = defaultValue_1.default(dschema, true);\n if (Vue) {\n Vue.set(data, cpath, data2);\n }\n else {\n data[cpath] = data2;\n }\n }\n return setData(dschema, data2, value, path, pathIndex + 1, Vue, fixArraySize);\n }\n else {\n return setDataValue(dschema, data, cpath, value, Vue);\n }\n }\n else {\n return false;\n }\n }\n else if (schema.type === 'array') {\n var dschema = schema.items;\n if (dschema !== undefined) {\n var index = parseInt(cpath, 10);\n var data2 = data[index];\n if (data2 === undefined) {\n while (data.length < index + 1) {\n data.push(defaultValue_1.default(dschema, true));\n }\n // data2 = data[index];\n }\n if (dschema.type === 'array' || dschema.type === 'object') {\n return setData(dschema, data[index], value, path, pathIndex + 1, Vue, fixArraySize);\n }\n else {\n return setDataValue(dschema, data, index, value, Vue);\n }\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n }\n }\n if (schema.type === 'object') {\n return setDataObj(schema, data, value, Vue, fixArraySize);\n }\n else {\n return setDataArray(schema, data, value, Vue, fixArraySize);\n }\n}\nexports.default = setData;\nfunction setDataValue(schema, parent, key, value, Vue) {\n if (checkType_1.default(schema, value)) {\n if (Vue) {\n Vue.set(parent, key, value);\n parent[key] = value;\n }\n else {\n parent[key] = value;\n }\n return true;\n }\n return false;\n}\nexports.setDataValue = setDataValue;\nfunction setDataArray(schema, destArray, value, Vue, fixArraySize) {\n var sitems = schema.items;\n if (fixArraySize) {\n while (destArray.length > value.length) {\n destArray.splice(destArray.length - 1, 1);\n }\n }\n for (var i = 0; i < value.length; i++) {\n var nitem = destArray[i];\n if (nitem === undefined) {\n nitem = defaultValue_1.default(sitems, true);\n if (i > destArray.length - 1) {\n destArray.push(nitem);\n }\n else {\n if (Vue) {\n Vue.set(destArray, i, nitem);\n }\n else {\n destArray[i] = nitem;\n }\n }\n }\n switch (sitems.type) {\n case 'object':\n setDataObj(sitems, nitem, value[i]);\n break;\n case 'array':\n setDataArray(sitems, nitem, value[i]);\n break;\n default:\n if (i > destArray.length - 1) {\n destArray.push(value[i]);\n }\n else {\n if (Vue) {\n Vue.set(destArray, i, value[i]);\n }\n else {\n destArray[i] = value[i];\n }\n }\n break;\n }\n }\n return true;\n}\nfunction setDataObj(schema, parentObject, value, Vue, fixArraySize) {\n var props = schema.properties;\n for (var key in value) {\n if (value.hasOwnProperty(key)) {\n var pschema = props[key];\n if (pschema !== undefined) {\n switch (pschema.type) {\n case 'object':\n var nparent = parentObject[key];\n if (nparent === undefined) {\n parentObject[key] = nparent = defaultValue_1.default(pschema);\n }\n setDataObj(pschema, nparent, value[key], Vue, fixArraySize);\n break;\n case 'array':\n var narray = parentObject[key];\n if (narray === undefined) {\n parentObject[key] = narray = defaultValue_1.default(pschema);\n }\n setDataArray(pschema, narray, value[key], Vue, fixArraySize);\n break;\n default:\n setDataValue(pschema, parentObject, key, value[key], Vue);\n break;\n }\n }\n }\n }\n return true;\n}\nfunction setDataKey(schema, parent, key, value) {\n if (schema.type === 'object') {\n if (typeof value === 'object') {\n var destobj = parent[key];\n if (destobj === undefined) {\n parent[key] = destobj = defaultValue_1.default(schema, true);\n }\n var keys = Object.keys(value);\n var props = schema.properties;\n var dkeys = Object.keys(props);\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var skey = keys_1[_i];\n var dschema = props[skey];\n if (dschema !== undefined) {\n setData(dschema, destobj, skey, value[skey]);\n }\n }\n return true;\n }\n else {\n return false;\n }\n }\n else if (schema.type === 'array') {\n if (Array.isArray(value)) {\n var destobj = parent[key];\n if (destobj === undefined) {\n parent[key] = destobj = defaultValue_1.default(schema, true);\n }\n var items = schema.items;\n for (var i = 0; i < value.length; i++) {\n setData(items, destobj, i, value[i]);\n }\n return true;\n }\n else {\n return false;\n }\n }\n else {\n switch (schema.type) {\n case 'integer':\n case 'number':\n case 'money':\n if (typeof value === 'number') {\n parent[key] = value;\n return true;\n }\n else {\n return false;\n }\n case 'string':\n if (typeof value === 'string') {\n parent[key] = value;\n return true;\n }\n else {\n return false;\n }\n case 'boolean':\n if (typeof value === 'boolean') {\n parent[key] = value;\n return true;\n }\n else {\n return false;\n }\n default:\n return false;\n }\n }\n}\n//# sourceMappingURL=setData.js.map","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction fix$parent(stext) {\n if (stext.indexOf('$parent') > -1) {\n return stext\n .replace(/\\$parent\\.\\$parent\\.\\$parent\\./g, '$parent3.')\n .replace(/\\$parent\\.\\$parent\\./g, '$parent2.')\n .replace(/\\$parent\\./g, '$parent.');\n }\n else {\n return stext;\n }\n}\nexports.default = fix$parent;\n//# sourceMappingURL=fix$parent.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * zwraca maksymalną wartość\n * @param values tablica wartości\n */\nfunction max(values) {\n var result = values[0];\n var i = values.length;\n while (--i > 0) {\n if (values[i] > result) {\n result = values[i];\n }\n }\n return result;\n}\nexports.default = max;\n//# sourceMappingURL=max.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar mround_1 = require(\"./mround\");\nvar precisionsz = ['', '.0', '.00', '.000', '.0000', '.00000', '.000000', '.0000000', '.00000000'];\n/**\n * formatuje liczbę zmiennoprzecinkową do polskiego formatu\n * @param value liczba\n * @param precision do ilu miejsc po przecinku zaokrąglić, domyślnie 8\n */\nfunction fnumber(value, precision) {\n if (precision === void 0) { precision = 8; }\n if (value === null) {\n return '';\n }\n // const s = value.toFixed(2);\n // let s = mround(value, precision).toFixed(precision);\n if (value % 1 === 0) {\n return value.toString();\n }\n return mround_1.default(value, precision).toString().replace('.', ',');\n}\nexports.default = fnumber;\n//# sourceMappingURL=fnumber.js.map","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\nvar dateParse_1 = require(\"./dateParse\");\n/**\n * dodaje określoną liczbę jednostek do daty\n * @param date data wejściowa\n * @param part częśc daty do zmiany\n * @param value o lie zwiększyć\n */\nfunction dateSet(date, part, value) {\n var inputDate = dateParse_1.default(date);\n var result = new Date(inputDate);\n switch (part) {\n case 'y':\n case 'yy':\n case 'yyyy':\n case 'year':\n result.setFullYear(value);\n break;\n // return padNumber(datePart('y', date) + value, 4) + date.substr(4);\n case 'M':\n case 'MM':\n case 'month':\n result.setMonth(value + 1);\n break;\n case 'd':\n case 'dd':\n case 'day':\n result.setDate(value);\n break;\n case 'h':\n case 'hh':\n case 'hour':\n result.setHours(value);\n break;\n case 'm':\n case 'mm':\n case 'minute':\n result.setMinutes(value);\n break;\n case 's':\n case 'ss':\n case 'second':\n result.setSeconds(value);\n break;\n }\n if (date.length === 10) {\n return fdatetime_1.default(result).replace(' 00:00:00', '');\n }\n else {\n return fdatetime_1.default(result);\n }\n}\nexports.default = dateSet;\n//# sourceMappingURL=dateSet.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getRef(parent, url, root) {\n // currentContext = currentContext || this.schema;\n var turl = url.split('/');\n if (url.startsWith('#/')) {\n if (root === undefined) {\n // szukaj łażąc po parentach\n while (parent.$parent) {\n parent = parent.$parent;\n }\n }\n else {\n parent = root;\n }\n }\n else {\n // coś tam innego\n }\n // let turl = url.split(\"/\");\n var sparent2;\n for (var i = 1; i < turl.length; i++) {\n sparent2 = parent;\n parent = parent[turl[i]];\n if (parent === undefined) {\n return null;\n }\n }\n return parent;\n}\nexports.fixSchemaDefaultOptions = {\n arrayItemGuidField: null,\n model: null\n};\nvar refRegex = /{{([a-z.\\[\\]\\s\\?\\\"\\'\\:\\(\\)\\+]*)}}/gmi;\nfunction fixAndMergeSchema(schemas, options, parent, root, mykey, fixType) {\n if (options === void 0) { options = exports.fixSchemaDefaultOptions; }\n var props = {};\n var result = {};\n Object.defineProperty(result, '$key', {\n value: mykey || null\n });\n Object.defineProperty(result, '$parent', {\n value: parent || null\n });\n if ((root === undefined) || (root === null)) {\n root = result;\n }\n var i = 0;\n while (i < schemas.length) {\n var schema = schemas[i];\n // allof\n var allOf = schema.allOf;\n if (allOf !== undefined) {\n var dschemas = [];\n // wszystkie schemas do tej pory\n for (var ii = 0; ii < i; ii++) {\n dschemas.push(schemas[ii]);\n }\n // moja schema\n dschemas.push(schema);\n // z allof\n for (var ii = 0; ii < allOf.length; ii++) {\n dschemas.push(allOf[ii]);\n }\n // wszystkie pozostałe schemas\n for (var ii = i + 1; ii < schemas.length; ii++) {\n dschemas.push(schemas[ii]);\n }\n schemas = dschemas;\n schema = schemas[i];\n }\n // $ref\n var $ref = schema.$ref;\n if ($ref !== undefined) {\n if ($ref.indexOf('{{') > -1) {\n $ref = $ref.replace(refRegex, function (match, fielddName) {\n if (!options.model) {\n return '';\n }\n var funct = 'with(model) {return ' + fielddName + '}';\n var func = new Function('model', funct);\n try {\n return func(options.model);\n }\n catch (_a) {\n return '';\n }\n });\n }\n var refValue = getRef(schema, $ref, root);\n if (refValue !== null) {\n schemas[i] = schema = refValue;\n }\n }\n for (var _i = 0, _a = Object.keys(schema); _i < _a.length; _i++) {\n var key = _a[_i];\n if (key === 'allOf') {\n continue;\n }\n var keyvalue = schema[key];\n if (keyvalue === null) {\n if (i > 0) {\n delete props[key];\n delete result[key];\n }\n else {\n result[key] = null;\n }\n }\n else {\n if (Array.isArray(keyvalue)) {\n if (result[key] !== undefined) {\n // łącz array\n var darray = result[key].slice();\n for (var ii = 0; ii < keyvalue.length; ii++) {\n var avalue = keyvalue[ii];\n if (darray.indexOf(avalue) === -1) {\n darray.push(avalue);\n }\n }\n result[key] = darray;\n }\n else {\n result[key] = keyvalue;\n }\n }\n else if (typeof keyvalue === 'object') {\n var proparray = props[key];\n if (proparray === undefined) {\n props[key] = proparray = [keyvalue];\n }\n else {\n proparray.push(keyvalue);\n }\n }\n else {\n result[key] = keyvalue;\n }\n }\n }\n i++;\n }\n if ((fixType === true) || (fixType === undefined)) {\n if (result.type === undefined) {\n if (props.properties !== undefined) {\n result.type = 'object';\n }\n else if (props.items !== undefined) {\n result.type = 'array';\n }\n else {\n result.type = 'string';\n /*\n\n if (!((parent) && (parent.type === 'object'))) {\n result.type = 'string';\n }\n */\n }\n }\n else if (result.type === 'int') {\n result.type = 'integer';\n }\n }\n // fix guid field in array items\n /*\n if ((parent && parent.type === 'object') && (parent.$parent && parent.$parent.type === 'array')) {\n\n }\n */\n // dołaczanie wszystkich property\n // let propsCache: any = {};\n var fixChildType = (mykey !== undefined) && (mykey === 'properties');\n if (false) {\n var newprops = {};\n var keys = Object.keys(props);\n var _loop_1 = function (key) {\n var cached;\n newprops[key] = {\n enumerable: true,\n configurable: true,\n get: function () {\n if (cached) {\n // console.log('schema cached property', key);\n return cached;\n }\n else {\n // console.log('schema get property', key);\n return (cached = fixAndMergeSchema(props[key], options, result, root, key, fixChildType || (key === 'items')));\n }\n }\n };\n };\n for (var _b = 0, keys_1 = keys; _b < keys_1.length; _b++) {\n var key = keys_1[_b];\n _loop_1(key);\n }\n Object.defineProperties(result, newprops);\n }\n else {\n // const cached2: any = {};\n var keys = Object.keys(props);\n var _loop_2 = function (key) {\n var cached;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: function () {\n // delete result[key];\n // return result[key] = fixAndMergeSchema(props[key], options, result, root, key, fixChildType || (key === 'items'));\n return cached || (cached = fixAndMergeSchema(props[key], options, result, root, key, fixChildType || (key === 'items')));\n if (cached) {\n // console.log('schema cached property', key);\n return cached;\n }\n else {\n // console.log('schema get property', key);\n return (cached = fixAndMergeSchema(props[key], options, result, root, key, fixChildType || (key === 'items')));\n }\n }\n });\n };\n for (var _c = 0, keys_2 = keys; _c < keys_2.length; _c++) {\n var key = keys_2[_c];\n _loop_2(key);\n }\n }\n if ((result.type === 'object') && ((parent) && (parent.type === 'array') && (options.arrayItemGuidField))) {\n var pp_1 = result.properties;\n if (pp_1 && pp_1[options.arrayItemGuidField] === undefined) {\n var cached_1;\n Object.defineProperty(pp_1, options.arrayItemGuidField, {\n enumerable: true,\n configurable: true,\n get: function () {\n if (cached_1) {\n // console.log('schema cached property', key);\n return cached_1;\n }\n else {\n // console.log('schema get property', key);\n return (cached_1 = fixAndMergeSchema([{\n type: 'string',\n format: 'guid'\n }], options, pp_1, root, options.arrayItemGuidField, false));\n }\n }\n });\n /*\n pp[fixSchemaOptions.arrayItemGuidField] = {\n type: 'string',\n format: 'guid'\n };\n */\n }\n }\n return result;\n}\nexports.default = fixAndMergeSchema;\n//# sourceMappingURL=fixAndMergeSchema.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar check_1 = require(\"./methods/check\");\nvar dateAdd_1 = require(\"./methods/dateAdd\");\nvar dateSet_1 = require(\"./methods/dateSet\");\nvar dateDiff_1 = require(\"./methods/dateDiff\");\nvar datePart_1 = require(\"./methods/datePart\");\nvar dateParse_1 = require(\"./methods/dateParse\");\nvar generateGuid_1 = require(\"./methods/generateGuid\");\nvar trim_1 = require(\"./methods/trim\");\nvar fnumber_1 = require(\"./methods/fnumber\");\nvar fmoney_1 = require(\"./methods/fmoney\");\nvar fdatetime_1 = require(\"./methods/fdatetime\");\nvar fdate_1 = require(\"./methods/fdate\");\nvar ftime_1 = require(\"./methods/ftime\");\nvar listMonths_1 = require(\"./methods/listMonths\");\nvar listYears_1 = require(\"./methods/listYears\");\nvar min_1 = require(\"./methods/min\");\nvar max_1 = require(\"./methods/max\");\nvar mround_1 = require(\"./methods/mround\");\nvar now_1 = require(\"./methods/now\");\nvar nullDefault_1 = require(\"./methods/nullDefault\");\nvar padNumber_1 = require(\"./methods/padNumber\");\nvar today_1 = require(\"./methods/today\");\nexports.default = {\n check: check_1.default,\n dateAdd: dateAdd_1.default,\n dateSet: dateSet_1.default,\n dateDiff: dateDiff_1.default,\n datePart: datePart_1.default,\n dateParse: dateParse_1.default,\n generateGuid: generateGuid_1.default,\n fdate: fdate_1.default,\n fdatetime: fdatetime_1.default,\n fnumber: fnumber_1.default,\n fmoney: fmoney_1.default,\n ftime: ftime_1.default,\n listMonths: listMonths_1.default,\n listYears: listYears_1.default,\n min: min_1.default,\n max: max_1.default,\n mround: mround_1.default,\n now: now_1.default,\n nullDefault: nullDefault_1.default,\n padNumber: padNumber_1.default,\n today: today_1.default,\n trim: trim_1.default\n};\n/*\nexport default {\n mround,\n min,\n max,\n nullDefault,\n fmoney,\n fdate,\n ftime,\n fdatetime,\n padNumber,\n datePart,\n\n dateAdd,\n dateDiff: TimeSpan.diff,\n today: () => fdate(new Date()),\n now: () => fdatetime(new Date()),\n guid: generateGuid,\n check: (format: string, value: string): boolean => checkFormat(format, value),\n checkFormat,\n};\n*/\n//# sourceMappingURL=schemaMethods.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction schemaPath(obj, typeonly) {\n var key = obj.$key;\n if (obj.$parent) {\n var res = schemaPath(obj.$parent, typeonly);\n if (typeonly && ((obj.type === undefined) || (obj.type === 'object') && (obj.$parent) && (obj.$parent.type === 'array'))) {\n return res;\n }\n else {\n if (typeonly && obj.type === 'array') {\n key += '[]';\n }\n }\n if (res === '') {\n return key;\n }\n else {\n return res + '.' + key;\n }\n }\n else {\n if (typeonly && obj.type === undefined) {\n return '';\n }\n if (key) {\n return key;\n }\n else {\n return '';\n }\n }\n}\nexports.default = schemaPath;\n//# sourceMappingURL=schemaPath.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar checkType_1 = require(\"./checkType\");\n/**\n * zwraca wyczyszczone dane, tylko te któ®e są zgodne ze schematem\n * @param schema schemat\n * @param data dane wejściowe\n * @param checkDataType czy sprawdzać\n */\nfunction clearData(schema, data, checkDataType) {\n if (schema.computed) {\n return undefined;\n }\n if (schema.type === 'object') {\n if (typeof data !== 'object') {\n return undefined;\n }\n var result = {};\n var props = schema.properties;\n if (props) {\n for (var key in props) {\n if (props.hasOwnProperty(key)) {\n var value = data[key];\n var element = props[key];\n if (value !== undefined) {\n var nvalue = clearData(element, value, checkDataType);\n if (nvalue !== undefined) {\n result[key] = nvalue;\n }\n }\n }\n }\n }\n return result;\n }\n else if (schema.type === 'array') {\n if (Array.isArray(data)) {\n var result = [];\n var items = schema.items;\n for (var i = 0; i < data.length; i++) {\n var nvalue = clearData(items, data[i], checkDataType);\n if (nvalue !== undefined) {\n result.push(nvalue);\n }\n }\n return result;\n }\n else {\n return undefined;\n }\n }\n else {\n // na razie nie sprawdzamy typów danych\n if (Array.isArray(data)) {\n return undefined;\n }\n if (typeof data === 'object') {\n return undefined;\n }\n if (checkDataType && !checkType_1.default(schema, data)) {\n return undefined;\n }\n return data;\n }\n}\nexports.default = clearData;\n//# sourceMappingURL=clearData.js.map","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * zwraca minimalną wartość\n * @param values tablica wartości\n */\nfunction min(values) {\n var result = values[0];\n var i = values.length;\n while (--i > 0) {\n if (values[i] < result) {\n result = values[i];\n }\n }\n return result;\n}\nexports.default = min;\n//# sourceMappingURL=min.js.map","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar formatFunctions = {\n patterns: {\n DATE: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/,\n // DATET: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)((t|T|\\s)(\\d\\d:\\d\\d:\\d\\d))?$/,\n DATE0: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)([t|T|\\s](00:00:00))?$/,\n DAYS: [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n TIME: /^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d:\\d\\d)?$/i,\n HOSTNAME: /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*$/i,\n // tslint:disable-next-line: max-line-length\n URI: /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,\n // tslint:disable-next-line: max-line-length\n URIREF: /^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,\n // uri-template: https://tools.ietf.org/html/rfc6570\n // tslint:disable-next-line: max-line-length\n URITEMPLATE: /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,\n // For the source: https://gist.github.com/dperini/729294\n // For test cases: https://mathiasbynens.be/demo/url-regex\n // tslint:disable-next-line: max-line-length\n // @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983.\n // tslint:disable-next-line: max-line-length\n // var URL = /^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu;\n // tslint:disable-next-line: max-line-length\n URL: /^(?:(?:http[s\\u017F]?|ftp):\\/\\/)(?:(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+(?::(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?@)?(?:(?!10(?:\\.[0-9]{1,3}){3})(?!127(?:\\.[0-9]{1,3}){3})(?!169\\.254(?:\\.[0-9]{1,3}){2})(?!192\\.168(?:\\.[0-9]{1,3}){2})(?!172\\.(?:1[6-9]|2[0-9]|3[01])(?:\\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)(?:\\.(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)*(?:\\.(?:(?:[KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\\/(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?$/i,\n UUID: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,\n JSON_POINTER: /^(?:\\/(?:[^~/]|~0|~1)*)*$/,\n JSON_POINTER_URI_FRAGMENT: /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,\n RELATIVE_JSON_POINTER: /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,\n // tslint:disable-next-line: max-line-length\n EMAIL_SIMPLE: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\n // tslint:disable-next-line: max-line-length\n EMAIL: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n // tslint:disable-next-line: max-line-length\n // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n // tslint:disable-next-line: max-line-length\n IPv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses\n // tslint:disable-next-line: max-line-length\n IPv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(?:%.+)?\\s*$/i,\n KODPOCZTOWY: /^[0-9]{2}-[0-9]{3}$/,\n NUMERIC: /^\\d+$/,\n PHONE: /^\\d{9}$/,\n PHONE9: /^\\d{9}$/,\n NOT_URI_FRAGMENT: /\\/|:/,\n DATE_TIME_SEPARATOR: /t|\\s/i,\n Z_ANCHOR: /[^\\\\]\\\\Z/,\n GUID: /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i\n },\n isLeapYear: function (year) { return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); },\n date: function (str) {\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n /*\n const matches = str\n .replace('T00:00:00', '')\n .replace(' 00:00:00', '')\n .match(formatFunctions.patterns.DATE);\n */\n // dopuszcony jest zerowy czas\n var matches = str.match(formatFunctions.patterns.DATE0);\n if (!matches) {\n return false;\n }\n var year = +matches[1];\n var month = +matches[2];\n var day = +matches[3];\n return month >= 1\n && month <= 12\n && day >= 1\n && day <= (month === 2 && formatFunctions.isLeapYear(year) ? 29 : formatFunctions.patterns.DAYS[month]);\n },\n time: function (str, full) {\n var matches = str.match(formatFunctions.patterns.TIME);\n if (!matches) {\n return false;\n }\n var hour = Number(matches[1]);\n var minute = Number(matches[2]);\n var second = Number(matches[3]);\n var timeZone = matches[5];\n return ((hour <= 23 && minute <= 59 && second <= 59)\n || (hour === 23 && minute === 59 && second === 60))\n && (!full || timeZone !== '');\n },\n kod: function (str) { return formatFunctions.patterns.KODPOCZTOWY.test(str); },\n date_time: function (str) {\n // http://tools.ietf.org/html/rfc3339#section-5.6\n var dateTime = str.split(formatFunctions.patterns.DATE_TIME_SEPARATOR);\n return dateTime.length === 2 && formatFunctions.date(dateTime[0]) && formatFunctions.time(dateTime[1], true);\n },\n hostname: function (str) { return str.length <= 255 && formatFunctions.patterns.HOSTNAME.test(str); },\n uri: function (str) { return formatFunctions.patterns.NOT_URI_FRAGMENT.test(str) && formatFunctions.patterns.URI.test(str); },\n url: function (str) { return formatFunctions.patterns.URL.test(str); },\n uuid: function (str) { return formatFunctions.patterns.UUID.test(str); },\n ipv4: function (str) { return formatFunctions.patterns.IPv4.test(str); },\n ipv6: function (str) { return formatFunctions.patterns.IPv6.test(str); },\n regex: function (str) {\n if (formatFunctions.patterns.Z_ANCHOR.test(str)) {\n return false;\n }\n try {\n // new RegExp(str);\n return new RegExp(str) !== null;\n }\n catch (e) {\n return false;\n }\n },\n // NIPWEIGHTS: [6, 5, 7, 2, 3, 4, 5, 6, 7],\n nip: function (str) {\n var weights = [6, 5, 7, 2, 3, 4, 5, 6, 7];\n str = str.replace(/[\\s-]/g, '');\n if (str.length === 10) {\n var sum = 0;\n for (var i = 0; i < 9; i++) {\n var val = Number(str[i]);\n if (!isNaN(val)) {\n sum += val * weights[i];\n }\n }\n return sum % 11 === Number(str[9]);\n }\n return false;\n },\n pesel: function (str) {\n var weights = [9, 7, 3, 1, 9, 7, 3, 1, 9, 7];\n str = str.replace(/[\\s-]/g, '');\n if (str.length === 11) {\n var sum = 0;\n for (var i = 0; i < 10; i++) {\n var val = Number(str[i]);\n if (!isNaN(val)) {\n sum += val * weights[i];\n }\n }\n return sum % 10 === Number(str[10]);\n }\n return false;\n },\n regon: function (str) { return (str.length === 9 ? formatFunctions.regon9(str) : formatFunctions.regon14(str)); },\n regon9: function (str) {\n var weights = [8, 9, 2, 3, 4, 5, 6, 7];\n // if ((regon.length == 9) && (parseInt(regon, 9) > 0)) {\n if (str.length === 9) {\n var sum = 0;\n for (var i = 0; i < 8; i++) {\n var val = Number(str[i]);\n if (!isNaN(val)) {\n sum += val * weights[i];\n }\n }\n var mod = sum % 11;\n if (mod === 10) {\n mod = 0;\n }\n return mod === Number(str[8]);\n }\n return false;\n },\n regon14: function (str) {\n var weights = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8];\n // if ((regon.length == 14) && (parseInt(regon, 14) > 0)) {\n if (str.length === 14) {\n // czy regon konczy sie na 5 zer ? jesli tak to sprawdz go jako 9 elementowy\n if (str.endsWith('00000')) {\n return formatFunctions.regon9(str.substr(0, 9));\n }\n var sum = 0;\n for (var i = 0; i < 13; i++) {\n var val = Number(str[i]);\n if (!isNaN(val)) {\n sum += val * weights[i];\n }\n }\n var mod = sum % 11;\n if (mod === 10) {\n mod = 0;\n }\n return mod === Number(str[13]);\n }\n return false;\n },\n iban: function (str) {\n if (str === '00000000000000000000000000') {\n return true;\n }\n str = str.replace(/[^0-9]+/g, '');\n var weights = new Array(1, 10, 3, 30, 9, 90, 27, 76, 81, 34, 49, 5, 50, 15, 53, 45, 62, 38, 89, 17, 73, 51, 25, 56, 75, 71, 31, 19, 93, 57);\n if (str.length === 26) {\n str = str + '2521';\n str = str.substr(2) + str.substr(0, 2);\n var Z = 0;\n for (var i = 0; i < 30; i++) {\n Z += Number(str[29 - i]) * weights[i];\n }\n if (Z % 97 === 1) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n },\n dowod: function (str) {\n str = str.replace(/[\\s-]/g, '');\n // var numer = value.trim().replace(\" \", \"\").replace(\"-\", \"\");\n // Check length\n if (str == null || str.length !== 9) {\n return false;\n }\n str = str.toUpperCase();\n var letterValues = [\n '0',\n '1',\n '2',\n '3',\n '4',\n '5',\n '6',\n '7',\n '8',\n '9',\n 'A',\n 'B',\n 'C',\n 'D',\n 'E',\n 'F',\n 'G',\n 'H',\n 'I',\n 'J',\n 'K',\n 'L',\n 'M',\n 'N',\n 'O',\n 'P',\n 'Q',\n 'R',\n 'S',\n 'T',\n 'U',\n 'V',\n 'W',\n 'X',\n 'Y',\n 'Z'\n ];\n function getLetterValue(letter) {\n return letterValues.indexOf(letter);\n // for (let j = 0; j < letterValues.length; j++)\n // if (letter == letterValues[j])\n // return j;\n // return -1;\n }\n // Check seria\n for (var i = 0; i < 3; i++) {\n if (getLetterValue(str[i]) < 10) {\n return false;\n }\n }\n // Check number\n for (var i = 3; i < 9; i++) {\n var glv = getLetterValue(str[i]);\n if (glv < 0 || glv > 9) {\n return false;\n }\n }\n // sprawdz cyfre controlna\n var sum = 7 * getLetterValue(str[0]) +\n 3 * getLetterValue(str[1]) +\n 1 * getLetterValue(str[2]) +\n 7 * getLetterValue(str[4]) +\n 3 * getLetterValue(str[5]) +\n 1 * getLetterValue(str[6]) +\n 7 * getLetterValue(str[7]) +\n 3 * getLetterValue(str[8]);\n sum %= 10;\n if (sum !== getLetterValue(str[3])) {\n return false;\n }\n return true;\n },\n email: function (str) { return formatFunctions.patterns.EMAIL.test(str); },\n guid: function (str) { return formatFunctions.patterns.GUID.test(str); },\n numeric: function (str) { return formatFunctions.patterns.NUMERIC.test(str); },\n phone9: function (str) { return formatFunctions.patterns.PHONE9.test(str); },\n phone: function (str) { return formatFunctions.patterns.PHONE.test(str); }\n};\nfunction checkFormat(format, data) {\n return checkFormatFunction(format)(data);\n}\nexports.checkFormat = checkFormat;\nfunction checkFormatFunction(format) {\n switch (format) {\n case 'date-time':\n return formatFunctions.date_time;\n case 'nrb':\n return formatFunctions.iban;\n case 'kodpocztowy':\n return formatFunctions.kod;\n case 'email':\n case 'date':\n case 'time':\n case 'uri':\n case 'url':\n case 'uuid':\n case 'hostname':\n case 'ipv4':\n case 'ipv6':\n case 'nip':\n case 'regon':\n case 'pesel':\n case 'iban':\n case 'phone':\n case 'phone9':\n case 'regon9':\n case 'regon14':\n case 'dowod':\n case 'kod':\n case 'numeric':\n return formatFunctions[format];\n default:\n return function (str) { return true; };\n }\n}\nexports.checkFormatFunction = checkFormatFunction;\nexports.default = formatFunctions;\n//# sourceMappingURL=formatFunctions.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\nvar WrappedPropertyArray_1 = require(\"./WrappedPropertyArray\");\nexports.WrappedPropertyArray = WrappedPropertyArray_1.default;\nvar WrappedPropertyObject_1 = require(\"./WrappedPropertyObject\");\nexports.WrappedPropertyObject = WrappedPropertyObject_1.default;\nvar WrappedPropertyNumber_1 = require(\"./WrappedPropertyNumber\");\nexports.WrappedPropertyNumber = WrappedPropertyNumber_1.default;\nvar WrappedPropertyString_1 = require(\"./WrappedPropertyString\");\nexports.WrappedPropertyString = WrappedPropertyString_1.default;\nvar WrappedPropertyBoolean_1 = require(\"./WrappedPropertyBoolean\");\nexports.WrappedPropertyBoolean = WrappedPropertyBoolean_1.default;\nvar IOptions_1 = require(\"./IOptions\");\nvar fixAndMergeSchema_1 = require(\"../JSchema/fixAndMergeSchema\");\nfunction wrap(parent, schema, propName, options) {\n // console.log('wrap');\n // napraw schema, rozwią refs i dodaj $parent\n var stime = new Date().getTime();\n // console.log('fixSchema', new Date().getTime() - stime);\n // czy schema było naprawioane czy nie\n if (Array.isArray(schema)) {\n schema = fixAndMergeSchema_1.default(schema);\n }\n else if (schema.$parent === undefined) {\n schema = fixAndMergeSchema_1.default([schema]);\n }\n // this.calcFunctions = [];\n // this.summaryFunctions = [];\n var mainprop;\n if (propName) {\n if (parent[propName].__ob__ === undefined && options.Vue) {\n options.Vue.observable(parent.propName);\n }\n mainprop = new WrappedPropertyObject_1.default(null, parent, propName, schema, IOptions_1.fixSchemaOptions(options));\n }\n else {\n var data = { model: parent };\n if (data.model.__ob__ === undefined && options.Vue) {\n options.Vue.observable(data.model);\n }\n mainprop = new WrappedPropertyObject_1.default(null, data, 'model', schema, IOptions_1.fixSchemaOptions(options));\n }\n return mainprop;\n}\nexports.wrap = wrap;\nexports.default = WrappedPropertyCtor_1.default;\n//# sourceMappingURL=index.js.map","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar TimeSpan_1 = require(\"../TimeSpan\");\n/**\n * Oblicza różnicę pomiędzy datami\n * @param lateDate data późniejsza\n * @param earlyDate data wcześniejsza\n */\nfunction dateDiff(lateDate, earlyDate) {\n return TimeSpan_1.default.diff(lateDate, earlyDate);\n}\nexports.default = dateDiff;\n//# sourceMappingURL=dateDiff.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Zwraca czesc schematu na podstawie sciezki\n * @param path sciezka w formacie pole.tablica[0].pole2\n */\nfunction schemaValue(schema, path) {\n var tpath = path\n .replace(/\\[/g, '.')\n .replace(/\\]/g, '')\n .split('.');\n return _schemaValue(tpath, 0, schema);\n}\nexports.default = schemaValue;\nfunction _schemaValue(path, pindex, schema) {\n var prop = path[pindex];\n if (prop === '') {\n if (pindex === path.length - 1) {\n return null;\n }\n else {\n return _schemaValue(path, pindex + 1, schema);\n }\n }\n if (schema.type === 'object' && schema.properties) {\n var schitem = schema.properties[prop];\n if (schitem === undefined) {\n return null;\n }\n if (pindex === path.length - 1) {\n return schitem;\n }\n else {\n return _schemaValue(path, pindex + 1, schitem);\n }\n }\n else if (schema.type === 'array' && schema.items) {\n var schitem = schema.items;\n if (schitem === undefined) {\n return null;\n }\n if (pindex === path.length - 1) {\n return schitem;\n }\n else {\n return _schemaValue(path, pindex + 1, schitem);\n }\n }\n else {\n return null;\n }\n}\n//# sourceMappingURL=schemaValue.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\nvar dateParse_1 = require(\"./dateParse\");\n/**\n * dodaje określoną liczbę jednostek do daty\n * @param date data wejściowa\n * @param part częśc daty do zmiany y M d h m s\n * @param value o lie zwiększyć\n */\nfunction dateAdd(date, part, value) {\n var inputDate = dateParse_1.default(date);\n var result = new Date(inputDate);\n switch (part) {\n case 'y':\n case 'yy':\n case 'yyyy':\n case 'year':\n result.setFullYear(inputDate.getFullYear() + value);\n break;\n // return padNumber(datePart('y', date) + value, 4) + date.substr(4);\n case 'M':\n case 'MM':\n case 'month':\n result.setMonth(inputDate.getMonth() + value);\n break;\n case 'd':\n case 'dd':\n case 'day':\n result.setDate(inputDate.getDate() + value);\n break;\n case 'h':\n case 'hh':\n case 'hour':\n result.setHours(inputDate.getHours() + value);\n break;\n case 'm':\n case 'mm':\n case 'minute':\n result.setMinutes(inputDate.getMinutes() + value);\n break;\n case 's':\n case 'ss':\n case 'second':\n result.setSeconds(inputDate.getSeconds() + value);\n break;\n }\n if (date.length === 10) {\n return fdatetime_1.default(result).replace(' 00:00:00', '');\n }\n else {\n return fdatetime_1.default(result);\n }\n}\nexports.default = dateAdd;\n//# sourceMappingURL=dateAdd.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\nvar functions_1 = require(\"./functions\");\nvar WrappedPropertyBoolean = /** @class */ (function (_super) {\n __extends(WrappedPropertyBoolean, _super);\n function WrappedPropertyBoolean(dest, parent, propName, schema, options) {\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\n // //export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\n // wrapSchemaProps(this.$schema, this._internal, 'number', ['maxItems', 'minItems']);\n functions_1.initVue(_this, _this._internal);\n return _this;\n }\n WrappedPropertyBoolean.prototype.$validate = function (value) {\n if (value === undefined) {\n value = this.$model;\n }\n this.$dirty = true;\n if (value === null) {\n if (this.$schema.fieldRequired) {\n return functions_1.getRuleMessage(this._internal, 'required', value, this.$schema);\n }\n else {\n return null;\n }\n }\n var ivalue = !!value;\n if (this.$schema.fieldRequired && !ivalue) {\n return functions_1.getRuleMessage(this._internal, 'required', value, this.$schema);\n }\n return _super.prototype.$validate.call(this, ivalue);\n };\n WrappedPropertyBoolean.prototype.getValue = function () {\n var svalue = this.$model;\n /*\n if (this.$dirty) {\n this.$validate(svalue);\n }\n */\n return svalue ? 'true' : 'false';\n };\n WrappedPropertyBoolean.prototype.setValue = function (newValue) {\n if (!this.$dirty && this._internal.options.dirtyOnInput) {\n this.$dirty = true;\n }\n this.$model = newValue !== null && newValue !== 'null' && newValue !== 'false' && newValue !== 'off' && newValue !== '';\n };\n return WrappedPropertyBoolean;\n}(WrappedPropertyBase_1.default));\nexports.default = WrappedPropertyBoolean;\nWrappedPropertyCtor_1.default.boolean = WrappedPropertyBoolean;\n//# sourceMappingURL=WrappedPropertyBoolean.js.map","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar funcParams_1 = require(\"./funcParams\");\nvar fix_parent_1 = require(\"./fix$parent\");\nvar schemaPath_1 = require(\"./schemaPath\");\nvar cacheFuncs = {};\n/**\n * tworzy funkcję agregującą na podstawie schematu\n * @param schema schemat\n * @param cache czy używać cache\n * @param debug czy dodać debugger, wtedy każde wywołanie funkcji się zatrzymuje\n */\nfunction aggregateFunction(schema, cache, debug) {\n if (cache === void 0) { cache = true; }\n if (schema.aggregate) {\n var aggregateFunc = null;\n var cachekey = '';\n if (cache && !debug) {\n cachekey = \"agg_\" + schema.aggregate.func\n + (\"||\" + schema.aggregate.array)\n + (\"||\" + schema.aggregate.property)\n + (\"||\" + schema.aggregate.when);\n aggregateFunc = cacheFuncs[cachekey];\n if (aggregateFunc) {\n return aggregateFunc;\n }\n }\n // let aggregateFunc = cache ? schema.cache.aggregateFunc : null;\n // może być podanna jako tablica\n var arraylist = schema.aggregate.array;\n if (!Array.isArray(arraylist)) {\n arraylist = [arraylist];\n }\n var func = schema.aggregate.func || 'sum';\n var ifprop = schema.aggregate.when || schema.aggregate.if;\n if (ifprop) {\n ifprop = fix_parent_1.default(ifprop).replace(/\\$item\\./g, '$array[$index].');\n }\n var prop = schema.aggregate.property;\n if (prop) {\n var complexprop = /[\\$\\.]/.test(prop);\n if (!complexprop) {\n prop = '$array[$index].' + prop;\n }\n else {\n prop = fix_parent_1.default(prop).replace(/\\$item\\./g, '$array[$index].');\n }\n }\n else {\n prop = '$array[$index]';\n }\n var ftext = 'var $length = 0;\\r\\n';\n // ftext += `var sttime=(new Date()).getTime();var $length=0;`;\n switch (func) {\n case 'mul':\n ftext += \"var $result = 1;\\r\\n\";\n break;\n case 'min':\n if (schema.type === 'string') {\n ftext += \"var $result = '\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A';\\r\\n\";\n }\n else {\n ftext += \"var $result = Infinity;\\r\\n\";\n }\n break;\n case 'max':\n if (schema.type === 'string') {\n ftext += \"var $result = '';\\r\\n\";\n }\n else {\n ftext += 'var $result = -Infinity;\\r\\n';\n }\n break;\n case 'map':\n ftext += \"var $result = [];\\r\\n\";\n break;\n default:\n ftext += \"var $result = 0;\\r\\n\";\n break;\n }\n var ltext = '';\n // ltext += `// func: ${func}\\r\\n`;\n switch (func) {\n case 'avg':\n case 'sum':\n ltext += \"$result += (\" + prop + \"); // func: \" + func;\n break;\n case 'max':\n ltext += \"var $v = (\" + prop + \"); // func: \" + func + \"\\r\\nif ($v > $result)\\r\\n $result=$v\";\n break;\n case 'min':\n ltext += \"var $v = (\" + prop + \"); // func: \" + func + \"\\r\\nif ($v < $result)\\r\\n $result=$v\";\n break;\n case 'mul':\n ltext += \"$result *= (\" + prop + \"); // func: \" + func;\n break;\n case 'count':\n ltext += \"$result++; // func: \" + func;\n break;\n case 'first':\n case 'last':\n ltext += \"$result = (\" + prop + \");break; // func: \" + func;\n break;\n case 'map':\n ltext += \"$result.push(\" + prop + \"); // func: \" + func;\n break;\n }\n if (ifprop) {\n if (func === 'first' || func === 'map') {\n // tslint:disable-next-line: max-line-length\n ltext = \"var $arrayLength = $array.length;\\r\\nfor($index = 0; $index < $arrayLength; $index++) {\\r\\n if (\" + ifprop + \") { // if: \" + (schema.aggregate.when || schema.aggregate.if) + \"\\r\\n $length++;\\r\\n \" + ltext + \"\\r\\n }\\r\\n}\";\n }\n else {\n ltext = \"var $index = $array.length;\\r\\n\"\n + (\"while($index--) {\\r\\n if (\" + ifprop + \") { // if: \" + (schema.aggregate.when || schema.aggregate.if) + \"\\r\\n $length++;\\r\\n \" + ltext + \"\\r\\n }\\r\\n}\");\n }\n // ftext += `do {with(aaa[i]) {if (${ifprop}) {${ltext}}}} while(i--);`;\n }\n else {\n if (func === 'first' || func === 'map') {\n // tslint:disable-next-line: max-line-length\n ltext = \"var $arrayLength = $array.length;\\r\\n$length += $arrayLength;\\r\\nfor($index = 0; $index < $arrayLength; $index++) {\\r\\n \" + ltext + \"\\r\\n}\";\n }\n else {\n ltext = \"var $index = $array.length;\\r\\n$length += $index;\\r\\nwhile($index--) {\\r\\n \" + ltext + \"\\r\\n}\";\n }\n }\n for (var _i = 0, arraylist_1 = arraylist; _i < arraylist_1.length; _i++) {\n var arraykey = arraylist_1[_i];\n var subarray = null;\n var pp = arraykey.indexOf('/');\n if (pp > -1) {\n subarray = arraykey.substr(pp + 1);\n arraykey = arraykey.substr(0, pp);\n }\n var complexarray = /[\\$\\.]/.test(arraykey);\n if (!complexarray) {\n arraykey = 'this.' + arraykey;\n }\n arraykey = fix_parent_1.default(arraykey);\n if (subarray) {\n // tslint:disable-next-line: max-line-length\n ftext += \"var $parentArray = \" + arraykey + \"; // array: \" + schema.aggregate.array + \"\\r\\nvar $parentLength = $parentArray.length;\\r\\nfor(var $parentIndex=0; $parentIndex<$parentLength; $parentIndex++) {\\r\\n var $array=$parentArray[$parentIndex].\" + subarray + \";\\r\\n if ($array) {\\r\\n \" + ltext + \"\\r\\n}\\r\\n}\";\n }\n else {\n ftext += \"var $array = \" + arraykey + \"; // array: \" + schema.aggregate.array + \"\\r\\n\";\n /*\n switch (func) {\n case 'min':\n case 'max':\n case 'mul': ftext+=\"if ($result===undefined && $array.length) \"\n }\n */\n ftext += ltext;\n // ltext;\n }\n }\n if (func === 'avg') {\n ftext += '\\r\\nif ($length)\\r\\n $result /= $length;';\n }\n switch (func) {\n case 'mul':\n ftext += \"\\r\\nif ($length===0)\\r\\n $result=0;\";\n break;\n case 'min':\n case 'max':\n if (schema.type === 'string') {\n ftext += \"\\r\\nif ($length === 0)\\r\\n $result = '';\";\n }\n else {\n ftext += \"\\r\\nif ($length === 0)\\r\\n $result = 0;\";\n }\n break;\n }\n if (debug) {\n switch (schema.type) {\n case 'integer':\n ftext += '\\r\\n$result = $methods.mround($result,0);';\n break;\n case 'money':\n ftext += '\\r\\n$result = $methods.mround($result,2);';\n break;\n case 'number':\n if (schema.precision) {\n ftext += \"\\r\\n$result = $methods.mround($result,\" + schema.precision + \");\";\n }\n else {\n // ftext += `\\r\\n$result = $result;`;\n }\n break;\n default:\n // ftext += `\\r\\n$result = $result;`;\n break;\n }\n ftext += \"\\r\\nreturn $result;\";\n // return (schema.cache.aggregateFunc = aggregateFunc = new Function(funcParams, ftext));\n ftext = \"\\r\\n/*** debug only ***/\\r\\n\\\"\" + schemaPath_1.default(schema, true) + \"\\\"; // schema path\\r\\nconsole.debug($obj.$path); // model path\\r\\ndebugger;\\r\\n\\r\\n/*** function body ***/\\r\\n\" + ftext;\n // ftext = 'console.debug($obj.$path);\\r\\ndebugger;\\r\\n' + ftext;\n }\n else {\n switch (schema.type) {\n case 'integer':\n ftext += '\\r\\nreturn $methods.mround($result,0);';\n break;\n case 'money':\n ftext += '\\r\\nreturn $methods.mround($result,2);';\n break;\n case 'number':\n if (schema.precision) {\n ftext += \"\\r\\nreturn $methods.mround($result,\" + schema.precision + \");\";\n }\n else {\n ftext += \"\\r\\nreturn $result;\";\n }\n break;\n default:\n ftext += \"\\r\\nreturn $result;\";\n break;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n ftext = \"\\\"use strict\\\";\\r\\n\" + ftext;\n }\n aggregateFunc = new Function(funcParams_1.default, ftext);\n if (cache && !debug) {\n cacheFuncs[cachekey] = aggregateFunc;\n }\n return aggregateFunc;\n // return (schema.cache.aggregateFunc = aggregateFunc = new Function(funcParams, ftext));\n }\n}\nexports.default = aggregateFunction;\n//# sourceMappingURL=aggregateFunction.js.map","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction _dataValue(data, path, pindex, schema) {\n var prop = path[pindex];\n if (prop === '') {\n if (pindex === path.length - 1) {\n return undefined;\n }\n else {\n return _dataValue(data, path, pindex + 1, schema);\n }\n }\n if (schema) {\n if (schema.type === 'object' && schema.properties) {\n var schitem = schema.properties[prop];\n if (schitem === undefined) {\n return undefined;\n }\n var ndata = data[prop];\n if (ndata === undefined) {\n if (schitem.default !== undefined) {\n ndata = schitem.default;\n }\n else {\n return undefined;\n }\n }\n if (pindex === path.length - 1) {\n return ndata;\n }\n else {\n return _dataValue(ndata, path, pindex + 1, schitem);\n }\n }\n else if (schema.type === 'array') {\n var schitem = schema.items;\n if (schitem === undefined) {\n return undefined;\n }\n var ndata = data[Number(prop)];\n if (ndata === undefined) {\n if (schitem.default !== undefined) {\n ndata = schitem.default;\n }\n else {\n return undefined;\n }\n }\n if (pindex === path.length - 1) {\n return ndata;\n }\n else {\n return _dataValue(ndata, path, pindex + 1, schitem);\n }\n }\n else {\n return undefined;\n }\n }\n}\nfunction dataValue(schema, data, path) {\n var tpath = path\n .replace(/\\[/g, '.')\n .replace(/\\]/g, '')\n .split('.');\n return _dataValue(data, tpath, 0, schema);\n}\nexports.default = dataValue;\n//# sourceMappingURL=dataValue.js.map","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\n/**\n * formatuje datę do formatu yyyy-MM-dd\n * @param dt data typu Date\n */\nfunction fdate(dt) {\n return fdatetime_1.formatDateFunction['yyyy-MM-dd'](dt);\n // return dt.getFullYear() + '-' + padNumber(dt.getMonth() + 1) + '-' + padNumber(dt.getDate());\n}\nexports.default = fdate;\n//# sourceMappingURL=fdate.js.map","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Array.includes\nif (!Array.prototype.includes) {\n Array.prototype.includes = function (searchElement /*, fromIndex*/) {\n 'use strict';\n var O = Object(this);\n var len = parseInt(O.length, 10) || 0;\n if (len === 0) {\n return false;\n }\n var n = parseInt(arguments[1], 10) || 0;\n var k;\n if (n >= 0) {\n k = n;\n }\n else {\n k = len + n;\n if (k < 0) {\n k = 0;\n }\n }\n var currentElement;\n while (k < len) {\n currentElement = O[k];\n if (searchElement === currentElement ||\n (searchElement !== searchElement && currentElement !== currentElement)) { // NaN !== NaN\n return true;\n }\n k++;\n }\n return false;\n };\n}\n// Object.keys\nif (!Object.keys) {\n // tslint:disable-next-line: only-arrow-functions\n Object.keys = (function () {\n 'use strict';\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString');\n var dontEnums = [\n 'toString',\n 'toLocaleString',\n 'valueOf',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'constructor'\n ];\n var dontEnumsLength = dontEnums.length;\n // tslint:disable-next-line: only-arrow-functions\n return function (obj) {\n if (typeof obj !== 'function' && (typeof obj !== 'object' || obj === null)) {\n throw new TypeError('Object.keys called on non-object');\n }\n var result = [];\n var prop;\n var i;\n for (prop in obj) {\n if (hasOwnProperty.call(obj, prop)) {\n result.push(prop);\n }\n }\n if (hasDontEnumBug) {\n for (i = 0; i < dontEnumsLength; i++) {\n if (hasOwnProperty.call(obj, dontEnums[i])) {\n result.push(dontEnums[i]);\n }\n }\n }\n return result;\n };\n }());\n}\n// Object.assign\nif (typeof Object.assign !== 'function') {\n // tslint:disable-next-line: only-arrow-functions\n Object.assign = function (target, varArgs) {\n 'use strict';\n if (target == null) { // TypeError if undefined or null\n throw new TypeError('Cannot convert undefined or null to object');\n }\n var to = Object(target);\n for (var index = 1; index < arguments.length; index++) {\n var nextSource = arguments[index];\n if (nextSource != null) { // Skip over if undefined or null\n for (var nextKey in nextSource) {\n // Avoid bugs when hasOwnProperty is shadowed\n if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n return to;\n };\n}\n// test polyfill\n// @ts-ignore\nif (!Array.test) {\n // @ts-ignore\n // tslint:disable-next-line: only-arrow-functions\n Array.test = function () {\n return 'test';\n };\n}\nexports.includes = Array.prototype.includes;\nexports.keys = Object.keys;\n// @ts-ignore\nexports.test = Array.test;\n//# sourceMappingURL=polyfills.js.map","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ValidationResult = /** @class */ (function () {\n function ValidationResult() {\n this.valid = true;\n this.errors = [];\n }\n return ValidationResult;\n}());\nexports.default = ValidationResult;\n//# sourceMappingURL=ValidationResult.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\nvar WrappedPropertyArrayItem_1 = require(\"./WrappedPropertyArrayItem\");\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\nvar functions_1 = require(\"./functions\");\nvar WrappedPropertyArrayItemDirect_1 = require(\"./WrappedPropertyArrayItemDirect\");\nvar fixData_1 = require(\"../JSchema/fixData\");\nvar calcFunction_1 = require(\"../JSchema/calcFunction\");\nvar aggregateFunction_1 = require(\"../JSchema/aggregateFunction\");\nvar setData_1 = require(\"../JSchema/setData\");\nvar defaultValue_1 = require(\"../JSchema/defaultValue\");\nvar WrappedPropertyArray = /** @class */ (function (_super) {\n __extends(WrappedPropertyArray, _super);\n function WrappedPropertyArray(dest, parent, propName, schema, options) {\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\n var internal = _this._internal;\n _this._internal.mparent = _this.$model;\n _this._internal.schitems = schema.items;\n // internal.subitemcache = [];\n _this._internal.cachedKey = '';\n _this._internal.cachedItems = [];\n _this._internal.mparent = _this.$model;\n // //export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\n functions_1.wrapSchemaProps(_this.$schema, internal, 'number', ['maxItems', 'minItems']);\n // length\n if (schema.length !== undefined) {\n if (typeof schema.length !== 'number') {\n functions_1.wrapSchemaProp(_this.$schema, 'length', internal, function (newValue) { return _this.$setLength(newValue); });\n }\n else {\n _this.$schema.length = schema.length;\n _this.$setLength(schema.length);\n }\n }\n // tworzenie tablicy\n var mlength = internal.mparent.length;\n _this._internal.ntable = new Array(mlength);\n // console.time('addRows wrapall:' + internal.options.wrapAll + ' (' + mlength + ')');\n // if (internal.options.wrapAll) {\n if (false) {\n for (var i = 0; i < mlength; i++) {\n // const ssubitem = new WrapperPropertyArrayItem(self, internal.mparent, rowIndex, schitems, internal.options);\n // internal.ntable.push(new WrapperPropertyArrayItem(this, internal.mparent, i, internal.schitems, internal.options));\n internal.ntable[i] = new WrappedPropertyArrayItemDirect_1.WrapperPropertyArrayItemDirect(_this, internal.mparent, i, internal.schitems, internal.options);\n // addRow(this, internal, internal.schitems, i);\n }\n }\n else {\n for (var i = 0; i < mlength; i++) {\n // const ssubitem = new WrapperPropertyArrayItem(self, internal.mparent, rowIndex, schitems, internal.options);\n // internal.ntable.push(new WrapperPropertyArrayItem(this, internal.mparent, i, internal.schitems, internal.options));\n internal.ntable[i] = new WrappedPropertyArrayItem_1.WrapperPropertyArrayItem(_this, internal.mparent, i, internal.schitems, internal.options);\n // return ssubitem as IWrapperPropertyArrayItem;\n // addRow(this, internal, internal.schitems, i);\n }\n }\n // console.timeEnd('addRows wrapall:' + internal.options.wrapAll + ' (' + mlength + ')');\n // computed\n var self = _this;\n internal.useComputedModel = true;\n internal.computed.items = function () {\n var smodel = parent[propName];\n var l = smodel.length;\n // console.log('mparent.length', mparent.length);\n if (l > internal.ntable.length) {\n // console.log('autogrow', l, ntable.length);\n while (internal.ntable.length < l) {\n fixData_1.default(internal.schitems, smodel[internal.ntable.length], options.Vue);\n addRow(_this, internal, internal.schitems, internal.ntable.length);\n }\n }\n else if (l < internal.ntable.length) {\n clearCached(internal);\n internal.ntable.length = l;\n }\n return internal.ntable;\n // return [];\n };\n internal.watch.items = {\n // deep,\n handler: function (newValue) {\n if (schema.debug) {\n debugger;\n }\n self.$dirty = true;\n // self.$validate(parent[propName]);\n }\n };\n // potrzebne przeliczenia na starcie\n if (mlength && !self._options.disableCalculations && !self._options.wrapAll) {\n var needCalc = functions_1.anyCalc(internal.schitems);\n var props = internal.schitems.properties;\n if (needCalc && props) {\n // są jakieś pola wymagające kalkulacji\n // $root,$parent,$parent2,$parent3,$external,$methods,$obj\n var paramdata = [_this.$root.$model, internal.mparent, {}, {}, options.external, options.schemaMethods, , null];\n if (dest) {\n paramdata[2] = dest.$model;\n if (dest.$parent) {\n paramdata[3] = dest.$parent.$model;\n }\n }\n // let props = schitems.properties;\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\n var schkey = _a[_i];\n var schitem = props[schkey];\n if (schitem.calc) {\n var stime = new Date().getTime();\n var calcFunc = calcFunction_1.default(schitem, true);\n var $mparent = {\n $parent: self,\n $key: 0\n };\n paramdata[6] = { $key: schkey, $parent: $mparent };\n try {\n // for (let i = 0; i < mlength; i++) {\n // paramdata[6].$parent.$key = i;\n for (; $mparent.$key < mlength; $mparent.$key++) {\n var res = calcFunc.apply(internal.mparent[$mparent.$key], paramdata);\n if (res !== undefined) {\n options.Vue.set(internal.mparent[$mparent.$key], schkey, res);\n }\n // mparent[$mparent.$key][schkey] = calcFunc.apply(mparent[$mparent.$key], paramdata);\n }\n }\n catch (err) {\n if (process.env.NODE_ENV === 'development') {\n console.error('ERR calc:model result', err);\n }\n // moze się wywalić wiec spokojnie\n continue;\n }\n // console.log(`calc ${schkey} in ${propName}[${mlength}]`, new Date().getTime() - stime);\n }\n else if (schitem.aggregate) {\n if (process.env.NODE_ENV === 'development') {\n console.time('agg:model ' + self.$path + '[].' + schkey);\n // console.info('agg:model', new Date().getTime() - stime);\n }\n var stime = new Date().getTime();\n var aggFunc = aggregateFunction_1.default(schitem, true);\n var $mparent = {\n $parent: self,\n $key: 0\n };\n paramdata[6] = { $key: schkey, $parent: $mparent };\n try {\n // for (let i = 0; i < mlength; i++) {\n // paramdata[6].$parent.$key = i;\n for (; $mparent.$key < mlength; $mparent.$key++) {\n var res = aggFunc.apply(internal.mparent[$mparent.$key], paramdata);\n // mparent[$mparent.$key][schkey] = res;\n if (res !== undefined) {\n options.Vue.set(internal.mparent[$mparent.$key], schkey, res);\n }\n // mparent[$mparent.$key][schkey] = calcFunc.apply(mparent[$mparent.$key], paramdata);\n }\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('agg:model ' + self.$path + '[].' + schkey);\n // console.info('agg:model', new Date().getTime() - stime);\n }\n }\n catch (err) {\n if (process.env.NODE_ENV === 'development') {\n console.warn('agg:model rerror', err);\n console.timeEnd('agg:model ' + self.$path + '[].' + schkey);\n }\n // moze się wywalić wiec spokojnie\n continue;\n }\n }\n // if (schitems.calc) || (schitem.summary) || (schitem.agg)\n }\n }\n }\n functions_1.initVue(_this, _this._internal);\n return _this;\n // już po stworzeniu Vue\n // this._options.Vue.set(this.$data, 'order', '');\n // this.$setUserData('order', '');\n }\n WrappedPropertyArray.prototype.$validate = function (value) {\n if (value === undefined) {\n value = this.$model;\n }\n if (value === undefined || value === null) {\n if (this.$schema.fieldRequired) {\n return functions_1.getRuleMessage(this._internal, 'required', value, this.$schema);\n }\n else {\n return null;\n }\n }\n return _super.prototype.$validate.call(this, value);\n };\n WrappedPropertyArray.prototype.$validateAll = function (result) {\n if (result === undefined) {\n result = [];\n }\n if (this.$validate() !== null) {\n result.push(this);\n }\n for (var i = 0; i < this._internal.ntable.length; i++) {\n this._internal.ntable[i].$item.$validateAll(result);\n }\n return result;\n };\n WrappedPropertyArray.prototype.$setData = function (value, path, fixArraySize) {\n // /Vue.set(parent, propName, value);\n return setData_1.default(this._internal.schema, this.$model, value, path, 0, this._options.Vue, fixArraySize);\n };\n WrappedPropertyArray.prototype.$reset = function () {\n /*\n for (let i = 0; i < this.internal.mparent.length; i++) {\n const subitem = this.internal.subitemcache[i];\n if (subitem !== undefined) {\n subitem.$reset();\n }\n }\n */\n for (var i = 0; i < this._internal.ntable.length; i++) {\n this._internal.ntable[i].$reset();\n }\n _super.prototype.$reset.call(this);\n // this.$dirty = false;\n // this.internal.vm.error = null;\n };\n WrappedPropertyArray.prototype.$dirtyList = function (result) {\n if (result === undefined) {\n result = [];\n }\n for (var i = 0; i < this._internal.ntable.length; i++) {\n this._internal.ntable[i].$dirtyList(result);\n }\n /*\n \n for (let i = 0; i < this.internal.mparent.length; i++) {\n const subitem = this.internal.subitemcache[i];\n if (subitem !== undefined) {\n subitem.$dirtyList(result);\n }\n }\n */\n return result;\n };\n Object.defineProperty(WrappedPropertyArray.prototype, \"$items\", {\n get: function () {\n if (this._internal.vm) {\n return this._internal.vm.items;\n }\n else {\n return this._internal.ntable;\n }\n },\n enumerable: true,\n configurable: true\n });\n WrappedPropertyArray.prototype.$setLength = function (newLength) {\n var stable = this.$model;\n if (stable.length !== newLength) {\n while (stable.length > newLength) {\n this.$removeRow(stable.length - 1);\n }\n while (stable.length < newLength) {\n // obj.$addRow(undefined, 1);\n this.$addRow(undefined, newLength - stable.length);\n }\n }\n return true;\n };\n WrappedPropertyArray.prototype.$addRow = function (nvalue, count) {\n if (count === void 0) { count = 1; }\n var mparent2 = this.$model;\n if (mparent2 === undefined) {\n // Vue.set(parent, propName, []);\n var defvalue = defaultValue_1.default(this._internal.schema, true);\n // console.log('recreate array',propName,defvalue);\n this.$setData(defvalue);\n // this.internal.Vue.set(this.internal.parent, this.propName, defvalue);\n mparent2 = this.$model;\n }\n // gdy jest ustawiona stała długość\n if (this.$schema.length !== undefined && mparent2.length === this.$schema.length) {\n return false;\n }\n this._internal.cachedKey = '';\n var startindex = mparent2.length;\n var schitems = this._internal.schitems;\n var nvalue2;\n if (schitems.type === 'object') {\n for (var i = 0; i < count; i++) {\n nvalue2 = defaultValue_1.default(schitems, true);\n if (nvalue) {\n nvalue2 = Object.assign(nvalue2, nvalue);\n }\n mparent2.push(nvalue2);\n }\n }\n else {\n for (var i = 0; i < count; i++) {\n if (nvalue !== undefined) {\n nvalue2 = nvalue;\n }\n else {\n nvalue2 = defaultValue_1.default(schitems, true);\n }\n this._options.Vue.set(mparent2, startindex + i, nvalue2);\n if (process.env.NODE_ENV === 'development') {\n console.log('vue set array item', startindex, nvalue2, mparent2.length);\n }\n }\n }\n for (var i = 0; i < count; i++) {\n addRow(this, this._internal, schitems, startindex + i);\n }\n return true;\n };\n WrappedPropertyArray.prototype.$removeRow = function (index) {\n if (process.env.NODE_ENV === 'development') {\n console.time('$removeRow');\n }\n var modeltable = this.$model;\n // schematable.splice(index, 1);\n if (this.$schema.length !== undefined && modeltable.length === this.$schema.length) {\n return false;\n }\n this._internal.cachedKey = '';\n this._internal.ntable.splice(index, 1);\n var l = this._internal.ntable.length;\n for (var i = index; i < l; i++) {\n this._internal.ntable[i].$setKey(i);\n }\n /*\n this.internal.subitemcache.splice(index, 1);\n for (let i = index; i < l; i++) {\n this.internal.ntable[i].$key = i;\n if (this.internal.subitemcache[i] !== undefined) {\n this.internal.subitemcache[i].$key = i;\n }\n }\n */\n modeltable.splice(index, 1); // bo na tym jest event ?\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('$removeRow');\n }\n return true;\n };\n WrappedPropertyArray.prototype.$clearRow = function (index) {\n var nitem = defaultValue_1.default(this._internal.schema);\n this._internal.ntable[index].$clearCache();\n /*\n if (this.internal.subitemcache[index] !== undefined) {\n this.internal.subitemcache[index].$destroy();\n this.internal.subitemcache[index] = undefined;\n }\n */\n this._options.Vue.set(this.$model, index, nitem);\n return true;\n };\n WrappedPropertyArray.prototype.$exchangeRow = function (index1, index2) {\n this._internal.cachedKey = '';\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$exchangeRow(\" + index1 + \",\" + index2 + \")\");\n }\n var mparent = this.$model;\n var item1 = mparent[index1];\n var item2 = mparent[index2];\n this._internal.ntable[index1].$clearCache();\n this._internal.ntable[index2].$clearCache();\n /*\n if (this.internal.subitemcache[index1] !== undefined) {\n this.internal.subitemcache[index1].$destroy();\n this.internal.subitemcache[index1] = undefined;\n }\n if (this.internal.subitemcache[index2] !== undefined) {\n this.internal.subitemcache[index2].$destroy();\n this.internal.subitemcache[index2] = undefined;\n }\n */\n this._options.Vue.set(mparent, index1, item2);\n this._options.Vue.set(mparent, index2, item1);\n // mparent[index1] = item2;\n // mparent[index2] = item1;\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd(\"$exchangeRow(\" + index1 + \",\" + index2 + \")\");\n }\n return true;\n // console.log('exchanged', index1, index2);\n };\n WrappedPropertyArray.prototype.$moveUp = function (index) {\n if (index > 0) {\n return this.$exchangeRow(index, index - 1);\n }\n return false;\n };\n WrappedPropertyArray.prototype.$moveDown = function (index) {\n if (index < this.$model.length - 1) {\n return this.$exchangeRow(index, index + 1);\n }\n return false;\n };\n WrappedPropertyArray.prototype.$sort = function (field) {\n // let stime = new Date().getTime();\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$sort(\" + this.$key + \",\" + field + \")\");\n }\n this._internal.cachedKey = '';\n var mparent = (this._internal.mparent = this._internal.mparent.sort(function (a, b) { return (b[field] === a[field] ? 0 : b[field] > a[field] ? -1 : 1); }));\n // mparent = parent[propName] = narray;\n // destroy\n // clearCached();\n var index = this._internal.ntable.length;\n while (index--) {\n this._internal.ntable[index].$clearCache();\n }\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd(\"$sort(\" + this.$key + \",\" + field + \")\");\n console.log(\" [0].\" + field + \"=\" + mparent[0][field] + (\", [\" + (mparent.length - 1) + \"].\" + field) + (\"=\" + mparent[mparent.length - 1][field]));\n }\n // tslint:disable-next-line: max-line-length\n // console.log('sorting', propName, field, new Date().getTime() - stime, mparent[0][field], mparent[mparent.length - 1][field]);\n };\n WrappedPropertyArray.prototype.$filter = function (func) {\n if (func) {\n return this._internal.ntable.filter(func);\n }\n return this._internal.ntable;\n };\n Object.defineProperty(WrappedPropertyArray.prototype, \"pageNumber\", {\n get: function () {\n return this.$getUserData('pageNumber', 0);\n // return this.$data.pageNumber || 0;\n },\n set: function (newValue) {\n if (newValue < 0) {\n this.$setUserData('pageNumber', 0);\n // this._options.Vue.set(this.$data, 'pageNumber', 0);\n }\n else if (newValue >= this.pageCount) {\n if (process.env.NODE_ENV === 'development') {\n console.log('overflow pagenumber', newValue, this.pageCount - 1);\n }\n this.$setUserData('pageNumber', this.pageCount - 1);\n // this._options.Vue.set(this.obj.$data, 'pageNumber', this.pageCount - 1);\n }\n else {\n this.$setUserData('pageNumber', newValue);\n // this._options.Vue.set(this.obj.$data, 'pageNumber', newValue);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyArray.prototype, \"pageSize\", {\n get: function () {\n return this.$getUserData('pageSize', 25);\n // return this.$data.pageSize;\n },\n set: function (newValue) {\n this.$setUserData('pageSize', newValue);\n // this._options.Vue.set(this.$data, 'pageSize', newValue);\n if (this.pageNumber >= this.pageCount) {\n this.pageNumber = this.pageCount - 1;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyArray.prototype, \"pageCount\", {\n get: function () {\n return Math.ceil(this.$model.length / this.pageSize);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedPropertyArray.prototype, \"order\", {\n get: function () {\n return this.$getUserData('order', '');\n },\n set: function (newValue) {\n this.$setUserData('order', newValue);\n // this._options.Vue.set(this.$data, 'order', newValue);\n },\n enumerable: true,\n configurable: true\n });\n WrappedPropertyArray.prototype.$getItems = function (start, count) {\n // console.log('dssdfsdfs');\n var mparent2 = this.$model;\n start = start || 0;\n if (count && this.pageSize !== count) {\n // console.log('set pageSize', count);\n this.pageSize = count;\n }\n var end = count;\n if (end === undefined) {\n end = mparent2.length;\n }\n else {\n end += start;\n if (end >= mparent2.length) {\n end = mparent2.length;\n }\n }\n var stime = new Date().getTime();\n var res = [];\n if (true /*usesubitem*/) {\n // const order = this.order;\n var order_1 = this.$getUserData('order', '');\n var nkey = start + \"|\" + end + \"|\" + order_1;\n if (nkey === this._internal.cachedKey) {\n // console.log('return cached data', new Date().getTime() - stime);\n return this._internal.cachedItems;\n }\n if (order_1) {\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$getItems.order('\" + order_1 + \"',\" + start + \",\" + end + \")\");\n }\n // let stime = new Date().getTime();\n var otable = Array.from(this._internal.ntable);\n otable.sort(function (a, b) { return (mparent2[b.$key][order_1] === mparent2[a.$key][order_1] ? 0 : mparent2[b.$key][order_1] > mparent2[a.$key][order_1] ? -1 : 1); });\n // console.log('order by', (new Date()).getTime() - stime, order, otable[0].$item, ntable[0].$item);\n // tslint:disable-next-line: max-line-length\n // let narray = parent[propName].sort((a: any, b: any) => (b[field] === a[field]) ? 0 : (b[field] > a[field]) ? -1 : 1);\n for (var i = start; i < end; i++) {\n res.push(otable[i].$item);\n }\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$getItems.order('\" + order_1 + \"',\" + start + \",\" + end + \")\");\n }\n // console.log('return ordered data', new Date().getTime() - stime);\n }\n else {\n if (process.env.NODE_ENV === 'development') {\n console.time(\"$getItems(\" + start + \",\" + end + \")\");\n }\n // console.log('not ordered', ntable[0].$item);\n for (var i = start; i < end; i++) {\n res.push(this._internal.ntable[i].$item);\n }\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd(\"$getItems(\" + start + \",\" + end + \")\");\n }\n }\n this._internal.cachedItems = res;\n this._internal.cachedKey = nkey;\n // const aa: any[] = this.$items as WrappedProperty[];\n // console.log(\"$getItems\",start,end,res.length,aa.length);\n // console.log(\"$getItems\", propName, start, end, res.length, (new Date()).getTime() - stime);\n // return res;\n // res = reactivedata.items.slice(start, end).map((x: any) => x.$item);\n }\n else {\n // res = reactivedata.items.slice(start, end);\n }\n // console.log('$getItems.slide', (new Date()).getTime() - stime, res);\n return res;\n // return\n };\n WrappedPropertyArray.prototype.$getPage = function (page, pageSize) {\n if (pageSize === void 0) { pageSize = 25; }\n // console.log('get page');\n return this.$getItems(page * pageSize, pageSize);\n };\n return WrappedPropertyArray;\n}(WrappedPropertyBase_1.default));\nexports.default = WrappedPropertyArray;\nfunction addRow(self, internal, schitems, rowIndex) {\n // const ssubitem = internal.options.wrapAll ? new WrapperPropertyArrayItemDirect(self, internal.mparent, rowIndex, schitems, internal.options) : new WrapperPropertyArrayItem(self, internal.mparent, rowIndex, schitems, internal.options);\n var ssubitem = new WrappedPropertyArrayItem_1.WrapperPropertyArrayItem(self, internal.mparent, rowIndex, schitems, internal.options);\n internal.ntable.push(ssubitem);\n return ssubitem;\n /*\n \n const ssubitem: any = new Object();\n // const ssubitem: any = { $key: rowIndex };\n // let subitem: any;\n \n Object.defineProperties(ssubitem, {\n $key: {\n writable: true,\n value: rowIndex\n },\n \n $item: {\n get() {\n let subitem = internal.subitemcache[this.$key];\n if (subitem === undefined) {\n subitem = new WrappedPropertyCtor[internal.schema.items.type](self, internal.parent, this.$key, schitems, internal.options);\n this.internal.subitemcache[this.$key] = subitem;\n }\n return subitem;\n }\n }\n });\n \n */\n /*\n if (needCalc) {\n subitemcache[ff] = self.wrapProperty(obj, mparent, ff, schitems);\n }\n */\n internal.ntable.push(ssubitem);\n if (internal.options.wrapAll) {\n var a = ssubitem.$item;\n }\n return ssubitem;\n}\nfunction clearCached(internal) {\n // destroy\n for (var i = 0; i < internal.ntable.length; i++) {\n internal.ntable[i].$clearCache();\n }\n /*\n for (let i = 0; i < internal.subitemcache.length; i++) {\n const item = internal.subitemcache[i];\n if (item !== undefined) {\n item.$destroy();\n }\n }\n \n internal.subitemcache = [];\n */\n}\n// przeliczanie tablicy, calc i aggragate\nfunction recalcArray() {\n return true;\n}\nWrappedPropertyCtor_1.default.array = WrappedPropertyArray;\n//# sourceMappingURL=WrappedPropertyArray.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar IOptions_1 = require(\"./WrappedProperty/IOptions\");\nvar WrappedProperty_1 = require(\"./WrappedProperty\");\nvar fixAndMergeSchema_1 = require(\"./JSchema/fixAndMergeSchema\");\nvar defaultValue_1 = require(\"./JSchema/defaultValue\");\nvar fixData_1 = require(\"./JSchema/fixData\");\nvar validationMessages_1 = require(\"./validationMessages\");\nvar schemaMixin = {\n // beforeCreate() { },\n created: function () {\n var vm = this;\n var schema = vm.$options.schema;\n if (schema && vm.$setSchema) {\n vm.$setSchema(schema, false);\n }\n },\n beforeDestroy: function () {\n this.$setSchema();\n },\n methods: {\n $setSchema: function (schema, forceUpdate) {\n var vm = this;\n if (vm.$schema) {\n vm.$schema.$destroy();\n }\n vm.$schema = undefined;\n if (!schema) {\n return undefined;\n }\n if (vm.model === undefined) {\n throw new Error('no `model` property in data');\n return undefined;\n }\n var sopts = vm.schemaOptions || vm.$options.schemaOptions;\n var soptions = IOptions_1.fixSchemaOptions(sopts);\n if (sopts && sopts.validationMessages) {\n soptions.validationMessages = Object.assign({}, validationMessages_1.default, sopts.validationMessages);\n }\n // constructor\n var Vue = vm.constructor;\n while (Vue.super) {\n Vue = Vue.super;\n }\n if (Vue.Renderless) {\n Vue = Vue.Renderless;\n }\n soptions.Vue = Vue;\n // externalv\n if (vm.$options.external) {\n soptions.external = vm.$external = vm.$options.external;\n }\n // form\n vm.$form = soptions.form = vm.form || {};\n // merge schema\n var schema2 = null;\n // let fixtime = new Date().getTime();\n if (process.env.NODE_ENV === 'development') {\n console.time('schema fixing time');\n }\n var fixOptions = Object.assign({}, fixAndMergeSchema_1.fixSchemaDefaultOptions);\n if ((vm.$options.schemaOptions) && (vm.$options.schemaOptions.arrayItemGuidField !== undefined)) {\n fixOptions.arrayItemGuidField = vm.$options.schemaOptions.arrayItemGuidField;\n }\n fixOptions.model = vm.model;\n if (!Array.isArray(schema)) {\n schema = [schema];\n }\n else {\n schema = schema.slice(0);\n }\n if (vm.$options.beforeFixSchema) {\n vm.$options.beforeFixSchema(schema, fixOptions);\n }\n schema2 = fixAndMergeSchema_1.default(schema, fixOptions);\n // let ooo = JSON.stringify(schema2);\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('schema fixing time');\n }\n // console.log('schema fixing time', new Date().getTime() - fixtime);\n // const stime = new Date().getTime();\n // for (let i = 0; i < 100; i++) {\n // Object.defineProperty(this,\"$schema\",{\n // enumerable: true,\n // get: wrapobj.wrap(this, \"model\", schema)\n // })\n var nfix = (vm.$options.schemaOptions === undefined) || (vm.$options.schemaOptions.fixData === undefined) || (vm.$options.schemaOptions.fixData === true);\n if (vm.model === null) {\n // tworzenie domyslnego\n if (nfix) {\n vm.model = defaultValue_1.default(schema2, true);\n }\n else {\n vm.model = {};\n }\n }\n else {\n if (nfix) {\n if (process.env.NODE_ENV === 'development') {\n console.time('fixData');\n }\n var fixed = fixData_1.default(schema2, vm.model, soptions.Vue);\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('fixData');\n if (fixed) {\n console.log('fixed fields: ' + fixed);\n }\n }\n }\n }\n if (vm.$options.beforeSchema) {\n vm.$options.beforeSchema(vm.model, schema2, soptions);\n }\n // if (process.env.NODE_ENV === 'development') {\n // console.log('$schema.options', soptions);\n // }\n // console.log('wrapping model', vm.model);\n // vm.$schema = wrapobj.wrap(vm, schema2, 'model');\n // vm.$schema = new WrappedPropertyObject(null, vm, 'model', schema2, soptions);\n if (process.env.NODE_ENV === 'development') {\n console.time('wrapping schema');\n }\n vm.$schema = new WrappedProperty_1.default[schema2.type](null, vm, 'model', schema2, soptions);\n if (process.env.NODE_ENV === 'development') {\n console.timeEnd('wrapping schema');\n }\n if (vm.$options.afterSchema) {\n vm.$options.afterSchema(vm.$schema);\n }\n // console.log('wrapping schema', vm.$schema);\n // }\n // tslint:disable-next-line: no-console\n // console.log('wraptime', new Date().getTime() - stime, vm.$schema);\n if (forceUpdate && (vm.$forceUpdate)) {\n vm.$forceUpdate();\n }\n return vm.$schema;\n }\n }\n /*\n destroyed() {\n const vm: any = this as any;\n },\n */\n /*\n directives: {\n schema: {\n bind: (el: any, binding: any, vnode: any) => {\n if (vnode && vnode.componentInstance && vnode.componentInstance.setModel) {\n vnode.componentInstance.setModel(binding.value, binding.modifiers);\n\n }\n },\n },\n },\n */\n};\nexports.default = schemaMixin;\n//# sourceMappingURL=schemaMixin.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\nvar WrapperPropertyArrayItem = /** @class */ (function () {\n function WrapperPropertyArrayItem(dest, parent, key, schema, options) {\n this.$key = key;\n this._dest = dest;\n this._parent = parent;\n this._schema = schema;\n this._options = options;\n if (options.wrapAll || schema.type !== 'object') {\n this._cache = new WrappedPropertyCtor_1.default[this._schema.type](this._dest, this._parent, this.$key, this._schema, this._options);\n }\n }\n Object.defineProperty(WrapperPropertyArrayItem.prototype, \"$item\", {\n get: function () {\n if (this._cache) {\n return this._cache;\n }\n else {\n // console.log('WrappedPropertyCtor', Ctor);\n return (this._cache = new WrappedPropertyCtor_1.default[this._schema.type](this._dest, this._parent, this.$key, this._schema, this._options));\n }\n },\n enumerable: true,\n configurable: true\n });\n WrapperPropertyArrayItem.prototype.$clearCache = function () {\n if (this._cache) {\n this._cache.$destroy();\n this._cache = undefined;\n }\n };\n /**\n * ustawienie $dirty na false ale tylko wtedy gdy jest pobrane\n */\n WrapperPropertyArrayItem.prototype.$reset = function () {\n if (this._cache) {\n this._cache.$reset();\n }\n };\n /**\n *\n */\n WrapperPropertyArrayItem.prototype.$dirtyList = function (result) {\n if (this._cache) {\n this._cache.$dirtyList(result);\n }\n return result;\n };\n WrapperPropertyArrayItem.prototype.$destroy = function () {\n this.$clearCache();\n };\n WrapperPropertyArrayItem.prototype.$setKey = function (newKey) {\n this.$key = newKey;\n if (this._cache) {\n this._cache.$key = newKey;\n }\n };\n return WrapperPropertyArrayItem;\n}());\nexports.WrapperPropertyArrayItem = WrapperPropertyArrayItem;\n//# sourceMappingURL=WrappedPropertyArrayItem.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fdatetime_1 = require(\"./fdatetime\");\nvar padNumber_1 = require(\"./padNumber\");\nvar datePart_1 = require(\"./datePart\");\n/**\n * Zwraca tablicę zawierającą listę miesięcy pomiędzy datami\n * @param startDate data początkowa\n * @param endDate data końcowa\n * @param format format, domyślnie MMMM yyyy, czyli \"styczeń 2019\"\n */\nfunction listMonths(startDate, endDate, format /* = 'MMMM yyyy'*/) {\n /*\n const dt1 = dateParse(startDate);\n const dt2 = dateParse(endDate);\n\n let m1 = dt1.getMonth();\n let y1 = dt1.getFullYear();\n const m2 = dt2.getMonth();\n const y2 = dt2.getFullYear();\n */\n var m1 = datePart_1.default(startDate, 'M') - 1;\n var y1 = datePart_1.default(startDate, 'y');\n var m2 = datePart_1.default(endDate, 'M') - 1;\n var y2 = datePart_1.default(endDate, 'y');\n var result = [];\n var func;\n switch (format) {\n case 'MMMM yyyy':\n func = function (m, y) { return fdatetime_1.monthNames[m] + ' ' + y; };\n break;\n case 'MMM yyyy':\n func = function (m, y) { return fdatetime_1.monthShort[m] + ' ' + y; };\n break;\n case 'MM yyyy':\n func = function (m, y) { return padNumber_1.default(m + 1) + ' ' + y; };\n break;\n case 'M yyyy':\n func = function (m, y) { return m + 1 + ' ' + y; };\n break;\n case 'MMMM':\n func = function (m, y) { return fdatetime_1.monthNames[m]; };\n break;\n case 'MMM':\n func = function (m, y) { return fdatetime_1.monthShort[m]; };\n break;\n case 'MM':\n func = function (m, y) { return padNumber_1.default(m + 1); };\n break;\n case 'M':\n func = function (m, y) { return (m + 1).toString(); };\n break;\n default:\n func = function (m, y) { return fdatetime_1.monthNames[m] + ' ' + y; };\n break;\n }\n while ((m1 <= m2 && y1 === y2) || y1 < y2) {\n result.push(func(m1, y1));\n m1++;\n if (m1 > 11) {\n m1 = 0;\n y1++;\n }\n }\n return result;\n}\nexports.default = listMonths;\n//# sourceMappingURL=listMonths.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar datePart_1 = require(\"./datePart\");\n/**\n * Zwraca tablicę zawierającą listę lat pomiędzy datami\n * @param startDate data początkowa\n * @param endDate data końcowa\n */\nfunction listYears(startDate, endDate) {\n var y1 = datePart_1.default(startDate, 'y');\n var y2 = datePart_1.default(endDate, 'y');\n var result = [];\n while (y1 <= y2) {\n result.push(y1);\n y1++;\n }\n return result;\n}\nexports.default = listYears;\n//# sourceMappingURL=listYears.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar mround_1 = require(\"./mround\");\nvar precisionsz = ['', '.0', '.00', '.000', '.0000', '.00000', '.000000', '.0000000', '.00000000'];\n/**\n * formatuje liczbę zmiennoprzecinkową do polskiego formatu\n * @param value liczba\n * @param forcezeros czy zachować zera ,00\n * @param precision do ilu miejsc po przecinku zaokrąglić, domyślnie 2\n */\nfunction fmoney(value, forcezeros, precision) {\n if (precision === void 0) { precision = 2; }\n if (value === null) {\n return '';\n }\n // const s = value.toFixed(2);\n // let s = mround(value, precision).toFixed(precision);\n if (value % 1 === 0) {\n if (forcezeros) {\n return value.toString() + precisionsz[precision];\n }\n else {\n return value.toString();\n }\n }\n var s = mround_1.default(value, precision).toFixed(precision);\n if (forcezeros) {\n return s.replace('.', ',');\n }\n else {\n return s.replace(precisionsz[precision], '').replace('.', ',');\n }\n}\nexports.default = fmoney;\n//# sourceMappingURL=fmoney.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * sprawdza czy wartośc jest null, jeśli tak to zwraca valueIfNull\n * @param value wartość do sprawdzenia\n * @param valueIfNull co ma zwracać gdy value === null\n */\nfunction nullDefault(value, valueIfNull) {\n return value === null ? valueIfNull : value;\n}\nexports.default = nullDefault;\n//# sourceMappingURL=nullDefault.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fix_parent_1 = require(\"./fix$parent\");\nvar funcParams_1 = require(\"./funcParams\");\nvar schemaPath_1 = require(\"./schemaPath\");\nvar cacheFuncs = {};\nfunction validFunction(schema, cache, debug) {\n if (cache === void 0) { cache = true; }\n var func = null;\n if (schema.validFunc) {\n if (cache && !debug) {\n func = cacheFuncs['valid_' + schema.validFunc];\n if (func !== undefined) {\n return func;\n }\n }\n var stext = fix_parent_1.default(schema.validFunc);\n // let ftext = '';\n if (stext.indexOf('{') === -1) {\n stext = \"$result=(\" + stext + \")\";\n }\n var ffunc = \"var $value=$obj.$model;\\r\\nvar $result=null;\\r\\n\" + stext + \";\";\n // ffunc+=`${}`;\n // ffunc += 'with($data) {';\n // ffunc += `with(parent) ${stext};`;\n // ffunc += '};';\n // ffunc += `console.log('validFuncResult','${propName}',$result);`;\n if (stext.indexOf('return ') === -1) {\n ffunc += '\\r\\nreturn $result;';\n }\n // ffunc += '\\r\\nreturn $result;';\n if (debug) {\n ffunc = \"\\r\\n/*** debug only ***/\\r\\n\\\"\" + schemaPath_1.default(schema, true) + \"\\\"; // schema path\\r\\nconsole.debug($obj.$path); // model path\\r\\ndebugger;\\r\\n\\r\\n/*** function body ***/\\r\\n\" + ffunc;\n // ffunc = 'console.debug($obj.$path);\\r\\ndebugger;\\r\\n' + ffunc;\n }\n // old\n /*\n ftext += `return (${stext});`;\n\n\n\n if (debug && !debug) {\n ftext = 'debugger;\\r\\n' + ftext;\n }\n */\n func = new Function(funcParams_1.default, ffunc);\n if (cache) {\n cacheFuncs['valid_' + schema.validFunc] = func;\n }\n }\n return func;\n}\nexports.default = validFunction;\n//# sourceMappingURL=validFunction.js.map","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\nvar fmoney_1 = require(\"../methods/fmoney\");\nvar mround_1 = require(\"../methods/mround\");\nvar fnumber_1 = require(\"../methods/fnumber\");\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\nvar functions_1 = require(\"./functions\");\nvar WrappedPropertyNumber = /** @class */ (function (_super) {\n __extends(WrappedPropertyNumber, _super);\n function WrappedPropertyNumber(dest, parent, propName, schema, options) {\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\n // //export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\n functions_1.wrapSchemaProps(_this.$schema, _this._internal, 'number', ['minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision']);\n _this._internal.typeok = true;\n functions_1.initVue(_this, _this._internal);\n return _this;\n }\n WrappedPropertyNumber.prototype.$validate = function (value) {\n if (value === undefined) {\n value = this.$model;\n }\n // console.time('(number)$validate');\n this.$dirty = true;\n if (value === null) {\n // console.timeEnd('(number)$validate');\n if (!this._internal.typeok) {\n return functions_1.getRuleMessage(this._internal, 'type', value, this.$schema);\n }\n if (this.$schema.fieldRequired) {\n return functions_1.getRuleMessage(this._internal, 'required', value, this.$schema);\n }\n else {\n return null;\n }\n }\n var ivalue = +value;\n // console.timeEnd('(number)$validate');\n return _super.prototype.$validate.call(this, ivalue);\n };\n Object.defineProperty(WrappedPropertyNumber.prototype, \"$stringValue\", {\n get: function () {\n return this.$getUserData('stringValue', null);\n },\n enumerable: true,\n configurable: true\n });\n WrappedPropertyNumber.prototype.getValue = function () {\n var ivalue = this.$model;\n // let ivalue = obj.$model;\n /*\n if (this.$dirty) {\n this.$validate(ivalue);\n }\n */\n var stringValue = this.$getUserData('stringValue', null);\n if (ivalue === null) {\n // const svalue = this._internal.vm.stringValue;\n // if (svalue !== undefined && svalue !== null) {\n if (stringValue !== null) {\n return stringValue;\n }\n else {\n return '';\n }\n }\n if (isNaN(+ivalue)) {\n ivalue = 0;\n }\n // const err = validate(obj, ivalue);\n // if (obj.$path === 'LiczbaOdbiorcowZadania') {\n // console.log('validate ', JSON.stringify(ivalue), JSON.stringify(err));\n // }\n // vm.error = err ? getRuleMessage(schema, err, ivalue, $schema) : null;\n // let svalue = (\"\"+self.mround(ivalue)).replace(\".\",\",\");\n var svalue = '';\n switch (this.$schema.type) {\n case 'number':\n if (this.$schema.precision === undefined) {\n svalue = fnumber_1.default(ivalue, 8);\n }\n else {\n svalue = fnumber_1.default(ivalue, this.$schema.precision);\n }\n svalue = fnumber_1.default(ivalue, this.$schema.precision || 8);\n break;\n case 'money':\n if (this.$schema.precision === undefined) {\n svalue = fmoney_1.default(ivalue, false, 2);\n }\n else {\n svalue = fmoney_1.default(ivalue, false, this.$schema.precision);\n }\n break;\n case 'integer':\n svalue = fnumber_1.default(ivalue, 0);\n break;\n }\n // console.log($schema.type + 'Computed(get)', propName, JSON.stringify(svalue), err);\n return svalue;\n };\n WrappedPropertyNumber.prototype.setValue = function (newValue) {\n this._internal.typeok = true;\n var ivalue = null;\n if (this._options.dirtyOnInput) {\n this.$dirty = true;\n }\n // console.log('set model', JSON.stringify(newValue));\n if (newValue === '' || newValue == null) {\n /*\n if (this.$dirty && this.$schema.fieldRequired) {\n this.$error = getRuleMessage(this._internal.schema, 'required', newValue, this.$schema);\n // ok = false;\n // typeok = false;\n }\n */\n /*\n if (schema.default !== undefined) {\n ivalue = schema.default;\n //if (ivalue===0) {\n // typeok=true;\n //}\n }\n */\n ivalue = null;\n // this.$setUserData('stringValue', null);\n }\n else {\n ivalue = +newValue.replace(',', '.');\n if (isNaN(ivalue)) {\n /*\n if (this.$dirty) {\n this.$error = getRuleMessage(this._internal.schema, 'type', newValue, this.$schema);\n }\n this._internal.typeok = false;\n */\n this._internal.typeok = false;\n // this.$setUserData('stringValue', newValue);\n // this.stringValue = newValue;\n // ivalue = schema.default || null;\n ivalue = null;\n }\n else {\n // this.$setUserData('stringValue', null);\n }\n }\n // savedValue = ivalue;\n // if (this.focused) {\n if (!this._internal.typeok) {\n // tslint:disable-next-line: no-console\n // console.log('set $stringValue', newValue);\n this.$setUserData('stringValue', newValue);\n // this._internal.vm.stringValue = newValue;\n }\n else {\n this.$setUserData('stringValue', null);\n // this._internal.vm.stringValue = null;\n }\n var dvalue = 0;\n if (ivalue === null) {\n this.$model = null;\n }\n else {\n switch (this.$schema.type) {\n case 'integer':\n // console.log('set model', obj.$path, JSON.stringify(ivalue), JSON.stringify(mround(ivalue, 0)));\n dvalue = mround_1.default(ivalue, 0);\n break;\n case 'money':\n if (this.$schema.precision === undefined) {\n dvalue = mround_1.default(ivalue, 2);\n }\n else {\n dvalue = mround_1.default(ivalue, this.$schema.precision);\n }\n break;\n case 'number':\n if (this.$schema.precision === undefined) {\n dvalue = mround_1.default(ivalue, 8);\n }\n else {\n dvalue = mround_1.default(ivalue, this.$schema.precision);\n }\n break;\n }\n // console.log(schema.type + 'Computed(set)', propName, JSON.stringify(dvalue), JSON.stringify(typeok));\n // parent[propName] = dvalue;\n this.$model = dvalue;\n }\n };\n return WrappedPropertyNumber;\n}(WrappedPropertyBase_1.default));\nexports.default = WrappedPropertyNumber;\nWrappedPropertyCtor_1.default.integer = WrappedPropertyNumber;\nWrappedPropertyCtor_1.default.number = WrappedPropertyNumber;\nWrappedPropertyCtor_1.default.money = WrappedPropertyNumber;\n//# sourceMappingURL=WrappedPropertyNumber.js.map","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar fix_parent_1 = require(\"./fix$parent\");\nvar funcParams_1 = require(\"./funcParams\");\nfunction validCalcFunction(rule, cache) {\n if (cache === void 0) { cache = true; }\n var s = '';\n if (typeof rule === 'string') {\n rule = fix_parent_1.default(rule);\n s = \"return (\" + rule + \")\";\n }\n else if (Array.isArray(rule)) {\n for (var i = 0; i < rule.length; i++) {\n var item = rule[i];\n var ss = item.when || item.if || '';\n ss = fix_parent_1.default(ss);\n var ss2 = item.value;\n if (ss2 === undefined) {\n ss2 = ss;\n }\n else {\n if (typeof ss2 === 'string') {\n ss2 = fix_parent_1.default(ss2);\n }\n }\n s += \"if (\" + ss + \") return (\" + ss2 + \");\";\n }\n }\n // console.log('create valid function', rule, s);\n return new Function(funcParams_1.default, s);\n}\nexports.default = validCalcFunction;\n//# sourceMappingURL=validCalcFunction.js.map","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.crossed == 1)?_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.asterisk))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.separator)+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.asterisk))+\"\")],2):(_vm.crossed == 2)?_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.asterisk))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.separator)+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.asterisk))+\"\")]):_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.asterisk))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.separator)+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.asterisk))+\"\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./crossed-out.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./crossed-out.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./crossed-out.vue?vue&type=template&id=2e92f700&\"\nimport script from \"./crossed-out.vue?vue&type=script&lang=js&\"\nexport * from \"./crossed-out.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.model.$diff)?_c('span',{attrs:{\"path\":_vm.model.$path}},[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.model.$diff.$prevValue))+\"\"+_vm._ssrEscape(_vm._s(_vm.model.$diff.$newValue))+\"\")],2):_c('span',[_vm._ssrNode(_vm._ssrEscape(_vm._s(_vm.model.$value)))])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./simple.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./simple.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./simple.vue?vue&type=template&id=04da474b&\"\nimport script from \"./simple.vue?vue&type=script&lang=js&\"\nexport * from \"./simple.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.model.$diff)?_c('pre',{domProps:{\"innerHTML\":_vm._s(_vm.diffText)}}):_c('div',{staticStyle:{\"white-space\":\"pre-wrap\"}},[_vm._ssrNode(_vm._ssrEscape(_vm._s(_vm.model.$value)))])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./text.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./text.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./text.vue?vue&type=template&id=bbcc1408&\"\nimport script from \"./text.vue?vue&type=script&lang=js&\"\nexport * from \"./text.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',{class:_vm.computedClass},[_vm._t(\"default\",null,{\"context\":_vm.model.$item})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./row.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./row.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./row.vue?vue&type=template&id=5caf1e37&\"\nimport script from \"./row.vue?vue&type=script&lang=js&\"\nexport * from \"./row.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import WCrossedOut from './crossed-out.vue';\nimport WSimple from './simple.vue';\nimport WText from './text.vue';\nimport WRow from './row.vue';\n\n\nexport const components = {\n WSimple,\n WText,\n WRow,\n WCrossedOut\n};\n\nexport function registerPreviewComponents(Vue, registerLog) {\n for (var name in components) {\n if (registerLog) {\n console.time('register ' + name);\n Vue.component(name, components[name]);\n console.timeEnd('register ' + name);\n } else {\n Vue.component(name, components[name]);\n }\n\n }\n}\n\n\nexport default components;\n","export const filters = {};\n\nexport function registerFilters(Vue, registerLog) {\n for (var name in filters) {\n if (registerLog) {\n console.time('register filter ' + name);\n Vue.component(name, filters[name]);\n console.timeEnd('register filter ' + name);\n } else {\n Vue.component(name, filters[name]);\n }\n\n }\n}\n\nexport default filters;","import { schemaMixin } from '@witkac/jschema';\nimport previewComponents from '../components/preview/previewComponents';\nlet components = null;\n\n// nie przekazujemy komponentów bo rejestrujemy je globalnie\n/*\n\nif ((typeof window !== \"undefined\") && (window.Vue)) {\n //są zarejestrowane globalnie\n components = null;\n\n} else {\n components = previewComponents;\n}\n*/\n\n\n\n// import { fixSchemaDefaultOptions } from '../utils/JsonSchema';\n// fixSchemaDefaultOptions.arrayItemGuidField = 'Guid';\n\nexport default {\n mixins: [schemaMixin],\n components: components,\n props: ['datamodel', 'external'],\n data() {\n let data = {};\n return {\n model: this.$props.datamodel,\n };\n },\n\n beforeCreate() {\n const props = this.$options.propsData;\n\n if (props.external) {\n this.$options.external = props.external;\n delete props.external;\n }\n },\n created() {\n console.log('previewMixin created');\n\n },\n mounted() {\n if (typeof window !== \"undefined\") {\n\n window.vm = this;\n }\n }\n};\n","import _previewcomponents from './components/preview/previewComponents';\nimport _filters from './filters';\nimport { schemaMethods as _schemaMethods } from '@witkac/jschema';\n\nimport _previewMixin from './mixins/previewMixin';\n\nexport const previewMixin = _previewMixin;\nexport const previewComponents = _previewcomponents;\nexport const filters = _filters;\nexport const schemaMethods = _schemaMethods;\n\n\n\nexport default previewComponents;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Ctor = {};\nexports.default = Ctor;\n//# sourceMappingURL=WrappedPropertyCtor.js.map","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar formatFunctions_1 = require(\"../formatFunctions\");\nfunction getValidations(schema, cache) {\n var funcs = cache ? schema.validationFunctions : undefined;\n if (funcs === undefined) {\n funcs = [];\n if (schema.type === 'array') {\n if (schema.minItems !== undefined) {\n funcs.push(_validations.minItems);\n }\n if (schema.maxItems !== undefined) {\n funcs.push(_validations.maxItems);\n }\n }\n else {\n if (schema.type === 'string') {\n if (schema.minimum !== undefined) {\n if (String.prototype) {\n funcs.push(_validations.minimumString);\n }\n }\n if (schema.exclusiveMinimum !== undefined) {\n // let nn: number = schema.exclusiveMinimum;\n funcs.push(_validations.exclusiveMinimumString);\n }\n if (schema.maximum !== undefined) {\n funcs.push(_validations.maximumString);\n }\n if (schema.exclusiveMaximum !== undefined) {\n funcs.push(_validations.exclusiveMaximumString);\n }\n if (schema.maxLength !== undefined) {\n funcs.push(_validations.maxLength);\n }\n if (schema.minLength !== undefined) {\n funcs.push(_validations.minLength);\n }\n if (schema.pattern !== undefined) {\n try {\n var rg_1 = new RegExp(schema.pattern || '', schema.patternFlags || 'i');\n funcs.push(function (value, runschema) { return (rg_1.test(value) ? null : 'pattern'); });\n // tslint:disable-next-line: no-empty\n }\n catch (err) {\n funcs.push(function (value, runschema) { return 'pattern'; });\n }\n }\n if (schema.format !== undefined) {\n // const ff = formatFunctions[schema.format];\n var ff_1 = formatFunctions_1.checkFormatFunction(schema.format || '');\n // console.log('get format function', schema.format, ff);\n if (ff_1 !== undefined) {\n funcs.push(function (value, runschema) { return (ff_1(value) ? null : 'format'); });\n }\n }\n }\n else {\n if (schema.minimum !== undefined) {\n if (String.prototype) {\n funcs.push(_validations.minimum);\n }\n }\n if (schema.exclusiveMinimum !== undefined) {\n // let nn: number = schema.exclusiveMinimum;\n funcs.push(_validations.exclusiveMinimum);\n }\n if (schema.maximum !== undefined) {\n funcs.push(_validations.maximum);\n }\n if (schema.exclusiveMaximum !== undefined) {\n funcs.push(_validations.exclusiveMaximum);\n }\n }\n if (schema.enum !== undefined) {\n funcs.push(_validations.enum);\n }\n if (schema.type === 'number' || schema.type === 'integer' || schema.type === 'money') {\n if (schema.multipleOf) {\n funcs.push(_validations.multipleOf);\n }\n }\n }\n if (cache) {\n Object.defineProperty(schema, 'validationFunctions', {\n enumerable: false,\n value: funcs\n });\n }\n }\n return funcs;\n}\nexports.getValidations = getValidations;\nvar supportLocales = false;\ntry {\n 'foo'.localeCompare('bar', 'pl');\n supportLocales = true;\n}\ncatch (e) {\n supportLocales = false;\n}\nvar stringCompare = function (value, othervalue) { return value.toLocaleLowerCase().localeCompare(othervalue.toLocaleLowerCase()); };\n// nie ma sensu bo jest wolniejsze, jakieś 20x\n// if (supportLocales) {\n// stringCompare = (value: any, othervalue: any) => value.localeCompare(othervalue, 'pl', { sensitivity: 'accent' });\n// }\nvar _validations = {\n enum: function (value, runschema) { return (runschema.enum && runschema.enum.indexOf(value) > -1 ? null : 'enum'); },\n minItems: function (value, runschema) { return (runschema.minItems !== null && !isNaN(runschema.minItems) && value.length < runschema.minItems ? 'minItems' : null); },\n maxItems: function (value, runschema) { return (runschema.maxItems !== null && !isNaN(runschema.maxItems) && value.length > runschema.maxItems ? 'maxItems' : null); },\n multipleOf: function (value, runschema) {\n return runschema.multipleOf !== null && !isNaN(runschema.multipleOf) && value % runschema.multipleOf !== 0 ? 'multipleOf' : null;\n },\n maxLength: function (value, runschema) { return (runschema.maxLength !== null && !isNaN(runschema.maxLength) && value.length > runschema.maxLength ? 'maxLength' : null); },\n minLength: function (value, runschema) { return (runschema.minLength !== null && !isNaN(runschema.minLength) && value.length < runschema.minLength ? 'minLength' : null); },\n minimum: function (value, runschema) { return (runschema.minimum !== null && !isNaN(runschema.minimum) && value < runschema.minimum ? 'minimum' : null); },\n exclusiveMinimum: function (value, runschema) {\n return runschema.exclusiveMinimum !== null && !isNaN(runschema.exclusiveMinimum) && value <= runschema.exclusiveMinimum ? 'exclusiveMinimum' : null;\n },\n maximum: function (value, runschema) { return (runschema.maximum !== null && !isNaN(runschema.maximum) && value > runschema.maximum ? 'maximum' : null); },\n exclusiveMaximum: function (value, runschema) {\n return runschema.exclusiveMaximum !== null && !isNaN(runschema.exclusiveMaximum) && value >= runschema.exclusiveMaximum ? 'exclusiveMaximum' : null;\n },\n minimumString: function (value, runschema) { return (runschema.minimum && stringCompare(value, runschema.minimum) === -1 ? 'minimum' : null); },\n exclusiveMinimumString: function (value, runschema) { return (runschema.exclusiveMinimum && stringCompare(value, runschema.exclusiveMinimum) !== 1 ? 'exclusiveMinimum' : null); },\n maximumString: function (value, runschema) { return (runschema.maximum && stringCompare(value, runschema.maximum) === 1 ? 'maximum' : null); },\n exclusiveMaximumString: function (value, runschema) { return (runschema.exclusiveMaximum && stringCompare(value, runschema.exclusiveMaximum) !== -1 ? 'exclusiveMaximum' : null); }\n};\n//# sourceMappingURL=getValidations.js.map"],"sourceRoot":""} ======= {"version":3,"sources":["webpack://server/webpack/bootstrap","webpack://server/./node_modules/@witkac/jschema/lib/methods/ftime.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/functions.js","webpack://server/./node_modules/core-js/modules/_object-keys.js","webpack://server/./node_modules/core-js/modules/_object-gopd.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/compareData.js","webpack://server/./node_modules/core-js/modules/_object-dps.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/IOptions.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/padNumber.js","webpack://server/./node_modules/core-js/modules/_dom-create.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/mround.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/fixData.js","webpack://server/./node_modules/core-js/modules/_redefine.js","webpack://server/./node_modules/core-js/modules/_object-create.js","webpack://server/./node_modules/core-js/modules/_library.js","webpack://server/./node_modules/core-js/modules/_cof.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/check.js","webpack://server/./node_modules/core-js/modules/_hide.js","webpack://server/./node_modules/@witkac/jschema/lib/TimeSpan.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateParse.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyObject.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/defaultValue.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyString.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/funcParams.js","webpack://server/./node_modules/core-js/modules/_to-integer.js","webpack://server/./node_modules/core-js/modules/_property-desc.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/trim.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/validate.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/JSchema.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/calcFunction.js","webpack://server/./node_modules/core-js/modules/_object-pie.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/datePart.js","webpack://server/./node_modules/core-js/modules/_shared.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/checkType.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/now.js","webpack://server/./node_modules/core-js/modules/_export.js","webpack://server/./node_modules/core-js/modules/_inherit-if-required.js","webpack://server/./node_modules/core-js/modules/_shared-key.js","webpack://server/./node_modules/core-js/modules/_iobject.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/generateGuid.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyBase.js","webpack://server/./node_modules/@witkac/jschema/lib/index.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/today.js","webpack://server/./node_modules/core-js/modules/_to-iobject.js","webpack://server/./node_modules/core-js/modules/_has.js","webpack://server/./node_modules/core-js/modules/_to-primitive.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyArrayItemDirect.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fdatetime.js","webpack://server/./node_modules/core-js/modules/_global.js","webpack://server/./node_modules/core-js/modules/_to-absolute-index.js","webpack://server/./node_modules/core-js/modules/_fails.js","webpack://server/./node_modules/core-js/modules/es6.function.name.js","webpack://server/./node_modules/core-js/modules/_core.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/setData.js","webpack://server/./node_modules/core-js/modules/_object-dp.js","webpack://server/./node_modules/core-js/modules/_set-proto.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/fix$parent.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/max.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fnumber.js","webpack://server/./node_modules/core-js/modules/_object-gopn.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateSet.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/fixAndMergeSchema.js","webpack://server/./node_modules/@witkac/jschema/lib/schemaMethods.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/schemaPath.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/clearData.js","webpack://server/./node_modules/core-js/modules/_ctx.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/min.js","webpack://server/./node_modules/core-js/modules/_to-length.js","webpack://server/./node_modules/core-js/modules/_descriptors.js","webpack://server/./node_modules/@witkac/jschema/lib/formatFunctions.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/index.js","webpack://server/./node_modules/core-js/modules/_string-trim.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateDiff.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/schemaValue.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/dateAdd.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyBoolean.js","webpack://server/./node_modules/core-js/modules/_defined.js","webpack://server/./node_modules/core-js/modules/_array-includes.js","webpack://server/./node_modules/core-js/modules/es6.number.constructor.js","webpack://server/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://server/./node_modules/core-js/modules/_uid.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/aggregateFunction.js","webpack://server/./node_modules/core-js/modules/_an-object.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/dataValue.js","webpack://server/./node_modules/core-js/modules/_object-keys-internal.js","webpack://server/./node_modules/core-js/modules/_is-object.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fdate.js","webpack://server/./node_modules/core-js/modules/_a-function.js","webpack://server/./node_modules/@witkac/jschema/lib/polyfills.js","webpack://server/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/ValidationResult.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyArray.js","webpack://server/./node_modules/@witkac/jschema/lib/schemaMixin.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyArrayItem.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/listMonths.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/listYears.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/fmoney.js","webpack://server/./node_modules/@witkac/jschema/lib/methods/nullDefault.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/validFunction.js","webpack://server/./node_modules/current-script-polyfill/currentScript.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyNumber.js","webpack://server/./node_modules/core-js/modules/_function-to-string.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/validCalcFunction.js","webpack://server/./node_modules/core-js/modules/_html.js","webpack://server/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://server/./src/components/crossed-out.vue?2919","webpack://server/src/components/crossed-out.vue","webpack://server/./src/components/crossed-out.vue?a213","webpack://server/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://server/./src/components/crossed-out.vue","webpack://server/./src/components/previewComponents.js","webpack://server/./src/filters/index.js","webpack://server/./src/mixins/previewMixin.js","webpack://server/./src/serverpackage.js","webpack://server/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js","webpack://server/./node_modules/@witkac/jschema/lib/WrappedProperty/WrappedPropertyCtor.js","webpack://server/./node_modules/core-js/modules/_string-ws.js","webpack://server/./node_modules/@witkac/jschema/lib/JSchema/getValidations.js"],"names":["components","WCrossedOut","registerPreviewComponents","Vue","registerLog","name","console","time","component","timeEnd","filters","registerFilters","mixins","schemaMixin","props","data","model","$props","datamodel","beforeCreate","$options","propsData","external","created","log","mounted","window","vm","previewMixin","_previewMixin","previewComponents","_previewcomponents","_filters","schemaMethods","_schemaMethods"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;;ACZa;AACb,8CAA8C,cAAc;AAC5D,0BAA0B,mBAAO,CAAC,MAA8B;AAChE,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C,eAAe,mBAAO,CAAC,MAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,EAQV;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,MAAM;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,gBAAgB,EAAE,SAAS,EAAE;AAC7B,gBAAgB,EAAE,SAAS,EAAE;AAC7B,yBAAyB,EAAE,kBAAkB,EAAE;AAC/C,yBAAyB,EAAE,kBAAkB,EAAE;AAC/C,mBAAmB,EAAE,YAAY,EAAE;AACnC,kBAAkB,EAAE,WAAW,EAAE;AACjC,kBAAkB,EAAE,WAAW,EAAE;AACjC,iBAAiB,EAAE,UAAU,EAAE;AAC/B,iBAAiB,EAAE,UAAU,EAAE;AAC/B,gBAAgB,EAAE,SAAS,EAAE;AAC7B,eAAe,EAAE,QAAQ,EAAE;AAC3B,aAAa,EAAE,MAAM,EAAE;AACvB,cAAc,EAAE,OAAO,EAAE;AACzB,cAAc,EAAE,OAAO,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,SAAS;AACpC,4BAA4B,SAAS;AACrC,8CAA8C,kBAAkB;AAChE,+CAA+C,kBAAkB;AACjE,4CAA4C,YAAY;AACxD,qDAAqD,WAAW;AAChE,qDAAqD,WAAW;AAChE,kDAAkD,UAAU;AAC5D,+CAA+C,UAAU;AACzD;AACA;AACA;AACA;AACA,uBAAuB,+BAA+B;AACtD;AACA;AACA;AACA,6BAA6B,gBAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,EAAE,OAAO;AACxD,oEAAoE,4EAA4E,EAAE;AAClJ;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,wBAAwB,EAAE;AACxD,sCAAsC,gCAAgC;AACtE;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;AClQA;AACA,YAAY,mBAAO,CAAC,MAAyB;AAC7C,kBAAkB,mBAAO,CAAC,MAAkB;;AAE5C;AACA;AACA;;;;;;;;ACNA,UAAU,mBAAO,CAAC,MAAe;AACjC,iBAAiB,mBAAO,CAAC,MAAkB;AAC3C,gBAAgB,mBAAO,CAAC,MAAe;AACvC,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C,UAAU,mBAAO,CAAC,MAAQ;AAC1B,qBAAqB,mBAAO,CAAC,MAAmB;AAChD;;AAEA,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;;;;;;;;;ACfa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,2BAA2B,aAAa;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,uC;;;;;;;AC5FA,SAAS,mBAAO,CAAC,MAAc;AAC/B,eAAe,mBAAO,CAAC,MAAc;AACrC,cAAc,mBAAO,CAAC,MAAgB;;AAEtC,iBAAiB,mBAAO,CAAC,MAAgB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACZa;AACb,8CAA8C,cAAc;AAC5D,sBAAsB,mBAAO,CAAC,MAAkB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA,oC;;;;;;;;ACzBa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;AChBA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAW;AAClC;AACA;AACA;AACA;AACA;;;;;;;;;ACNa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA,qCAAqC,MAAM,GAAG,UAAU,WAAW,UAAU;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;;ACvBa;AACb,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,MAAW;AACnC,qBAAqB,mBAAO,CAAC,MAAgB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;ACnCA,aAAa,mBAAO,CAAC,MAAW;AAChC,WAAW,mBAAO,CAAC,MAAS;AAC5B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,gBAAgB,mBAAO,CAAC,MAAuB;AAC/C;AACA;;AAEA,mBAAO,CAAC,MAAS;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;AACD;AACA,CAAC;;;;;;;;AC9BD;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC,UAAU,mBAAO,CAAC,MAAe;AACjC,kBAAkB,mBAAO,CAAC,MAAkB;AAC5C,eAAe,mBAAO,CAAC,MAAe;AACtC,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA,eAAe,mBAAO,CAAC,MAAe;AACtC;AACA;AACA;AACA;AACA;AACA,EAAE,mBAAO,CAAC,MAAS;AACnB,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;;;;;;;ACxCA;;;;;;;;ACAA,iBAAiB;;AAEjB;AACA;AACA;;;;;;;;;ACJa;AACb,8CAA8C,cAAc;AAC5D,wBAAwB,mBAAO,CAAC,MAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACZA,SAAS,mBAAO,CAAC,MAAc;AAC/B,iBAAiB,mBAAO,CAAC,MAAkB;AAC3C,iBAAiB,mBAAO,CAAC,MAAgB;AACzC;AACA,CAAC;AACD;AACA;AACA;;;;;;;;;ACPa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,oC;;;;;;;;ACpKa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;ACfa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,qBAAqB,mBAAO,CAAC,MAAyB;AACtD,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,iD;;;;;;;;AC7Ia;AACb,8CAA8C,cAAc;AAC5D,qBAAqB,mBAAO,CAAC,MAAyB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,eAAe;AAC1C,mCAAmC,sBAAsB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wC;;;;;;;;ACzGa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,iD;;;;;;;;ACnIa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA,sC;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACPa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gC;;;;;;;;ACVa;AACb,8CAA8C,cAAc;AAC5D,yBAAyB,mBAAO,CAAC,MAAoB;AACrD,wBAAwB,mBAAO,CAAC,MAAoB;AACpD;AACA,0BAA0B,WAAW;AACrC,sCAAsC,yBAAyB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,WAAW;AACrC,sCAAsC,yBAAyB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,yBAAyB;AAC/D,0BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;ACrUa;AACb,8CAA8C,cAAc;AAC5D,qBAAqB,mBAAO,CAAC,MAAgB;AAC7C,kBAAkB,mBAAO,CAAC,MAAa;AACvC,oBAAoB,mBAAO,CAAC,MAAe;AAC3C,iBAAiB,mBAAO,CAAC,MAAY;AACrC,oBAAoB,mBAAO,CAAC,MAAe;AAC3C,kBAAkB,mBAAO,CAAC,MAAa;AACvC,gBAAgB,mBAAO,CAAC,MAAW;AACnC,0BAA0B,mBAAO,CAAC,MAAqB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,sBAAsB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,yBAAyB;AACnE,gCAAgC,eAAe;AAC/C,8BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,mC;;;;;;;;AC5Ga;AACb,8CAA8C,cAAc;AAC5D,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA,iEAAiE;AACjE;AACA,sEAAsE,EAAE;AACxE;AACA,iEAAiE;AACjE;AACA;AACA;AACA,4FAA4F;AAC5F;AACA;AACA,mDAAmD;AACnD;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA,kEAAkE,yDAAyD,SAAS;AACpI;AACA;AACA;AACA;AACA;AACA,kDAAkD,aAAa;AAC/D,gGAAgG,6CAA6C,2BAA2B;AACxK,2BAA2B,yBAAyB,EAAE,8BAA8B,aAAa,MAAM,MAAM;AAC7G,2DAA2D,8BAA8B,aAAa;AACtG;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA,sEAAsE,EAAE;AACxE;AACA,uEAAuE;AACvE;AACA;AACA;AACA,kGAAkG;AAClG;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA,kEAAkE,oBAAoB;AACtF;AACA;AACA,YAAY,KAAqC,EAAE,EAE1C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wC;;;;;;;ACtGA,cAAc;;;;;;;;;ACAD;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;ACtDA,WAAW,mBAAO,CAAC,MAAS;AAC5B,aAAa,mBAAO,CAAC,MAAW;AAChC;AACA,kDAAkD;;AAElD;AACA,qEAAqE;AACrE,CAAC;AACD;AACA,QAAQ,mBAAO,CAAC,MAAY;AAC5B;AACA,CAAC;;;;;;;;;ACXY;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;ACrCa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;ACVA,aAAa,mBAAO,CAAC,MAAW;AAChC,WAAW,mBAAO,CAAC,MAAS;AAC5B,WAAW,mBAAO,CAAC,MAAS;AAC5B,eAAe,mBAAO,CAAC,MAAa;AACpC,UAAU,mBAAO,CAAC,MAAQ;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF,uBAAuB;AACzG,iEAAiE;AACjE,+DAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,eAAe;AACf,eAAe;AACf,eAAe;AACf,gBAAgB;AAChB;;;;;;;;AC1CA,eAAe,mBAAO,CAAC,MAAc;AACrC,qBAAqB,mBAAO,CAAC,MAAc;AAC3C;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACRA,aAAa,mBAAO,CAAC,MAAW;AAChC,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA;AACA;;;;;;;;ACJA;AACA,UAAU,mBAAO,CAAC,MAAQ;AAC1B;AACA;AACA;AACA;;;;;;;;;ACLa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,wC;;;;;;;;ACjBa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,qBAAqB,mBAAO,CAAC,MAAyB;AACtD,sBAAsB,mBAAO,CAAC,MAA0B;AACxD,qBAAqB,mBAAO,CAAC,MAAyB;AACtD,0BAA0B,mBAAO,CAAC,MAA8B;AAChE,kBAAkB,mBAAO,CAAC,MAAsB;AAChD,uBAAuB,mBAAO,CAAC,MAA2B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,MAAsC,IAAI,KAAY;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE,MAAsC,IAAI,KAAY;AAC5H;AACA;AACA,4BAA4B,KAAsC,EAAE,YAY3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gFAAgF,MAAsC,IAAI,KAAY;AACtI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,KAAsC,EAAE,YAM3C;AACzC;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,gCAAgC,KAAsC,EAAE,YAY3C;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,qBAAqB;AAC/F;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,+C;;;;;;;;AC/jBa;AACb,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C;AACA,oBAAoB,mBAAO,CAAC,MAAe;AAC3C;AACA,sBAAsB,mBAAO,CAAC,MAAiB;AAC/C;AACA;AACA;AACA,gBAAgB,mBAAO,CAAC,MAAa;AACrC;AACA,wBAAwB,mBAAO,CAAC,MAAmB;AACnD;AACA;AACA,0BAA0B,mBAAO,CAAC,MAA6B;AAC/D;AACA;AACA,iC;;;;;;;;AClBa;AACb,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,MAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACVA;AACA,cAAc,mBAAO,CAAC,MAAY;AAClC,cAAc,mBAAO,CAAC,MAAY;AAClC;AACA;AACA;;;;;;;;ACLA,uBAAuB;AACvB;AACA;AACA;;;;;;;;ACHA;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACXa;AACb,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,0D;;;;;;;;ACtCa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,kHAAkH,EAAE;AACrJ,iCAAiC,kHAAkH,EAAE;AACrJ,gCAAgC,mEAAmE,EAAE;AACrG,+BAA+B,mEAAmE,EAAE;AACpG,2BAA2B,+BAA+B,EAAE;AAC5D,0BAA0B,+BAA+B,EAAE;AAC3D,yBAAyB,0CAA0C,EAAE;AACrE,wBAAwB,gCAAgC,EAAE;AAC1D,2BAA2B,0CAA0C,EAAE;AACvE,0BAA0B,0CAA0C,EAAE;AACtE,yBAAyB,+CAA+C,EAAE;AAC1E,wBAAwB,uCAAuC,EAAE;AACjE,yBAAyB,2CAA2C,EAAE;AACtE,wBAAwB,iCAAiC,EAAE;AAC3D,yBAAyB,6CAA6C,EAAE;AACxE,wBAAwB,mCAAmC,EAAE;AAC7D,yBAAyB,6CAA6C,EAAE;AACxE,wBAAwB,mCAAmC,EAAE;AAC7D,+BAA+B,qIAAqI,EAAE;AACtK,0CAA0C,wGAAwG,EAAE;AACpJ,0CAA0C,wGAAwG;AAClJ;AACA,qC;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;;;;;;;ACLzC,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;ACNA,SAAS,mBAAO,CAAC,MAAc;AAC/B;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC;;;;;;;;ACfD,6BAA6B;AAC7B,uCAAuC;;;;;;;;;ACD1B;AACb,8CAA8C,cAAc;AAC5D,qBAAqB,mBAAO,CAAC,MAAgB;AAC7C,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,UAAU,EAAE;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,oBAAoB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;AC/OA,eAAe,mBAAO,CAAC,MAAc;AACrC,qBAAqB,mBAAO,CAAC,MAAmB;AAChD,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C;;AAEA,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA;AACA,GAAG,YAAY;AACf;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA,eAAe,mBAAO,CAAC,MAAc;AACrC,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA,cAAc,mBAAO,CAAC,MAAQ,iBAAiB,mBAAO,CAAC,MAAgB;AACvE;AACA;AACA,OAAO,YAAY,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG;AACR;AACA;;;;;;;;;ACxBa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;;;ACda;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;;ACjBa;AACb,8CAA8C,cAAc;AAC5D,eAAe,mBAAO,CAAC,MAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;ACtBA;AACA,YAAY,mBAAO,CAAC,MAAyB;AAC7C,iBAAiB,mBAAO,CAAC,MAAkB;;AAE3C;AACA;AACA;;;;;;;;;ACNa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;;ACvDa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,+BAA+B;AACjD;AACA,6BAA6B,2CAA2C;AACxE;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA,gCAAgC,qBAAqB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA,8CAA8C,0BAA0B;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,iDAyBV;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,uCAAuC,oBAAoB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6C;;;;;;;;ACpQa;AACb,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,MAAiB;AACvC,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C,iBAAiB,mBAAO,CAAC,MAAoB;AAC7C,iBAAiB,mBAAO,CAAC,MAAoB;AAC7C,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,qBAAqB,mBAAO,CAAC,MAAwB;AACrD,aAAa,mBAAO,CAAC,MAAgB;AACrC,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C,eAAe,mBAAO,CAAC,MAAkB;AACzC,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,cAAc,mBAAO,CAAC,MAAiB;AACvC,cAAc,mBAAO,CAAC,MAAiB;AACvC,mBAAmB,mBAAO,CAAC,MAAsB;AACjD,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,YAAY,mBAAO,CAAC,MAAe;AACnC,YAAY,mBAAO,CAAC,MAAe;AACnC,eAAe,mBAAO,CAAC,MAAkB;AACzC,YAAY,mBAAO,CAAC,MAAe;AACnC,oBAAoB,mBAAO,CAAC,MAAuB;AACnD,kBAAkB,mBAAO,CAAC,MAAqB;AAC/C,cAAc,mBAAO,CAAC,MAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;;;ACtEa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;;;AClCa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;AClEA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnBa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+B;;;;;;;ACjBA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC;AACA;AACA,2DAA2D;AAC3D;;;;;;;;ACLA;AACA,kBAAkB,mBAAO,CAAC,MAAU;AACpC,iCAAiC,QAAQ,mBAAmB,UAAU,EAAE,EAAE;AAC1E,CAAC;;;;;;;;;ACHY;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,KAAK,oCAAoC,KAAK;AACvF;AACA,0EAA0E,cAAc,EAAE,+BAA+B,IAAI,GAAG,EAAE,eAAe,IAAI,GAAG,EAAE,aAAa,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,iBAAiB,IAAI,GAAG,IAAI,SAAS,IAAI,iBAAiB,IAAI,UAAU,IAAI,uCAAuC,EAAE,gDAAgD,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,2CAA2C,8CAA8C,EAAE,yDAAyD,aAAa,EAAE,0CAA0C,eAAe,EAAE,mCAAmC,eAAe,EAAE,gCAAgC,eAAe,EAAE,gCAAgC,eAAe,EAAE,gCAAgC,eAAe,EAAE,mCAAmC,iBAAiB,EAAE,iCAAiC,iBAAiB,EAAE;AACpoC;AACA,8EAA8E,cAAc,EAAE,+BAA+B,IAAI,GAAG,EAAE,eAAe,IAAI,GAAG,EAAE,aAAa,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,gBAAgB,IAAI,GAAG,EAAE,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,iBAAiB,IAAI,GAAG,IAAI,SAAS,IAAI,iBAAiB,IAAI,UAAU,IAAI,uCAAuC,EAAE,gDAAgD,IAAI,GAAG,IAAI,SAAS,IAAI,aAAa,IAAI,gBAAgB,IAAI,GAAG,IAAI,SAAS,IAAI,2CAA2C,8CAA8C,EAAE,0DAA0D,aAAa,EAAE,2CAA2C,eAAe,EAAE,oCAAoC,eAAe,EAAE,iCAAiC,eAAe,EAAE,iCAAiC,eAAe,EAAE,iCAAiC,eAAe,EAAE,qCAAqC,iBAAiB,EAAE,kCAAkC,iBAAiB,EAAE;AACjpC;AACA;AACA,kDAAkD,EAAE,YAAY,EAAE,IAAI,MAAM,gCAAgC,EAAE,iBAAiB,IAAI,gCAAgC,EAAE,iBAAiB,IAAI,SAAS;AACnM;AACA;AACA;AACA;AACA;AACA,gFAAgF,IAAI,EAAE,EAAE,eAAe,IAAI,EAAE,EAAE,oBAAoB,IAAI,EAAE,EAAE,oBAAoB,IAAI,EAAE,EAAE,sCAAsC,IAAI,EAAE,EAAE,gDAAgD,IAAI,oBAAoB,EAAE,uDAAuD,KAAK,IAAI,KAAK,gBAAgB,KAAK,IAAI,KAAK,qBAAqB,KAAK,IAAI,KAAK,gBAAgB,KAAK,IAAI,KAAK,sBAAsB,KAAK,IAAI,KAAK,EAAE,GAAG,UAAU,IAAI;AAC1f;AACA,6jBAA6jB,IAAI,EAAE,EAAE,kBAAkB,IAAI,EAAE,EAAE,uBAAuB,IAAI,EAAE,EAAE,uBAAuB,IAAI,EAAE,EAAE,2CAA2C,IAAI,EAAE,EAAE,+DAA+D,IAAI,uBAAuB,EAAE,ooBAAooB,GAAG,aAAa,IAAI;AACp8C,uCAAuC,EAAE,aAAa,EAAE,GAAG,EAAE,SAAS,GAAG;AACzE;AACA,mEAAmE,eAAe,EAAE;AACpF;AACA;AACA,+CAA+C,EAAE,0BAA0B,KAAK,oCAAoC,KAAK;AACzH;AACA,uCAAuC,EAAE,+BAA+B,EAAE;AAC1E;AACA;AACA;AACA,sDAAsD,EAAE;AACxD;AACA;AACA,qCAAqC,IAAI,GAAG,EAAE,YAAY,IAAI,oBAAoB,IAAI,GAAG,EAAE,aAAa,IAAI,iFAAiF,EAAE,qBAAqB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,mFAAmF,EAAE,qBAAqB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,mFAAmF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,sBAAsB,IAAI,GAAG,EAAE,mBAAmB,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE,8BAA8B,IAAI,EAAE,IAAI,kBAAkB,IAAI,EAAE,IAAI,iFAAiF,EAAE;AAC7oC,6BAA6B,EAAE,OAAO,EAAE;AACxC;AACA,oBAAoB,EAAE;AACtB,qBAAqB,EAAE;AACvB;AACA;AACA;AACA,yBAAyB,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,GAAG;AACvF,KAAK;AACL,iCAAiC,iEAAiE,EAAE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yBAAyB,uDAAuD,EAAE;AAClF;AACA;AACA;AACA;AACA,KAAK;AACL,8BAA8B,yEAAyE,EAAE;AACzG,yBAAyB,sGAAsG,EAAE;AACjI,yBAAyB,+CAA+C,EAAE;AAC1E,0BAA0B,gDAAgD,EAAE;AAC5E,0BAA0B,gDAAgD,EAAE;AAC5E,0BAA0B,gDAAgD,EAAE;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,wFAAwF,EAAE;AACrH;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,iDAAiD,EAAE;AAC9E,0BAA0B,gDAAgD,EAAE;AAC5E,6BAA6B,mDAAmD,EAAE;AAClF,4BAA4B,kDAAkD,EAAE;AAChF,2BAA2B,iDAAiD;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,aAAa;AAChD;AACA;AACA;AACA;AACA,2C;;;;;;;;AC5Ua;AACb,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,6BAA6B,mBAAO,CAAC,MAAwB;AAC7D;AACA,8BAA8B,mBAAO,CAAC,MAAyB;AAC/D;AACA,8BAA8B,mBAAO,CAAC,MAAyB;AAC/D;AACA,8BAA8B,mBAAO,CAAC,MAAyB;AAC/D;AACA,+BAA+B,mBAAO,CAAC,MAA0B;AACjE;AACA,iBAAiB,mBAAO,CAAC,MAAY;AACrC,0BAA0B,mBAAO,CAAC,MAA8B;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;AC/CA,cAAc,mBAAO,CAAC,MAAW;AACjC,cAAc,mBAAO,CAAC,MAAY;AAClC,YAAY,mBAAO,CAAC,MAAU;AAC9B,aAAa,mBAAO,CAAC,MAAc;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;AC7Ba;AACb,8CAA8C,cAAc;AAC5D,iBAAiB,mBAAO,CAAC,MAAa;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;ACZa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uC;;;;;;;;ACpDa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;;ACvDa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,kD;;;;;;;AC/DA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA,gBAAgB,mBAAO,CAAC,MAAe;AACvC,eAAe,mBAAO,CAAC,MAAc;AACrC,sBAAsB,mBAAO,CAAC,MAAsB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;;;ACtBa;AACb,aAAa,mBAAO,CAAC,MAAW;AAChC,UAAU,mBAAO,CAAC,MAAQ;AAC1B,UAAU,mBAAO,CAAC,MAAQ;AAC1B,wBAAwB,mBAAO,CAAC,MAAwB;AACxD,kBAAkB,mBAAO,CAAC,MAAiB;AAC3C,YAAY,mBAAO,CAAC,MAAU;AAC9B,WAAW,mBAAO,CAAC,MAAgB;AACnC,WAAW,mBAAO,CAAC,MAAgB;AACnC,SAAS,mBAAO,CAAC,MAAc;AAC/B,YAAY,mBAAO,CAAC,MAAgB;AACpC;AACA;AACA;AACA;AACA;AACA,qBAAqB,mBAAO,CAAC,MAAkB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD,KAAK;AACL;AACA,oCAAoC,cAAc,OAAO;AACzD,qCAAqC,cAAc,OAAO;AAC1D;AACA;AACA,oEAAoE,OAAO;AAC3E;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,0BAA0B,EAAE;AACtE;AACA;AACA,kBAAkB,mBAAO,CAAC,MAAgB;AAC1C;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,mBAAO,CAAC,MAAa;AACvB;;;;;;;;ACpEA,kBAAkB,mBAAO,CAAC,MAAgB,MAAM,mBAAO,CAAC,MAAU;AAClE,+BAA+B,mBAAO,CAAC,MAAe,gBAAgB,mBAAmB,UAAU,EAAE,EAAE;AACvG,CAAC;;;;;;;;ACFD;AACA;AACA;AACA;AACA;;;;;;;;;ACJa;AACb,8CAA8C,cAAc;AAC5D,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,uDAAuD,cAAc;AACrE;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA,uHAAuH;AACvH;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA,gCAAgC,KAAK;AACrC;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA,kDAAkD;AAClD;AACA;AACA,kDAAkD;AAClD;AACA;AACA,oDAAoD;AACpD;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA,mDAAmD,MAAM;AACzD;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA,0DAA0D,mBAAmB,uBAAuB,YAAY,2BAA2B,gFAAgF,4BAA4B,KAAK;AAC5P;AACA;AACA,oDAAoD;AACpD,yCAAyC,2BAA2B,gFAAgF,4BAA4B,KAAK;AACrL;AACA,6BAA6B,cAAc,MAAM,OAAO,GAAG,EAAE,SAAS,YAAY;AAClF;AACA;AACA;AACA;AACA,0DAA0D,4BAA4B,mBAAmB,uBAAuB,YAAY,wBAAwB;AACpK;AACA;AACA,oDAAoD,sBAAsB,qBAAqB,wBAAwB;AACvH;AACA;AACA,iDAAiD,yBAAyB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,qFAAqF,2BAA2B,4BAA4B,kBAAkB,6DAA6D,mBAAmB,0BAA0B,KAAK;AAC3U;AACA;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA,sEAAsE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA,uEAAuE;AACvE;AACA;AACA;AACA,kGAAkG;AAClG;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA,yCAAyC;AACzC;AACA,gGAAgG,6CAA6C,2BAA2B;AACxK,kDAAkD,aAAa;AAC/D;AACA;AACA;AACA;AACA,oEAAoE;AACpE;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA,+FAA+F;AAC/F;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA;AACA,YAAY,KAAqC,EAAE,EAE1C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6C;;;;;;;ACxOA,eAAe,mBAAO,CAAC,MAAc;AACrC;AACA;AACA;AACA;;;;;;;;;ACJa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;ACpEA,UAAU,mBAAO,CAAC,MAAQ;AAC1B,gBAAgB,mBAAO,CAAC,MAAe;AACvC,mBAAmB,mBAAO,CAAC,MAAmB;AAC9C,eAAe,mBAAO,CAAC,MAAe;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;;;;;;;;;ACFa;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACZA;AACA;AACA;AACA;;;;;;;;;ACHa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,iBAAiB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA,2BAA2B,0BAA0B;AACrD;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;AC/GA;AACA;AACA;AACA;;;;;;;;;ACHa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,4C;;;;;;;;ACVa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,iCAAiC,mBAAO,CAAC,MAA4B;AACrE,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,uCAAuC,mBAAO,CAAC,MAAkC;AACjF,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C,qBAAqB,mBAAO,CAAC,MAAyB;AACtD,0BAA0B,mBAAO,CAAC,MAA8B;AAChE,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C,qBAAqB,mBAAO,CAAC,MAAyB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mGAAmG,mCAAmC,EAAE;AACxI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,UAOV;AACT;AACA,2BAA2B,aAAa;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,IAAI;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,gBAAgB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA,8CAA8C,aAAa;AAC3D;AACA,kCAAkC,yBAAyB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,KAAsC,EAAE,EAE3C;AAC7B;AACA;AACA;AACA,+CAA+C,OAAO,MAAM,SAAS,GAAG,QAAQ;AAChF;AACA;AACA,4BAA4B,KAAsC,EAAE,EAG3C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA,8CAA8C,aAAa;AAC3D;AACA,kCAAkC,yBAAyB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,KAAsC,EAAE,EAG3C;AAC7B;AACA;AACA,gCAAgC,KAAsC,EAAE,EAG3C;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,kCAAkC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;;AAEA,mBAAmB,kCAAkC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,OAAO;AAClC;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAE3C;AACT;AACA,6FAA6F,mEAAmE,EAAE;AAClK;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAsC,EAAE,EAG3C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA,6CAA6C,uIAAuI,EAAE;AACtL;AACA;AACA;AACA,mCAAmC,SAAS;AAC5C;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA,mCAAmC,SAAS;AAC5C;AACA;AACA,oBAAoB,KAAsC,EAAE,EAE3C;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,EAEJ;AACT;AACA;AACA;AACA;AACA;AACA,kCAAkC,eAAe;AACjD;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,4BAA4B;AAC/C;AACA;AACA;AACA,mBAAmB,kCAAkC;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gD;;;;;;;;ACnoBa;AACb,8CAA8C,cAAc;AAC5D,iBAAiB,mBAAO,CAAC,MAA4B;AACrD,wBAAwB,mBAAO,CAAC,MAAmB;AACnD,0BAA0B,mBAAO,CAAC,MAA6B;AAC/D,qBAAqB,mBAAO,CAAC,MAAwB;AACrD,gBAAgB,mBAAO,CAAC,MAAmB;AAC3C;AACA,uBAAuB,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb;AACA;AACA,8BAA8B,SAAS;AACvC;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,KAAsC,EAAE,EAE3C;AACrB;AACA,wBAAwB,KAAsC,EAAE,EAK3C;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb;AACA,gBAAgB,KAAsC,EAAE,EAE3C;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe;AACf,WAAW;AACX,OAAO;AACP;AACA;AACA;AACA,uC;;;;;;;;ACzJa;AACb,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,oD;;;;;;;;AC9Da;AACb,8CAA8C,cAAc;AAC5D,kBAAkB,mBAAO,CAAC,MAAa;AACvC,kBAAkB,mBAAO,CAAC,MAAa;AACvC,iBAAiB,mBAAO,CAAC,MAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA,oCAAoC,6CAA6C;AACjF;AACA;AACA,oCAAoC,wBAAwB;AAC5D;AACA;AACA,oCAAoC,kCAAkC;AACtE;AACA;AACA,oCAAoC,kCAAkC;AACtE;AACA;AACA,oCAAoC,mCAAmC;AACvE;AACA;AACA,oCAAoC,2BAA2B;AAC/D;AACA;AACA,oCAAoC,4CAA4C;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;;;ACnEa;AACb,8CAA8C,cAAc;AAC5D,iBAAiB,mBAAO,CAAC,MAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;ACnBa;AACb,8CAA8C,cAAc;AAC5D,eAAe,mBAAO,CAAC,MAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,eAAe;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;;;;;;;;AClCa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uC;;;;;;;;ACXa;AACb,8CAA8C,cAAc;AAC5D,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC;AACA;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B,sBAAsB,wBAAwB;AAC9C;AACA,4CAA4C,qBAAqB,kBAAkB;AACnF,sBAAsB;AACtB,kCAAkC;AAClC,oCAAoC,OAAO;AAC3C,uBAAuB;AACvB,sDAAsD,SAAS,WAAW;AAC1E,qCAAqC;AACrC;AACA,+CAA+C,aAAa;AAC5D;AACA;AACA;AACA,4BAA4B,MAAM,EAAE;;;;AAIpC;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;;AChDA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;ACnCY;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,eAAe,mBAAO,CAAC,MAAmB;AAC1C,eAAe,mBAAO,CAAC,MAAmB;AAC1C,gBAAgB,mBAAO,CAAC,MAAoB;AAC5C,4BAA4B,mBAAO,CAAC,MAAuB;AAC3D,kBAAkB,mBAAO,CAAC,MAAa;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,iD;;;;;;;AC3LA,iBAAiB,mBAAO,CAAC,MAAW;;;;;;;;;ACAvB;AACb,8CAA8C,cAAc;AAC5D,mBAAmB,mBAAO,CAAC,MAAc;AACzC,mBAAmB,mBAAO,CAAC,MAAc;AACzC;AACA,2BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,6C;;;;;;;AChCA,eAAe,mBAAO,CAAC,MAAW;AAClC;;;;;;;;;;;;ACDA;;AAEA;AACA,MAAM,IAAuC;AAC7C,IAAI,mBAAO,CAAC,MAAyB;AACrC;;AAEA;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACe,sDAAI;;;;;;ACdnB,0BAA0B,aAAa,0BAA0B,wBAAwB;AACzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkBA;AACA,uBADA;AAEA;AACA,mBADA;AAEA;AACA,kBADA;AAEA;AAFA,KAFA;AAMA;AACA,kBADA;AAEA;AAFA,KANA;AAUA,iBAVA;AAWA;AAXA,GAFA;AAeA,MAfA,kBAeA;AACA;AACA;AAjBA,G;;ACnBqU,CAAgB,sHAAG,EAAC,C;;ACAzV;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5F0F;AAC3B;AACL;;;AAG1D;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,iE;;;AClBf;AAGO,IAAMA,UAAU,GAAG;AACxBC,aAAW,EAAXA,WAAWA;AADa,CAAnB;AAIA,SAASC,yBAAT,CAAmCC,GAAnC,EAAwCC,WAAxC,EAAqD;AAC1D,OAAK,IAAIC,IAAT,IAAiBL,UAAjB,EAA6B;AAC3B,QAAII,WAAJ,EAAiB;AACfE,aAAO,CAACC,IAAR,CAAa,cAAcF,IAA3B;AACAF,SAAG,CAACK,SAAJ,CAAcH,IAAd,EAAoBL,UAAU,CAACK,IAAD,CAA9B;AACAC,aAAO,CAACG,OAAR,CAAgB,cAAcJ,IAA9B;AACD,KAJD,MAIO;AACLF,SAAG,CAACK,SAAJ,CAAcH,IAAd,EAAoBL,UAAU,CAACK,IAAD,CAA9B;AACD;AAEF;AACF;AAGcL,gEAAf,E;;ACrBO,IAAMU,OAAO,GAAG,EAAhB;AAEA,SAASC,eAAT,CAAyBR,GAAzB,EAA8BC,WAA9B,EAA2C;AAChD,OAAK,IAAIC,IAAT,IAAiBK,OAAjB,EAA0B;AACxB,QAAIN,WAAJ,EAAiB;AACfE,aAAO,CAACC,IAAR,CAAa,qBAAqBF,IAAlC;AACAF,SAAG,CAACK,SAAJ,CAAcH,IAAd,EAAoBK,OAAO,CAACL,IAAD,CAA3B;AACAC,aAAO,CAACG,OAAR,CAAgB,qBAAqBJ,IAArC;AACD,KAJD,MAIO;AACLF,SAAG,CAACK,SAAJ,CAAcH,IAAd,EAAoBK,OAAO,CAACL,IAAD,CAA3B;AACD;AAEF;AACF;AAEcK,uDAAf,E;;;;;ACfA;AACA;AACA,IAAIV,uBAAU,GAAG,IAAjB,C,CAEA;;AACA;;;;;;;;;;AAaA;AACA;;AAEe;AACbY,QAAM,EAAE,CAACC,kBAAD,CADK;AAEbb,YAAU,EAAEA,uBAFC;AAGbc,OAAK,EAAE,CAAC,WAAD,EAAc,UAAd,CAHM;AAIbC,MAJa,kBAIN;AACL,QAAIA,IAAI,GAAG,EAAX;AACA,WAAO;AACLC,WAAK,EAAE,KAAKC,MAAL,CAAYC;AADd,KAAP;AAGD,GATY;AAWbC,cAXa,0BAWE;AACb,QAAML,KAAK,GAAG,KAAKM,QAAL,CAAcC,SAA5B;;AAEA,QAAIP,KAAK,CAACQ,QAAV,EAAoB;AAClB,WAAKF,QAAL,CAAcE,QAAd,GAAyBR,KAAK,CAACQ,QAA/B;AACA,aAAOR,KAAK,CAACQ,QAAb;AACD;AACF,GAlBY;AAmBbC,SAnBa,qBAmBH;AACRjB,WAAO,CAACkB,GAAR,CAAY,sBAAZ;AAED,GAtBY;AAuBbC,SAvBa,qBAuBH;AACR,QAAI,OAAOC,MAAP,KAAkB,WAAtB,EAAmC;AAEjCA,YAAM,CAACC,EAAP,GAAY,IAAZ;AACD;AACF;AA5BY,CAAf,E;;ACrBA;AACA;AACA;AAEA;AAEO,IAAMC,0BAAY,GAAGC,YAArB;AACA,IAAMC,+BAAiB,GAAGC,iBAA1B;AACA,IAAMrB,qBAAO,GAAGsB,WAAhB;AACA,IAAMC,aAAa,GAAGC,oBAAtB;AAIQJ,iFAAf,E;;ACbA;AAAA;AAAA;AAAA;AAAwB;AACA;AACT,4FAAG;AACI;;;;;;;;;ACHT;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA,+C;;;;;;;ACJA;AACA;;;;;;;;;ACDa;AACb,8CAA8C,cAAc;AAC5D,wBAAwB,mBAAO,CAAC,MAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,8CAA8C,EAAE;AAChH;AACA;AACA;AACA,gEAAgE,kBAAkB,EAAE;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,wCAAwC,EAAE;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,gFAAgF;AAClI;AACA;AACA,8FAA8F,wBAAwB;AACtH;AACA;AACA,uCAAuC,+EAA+E,EAAE;AACxH,2CAA2C,6HAA6H,EAAE;AAC1K,2CAA2C,6HAA6H,EAAE;AAC1K;AACA;AACA,KAAK;AACL,4CAA4C,iIAAiI,EAAE;AAC/K,4CAA4C,iIAAiI,EAAE;AAC/K,0CAA0C,kHAAkH,EAAE;AAC9J;AACA;AACA,KAAK;AACL,0CAA0C,kHAAkH,EAAE;AAC9J;AACA;AACA,KAAK;AACL,gDAAgD,iGAAiG,EAAE;AACnJ,yDAAyD,2HAA2H,EAAE;AACtL,gDAAgD,gGAAgG,EAAE;AAClJ,yDAAyD,4HAA4H;AACrL;AACA,0C","file":"server.common.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fdatetime_1 = require(\"./fdatetime\");\r\n/**\r\n * formatuje czas do formatu HH:mm:ss\r\n * @param dt data typu Date\r\n */\r\nfunction ftime(dt) {\r\n return fdatetime_1.formatDateFunction['HH:mm:ss'](dt);\r\n // return padNumber(dt.getHours()) + ':' + padNumber(dt.getMinutes()) + ':' + padNumber(dt.getSeconds());\r\n}\r\nexports.default = ftime;\r\n//# sourceMappingURL=ftime.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar validCalcFunction_1 = require(\"../JSchema/validCalcFunction\");\r\nvar fnumber_1 = require(\"../methods/fnumber\");\r\nvar fmoney_1 = require(\"../methods/fmoney\");\r\nfunction anyCalc(schema) {\r\n if (schema.anyCalc !== undefined) {\r\n return schema.anyCalc;\r\n }\r\n if (schema.calc || schema.summary || schema.aggregate) {\r\n Object.defineProperty(schema, 'anyCalc', {\r\n value: true\r\n });\r\n return true;\r\n }\r\n else if (schema.properties) {\r\n for (var key in schema.properties) {\r\n if (schema.properties.hasOwnProperty(key)) {\r\n var isCalc = anyCalc(schema.properties[key]);\r\n if (isCalc) {\r\n Object.defineProperty(schema, 'anyCalc', {\r\n value: true\r\n });\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n else if (schema.items) {\r\n return anyCalc(schema.items);\r\n }\r\n Object.defineProperty(schema, 'anyCalc', {\r\n value: false\r\n });\r\n return false;\r\n}\r\nexports.anyCalc = anyCalc;\r\n// export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\r\nfunction wrapSchemaProps($schema, internal, type, props) {\r\n for (var i = 0; i < props.length; i++) {\r\n var field = props[i];\r\n if (internal.schema[field] !== undefined) {\r\n if (typeof internal.schema[field] !== type) {\r\n wrapSchemaProp($schema, field, internal);\r\n }\r\n else {\r\n $schema[field] = internal.schema[field];\r\n }\r\n }\r\n }\r\n}\r\nexports.wrapSchemaProps = wrapSchemaProps;\r\nfunction wrapSchemaProp($schema, field, internal, func) {\r\n var schema = internal.schema;\r\n internal.needsCalcArgs = true;\r\n var v = schema[field];\r\n delete $schema[field];\r\n // if (self.isSimpleField(v)) {\r\n if (false) {\r\n // console.log(field + ' simplefield:', v);\r\n Object.defineProperty($schema, field, {\r\n enumerable: true,\r\n get: function () {\r\n return this.vm.$options.$ext.$model[v];\r\n }\r\n });\r\n }\r\n else {\r\n // console.log(`create valid function`, field, v, internal.parent);\r\n internal.useComputedModel = true;\r\n if (schema.cache === undefined) {\r\n schema.cache = {};\r\n }\r\n var ff_1 = schema.cache[\"schema_\" + field];\r\n if (ff_1 === undefined) {\r\n ff_1 = validCalcFunction_1.default(v);\r\n // console.log('calc func', ff.toString());\r\n schema.cache[\"schema_\" + field] = ff_1;\r\n }\r\n internal.computed[\"schema_\" + field] = {\r\n get: function () {\r\n // console.log('calc 2', field);\r\n return ff_1.apply(internal.parent, internal.calcargs);\r\n }\r\n };\r\n if (func) {\r\n // func(ff.apply(internal.parent, internal.calcargs));\r\n // internal.watch[`schema_${field}`] = func;\r\n internal.watch['schema_' + field] = {\r\n handler: func,\r\n immediate: true\r\n };\r\n }\r\n // delete $schema[field];\r\n Object.defineProperty($schema, field, {\r\n enumerable: true,\r\n get: function () {\r\n try {\r\n return internal.vm[\"schema_\" + field];\r\n }\r\n catch (_a) {\r\n return undefined;\r\n }\r\n }\r\n });\r\n }\r\n}\r\nexports.wrapSchemaProp = wrapSchemaProp;\r\nvar msgRegex = {\r\n minimum: /\\{\\{minimum\\}\\}/g,\r\n maximum: /\\{\\{maximum\\}\\}/g,\r\n exclusiveMaximum: /\\{\\{exclusiveMaximum\\}\\}/g,\r\n exclusiveMinimum: /\\{\\{exclusiveMinimum\\}\\}/g,\r\n multipleOf: /\\{\\{multipleOf\\}\\}/g,\r\n maxLength: /\\{\\{maxLength\\}\\}/g,\r\n minLength: /\\{\\{minLength\\}\\}/g,\r\n maxItems: /\\{\\{maxItems\\}\\}/g,\r\n minItems: /\\{\\{minItems\\}\\}/g,\r\n pattern: /\\{\\{pattern\\}\\}/g,\r\n format: /\\{\\{format\\}\\}/g,\r\n enum: /\\{\\{enum\\}\\}/g,\r\n title: /\\{\\{title\\}\\}/g,\r\n value: /\\{\\{value\\}\\}/g\r\n};\r\nexports.validationMessages = {\r\n type: 'Nieprawidłowa wartość',\r\n number: 'Pole musi być liczbą',\r\n money: 'Pole musi być liczbą',\r\n integer: 'Pole musi być liczbą całkowitą',\r\n required: 'Pole jest wymagane',\r\n fieldRequired: 'Pole jest wymagane',\r\n minimum: 'Minimalnie {{minimum}}',\r\n maximum: 'Maksymalnie {{maximum}}',\r\n exclusiveMinimum: 'Musi być większe niz {{exclusiveMinimum}}',\r\n exclusiveMaximum: 'Musi być mniejsze niz {{exclusiveMaximum}}',\r\n multipleOf: 'Musi być wielokrotnością {{multipleOf}}',\r\n maxLength: 'Tekst jest zbyt długi, maksymalnie {{maxLength}} znaków',\r\n minLength: 'Tekst jest zbyt krótki, minimalnie {{minLength}} znaków',\r\n maxItems: 'Zbyt dużo elementów, maksymalnie {{maxItems}}',\r\n minItems: 'Za mało elementów, minimalnie {{minItems}}',\r\n enum: 'Nieprawidłowa wartość',\r\n format: 'Nieprawidłowy format',\r\n pattern: 'Nieprawidłowy format'\r\n};\r\nvar mustacheRegex = /{{([a-z.\\[\\]\\s\\?\\\"\\'\\:\\(\\)\\+]*)}}/gmi;\r\nfunction getRuleMessage(schema, rule, value, $schema) {\r\n // let result = rules[rule];\r\n // if (result) return result;\r\n if ($schema === void 0) { $schema = null; }\r\n $schema = $schema || schema;\r\n var msg = schema.validationMessages ? schema.validationMessages[rule] : undefined;\r\n if (msg === undefined) {\r\n if (rule === 'type') {\r\n msg = exports.validationMessages[schema.type];\r\n }\r\n if (msg === undefined) {\r\n msg = exports.validationMessages[rule] || rule;\r\n }\r\n // jeśli na starcie było zdefiniowane jako numer to od razu podmień\r\n if (typeof schema[rule] === 'number') {\r\n // msg = msg.replace(new RegExp(`{{${rule}}}`, 'g'), schema[rule]);\r\n msg = msg.replace(msgRegex[rule] || 'rrr', function () { return (schema[rule] === undefined ? '' : fnumber_1.default(schema[rule])); });\r\n }\r\n // schema.validationMessages[rule] = msg;\r\n }\r\n // zamiana {{maxLength}} na prawdziwą wartość\r\n return msg.replace(mustacheRegex, function (match, matchrule) {\r\n switch (matchrule) {\r\n case 'value': return value;\r\n case 'minimum':\r\n case 'maximum':\r\n case 'exclusiveMinimum':\r\n case 'exclusiveMaximum':\r\n var svalue = $schema[matchrule];\r\n if (svalue !== undefined) {\r\n if (typeof svalue === 'number') {\r\n if (schema.type === 'money') {\r\n return fmoney_1.default(svalue);\r\n }\r\n else {\r\n return fnumber_1.default(svalue);\r\n }\r\n }\r\n if (schema.type === 'string' && schema.format === 'date') {\r\n if (svalue.length >= 10) {\r\n return svalue.substr(8, 2) + \".\" + svalue.substr(5, 2) + \".\" + svalue.substr(0, 4);\r\n }\r\n else {\r\n return svalue;\r\n }\r\n }\r\n return svalue;\r\n }\r\n return '';\r\n default: return $schema[matchrule] || '';\r\n }\r\n });\r\n // msg = msg.replace(msgRegex[rule] || 'rrr', () => ($schema[rule] === undefined ? '' : $schema[rule]));\r\n // return msg.replace(msgRegex.value, value);\r\n}\r\nexports.getRuleMessage = getRuleMessage;\r\nfunction initVue(prop, internal) {\r\n if (internal.needsCalcArgs) {\r\n if (internal.options.external) {\r\n internal.calcargs[4] = internal.options.external;\r\n // console.log('set external', self.external);\r\n }\r\n else {\r\n internal.calcargs[4] = {};\r\n }\r\n internal.calcargs[5] = internal.options.schemaMethods;\r\n internal.calcargs[6] = prop;\r\n internal.calcargs[0] = prop.$root.$model;\r\n var dest = prop.$parent;\r\n if (dest && dest.$parent) {\r\n internal.calcargs[1] = dest.$parent.$model;\r\n if (dest.$parent.$parent) {\r\n internal.calcargs[2] = dest.$parent.$parent.$model;\r\n if (dest.$parent.$parent.$parent) {\r\n internal.calcargs[3] = dest.$parent.$parent.$parent.$model;\r\n }\r\n else {\r\n internal.calcargs[3] = {};\r\n }\r\n }\r\n else {\r\n internal.calcargs[2] = internal.calcargs[3] = {};\r\n }\r\n }\r\n else {\r\n internal.calcargs[1] = internal.calcargs[2] = internal.calcargs[3] = {};\r\n }\r\n }\r\n if (internal.useComputedModel || internal.needsCalcArgs) {\r\n internal.useComputedModel = true;\r\n internal.computed.model = {\r\n get: function () { return prop.getValue(); },\r\n set: function (newValue) { return prop.setValue(newValue); }\r\n };\r\n internal.vm = new internal.options.Vue({\r\n /*\r\n data() {\r\n return internal.reactiveData;\r\n },\r\n */\r\n computed: internal.computed,\r\n watch: internal.watch\r\n // methods: {\r\n // mround,\r\n // },\r\n // $ext: extraData\r\n });\r\n }\r\n else {\r\n // internal.vm = internal.options.Vue.observable(internal.reactiveData);\r\n }\r\n}\r\nexports.initVue = initVue;\r\n//# sourceMappingURL=functions.js.map","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * Porównuje dane uzywając schematu, zwraca CompareResult zawierający wynik porównania i listę róźnic\r\n * @param firstItem pierwszy element do porównania\r\n * @param secondItem drugi element do porównania\r\n */\r\nfunction compareData(schema, firstItem, secondItem, compareArraySize) {\r\n var result = new CompareResult();\r\n _compareData(schema, firstItem, secondItem, '', result, compareArraySize);\r\n return result;\r\n}\r\nexports.default = compareData;\r\nvar CompareResult = /** @class */ (function () {\r\n function CompareResult() {\r\n this.equal = true;\r\n this.diff = [];\r\n }\r\n return CompareResult;\r\n}());\r\nexports.CompareResult = CompareResult;\r\nfunction _compareData(schema, firstItem, secondItem, path, result, compareArraySize) {\r\n if (schema.type === 'object') {\r\n if (typeof firstItem !== 'object') {\r\n firstItem = {};\r\n }\r\n if (typeof secondItem !== 'object') {\r\n secondItem = {};\r\n }\r\n if (schema.properties) {\r\n for (var key in schema.properties) {\r\n if (schema.properties.hasOwnProperty(key)) {\r\n var element = schema.properties[key];\r\n var value1 = firstItem[key];\r\n var value2 = secondItem[key];\r\n _compareData(element, value1, value2, path === '' ? key : path + '.' + key, result, compareArraySize);\r\n }\r\n }\r\n }\r\n }\r\n else if (schema.type === 'array') {\r\n var items = schema.items;\r\n if (items) {\r\n if (!Array.isArray(firstItem)) {\r\n firstItem = [];\r\n }\r\n if (!Array.isArray(secondItem)) {\r\n secondItem = [];\r\n }\r\n // if (Array.isArray(firstItem) && Array.isArray(secondItem)) {\r\n if (firstItem.length !== secondItem.length && compareArraySize) {\r\n result.equal = false;\r\n result.diff.push({\r\n path: path,\r\n type: 'arrayLength',\r\n value: [firstItem.length, secondItem.length],\r\n schema: schema\r\n });\r\n }\r\n var mlength = Math.max(firstItem.length, secondItem.length);\r\n for (var i = 0; i < mlength; i++) {\r\n _compareData(items, firstItem[i], secondItem[i], path + '[' + i + ']', result, compareArraySize);\r\n }\r\n }\r\n // }\r\n }\r\n else {\r\n if (firstItem === undefined && secondItem === undefined) {\r\n return;\r\n }\r\n if (firstItem === undefined || secondItem === undefined) {\r\n result.equal = false;\r\n result.diff.push({\r\n path: path,\r\n type: 'value',\r\n value: [firstItem, secondItem],\r\n schema: schema\r\n });\r\n return;\r\n }\r\n if ('' + firstItem !== '' + secondItem) {\r\n result.equal = false;\r\n result.diff.push({\r\n path: path,\r\n type: 'value',\r\n value: [firstItem, secondItem],\r\n schema: schema\r\n });\r\n return;\r\n }\r\n }\r\n}\r\n//# sourceMappingURL=compareData.js.map","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar schemaMethods_1 = require(\"../schemaMethods\");\r\nexports.defaultOptions = {\r\n Vue: null,\r\n resetOnFocus: true,\r\n dirtyOnInput: false,\r\n dirtyOnBlur: true,\r\n disableCalculations: false,\r\n disableValidations: false,\r\n startDirty: false,\r\n schemaMethods: schemaMethods_1.default,\r\n wrapAll: false,\r\n form: {},\r\n external: {}\r\n};\r\nfunction fixSchemaOptions(options) {\r\n if (options) {\r\n return Object.assign({}, exports.defaultOptions, options);\r\n }\r\n else {\r\n return Object.assign({}, exports.defaultOptions);\r\n }\r\n}\r\nexports.fixSchemaOptions = fixSchemaOptions;\r\n//# sourceMappingURL=IOptions.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * dodaje widoące zera do liczby\r\n * @param value liczba\r\n * @param minLength minimalna, wynikowa długośc tekstu\r\n */\r\nfunction padNumber(value, minLength) {\r\n if (minLength === void 0) { minLength = 2; }\r\n var result = '' + value;\r\n while (result.length < minLength) {\r\n result = '0' + result;\r\n }\r\n return result;\r\n}\r\nexports.default = padNumber;\r\n//# sourceMappingURL=padNumber.js.map","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar precisions = [1, 10, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8];\r\n/**\r\n * zaokrągla liczbę zmiennoprzecinkową uwzględniając przekłamania JS\r\n * @param value liczba\r\n * @param precision do ilu miejsc po przecinku zaokrąglić, domyślnie 2\r\n */\r\nfunction mround(value, precision) {\r\n if (precision === void 0) { precision = 2; }\r\n if (value === undefined) {\r\n return value;\r\n }\r\n // return Number(Math.round(+(`${value}e${precision}`)) + `e-${precision}`);\r\n var nnumber = value * precisions[precision];\r\n if (nnumber % 1 === 0) {\r\n return value;\r\n }\r\n else {\r\n return Math.round(nnumber + 0.0000000000001) / precisions[precision];\r\n }\r\n}\r\nexports.default = mround;\r\n//# sourceMappingURL=mround.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar setData_1 = require(\"./setData\");\r\nvar defaultValue_1 = require(\"./defaultValue\");\r\nfunction fixData(schema, data, Vue) {\r\n var result = 0;\r\n if (schema.type === 'object') {\r\n var props = schema.properties;\r\n for (var key in schema.properties) {\r\n if (props.hasOwnProperty(key)) {\r\n var pschema = props[key];\r\n if (data[key] === undefined) {\r\n setData_1.setDataValue(pschema, data, key, defaultValue_1.default(pschema, true), Vue);\r\n result++;\r\n }\r\n else if (data[key] === null && (pschema.type === 'array' || pschema.type === 'object')) {\r\n setData_1.setDataValue(pschema, data, key, defaultValue_1.default(pschema, true), Vue);\r\n result++;\r\n }\r\n else {\r\n result += fixData(pschema, data[key], Vue);\r\n }\r\n }\r\n }\r\n }\r\n else if (schema.type === 'array') {\r\n var pschema = schema.items;\r\n for (var i = 0; i < data.length; i++) {\r\n var value = data[i];\r\n result += fixData(pschema, value, Vue);\r\n }\r\n }\r\n return result;\r\n}\r\nexports.default = fixData;\r\n//# sourceMappingURL=fixData.js.map","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar formatFunctions_1 = require(\"../formatFunctions\");\r\n/**\r\n * Sprawdza czy tekst jest podanego formatu\r\n * @param format format tekstu\r\n * @param value wartośc do weryfikacji\r\n */\r\nfunction check(format, value) {\r\n return formatFunctions_1.checkFormat(format, value);\r\n}\r\nexports.default = check;\r\n//# sourceMappingURL=check.js.map","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar padNumber_1 = require(\"./methods/padNumber\");\r\n/**\r\n * klasa reprezentująca różnicę czasu\r\n */\r\nvar TimeSpan = /** @class */ (function () {\r\n function TimeSpan(ms, lateDate, earlyDate) {\r\n this.ms = ms;\r\n this.lateDate = lateDate;\r\n this.earlyDate = earlyDate;\r\n }\r\n TimeSpan.diff = function (lateDate, earlyDate) {\r\n try {\r\n var dt1 = new Date(lateDate);\r\n var dt2 = new Date(earlyDate);\r\n return new TimeSpan(dt1.getTime() - dt2.getTime(), dt1, dt2);\r\n }\r\n catch (_a) {\r\n return new TimeSpan(0);\r\n }\r\n };\r\n Object.defineProperty(TimeSpan.prototype, \"totalMiliseconds\", {\r\n /**\r\n * całkowita liczba milisekund\r\n */\r\n get: function () {\r\n return this.ms;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"miliseconds\", {\r\n /**\r\n * ilośc milisekund po odjęciu sekund, minut, godzin i dni\r\n */\r\n get: function () {\r\n return this.ms % 1000;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"totalSeconds\", {\r\n /**\r\n * całkowita liczba sekund = liczba milisekund /1000\r\n */\r\n get: function () {\r\n return this.ms / 1000;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"seconds\", {\r\n /**\r\n * liczba sekund po odjęciu minut, godzin i dni\r\n */\r\n get: function () {\r\n // return this.ms % (1000 * 60);\r\n return Math.trunc((this.totalMinutes % 1) * 60);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"totalMinutes\", {\r\n /**\r\n * całkowita liczba minut\r\n */\r\n get: function () {\r\n return this.ms / 60000 /* 1000 * 60 */;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"minutes\", {\r\n /**\r\n * liczba minut po odjęciu godzin i dni\r\n */\r\n get: function () {\r\n return Math.trunc((this.totalHours % 1) * 60);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"totalHours\", {\r\n /**\r\n * całkowita liczba godzin\r\n */\r\n get: function () {\r\n return this.ms / 3600000 /* 1000 * 60 * 60 */;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"hours\", {\r\n /**\r\n * liczba godzn po odjęciu liczby dni\r\n */\r\n get: function () {\r\n return Math.trunc((this.totalDays % 1) * 24);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"totalDays\", {\r\n /**\r\n * całkowita liczba dni\r\n */\r\n get: function () {\r\n return this.ms / 86400000 /*1000 * 60 * 60 * 24*/;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"days\", {\r\n /**\r\n * liczba dni, wartośc całkowita\r\n */\r\n get: function () {\r\n return Math.trunc(this.totalDays);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TimeSpan.prototype, \"months\", {\r\n /**\r\n * liczba miesięcy, wartośc całkowita\r\n */\r\n get: function () {\r\n if (this.earlyDate && this.lateDate) {\r\n var res = (this.lateDate.getFullYear() - this.earlyDate.getFullYear()) * 12;\r\n res += this.lateDate.getMonth();\r\n res -= this.earlyDate.getMonth();\r\n if (res > 0) {\r\n if (this.lateDate.getDate() < this.earlyDate.getDate()) {\r\n res--;\r\n }\r\n }\r\n else if (res < 0) {\r\n if (this.lateDate.getDate() > this.earlyDate.getDate()) {\r\n res++;\r\n }\r\n }\r\n return res;\r\n }\r\n else {\r\n return Math.trunc(this.days / 30);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * róznica w postaci HH:mm:ss\r\n */\r\n TimeSpan.prototype.toString = function () {\r\n return padNumber_1.default(Math.trunc(this.totalHours), 2)\r\n + ':'\r\n + padNumber_1.default(this.minutes, 2)\r\n + ':'\r\n + padNumber_1.default(this.seconds, 2);\r\n };\r\n return TimeSpan;\r\n}());\r\nexports.default = TimeSpan;\r\n//# sourceMappingURL=TimeSpan.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * Parsowanie tekstowego formatu daty do Date\r\n * @param date data w formacie YYYY-MM-DD lub YYYY-MM-DD HH:mm:ss\r\n */\r\nfunction dateParse(date) {\r\n if (date.length === 10) {\r\n return new Date(date + ' 00:00:00');\r\n }\r\n else {\r\n return new Date(date);\r\n }\r\n}\r\nexports.default = dateParse;\r\n//# sourceMappingURL=dateParse.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\r\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\r\nvar functions_1 = require(\"./functions\");\r\nvar defaultValue_1 = require(\"../JSchema/defaultValue\");\r\nvar setData_1 = require(\"../JSchema/setData\");\r\nvar WrappedPropertyObject = /** @class */ (function (_super) {\r\n __extends(WrappedPropertyObject, _super);\r\n function WrappedPropertyObject(dest, parent, propName, schema, options) {\r\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\r\n var internal = _this._internal;\r\n internal.schemaprops = schema.properties;\r\n internal.cacheProp = {};\r\n var mparent = (internal.mparent = parent[propName]);\r\n functions_1.initVue(_this, _this._internal);\r\n if (internal.schemaprops) {\r\n if (mparent === undefined) {\r\n var defvalue = defaultValue_1.default(schema, true);\r\n options.Vue.set(parent, propName, defvalue);\r\n internal.mparent = mparent = parent[propName];\r\n }\r\n // tworzenie property\r\n var required = schema.required || [];\r\n var _loop_1 = function (key) {\r\n if (internal.schemaprops.hasOwnProperty(key)) {\r\n var element_1 = internal.schemaprops[key];\r\n if ((element_1.fieldRequired === undefined) && (required.indexOf(key) > -1)) {\r\n element_1.fieldRequired = true;\r\n }\r\n // setTimeout(function() {\r\n // self.wrapProperty(obj, mparent, key, element);\r\n // let proptime = (new Date()).getTime();\r\n if (this_1._options.wrapAll) {\r\n var prop = (this_1[key] = new WrappedPropertyCtor_1.default[element_1.type](this_1, mparent, key, element_1, options));\r\n if (this_1.$dirty) {\r\n prop.$dirty = true;\r\n }\r\n }\r\n else {\r\n Object.defineProperty(this_1, key, {\r\n enumerable: true,\r\n get: function () {\r\n var prop = internal.cacheProp[key];\r\n if (prop === undefined) {\r\n prop = internal.cacheProp[key] = new WrappedPropertyCtor_1.default[element_1.type](this, mparent, key, element_1, options);\r\n if (this.$dirty) {\r\n prop.$dirty = true;\r\n }\r\n }\r\n return prop;\r\n }\r\n });\r\n // console.log('prop time 1', key, (new Date()).getTime() - proptime);\r\n // trzeba utworzyć tabele jeśli są undefined w modelu\r\n if (element_1.type === 'array' || mparent[key] === undefined || functions_1.anyCalc(element_1)) {\r\n var prop = internal.cacheProp[key] = new WrappedPropertyCtor_1.default[element_1.type](this_1, mparent, key, element_1, options);\r\n if (this_1.$dirty) {\r\n prop.$dirty = true;\r\n }\r\n }\r\n }\r\n // console.log('prop time', key, (new Date()).getTime() - proptime);\r\n }\r\n };\r\n var this_1 = this;\r\n for (var key in internal.schemaprops) {\r\n _loop_1(key);\r\n }\r\n }\r\n return _this;\r\n }\r\n WrappedPropertyObject.prototype.$setData = function (value, path, fixArraySize) {\r\n // /Vue.set(parent, propName, value);\r\n return setData_1.default(this._internal.schema, this.$model, value, path, 0, this._options.Vue, fixArraySize);\r\n };\r\n WrappedPropertyObject.prototype.$validate = function (value) {\r\n this.$dirty = true;\r\n if (!this.$parent) {\r\n // self.startDirty = true;\r\n this._internal.options.startDirty = true;\r\n }\r\n return null;\r\n /*\r\n if (value === undefined) {\r\n value = mparent;\r\n }\r\n */\r\n };\r\n WrappedPropertyObject.prototype.$validateAll = function (result) {\r\n if (result === undefined) {\r\n result = [];\r\n }\r\n this.$dirty = true;\r\n for (var key in this._internal.schemaprops) {\r\n this[key].$validateAll(result);\r\n }\r\n return result;\r\n };\r\n WrappedPropertyObject.prototype.$reset = function () {\r\n for (var key in this._internal.cacheProp) {\r\n var prop = this._internal.cacheProp[key];\r\n if (prop !== undefined) {\r\n prop.$reset();\r\n }\r\n }\r\n this.$dirty = false;\r\n if (!this.$parent) {\r\n this._internal.options.startDirty = false;\r\n }\r\n this.$error = null;\r\n };\r\n WrappedPropertyObject.prototype.$dirtyList = function (result) {\r\n if (result === undefined) {\r\n result = [];\r\n }\r\n for (var key in this._internal.cacheProp) {\r\n var prop = this._internal.cacheProp[key];\r\n if (prop) {\r\n prop.$dirtyList(result);\r\n }\r\n }\r\n return result;\r\n };\r\n return WrappedPropertyObject;\r\n}(WrappedPropertyBase_1.default));\r\nexports.default = WrappedPropertyObject;\r\nWrappedPropertyCtor_1.default.object = WrappedPropertyObject;\r\n//# sourceMappingURL=WrappedPropertyObject.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar generateGuid_1 = require(\"../methods/generateGuid\");\r\n/**\r\n * Domyślna wartośc na podstawie pól default ze schematu\r\n * @param schema schemat\r\n * @param force czy wymusić domyślne wartości dla kazdego pola:\r\n * * liczba: `0`\r\n * * boolean: `false`\r\n * * string: `\"\"`\r\n *\r\n */\r\nfunction defaultValue(schema, force, defaultNumber) {\r\n if (force === void 0) { force = false; }\r\n if (defaultNumber === void 0) { defaultNumber = null; }\r\n var result = null;\r\n if (schema.type === 'object') {\r\n if (schema.default !== undefined) {\r\n if (schema.default === null) {\r\n return null;\r\n }\r\n else {\r\n return Object.assign({}, schema.default);\r\n }\r\n }\r\n result = {};\r\n var isEmpty = true;\r\n if (schema.properties) {\r\n for (var key in schema.properties) {\r\n if (schema.properties.hasOwnProperty(key)) {\r\n var element = schema.properties[key];\r\n var value = defaultValue(element, force, defaultNumber);\r\n if (value !== undefined) {\r\n result[key] = value;\r\n isEmpty = false;\r\n }\r\n }\r\n }\r\n }\r\n if (!isEmpty || schema.$parent === undefined || force) {\r\n return result;\r\n }\r\n }\r\n else if (schema.type === 'array') {\r\n var minLength = 0;\r\n // let minLength = schema.minItems\r\n if (schema.default !== undefined) {\r\n if (typeof schema.default === 'number') {\r\n minLength = schema.default;\r\n }\r\n else {\r\n return Array.from(schema.default);\r\n }\r\n }\r\n if ((schema.length !== undefined) && (typeof schema.length === 'number')) {\r\n minLength = schema.length;\r\n }\r\n result = [];\r\n var isEmpty = true;\r\n if (schema.items) {\r\n if (minLength) {\r\n for (var i = 0; i < minLength; i++) {\r\n var value = defaultValue(schema.items, force, defaultNumber);\r\n result.push(value);\r\n isEmpty = false;\r\n }\r\n }\r\n else {\r\n /*\r\n const value = defaultValue(schema.items, force);\r\n if (value !== undefined) {\r\n result.push(value);\r\n isEmpty = false;\r\n }\r\n */\r\n }\r\n }\r\n // if (!isEmpty) return result;\r\n if (!isEmpty || schema.$parent === undefined || force) {\r\n return result;\r\n }\r\n }\r\n if (schema.default !== undefined) {\r\n return schema.default;\r\n }\r\n if (force) {\r\n switch (schema.type) {\r\n case 'number':\r\n case 'money':\r\n case 'integer':\r\n return defaultNumber;\r\n case 'boolean':\r\n return false;\r\n case 'string':\r\n switch (schema.format) {\r\n case 'guid':\r\n return generateGuid_1.default();\r\n default:\r\n return '';\r\n }\r\n }\r\n }\r\n // return result;\r\n}\r\nexports.default = defaultValue;\r\n//# sourceMappingURL=defaultValue.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\r\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\r\nvar functions_1 = require(\"./functions\");\r\nvar WrappedPropertyString = /** @class */ (function (_super) {\r\n __extends(WrappedPropertyString, _super);\r\n function WrappedPropertyString(dest, parent, propName, schema, options) {\r\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\r\n // //export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\r\n functions_1.wrapSchemaProps(_this.$schema, _this._internal, 'number', ['maxLength', 'minLength', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum']);\r\n functions_1.initVue(_this, _this._internal);\r\n return _this;\r\n }\r\n WrappedPropertyString.prototype.$validate = function (value) {\r\n if (value === undefined) {\r\n value = this.$model;\r\n }\r\n this.$dirty = true;\r\n var req = this.$schema.fieldRequired;\r\n // console.log('propName.get()', req, svalue);\r\n if (value === '' || value === null) {\r\n if (req) {\r\n return (this.$error = functions_1.getRuleMessage(this._internal.schema, 'required', value, this.$schema));\r\n }\r\n else {\r\n // pustego nie walidujemy\r\n return (this.$error = null);\r\n }\r\n }\r\n return _super.prototype.$validate.call(this, value);\r\n };\r\n WrappedPropertyString.prototype.getValue = function () {\r\n var svalue = this.$model;\r\n // if ($schema.format === 'date-time' && typeof propName === 'number') {\r\n // console.log('gettinf date-time', svalue, parent, JSON.stringify(propName));\r\n // }\r\n // let svalue = obj.$model;\r\n if (this.$dirty) {\r\n this.$validate(svalue);\r\n }\r\n switch (this.$schema.format) {\r\n case 'date':\r\n if (svalue && svalue.length >= 10) {\r\n var nsvalue = svalue.substr(8, 2) + \".\" + svalue.substr(5, 2) + \".\" + svalue.substr(0, 4);\r\n svalue = nsvalue;\r\n }\r\n break;\r\n case 'date-time':\r\n if (svalue && svalue.length >= 10) {\r\n var nsvalue = svalue.substr(8, 2) + \".\" + svalue.substr(5, 2) + \".\" + svalue.substr(0, 4);\r\n if (svalue.length === 19) {\r\n var ntvalue = svalue.substr(11, 8);\r\n // if (ntvalue !== '00:00:00') {\r\n nsvalue += ' ' + ntvalue;\r\n // }\r\n }\r\n // console.log('get date-time', svalue, nsvalue, ntvalue);\r\n svalue = nsvalue;\r\n }\r\n break;\r\n }\r\n return svalue || '';\r\n };\r\n WrappedPropertyString.prototype.setValue = function (newValue) {\r\n if (!this.$dirty && this._options.dirtyOnInput) {\r\n this.$dirty = true;\r\n }\r\n /*\r\n if (newValue === '' || newValue === null) {\r\n if ($schema.fieldRequired) {\r\n vm.error = getRuleMessage(schema, 'required', newValue, $schema);\r\n // console.log('empty required ' + propName, vm.error);\r\n // ok = false;\r\n typeok = false;\r\n }\r\n // newValue = '';\r\n }\r\n */\r\n // check save type\r\n if (this.$schema.format) {\r\n switch (this.$schema.format) {\r\n case 'date':\r\n if (newValue && newValue.length >= 10) {\r\n newValue = newValue.substr(6, 4) + \"-\" + newValue.substr(3, 2) + \"-\" + newValue.substr(0, 2);\r\n // console.log('set date-time', newValue);\r\n }\r\n break;\r\n case 'date-time':\r\n if (newValue && newValue.length >= 10) {\r\n if (newValue.length === 19) {\r\n newValue = newValue.substr(6, 4) + \"-\" + newValue.substr(3, 2) + \"-\" + newValue.substr(0, 2) + \" \" + newValue.substr(11);\r\n }\r\n else {\r\n newValue = newValue.substr(6, 4) + \"-\" + newValue.substr(3, 2) + \"-\" + newValue.substr(0, 2) + \" 00:00:00\";\r\n }\r\n // console.log('set date-time', newValue);\r\n }\r\n break;\r\n }\r\n }\r\n /*\r\n if (!typeok) {\r\n this.stringValue = newValue;\r\n } else {\r\n this.stringValue = null;\r\n }\r\n */\r\n // parent[propName] = newValue;\r\n this.$model = newValue;\r\n if (this.$schema.format === 'date-time') {\r\n // console.log('date parent', parent);\r\n }\r\n };\r\n return WrappedPropertyString;\r\n}(WrappedPropertyBase_1.default));\r\nexports.default = WrappedPropertyString;\r\nWrappedPropertyCtor_1.default.string = WrappedPropertyString;\r\n//# sourceMappingURL=WrappedPropertyString.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar funcParams = \"$root,$parent,$parent2,$parent3,$external,$methods,$obj\";\r\nexports.default = funcParams;\r\n//# sourceMappingURL=funcParams.js.map","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * Obcina początkowe i końcowe spacje w tekscie\r\n * @param text tekst do obcięcia\r\n */\r\nfunction trim(text) {\r\n return (text || '').trim();\r\n}\r\nexports.default = trim;\r\n//# sourceMappingURL=trim.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar ValidationResult_1 = require(\"./ValidationResult\");\r\nvar formatFunctions_1 = require(\"../formatFunctions\");\r\nfunction validateTable(schema, data, path, exitOnFirstError) {\r\n if (path === void 0) { path = ''; }\r\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\r\n var result = [];\r\n if (schema.minLength !== undefined) {\r\n if (data.length < schema.minLength) {\r\n var err = {\r\n validation: 'minLength',\r\n expected: schema.minLength,\r\n value: data.length,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n if (schema.maxLength !== undefined) {\r\n if (data.length > schema.maxLength) {\r\n var err = {\r\n validation: 'maxLength',\r\n expected: schema.maxLength,\r\n value: data.length,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n return exitOnFirstError ? null : result;\r\n}\r\nexports.validateTable = validateTable;\r\nfunction validateField(schema, data, path, exitOnFirstError) {\r\n if (path === void 0) { path = ''; }\r\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\r\n var schemaIsNumber = false;\r\n var dataIsNumber = false;\r\n var result = [];\r\n // console.log(JSON.stringify(schema));\r\n if (schema.type === 'number' || schema.type === 'money') {\r\n schemaIsNumber = true;\r\n if (typeof data !== 'number') {\r\n // result.valid = false;\r\n var err = {\r\n validation: 'type',\r\n expected: schema.type,\r\n value: typeof data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n else {\r\n dataIsNumber = true;\r\n }\r\n }\r\n else if (schema.type === 'int' || schema.type === 'integer') {\r\n schemaIsNumber = true;\r\n if (typeof data !== 'number') {\r\n // result.valid = false;\r\n var err = {\r\n validation: 'type',\r\n expected: schema.type,\r\n value: typeof data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n else {\r\n if (data % 1 !== 0) {\r\n // result.valid = false;\r\n var err = {\r\n validation: 'type',\r\n expected: schema.type,\r\n value: 'float',\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n else {\r\n dataIsNumber = true;\r\n }\r\n }\r\n }\r\n if (schemaIsNumber) {\r\n if (dataIsNumber) {\r\n if (schema.maximum !== undefined) {\r\n if (data > schema.maximum) {\r\n var err = {\r\n validation: 'maximum',\r\n expected: schema.maximum,\r\n value: data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n if (schema.exclusiveMaximum !== undefined) {\r\n if (data >= schema.exclusiveMaximum) {\r\n var err = {\r\n validation: 'exclusiveMaximum',\r\n expected: schema.maximum,\r\n value: data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n if (schema.minimum !== undefined) {\r\n if (data < schema.minimum) {\r\n var err = {\r\n validation: 'minimum',\r\n expected: schema.minimum,\r\n value: data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n if (schema.exclusiveMinimum !== undefined) {\r\n if (data <= schema.exclusiveMinimum) {\r\n var err = {\r\n validation: 'exclusiveMinimum',\r\n expected: schema.minimum,\r\n value: data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n // multipleOf\r\n if (schema.multipleOf !== undefined) {\r\n if (data % schema.multipleOf !== 0) {\r\n var err = {\r\n validation: 'multipleOf',\r\n expected: schema.multipleOf,\r\n value: data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n if (schema.type === 'string') {\r\n if (typeof data !== 'string') {\r\n var err = {\r\n validation: 'type',\r\n expected: schema.type,\r\n value: typeof data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n else {\r\n if (schema.maxLength !== undefined) {\r\n var l = data.length;\r\n if (l > schema.maxLength) {\r\n var err = {\r\n validation: 'maxLength',\r\n expected: schema.maxLength,\r\n value: l,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n if (schema.minLength !== undefined) {\r\n var l = data.length;\r\n if (l < schema.minLength) {\r\n var err = {\r\n validation: 'minLength',\r\n expected: schema.minLength,\r\n value: l,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n // pattern\r\n if (schema.format !== undefined && data) {\r\n var ok = formatFunctions_1.checkFormat(schema.format, data);\r\n if (!ok) {\r\n var err = {\r\n validation: 'format',\r\n expected: schema.format,\r\n value: data,\r\n path: path\r\n };\r\n if (exitOnFirstError) {\r\n return err;\r\n }\r\n result.push(err);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return exitOnFirstError ? null : result;\r\n}\r\nexports.validateField = validateField;\r\nfunction _validate(schema, data, path, exitOnFirstError, result) {\r\n if (schema.type === 'object') {\r\n var required = schema.required || [];\r\n if (schema.properties) {\r\n for (var key in schema.properties) {\r\n // for (let key of schema.$keys) {\r\n if (schema.properties.hasOwnProperty(key)) {\r\n var element = schema.properties[key];\r\n var value = data[key];\r\n if (required.indexOf(key) > -1) {\r\n if (value === undefined\r\n || (element.type === 'string' && !value)\r\n || (element.type === 'integer' && !value)) {\r\n // result.valid = false;\r\n result.errors.push({\r\n validation: 'required',\r\n path: path === '' ? key : path + '.' + key\r\n });\r\n if (exitOnFirstError) {\r\n continue;\r\n }\r\n }\r\n }\r\n if (value !== undefined) {\r\n _validate(element, value, path === '' ? key : path + '.' + key, exitOnFirstError, result);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if (schema.type === 'array') {\r\n if (exitOnFirstError) {\r\n var err = validateTable(schema, data, path, true);\r\n if (err) {\r\n result.errors.push(err);\r\n }\r\n }\r\n else {\r\n var errs = validateTable(schema, data, path, false);\r\n if (errs.length) {\r\n result.errors = result.errors.concat(errs);\r\n }\r\n }\r\n // uniqueItems\r\n // contains\r\n var items = schema.items;\r\n if (items) {\r\n for (var i = 0; i < data.length; i++) {\r\n var res = _validate(items, data[i], path + '[' + i + ']', exitOnFirstError, result);\r\n }\r\n }\r\n }\r\n else {\r\n if (exitOnFirstError) {\r\n var err = validateField(schema, data, path, true);\r\n if (err) {\r\n result.errors.push(err);\r\n }\r\n }\r\n else {\r\n var errs = validateField(schema, data, path, false);\r\n if (errs.length > 0) {\r\n result.errors = result.errors.concat(errs);\r\n }\r\n }\r\n }\r\n}\r\n/**\r\n * Sprawdza poprawnoc danych według schematu i zawartej w nim walidacji\r\n * @param data dane do sprawdzenia\r\n * @param schema gałąź schamtu, gdy pominięto to uzywa glownej\r\n * @param path sciezka startowa pola, przy pominięciu ustawia pustą\r\n */\r\nfunction validate(schema, data, exitOnFirstError, path) {\r\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\r\n if (path === void 0) { path = ''; }\r\n var result = new ValidationResult_1.default();\r\n _validate(schema, data, path || '', exitOnFirstError, result);\r\n if (result.errors.length) {\r\n result.valid = false;\r\n }\r\n return result;\r\n}\r\nexports.default = validate;\r\n//# sourceMappingURL=validate.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar defaultValue_1 = require(\"./defaultValue\");\r\nvar dataValue_1 = require(\"./dataValue\");\r\nvar schemaValue_1 = require(\"./schemaValue\");\r\nvar validate_1 = require(\"./validate\");\r\nvar compareData_1 = require(\"./compareData\");\r\nvar clearData_1 = require(\"./clearData\");\r\nvar setData_1 = require(\"./setData\");\r\nvar fixAndMergeSchema_1 = require(\"./fixAndMergeSchema\");\r\nvar JSchema = /** @class */ (function () {\r\n function JSchema(schema) {\r\n this.schema = {};\r\n // this.schema={};\r\n if (schema) {\r\n this.init(schema);\r\n }\r\n }\r\n /**\r\n * ładowanie schema\r\n * @param schema JSONSchema | string | JSONSchema[] | string[]\r\n */\r\n JSchema.prototype.init = function (schema) {\r\n var schemalist = [];\r\n if (Array.isArray(schema)) {\r\n for (var _i = 0, schema_1 = schema; _i < schema_1.length; _i++) {\r\n var schemaitem = schema_1[_i];\r\n if (typeof schemaitem === 'string') {\r\n schemalist.push(JSON.parse(schemaitem));\r\n }\r\n else {\r\n schemalist.push(schemaitem);\r\n }\r\n }\r\n }\r\n else if (typeof schema === 'string') {\r\n schemalist.push(JSON.parse(schema));\r\n }\r\n else {\r\n schemalist.push(schema);\r\n }\r\n this.schema = fixAndMergeSchema_1.default(schemalist);\r\n };\r\n /**\r\n * Domyślna wartośc na podstawie pól default ze schematu\r\n * @param schemaPath Ściezka schematu dla ktorej zwrocic domyslan wartosc, gdy pominieta zwraca dla pelnego schematu\r\n */\r\n JSchema.prototype.defaultValue = function (force, schemaPath) {\r\n var schema = schemaPath ? this.schemaValue(schemaPath) : this.schema;\r\n if (schema) {\r\n return defaultValue_1.default(schema, force);\r\n }\r\n return null;\r\n };\r\n /**\r\n * Zwraca wartosc pola danych wg sciezki\r\n * @param data Pelne dane\r\n * @param path sciezka w formacie pole.tablica[0].pole2\r\n */\r\n JSchema.prototype.dataValue = function (data, path) {\r\n return dataValue_1.default(this.schema, data, path);\r\n };\r\n /**\r\n * Zwraca czesc schematu na podstawie sciezki\r\n * @param path sciezka w formacie pole.tablica[0].pole2\r\n */\r\n JSchema.prototype.schemaValue = function (path) {\r\n return schemaValue_1.default(this.schema, path);\r\n };\r\n /**\r\n * Sprawdza poprawnoc danych według schematu i zawartej w nim walidacji\r\n * @param data dane do sprawdzenia\r\n * @param schema gałąź schamtu, gdy pominięto to uzywa glownej\r\n * @param path sciezka schamtu, gdy pusta uzywa glownej\r\n */\r\n JSchema.prototype.validate = function (data, exitOnFirstError, schema, path) {\r\n if (exitOnFirstError === void 0) { exitOnFirstError = true; }\r\n if (schema === void 0) { schema = null; }\r\n if (path === void 0) { path = ''; }\r\n var result = validate_1.default(schema || this.schema, data, exitOnFirstError, path || '');\r\n if (result.errors.length) {\r\n result.valid = false;\r\n }\r\n return result;\r\n };\r\n /**\r\n * Porównuje dane uzywając schematu, zwraca CompareResult zawierający wynik porównania i listę róźnic\r\n * @param firstItem pierwszy element do porównania\r\n * @param secondItem drugi element do porównania\r\n */\r\n JSchema.prototype.compareData = function (firstItem, secondItem, compareArraySize) {\r\n return compareData_1.default(this.schema, firstItem, secondItem);\r\n };\r\n /**\r\n * Czyści dane pozostawiając tylko te zgodne ze schematem, nie weryfikuje prostych typów danych\r\n * @param data dane do wyczyszczenia\r\n * @param checkDataType czy sprawdzac poprawnośc typów danych prostych\r\n * (number,integer,boolean, string), domyślnie nie\r\n */\r\n JSchema.prototype.clearData = function (data, checkDataType) {\r\n return clearData_1.default(data, this.schema, checkDataType);\r\n };\r\n JSchema.prototype.setData = function (data, value, path, Vue) {\r\n return setData_1.default(this.schema, data, value, path, 0, Vue);\r\n };\r\n return JSchema;\r\n}());\r\nexports.default = JSchema;\r\n//# sourceMappingURL=JSchema.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fix_parent_1 = require(\"./fix$parent\");\r\nvar funcParams_1 = require(\"./funcParams\");\r\nvar schemaPath_1 = require(\"./schemaPath\");\r\nvar cacheFuncs = {};\r\n/**\r\n * tworzy funkcję obliczającą na podstawie schematu\r\n * @param schema schemat\r\n * @param cache czy używać cache\r\n * @param debug czy dodać debugger, wtedy każde wywołanie funkcji się zatrzymuje\r\n */\r\nfunction calcFunction(schema, cache, debug) {\r\n if (cache === void 0) { cache = true; }\r\n var func = null;\r\n var calc = schema.calc;\r\n if (calc) {\r\n var funcText = schema.calc;\r\n var cacheKey = funcText;\r\n var when = '';\r\n if (calc.when) {\r\n funcText = calc.func;\r\n when = calc.when;\r\n }\r\n if (cache && !debug) {\r\n func = cacheFuncs['calc_' + when + '_' + funcText];\r\n if (func !== undefined) {\r\n return func;\r\n }\r\n }\r\n var stext = fix_parent_1.default(funcText);\r\n var ftext = void 0;\r\n if (debug) {\r\n ftext = \"var result = (\" + stext + \");\\r\\n\";\r\n switch (schema.type) {\r\n case 'integer':\r\n ftext += \"result = $methods.mround(result,0);\\r\\n\";\r\n break;\r\n // case 'money': ftext += 'return Math.round($result);'; break;\r\n case 'money':\r\n ftext += \"result = $methods.mround(result,2);\\r\\n\";\r\n break;\r\n case 'number':\r\n if (schema.precision !== undefined) {\r\n ftext += \"result = $methods.mround(result,\" + schema.precision + \");\\r\\n\";\r\n }\r\n else {\r\n // ftext += `return result;`;\r\n }\r\n break;\r\n default:\r\n // ftext += `return result;`;\r\n break;\r\n }\r\n if (when) {\r\n ftext = \"if (\" + fix_parent_1.default(when) + \") { // when: \" + when + \"\\r\\n\\r\\n\" + ftext + \"return result;\\r\\n\\r\\n}\";\r\n }\r\n else {\r\n ftext += 'return result';\r\n }\r\n // schemaPath\r\n // ftext = 'console.debug($obj.$path);\\r\\ndebugger;\\r\\n' + ftext;\r\n ftext = \"\\r\\n/*** debug only ***/\\r\\n\\\"\" + schemaPath_1.default(schema, true) + \"\\\"; // schema path\\r\\nconsole.debug($obj.$path); // model path\\r\\ndebugger;\\r\\n\\r\\n/*** function body ***/\\r\\n\" + ftext;\r\n // ftext = `\"${schemaPath(schema, true)}\";\\r\\nconsole.debug($obj.$path);\\r\\ndebugger;\\r\\n${ftext}`;\r\n // ftext = '\"' + schemaPath(schema, true) + '\";\\r\\nconsole.debug($obj.$path);\\r\\ndebugger;\\r\\n' + ftext;\r\n }\r\n else {\r\n switch (schema.type) {\r\n case 'integer':\r\n ftext = \"return $methods.mround((\" + stext + \"),0);\\r\\n\";\r\n break;\r\n // case 'money': ftext += 'return Math.round($result);'; break;\r\n case 'money':\r\n ftext = \"return $methods.mround((\" + stext + \"),2);\\r\\n\";\r\n break;\r\n case 'number':\r\n if (schema.precision !== undefined) {\r\n ftext = \"return $methods.mround((\" + stext + \"),\" + schema.precision + \");\\r\\n\";\r\n }\r\n else {\r\n ftext = \"return (\" + stext + \");\";\r\n }\r\n break;\r\n default:\r\n ftext = \"return (\" + stext + \");\";\r\n break;\r\n }\r\n if (when) {\r\n ftext = \"if (\" + fix_parent_1.default(when) + \") {\\r\\n \" + ftext + \"}\";\r\n }\r\n }\r\n if (process.env.NODE_ENV !== 'production') {\r\n ftext = '\"use strict\";\\r\\n' + ftext;\r\n }\r\n func = new Function(funcParams_1.default, ftext);\r\n if (cache && !debug) {\r\n cacheFuncs['calc_' + when + '_' + funcText] = func;\r\n }\r\n }\r\n return func;\r\n}\r\nexports.default = calcFunction;\r\n//# sourceMappingURL=calcFunction.js.map","exports.f = {}.propertyIsEnumerable;\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * zwraca liczbę reprezetującą częśc daty\r\n * @param date data w formacie yyyy-MM-dd HH:mm:ss\r\n * @param part rok:y,yy,yyy,year;\r\n * miesiąc:M,MM,month;\r\n * dzien:d,dd,day;\r\n * godzina:h,hh,hour;\r\n * minuta:m,mm,minute;\r\n * sekunda:s,ss,second;\r\n */\r\nfunction datePart(date, part) {\r\n switch (part) {\r\n case 'y':\r\n case 'yy':\r\n case 'yyyy':\r\n case 'year':\r\n return _getInt(date, 0, 4);\r\n case 'M':\r\n case 'MM':\r\n case 'month':\r\n return _getInt(date, 5, 2);\r\n case 'd':\r\n case 'dd':\r\n case 'day':\r\n return _getInt(date, 8, 2);\r\n case 'h':\r\n case 'hh':\r\n case 'hour':\r\n return _getInt(date, 11, 2);\r\n case 'm':\r\n case 'mm':\r\n case 'minute':\r\n return _getInt(date, 14, 2);\r\n case 's':\r\n case 'ss':\r\n case 'second':\r\n return _getInt(date, 17, 2);\r\n default:\r\n return 0;\r\n }\r\n}\r\nexports.default = datePart;\r\nfunction _getInt(s, start, length) {\r\n if (start < s.length) {\r\n return +s.substr(start, length);\r\n var res = +s.substr(start, length);\r\n if (!isNaN(res)) {\r\n return res;\r\n }\r\n }\r\n return 0;\r\n}\r\n//# sourceMappingURL=datePart.js.map","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * sprawdza czy typ podanej wartości jest zgodny ze schematem\r\n * @param schema schemat\r\n * @param value wartośc do sprawdzenia\r\n */\r\nfunction checkType(schema, value) {\r\n if (value === null) {\r\n return true;\r\n }\r\n switch (schema.type) {\r\n case 'object':\r\n return typeof value === 'object';\r\n case 'array':\r\n return Array.isArray(value);\r\n case 'integer':\r\n case 'number':\r\n case 'money':\r\n if (typeof value !== 'number') {\r\n return false;\r\n }\r\n else if (schema.type === 'integer' && value % 1 !== 0) {\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n case 'string':\r\n return typeof value === 'string';\r\n case 'boolean':\r\n return typeof value === 'boolean';\r\n default:\r\n return false;\r\n }\r\n}\r\nexports.default = checkType;\r\n//# sourceMappingURL=checkType.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fdatetime_1 = require(\"./fdatetime\");\r\n/**\r\n * aktualna data i czas w formacie yyyy-MM-dd HH:mm:ss\r\n */\r\nfunction now() {\r\n return fdatetime_1.default(new Date());\r\n}\r\nexports.default = now;\r\n//# sourceMappingURL=now.js.map","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * generuje guid w formacie xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\r\n */\r\nfunction generateGuid() {\r\n var g = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\r\n return g.replace(/[xy]/g, function (c) {\r\n // tslint:disable-next-line:no-bitwise\r\n var r = (Math.random() * 16) | 0;\r\n // tslint:disable-next-line:no-bitwise\r\n var v = c === 'x' ? r : (r & 0x3) | 0x8;\r\n return v.toString(16);\r\n });\r\n // return g;\r\n}\r\nexports.default = generateGuid;\r\n//# sourceMappingURL=generateGuid.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar functions_1 = require(\"./functions\");\r\nvar defaultValue_1 = require(\"../JSchema/defaultValue\");\r\nvar validFunction_1 = require(\"../JSchema/validFunction\");\r\nvar calcFunction_1 = require(\"../JSchema/calcFunction\");\r\nvar aggregateFunction_1 = require(\"../JSchema/aggregateFunction\");\r\nvar clearData_1 = require(\"../JSchema/clearData\");\r\nvar getValidations_1 = require(\"../JSchema/getValidations\");\r\nvar WrappedPropertyBase = /** @class */ (function () {\r\n function WrappedPropertyBase(dest, parent, propName, schema, options) {\r\n this.$parent = dest;\r\n this.$key = propName;\r\n this.$dirty = undefined;\r\n this._options = options;\r\n var internal = (this._internal = {\r\n vm: null,\r\n options: options,\r\n parent: parent,\r\n schema: schema,\r\n computed: {},\r\n watch: {},\r\n calcargs: [],\r\n reactiveData: undefined,\r\n needsCalcArgs: false,\r\n useComputedModel: false,\r\n vmUserData: null\r\n });\r\n var self = this;\r\n // root\r\n if (dest) {\r\n this.$root = dest.$root;\r\n }\r\n else {\r\n this.$root = this;\r\n }\r\n // create schema\r\n this.$schema = {\r\n type: schema.type\r\n };\r\n if (schema.title !== undefined) {\r\n this.$schema.title = schema.title;\r\n }\r\n if (schema.format !== undefined) {\r\n this.$schema.format = schema.format;\r\n }\r\n // default value\r\n if (parent[propName] === undefined) {\r\n options.Vue.set(parent, propName, defaultValue_1.default(schema, true));\r\n // parent[propName] = defaultValue(schema, true);\r\n // console.log('current value fixed', propName, parent);\r\n }\r\n // wrap schema props;\r\n /*\r\n for (let i = 0; i < wrapSchemaProps.length; i++) {\r\n const field = wrapSchemaProps[i];\r\n if (schema[field] !== undefined) {\r\n if (typeof schema[field] !== 'number') {\r\n wrapSchemaProp(this.$schema, field, internal);\r\n } else {\r\n this.$schema[field] = schema[field];\r\n }\r\n }\r\n }\r\n */\r\n // wrap schema.emun\r\n if (schema.enum !== undefined) {\r\n if (self.$isArrayItem) {\r\n if (!Array.isArray(schema.enum)) {\r\n functions_1.wrapSchemaProp(this.$schema, 'enum', internal, function (newValue) {\r\n if (newValue) {\r\n if (newValue.indexOf(self.$model) === -1) {\r\n options.Vue.nextTick(function () {\r\n self.$removeRow();\r\n });\r\n }\r\n /*\r\n setTimeout(() => {\r\n self.$removeRow();\r\n });\r\n */\r\n }\r\n });\r\n }\r\n else {\r\n this.$schema.enum = schema.enum;\r\n if (this.$schema.enum.indexOf(self.$model) === -1) {\r\n options.Vue.nextTick(function () {\r\n self.$removeRow();\r\n });\r\n /*\r\n setTimeout(() => {\r\n self.$removeRow();\r\n }, 0);\r\n */\r\n }\r\n }\r\n }\r\n else {\r\n if (!Array.isArray(schema.enum)) {\r\n functions_1.wrapSchemaProp(this.$schema, 'enum', internal);\r\n }\r\n else {\r\n this.$schema.enum = schema.enum;\r\n }\r\n }\r\n }\r\n // wrap schema.required\r\n if (schema.required !== undefined && schema.type !== 'object' && (typeof schema.required === 'string' || typeof schema.required === 'boolean')) {\r\n schema.fieldRequired = schema.required;\r\n }\r\n functions_1.wrapSchemaProps(this.$schema, internal, 'boolean', ['fieldRequired']);\r\n /*\r\n if (schema.fieldRequired !== undefined) {\r\n if (typeof schema.fieldRequired !== 'boolean') {\r\n wrapSchemaProp(this, 'fieldRequired', internal, 'boolean');\r\n } else {\r\n this.$schema.fieldRequired = schema.fieldRequired;\r\n }\r\n }\r\n */\r\n // tworzenie funkcji validującej\r\n if (!options.disableValidations && schema.validFunc) {\r\n internal.needsCalcArgs = true;\r\n var validFunc_1 = validFunction_1.default(schema, true, process.env.NODE_ENV === 'development' && schema.debug);\r\n internal.computed.validFunc = {\r\n get: function () {\r\n // var $value=parent[propName];\r\n // const funcvalue = ff(this._data, parent, propName);\r\n var funcvalue = validFunc_1.apply(parent, internal.calcargs);\r\n if (funcvalue === true || funcvalue === undefined) {\r\n return null;\r\n }\r\n if (funcvalue === false) {\r\n return 'validFunc';\r\n }\r\n return funcvalue;\r\n }\r\n };\r\n internal.watch.validFunc = {\r\n handler: function (newValue, oldValue) {\r\n if (self.$dirty) {\r\n self.$validate();\r\n }\r\n },\r\n immediate: false\r\n };\r\n }\r\n if (!self._options.disableCalculations) {\r\n // tworzenie funkcji wyliczjącej wartośc na podstawie innych pól\r\n if (schema.calc) {\r\n this.$dirty = true;\r\n internal.needsCalcArgs = true;\r\n var calcFunc_1 = calcFunction_1.default(schema, true, process.env.NODE_ENV === 'development' && schema.debug);\r\n internal.computed.calc = {\r\n get: function () {\r\n if (process.env.NODE_ENV === 'development') {\r\n try {\r\n var res = calcFunc_1.apply(parent, internal.calcargs);\r\n if ((res === undefined && schema.calc.when === undefined && schema.calc.indexOf('undefined') === -1) || res === NaN) {\r\n console.error('[DEBUG] ERR calc result: ', self.$path, schema.calc, res);\r\n }\r\n return res;\r\n }\r\n catch (err) {\r\n console.error('[DEBUG] ERR calc: ', self.$path, schema.calc, err);\r\n return undefined;\r\n }\r\n }\r\n else {\r\n try {\r\n return calcFunc_1.apply(parent, internal.calcargs);\r\n }\r\n catch (_a) {\r\n return undefined;\r\n }\r\n }\r\n // if (schema.calc ==='this.Dotacja + this.SrodkiWlasne + this.WkladOsobowy + this.WkladRzeczowy + 5')\r\n }\r\n };\r\n internal.watch.calc = {\r\n handler: function (newValue, oldValue) {\r\n if (!self.$dirty && (self._options.dirtyOnBlur || self._options.dirtyOnInput)) {\r\n self.$dirty = true;\r\n }\r\n if (newValue !== undefined) {\r\n self.$setData(newValue, undefined, true);\r\n }\r\n },\r\n immediate: true\r\n };\r\n // computed.calc = calcFunc;\r\n }\r\n // tworzenie funkcji sumującej wartość z tablicy\r\n if (schema.summary) {\r\n schema.aggregate = {\r\n func: 'sum',\r\n array: schema.summary.array,\r\n property: schema.summary.property,\r\n when: schema.summary.when,\r\n if: schema.summary.if,\r\n delay: schema.summary.delay\r\n };\r\n delete schema.summary;\r\n }\r\n // tworzenie funkcji sumującej wartość z tablicy\r\n if (schema.aggregate) {\r\n internal.needsCalcArgs = true;\r\n this.$dirty = true;\r\n var aggregateFunc_1 = aggregateFunction_1.default(schema, true, process.env.NODE_ENV === 'development' && schema.debug);\r\n // if (schema.aggregate.async) {\r\n if (schema.aggregate.delay) {\r\n // if (false) {\r\n setTimeout(function () {\r\n // console.log('delayed create aggregate',obj.$path);\r\n var asyncVm = new internal.options.Vue({\r\n computed: {\r\n aggregate: {\r\n get: function () {\r\n // console.log('delayed run aggregate', obj.$path);\r\n if (process.env.NODE_ENV === 'development') {\r\n var res = aggregateFunc_1.apply(parent, internal.calcargs);\r\n if (res === undefined || res === NaN) {\r\n console.error('ERR aggregate:delay result=', res, propName, schema.calc);\r\n }\r\n return res;\r\n }\r\n else {\r\n return aggregateFunc_1.apply(parent, internal.calcargs);\r\n }\r\n }\r\n }\r\n },\r\n watch: {\r\n aggregate: function (newValue) {\r\n internal.options.Vue.set(parent, propName, newValue);\r\n }\r\n }\r\n });\r\n // this.vueInstances.push(asyncVm);\r\n }, schema.aggregate.delay);\r\n }\r\n else {\r\n internal.computed.aggregate = {\r\n get: function () {\r\n if (process.env.NODE_ENV === 'development') {\r\n try {\r\n var res = aggregateFunc_1.apply(parent, internal.calcargs);\r\n if (res === undefined || res === NaN) {\r\n console.error('[DEBUG] ERR aggregate result: ', self.$path, schema.aggregate, res);\r\n }\r\n return res;\r\n }\r\n catch (err) {\r\n console.error('[DEBUG] ERR aggregate: ', self.$path, schema.aggregate, err);\r\n return undefined;\r\n }\r\n }\r\n else {\r\n try {\r\n return aggregateFunc_1.apply(parent, internal.calcargs);\r\n }\r\n catch (_a) {\r\n return undefined;\r\n }\r\n }\r\n // return aggregateFunc()\r\n }\r\n };\r\n internal.watch.aggregate = {\r\n handler: function (newValue) {\r\n if (!self.$dirty && (self._options.dirtyOnBlur || self._options.dirtyOnInput)) {\r\n self.$dirty = true;\r\n }\r\n // Vue.set(parent, propName, newValue);\r\n if (newValue !== undefined) {\r\n self.$setData(newValue, undefined, true);\r\n }\r\n },\r\n immediate: true\r\n };\r\n }\r\n }\r\n }\r\n /*\r\n if (internal.needsCalcArgs) {\r\n if (options.external) {\r\n internal.calcargs[4] = options.external;\r\n // console.log('set external', self.external);\r\n }\r\n internal.calcargs[5] = options.schemaMethods;\r\n internal.calcargs[6] = this;\r\n \r\n internal.calcargs[0] = this.$root.$model;\r\n if (dest && dest.$parent) {\r\n internal.calcargs[1] = (dest.$parent as IWrappedProperty).$model;\r\n if ((dest.$parent as IWrappedProperty).$parent) {\r\n internal.calcargs[2] = ((dest.$parent as IWrappedProperty).$parent as IWrappedProperty).$model;\r\n if (((dest.$parent as IWrappedProperty).$parent as IWrappedProperty).$parent) {\r\n internal.calcargs[3] = (((dest.$parent as IWrappedProperty).$parent as IWrappedProperty).$parent as IWrappedProperty).$model;\r\n } else {\r\n internal.calcargs[3] = {};\r\n }\r\n } else {\r\n internal.calcargs[2] = internal.calcargs[3] = {};\r\n }\r\n } else {\r\n internal.calcargs[1] = internal.calcargs[2] = internal.calcargs[3] = {};\r\n }\r\n }\r\n */\r\n }\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$model\", {\r\n get: function () {\r\n return this._internal.parent[this.$key];\r\n },\r\n set: function (value) {\r\n this._internal.parent[this.$key] = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$value\", {\r\n /*\r\n public svalueGetFunc(): any {\r\n return this.internal.parent[this.$key];\r\n }\r\n public svalueSetFunc(newValue: any) {\r\n this.internal.parent[this.$key] = newValue;\r\n }\r\n */\r\n get: function () {\r\n if (this._internal.useComputedModel) {\r\n return this._internal.vm.model;\r\n }\r\n else {\r\n return this.getValue();\r\n }\r\n // return this.$model;\r\n // return this.svalueGetFunc();\r\n },\r\n set: function (newValue) {\r\n this.setValue(newValue);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$form\", {\r\n get: function () {\r\n return this._internal.options.form;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$data\", {\r\n get: function () {\r\n if (this._internal.vmUserData === null) {\r\n /*\r\n if (process.env.NODE_ENV === 'development') {\r\n console.log('create $data');\r\n }\r\n */\r\n var userData = {};\r\n this._internal.vmUserData = this._options.Vue.observable({ userData: userData });\r\n }\r\n return this._internal.vmUserData.userData;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$error\", {\r\n /**\r\n * komunikat błędu\r\n */\r\n get: function () {\r\n return this.$getUserData('error', null);\r\n },\r\n set: function (newValue) {\r\n this.$setUserData('error', newValue);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$path\", {\r\n get: function () {\r\n var result = '';\r\n if (this.$parent) {\r\n if (this.$parent.$schema.type === 'array') {\r\n return this.$parent.$path + '[' + this.$key + ']';\r\n }\r\n var ppath = this.$parent.$path;\r\n if (ppath) {\r\n return ppath + '.' + this.$key;\r\n }\r\n else {\r\n return this.$key.toString();\r\n }\r\n }\r\n return '';\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$hasFocus\", {\r\n get: function () {\r\n return this.$getUserData('focused', false);\r\n // return this._internal.reactiveData.focused;\r\n },\r\n set: function (newValue) {\r\n if (newValue) {\r\n this.$setUserData('focused', true);\r\n // this._internal.reactiveData.focused = true;\r\n if (this._internal.options.resetOnFocus) {\r\n this.$reset();\r\n }\r\n }\r\n else {\r\n // if (vm.focused) {\r\n if (true) {\r\n /*\r\n if (typeok) {\r\n this.vm.stringValue = null;\r\n }\r\n */\r\n // this._internal.reactiveData.focused = false;\r\n this.$setUserData('focused', false);\r\n // console.log('$hasFocus', this.$path, newValue, dirty, self.dirtyOnBlur);\r\n if (!this.$dirty && this._options.dirtyOnBlur) {\r\n // dirty = true;\r\n // console.log('validate on blur', obj.$validate());\r\n this.$validate();\r\n }\r\n }\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n WrappedPropertyBase.prototype.$getUserData = function (field, defaultvalue) {\r\n var value = this.$data[field];\r\n if (value === undefined) {\r\n if (defaultvalue === undefined) {\r\n this._options.Vue.set(this._internal.vmUserData, field, null);\r\n }\r\n else {\r\n this._options.Vue.set(this._internal.vmUserData, field, defaultvalue);\r\n }\r\n return this._internal.vmUserData[field];\r\n }\r\n return value;\r\n };\r\n WrappedPropertyBase.prototype.$setUserData = function (field, value) {\r\n this._options.Vue.set(this.$data, field, value);\r\n };\r\n WrappedPropertyBase.prototype.$destroy = function () {\r\n if (this._internal.vm) {\r\n if (this._internal.vm.$destroy) {\r\n this._internal.vm.$destroy();\r\n }\r\n }\r\n };\r\n WrappedPropertyBase.prototype.$reset = function () {\r\n this.$dirty = false;\r\n // this.internal.vm.error = null;\r\n this.$error = null;\r\n };\r\n WrappedPropertyBase.prototype.$dirtyList = function (result) {\r\n if (result === undefined) {\r\n result = [];\r\n }\r\n if (this.$dirty) {\r\n result.push(this);\r\n }\r\n return result;\r\n };\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$title\", {\r\n get: function () {\r\n return this.$schema.title ? this.$schema.title : '';\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n WrappedPropertyBase.prototype.$validate = function (value) {\r\n // let stime = (new Date()).getTime();\r\n if (value === undefined) {\r\n value = this.$model;\r\n }\r\n var funcs = getValidations_1.getValidations(this._internal.schema, true);\r\n for (var _i = 0, funcs_1 = funcs; _i < funcs_1.length; _i++) {\r\n var func = funcs_1[_i];\r\n var result = func(value, this.$schema);\r\n if (result) {\r\n return (this.$error = functions_1.getRuleMessage(this._internal.schema, result, value, this.$schema));\r\n // return result;\r\n }\r\n }\r\n if (this._internal.schema.validFunc) {\r\n if (this._internal.vm && this._internal.vm.validFunc) {\r\n // return this._internal.vm.validFunc;\r\n return (this.$error = functions_1.getRuleMessage(this._internal.schema, this._internal.vm.validFunc, value, this.$schema));\r\n }\r\n }\r\n /*\r\n if (this.$schema.validFunc !== undefined) {\r\n if (this.$schema.validFunc) {\r\n return (this.$error = getRuleMessage(this._internal.schema, this.$schema.validFunc, value, this.$schema));\r\n }\r\n // return (this.internal.vm.error = getRuleMessage(this.internal.schema, this.$schema.validFunc, value, this.$schema));\r\n // return this.$schema.validFunc;\r\n }\r\n */\r\n return this.$error = null;\r\n };\r\n WrappedPropertyBase.prototype.$validateAll = function (result) {\r\n if (result === undefined) {\r\n result = [];\r\n }\r\n if (this.$validate()) {\r\n result.push(this);\r\n }\r\n return result;\r\n };\r\n WrappedPropertyBase.prototype.$setData = function (value, path, fixArraySize) {\r\n this._options.Vue.set(this._internal.parent, this.$key, value);\r\n return true;\r\n // /Vue.set(parent, propName, value);\r\n // return setData(this._internal.schema, this.$model, value, path, 0, this._internal.options.Vue, fixArraySize);\r\n };\r\n WrappedPropertyBase.prototype.$getData = function (checkDataType) {\r\n return clearData_1.default(this._internal.schema, this.$model, checkDataType);\r\n };\r\n Object.defineProperty(WrappedPropertyBase.prototype, \"$isArrayItem\", {\r\n get: function () {\r\n return this.$parent && this.$parent.$schema.type === 'array';\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n // array item\r\n WrappedPropertyBase.prototype.$removeRow = function (index) {\r\n if (this.$isArrayItem) {\r\n return this.$parent.$removeRow(this.$key);\r\n }\r\n return false;\r\n };\r\n WrappedPropertyBase.prototype.$moveUp = function (index) {\r\n if (this.$isArrayItem) {\r\n return this.$parent.$moveUp(this.$key);\r\n }\r\n return false;\r\n };\r\n WrappedPropertyBase.prototype.$moveDown = function (index) {\r\n if (this.$isArrayItem) {\r\n return this.$parent.$moveDown(this.$key);\r\n }\r\n return false;\r\n };\r\n WrappedPropertyBase.prototype.$clearRow = function (index) {\r\n if (this.$isArrayItem) {\r\n return this.$parent.$clearRow(this.$key);\r\n }\r\n return false;\r\n };\r\n WrappedPropertyBase.prototype.getValue = function () {\r\n return this.$model;\r\n };\r\n WrappedPropertyBase.prototype.setValue = function (newValue) {\r\n if (!this.$dirty && this._internal.options.dirtyOnInput) {\r\n this.$dirty = true;\r\n }\r\n this.$model = newValue;\r\n };\r\n return WrappedPropertyBase;\r\n}());\r\nexports.default = WrappedPropertyBase;\r\n//# sourceMappingURL=WrappedPropertyBase.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar JSchema_1 = require(\"./JSchema/JSchema\");\r\nexports.JSchema = JSchema_1.default;\r\nvar schemaMixin_1 = require(\"./schemaMixin\");\r\nexports.schemaMixin = schemaMixin_1.default;\r\nvar schemaMethods_1 = require(\"./schemaMethods\");\r\nexports.schemaMethods = schemaMethods_1.default;\r\n// tslint:disable-next-line: no-var-requires\r\n// const polyfills = require('./polyfills.ts');\r\nvar polyfills = require(\"./polyfills\");\r\nexports.polyfills = polyfills;\r\nvar WrappedProperty_1 = require(\"./WrappedProperty\");\r\nexports.WrappedPropertyCtor = WrappedProperty_1.default;\r\nexports.wrap = WrappedProperty_1.wrap;\r\nvar fixAndMergeSchema_1 = require(\"./JSchema/fixAndMergeSchema\");\r\nexports.fixAndMergeSchema = fixAndMergeSchema_1.default;\r\nexports.default = JSchema_1.default;\r\n//# sourceMappingURL=index.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fdate_1 = require(\"./fdate\");\r\n/**\r\n * dzisiejsza data w dormacie yyyy-MM-dd\r\n */\r\nfunction today() {\r\n return fdate_1.default(new Date());\r\n}\r\nexports.default = today;\r\n//# sourceMappingURL=today.js.map","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\r\nvar WrapperPropertyArrayItemDirect = /** @class */ (function () {\r\n function WrapperPropertyArrayItemDirect(dest, parent, key, schema, options) {\r\n this.$key = key;\r\n this.$item = new WrappedPropertyCtor_1.default[schema.type](dest, parent, key, schema, options);\r\n this._dest = dest;\r\n this._parent = parent;\r\n this._schema = schema;\r\n this._options = options;\r\n }\r\n WrapperPropertyArrayItemDirect.prototype.$clearCache = function () {\r\n this.$item.$destroy();\r\n };\r\n /**\r\n * ustawienie $dirty na false ale tylko wtedy gdy jest pobrane\r\n */\r\n WrapperPropertyArrayItemDirect.prototype.$reset = function () {\r\n this.$item.$reset();\r\n };\r\n /**\r\n *\r\n */\r\n WrapperPropertyArrayItemDirect.prototype.$dirtyList = function (result) {\r\n this.$item.$dirtyList(result);\r\n return result;\r\n };\r\n WrapperPropertyArrayItemDirect.prototype.$destroy = function () {\r\n this.$clearCache();\r\n };\r\n WrapperPropertyArrayItemDirect.prototype.$setKey = function (newKey) {\r\n this.$key = newKey;\r\n this.$item.$key = newKey;\r\n };\r\n return WrapperPropertyArrayItemDirect;\r\n}());\r\nexports.WrapperPropertyArrayItemDirect = WrapperPropertyArrayItemDirect;\r\n//# sourceMappingURL=WrappedPropertyArrayItemDirect.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar padNumber_1 = require(\"./padNumber\");\r\n/**\r\n * formatuje datę i czas do formatu yyyy-MM-dd HH:mm:ss\r\n * @param dt data typu Date\r\n */\r\nfunction fdatetime(dt, format) {\r\n return exports.formatDateFunction[format || 'yyyy-MM-dd HH:mm:ss'](dt);\r\n // return fdate(dt) + ' ' + ftime(dt);\r\n}\r\nexports.default = fdatetime;\r\nexports.monthNames = ['styczeń', 'luty', 'marzec', 'kwiecień', 'maj', 'czerwiec', 'lipiec', 'sierpień', 'wrzesień', 'październik', 'listopad', 'grudzień'];\r\nexports.monthShort = ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'];\r\nexports.dayNames = ['poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota', 'niedziela'];\r\nvar dayNames2 = ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'];\r\nexports.dayShort = ['Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So', 'N'];\r\nvar dayShort2 = ['Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So', 'N'];\r\nexports.formatDateFunction = {\r\n 'dd.MM.yyyy': function (dt) { return padNumber_1.default(dt.getDate()) + '.' + padNumber_1.default(dt.getMonth() + 1) + '.' + dt.getFullYear(); },\r\n 'yyyy-MM-dd': function (dt) { return dt.getFullYear() + '-' + padNumber_1.default(dt.getMonth() + 1) + '-' + padNumber_1.default(dt.getDate()); },\r\n 'MMMM yyyy': function (dt) { return exports.monthNames[dt.getMonth()] + \" \" + dt.getFullYear(); },\r\n 'MMM yyyy': function (dt) { return exports.monthShort[dt.getMonth()] + \" \" + dt.getFullYear(); },\r\n 'dddd': function (dt) { return dayNames2[dt.getDay()]; },\r\n 'ddd': function (dt) { return dayShort2[dt.getDay()]; },\r\n 'dd': function (dt) { return padNumber_1.default(dt.getDate()); },\r\n 'd': function (dt) { return dt.getDate().toString(); },\r\n 'MMMM': function (dt) { return exports.monthNames[dt.getMonth()]; },\r\n 'MMM': function (dt) { return exports.monthShort[dt.getMonth()]; },\r\n 'MM': function (dt) { return padNumber_1.default(dt.getMonth() + 1); },\r\n 'M': function (dt) { return (dt.getMonth() + 1).toString(); },\r\n 'HH': function (dt) { return padNumber_1.default(dt.getHours()); },\r\n 'H': function (dt) { return dt.getHours().toString(); },\r\n 'mm': function (dt) { return padNumber_1.default(dt.getMinutes()); },\r\n 'm': function (dt) { return dt.getMinutes().toString(); },\r\n 'ss': function (dt) { return padNumber_1.default(dt.getSeconds()); },\r\n 's': function (dt) { return dt.getSeconds().toString(); },\r\n 'HH:mm:ss': function (dt) { return padNumber_1.default(dt.getHours()) + \":\" + padNumber_1.default(dt.getMinutes()) + \":\" + padNumber_1.default(dt.getSeconds()); },\r\n 'dd.MM.yyyy HH:mm:ss': function (dt) { return exports.formatDateFunction['dd.MM.yyyy'](dt) + ' ' + exports.formatDateFunction['HH:mm:ss'](dt); },\r\n 'yyyy-MM-dd HH:mm:ss': function (dt) { return exports.formatDateFunction['yyyy-MM-dd'](dt) + ' ' + exports.formatDateFunction['HH:mm:ss'](dt); }\r\n};\r\n//# sourceMappingURL=fdatetime.js.map","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","var core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar defaultValue_1 = require(\"./defaultValue\");\r\nvar checkType_1 = require(\"./checkType\");\r\nfunction setData(schema, data, value, path, pathIndex, Vue, fixArraySize) {\r\n if (pathIndex === void 0) { pathIndex = 0; }\r\n if (path !== undefined) {\r\n if (typeof path === 'string') {\r\n path = path\r\n .replace(/\\[/g, '.')\r\n .replace(/\\]/g, '')\r\n .split('.')\r\n .filter(function (x) { return x; });\r\n pathIndex = 0;\r\n }\r\n var cpath = path[pathIndex];\r\n if (cpath) {\r\n if (schema.type === 'object') {\r\n var dschema = schema.properties[cpath];\r\n if (dschema !== undefined) {\r\n if (dschema.type === 'object' || dschema.type === 'array') {\r\n var data2 = data[cpath];\r\n if (data2 === undefined) {\r\n data2 = defaultValue_1.default(dschema, true);\r\n if (Vue) {\r\n Vue.set(data, cpath, data2);\r\n }\r\n else {\r\n data[cpath] = data2;\r\n }\r\n }\r\n return setData(dschema, data2, value, path, pathIndex + 1, Vue, fixArraySize);\r\n }\r\n else {\r\n return setDataValue(dschema, data, cpath, value, Vue);\r\n }\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n else if (schema.type === 'array') {\r\n var dschema = schema.items;\r\n if (dschema !== undefined) {\r\n var index = parseInt(cpath, 10);\r\n var data2 = data[index];\r\n if (data2 === undefined) {\r\n while (data.length < index + 1) {\r\n data.push(defaultValue_1.default(dschema, true));\r\n }\r\n // data2 = data[index];\r\n }\r\n if (dschema.type === 'array' || dschema.type === 'object') {\r\n return setData(dschema, data[index], value, path, pathIndex + 1, Vue, fixArraySize);\r\n }\r\n else {\r\n return setDataValue(dschema, data, index, value, Vue);\r\n }\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n }\r\n if (schema.type === 'object') {\r\n return setDataObj(schema, data, value, Vue, fixArraySize);\r\n }\r\n else {\r\n return setDataArray(schema, data, value, Vue, fixArraySize);\r\n }\r\n}\r\nexports.default = setData;\r\nfunction setDataValue(schema, parent, key, value, Vue) {\r\n if (checkType_1.default(schema, value)) {\r\n if (Vue) {\r\n Vue.set(parent, key, value);\r\n parent[key] = value;\r\n }\r\n else {\r\n parent[key] = value;\r\n }\r\n return true;\r\n }\r\n return false;\r\n}\r\nexports.setDataValue = setDataValue;\r\nfunction setDataArray(schema, destArray, value, Vue, fixArraySize) {\r\n var sitems = schema.items;\r\n if (fixArraySize) {\r\n while (destArray.length > value.length) {\r\n destArray.splice(destArray.length - 1, 1);\r\n }\r\n }\r\n for (var i = 0; i < value.length; i++) {\r\n var nitem = destArray[i];\r\n if (nitem === undefined) {\r\n nitem = defaultValue_1.default(sitems, true);\r\n if (i > destArray.length - 1) {\r\n destArray.push(nitem);\r\n }\r\n else {\r\n if (Vue) {\r\n Vue.set(destArray, i, nitem);\r\n }\r\n else {\r\n destArray[i] = nitem;\r\n }\r\n }\r\n }\r\n switch (sitems.type) {\r\n case 'object':\r\n setDataObj(sitems, nitem, value[i]);\r\n break;\r\n case 'array':\r\n setDataArray(sitems, nitem, value[i]);\r\n break;\r\n default:\r\n if (i > destArray.length - 1) {\r\n destArray.push(value[i]);\r\n }\r\n else {\r\n if (Vue) {\r\n Vue.set(destArray, i, value[i]);\r\n }\r\n else {\r\n destArray[i] = value[i];\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n return true;\r\n}\r\nfunction setDataObj(schema, parentObject, value, Vue, fixArraySize) {\r\n var props = schema.properties;\r\n for (var key in value) {\r\n if (value.hasOwnProperty(key)) {\r\n var pschema = props[key];\r\n if (pschema !== undefined) {\r\n switch (pschema.type) {\r\n case 'object':\r\n var nparent = parentObject[key];\r\n if (nparent === undefined) {\r\n parentObject[key] = nparent = defaultValue_1.default(pschema);\r\n }\r\n setDataObj(pschema, nparent, value[key], Vue, fixArraySize);\r\n break;\r\n case 'array':\r\n var narray = parentObject[key];\r\n if (narray === undefined) {\r\n parentObject[key] = narray = defaultValue_1.default(pschema);\r\n }\r\n setDataArray(pschema, narray, value[key], Vue, fixArraySize);\r\n break;\r\n default:\r\n setDataValue(pschema, parentObject, key, value[key], Vue);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return true;\r\n}\r\nfunction setDataKey(schema, parent, key, value) {\r\n if (schema.type === 'object') {\r\n if (typeof value === 'object') {\r\n var destobj = parent[key];\r\n if (destobj === undefined) {\r\n parent[key] = destobj = defaultValue_1.default(schema, true);\r\n }\r\n var keys = Object.keys(value);\r\n var props = schema.properties;\r\n var dkeys = Object.keys(props);\r\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\r\n var skey = keys_1[_i];\r\n var dschema = props[skey];\r\n if (dschema !== undefined) {\r\n setData(dschema, destobj, skey, value[skey]);\r\n }\r\n }\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n else if (schema.type === 'array') {\r\n if (Array.isArray(value)) {\r\n var destobj = parent[key];\r\n if (destobj === undefined) {\r\n parent[key] = destobj = defaultValue_1.default(schema, true);\r\n }\r\n var items = schema.items;\r\n for (var i = 0; i < value.length; i++) {\r\n setData(items, destobj, i, value[i]);\r\n }\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n else {\r\n switch (schema.type) {\r\n case 'integer':\r\n case 'number':\r\n case 'money':\r\n if (typeof value === 'number') {\r\n parent[key] = value;\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n case 'string':\r\n if (typeof value === 'string') {\r\n parent[key] = value;\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n case 'boolean':\r\n if (typeof value === 'boolean') {\r\n parent[key] = value;\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n default:\r\n return false;\r\n }\r\n }\r\n}\r\n//# sourceMappingURL=setData.js.map","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nfunction fix$parent(stext) {\r\n if (stext.indexOf('$parent') > -1) {\r\n return stext\r\n .replace(/\\$parent\\.\\$parent\\.\\$parent\\./g, '$parent3.')\r\n .replace(/\\$parent\\.\\$parent\\./g, '$parent2.')\r\n .replace(/\\$parent\\./g, '$parent.');\r\n }\r\n else {\r\n return stext;\r\n }\r\n}\r\nexports.default = fix$parent;\r\n//# sourceMappingURL=fix$parent.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * zwraca maksymalną wartość\r\n * @param values tablica wartości\r\n */\r\nfunction max(values) {\r\n var result = values[0];\r\n var i = values.length;\r\n while (--i > 0) {\r\n if (values[i] > result) {\r\n result = values[i];\r\n }\r\n }\r\n return result;\r\n}\r\nexports.default = max;\r\n//# sourceMappingURL=max.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar mround_1 = require(\"./mround\");\r\nvar precisionsz = ['', '.0', '.00', '.000', '.0000', '.00000', '.000000', '.0000000', '.00000000'];\r\n/**\r\n * formatuje liczbę zmiennoprzecinkową do polskiego formatu\r\n * @param value liczba\r\n * @param precision do ilu miejsc po przecinku zaokrąglić, domyślnie 8\r\n */\r\nfunction fnumber(value, precision) {\r\n if (precision === void 0) { precision = 8; }\r\n if (value === null) {\r\n return '';\r\n }\r\n // const s = value.toFixed(2);\r\n // let s = mround(value, precision).toFixed(precision);\r\n if (value % 1 === 0) {\r\n return value.toString();\r\n }\r\n return mround_1.default(value, precision).toString().replace('.', ',');\r\n}\r\nexports.default = fnumber;\r\n//# sourceMappingURL=fnumber.js.map","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fdatetime_1 = require(\"./fdatetime\");\r\nvar dateParse_1 = require(\"./dateParse\");\r\n/**\r\n * dodaje określoną liczbę jednostek do daty\r\n * @param date data wejściowa\r\n * @param part częśc daty do zmiany\r\n * @param value o lie zwiększyć\r\n */\r\nfunction dateSet(date, part, value) {\r\n var inputDate = dateParse_1.default(date);\r\n var result = new Date(inputDate);\r\n switch (part) {\r\n case 'y':\r\n case 'yy':\r\n case 'yyyy':\r\n case 'year':\r\n result.setFullYear(value);\r\n break;\r\n // return padNumber(datePart('y', date) + value, 4) + date.substr(4);\r\n case 'M':\r\n case 'MM':\r\n case 'month':\r\n result.setMonth(value + 1);\r\n break;\r\n case 'd':\r\n case 'dd':\r\n case 'day':\r\n result.setDate(value);\r\n break;\r\n case 'h':\r\n case 'hh':\r\n case 'hour':\r\n result.setHours(value);\r\n break;\r\n case 'm':\r\n case 'mm':\r\n case 'minute':\r\n result.setMinutes(value);\r\n break;\r\n case 's':\r\n case 'ss':\r\n case 'second':\r\n result.setSeconds(value);\r\n break;\r\n }\r\n if (date.length === 10) {\r\n return fdatetime_1.default(result).replace(' 00:00:00', '');\r\n }\r\n else {\r\n return fdatetime_1.default(result);\r\n }\r\n}\r\nexports.default = dateSet;\r\n//# sourceMappingURL=dateSet.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nfunction getRef(parent, url, root) {\r\n // currentContext = currentContext || this.schema;\r\n var turl = url.split('/');\r\n if (url.startsWith('#/')) {\r\n if (root === undefined) {\r\n // szukaj łażąc po parentach\r\n while (parent.$parent) {\r\n parent = parent.$parent;\r\n }\r\n }\r\n else {\r\n parent = root;\r\n }\r\n }\r\n else {\r\n // coś tam innego\r\n }\r\n // let turl = url.split(\"/\");\r\n var sparent2;\r\n for (var i = 1; i < turl.length; i++) {\r\n sparent2 = parent;\r\n parent = parent[turl[i]];\r\n if (parent === undefined) {\r\n return null;\r\n }\r\n }\r\n return parent;\r\n}\r\nexports.fixSchemaDefaultOptions = {\r\n arrayItemGuidField: null,\r\n model: null\r\n};\r\nvar refRegex = /{{([a-z.\\[\\]\\s\\?\\\"\\'\\:\\(\\)\\+]*)}}/gmi;\r\nfunction fixAndMergeSchema(schemas, options, parent, root, mykey, fixType) {\r\n if (options === void 0) { options = exports.fixSchemaDefaultOptions; }\r\n var props = {};\r\n var result = {};\r\n Object.defineProperty(result, '$key', {\r\n value: mykey || null\r\n });\r\n Object.defineProperty(result, '$parent', {\r\n value: parent || null\r\n });\r\n if ((root === undefined) || (root === null)) {\r\n root = result;\r\n }\r\n var i = 0;\r\n while (i < schemas.length) {\r\n var schema = schemas[i];\r\n // allof\r\n var allOf = schema.allOf;\r\n if (allOf !== undefined) {\r\n var dschemas = [];\r\n // wszystkie schemas do tej pory\r\n for (var ii = 0; ii < i; ii++) {\r\n dschemas.push(schemas[ii]);\r\n }\r\n // moja schema\r\n dschemas.push(schema);\r\n // z allof\r\n for (var ii = 0; ii < allOf.length; ii++) {\r\n dschemas.push(allOf[ii]);\r\n }\r\n // wszystkie pozostałe schemas\r\n for (var ii = i + 1; ii < schemas.length; ii++) {\r\n dschemas.push(schemas[ii]);\r\n }\r\n schemas = dschemas;\r\n schema = schemas[i];\r\n }\r\n // $ref\r\n var $ref = schema.$ref;\r\n if ($ref !== undefined) {\r\n if ($ref.indexOf('{{') > -1) {\r\n $ref = $ref.replace(refRegex, function (match, fielddName) {\r\n if (!options.model) {\r\n return '';\r\n }\r\n var funct = 'with(model) {return ' + fielddName + '}';\r\n var func = new Function('model', funct);\r\n try {\r\n return func(options.model);\r\n }\r\n catch (_a) {\r\n return '';\r\n }\r\n });\r\n }\r\n var refValue = getRef(schema, $ref, root);\r\n if (refValue !== null) {\r\n schemas[i] = schema = refValue;\r\n }\r\n }\r\n for (var _i = 0, _a = Object.keys(schema); _i < _a.length; _i++) {\r\n var key = _a[_i];\r\n if (key === 'allOf') {\r\n continue;\r\n }\r\n var keyvalue = schema[key];\r\n if (keyvalue === null) {\r\n if (i > 0) {\r\n delete props[key];\r\n delete result[key];\r\n }\r\n else {\r\n result[key] = null;\r\n }\r\n }\r\n else {\r\n if (Array.isArray(keyvalue)) {\r\n if (result[key] !== undefined) {\r\n // łącz array\r\n var darray = result[key].slice();\r\n for (var ii = 0; ii < keyvalue.length; ii++) {\r\n var avalue = keyvalue[ii];\r\n if (darray.indexOf(avalue) === -1) {\r\n darray.push(avalue);\r\n }\r\n }\r\n result[key] = darray;\r\n }\r\n else {\r\n result[key] = keyvalue;\r\n }\r\n }\r\n else if (typeof keyvalue === 'object') {\r\n var proparray = props[key];\r\n if (proparray === undefined) {\r\n props[key] = proparray = [keyvalue];\r\n }\r\n else {\r\n proparray.push(keyvalue);\r\n }\r\n }\r\n else {\r\n result[key] = keyvalue;\r\n }\r\n }\r\n }\r\n i++;\r\n }\r\n if ((fixType === true) || (fixType === undefined)) {\r\n if (result.type === undefined) {\r\n if (props.properties !== undefined) {\r\n result.type = 'object';\r\n }\r\n else if (props.items !== undefined) {\r\n result.type = 'array';\r\n }\r\n else {\r\n result.type = 'string';\r\n /*\r\n\r\n if (!((parent) && (parent.type === 'object'))) {\r\n result.type = 'string';\r\n }\r\n */\r\n }\r\n }\r\n else if (result.type === 'int') {\r\n result.type = 'integer';\r\n }\r\n }\r\n // fix guid field in array items\r\n /*\r\n if ((parent && parent.type === 'object') && (parent.$parent && parent.$parent.type === 'array')) {\r\n\r\n }\r\n */\r\n // dołaczanie wszystkich property\r\n // let propsCache: any = {};\r\n var fixChildType = (mykey !== undefined) && (mykey === 'properties');\r\n if (false) {\r\n var newprops = {};\r\n var keys = Object.keys(props);\r\n var _loop_1 = function (key) {\r\n var cached;\r\n newprops[key] = {\r\n enumerable: true,\r\n configurable: true,\r\n get: function () {\r\n if (cached) {\r\n // console.log('schema cached property', key);\r\n return cached;\r\n }\r\n else {\r\n // console.log('schema get property', key);\r\n return (cached = fixAndMergeSchema(props[key], options, result, root, key, fixChildType || (key === 'items')));\r\n }\r\n }\r\n };\r\n };\r\n for (var _b = 0, keys_1 = keys; _b < keys_1.length; _b++) {\r\n var key = keys_1[_b];\r\n _loop_1(key);\r\n }\r\n Object.defineProperties(result, newprops);\r\n }\r\n else {\r\n // const cached2: any = {};\r\n var keys = Object.keys(props);\r\n var _loop_2 = function (key) {\r\n var cached;\r\n Object.defineProperty(result, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: function () {\r\n // delete result[key];\r\n // return result[key] = fixAndMergeSchema(props[key], options, result, root, key, fixChildType || (key === 'items'));\r\n return cached || (cached = fixAndMergeSchema(props[key], options, result, root, key, fixChildType || (key === 'items')));\r\n if (cached) {\r\n // console.log('schema cached property', key);\r\n return cached;\r\n }\r\n else {\r\n // console.log('schema get property', key);\r\n return (cached = fixAndMergeSchema(props[key], options, result, root, key, fixChildType || (key === 'items')));\r\n }\r\n }\r\n });\r\n };\r\n for (var _c = 0, keys_2 = keys; _c < keys_2.length; _c++) {\r\n var key = keys_2[_c];\r\n _loop_2(key);\r\n }\r\n }\r\n if ((result.type === 'object') && ((parent) && (parent.type === 'array') && (options.arrayItemGuidField))) {\r\n var pp_1 = result.properties;\r\n if (pp_1 && pp_1[options.arrayItemGuidField] === undefined) {\r\n var cached_1;\r\n Object.defineProperty(pp_1, options.arrayItemGuidField, {\r\n enumerable: true,\r\n configurable: true,\r\n get: function () {\r\n if (cached_1) {\r\n // console.log('schema cached property', key);\r\n return cached_1;\r\n }\r\n else {\r\n // console.log('schema get property', key);\r\n return (cached_1 = fixAndMergeSchema([{\r\n type: 'string',\r\n format: 'guid'\r\n }], options, pp_1, root, options.arrayItemGuidField, false));\r\n }\r\n }\r\n });\r\n /*\r\n pp[fixSchemaOptions.arrayItemGuidField] = {\r\n type: 'string',\r\n format: 'guid'\r\n };\r\n */\r\n }\r\n }\r\n return result;\r\n}\r\nexports.default = fixAndMergeSchema;\r\n//# sourceMappingURL=fixAndMergeSchema.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar check_1 = require(\"./methods/check\");\r\nvar dateAdd_1 = require(\"./methods/dateAdd\");\r\nvar dateSet_1 = require(\"./methods/dateSet\");\r\nvar dateDiff_1 = require(\"./methods/dateDiff\");\r\nvar datePart_1 = require(\"./methods/datePart\");\r\nvar dateParse_1 = require(\"./methods/dateParse\");\r\nvar generateGuid_1 = require(\"./methods/generateGuid\");\r\nvar trim_1 = require(\"./methods/trim\");\r\nvar fnumber_1 = require(\"./methods/fnumber\");\r\nvar fmoney_1 = require(\"./methods/fmoney\");\r\nvar fdatetime_1 = require(\"./methods/fdatetime\");\r\nvar fdate_1 = require(\"./methods/fdate\");\r\nvar ftime_1 = require(\"./methods/ftime\");\r\nvar listMonths_1 = require(\"./methods/listMonths\");\r\nvar listYears_1 = require(\"./methods/listYears\");\r\nvar min_1 = require(\"./methods/min\");\r\nvar max_1 = require(\"./methods/max\");\r\nvar mround_1 = require(\"./methods/mround\");\r\nvar now_1 = require(\"./methods/now\");\r\nvar nullDefault_1 = require(\"./methods/nullDefault\");\r\nvar padNumber_1 = require(\"./methods/padNumber\");\r\nvar today_1 = require(\"./methods/today\");\r\nexports.default = {\r\n check: check_1.default,\r\n dateAdd: dateAdd_1.default,\r\n dateSet: dateSet_1.default,\r\n dateDiff: dateDiff_1.default,\r\n datePart: datePart_1.default,\r\n dateParse: dateParse_1.default,\r\n generateGuid: generateGuid_1.default,\r\n fdate: fdate_1.default,\r\n fdatetime: fdatetime_1.default,\r\n fnumber: fnumber_1.default,\r\n fmoney: fmoney_1.default,\r\n ftime: ftime_1.default,\r\n listMonths: listMonths_1.default,\r\n listYears: listYears_1.default,\r\n min: min_1.default,\r\n max: max_1.default,\r\n mround: mround_1.default,\r\n now: now_1.default,\r\n nullDefault: nullDefault_1.default,\r\n padNumber: padNumber_1.default,\r\n today: today_1.default,\r\n trim: trim_1.default\r\n};\r\n/*\r\nexport default {\r\n mround,\r\n min,\r\n max,\r\n nullDefault,\r\n fmoney,\r\n fdate,\r\n ftime,\r\n fdatetime,\r\n padNumber,\r\n datePart,\r\n\r\n dateAdd,\r\n dateDiff: TimeSpan.diff,\r\n today: () => fdate(new Date()),\r\n now: () => fdatetime(new Date()),\r\n guid: generateGuid,\r\n check: (format: string, value: string): boolean => checkFormat(format, value),\r\n checkFormat,\r\n};\r\n*/\r\n//# sourceMappingURL=schemaMethods.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nfunction schemaPath(obj, typeonly) {\r\n var key = obj.$key;\r\n if (obj.$parent) {\r\n var res = schemaPath(obj.$parent, typeonly);\r\n if (typeonly && ((obj.type === undefined) || (obj.type === 'object') && (obj.$parent) && (obj.$parent.type === 'array'))) {\r\n return res;\r\n }\r\n else {\r\n if (typeonly && obj.type === 'array') {\r\n key += '[]';\r\n }\r\n }\r\n if (res === '') {\r\n return key;\r\n }\r\n else {\r\n return res + '.' + key;\r\n }\r\n }\r\n else {\r\n if (typeonly && obj.type === undefined) {\r\n return '';\r\n }\r\n if (key) {\r\n return key;\r\n }\r\n else {\r\n return '';\r\n }\r\n }\r\n}\r\nexports.default = schemaPath;\r\n//# sourceMappingURL=schemaPath.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar checkType_1 = require(\"./checkType\");\r\n/**\r\n * zwraca wyczyszczone dane, tylko te któ®e są zgodne ze schematem\r\n * @param schema schemat\r\n * @param data dane wejściowe\r\n * @param checkDataType czy sprawdzać\r\n */\r\nfunction clearData(schema, data, checkDataType) {\r\n if (schema.computed) {\r\n return undefined;\r\n }\r\n if (schema.type === 'object') {\r\n if (typeof data !== 'object') {\r\n return undefined;\r\n }\r\n var result = {};\r\n var props = schema.properties;\r\n if (props) {\r\n for (var key in props) {\r\n if (props.hasOwnProperty(key)) {\r\n var value = data[key];\r\n var element = props[key];\r\n if (value !== undefined) {\r\n var nvalue = clearData(element, value, checkDataType);\r\n if (nvalue !== undefined) {\r\n result[key] = nvalue;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return result;\r\n }\r\n else if (schema.type === 'array') {\r\n if (Array.isArray(data)) {\r\n var result = [];\r\n var items = schema.items;\r\n for (var i = 0; i < data.length; i++) {\r\n var nvalue = clearData(items, data[i], checkDataType);\r\n if (nvalue !== undefined) {\r\n result.push(nvalue);\r\n }\r\n }\r\n return result;\r\n }\r\n else {\r\n return undefined;\r\n }\r\n }\r\n else {\r\n // na razie nie sprawdzamy typów danych\r\n if (Array.isArray(data)) {\r\n return undefined;\r\n }\r\n if (typeof data === 'object') {\r\n return undefined;\r\n }\r\n if (checkDataType && !checkType_1.default(schema, data)) {\r\n return undefined;\r\n }\r\n return data;\r\n }\r\n}\r\nexports.default = clearData;\r\n//# sourceMappingURL=clearData.js.map","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * zwraca minimalną wartość\r\n * @param values tablica wartości\r\n */\r\nfunction min(values) {\r\n var result = values[0];\r\n var i = values.length;\r\n while (--i > 0) {\r\n if (values[i] < result) {\r\n result = values[i];\r\n }\r\n }\r\n return result;\r\n}\r\nexports.default = min;\r\n//# sourceMappingURL=min.js.map","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar formatFunctions = {\r\n patterns: {\r\n DATE: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/,\r\n // DATET: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)((t|T|\\s)(\\d\\d:\\d\\d:\\d\\d))?$/,\r\n DATE0: /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)([t|T|\\s](00:00:00))?$/,\r\n DAYS: [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\r\n TIME: /^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d:\\d\\d)?$/i,\r\n HOSTNAME: /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*$/i,\r\n // tslint:disable-next-line: max-line-length\r\n URI: /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,\r\n // tslint:disable-next-line: max-line-length\r\n URIREF: /^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,\r\n // uri-template: https://tools.ietf.org/html/rfc6570\r\n // tslint:disable-next-line: max-line-length\r\n URITEMPLATE: /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,\r\n // For the source: https://gist.github.com/dperini/729294\r\n // For test cases: https://mathiasbynens.be/demo/url-regex\r\n // tslint:disable-next-line: max-line-length\r\n // @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983.\r\n // tslint:disable-next-line: max-line-length\r\n // var URL = /^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu;\r\n // tslint:disable-next-line: max-line-length\r\n URL: /^(?:(?:http[s\\u017F]?|ftp):\\/\\/)(?:(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+(?::(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?@)?(?:(?!10(?:\\.[0-9]{1,3}){3})(?!127(?:\\.[0-9]{1,3}){3})(?!169\\.254(?:\\.[0-9]{1,3}){2})(?!192\\.168(?:\\.[0-9]{1,3}){2})(?!172\\.(?:1[6-9]|2[0-9]|3[01])(?:\\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)(?:\\.(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)*(?:\\.(?:(?:[KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\\/(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?$/i,\r\n UUID: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,\r\n JSON_POINTER: /^(?:\\/(?:[^~/]|~0|~1)*)*$/,\r\n JSON_POINTER_URI_FRAGMENT: /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,\r\n RELATIVE_JSON_POINTER: /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,\r\n // tslint:disable-next-line: max-line-length\r\n EMAIL_SIMPLE: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\r\n // tslint:disable-next-line: max-line-length\r\n EMAIL: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\r\n // tslint:disable-next-line: max-line-length\r\n // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\r\n // tslint:disable-next-line: max-line-length\r\n IPv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\r\n // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses\r\n // tslint:disable-next-line: max-line-length\r\n IPv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(?:%.+)?\\s*$/i,\r\n KODPOCZTOWY: /^[0-9]{2}-[0-9]{3}$/,\r\n NUMERIC: /^\\d+$/,\r\n PHONE: /^\\d{9}$/,\r\n PHONE9: /^\\d{9}$/,\r\n NOT_URI_FRAGMENT: /\\/|:/,\r\n DATE_TIME_SEPARATOR: /t|\\s/i,\r\n Z_ANCHOR: /[^\\\\]\\\\Z/,\r\n GUID: /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i\r\n },\r\n isLeapYear: function (year) { return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); },\r\n date: function (str) {\r\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\r\n /*\r\n const matches = str\r\n .replace('T00:00:00', '')\r\n .replace(' 00:00:00', '')\r\n .match(formatFunctions.patterns.DATE);\r\n */\r\n // dopuszcony jest zerowy czas\r\n var matches = str.match(formatFunctions.patterns.DATE0);\r\n if (!matches) {\r\n return false;\r\n }\r\n var year = +matches[1];\r\n var month = +matches[2];\r\n var day = +matches[3];\r\n return month >= 1\r\n && month <= 12\r\n && day >= 1\r\n && day <= (month === 2 && formatFunctions.isLeapYear(year) ? 29 : formatFunctions.patterns.DAYS[month]);\r\n },\r\n time: function (str, full) {\r\n var matches = str.match(formatFunctions.patterns.TIME);\r\n if (!matches) {\r\n return false;\r\n }\r\n var hour = Number(matches[1]);\r\n var minute = Number(matches[2]);\r\n var second = Number(matches[3]);\r\n var timeZone = matches[5];\r\n return ((hour <= 23 && minute <= 59 && second <= 59)\r\n || (hour === 23 && minute === 59 && second === 60))\r\n && (!full || timeZone !== '');\r\n },\r\n kod: function (str) { return formatFunctions.patterns.KODPOCZTOWY.test(str); },\r\n date_time: function (str) {\r\n // http://tools.ietf.org/html/rfc3339#section-5.6\r\n var dateTime = str.split(formatFunctions.patterns.DATE_TIME_SEPARATOR);\r\n return dateTime.length === 2 && formatFunctions.date(dateTime[0]) && formatFunctions.time(dateTime[1], true);\r\n },\r\n hostname: function (str) { return str.length <= 255 && formatFunctions.patterns.HOSTNAME.test(str); },\r\n uri: function (str) { return formatFunctions.patterns.NOT_URI_FRAGMENT.test(str) && formatFunctions.patterns.URI.test(str); },\r\n url: function (str) { return formatFunctions.patterns.URL.test(str); },\r\n uuid: function (str) { return formatFunctions.patterns.UUID.test(str); },\r\n ipv4: function (str) { return formatFunctions.patterns.IPv4.test(str); },\r\n ipv6: function (str) { return formatFunctions.patterns.IPv6.test(str); },\r\n regex: function (str) {\r\n if (formatFunctions.patterns.Z_ANCHOR.test(str)) {\r\n return false;\r\n }\r\n try {\r\n // new RegExp(str);\r\n return new RegExp(str) !== null;\r\n }\r\n catch (e) {\r\n return false;\r\n }\r\n },\r\n // NIPWEIGHTS: [6, 5, 7, 2, 3, 4, 5, 6, 7],\r\n nip: function (str) {\r\n var weights = [6, 5, 7, 2, 3, 4, 5, 6, 7];\r\n str = str.replace(/[\\s-]/g, '');\r\n if (str.length === 10) {\r\n var sum = 0;\r\n for (var i = 0; i < 9; i++) {\r\n var val = Number(str[i]);\r\n if (!isNaN(val)) {\r\n sum += val * weights[i];\r\n }\r\n }\r\n return sum % 11 === Number(str[9]);\r\n }\r\n return false;\r\n },\r\n pesel: function (str) {\r\n var weights = [9, 7, 3, 1, 9, 7, 3, 1, 9, 7];\r\n str = str.replace(/[\\s-]/g, '');\r\n if (str.length === 11) {\r\n var sum = 0;\r\n for (var i = 0; i < 10; i++) {\r\n var val = Number(str[i]);\r\n if (!isNaN(val)) {\r\n sum += val * weights[i];\r\n }\r\n }\r\n return sum % 10 === Number(str[10]);\r\n }\r\n return false;\r\n },\r\n regon: function (str) { return (str.length === 9 ? formatFunctions.regon9(str) : formatFunctions.regon14(str)); },\r\n regon9: function (str) {\r\n var weights = [8, 9, 2, 3, 4, 5, 6, 7];\r\n // if ((regon.length == 9) && (parseInt(regon, 9) > 0)) {\r\n if (str.length === 9) {\r\n var sum = 0;\r\n for (var i = 0; i < 8; i++) {\r\n var val = Number(str[i]);\r\n if (!isNaN(val)) {\r\n sum += val * weights[i];\r\n }\r\n }\r\n var mod = sum % 11;\r\n if (mod === 10) {\r\n mod = 0;\r\n }\r\n return mod === Number(str[8]);\r\n }\r\n return false;\r\n },\r\n regon14: function (str) {\r\n var weights = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8];\r\n // if ((regon.length == 14) && (parseInt(regon, 14) > 0)) {\r\n if (str.length === 14) {\r\n // czy regon konczy sie na 5 zer ? jesli tak to sprawdz go jako 9 elementowy\r\n if (str.endsWith('00000')) {\r\n return formatFunctions.regon9(str.substr(0, 9));\r\n }\r\n var sum = 0;\r\n for (var i = 0; i < 13; i++) {\r\n var val = Number(str[i]);\r\n if (!isNaN(val)) {\r\n sum += val * weights[i];\r\n }\r\n }\r\n var mod = sum % 11;\r\n if (mod === 10) {\r\n mod = 0;\r\n }\r\n return mod === Number(str[13]);\r\n }\r\n return false;\r\n },\r\n iban: function (str) {\r\n if (str === '00000000000000000000000000') {\r\n return true;\r\n }\r\n str = str.replace(/[^0-9]+/g, '');\r\n var weights = new Array(1, 10, 3, 30, 9, 90, 27, 76, 81, 34, 49, 5, 50, 15, 53, 45, 62, 38, 89, 17, 73, 51, 25, 56, 75, 71, 31, 19, 93, 57);\r\n if (str.length === 26) {\r\n str = str + '2521';\r\n str = str.substr(2) + str.substr(0, 2);\r\n var Z = 0;\r\n for (var i = 0; i < 30; i++) {\r\n Z += Number(str[29 - i]) * weights[i];\r\n }\r\n if (Z % 97 === 1) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n else {\r\n return false;\r\n }\r\n },\r\n dowod: function (str) {\r\n str = str.replace(/[\\s-]/g, '');\r\n // var numer = value.trim().replace(\" \", \"\").replace(\"-\", \"\");\r\n // Check length\r\n if (str == null || str.length !== 9) {\r\n return false;\r\n }\r\n str = str.toUpperCase();\r\n var letterValues = [\r\n '0',\r\n '1',\r\n '2',\r\n '3',\r\n '4',\r\n '5',\r\n '6',\r\n '7',\r\n '8',\r\n '9',\r\n 'A',\r\n 'B',\r\n 'C',\r\n 'D',\r\n 'E',\r\n 'F',\r\n 'G',\r\n 'H',\r\n 'I',\r\n 'J',\r\n 'K',\r\n 'L',\r\n 'M',\r\n 'N',\r\n 'O',\r\n 'P',\r\n 'Q',\r\n 'R',\r\n 'S',\r\n 'T',\r\n 'U',\r\n 'V',\r\n 'W',\r\n 'X',\r\n 'Y',\r\n 'Z'\r\n ];\r\n function getLetterValue(letter) {\r\n return letterValues.indexOf(letter);\r\n // for (let j = 0; j < letterValues.length; j++)\r\n // if (letter == letterValues[j])\r\n // return j;\r\n // return -1;\r\n }\r\n // Check seria\r\n for (var i = 0; i < 3; i++) {\r\n if (getLetterValue(str[i]) < 10) {\r\n return false;\r\n }\r\n }\r\n // Check number\r\n for (var i = 3; i < 9; i++) {\r\n var glv = getLetterValue(str[i]);\r\n if (glv < 0 || glv > 9) {\r\n return false;\r\n }\r\n }\r\n // sprawdz cyfre controlna\r\n var sum = 7 * getLetterValue(str[0]) +\r\n 3 * getLetterValue(str[1]) +\r\n 1 * getLetterValue(str[2]) +\r\n 7 * getLetterValue(str[4]) +\r\n 3 * getLetterValue(str[5]) +\r\n 1 * getLetterValue(str[6]) +\r\n 7 * getLetterValue(str[7]) +\r\n 3 * getLetterValue(str[8]);\r\n sum %= 10;\r\n if (sum !== getLetterValue(str[3])) {\r\n return false;\r\n }\r\n return true;\r\n },\r\n email: function (str) { return formatFunctions.patterns.EMAIL.test(str); },\r\n guid: function (str) { return formatFunctions.patterns.GUID.test(str); },\r\n numeric: function (str) { return formatFunctions.patterns.NUMERIC.test(str); },\r\n phone9: function (str) { return formatFunctions.patterns.PHONE9.test(str); },\r\n phone: function (str) { return formatFunctions.patterns.PHONE.test(str); }\r\n};\r\nfunction checkFormat(format, data) {\r\n return checkFormatFunction(format)(data);\r\n}\r\nexports.checkFormat = checkFormat;\r\nfunction checkFormatFunction(format) {\r\n switch (format) {\r\n case 'date-time':\r\n return formatFunctions.date_time;\r\n case 'nrb':\r\n return formatFunctions.iban;\r\n case 'kodpocztowy':\r\n return formatFunctions.kod;\r\n case 'email':\r\n case 'date':\r\n case 'time':\r\n case 'uri':\r\n case 'url':\r\n case 'uuid':\r\n case 'hostname':\r\n case 'ipv4':\r\n case 'ipv6':\r\n case 'nip':\r\n case 'regon':\r\n case 'pesel':\r\n case 'iban':\r\n case 'phone':\r\n case 'phone9':\r\n case 'regon9':\r\n case 'regon14':\r\n case 'dowod':\r\n case 'kod':\r\n case 'numeric':\r\n return formatFunctions[format];\r\n default:\r\n return function (str) { return true; };\r\n }\r\n}\r\nexports.checkFormatFunction = checkFormatFunction;\r\nexports.default = formatFunctions;\r\n//# sourceMappingURL=formatFunctions.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\r\nvar WrappedPropertyArray_1 = require(\"./WrappedPropertyArray\");\r\nexports.WrappedPropertyArray = WrappedPropertyArray_1.default;\r\nvar WrappedPropertyObject_1 = require(\"./WrappedPropertyObject\");\r\nexports.WrappedPropertyObject = WrappedPropertyObject_1.default;\r\nvar WrappedPropertyNumber_1 = require(\"./WrappedPropertyNumber\");\r\nexports.WrappedPropertyNumber = WrappedPropertyNumber_1.default;\r\nvar WrappedPropertyString_1 = require(\"./WrappedPropertyString\");\r\nexports.WrappedPropertyString = WrappedPropertyString_1.default;\r\nvar WrappedPropertyBoolean_1 = require(\"./WrappedPropertyBoolean\");\r\nexports.WrappedPropertyBoolean = WrappedPropertyBoolean_1.default;\r\nvar IOptions_1 = require(\"./IOptions\");\r\nvar fixAndMergeSchema_1 = require(\"../JSchema/fixAndMergeSchema\");\r\nfunction wrap(parent, schema, propName, options) {\r\n // console.log('wrap');\r\n // napraw schema, rozwią refs i dodaj $parent\r\n var stime = new Date().getTime();\r\n // console.log('fixSchema', new Date().getTime() - stime);\r\n // czy schema było naprawioane czy nie\r\n if (Array.isArray(schema)) {\r\n schema = fixAndMergeSchema_1.default(schema);\r\n }\r\n else if (schema.$parent === undefined) {\r\n schema = fixAndMergeSchema_1.default([schema]);\r\n }\r\n // this.calcFunctions = [];\r\n // this.summaryFunctions = [];\r\n var mainprop;\r\n if (propName) {\r\n if (parent[propName].__ob__ === undefined && options.Vue) {\r\n options.Vue.observable(parent.propName);\r\n }\r\n mainprop = new WrappedPropertyObject_1.default(null, parent, propName, schema, IOptions_1.fixSchemaOptions(options));\r\n }\r\n else {\r\n var data = { model: parent };\r\n if (data.model.__ob__ === undefined && options.Vue) {\r\n options.Vue.observable(data.model);\r\n }\r\n mainprop = new WrappedPropertyObject_1.default(null, data, 'model', schema, IOptions_1.fixSchemaOptions(options));\r\n }\r\n return mainprop;\r\n}\r\nexports.wrap = wrap;\r\nexports.default = WrappedPropertyCtor_1.default;\r\n//# sourceMappingURL=index.js.map","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar TimeSpan_1 = require(\"../TimeSpan\");\r\n/**\r\n * Oblicza różnicę pomiędzy datami\r\n * @param lateDate data późniejsza\r\n * @param earlyDate data wcześniejsza\r\n */\r\nfunction dateDiff(lateDate, earlyDate) {\r\n return TimeSpan_1.default.diff(lateDate, earlyDate);\r\n}\r\nexports.default = dateDiff;\r\n//# sourceMappingURL=dateDiff.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * Zwraca czesc schematu na podstawie sciezki\r\n * @param path sciezka w formacie pole.tablica[0].pole2\r\n */\r\nfunction schemaValue(schema, path) {\r\n var tpath = path\r\n .replace(/\\[/g, '.')\r\n .replace(/\\]/g, '')\r\n .split('.');\r\n return _schemaValue(tpath, 0, schema);\r\n}\r\nexports.default = schemaValue;\r\nfunction _schemaValue(path, pindex, schema) {\r\n var prop = path[pindex];\r\n if (prop === '') {\r\n if (pindex === path.length - 1) {\r\n return null;\r\n }\r\n else {\r\n return _schemaValue(path, pindex + 1, schema);\r\n }\r\n }\r\n if (schema.type === 'object' && schema.properties) {\r\n var schitem = schema.properties[prop];\r\n if (schitem === undefined) {\r\n return null;\r\n }\r\n if (pindex === path.length - 1) {\r\n return schitem;\r\n }\r\n else {\r\n return _schemaValue(path, pindex + 1, schitem);\r\n }\r\n }\r\n else if (schema.type === 'array' && schema.items) {\r\n var schitem = schema.items;\r\n if (schitem === undefined) {\r\n return null;\r\n }\r\n if (pindex === path.length - 1) {\r\n return schitem;\r\n }\r\n else {\r\n return _schemaValue(path, pindex + 1, schitem);\r\n }\r\n }\r\n else {\r\n return null;\r\n }\r\n}\r\n//# sourceMappingURL=schemaValue.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fdatetime_1 = require(\"./fdatetime\");\r\nvar dateParse_1 = require(\"./dateParse\");\r\n/**\r\n * dodaje określoną liczbę jednostek do daty\r\n * @param date data wejściowa\r\n * @param part częśc daty do zmiany y M d h m s\r\n * @param value o lie zwiększyć\r\n */\r\nfunction dateAdd(date, part, value) {\r\n var inputDate = dateParse_1.default(date);\r\n var result = new Date(inputDate);\r\n switch (part) {\r\n case 'y':\r\n case 'yy':\r\n case 'yyyy':\r\n case 'year':\r\n result.setFullYear(inputDate.getFullYear() + value);\r\n break;\r\n // return padNumber(datePart('y', date) + value, 4) + date.substr(4);\r\n case 'M':\r\n case 'MM':\r\n case 'month':\r\n result.setMonth(inputDate.getMonth() + value);\r\n break;\r\n case 'd':\r\n case 'dd':\r\n case 'day':\r\n result.setDate(inputDate.getDate() + value);\r\n break;\r\n case 'h':\r\n case 'hh':\r\n case 'hour':\r\n result.setHours(inputDate.getHours() + value);\r\n break;\r\n case 'm':\r\n case 'mm':\r\n case 'minute':\r\n result.setMinutes(inputDate.getMinutes() + value);\r\n break;\r\n case 's':\r\n case 'ss':\r\n case 'second':\r\n result.setSeconds(inputDate.getSeconds() + value);\r\n break;\r\n }\r\n if (date.length === 10) {\r\n return fdatetime_1.default(result).replace(' 00:00:00', '');\r\n }\r\n else {\r\n return fdatetime_1.default(result);\r\n }\r\n}\r\nexports.default = dateAdd;\r\n//# sourceMappingURL=dateAdd.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\r\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\r\nvar functions_1 = require(\"./functions\");\r\nvar WrappedPropertyBoolean = /** @class */ (function (_super) {\r\n __extends(WrappedPropertyBoolean, _super);\r\n function WrappedPropertyBoolean(dest, parent, propName, schema, options) {\r\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\r\n // //export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\r\n // wrapSchemaProps(this.$schema, this._internal, 'number', ['maxItems', 'minItems']);\r\n functions_1.initVue(_this, _this._internal);\r\n return _this;\r\n }\r\n WrappedPropertyBoolean.prototype.$validate = function (value) {\r\n if (value === undefined) {\r\n value = this.$model;\r\n }\r\n this.$dirty = true;\r\n if (value === null) {\r\n if (this.$schema.fieldRequired) {\r\n return (this.$error = functions_1.getRuleMessage(this._internal.schema, 'required', value, this.$schema));\r\n }\r\n else {\r\n return (this.$error = null);\r\n }\r\n }\r\n var ivalue = !!value;\r\n if (this.$schema.fieldRequired && !ivalue) {\r\n return (this.$error = functions_1.getRuleMessage(this._internal.schema, 'required', value, this.$schema));\r\n }\r\n return _super.prototype.$validate.call(this, ivalue);\r\n };\r\n WrappedPropertyBoolean.prototype.getValue = function () {\r\n var svalue = this.$model;\r\n if (this.$dirty) {\r\n this.$validate(svalue);\r\n }\r\n return svalue ? 'true' : 'false';\r\n };\r\n WrappedPropertyBoolean.prototype.setValue = function (newValue) {\r\n if (!this.$dirty && this._internal.options.dirtyOnInput) {\r\n this.$dirty = true;\r\n }\r\n this.$model = newValue !== null && newValue !== 'null' && newValue !== 'false' && newValue !== 'off' && newValue !== '';\r\n };\r\n return WrappedPropertyBoolean;\r\n}(WrappedPropertyBase_1.default));\r\nexports.default = WrappedPropertyBoolean;\r\nWrappedPropertyCtor_1.default.boolean = WrappedPropertyBoolean;\r\n//# sourceMappingURL=WrappedPropertyBoolean.js.map","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar funcParams_1 = require(\"./funcParams\");\r\nvar fix_parent_1 = require(\"./fix$parent\");\r\nvar schemaPath_1 = require(\"./schemaPath\");\r\nvar cacheFuncs = {};\r\n/**\r\n * tworzy funkcję agregującą na podstawie schematu\r\n * @param schema schemat\r\n * @param cache czy używać cache\r\n * @param debug czy dodać debugger, wtedy każde wywołanie funkcji się zatrzymuje\r\n */\r\nfunction aggregateFunction(schema, cache, debug) {\r\n if (cache === void 0) { cache = true; }\r\n if (schema.aggregate) {\r\n var aggregateFunc = null;\r\n var cachekey = '';\r\n if (cache && !debug) {\r\n cachekey = \"agg_\" + schema.aggregate.func\r\n + (\"||\" + schema.aggregate.array)\r\n + (\"||\" + schema.aggregate.property)\r\n + (\"||\" + schema.aggregate.when);\r\n aggregateFunc = cacheFuncs[cachekey];\r\n if (aggregateFunc) {\r\n return aggregateFunc;\r\n }\r\n }\r\n // let aggregateFunc = cache ? schema.cache.aggregateFunc : null;\r\n // może być podanna jako tablica\r\n var arraylist = schema.aggregate.array;\r\n if (!Array.isArray(arraylist)) {\r\n arraylist = [arraylist];\r\n }\r\n var func = schema.aggregate.func || 'sum';\r\n var ifprop = schema.aggregate.when || schema.aggregate.if;\r\n if (ifprop) {\r\n ifprop = fix_parent_1.default(ifprop).replace(/\\$item\\./g, '$array[$index].');\r\n }\r\n var prop = schema.aggregate.property;\r\n if (prop) {\r\n var complexprop = /[\\$\\.]/.test(prop);\r\n if (!complexprop) {\r\n prop = '$array[$index].' + prop;\r\n }\r\n else {\r\n prop = fix_parent_1.default(prop).replace(/\\$item\\./g, '$array[$index].');\r\n }\r\n }\r\n else {\r\n prop = '$array[$index]';\r\n }\r\n var ftext = 'var $length = 0;\\r\\n';\r\n // ftext += `var sttime=(new Date()).getTime();var $length=0;`;\r\n switch (func) {\r\n case 'mul':\r\n ftext += \"var $result = 1;\\r\\n\";\r\n break;\r\n case 'min':\r\n if (schema.type === 'string') {\r\n ftext += \"var $result = '\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A\\u017A';\\r\\n\";\r\n }\r\n else {\r\n ftext += \"var $result = Infinity;\\r\\n\";\r\n }\r\n break;\r\n case 'max':\r\n if (schema.type === 'string') {\r\n ftext += \"var $result = '';\\r\\n\";\r\n }\r\n else {\r\n ftext += 'var $result = -Infinity;\\r\\n';\r\n }\r\n break;\r\n case 'map':\r\n ftext += \"var $result = [];\\r\\n\";\r\n break;\r\n default:\r\n ftext += \"var $result = 0;\\r\\n\";\r\n break;\r\n }\r\n var ltext = '';\r\n // ltext += `// func: ${func}\\r\\n`;\r\n switch (func) {\r\n case 'avg':\r\n case 'sum':\r\n ltext += \"$result += (\" + prop + \"); // func: \" + func;\r\n break;\r\n case 'max':\r\n ltext += \"var $v = (\" + prop + \"); // func: \" + func + \"\\r\\nif ($v > $result)\\r\\n $result=$v\";\r\n break;\r\n case 'min':\r\n ltext += \"var $v = (\" + prop + \"); // func: \" + func + \"\\r\\nif ($v < $result)\\r\\n $result=$v\";\r\n break;\r\n case 'mul':\r\n ltext += \"$result *= (\" + prop + \"); // func: \" + func;\r\n break;\r\n case 'count':\r\n ltext += \"$result++; // func: \" + func;\r\n break;\r\n case 'first':\r\n case 'last':\r\n ltext += \"$result = (\" + prop + \");break; // func: \" + func;\r\n break;\r\n case 'map':\r\n ltext += \"$result.push(\" + prop + \"); // func: \" + func;\r\n break;\r\n }\r\n if (ifprop) {\r\n if (func === 'first' || func === 'map') {\r\n // tslint:disable-next-line: max-line-length\r\n ltext = \"var $arrayLength = $array.length;\\r\\nfor($index = 0; $index < $arrayLength; $index++) {\\r\\n if (\" + ifprop + \") { // if: \" + (schema.aggregate.when || schema.aggregate.if) + \"\\r\\n $length++;\\r\\n \" + ltext + \"\\r\\n }\\r\\n}\";\r\n }\r\n else {\r\n ltext = \"var $index = $array.length;\\r\\n\"\r\n + (\"while($index--) {\\r\\n if (\" + ifprop + \") { // if: \" + (schema.aggregate.when || schema.aggregate.if) + \"\\r\\n $length++;\\r\\n \" + ltext + \"\\r\\n }\\r\\n}\");\r\n }\r\n // ftext += `do {with(aaa[i]) {if (${ifprop}) {${ltext}}}} while(i--);`;\r\n }\r\n else {\r\n if (func === 'first' || func === 'map') {\r\n // tslint:disable-next-line: max-line-length\r\n ltext = \"var $arrayLength = $array.length;\\r\\n$length += $arrayLength;\\r\\nfor($index = 0; $index < $arrayLength; $index++) {\\r\\n \" + ltext + \"\\r\\n}\";\r\n }\r\n else {\r\n ltext = \"var $index = $array.length;\\r\\n$length += $index;\\r\\nwhile($index--) {\\r\\n \" + ltext + \"\\r\\n}\";\r\n }\r\n }\r\n for (var _i = 0, arraylist_1 = arraylist; _i < arraylist_1.length; _i++) {\r\n var arraykey = arraylist_1[_i];\r\n var subarray = null;\r\n var pp = arraykey.indexOf('/');\r\n if (pp > -1) {\r\n subarray = arraykey.substr(pp + 1);\r\n arraykey = arraykey.substr(0, pp);\r\n }\r\n var complexarray = /[\\$\\.]/.test(arraykey);\r\n if (!complexarray) {\r\n arraykey = 'this.' + arraykey;\r\n }\r\n arraykey = fix_parent_1.default(arraykey);\r\n if (subarray) {\r\n // tslint:disable-next-line: max-line-length\r\n ftext += \"var $parentArray = \" + arraykey + \"; // array: \" + schema.aggregate.array + \"\\r\\nvar $parentLength = $parentArray.length;\\r\\nfor(var $parentIndex=0; $parentIndex<$parentLength; $parentIndex++) {\\r\\n var $array=$parentArray[$parentIndex].\" + subarray + \";\\r\\n if ($array) {\\r\\n \" + ltext + \"\\r\\n}\\r\\n}\";\r\n }\r\n else {\r\n ftext += \"var $array = \" + arraykey + \"; // array: \" + schema.aggregate.array + \"\\r\\n\";\r\n /*\r\n switch (func) {\r\n case 'min':\r\n case 'max':\r\n case 'mul': ftext+=\"if ($result===undefined && $array.length) \"\r\n }\r\n */\r\n ftext += ltext;\r\n // ltext;\r\n }\r\n }\r\n if (func === 'avg') {\r\n ftext += '\\r\\nif ($length)\\r\\n $result /= $length;';\r\n }\r\n switch (func) {\r\n case 'mul':\r\n ftext += \"\\r\\nif ($length===0)\\r\\n $result=0;\";\r\n break;\r\n case 'min':\r\n case 'max':\r\n if (schema.type === 'string') {\r\n ftext += \"\\r\\nif ($length === 0)\\r\\n $result = '';\";\r\n }\r\n else {\r\n ftext += \"\\r\\nif ($length === 0)\\r\\n $result = 0;\";\r\n }\r\n break;\r\n }\r\n if (debug) {\r\n switch (schema.type) {\r\n case 'integer':\r\n ftext += '\\r\\n$result = $methods.mround($result,0);';\r\n break;\r\n case 'money':\r\n ftext += '\\r\\n$result = $methods.mround($result,2);';\r\n break;\r\n case 'number':\r\n if (schema.precision) {\r\n ftext += \"\\r\\n$result = $methods.mround($result,\" + schema.precision + \");\";\r\n }\r\n else {\r\n // ftext += `\\r\\n$result = $result;`;\r\n }\r\n break;\r\n default:\r\n // ftext += `\\r\\n$result = $result;`;\r\n break;\r\n }\r\n ftext += \"\\r\\nreturn $result;\";\r\n // return (schema.cache.aggregateFunc = aggregateFunc = new Function(funcParams, ftext));\r\n ftext = \"\\r\\n/*** debug only ***/\\r\\n\\\"\" + schemaPath_1.default(schema, true) + \"\\\"; // schema path\\r\\nconsole.debug($obj.$path); // model path\\r\\ndebugger;\\r\\n\\r\\n/*** function body ***/\\r\\n\" + ftext;\r\n // ftext = 'console.debug($obj.$path);\\r\\ndebugger;\\r\\n' + ftext;\r\n }\r\n else {\r\n switch (schema.type) {\r\n case 'integer':\r\n ftext += '\\r\\nreturn $methods.mround($result,0);';\r\n break;\r\n case 'money':\r\n ftext += '\\r\\nreturn $methods.mround($result,2);';\r\n break;\r\n case 'number':\r\n if (schema.precision) {\r\n ftext += \"\\r\\nreturn $methods.mround($result,\" + schema.precision + \");\";\r\n }\r\n else {\r\n ftext += \"\\r\\nreturn $result;\";\r\n }\r\n break;\r\n default:\r\n ftext += \"\\r\\nreturn $result;\";\r\n break;\r\n }\r\n }\r\n if (process.env.NODE_ENV !== 'production') {\r\n ftext = \"\\\"use strict\\\";\\r\\n\" + ftext;\r\n }\r\n aggregateFunc = new Function(funcParams_1.default, ftext);\r\n if (cache && !debug) {\r\n cacheFuncs[cachekey] = aggregateFunc;\r\n }\r\n return aggregateFunc;\r\n // return (schema.cache.aggregateFunc = aggregateFunc = new Function(funcParams, ftext));\r\n }\r\n}\r\nexports.default = aggregateFunction;\r\n//# sourceMappingURL=aggregateFunction.js.map","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nfunction _dataValue(data, path, pindex, schema) {\r\n var prop = path[pindex];\r\n if (prop === '') {\r\n if (pindex === path.length - 1) {\r\n return undefined;\r\n }\r\n else {\r\n return _dataValue(data, path, pindex + 1, schema);\r\n }\r\n }\r\n if (schema) {\r\n if (schema.type === 'object' && schema.properties) {\r\n var schitem = schema.properties[prop];\r\n if (schitem === undefined) {\r\n return undefined;\r\n }\r\n var ndata = data[prop];\r\n if (ndata === undefined) {\r\n if (schitem.default !== undefined) {\r\n ndata = schitem.default;\r\n }\r\n else {\r\n return undefined;\r\n }\r\n }\r\n if (pindex === path.length - 1) {\r\n return ndata;\r\n }\r\n else {\r\n return _dataValue(ndata, path, pindex + 1, schitem);\r\n }\r\n }\r\n else if (schema.type === 'array') {\r\n var schitem = schema.items;\r\n if (schitem === undefined) {\r\n return undefined;\r\n }\r\n var ndata = data[Number(prop)];\r\n if (ndata === undefined) {\r\n if (schitem.default !== undefined) {\r\n ndata = schitem.default;\r\n }\r\n else {\r\n return undefined;\r\n }\r\n }\r\n if (pindex === path.length - 1) {\r\n return ndata;\r\n }\r\n else {\r\n return _dataValue(ndata, path, pindex + 1, schitem);\r\n }\r\n }\r\n else {\r\n return undefined;\r\n }\r\n }\r\n}\r\nfunction dataValue(schema, data, path) {\r\n var tpath = path\r\n .replace(/\\[/g, '.')\r\n .replace(/\\]/g, '')\r\n .split('.');\r\n return _dataValue(data, tpath, 0, schema);\r\n}\r\nexports.default = dataValue;\r\n//# sourceMappingURL=dataValue.js.map","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fdatetime_1 = require(\"./fdatetime\");\r\n/**\r\n * formatuje datę do formatu yyyy-MM-dd\r\n * @param dt data typu Date\r\n */\r\nfunction fdate(dt) {\r\n return fdatetime_1.formatDateFunction['yyyy-MM-dd'](dt);\r\n // return dt.getFullYear() + '-' + padNumber(dt.getMonth() + 1) + '-' + padNumber(dt.getDate());\r\n}\r\nexports.default = fdate;\r\n//# sourceMappingURL=fdate.js.map","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n// Array.includes\r\nif (!Array.prototype.includes) {\r\n Array.prototype.includes = function (searchElement /*, fromIndex*/) {\r\n 'use strict';\r\n var O = Object(this);\r\n var len = parseInt(O.length, 10) || 0;\r\n if (len === 0) {\r\n return false;\r\n }\r\n var n = parseInt(arguments[1], 10) || 0;\r\n var k;\r\n if (n >= 0) {\r\n k = n;\r\n }\r\n else {\r\n k = len + n;\r\n if (k < 0) {\r\n k = 0;\r\n }\r\n }\r\n var currentElement;\r\n while (k < len) {\r\n currentElement = O[k];\r\n if (searchElement === currentElement ||\r\n (searchElement !== searchElement && currentElement !== currentElement)) { // NaN !== NaN\r\n return true;\r\n }\r\n k++;\r\n }\r\n return false;\r\n };\r\n}\r\n// Object.keys\r\nif (!Object.keys) {\r\n // tslint:disable-next-line: only-arrow-functions\r\n Object.keys = (function () {\r\n 'use strict';\r\n var hasOwnProperty = Object.prototype.hasOwnProperty;\r\n var hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString');\r\n var dontEnums = [\r\n 'toString',\r\n 'toLocaleString',\r\n 'valueOf',\r\n 'hasOwnProperty',\r\n 'isPrototypeOf',\r\n 'propertyIsEnumerable',\r\n 'constructor'\r\n ];\r\n var dontEnumsLength = dontEnums.length;\r\n // tslint:disable-next-line: only-arrow-functions\r\n return function (obj) {\r\n if (typeof obj !== 'function' && (typeof obj !== 'object' || obj === null)) {\r\n throw new TypeError('Object.keys called on non-object');\r\n }\r\n var result = [];\r\n var prop;\r\n var i;\r\n for (prop in obj) {\r\n if (hasOwnProperty.call(obj, prop)) {\r\n result.push(prop);\r\n }\r\n }\r\n if (hasDontEnumBug) {\r\n for (i = 0; i < dontEnumsLength; i++) {\r\n if (hasOwnProperty.call(obj, dontEnums[i])) {\r\n result.push(dontEnums[i]);\r\n }\r\n }\r\n }\r\n return result;\r\n };\r\n }());\r\n}\r\n// Object.assign\r\nif (typeof Object.assign !== 'function') {\r\n // tslint:disable-next-line: only-arrow-functions\r\n Object.assign = function (target, varArgs) {\r\n 'use strict';\r\n if (target == null) { // TypeError if undefined or null\r\n throw new TypeError('Cannot convert undefined or null to object');\r\n }\r\n var to = Object(target);\r\n for (var index = 1; index < arguments.length; index++) {\r\n var nextSource = arguments[index];\r\n if (nextSource != null) { // Skip over if undefined or null\r\n for (var nextKey in nextSource) {\r\n // Avoid bugs when hasOwnProperty is shadowed\r\n if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {\r\n to[nextKey] = nextSource[nextKey];\r\n }\r\n }\r\n }\r\n }\r\n return to;\r\n };\r\n}\r\n// test polyfill\r\n// @ts-ignore\r\nif (!Array.test) {\r\n // @ts-ignore\r\n // tslint:disable-next-line: only-arrow-functions\r\n Array.test = function () {\r\n return 'test';\r\n };\r\n}\r\nexports.includes = Array.prototype.includes;\r\nexports.keys = Object.keys;\r\n// @ts-ignore\r\nexports.test = Array.test;\r\n//# sourceMappingURL=polyfills.js.map","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar ValidationResult = /** @class */ (function () {\r\n function ValidationResult() {\r\n this.valid = true;\r\n this.errors = [];\r\n }\r\n return ValidationResult;\r\n}());\r\nexports.default = ValidationResult;\r\n//# sourceMappingURL=ValidationResult.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\r\nvar WrappedPropertyArrayItem_1 = require(\"./WrappedPropertyArrayItem\");\r\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\r\nvar functions_1 = require(\"./functions\");\r\nvar WrappedPropertyArrayItemDirect_1 = require(\"./WrappedPropertyArrayItemDirect\");\r\nvar fixData_1 = require(\"../JSchema/fixData\");\r\nvar calcFunction_1 = require(\"../JSchema/calcFunction\");\r\nvar aggregateFunction_1 = require(\"../JSchema/aggregateFunction\");\r\nvar setData_1 = require(\"../JSchema/setData\");\r\nvar defaultValue_1 = require(\"../JSchema/defaultValue\");\r\nvar WrappedPropertyArray = /** @class */ (function (_super) {\r\n __extends(WrappedPropertyArray, _super);\r\n function WrappedPropertyArray(dest, parent, propName, schema, options) {\r\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\r\n var internal = _this._internal;\r\n _this._internal.mparent = _this.$model;\r\n _this._internal.schitems = schema.items;\r\n // internal.subitemcache = [];\r\n _this._internal.cachedKey = '';\r\n _this._internal.cachedItems = [];\r\n _this._internal.mparent = _this.$model;\r\n // //export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\r\n functions_1.wrapSchemaProps(_this.$schema, internal, 'number', ['maxItems', 'minItems']);\r\n // length\r\n if (schema.length !== undefined) {\r\n if (typeof schema.length !== 'number') {\r\n functions_1.wrapSchemaProp(_this.$schema, 'length', internal, function (newValue) { return _this.$setLength(newValue); });\r\n }\r\n else {\r\n _this.$schema.length = schema.length;\r\n _this.$setLength(schema.length);\r\n }\r\n }\r\n // tworzenie tablicy\r\n var mlength = internal.mparent.length;\r\n _this._internal.ntable = new Array(mlength);\r\n // console.time('addRows wrapall:' + internal.options.wrapAll + ' (' + mlength + ')');\r\n // if (internal.options.wrapAll) {\r\n if (false) {\r\n for (var i = 0; i < mlength; i++) {\r\n // const ssubitem = new WrapperPropertyArrayItem(self, internal.mparent, rowIndex, schitems, internal.options);\r\n // internal.ntable.push(new WrapperPropertyArrayItem(this, internal.mparent, i, internal.schitems, internal.options));\r\n internal.ntable[i] = new WrappedPropertyArrayItemDirect_1.WrapperPropertyArrayItemDirect(_this, internal.mparent, i, internal.schitems, internal.options);\r\n // addRow(this, internal, internal.schitems, i);\r\n }\r\n }\r\n else {\r\n for (var i = 0; i < mlength; i++) {\r\n // const ssubitem = new WrapperPropertyArrayItem(self, internal.mparent, rowIndex, schitems, internal.options);\r\n // internal.ntable.push(new WrapperPropertyArrayItem(this, internal.mparent, i, internal.schitems, internal.options));\r\n internal.ntable[i] = new WrappedPropertyArrayItem_1.WrapperPropertyArrayItem(_this, internal.mparent, i, internal.schitems, internal.options);\r\n // return ssubitem as IWrapperPropertyArrayItem;\r\n // addRow(this, internal, internal.schitems, i);\r\n }\r\n }\r\n // console.timeEnd('addRows wrapall:' + internal.options.wrapAll + ' (' + mlength + ')');\r\n // computed\r\n var self = _this;\r\n internal.useComputedModel = true;\r\n internal.computed.items = function () {\r\n var smodel = parent[propName];\r\n var l = smodel.length;\r\n // console.log('mparent.length', mparent.length);\r\n if (l > internal.ntable.length) {\r\n // console.log('autogrow', l, ntable.length);\r\n while (internal.ntable.length < l) {\r\n fixData_1.default(internal.schitems, smodel[internal.ntable.length], options.Vue);\r\n addRow(_this, internal, internal.schitems, internal.ntable.length);\r\n }\r\n }\r\n else if (l < internal.ntable.length) {\r\n clearCached(internal);\r\n internal.ntable.length = l;\r\n }\r\n return internal.ntable;\r\n // return [];\r\n };\r\n internal.watch.items = {\r\n // deep,\r\n handler: function (newValue) {\r\n if (schema.debug) {\r\n debugger;\r\n }\r\n self.$dirty = true;\r\n self.$validate(parent[propName]);\r\n }\r\n };\r\n // potrzebne przeliczenia na starcie\r\n if (mlength && !self._options.disableCalculations && !self._options.wrapAll) {\r\n var needCalc = functions_1.anyCalc(internal.schitems);\r\n var props = internal.schitems.properties;\r\n if (needCalc && props) {\r\n // są jakieś pola wymagające kalkulacji\r\n // $root,$parent,$parent2,$parent3,$external,$methods,$obj\r\n var paramdata = [_this.$root.$model, internal.mparent, {}, {}, options.external, options.schemaMethods, , null];\r\n if (dest) {\r\n paramdata[2] = dest.$model;\r\n if (dest.$parent) {\r\n paramdata[3] = dest.$parent.$model;\r\n }\r\n }\r\n // let props = schitems.properties;\r\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\r\n var schkey = _a[_i];\r\n var schitem = props[schkey];\r\n if (schitem.calc) {\r\n var stime = new Date().getTime();\r\n var calcFunc = calcFunction_1.default(schitem, true);\r\n var $mparent = {\r\n $parent: self,\r\n $key: 0\r\n };\r\n paramdata[6] = { $key: schkey, $parent: $mparent };\r\n try {\r\n // for (let i = 0; i < mlength; i++) {\r\n // paramdata[6].$parent.$key = i;\r\n for (; $mparent.$key < mlength; $mparent.$key++) {\r\n var res = calcFunc.apply(internal.mparent[$mparent.$key], paramdata);\r\n if (res !== undefined) {\r\n options.Vue.set(internal.mparent[$mparent.$key], schkey, res);\r\n }\r\n // mparent[$mparent.$key][schkey] = calcFunc.apply(mparent[$mparent.$key], paramdata);\r\n }\r\n }\r\n catch (err) {\r\n if (process.env.NODE_ENV === 'development') {\r\n console.error('ERR calc:model result', err);\r\n }\r\n // moze się wywalić wiec spokojnie\r\n continue;\r\n }\r\n // console.log(`calc ${schkey} in ${propName}[${mlength}]`, new Date().getTime() - stime);\r\n }\r\n else if (schitem.aggregate) {\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time('agg:model ' + self.$path + '[].' + schkey);\r\n // console.info('agg:model', new Date().getTime() - stime);\r\n }\r\n var stime = new Date().getTime();\r\n var aggFunc = aggregateFunction_1.default(schitem, true);\r\n var $mparent = {\r\n $parent: self,\r\n $key: 0\r\n };\r\n paramdata[6] = { $key: schkey, $parent: $mparent };\r\n try {\r\n // for (let i = 0; i < mlength; i++) {\r\n // paramdata[6].$parent.$key = i;\r\n for (; $mparent.$key < mlength; $mparent.$key++) {\r\n var res = aggFunc.apply(internal.mparent[$mparent.$key], paramdata);\r\n // mparent[$mparent.$key][schkey] = res;\r\n if (res !== undefined) {\r\n options.Vue.set(internal.mparent[$mparent.$key], schkey, res);\r\n }\r\n // mparent[$mparent.$key][schkey] = calcFunc.apply(mparent[$mparent.$key], paramdata);\r\n }\r\n if (process.env.NODE_ENV === 'development') {\r\n console.timeEnd('agg:model ' + self.$path + '[].' + schkey);\r\n // console.info('agg:model', new Date().getTime() - stime);\r\n }\r\n }\r\n catch (err) {\r\n if (process.env.NODE_ENV === 'development') {\r\n console.warn('agg:model rerror', err);\r\n console.timeEnd('agg:model ' + self.$path + '[].' + schkey);\r\n }\r\n // moze się wywalić wiec spokojnie\r\n continue;\r\n }\r\n }\r\n // if (schitems.calc) || (schitem.summary) || (schitem.agg)\r\n }\r\n }\r\n }\r\n functions_1.initVue(_this, _this._internal);\r\n return _this;\r\n // już po stworzeniu Vue\r\n // this._options.Vue.set(this.$data, 'order', '');\r\n // this.$setUserData('order', '');\r\n }\r\n WrappedPropertyArray.prototype.$validate = function (value) {\r\n if (value === undefined) {\r\n value = this.$model;\r\n }\r\n if (value === undefined || value === null) {\r\n if (this.$schema.fieldRequired) {\r\n return (this.$error = functions_1.getRuleMessage(this._internal.schema, 'required', value, this.$schema));\r\n }\r\n else {\r\n return (this.$error = null);\r\n }\r\n }\r\n return _super.prototype.$validate.call(this, value);\r\n };\r\n WrappedPropertyArray.prototype.$validateAll = function (result) {\r\n if (result === undefined) {\r\n result = [];\r\n }\r\n if (this.$validate() !== null) {\r\n result.push(this);\r\n }\r\n for (var i = 0; i < this._internal.ntable.length; i++) {\r\n this._internal.ntable[i].$item.$validateAll(result);\r\n }\r\n return result;\r\n };\r\n WrappedPropertyArray.prototype.$setData = function (value, path, fixArraySize) {\r\n // /Vue.set(parent, propName, value);\r\n return setData_1.default(this._internal.schema, this.$model, value, path, 0, this._options.Vue, fixArraySize);\r\n };\r\n WrappedPropertyArray.prototype.$reset = function () {\r\n /*\r\n for (let i = 0; i < this.internal.mparent.length; i++) {\r\n const subitem = this.internal.subitemcache[i];\r\n if (subitem !== undefined) {\r\n subitem.$reset();\r\n }\r\n }\r\n */\r\n for (var i = 0; i < this._internal.ntable.length; i++) {\r\n this._internal.ntable[i].$reset();\r\n }\r\n _super.prototype.$reset.call(this);\r\n // this.$dirty = false;\r\n // this.internal.vm.error = null;\r\n };\r\n WrappedPropertyArray.prototype.$dirtyList = function (result) {\r\n if (result === undefined) {\r\n result = [];\r\n }\r\n for (var i = 0; i < this._internal.ntable.length; i++) {\r\n this._internal.ntable[i].$dirtyList(result);\r\n }\r\n /*\r\n \r\n for (let i = 0; i < this.internal.mparent.length; i++) {\r\n const subitem = this.internal.subitemcache[i];\r\n if (subitem !== undefined) {\r\n subitem.$dirtyList(result);\r\n }\r\n }\r\n */\r\n return result;\r\n };\r\n Object.defineProperty(WrappedPropertyArray.prototype, \"$items\", {\r\n get: function () {\r\n if (this._internal.vm) {\r\n return this._internal.vm.items;\r\n }\r\n else {\r\n return this._internal.ntable;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n WrappedPropertyArray.prototype.$setLength = function (newLength) {\r\n var stable = this.$model;\r\n if (stable.length !== newLength) {\r\n while (stable.length > newLength) {\r\n this.$removeRow(stable.length - 1);\r\n }\r\n while (stable.length < newLength) {\r\n // obj.$addRow(undefined, 1);\r\n this.$addRow(undefined, newLength - stable.length);\r\n }\r\n }\r\n return true;\r\n };\r\n WrappedPropertyArray.prototype.$addRow = function (nvalue, count) {\r\n if (count === void 0) { count = 1; }\r\n var mparent2 = this.$model;\r\n if (mparent2 === undefined) {\r\n // Vue.set(parent, propName, []);\r\n var defvalue = defaultValue_1.default(this._internal.schema, true);\r\n // console.log('recreate array',propName,defvalue);\r\n this.$setData(defvalue);\r\n // this.internal.Vue.set(this.internal.parent, this.propName, defvalue);\r\n mparent2 = this.$model;\r\n }\r\n // gdy jest ustawiona stała długość\r\n if (this.$schema.length !== undefined && mparent2.length === this.$schema.length) {\r\n return false;\r\n }\r\n this._internal.cachedKey = '';\r\n var startindex = mparent2.length;\r\n var schitems = this._internal.schitems;\r\n var nvalue2;\r\n if (schitems.type === 'object') {\r\n for (var i = 0; i < count; i++) {\r\n nvalue2 = defaultValue_1.default(schitems, true);\r\n if (nvalue) {\r\n nvalue2 = Object.assign(nvalue2, nvalue);\r\n }\r\n mparent2.push(nvalue2);\r\n }\r\n }\r\n else {\r\n for (var i = 0; i < count; i++) {\r\n if (nvalue !== undefined) {\r\n nvalue2 = nvalue;\r\n }\r\n else {\r\n nvalue2 = defaultValue_1.default(schitems, true);\r\n }\r\n this._options.Vue.set(mparent2, startindex + i, nvalue2);\r\n if (process.env.NODE_ENV === 'development') {\r\n console.log('vue set array item', startindex, nvalue2, mparent2.length);\r\n }\r\n }\r\n }\r\n for (var i = 0; i < count; i++) {\r\n addRow(this, this._internal, schitems, startindex + i);\r\n }\r\n return true;\r\n };\r\n WrappedPropertyArray.prototype.$removeRow = function (index) {\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time('$removeRow');\r\n }\r\n var modeltable = this.$model;\r\n // schematable.splice(index, 1);\r\n if (this.$schema.length !== undefined && modeltable.length === this.$schema.length) {\r\n return false;\r\n }\r\n this._internal.cachedKey = '';\r\n this._internal.ntable.splice(index, 1);\r\n var l = this._internal.ntable.length;\r\n for (var i = index; i < l; i++) {\r\n this._internal.ntable[i].$setKey(i);\r\n }\r\n /*\r\n this.internal.subitemcache.splice(index, 1);\r\n for (let i = index; i < l; i++) {\r\n this.internal.ntable[i].$key = i;\r\n if (this.internal.subitemcache[i] !== undefined) {\r\n this.internal.subitemcache[i].$key = i;\r\n }\r\n }\r\n */\r\n modeltable.splice(index, 1); // bo na tym jest event ?\r\n if (process.env.NODE_ENV === 'development') {\r\n console.timeEnd('$removeRow');\r\n }\r\n return true;\r\n };\r\n WrappedPropertyArray.prototype.$clearRow = function (index) {\r\n var nitem = defaultValue_1.default(this._internal.schema);\r\n this._internal.ntable[index].$clearCache();\r\n /*\r\n if (this.internal.subitemcache[index] !== undefined) {\r\n this.internal.subitemcache[index].$destroy();\r\n this.internal.subitemcache[index] = undefined;\r\n }\r\n */\r\n this._options.Vue.set(this.$model, index, nitem);\r\n return true;\r\n };\r\n WrappedPropertyArray.prototype.$exchangeRow = function (index1, index2) {\r\n this._internal.cachedKey = '';\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time(\"$exchangeRow(\" + index1 + \",\" + index2 + \")\");\r\n }\r\n var mparent = this.$model;\r\n var item1 = mparent[index1];\r\n var item2 = mparent[index2];\r\n this._internal.ntable[index1].$clearCache();\r\n this._internal.ntable[index2].$clearCache();\r\n /*\r\n if (this.internal.subitemcache[index1] !== undefined) {\r\n this.internal.subitemcache[index1].$destroy();\r\n this.internal.subitemcache[index1] = undefined;\r\n }\r\n if (this.internal.subitemcache[index2] !== undefined) {\r\n this.internal.subitemcache[index2].$destroy();\r\n this.internal.subitemcache[index2] = undefined;\r\n }\r\n */\r\n this._options.Vue.set(mparent, index1, item2);\r\n this._options.Vue.set(mparent, index2, item1);\r\n // mparent[index1] = item2;\r\n // mparent[index2] = item1;\r\n if (process.env.NODE_ENV === 'development') {\r\n console.timeEnd(\"$exchangeRow(\" + index1 + \",\" + index2 + \")\");\r\n }\r\n return true;\r\n // console.log('exchanged', index1, index2);\r\n };\r\n WrappedPropertyArray.prototype.$moveUp = function (index) {\r\n if (index > 0) {\r\n return this.$exchangeRow(index, index - 1);\r\n }\r\n return false;\r\n };\r\n WrappedPropertyArray.prototype.$moveDown = function (index) {\r\n if (index < this.$model.length - 1) {\r\n return this.$exchangeRow(index, index + 1);\r\n }\r\n return false;\r\n };\r\n WrappedPropertyArray.prototype.$sort = function (field) {\r\n // let stime = new Date().getTime();\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time(\"$sort(\" + this.$key + \",\" + field + \")\");\r\n }\r\n this._internal.cachedKey = '';\r\n var mparent = (this._internal.mparent = this._internal.mparent.sort(function (a, b) { return (b[field] === a[field] ? 0 : b[field] > a[field] ? -1 : 1); }));\r\n // mparent = parent[propName] = narray;\r\n // destroy\r\n // clearCached();\r\n var index = this._internal.ntable.length;\r\n while (index--) {\r\n this._internal.ntable[index].$clearCache();\r\n }\r\n if (process.env.NODE_ENV === 'development') {\r\n console.timeEnd(\"$sort(\" + this.$key + \",\" + field + \")\");\r\n console.log(\" [0].\" + field + \"=\" + mparent[0][field] + (\", [\" + (mparent.length - 1) + \"].\" + field) + (\"=\" + mparent[mparent.length - 1][field]));\r\n }\r\n // tslint:disable-next-line: max-line-length\r\n // console.log('sorting', propName, field, new Date().getTime() - stime, mparent[0][field], mparent[mparent.length - 1][field]);\r\n };\r\n WrappedPropertyArray.prototype.$filter = function (func) {\r\n if (func) {\r\n return this._internal.ntable.filter(func);\r\n }\r\n return this._internal.ntable;\r\n };\r\n Object.defineProperty(WrappedPropertyArray.prototype, \"pageNumber\", {\r\n get: function () {\r\n return this.$getUserData('pageNumber', 0);\r\n // return this.$data.pageNumber || 0;\r\n },\r\n set: function (newValue) {\r\n if (newValue < 0) {\r\n this.$setUserData('pageNumber', 0);\r\n // this._options.Vue.set(this.$data, 'pageNumber', 0);\r\n }\r\n else if (newValue >= this.pageCount) {\r\n if (process.env.NODE_ENV === 'development') {\r\n console.log('overflow pagenumber', newValue, this.pageCount - 1);\r\n }\r\n this.$setUserData('pageNumber', this.pageCount - 1);\r\n // this._options.Vue.set(this.obj.$data, 'pageNumber', this.pageCount - 1);\r\n }\r\n else {\r\n this.$setUserData('pageNumber', newValue);\r\n // this._options.Vue.set(this.obj.$data, 'pageNumber', newValue);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyArray.prototype, \"pageSize\", {\r\n get: function () {\r\n return this.$getUserData('pageSize', 25);\r\n // return this.$data.pageSize;\r\n },\r\n set: function (newValue) {\r\n this.$setUserData('pageSize', newValue);\r\n // this._options.Vue.set(this.$data, 'pageSize', newValue);\r\n if (this.pageNumber >= this.pageCount) {\r\n this.pageNumber = this.pageCount - 1;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyArray.prototype, \"pageCount\", {\r\n get: function () {\r\n return Math.ceil(this.$model.length / this.pageSize);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedPropertyArray.prototype, \"order\", {\r\n get: function () {\r\n return this.$getUserData('order', '');\r\n },\r\n set: function (newValue) {\r\n this.$setUserData('order', newValue);\r\n // this._options.Vue.set(this.$data, 'order', newValue);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n WrappedPropertyArray.prototype.$getItems = function (start, count) {\r\n // console.log('dssdfsdfs');\r\n var mparent2 = this.$model;\r\n start = start || 0;\r\n if (count && this.pageSize !== count) {\r\n // console.log('set pageSize', count);\r\n this.pageSize = count;\r\n }\r\n var end = count;\r\n if (end === undefined) {\r\n end = mparent2.length;\r\n }\r\n else {\r\n end += start;\r\n if (end >= mparent2.length) {\r\n end = mparent2.length;\r\n }\r\n }\r\n var stime = new Date().getTime();\r\n var res = [];\r\n if (true /*usesubitem*/) {\r\n // const order = this.order;\r\n var order_1 = this.$getUserData('order', '');\r\n var nkey = start + \"|\" + end + \"|\" + order_1;\r\n if (nkey === this._internal.cachedKey) {\r\n // console.log('return cached data', new Date().getTime() - stime);\r\n return this._internal.cachedItems;\r\n }\r\n if (order_1) {\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time(\"$getItems.order('\" + order_1 + \"',\" + start + \",\" + end + \")\");\r\n }\r\n // let stime = new Date().getTime();\r\n var otable = Array.from(this._internal.ntable);\r\n otable.sort(function (a, b) { return (mparent2[b.$key][order_1] === mparent2[a.$key][order_1] ? 0 : mparent2[b.$key][order_1] > mparent2[a.$key][order_1] ? -1 : 1); });\r\n // console.log('order by', (new Date()).getTime() - stime, order, otable[0].$item, ntable[0].$item);\r\n // tslint:disable-next-line: max-line-length\r\n // let narray = parent[propName].sort((a: any, b: any) => (b[field] === a[field]) ? 0 : (b[field] > a[field]) ? -1 : 1);\r\n for (var i = start; i < end; i++) {\r\n res.push(otable[i].$item);\r\n }\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time(\"$getItems.order('\" + order_1 + \"',\" + start + \",\" + end + \")\");\r\n }\r\n // console.log('return ordered data', new Date().getTime() - stime);\r\n }\r\n else {\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time(\"$getItems(\" + start + \",\" + end + \")\");\r\n }\r\n // console.log('not ordered', ntable[0].$item);\r\n for (var i = start; i < end; i++) {\r\n res.push(this._internal.ntable[i].$item);\r\n }\r\n if (process.env.NODE_ENV === 'development') {\r\n console.timeEnd(\"$getItems(\" + start + \",\" + end + \")\");\r\n }\r\n }\r\n this._internal.cachedItems = res;\r\n this._internal.cachedKey = nkey;\r\n // const aa: any[] = this.$items as WrappedProperty[];\r\n // console.log(\"$getItems\",start,end,res.length,aa.length);\r\n // console.log(\"$getItems\", propName, start, end, res.length, (new Date()).getTime() - stime);\r\n // return res;\r\n // res = reactivedata.items.slice(start, end).map((x: any) => x.$item);\r\n }\r\n else {\r\n // res = reactivedata.items.slice(start, end);\r\n }\r\n // console.log('$getItems.slide', (new Date()).getTime() - stime, res);\r\n return res;\r\n // return\r\n };\r\n WrappedPropertyArray.prototype.$getPage = function (page, pageSize) {\r\n if (pageSize === void 0) { pageSize = 25; }\r\n // console.log('get page');\r\n return this.$getItems(page * pageSize, pageSize);\r\n };\r\n return WrappedPropertyArray;\r\n}(WrappedPropertyBase_1.default));\r\nexports.default = WrappedPropertyArray;\r\nfunction addRow(self, internal, schitems, rowIndex) {\r\n // const ssubitem = internal.options.wrapAll ? new WrapperPropertyArrayItemDirect(self, internal.mparent, rowIndex, schitems, internal.options) : new WrapperPropertyArrayItem(self, internal.mparent, rowIndex, schitems, internal.options);\r\n var ssubitem = new WrappedPropertyArrayItem_1.WrapperPropertyArrayItem(self, internal.mparent, rowIndex, schitems, internal.options);\r\n internal.ntable.push(ssubitem);\r\n return ssubitem;\r\n /*\r\n \r\n const ssubitem: any = new Object();\r\n // const ssubitem: any = { $key: rowIndex };\r\n // let subitem: any;\r\n \r\n Object.defineProperties(ssubitem, {\r\n $key: {\r\n writable: true,\r\n value: rowIndex\r\n },\r\n \r\n $item: {\r\n get() {\r\n let subitem = internal.subitemcache[this.$key];\r\n if (subitem === undefined) {\r\n subitem = new WrappedPropertyCtor[internal.schema.items.type](self, internal.parent, this.$key, schitems, internal.options);\r\n this.internal.subitemcache[this.$key] = subitem;\r\n }\r\n return subitem;\r\n }\r\n }\r\n });\r\n \r\n */\r\n /*\r\n if (needCalc) {\r\n subitemcache[ff] = self.wrapProperty(obj, mparent, ff, schitems);\r\n }\r\n */\r\n internal.ntable.push(ssubitem);\r\n if (internal.options.wrapAll) {\r\n var a = ssubitem.$item;\r\n }\r\n return ssubitem;\r\n}\r\nfunction clearCached(internal) {\r\n // destroy\r\n for (var i = 0; i < internal.ntable.length; i++) {\r\n internal.ntable[i].$clearCache();\r\n }\r\n /*\r\n for (let i = 0; i < internal.subitemcache.length; i++) {\r\n const item = internal.subitemcache[i];\r\n if (item !== undefined) {\r\n item.$destroy();\r\n }\r\n }\r\n \r\n internal.subitemcache = [];\r\n */\r\n}\r\n// przeliczanie tablicy, calc i aggragate\r\nfunction recalcArray() {\r\n return true;\r\n}\r\nWrappedPropertyCtor_1.default.array = WrappedPropertyArray;\r\n//# sourceMappingURL=WrappedPropertyArray.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar IOptions_1 = require(\"./WrappedProperty/IOptions\");\r\nvar WrappedProperty_1 = require(\"./WrappedProperty\");\r\nvar fixAndMergeSchema_1 = require(\"./JSchema/fixAndMergeSchema\");\r\nvar defaultValue_1 = require(\"./JSchema/defaultValue\");\r\nvar fixData_1 = require(\"./JSchema/fixData\");\r\nvar schemaMixin = {\r\n // beforeCreate() { },\r\n created: function () {\r\n var vm = this;\r\n var schema = vm.$options.schema;\r\n if (schema && vm.$setSchema) {\r\n vm.$setSchema(schema, false);\r\n }\r\n },\r\n beforeDestroy: function () {\r\n this.$setSchema();\r\n },\r\n methods: {\r\n $setSchema: function (schema, forceUpdate) {\r\n var vm = this;\r\n if (vm.$schema) {\r\n vm.$schema.$destroy();\r\n }\r\n vm.$schema = undefined;\r\n if (!schema) {\r\n return undefined;\r\n }\r\n if (vm.model === undefined) {\r\n throw new Error('no `model` property in data');\r\n return undefined;\r\n }\r\n var soptions = IOptions_1.fixSchemaOptions(vm.$options.schemaOptions);\r\n // constructor\r\n var Vue = vm.constructor;\r\n while (Vue.super) {\r\n Vue = Vue.super;\r\n }\r\n if (Vue.Renderless) {\r\n Vue = Vue.Renderless;\r\n }\r\n soptions.Vue = Vue;\r\n // externalv\r\n if (vm.$options.external) {\r\n soptions.external = vm.$external = vm.$options.external;\r\n }\r\n // form\r\n vm.$form = soptions.form = vm.form || {};\r\n // merge schema\r\n var schema2 = null;\r\n // let fixtime = new Date().getTime();\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time('schema fixing time');\r\n }\r\n var fixOptions = Object.assign({}, fixAndMergeSchema_1.fixSchemaDefaultOptions);\r\n if ((vm.$options.schemaOptions) && (vm.$options.schemaOptions.arrayItemGuidField !== undefined)) {\r\n fixOptions.arrayItemGuidField = vm.$options.schemaOptions.arrayItemGuidField;\r\n }\r\n fixOptions.model = vm.model;\r\n if (!Array.isArray(schema)) {\r\n schema = [schema];\r\n }\r\n else {\r\n schema = schema.slice(0);\r\n }\r\n if (vm.$options.beforeFixSchema) {\r\n vm.$options.beforeFixSchema(schema, fixOptions);\r\n }\r\n schema2 = fixAndMergeSchema_1.default(schema, fixOptions);\r\n // let ooo = JSON.stringify(schema2);\r\n if (process.env.NODE_ENV === 'development') {\r\n console.timeEnd('schema fixing time');\r\n }\r\n // console.log('schema fixing time', new Date().getTime() - fixtime);\r\n // const stime = new Date().getTime();\r\n // for (let i = 0; i < 100; i++) {\r\n // Object.defineProperty(this,\"$schema\",{\r\n // enumerable: true,\r\n // get: wrapobj.wrap(this, \"model\", schema)\r\n // })\r\n var nfix = (vm.$options.schemaOptions === undefined) || (vm.$options.schemaOptions.fixData === undefined) || (vm.$options.schemaOptions.fixData === true);\r\n if (vm.model === null) {\r\n // tworzenie domyslnego\r\n if (nfix) {\r\n vm.model = defaultValue_1.default(schema2, true);\r\n }\r\n else {\r\n vm.model = {};\r\n }\r\n }\r\n else {\r\n if (nfix) {\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time('fixData');\r\n }\r\n var fixed = fixData_1.default(schema2, vm.model, soptions.Vue);\r\n if (process.env.NODE_ENV === 'development') {\r\n console.timeEnd('fixData');\r\n if (fixed) {\r\n console.log('fixed fields: ' + fixed);\r\n }\r\n }\r\n }\r\n }\r\n if (vm.$options.beforeSchema) {\r\n vm.$options.beforeSchema(vm.model, schema2, soptions);\r\n }\r\n // if (process.env.NODE_ENV === 'development') {\r\n // console.log('$schema.options', soptions);\r\n // }\r\n // console.log('wrapping model', vm.model);\r\n // vm.$schema = wrapobj.wrap(vm, schema2, 'model');\r\n // vm.$schema = new WrappedPropertyObject(null, vm, 'model', schema2, soptions);\r\n if (process.env.NODE_ENV === 'development') {\r\n console.time('wrapping schema');\r\n }\r\n vm.$schema = new WrappedProperty_1.default[schema2.type](null, vm, 'model', schema2, soptions);\r\n if (process.env.NODE_ENV === 'development') {\r\n console.timeEnd('wrapping schema');\r\n }\r\n if (vm.$options.afterSchema) {\r\n vm.$options.afterSchema(vm.$schema);\r\n }\r\n // console.log('wrapping schema', vm.$schema);\r\n // }\r\n // tslint:disable-next-line: no-console\r\n // console.log('wraptime', new Date().getTime() - stime, vm.$schema);\r\n if (forceUpdate && (vm.$forceUpdate)) {\r\n vm.$forceUpdate();\r\n }\r\n return vm.$schema;\r\n }\r\n }\r\n /*\r\n destroyed() {\r\n const vm: any = this as any;\r\n },\r\n */\r\n /*\r\n directives: {\r\n schema: {\r\n bind: (el: any, binding: any, vnode: any) => {\r\n if (vnode && vnode.componentInstance && vnode.componentInstance.setModel) {\r\n vnode.componentInstance.setModel(binding.value, binding.modifiers);\r\n\r\n }\r\n },\r\n },\r\n },\r\n */\r\n};\r\nexports.default = schemaMixin;\r\n//# sourceMappingURL=schemaMixin.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\r\nvar WrapperPropertyArrayItem = /** @class */ (function () {\r\n function WrapperPropertyArrayItem(dest, parent, key, schema, options) {\r\n this.$key = key;\r\n this._dest = dest;\r\n this._parent = parent;\r\n this._schema = schema;\r\n this._options = options;\r\n if (options.wrapAll || schema.type !== 'object') {\r\n this._cache = new WrappedPropertyCtor_1.default[this._schema.type](this._dest, this._parent, this.$key, this._schema, this._options);\r\n }\r\n }\r\n Object.defineProperty(WrapperPropertyArrayItem.prototype, \"$item\", {\r\n get: function () {\r\n if (this._cache) {\r\n return this._cache;\r\n }\r\n else {\r\n // console.log('WrappedPropertyCtor', Ctor);\r\n return (this._cache = new WrappedPropertyCtor_1.default[this._schema.type](this._dest, this._parent, this.$key, this._schema, this._options));\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n WrapperPropertyArrayItem.prototype.$clearCache = function () {\r\n if (this._cache) {\r\n this._cache.$destroy();\r\n this._cache = undefined;\r\n }\r\n };\r\n /**\r\n * ustawienie $dirty na false ale tylko wtedy gdy jest pobrane\r\n */\r\n WrapperPropertyArrayItem.prototype.$reset = function () {\r\n if (this._cache) {\r\n this._cache.$reset();\r\n }\r\n };\r\n /**\r\n *\r\n */\r\n WrapperPropertyArrayItem.prototype.$dirtyList = function (result) {\r\n if (this._cache) {\r\n this._cache.$dirtyList(result);\r\n }\r\n return result;\r\n };\r\n WrapperPropertyArrayItem.prototype.$destroy = function () {\r\n this.$clearCache();\r\n };\r\n WrapperPropertyArrayItem.prototype.$setKey = function (newKey) {\r\n this.$key = newKey;\r\n if (this._cache) {\r\n this._cache.$key = newKey;\r\n }\r\n };\r\n return WrapperPropertyArrayItem;\r\n}());\r\nexports.WrapperPropertyArrayItem = WrapperPropertyArrayItem;\r\n//# sourceMappingURL=WrappedPropertyArrayItem.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fdatetime_1 = require(\"./fdatetime\");\r\nvar padNumber_1 = require(\"./padNumber\");\r\nvar datePart_1 = require(\"./datePart\");\r\n/**\r\n * Zwraca tablicę zawierającą listę miesięcy pomiędzy datami\r\n * @param startDate data początkowa\r\n * @param endDate data końcowa\r\n * @param format format, domyślnie MMMM yyyy, czyli \"styczeń 2019\"\r\n */\r\nfunction listMonths(startDate, endDate, format /* = 'MMMM yyyy'*/) {\r\n /*\r\n const dt1 = dateParse(startDate);\r\n const dt2 = dateParse(endDate);\r\n\r\n let m1 = dt1.getMonth();\r\n let y1 = dt1.getFullYear();\r\n const m2 = dt2.getMonth();\r\n const y2 = dt2.getFullYear();\r\n */\r\n var m1 = datePart_1.default(startDate, 'M') - 1;\r\n var y1 = datePart_1.default(startDate, 'y');\r\n var m2 = datePart_1.default(endDate, 'M') - 1;\r\n var y2 = datePart_1.default(endDate, 'y');\r\n var result = [];\r\n var func;\r\n switch (format) {\r\n case 'MMMM yyyy':\r\n func = function (m, y) { return fdatetime_1.monthNames[m] + ' ' + y; };\r\n break;\r\n case 'MMM yyyy':\r\n func = function (m, y) { return fdatetime_1.monthShort[m] + ' ' + y; };\r\n break;\r\n case 'MM yyyy':\r\n func = function (m, y) { return padNumber_1.default(m + 1) + ' ' + y; };\r\n break;\r\n case 'M yyyy':\r\n func = function (m, y) { return m + 1 + ' ' + y; };\r\n break;\r\n case 'MMMM':\r\n func = function (m, y) { return fdatetime_1.monthNames[m]; };\r\n break;\r\n case 'MMM':\r\n func = function (m, y) { return fdatetime_1.monthShort[m]; };\r\n break;\r\n case 'MM':\r\n func = function (m, y) { return padNumber_1.default(m + 1); };\r\n break;\r\n case 'M':\r\n func = function (m, y) { return (m + 1).toString(); };\r\n break;\r\n default:\r\n func = function (m, y) { return fdatetime_1.monthNames[m] + ' ' + y; };\r\n break;\r\n }\r\n while ((m1 <= m2 && y1 === y2) || y1 < y2) {\r\n result.push(func(m1, y1));\r\n m1++;\r\n if (m1 > 11) {\r\n m1 = 0;\r\n y1++;\r\n }\r\n }\r\n return result;\r\n}\r\nexports.default = listMonths;\r\n//# sourceMappingURL=listMonths.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar datePart_1 = require(\"./datePart\");\r\n/**\r\n * Zwraca tablicę zawierającą listę lat pomiędzy datami\r\n * @param startDate data początkowa\r\n * @param endDate data końcowa\r\n */\r\nfunction listYears(startDate, endDate) {\r\n var y1 = datePart_1.default(startDate, 'y');\r\n var y2 = datePart_1.default(endDate, 'y');\r\n var result = [];\r\n while (y1 <= y2) {\r\n result.push(y1);\r\n y1++;\r\n }\r\n return result;\r\n}\r\nexports.default = listYears;\r\n//# sourceMappingURL=listYears.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar mround_1 = require(\"./mround\");\r\nvar precisionsz = ['', '.0', '.00', '.000', '.0000', '.00000', '.000000', '.0000000', '.00000000'];\r\n/**\r\n * formatuje liczbę zmiennoprzecinkową do polskiego formatu\r\n * @param value liczba\r\n * @param forcezeros czy zachować zera ,00\r\n * @param precision do ilu miejsc po przecinku zaokrąglić, domyślnie 2\r\n */\r\nfunction fmoney(value, forcezeros, precision) {\r\n if (precision === void 0) { precision = 2; }\r\n if (value === null) {\r\n return '';\r\n }\r\n // const s = value.toFixed(2);\r\n // let s = mround(value, precision).toFixed(precision);\r\n if (value % 1 === 0) {\r\n if (forcezeros) {\r\n return value.toString() + precisionsz[precision];\r\n }\r\n else {\r\n return value.toString();\r\n }\r\n }\r\n var s = mround_1.default(value, precision).toFixed(precision);\r\n if (forcezeros) {\r\n return s.replace('.', ',');\r\n }\r\n else {\r\n return s.replace(precisionsz[precision], '').replace('.', ',');\r\n }\r\n}\r\nexports.default = fmoney;\r\n//# sourceMappingURL=fmoney.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * sprawdza czy wartośc jest null, jeśli tak to zwraca valueIfNull\r\n * @param value wartość do sprawdzenia\r\n * @param valueIfNull co ma zwracać gdy value === null\r\n */\r\nfunction nullDefault(value, valueIfNull) {\r\n return value === null ? valueIfNull : value;\r\n}\r\nexports.default = nullDefault;\r\n//# sourceMappingURL=nullDefault.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fix_parent_1 = require(\"./fix$parent\");\r\nvar funcParams_1 = require(\"./funcParams\");\r\nvar cacheFuncs = {};\r\nfunction validFunction(schema, cache, debug) {\r\n if (cache === void 0) { cache = true; }\r\n var func = null;\r\n if (schema.validFunc) {\r\n if (cache && !debug) {\r\n func = cacheFuncs['valid_' + schema.validFunc];\r\n if (func !== undefined) {\r\n return func;\r\n }\r\n }\r\n var stext = fix_parent_1.default(schema.validFunc);\r\n // let ftext = '';\r\n if (stext.indexOf('{') === -1) {\r\n stext = \"{$result=(\" + stext + \")}\";\r\n }\r\n var ffunc = \"var $value=$obj.$model;\\r\\nvar $result=null;\\r\\n\" + stext + \";\";\r\n // ffunc+=`${}`;\r\n // ffunc += 'with($data) {';\r\n // ffunc += `with(parent) ${stext};`;\r\n // ffunc += '};';\r\n // ffunc += `console.log('validFuncResult','${propName}',$result);`;\r\n ffunc += '\\r\\nreturn $result;';\r\n if (debug) {\r\n ffunc = 'console.debug($obj.$path);\\r\\ndebugger;\\r\\n' + ffunc;\r\n }\r\n // old\r\n /*\r\n ftext += `return (${stext});`;\r\n\r\n\r\n\r\n if (debug && !debug) {\r\n ftext = 'debugger;\\r\\n' + ftext;\r\n }\r\n */\r\n func = new Function(funcParams_1.default, ffunc);\r\n if (cache) {\r\n cacheFuncs['valid_' + schema.validFunc] = func;\r\n }\r\n }\r\n return func;\r\n}\r\nexports.default = validFunction;\r\n//# sourceMappingURL=validFunction.js.map","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar WrappedPropertyBase_1 = require(\"./WrappedPropertyBase\");\r\nvar fmoney_1 = require(\"../methods/fmoney\");\r\nvar mround_1 = require(\"../methods/mround\");\r\nvar fnumber_1 = require(\"../methods/fnumber\");\r\nvar WrappedPropertyCtor_1 = require(\"./WrappedPropertyCtor\");\r\nvar functions_1 = require(\"./functions\");\r\nvar WrappedPropertyNumber = /** @class */ (function (_super) {\r\n __extends(WrappedPropertyNumber, _super);\r\n function WrappedPropertyNumber(dest, parent, propName, schema, options) {\r\n var _this = _super.call(this, dest, parent, propName, schema, options) || this;\r\n // //export const wrapSchemaProps = ['maxLength', 'minLength', 'maxItems', 'minItems', 'minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision'];\r\n functions_1.wrapSchemaProps(_this.$schema, _this._internal, 'number', ['minimum', 'maximum', 'exclusiveMaximum', 'exclusiveMinimum', 'precision']);\r\n _this._internal.typeok = true;\r\n functions_1.initVue(_this, _this._internal);\r\n return _this;\r\n }\r\n WrappedPropertyNumber.prototype.$validate = function (value) {\r\n if (value === undefined) {\r\n value = this.$model;\r\n }\r\n this.$dirty = true;\r\n if (value === null) {\r\n if (!this._internal.typeok) {\r\n return (this.$error = functions_1.getRuleMessage(this._internal.schema, 'type', value, this.$schema));\r\n }\r\n if (this.$schema.fieldRequired) {\r\n return (this.$error = functions_1.getRuleMessage(this._internal.schema, 'required', value, this.$schema));\r\n }\r\n else {\r\n return (this.$error = null);\r\n }\r\n }\r\n var ivalue = +value;\r\n return _super.prototype.$validate.call(this, ivalue);\r\n };\r\n WrappedPropertyNumber.prototype.getValue = function () {\r\n var ivalue = this.$model;\r\n // let ivalue = obj.$model;\r\n if (this.$dirty) {\r\n this.$validate(ivalue);\r\n }\r\n var stringValue = this.$getUserData('stringValue', null);\r\n if (ivalue === null) {\r\n // const svalue = this._internal.vm.stringValue;\r\n // if (svalue !== undefined && svalue !== null) {\r\n if (stringValue !== null) {\r\n return stringValue;\r\n }\r\n else {\r\n return '';\r\n }\r\n }\r\n if (isNaN(+ivalue)) {\r\n ivalue = 0;\r\n }\r\n // const err = validate(obj, ivalue);\r\n // if (obj.$path === 'LiczbaOdbiorcowZadania') {\r\n // console.log('validate ', JSON.stringify(ivalue), JSON.stringify(err));\r\n // }\r\n // vm.error = err ? getRuleMessage(schema, err, ivalue, $schema) : null;\r\n // let svalue = (\"\"+self.mround(ivalue)).replace(\".\",\",\");\r\n var svalue = '';\r\n switch (this.$schema.type) {\r\n case 'number':\r\n if (this.$schema.precision === undefined) {\r\n svalue = fnumber_1.default(ivalue, 8);\r\n }\r\n else {\r\n svalue = fnumber_1.default(ivalue, this.$schema.precision);\r\n }\r\n svalue = fnumber_1.default(ivalue, this.$schema.precision || 8);\r\n break;\r\n case 'money':\r\n if (this.$schema.precision === undefined) {\r\n svalue = fmoney_1.default(ivalue, false, 2);\r\n }\r\n else {\r\n svalue = fmoney_1.default(ivalue, false, this.$schema.precision);\r\n }\r\n break;\r\n case 'integer':\r\n svalue = fnumber_1.default(ivalue, 0);\r\n break;\r\n }\r\n // console.log($schema.type + 'Computed(get)', propName, JSON.stringify(svalue), err);\r\n return svalue;\r\n };\r\n WrappedPropertyNumber.prototype.setValue = function (newValue) {\r\n this._internal.typeok = true;\r\n var ivalue = null;\r\n if (this._options.dirtyOnInput) {\r\n this.$dirty = true;\r\n }\r\n // console.log('set model', JSON.stringify(newValue));\r\n if (newValue === '' || newValue == null) {\r\n if (this.$dirty && this.$schema.fieldRequired) {\r\n this.$error = functions_1.getRuleMessage(this._internal.schema, 'required', newValue, this.$schema);\r\n // ok = false;\r\n // typeok = false;\r\n }\r\n /*\r\n if (schema.default !== undefined) {\r\n ivalue = schema.default;\r\n //if (ivalue===0) {\r\n // typeok=true;\r\n //}\r\n }\r\n */\r\n ivalue = null;\r\n }\r\n else {\r\n ivalue = +newValue.replace(',', '.');\r\n if (isNaN(ivalue)) {\r\n if (this.$dirty) {\r\n this.$error = functions_1.getRuleMessage(this._internal.schema, 'type', newValue, this.$schema);\r\n }\r\n this._internal.typeok = false;\r\n // this.stringValue = newValue;\r\n // ivalue = schema.default || null;\r\n ivalue = null;\r\n }\r\n }\r\n // savedValue = ivalue;\r\n // if (this.focused) {\r\n if (!this._internal.typeok) {\r\n // tslint:disable-next-line: no-console\r\n // console.log('set $stringValue', newValue);\r\n this.$setUserData('stringValue', newValue);\r\n // this._internal.vm.stringValue = newValue;\r\n }\r\n else {\r\n this.$setUserData('stringValue', null);\r\n // this._internal.vm.stringValue = null;\r\n }\r\n var dvalue = 0;\r\n if (ivalue === null) {\r\n this.$model = null;\r\n }\r\n else {\r\n switch (this.$schema.type) {\r\n case 'integer':\r\n // console.log('set model', obj.$path, JSON.stringify(ivalue), JSON.stringify(mround(ivalue, 0)));\r\n dvalue = mround_1.default(ivalue, 0);\r\n break;\r\n case 'money':\r\n if (this.$schema.precision === undefined) {\r\n dvalue = mround_1.default(ivalue, 2);\r\n }\r\n else {\r\n dvalue = mround_1.default(ivalue, this.$schema.precision);\r\n }\r\n break;\r\n case 'number':\r\n if (this.$schema.precision === undefined) {\r\n dvalue = mround_1.default(ivalue, 8);\r\n }\r\n else {\r\n dvalue = mround_1.default(ivalue, this.$schema.precision);\r\n }\r\n break;\r\n }\r\n // console.log(schema.type + 'Computed(set)', propName, JSON.stringify(dvalue), JSON.stringify(typeok));\r\n // parent[propName] = dvalue;\r\n this.$model = dvalue;\r\n }\r\n };\r\n return WrappedPropertyNumber;\r\n}(WrappedPropertyBase_1.default));\r\nexports.default = WrappedPropertyNumber;\r\nWrappedPropertyCtor_1.default.integer = WrappedPropertyNumber;\r\nWrappedPropertyCtor_1.default.number = WrappedPropertyNumber;\r\nWrappedPropertyCtor_1.default.money = WrappedPropertyNumber;\r\n//# sourceMappingURL=WrappedPropertyNumber.js.map","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar fix_parent_1 = require(\"./fix$parent\");\r\nvar funcParams_1 = require(\"./funcParams\");\r\nfunction validCalcFunction(rule, cache) {\r\n if (cache === void 0) { cache = true; }\r\n var s = '';\r\n if (typeof rule === 'string') {\r\n rule = fix_parent_1.default(rule);\r\n s = \"return (\" + rule + \")\";\r\n }\r\n else if (Array.isArray(rule)) {\r\n for (var i = 0; i < rule.length; i++) {\r\n var item = rule[i];\r\n var ss = item.when || item.if || '';\r\n ss = fix_parent_1.default(ss);\r\n var ss2 = item.value;\r\n if (ss2 === undefined) {\r\n ss2 = ss;\r\n }\r\n else {\r\n if (typeof ss2 === 'string') {\r\n ss2 = fix_parent_1.default(ss2);\r\n }\r\n }\r\n s += \"if (\" + ss + \") return (\" + ss2 + \");\";\r\n }\r\n }\r\n // console.log('create valid function', rule, s);\r\n return new Function(funcParams_1.default, s);\r\n}\r\nexports.default = validCalcFunction;\r\n//# sourceMappingURL=validCalcFunction.js.map","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.crossed == 1)?_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.asterisk))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.separator)+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.asterisk))+\"\")],2):(_vm.crossed == 2)?_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.asterisk))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.separator)+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.asterisk))+\"\")]):_c('span',[_vm._ssrNode(\"\"+_vm._ssrEscape(_vm._s(_vm.first)+_vm._s(_vm.asterisk))+\"\"+_vm._ssrEscape(\"\\n \"+_vm._s(_vm.separator)+\"\\n \")+\"\"+_vm._ssrEscape(_vm._s(_vm.second)+_vm._s(_vm.asterisk))+\"\")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./crossed-out.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./crossed-out.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./crossed-out.vue?vue&type=template&id=9f8245e8&\"\nimport script from \"./crossed-out.vue?vue&type=script&lang=js&\"\nexport * from \"./crossed-out.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import WCrossedOut from './crossed-out.vue';\r\n\r\n\r\nexport const components = {\r\n WCrossedOut\r\n};\r\n\r\nexport function registerPreviewComponents(Vue, registerLog) {\r\n for (var name in components) {\r\n if (registerLog) {\r\n console.time('register ' + name);\r\n Vue.component(name, components[name]);\r\n console.timeEnd('register ' + name);\r\n } else {\r\n Vue.component(name, components[name]);\r\n }\r\n\r\n }\r\n}\r\n\r\n\r\nexport default components;\r\n","export const filters = {};\r\n\r\nexport function registerFilters(Vue, registerLog) {\r\n for (var name in filters) {\r\n if (registerLog) {\r\n console.time('register filter ' + name);\r\n Vue.component(name, filters[name]);\r\n console.timeEnd('register filter ' + name);\r\n } else {\r\n Vue.component(name, filters[name]);\r\n }\r\n\r\n }\r\n}\r\n\r\nexport default filters;","import { schemaMixin } from '@witkac/jschema';\r\nimport previewComponents from '../components/previewComponents';\r\nlet components = null;\r\n\r\n// nie przekazujemy komponentów bo rejestrujemy je globalnie\r\n/*\r\n\r\nif ((typeof window !== \"undefined\") && (window.Vue)) {\r\n //są zarejestrowane globalnie\r\n components = null;\r\n\r\n} else {\r\n components = previewComponents;\r\n}\r\n*/\r\n\r\n\r\n\r\n// import { fixSchemaDefaultOptions } from '../utils/JsonSchema';\r\n// fixSchemaDefaultOptions.arrayItemGuidField = 'Guid';\r\n\r\nexport default {\r\n mixins: [schemaMixin],\r\n components: components,\r\n props: ['datamodel', 'external'],\r\n data() {\r\n let data = {};\r\n return {\r\n model: this.$props.datamodel,\r\n };\r\n },\r\n\r\n beforeCreate() {\r\n const props = this.$options.propsData;\r\n\r\n if (props.external) {\r\n this.$options.external = props.external;\r\n delete props.external;\r\n }\r\n },\r\n created() {\r\n console.log('previewMixin created');\r\n\r\n },\r\n mounted() {\r\n if (typeof window !== \"undefined\") {\r\n\r\n window.vm = this;\r\n }\r\n }\r\n};\r\n","import _previewcomponents from './components/previewComponents';\r\nimport _filters from './filters';\r\nimport {schemaMethods as _schemaMethods} from '@witkac/jschema';\r\n\r\nimport _previewMixin from './mixins/previewMixin';\r\n\r\nexport const previewMixin = _previewMixin;\r\nexport const previewComponents = _previewcomponents;\r\nexport const filters = _filters;\r\nexport const schemaMethods = _schemaMethods;\r\n\r\n\r\n\r\nexport default previewComponents;","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar Ctor = {};\r\nexports.default = Ctor;\r\n//# sourceMappingURL=WrappedPropertyCtor.js.map","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar formatFunctions_1 = require(\"../formatFunctions\");\r\nfunction getValidations(schema, cache) {\r\n var funcs = cache ? schema.validationFunctions : undefined;\r\n if (funcs === undefined) {\r\n funcs = [];\r\n if (schema.type === 'array') {\r\n if (schema.minItems !== undefined) {\r\n funcs.push(_validations.minItems);\r\n }\r\n if (schema.maxItems !== undefined) {\r\n funcs.push(_validations.maxItems);\r\n }\r\n }\r\n else {\r\n if (schema.type === 'string') {\r\n if (schema.minimum !== undefined) {\r\n if (String.prototype) {\r\n funcs.push(_validations.minimumString);\r\n }\r\n }\r\n if (schema.exclusiveMinimum !== undefined) {\r\n // let nn: number = schema.exclusiveMinimum;\r\n funcs.push(_validations.exclusiveMinimumString);\r\n }\r\n if (schema.maximum !== undefined) {\r\n funcs.push(_validations.maximumString);\r\n }\r\n if (schema.exclusiveMaximum !== undefined) {\r\n funcs.push(_validations.exclusiveMaximumString);\r\n }\r\n if (schema.maxLength !== undefined) {\r\n funcs.push(_validations.maxLength);\r\n }\r\n if (schema.minLength !== undefined) {\r\n funcs.push(_validations.minLength);\r\n }\r\n if (schema.pattern !== undefined) {\r\n try {\r\n var rg_1 = new RegExp(schema.pattern || '', schema.patternFlags || 'i');\r\n funcs.push(function (value, runschema) { return (rg_1.test(value) ? null : 'pattern'); });\r\n // tslint:disable-next-line: no-empty\r\n }\r\n catch (err) {\r\n funcs.push(function (value, runschema) { return 'pattern'; });\r\n }\r\n }\r\n if (schema.format !== undefined) {\r\n // const ff = formatFunctions[schema.format];\r\n var ff_1 = formatFunctions_1.checkFormatFunction(schema.format || '');\r\n // console.log('get format function', schema.format, ff);\r\n if (ff_1 !== undefined) {\r\n funcs.push(function (value, runschema) { return (ff_1(value) ? null : 'format'); });\r\n }\r\n }\r\n }\r\n else {\r\n if (schema.minimum !== undefined) {\r\n if (String.prototype) {\r\n funcs.push(_validations.minimum);\r\n }\r\n }\r\n if (schema.exclusiveMinimum !== undefined) {\r\n // let nn: number = schema.exclusiveMinimum;\r\n funcs.push(_validations.exclusiveMinimum);\r\n }\r\n if (schema.maximum !== undefined) {\r\n funcs.push(_validations.maximum);\r\n }\r\n if (schema.exclusiveMaximum !== undefined) {\r\n funcs.push(_validations.exclusiveMaximum);\r\n }\r\n }\r\n if (schema.enum !== undefined) {\r\n funcs.push(_validations.enum);\r\n }\r\n if (schema.type === 'number' || schema.type === 'integer' || schema.type === 'money') {\r\n if (schema.multipleOf) {\r\n funcs.push(_validations.multipleOf);\r\n }\r\n }\r\n }\r\n if (cache) {\r\n Object.defineProperty(schema, 'validationFunctions', {\r\n enumerable: false,\r\n value: funcs\r\n });\r\n }\r\n }\r\n return funcs;\r\n}\r\nexports.getValidations = getValidations;\r\nvar supportLocales = false;\r\ntry {\r\n 'foo'.localeCompare('bar', 'pl');\r\n supportLocales = true;\r\n}\r\ncatch (e) {\r\n supportLocales = false;\r\n}\r\nvar stringCompare = function (value, othervalue) { return value.toLocaleLowerCase().localeCompare(othervalue.toLocaleLowerCase()); };\r\n// nie ma sensu bo jest wolniejsze, jakieś 20x\r\n// if (supportLocales) {\r\n// stringCompare = (value: any, othervalue: any) => value.localeCompare(othervalue, 'pl', { sensitivity: 'accent' });\r\n// }\r\nvar _validations = {\r\n enum: function (value, runschema) { return (runschema.enum && runschema.enum.indexOf(value) > -1 ? null : 'enum'); },\r\n minItems: function (value, runschema) { return (runschema.minItems !== null && !isNaN(runschema.minItems) && value.length < runschema.minItems ? 'minItems' : null); },\r\n maxItems: function (value, runschema) { return (runschema.maxItems !== null && !isNaN(runschema.maxItems) && value.length > runschema.maxItems ? 'maxItems' : null); },\r\n multipleOf: function (value, runschema) {\r\n return runschema.multipleOf !== null && !isNaN(runschema.multipleOf) && value % runschema.multipleOf !== 0 ? 'multipleOf' : null;\r\n },\r\n maxLength: function (value, runschema) { return (runschema.maxLength !== null && !isNaN(runschema.maxLength) && value.length > runschema.maxLength ? 'maxLength' : null); },\r\n minLength: function (value, runschema) { return (runschema.minLength !== null && !isNaN(runschema.minLength) && value.length < runschema.minLength ? 'minLength' : null); },\r\n minimum: function (value, runschema) { return (runschema.minimum !== null && !isNaN(runschema.minimum) && value < runschema.minimum ? 'minimum' : null); },\r\n exclusiveMinimum: function (value, runschema) {\r\n return runschema.exclusiveMinimum !== null && !isNaN(runschema.exclusiveMinimum) && value <= runschema.exclusiveMinimum ? 'exclusiveMinimum' : null;\r\n },\r\n maximum: function (value, runschema) { return (runschema.maximum !== null && !isNaN(runschema.maximum) && value > runschema.maximum ? 'maximum' : null); },\r\n exclusiveMaximum: function (value, runschema) {\r\n return runschema.exclusiveMaximum !== null && !isNaN(runschema.exclusiveMaximum) && value >= runschema.exclusiveMaximum ? 'exclusiveMaximum' : null;\r\n },\r\n minimumString: function (value, runschema) { return (runschema.minimum && stringCompare(value, runschema.minimum) === -1 ? 'minimum' : null); },\r\n exclusiveMinimumString: function (value, runschema) { return (runschema.exclusiveMinimum && stringCompare(value, runschema.exclusiveMinimum) !== 1 ? 'exclusiveMinimum' : null); },\r\n maximumString: function (value, runschema) { return (runschema.maximum && stringCompare(value, runschema.maximum) === 1 ? 'maximum' : null); },\r\n exclusiveMaximumString: function (value, runschema) { return (runschema.exclusiveMaximum && stringCompare(value, runschema.exclusiveMaximum) !== -1 ? 'exclusiveMaximum' : null); }\r\n};\r\n//# sourceMappingURL=getValidations.js.map"],"sourceRoot":""} >>>>>>> eb3e26255f1307085457b3f72a1911c22f2fadce